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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var eM,lWL,Jqx,Ep,zg,XxL,nL,kV,Id,y8,zt2,bLx,pL,VM2,ZLT,fL,oVV,iL2,wxx,Ex,aWT,kgg,mAx,KxM,jd2,$q,g1,Iq,m1,fWt,yH,Rtu,j0,c6,GS,sdq,Ux,hC,BTL,htq,LxA,xq,qpd,e3,vVV,Ju,tMu,XF,NTL,Sp8,eFM,FF,ORM,Equ,JCu,X6t,zFq,ch,Qdx,pP,xAq,lSq,oqW,W1q,diM,Ph,gqx,iRx,w6L,ACM,aSt,kS8,yCu,rf,jqx,cCx,fSW,GSp,B1V,S3,eO,Pqu,t0x,Jp,qxu,Di2,N1g,zu,rCx,XS,nqt,VI,o5,$H,bk,dc,lOt,SxA,Qqt,a5,e4p,OPV,E4g,Xhx,Ju2,KJ,z4p,bPx,wc,V38,ZP8,fJ,Czx,dog,sj,n4L,o4x,aOW,k08,IOp,HPg,phL,Uj,hp,FHp,R4A,Tfd,Pzx,qu8,QiV,OJV,bJ8,br,VOT,uSL,ur,oH,
$e,dG,ir,yS,KU,jv,iJd,B2,Ap8,ku2,v2,Nm,mHW,D9,Sv,QS,l1,pvA,Kbp,j5A,HJx,cpL,Fbg,fVt,RSd,Tcq,Gux,zq,JD,BcW,Pkd,UHt,hSW,Yjx,Lbp,oz,qju,$A,WI,dp,gp,nl,Nct,az,DHL,e5d,mA,OUu,Eeq,Jzd,pl,X2T,z5V,Kl,jS,VvL,cI,Crg,oeL,FQ,W7M,$mW,dmu,geu,iUL,w2V,s$,Azx,nex,Gq,a9T,k1q,BI,PI,U$,hD,I9V,yzg,mmM,Ll,K7A,jHq,HUq,qR,NR,rp,DU,SS,QE,xA,cz2,F7A,f9q,R58,TGu,sHu,G1x,BGt,Prq,Um2,YNx,eB,h58,L7q,Jn,tvq,z5,bX,qNx,rzp,Dmd,SN2,xmV,lUT,euV,XIx,zu2,blx,MSt,VSu,Zlq,uQu,WAg,Z7,dR8,gAA,ilq,wIW,ADd,nA2,kqt,Tpg,szx,Gqt,P12,URx,An,Y$d,
nF,vA8,Np8,rDx,DRx,S$u,QzW,xRx,l7T,y9,OFd,tSV,ES8,Jnx,XRx,zwt,bF8,MBp,VB8,ZFL,ued,$4A,oSu,gSp,Wmx,d4u,An8,nST,a7L,iFM,I7V,wRt,ynT,UP,pRL,YS,LF,KmW,HFx,cnV,RwA,tBT,s7T,Ta2,BaA,U42,G5u,rnp,vSL,D4q,SPt,Q7V,x48,lF8,ObW,eJu,Ezq,Jld,XDA,zJg,M$x,Zbu,u8g,C$p,$hu,ozt,ylq,SB,pD8,jQg,Hbx,cl8,F3g,fFA,Tkp,sQt,GjW,Jl,X8,Bkp,L32,V6,ZF,Nkx,rlV,X3x,cFx,WD,fcL,R_t,BXL,sLg,GhA,aQ,PJt,Uau,h_2,LFA,tst,qBq,vo8,NXu,rFL,m3,SBV,xaq,QLq,eTu,fb,so,Gj,Edq,JT2,XKV,zT8,bHq,MD8,ZHg,VDt,xz,es,OB,aBx,zh,bJ,IBA,mzg,Ma,pKT,yTV,sUx,
GQg,B5x,Uz2,tDt,vdg,N5d,rT8,DzW,QUx,lhT,edx,oL,Xkg,M7L,V7x,Zvu,uRT,Ct8,bv8,J5g,E6q,dX,Ov8,o6p,WWT,wkL,g6M,wX,n6u,kRx,Ihx,mGx,y5L,ko,pku,jyg,KWM,HvW,FWx,y5,UGd,hdW,t7x,v6x,js,r52,F7,RL,fS,xG8,NLL,lAL,P3,JWA,hF,bu8,ZuL,CLA,oP8,$xu,tF,WwW,dxA,gP2,wwx,AWu,nPM,aAp,IAu,v3,mx8,yWt,rX,Q5,jCu,Hug,cW8,lP,RpM,T3u,GJA,bP,Lwx,ttp,qDx,vP8,N3d,uP,oU,$d,lbx,WK,eBL,OZ8,EEx,JG2,MUA,ZZT,uxd,VUx,g5,CN2,drt,iP,WB8,gEp,oEq,iZ2,AT,AGu,nEp,abx,kMt,mr8,IbL,yGd,jDV,pmu,cGt,GML,PNM,Urp,hBx,qWM,tUu,LBM,vEu,rGV,SWu,Drx,xrL,l8L,
eaM,Or2,TQ,XQ2,JPt,zaq,brt,GQ,BK,M4x,Zrx,CgL,WPd,gZT,dYt,zR,irM,uwt,mYp,yP8,pQ8,ut,KPp,Hr8,f8d,sm2,T4V,UYu,Y0M,hap,LPx,q0g,S0p,vZt,rPu,DYT,Qmt,xYg,eRx,lpV,Evd,O_T,Iy,Jix,zRV,b_d,ucd,FR,fv,CeM,ovL,Ry,gvp,Bk,Pk,Us,nvV,Y6,Ipd,t5,mdp,yiL,p92,Ku8,Dh,jcq,ciM,Fut,RRT,sc8,Pet,YK8,X_,hR8,LuW,tHu,qKp,vvq,NvW,rig,Ddx,Mx,xdu,lGp,eUM,Ozq,EuL,Jgp,Xbu,zUu,bzL,Mjx,VjL,ZzA,uj2,d3,k9q,IGp,g3,iL,w3,m92,ygp,pbt,Klq,jpq,Hzq,cgu,spM,G9p,BQp,PiW,U9x,kP,mw,yZ,pu,F_,fu,RC,hUA,sD,tjM,GJ,qGM,vut,Bw,NQq,rgM,D9p,XtM,bOd,CHu,
du2,WcT,z7M,gpp,AY2,R7M,yYW,PH8,Kcu,BVM,Uuu,tW,h7V,vw,tox,qnq,NVW,rYT,Duu,QMM,DA,lCM,ebT,O0q,E18,J$M,Xct,zbT,xuA,VTd,Z0p,uvt,QZ,g1W,i0g,dvA,A$A,n1x,k_q,ICu,aC8,c$L,fCp,T8u,G_T,VW,Lsu,hb8,r$2,Smt,Q4T,xvM,lex,eed,O1q,AG,u0L,oT8,VyM,My2,Cd8,JAp,W0W,yAW,i1q,wsq,AAx,sB2,BPx,TPM,tyV,Reu,ET8,L0q,gTd,m7d,GVA,$7A,ze2,XsA,b1g,Z18,feg,sW,zct,MbM,Vbu,Z42,uOV,A38,y3T,pfd,vm,jXd,FXV,sXp,T6W,B6u,Pst,YtT,LXT,hcg,tbx,JP,qtg,v0W,r3x,N6p,Xw,ejp,lwx,xTT,XFL,OdW,zjW,Jm2,bd8,bg,MNA,Cpt,ZdT,uY2,$jx,g72,ug,AmL,idL,n7x,mjL,
ymA,jxx,cmg,WQ,d4,Tgq,sxT,g4,ig,GkA,w4,AP,BgT,nr,PpW,am,Ujp,YL8,Im,hjL,Lf2,tN8,qLp,v7M,rmt,Ngp,SL8,lPd,xj8,es8,OTg,DjV,ED8,zsW,Xiq,Qxt,bTp,Mpd,j4,Vpd,uZg,ZTM,CVx,oDg,WMx,$c2,dcL,cQ,iT2,wiV,gD2,nD8,knT,IPV,KMp,cMW,sKq,Ucq,Fw,LMp,tpg,fr,qhx,GL,BQ,QK2,TL,YZ,xcg,lsL,OkM,EJt,X1A,bkq,MAt,VAx,Zkg,oJM,ikx,ds8,C3T,w1x,AeL,qY,gJW,nJq,D8,asx,kK2,IsT,msx,j9d,yeq,KIW,fsp,RHq,P3W,B$2,hHx,rex,Ds8,Q9g,lLu,ehA,Exq,Jcg,Xnd,bNM,Md8,VdL,CYq,dJM,gxL,oxu,wnV,nxA,Acx,iN2,aLx,ILA,mJg,ycV,pn2,KCW,Md,Vf,C_,$v,ccx,FCA,Rht,
Git,W9,dv,BdL,gv,YU8,hhg,LCp,wv,rcV,xJg,e1d,O2L,Eht,JZT,XW8,MRL,n_,VR8,Cv2,ac,ohg,d38,ghx,i2u,Wy8,IZg,pWt,m3p,KyT,cZx,fZg,TsL,Pvt,BsL,Lyq,p_,tRg,q9W,K_,vhg,jH,Nsg,rZu,D3W,Q_W,S9g,x3g,lmM,e9L,O3t,Z3q,CQd,$Cq,oMu,z9u,Jrp,dCd,i3x,kPT,ImA,pYx,fm2,TYq,f_,sIt,BYA,PQT,Y8V,q8d,rrx,QIx,xC2,lgg,eG2,zGx,Oxg,Zx8,uVT,o$M,sK,Whx,d8q,g$x,ixT,woT,AIt,n$t,kvt,IgW,UK,m8L,yIT,KhV,hi,poA,HxT,RGM,v9,TEV,saq,GvM,U8x,Ykx,BEg,LhL,NET,rIW,D8V,xv,SkL,e0d,OnL,Xj,Xe8,EN2,J6T,bnV,VVu,ZnA,$DW,gNT,dDg,W2p,inp,A68,nNV,y6x,aqV,peM,
jsx,K2M,TUM,BUT,UDV,h0x,vNL,lKT,OI8,E3L,bIM,Vqt,Bb,N9,WSd,w0g,iIL,n3V,aKM,IKV,k7T,mku,yfL,rQ,opM,dkL,Afx,g3M,q9,jFt,HIx,cfd,FSV,fKA,Rox,T9p,sFt,bH,G7M,Mu,B9g,P_q,UkT,YSg,uH,hog,qSp,N9d,rf2,Oi2,JHT,XXu,zLx,MJA,VJA,AY,usx,CaM,onT,$Bq,WR2,dBu,ii2,AHx,a3p,kxu,jtA,pXT,Hip,f3p,RLL,pO,TIu,st2,GxL,gkt,wyu,iot,nkT,kaq,ct,mZg,yJx,IYq,pyL,KoM,Hox,Fo2,cJx,fYu,jTx,R2p,T0M,sTg,GaM,B08,PId,UZd,Ylp,h2x,qlu,tZt,vkp,rJg,N0x,F$,DZd,xZ8,JK8,Slt,XCx,zfq,bpt,MK8,dSL,ipT,wCq,nUp,anA,LO,yKd,Hpq,FVM,tY,s6V,Ttq,GWg,Nu,BtA,
PSV,USu,hfd,LVu,tKt,q1M,Ntt,rKT,XJq,eIL,Ewg,b6x,zIA,M9g,V9q,u5L,ow8,WgV,gwM,pJg,H6L,Fgg,f1x,RIt,TnA,snd,BnV,Pyd,hI2,Lgp,t9u,q5W,vwt,Nnq,r7u,Dgd,xgx,E5M,bG,Mv,VF,ZC,JwA,o4,zxx,W6L,n58,wax,GlL,BSW,P4t,MQp,$5T,uJT,Yg8,hxp,L6t,g5u,qgp,NSt,D5M,x5T,lHu,p0,Hc,cc,bgA,zyW,uPT,CBx,n8V,kHT,meM,ybp,jfp,cbx,Hgx,Ryq,sfV,L8V,Ydp,B_d,hyq,PBx,tF2,rbA,vc,Jxg,eMT,zMV,beT,Vkp,Zep,r8,uNg,$Ox,dO8,glu,w8d,ieA,QF,mOL,JA,p8p,KY2,zV,jku,HeM,cxt,FYd,fTL,RMg,TuW,skp,GEV,Bu8,P8p,UOq,YYT,hMA,LYV,bd,tkW,qYx,vlT,Nud,rxV,DOA,SYp,
Qkg,xOq,l28,emx,OCt,V0,JLp,zmT,MfA,uKq,$fq,Wnp,dfV,iCT,ALd,nGx,a2V,gP,p5p,mfx,KnL,jlL,HCV,f28,Rm8,TiV,GBg,Hs,PFu,K1,YwA,hmx,cs,LnA,tfA,qwL,vGM,f1,Swu,xfx,Jdg,ERx,zgV,bYT,UV,MWp,VW2,uft,oRL,$l8,dlx,gRg,CEt,iYx,kDA,ppx,KOx,hA,je2,HY2,Trp,cd2,fEx,RgM,YM2,GDg,hgx,tWp,vRp,Nru,rdT,DlM,SMx,QeA,lix,enq,OwT,E_M,JQW,znL,Mcd,u32,Wq2,iwx,AQq,km8,De,Iig,mUp,yQW,pdp,KqT,Hwg,cQu,Fqt,fi2,Rnq,TZ8,sWg,Gm8,BZu,Pou,UUg,hnM,YzA,qzu,NZq,xT,rQM,QWt,Szt,eb,eNL,Oq2,X4x,bqM,zNg,JhT,Zqx,VgA,WkL,utV,zr,omt,akT,iqL,w4T,Ah8,nmu,
ksA,mNT,IkV,bs,MT,Fk8,p4q,chq,Hqu,Kkq,joq,Tqx,GsM,Pw2,BqT,Lkd,hNL,vmq,Nqd,DNW,S_x,rht,Qot,lD2,xNL,OWL,XNq,d6,zEg,bWx,ZWx,WKp,nWV,is,kN8,pNL,cUg,HWL,KKL,jvt,k0,TbA,FKd,fDp,svV,Bbu,GNu,Yeq,hEx,tx8,qeA,vWW,Nbg,rU2,SeW,Qvq,st,lju,Bf,eWp,XSu,zWW,h3,bGd,Vig,iG8,NT,oyu,gyW,$p2,WLT,ajt,k$g,nyp,Ijq,mp8,j$2,yoL,HGL,cox,Du,fju,RWT,TFT,FLM,x0,s$V,Sb,Upx,NFM,roT,Dpg,SOV,Q$V,xpp,Egg,e$2,Ocg,l$M,XqV,MGx,uUA,CnA,$tt,ggW,WeW,dtW,icT,Akt,ngu,a$A,k3T,I$p,mt2,pqL,bp,Ked,ck8,HcL,f$T,Fe2,R$d,Teg,sgp,Mj,Bex,Dtd,NeV,xtt,
lax,zqp,bEW,MYt,VY2,ZEW,ur8,$1d,Wru,d1V,gKL,AaV,nKA,aa2,k6p,IaV,m1M,ya8,plA,Krg,jZ8,caL,Frt,faq,sZ2,Bhu,hqu,Y3d,U1A,PAt,vKg,tYq,raM,S3W,QZu,x1M,Kd,lfV,e6A,O8t,z6p,EOu,b8g,J0d,MrA,FY,Vrx,Z8W,u6x,Xj2,CM2,gOd,i8M,wjt,Tk,A08,nOt,afL,kyM,IfM,mwT,pjx,KJ2,jOq,H8T,ffM,FJp,BHu,c0g,Gk,PM8,R62,GyL,h62,trd,DwM,NHd,r0V,vOV,qZL,tm,SZp,xwV,l_x,ekL,OmV,EaL,MEp,XHp,JBL,zkM,wHd,gaV,bmu,d0g,yB8,pHT,K$8,jPd,Hmx,cBA,F$2,TxL,GCV,P0L,YvL,hkV,L$V,Nx2,vaV,rBT,Svx,uV,lJV,eAx,OA8,EC2,oK,$D,zAV,VnA,WZt,wT2,A9x,nCp,aJp,kY8,IJM,
y9L,KZp,pTu,jN8,c9t,FZW,fJM,RAx,T2T,sNx,wC,GYW,tnT,qRT,YRp,Uqq,LZg,hAA,lN2,SRL,aK,evL,O98,Ejx,Jvx,XOg,zvV,b9V,MeM,Vep,u9M,ojp,Wap,gjW,wOx,ktM,INx,mMq,KaV,pOA,yvx,j1q,H9d,Fat,fNV,Rvx,Tlq,KT,GtA,BlW,P52,YaM,UMp,hvT,tex,Nlu,rvu,DMT,Sat,Q1p,lx8,e8p,xMM,bf2,Mwu,Zfp,Vwt,uyA,$Q2,Wp2,dQx,gYx,wrx,ifd,nYd,prM,yEV,jbV,Hf2,cET,sbT,Got,Bwd,P9M,h8t,Lp8,vY8,rEx,Nw8,DQt,Nc,SXp,Qbp,xQp,lvp,JjV,E9g,X_x,zru,MXx,VXV,CUV,$XW,Wjx,dXt,g9q,it2,w_t,Ajt,n9p,avx,kfp,mXg,Ivu,yj8,p_T,KjA,jht,HtM,cj2,Fj8,Rrq,Tjd,fvq,eA,BjM,PUq,
UXx,YJg,hrV,tXM,NjL,rj8,DXV,SJx,Qhp,xXd,eYA,Ojq,Jt8,zYq,MI2,C7t,Zju,VI8,uAL,orT,dP2,$PT,WEA,ijd,nrd,aQx,kFp,mPV,ytu,pU8,jSx,ctx,KEu,FEx,fQu,RYp,TB2,sSp,GFd,P7p,BBL,UPx,Y4d,hYx,LET,vrx,NBu,rtM,DPW,S4d,QS2,xPV,Oyx,EIp,lzg,eXx,byx,M5A,g$,oI2,$EL,dEV,wAA,iyA,AVg,nIM,i3,Ae,kIL,Izg,kJ,I9,KTA,mEp,yVL,cVT,RXT,sRM,GId,BW8,PDA,UEp,hXp,LTg,t5A,qi2,vIg,NWu,rVp,pk,DE2,Siu,jA,QRt,xEp,lo8,eCM,OV2,E2M,FL,fk,Js8,X$V,R9,zCp,bVA,MPp,VPM,uhu,ChW,$WW,w$g,iVV,g28,AsM,n2p,p$M,Iog,mW8,kdM,ys2,s6,HV2,csT,Fdx,foq,RCM,sGq,
UWu,Bzq,GK,Gdx,q2d,NzT,rsp,DWg,S2g,QGx,ldg,eKt,OaL,Et8,XVW,zKg,bax,VmL,ZaT,C6M,otL,iaT,A42,wVx,adW,pVt,K_V,jYW,Ha2,F_M,he,te,Lk,fdg,RKp,TOp,sYM,BOT,P6x,U_2,YyA,L_A,qy8,vtd,NOV,qs,r4V,SyT,QYt,eZL,Osq,v1,Ns,XMq,Eix,zZ8,VhM,bsL,ZsT,Ds,CRq,oi2,dnx,isx,SA,A2T,niL,a5T,kXx,I5V,mnu,y2g,KNL,FN2,f52,sEx,RZu,TmT,GXM,YQ8,Bm8,Unu,hZT,LNd,tht,NmL,r22,Dnt,SQt,QEp,J1x,Ect,Z7M,ocM,zi,$bx,K3M,Wix,dbx,i7d,A1W,nc8,Ki8,jJx,uY,H78,c1d,Fi8,Rzp,TKp,GAx,PcT,sJu,BKd,YFM,Ubx,qFA,LiM,vcx,NK2,r1T,Db8,SFW,xb8,QJp,ELu,zQx,JST,
bhW,Mud,Vug,Wn,ZhL,uHt,gd,oLd,CTp,$2q,W9x,gLx,ihd,AS2,nLq,a48,kbL,I4x,pP8,Hhp,f4V,F9M,RQM,TJg,BJL,rSu,hQ2,ScL,Qru,lXT,eVM,Xzu,M_p,V_V,Z$q,uox,WUx,dyA,gQp,i$x,wzT,A_T,nQp,kUq,y_T,pzu,KUd,jj2,FU8,c_x,sjx,GUW,BRA,LUT,t_u,qbd,vQd,r_8,Ti,SbW,Pn,xyd,eOT,OM8,bMT,Vzx,ofx,WDd,d6T,iM2,wEt,ARt,ayx,Iyp,m6p,KDW,HML,fyM,FDg,cRg,qJ,TNd,ROW,sVx,GTx,BNg,PmM,U6d,YrT,hOL,tzL,qrp,vfL,NNp,rRq,D62,Srx,QVu,x6p,eiL,O5L,Z5d,udx,CWq,osq,$FV,gsx,lv,kcu,I6x,mFT,yy2,pGW,eR,O9,lJ,Typ,JZ,s0T,UFu,hiT,YE8,X4,Lvt,tCu,tOx;
_.l2=function(l,e){if(Error.captureStackTrace)Error.captureStackTrace(this,_.l2);else{var O=Error().stack;O&&(this.stack=O)}l&&(this.message=String(l));e!==void 0&&(this.cause=e)};
eM=function(){throw Error("B");};
lWL=function(l,e){e=String.fromCharCode.apply(null,e);return l==null?e:l+e};
Jqx=function(l){var e=!1;e=e===void 0?!1:e;if(etV){if(e&&(OLL?!l.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(l)))throw Error("C");l=(EVg||(EVg=new TextEncoder)).encode(l)}else{for(var O=0,E=new Uint8Array(3*l.length),J=0;J<l.length;J++){var z=l.charCodeAt(J);if(z<128)E[O++]=z;else{if(z<2048)E[O++]=z>>6|192;else{if(z>=55296&&z<=57343){if(z<=56319&&J<l.length){var M=l.charCodeAt(++J);if(M>=56320&&M<=57343){z=(z-55296)*1024+M-56320+65536;E[O++]=z>>18|
240;E[O++]=z>>12&63|128;E[O++]=z>>6&63|128;E[O++]=z&63|128;continue}else J--}if(e)throw Error("C");z=65533}E[O++]=z>>12|224;E[O++]=z>>6&63|128}E[O++]=z&63|128}}l=O===E.length?E:E.subarray(0,O)}return l};
Ep=function(l){_.Op.setTimeout(function(){throw l;},0)};
_.Jq=function(l,e){return l.lastIndexOf(e,0)==0};
zg=function(l,e){var O=l.length-e.length;return O>=0&&l.indexOf(e,O)==O};
_.MA=function(l){return/^[\s\xa0]*$/.test(l)};
_.ZW=function(l,e){return l.indexOf(e)!=-1};
_.u2=function(l,e){return _.ZW(l.toLowerCase(),e.toLowerCase())};
_.Wx=function(l,e){var O=0;l=CL(String(l)).split(".");e=CL(String(e)).split(".");for(var E=Math.max(l.length,e.length),J=0;O==0&&J<E;J++){var z=l[J]||"",M=e[J]||"";do{z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(z[0].length==0&&M[0].length==0)break;O=XxL(z[1].length==0?0:parseInt(z[1],10),M[1].length==0?0:parseInt(M[1],10))||XxL(z[2].length==0,M[2].length==0)||XxL(z[2],M[2]);z=z[3];M=M[3]}while(O==0)}return O};
XxL=function(l,e){return l<e?-1:l>e?1:0};
_.dT=function(){var l=_.Op.navigator;return l&&(l=l.userAgent)?l:""};
nL=function(l){if(!i2||!wT)return!1;for(var e=0;e<wT.brands.length;e++){var O=wT.brands[e].brand;if(O&&_.ZW(O,l))return!0}return!1};
kV=function(l){return _.ZW(_.dT(),l)};
Id=function(){return i2?!!wT&&wT.brands.length>0:!1};
y8=function(){return Id()?!1:kV("Opera")};
zt2=function(){return Id()?!1:kV("Trident")||kV("MSIE")};
bLx=function(){return Id()?nL("Microsoft Edge"):kV("Edg/")};
pL=function(){return kV("Firefox")||kV("FxiOS")};
_.Fu=function(){return kV("Safari")&&!(_.Hx()||(Id()?0:kV("Coast"))||y8()||(Id()?0:kV("Edge"))||bLx()||(Id()?nL("Opera"):kV("OPR"))||pL()||kV("Silk")||kV("Android"))};
_.Hx=function(){return Id()?nL("Chromium"):(kV("Chrome")||kV("CriOS"))&&!(Id()?0:kV("Edge"))||kV("Silk")};
_.MMT=function(){return kV("Android")&&!(_.Hx()||pL()||y8()||kV("Silk"))};
VM2=function(l){var e={};l.forEach(function(O){e[O[0]]=O[1]});
return function(O){return e[O.find(function(E){return E in e})]||""}};
ZLT=function(l){var e=_.dT();if(l==="Internet Explorer"){if(zt2())if((l=/rv: *([\d\.]*)/.exec(e))&&l[1])e=l[1];else{l="";var O=/MSIE +([\d\.]+)/.exec(e);if(O&&O[1])if(e=/Trident\/(\d.\d)/.exec(e),O[1]=="7.0")if(e&&e[1])switch(e[1]){case "4.0":l="8.0";break;case "5.0":l="9.0";break;case "6.0":l="10.0";break;case "7.0":l="11.0"}else l="7.0";else l=O[1];e=l}else e="";return e}var E=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");O=[];for(var J;J=E.exec(e);)O.push([J[1],J[2],J[3]||void 0]);
e=VM2(O);switch(l){case "Opera":if(y8())return e(["Version","Opera"]);if(Id()?nL("Opera"):kV("OPR"))return e(["OPR"]);break;case "Microsoft Edge":if(Id()?0:kV("Edge"))return e(["Edge"]);if(bLx())return e(["Edg"]);break;case "Chromium":if(_.Hx())return e(["Chrome","CriOS","HeadlessChrome"])}return l==="Firefox"&&pL()||l==="Safari"&&_.Fu()||l==="Android Browser"&&_.MMT()||l==="Silk"&&kV("Silk")?(e=O[2])&&e[1]||"":""};
_.uug=function(l){if(Id()&&l!=="Silk"){var e=wT.brands.find(function(O){return O.brand===l});
if(!e||!e.version)return NaN;e=e.version.split(".")}else{e=ZLT(l);if(e==="")return NaN;e=e.split(".")}return e.length===0?NaN:Number(e[0])};
fL=function(){return i2?!!wT&&!!wT.platform:!1};
_.C2W=function(){return fL()?wT.platform==="Android":kV("Android")};
oVV=function(){return kV("iPhone")&&!kV("iPod")&&!kV("iPad")};
_.Rd=function(){return oVV()||kV("iPad")||kV("iPod")};
_.$AL=function(){return fL()?wT.platform==="macOS":kV("Macintosh")};
_.Wxu=function(){return fL()?wT.platform==="Windows":kV("Windows")};
_.dAu=function(){return fL()?wT.platform==="Chrome OS":kV("CrOS")};
_.sp=function(l){return l[l.length-1]};
_.Gg=function(l,e,O){e=_.gVu(l,e,O);return e<0?null:typeof l==="string"?l.charAt(e):l[e]};
_.gVu=function(l,e,O){for(var E=l.length,J=typeof l==="string"?l.split(""):l,z=0;z<E;z++)if(z in J&&e.call(O,J[z],z,l))return z;return-1};
iL2=function(l){for(var e=_.Bx,O=typeof l==="string"?l.split(""):l,E=l.length-1;E>=0;E--)if(E in O&&e.call(void 0,O[E],E,l))return E;return-1};
_.hq=function(l,e){return _.Up(l,e)>=0};
_.qA=function(l,e){_.hq(l,e)||l.push(e)};
_.NA=function(l,e){e=_.Up(l,e);var O;(O=e>=0)&&_.vx(l,e);return O};
_.vx=function(l,e){Array.prototype.splice.call(l,e,1)};
_.rT=function(l){var e=l.length;if(e>0){for(var O=Array(e),E=0;E<e;E++)O[E]=l[E];return O}return[]};
_.Q8=function(l,e){for(var O=1;O<arguments.length;O++){var E=arguments[O];if(_.SM(E)){var J=l.length||0,z=E.length||0;l.length=J+z;for(var M=0;M<z;M++)l[J+M]=E[M]}else l.push(E)}};
_.AqW=function(l,e,O,E){Array.prototype.splice.apply(l,wxx(arguments,1))};
wxx=function(l,e,O){return arguments.length<=2?Array.prototype.slice.call(l,e):Array.prototype.slice.call(l,e,O)};
Ex=function(l,e){e=e||l;for(var O=0,E=0,J={};E<l.length;){var z=l[E++],M=_.e0(z)?"o"+_.Ox(z):(typeof z).charAt(0)+z;Object.prototype.hasOwnProperty.call(J,M)||(J[M]=!0,e[O++]=z)}e.length=O};
_.nVT=function(l,e,O){O=O||_.JC;for(var E=0,J=l.length,z;E<J;){var M=E+(J-E>>>1);var Z=O(e,l[M]);Z>0?E=M+1:(J=M,z=!Z)}return z?E:-E-1};
_.bq=function(l,e,O){if(!_.SM(l)||!_.SM(e)||l.length!=e.length)return!1;var E=l.length;O=O||aWT;for(var J=0;J<E;J++)if(!O(l[J],e[J]))return!1;return!0};
_.JC=function(l,e){return l>e?1:l<e?-1:0};
aWT=function(l,e){return l===e};
kgg=function(l,e,O){e=Array.prototype.splice.call(l,e,1);Array.prototype.splice.call(l,O,0,e[0])};
mAx=function(l){return IWW[l]||""};
KxM=function(l){if(!yqW)return _.VH(l);l=pxA.test(l)?l.replace(pxA,mAx):l;l=atob(l);for(var e=new Uint8Array(l.length),O=0;O<l.length;O++)e[O]=l.charCodeAt(O);return e};
jd2=function(l,e){l.__closure__error__context__984382||(l.__closure__error__context__984382={});l.__closure__error__context__984382.severity=e};
_.CR=function(l){l=Error(l);jd2(l,"warning");return l};
$q=function(l,e){if(l!=null){var O;var E=(O=HLp)!=null?O:HLp={};O=E[l]||0;O>=e||(E[l]=O+1,l=Error(),jd2(l,"incident"),Ep(l))}};
g1=function(l,e,O){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(O===void 0?0:O)&&Symbol.for&&l?Symbol.for(l):l!=null?Symbol(l):Symbol():e};
Iq=function(l,e){nR||_.aq in l||cq2(l,FxW);l[_.aq]|=e};
m1=function(l,e){nR||_.aq in l||cq2(l,FxW);l[_.aq]=e};
fWt=function(l){if(4&l)return 512&l?512:1024&l?1024:0};
yH=function(l){Iq(l,34);return l};
Rtu=function(l){Iq(l,32);return l};
j0=function(){return typeof BigInt==="function"};
c6=function(l,e){return e===void 0?l.copyOnWrite!==H6&&!!(2&(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.aq]|0)):!!(2&e)&&l.copyOnWrite!==H6};
_.sx=function(l,e){if(l!=null)if(typeof l==="string")l=l?new fR(l,Rq):_.TS();else if(l.constructor!==fR)if(TTT&&l!=null&&l instanceof Uint8Array)l=l.length?new fR(new Uint8Array(l),Rq):_.TS();else{if(!e)throw Error();l=void 0}return l};
GS=function(l,e){if(typeof e!=="number"||e<0||e>=l.length)throw Error();};
sdq=function(l,e,O){var E=e&128?0:-1,J=l.length,z;if(z=!!J)z=l[J-1],z=z!=null&&typeof z==="object"&&z.constructor===Object;var M=J+(z?-1:0);for(e=e&128?1:0;e<M;e++)O(e-E,l[e]);if(z){l=l[J-1];for(var Z in l)!isNaN(Z)&&O(+Z,l[Z])}};
Ux=function(l){return l&128?B6:void 0};
hC=function(l){l.isGuard_doNotManuallySetPrettyPlease=!0;return l};
BTL=function(){var l=Ggt;return hC(function(e){for(var O in l)if(e===l[O]&&!/^[0-9]+$/.test(O))return!0;return!1})};
_.qi=function(l){var e=l;if(P2L(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e));}else if(UAu(e)&&!Number.isSafeInteger(e))throw Error(String(e));return tC?BigInt(l):l=Ypp(l)?l?"1":"0":P2L(l)?l.trim()||"0":String(l)};
htq=function(l,e){if(l.length>e.length)return!1;if(l.length<e.length||l===e)return!0;for(var O=0;O<l.length;O++){var E=l[O],J=e[O];if(E>J)return!1;if(E<J)return!0}};
LxA=function(l){var e=l>>>0;r1=e;DS=(l-e)/4294967296>>>0};
xq=function(l){if(l<0){LxA(-l);var e=_.b(tMu(r1,DS));l=e.next().value;e=e.next().value;r1=l>>>0;DS=e>>>0}else LxA(l)};
qpd=function(l,e){var O=e*4294967296+(l>>>0);return Number.isSafeInteger(O)?O:_.lz(l,e)};
e3=function(l,e){var O=e&2147483648;O&&(l=~l+1>>>0,e=~e>>>0,l==0&&(e=e+1>>>0));l=qpd(l,e);return typeof l==="number"?O?-l:l:O?"-"+l:l};
_.lz=function(l,e){e>>>=0;l>>>=0;if(e<=2097151)var O=""+(4294967296*e+l);else j0()?O=""+(BigInt(e)<<BigInt(32)|BigInt(l)):(O=(l>>>24|e<<8)&16777215,e=e>>16&65535,l=(l&16777215)+O*6777216+e*6710656,O+=e*8147497,e*=2,l>=1E7&&(O+=l/1E7>>>0,l%=1E7),O>=1E7&&(e+=O/1E7>>>0,O%=1E7),O=e+vVV(O)+vVV(l));return O};
vVV=function(l){l=String(l);return"0000000".slice(l.length)+l};
_.Eu=function(l,e){e&2147483648?j0()?l=""+(BigInt(e|0)<<BigInt(32)|BigInt(l>>>0)):(e=_.b(tMu(l,e)),l=e.next().value,e=e.next().value,l="-"+_.lz(l,e)):l=_.lz(l,e);return l};
Ju=function(l){if(l.length<16)xq(Number(l));else if(j0())l=BigInt(l),r1=Number(l&BigInt(4294967295))>>>0,DS=Number(l>>BigInt(32)&BigInt(4294967295));else{var e=+(l[0]==="-");DS=r1=0;for(var O=l.length,E=e,J=(O-e)%6+e;J<=O;E=J,J+=6)E=Number(l.slice(E,J)),DS*=1E6,r1=r1*1E6+E,r1>=4294967296&&(DS+=Math.trunc(r1/4294967296),DS>>>=0,r1>>>=0);e&&(e=_.b(tMu(r1,DS)),l=e.next().value,e=e.next().value,r1=l,DS=e)}};
tMu=function(l,e){e=~e;l?l=~l+1:e+=1;return[l,e]};
XF=function(l){return Array.prototype.slice.call(l)};
_.VC=function(l,e){throw Error(e===void 0?"unexpected value "+l+"!":e);};
_.ZO=function(l){if(l!=null&&typeof l!=="number")throw Error("I`"+typeof l+"`"+l);return l};
_.uz=function(l){if(l==null||typeof l==="number")return l;if(l==="NaN"||l==="Infinity"||l==="-Infinity")return Number(l)};
NTL=function(l){if(l!=null&&typeof l!=="boolean")throw Error("J`"+_.Wh(l)+"`"+l);return l};
_.rqx=function(l){if(l==null||typeof l==="boolean")return l;if(typeof l==="number")return!!l};
_.iz=function(l){switch(typeof l){case "bigint":return!0;case "number":return df(l);case "string":return DAW.test(l);default:return!1}};
_.nP=function(l){if(!df(l))throw _.CR("enum");return l|0};
_.ai=function(l){return l==null?l:df(l)?l|0:void 0};
Sp8=function(l){if(typeof l!=="number")throw _.CR("int32");if(!df(l))throw _.CR("int32");return l|0};
_.k4=function(l){return l==null?l:Sp8(l)};
_.Ii=function(l){if(l==null)return l;if(typeof l==="string"&&l)l=+l;else if(typeof l!=="number")return;return df(l)?l|0:void 0};
_.yC=function(l){if(l==null)return l;if(typeof l==="string"&&l)l=+l;else if(typeof l!=="number")return;return df(l)?l>>>0:void 0};
eFM=function(l){var e=0;e=e===void 0?0:e;if(!_.iz(l))throw _.CR("int64");var O=typeof l;switch(e){case 512:switch(O){case "string":return pP(l);case "bigint":return String(Hh(64,l));default:return Qdx(l)}case 1024:switch(O){case "string":return xAq(l);case "bigint":return _.qi(Hh(64,l));default:return lSq(l)}case 0:switch(O){case "string":return pP(l);case "bigint":return _.qi(Hh(64,l));default:return ch(l)}default:return _.VC(e,"Unknown format requested type for int64")}};
FF=function(l){return l==null?l:eFM(l)};
ORM=function(l){if(l[0]==="-")return!1;var e=l.length;return e<20?!0:e===20&&Number(l.substring(0,6))<184467};
Equ=function(l){var e=l.length;return l[0]==="-"?e<20?!0:e===20&&Number(l.substring(0,7))>-922337:e<19?!0:e===19&&Number(l.substring(0,6))<922337};
JCu=function(l){if(l<0){xq(l);var e=_.lz(r1,DS);l=Number(e);return fP(l)?l:e}e=String(l);if(ORM(e))return e;xq(l);return qpd(r1,DS)};
X6t=function(l){if(Equ(l))return l;Ju(l);return _.Eu(r1,DS)};
zFq=function(l){if(ORM(l))return l;Ju(l);return _.lz(r1,DS)};
ch=function(l){l=Ri(l);fP(l)||(xq(l),l=e3(r1,DS));return l};
_.bRp=function(l){l=Ri(l);return l>=0&&fP(l)?l:JCu(l)};
Qdx=function(l){l=Ri(l);if(fP(l))l=String(l);else{var e=String(l);Equ(e)?l=e:(xq(l),l=_.Eu(r1,DS))}return l};
_.M0W=function(l){l=Ri(l);if(l>=0&&fP(l))l=String(l);else{var e=String(l);ORM(e)?l=e:(xq(l),l=_.lz(r1,DS))}return l};
pP=function(l){var e=Ri(Number(l));if(fP(e))return String(e);e=l.indexOf(".");e!==-1&&(l=l.substring(0,e));return X6t(l)};
xAq=function(l){var e=Ri(Number(l));if(fP(e))return _.qi(e);e=l.indexOf(".");e!==-1&&(l=l.substring(0,e));return j0()?_.qi(Hh(64,BigInt(l))):_.qi(X6t(l))};
lSq=function(l){return fP(l)?_.qi(ch(l)):_.qi(Qdx(l))};
_.V0M=function(l){return fP(l)?_.qi(_.bRp(l)):_.qi(_.M0W(l))};
_.ZR2=function(l){var e=Ri(Number(l));if(fP(e)&&e>=0)return String(e);e=l.indexOf(".");e!==-1&&(l=l.substring(0,e));return zFq(l)};
_.uku=function(l){var e=Ri(Number(l));if(fP(e)&&e>=0)return _.qi(e);e=l.indexOf(".");e!==-1&&(l=l.substring(0,e));return j0()?_.qi((0,_.T0)(64,BigInt(l))):_.qi(zFq(l))};
_.Cqu=function(l){if(l==null)return l;if(typeof l==="bigint")return su(l)?l=Number(l):(l=Hh(64,l),l=su(l)?Number(l):String(l)),l;if(_.iz(l))return typeof l==="number"?ch(l):pP(l)};
oqW=function(l,e){e=e===void 0?!1:e;var O=typeof l;if(l==null)return l;if(O==="bigint")return String(Hh(64,l));if(_.iz(l))return O==="string"?pP(l):e?Qdx(l):ch(l)};
_.$i2=function(l){var e=typeof l;if(l==null)return l;if(e==="bigint")return _.qi(Hh(64,l));if(_.iz(l))return e==="string"?xAq(l):lSq(l)};
W1q=function(l){if(l==null)return l;var e=typeof l;if(e==="bigint")return String(Hh(64,l));if(_.iz(l)){if(e==="string")return pP(l);if(e==="number")return ch(l)}};
diM=function(l){if(l==null)return l;var e=typeof l;if(e==="bigint")return String((0,_.T0)(64,l));if(_.iz(l)){if(e==="string")return _.ZR2(l);if(e==="number")return _.bRp(l)}};
_.G0=function(l){if(typeof l!=="string")throw Error();return l};
Ph=function(l){if(l!=null&&typeof l!=="string")throw Error();return l};
_.Uu=function(l){return l==null||typeof l==="string"?l:void 0};
gqx=function(l,e,O,E){if(l!=null&&l[Y4]===hu)return l;if(!Array.isArray(l))return O?E&2?((l=e[LP])||(l=new e,yH(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),l=e[LP]=l),e=l):e=new e:e=void 0,e;O=l[_.aq]|0;E=O|E&32|E&2;E!==O&&m1(l,E);return new e(l)};
iRx=function(l,e,O){l=e?Sp8(l):_.Ii(l);return l==null?O?0:void 0:l|0};
w6L=function(l){return l};
ACM=function(l){return l};
aSt=function(l,e,O,E,J,z){l=gqx(l,E,O,z);J&&(l=nqt(l));return l};
kS8=function(l){return[l,this.get(l)]};
yCu=function(){return ISV||(ISV=new qo(yH([]),void 0,void 0,void 0,miW))};
rf=function(l){var e=vh(No);return e?l[e]:void 0};
jqx=function(l,e){var O=O===void 0?!1:O;if(vh(p6t)&&vh(No)&&void 0===p6t){var E=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=E[No];if(!J)return;if(J=J.reviveUnknownFields)try{J(E,e,K1M);return}catch(z){Ep(z)}}O&&(l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(O=vh(No))&&O in l&&(l=l[O])&&delete l[e])};
cCx=function(l,e){var O=vh(No),E;nR&&O&&((E=l[O])==null?void 0:E[e])!=null&&$q(HRT,3)};
fSW=function(l,e){e<100||$q(F1p,1)};
GSp=function(l,e,O,E){var J=E!==void 0;E=!!E;var z=vh(No),M;!J&&nR&&z&&(M=l[z])&&DO(M,fSW);z=[];var Z=l.length;M=4294967295;var u=!1,d=!!(e&64),g=d?e&128?0:-1:void 0;if(!(e&1)){var w=Z&&l[Z-1];w!=null&&typeof w==="object"&&w.constructor===Object?(Z--,M=Z):w=void 0;if(d&&!(e&128)&&!J){u=!0;var n;M=((n=RFt)!=null?n:w6L)(M-g,g,l,w)+g}}e=void 0;for(n=0;n<Z;n++){var k=l[n];if(k!=null&&(k=O(k,E))!=null)if(d&&n>=M){var y=n-g,c=void 0;((c=e)!=null?c:e={})[y]=k}else z[n]=k}if(w)for(var f in w)Z=w[f],Z!=null&&
(Z=O(Z,E))!=null&&(n=+f,k=void 0,d&&!Number.isNaN(n)&&(k=n+g)<M?z[k]=Z:(n=void 0,((n=e)!=null?n:e={})[f]=Z));e&&(u?z.push(e):z[M]=e);J&&vh(No)&&(l=rf(l))&&l instanceof T1x&&(z[No]=sqM(l));return z};
B1V=function(l){l[0]=S3(l[0]);l[1]=S3(l[1]);return l};
S3=function(l){switch(typeof l){case "number":return Number.isFinite(l)?l:""+l;case "bigint":return su(l)?Number(l):""+l;case "boolean":return l?1:0;case "object":if(Array.isArray(l)){var e=l[_.aq]|0;return l.length===0&&e&1?void 0:GSp(l,e,S3)}if(l!=null&&l[Y4]===hu)return Pqu(l);if(l instanceof fR){e=l.JSC$6856_value_;if(e==null)l="";else if(typeof e==="string")l=e;else{if(yqW){for(var O="",E=0,J=e.length-10240;E<J;)O+=String.fromCharCode.apply(null,e.subarray(E,E+=10240));O+=String.fromCharCode.apply(null,
E?e.subarray(E):e);e=btoa(O)}else e=_.x4(e);l=l.JSC$6856_value_=e}return l}if(l instanceof qo)return l=l.size!==0?Array.from(lk.prototype.entries.call(l),B1V):void 0,l;return}return l};
eO=function(l,e){if(e){RFt=e==null||e===w6L||e[Uip]!==YxT?w6L:e;try{return Pqu(l)}finally{RFt=void 0}}return Pqu(l)};
Pqu=function(l){l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return GSp(l,l[_.aq]|0,S3)};
t0x=function(l){switch(typeof l){case "boolean":return hF8||(hF8=[0,void 0,!0]);case "number":return l>0?void 0:l===0?L1g||(L1g=[0,void 0]):[-l,void 0];case "string":return[0,l];case "object":return l}};
Jp=function(l,e,O){return l=_.Ej(l,e[0],e[1],O?1:2)};
_.Ej=function(l,e,O,E){E=E===void 0?0:E;if(l==null){var J=32;O?(l=[O],J|=128):l=[];e&&(J=J&-8380417|(e&1023)<<13)}else{if(!Array.isArray(l))throw Error("L");J=l[_.aq]|0;2048&J&&!(2&J)&&qxu();if(J&256)throw Error("N");if(J&64)return E!==0||J&2048||m1(l,J|2048),l;if(O&&(J|=128,O!==l[0]))throw Error("O");a:{O=l;J|=64;var z=O.length;if(z){var M=z-1,Z=O[M];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object){e=J&128?0:-1;M-=e;if(M>=1024)throw Error("Q");for(var u in Z)z=+u,z<M&&(O[z+e]=Z[u],delete Z[u]);
J=J&-8380417|(M&1023)<<13;break a}}if(e){u=Math.max(e,z-(J&128?0:-1));if(u>1024)throw Error("R");J=J&-8380417|(u&1023)<<13}}}J|=64;E===0&&(J|=2048);m1(l,J);return l};
qxu=function(){$q(vqL,5)};
Di2=function(l,e){if(typeof l!=="object")return l;if(Array.isArray(l)){var O=l[_.aq]|0;return l.length===0&&O&1?void 0:N1g(l,O,e)}if(l!=null&&l[Y4]===hu)return rCx(l);if(l instanceof qo){e=l.arrayState;if(e&2)return l;if(!l.size)return;O=yH(Array.from(lk.prototype.entries.call(l)));if(l.valueCtor)for(l=0;l<O.length;l++){var E=O[l],J=E[1];J==null||typeof J!=="object"?J=void 0:J!=null&&J[Y4]===hu?J=rCx(J):Array.isArray(J)?J=N1g(J,J[_.aq]|0,!!(e&32)):J=void 0;E[1]=J}return O}if(l instanceof fR)return l};
N1g=function(l,e,O){if(e&2)return l;!O||4096&e||16&e?l=XS(l,e,!1,O&&!(e&16)):(Iq(l,34),e&4&&Object.freeze(l));return l};
zu=function(l,e,O){l=new l.constructor(e);O&&(l.copyOnWrite=H6);l.noLegacyNull=H6;return l};
rCx=function(l){var e=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=e[_.aq]|0;return c6(l,O)?l:bk(l,e,O)?zu(l,e):XS(e,O)};
XS=function(l,e,O,E){E!=null||(E=!!(34&e));l=GSp(l,e,Di2,E);E=32;O&&(E|=2);e=e&8380609|E;m1(l,e);return l};
nqt=function(l){var e=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=e[_.aq]|0;return c6(l,O)?bk(l,e,O)?zu(l,e,!0):new l.constructor(XS(e,O,!1)):l};
VI=function(l){if(l.copyOnWrite!==H6)return!1;var e=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;e=XS(e,e[_.aq]|0);Iq(e,2048);l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=e;l.copyOnWrite=void 0;l.noLegacyNull=void 0;return!0};
o5=function(l){if(!VI(l)&&c6(l,l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.aq]|0))throw Error();};
$H=function(l,e){e===void 0&&(e=l[_.aq]|0);e&32&&!(e&4096)&&m1(l,e|4096)};
bk=function(l,e,O){return O&2?!0:O&32&&!(O&4096)?(m1(e,O|2),l.copyOnWrite=H6,!0):!1};
dc=function(l,e,O,E,J){var z=O+(J?0:-1),M=l.length-1;if(M>=1+(J?0:-1)&&z>=M){var Z=l[M];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object)return Z[O]=E,e}if(z<=M)return l[z]=E,e;if(E!==void 0){var u;M=((u=e)!=null?u:e=l[_.aq]|0)>>13&1023||536870912;O>=M?E!=null&&(z={},l[M+(J?0:-1)]=(z[O]=E,z)):l[z]=E}return e};
_.nJ=function(l,e,O,E,J){var z=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=z[_.aq]|0;E=c6(l,M)?1:E;J=!!J||E===3;E===2&&VI(l)&&(z=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=z[_.aq]|0);l=SxA(z,e);var Z=l===ik?7:l[_.aq]|0,u=Qqt(Z,M);var d=4&u?!1:!0;if(d){4&u&&(l=XF(l),Z=0,u=wc(u,M),M=dc(z,M,e,l));for(var g=0,w=0;g<l.length;g++){var n=O(l[g]);n!=null&&(l[w++]=n)}w<g&&(l.length=w);O=(u|4)&-513;u=O&=-1025;u&=-4097}u!==Z&&(m1(l,u),2&u&&Object.freeze(l));return l=lOt(l,u,z,
M,e,E,d,J)};
lOt=function(l,e,O,E,J,z,M,Z){var u=e;z===1||(z!==4?0:2&e||!(16&e)&&32&E)?a5(e)||(e|=!l.length||M&&!(4096&e)||32&E&&!(4096&e||16&e)?2:256,e!==u&&m1(l,e),Object.freeze(l)):(z===2&&a5(e)&&(l=XF(l),u=0,e=wc(e,E),E=dc(O,E,J,l)),a5(e)||(Z||(e|=16),e!==u&&m1(l,e)));2&e||!(4096&e||16&e)||$H(O,E);return l};
SxA=function(l,e,O){l=kH(l,e,O);return Array.isArray(l)?l:ik};
Qqt=function(l,e){2&e&&(l|=2);return l|1};
a5=function(l){return!!(2&l)&&!!(4&l)||!!(256&l)};
e4p=function(l){return _.sx(l,!0)};
OPV=function(l,e){var O=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=O[_.aq]|0;a:{var J=E;E=c6(l,E);!E&&VI(l)&&(O=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=O[_.aq]|0);var z=kH(O,e);l=!1;if(z==null){if(E){e=yCu();break a}z=[]}else if(z.constructor===qo)if(z.arrayState&2&&!E)z=Array.from(lk.prototype.entries.call(z));else{e=z;break a}else Array.isArray(z)?l=!!((z[_.aq]|0)&2):z=[];if(E){if(!z.length){e=yCu();break a}l||(l=!0,yH(z))}else if(l){l=!1;E=z;E=XF(E);for(z=0;z<
E.length;z++){var M=E[z]=XF(E[z]);Array.isArray(M[1])&&(M[1]=yH(M[1]))}z=E}!l&&J&32&&Rtu(z);E=new qo(z,void 0,iRx,iRx);J=dc(O,J,e,E);l||$H(O,J);e=E}return e};
_.I5=function(l,e,O,E){o5(l);var J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=J[_.aq]|0;if(O==null)return dc(J,z,e),l;var M=O===ik?7:O[_.aq]|0,Z=M,u=a5(M),d=u||Object.isFrozen(O);u||(M=0);d||(O=XF(O),Z=0,M=wc(M,z),d=!1);M|=5;var g;u=(g=fWt(M))!=null?g:0;for(g=0;g<O.length;g++){var w=O[g],n=E(w,u);Object.is(w,n)||(d&&(O=XF(O),Z=0,M=wc(M,z),d=!1),O[g]=n)}M!==Z&&(d&&(O=XF(O),M=wc(M,z)),m1(O,M));dc(J,z,e,O);return l};
_.mb=function(l,e,O,E,J){o5(l);var z=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;dc(z,z[_.aq]|0,e,(E==="0"?Number(O)===0:O===E)?void 0:O,J);return l};
_.yI=function(l,e,O){if(e&2)throw Error();var E=Ux(e),J=SxA(l,O,E),z=J===ik?7:J[_.aq]|0,M=Qqt(z,e);if(2&M||a5(M)||16&M)J=XF(J),z=0,M=wc(M,e),dc(l,e,O,J,E);M&=-13;M!==z&&m1(J,M);return J};
E4g=function(l){if(nR){var e;return(e=l[pJ])!=null?e:l[pJ]=new Map}if(pJ in l)return l[pJ];e=new Map;Object.defineProperty(l,pJ,{value:e});return e};
Xhx=function(l,e,O,E,J){var z=E4g(l),M=Ju2(z,l,e,O,J);M!==E&&(M&&(e=dc(l,e,M,void 0,J)),z.set(O,E));return e};
Ju2=function(l,e,O,E,J){var z=l.get(E);if(z!=null)return z;for(var M=z=0;M<E.length;M++){var Z=E[M];kH(e,Z,J)!=null&&(z!==0&&(O=dc(e,O,z,void 0,J)),z=Z)}l.set(E,z);return z};
KJ=function(l,e,O,E,J){var z=!1;E=kH(l,E,J,function(M){var Z=gqx(M,O,!1,e);z=Z!==M&&Z!=null;return Z});
if(E!=null)return z&&!c6(E)&&$H(l,e),E};
z4p=function(l,e,O,E,J,z,M,Z){var u=c6(l,O);z=u?1:z;M=!!M||z===3;u=Z&&!u;(z===2||u)&&VI(l)&&(e=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=e[_.aq]|0);l=SxA(e,J);var d=l===ik?7:l[_.aq]|0,g=Qqt(d,O);if(Z=!(4&g)){var w=l,n=O,k=!!(2&g);k&&(n|=2);for(var y=!k,c=!0,f=0,P=0;f<w.length;f++){var h=gqx(w[f],E,!1,n);if(h instanceof E){if(!k){var N=c6(h);y&&(y=!N);c&&(c=N)}w[P++]=h}}P<f&&(w.length=P);g|=4;g=c?g&-4097:g|4096;g=y?g|8:g&-9}g!==d&&(m1(l,g),2&g&&Object.freeze(l));if(u&&!(8&g||!l.length&&
(z===1||(z!==4?0:2&g||!(16&g)&&32&O)))){a5(g)&&(l=XF(l),g=wc(g,O),O=dc(e,O,J,l));E=l;u=g;for(d=0;d<E.length;d++)w=E[d],g=nqt(w),w!==g&&(E[d]=g);u|=8;g=u=E.length?u|4096:u&-4097;m1(l,g)}return l=lOt(l,g,e,O,J,z,Z,M)};
bPx=function(l){l==null&&(l=void 0);return l};
wc=function(l,e){return l=(2&e?l|2:l&-3)&-273};
_.M32=function(l,e,O,E,J){o5(l);e=_.nJ(l,e,J,2,!0);var z;J=(z=fWt(e===ik?7:e[_.aq]|0))!=null?z:0;e.push(O(E,J));return l};
V38=function(l,e,O,E,J,z,M){o5(l);var Z=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=z4p(l,Z,Z[_.aq]|0,O,e,2,!0);if(z&&M)J!=null||(J=l.length-1),GS(l,J),l.splice(J,z),l.length||(l[_.aq]&=-4097);else{if(z){if(typeof J!=="number"||J<0||J>l.length)throw Error();}else E=E!=null?E:new O;J!=void 0?l.splice(J,z,E):l.push(E);J=O=l===ik?7:l[_.aq]|0;(E=c6(E))?(O&=-9,l.length===1&&(O&=-4097)):O|=4096;O!==J&&m1(l,O);E||$H(Z)}};
ZP8=function(l,e){if(typeof l==="string")return new cv(KxM(l),e);if(Array.isArray(l))return new cv(new Uint8Array(l),e);if(l.constructor===Uint8Array)return new cv(l,!1);if(l.constructor===ArrayBuffer)return l=new Uint8Array(l),new cv(l,!1);if(l.constructor===fR)return e=FS(l)||new Uint8Array(0),new cv(e,!0,l);if(l instanceof Uint8Array)return l=l.constructor===Uint8Array?l:new Uint8Array(l.buffer,l.byteOffset,l.byteLength),new cv(l,!1);throw Error();};
fJ=function(){var l=function(){throw Error();};
Object.setPrototypeOf(l,l.prototype);return l};
Czx=function(l,e){var O=O===void 0?uFV:O;return new R5(l,e,O)};
dog=function(l,e,O,E,J){e=o4x(e,E);e!=null&&(O=_.$oL(l,O),J(e,l),_.WHx(l,O))};
sj=function(l,e,O,E){var J=E[l];if(J)return J;J={};J.binaryFields=E;J.messageMetadata=t0x(E[0]);var z=E[1],M=1;z&&z.constructor===Object&&(J.extensions=z,z=E[++M],typeof z==="function"&&(J.isMessageSet=!0,g48!=null||(g48=z),iPx!=null||(iPx=E[M+1]),z=E[M+=2]));for(var Z={};z&&Array.isArray(z)&&z.length&&typeof z[0]==="number"&&z[0]>0;){for(var u=0;u<z.length;u++)Z[z[u]]=z;z=E[++M]}for(u=1;z!==void 0;){typeof z==="number"&&(u+=z,z=E[++M]);var d=void 0;if(z instanceof R5)var g=z;else g=whM,M--;z=void 0;
if((z=g)==null?0:z.$$isMsg){z=E[++M];d=E;var w=M;typeof z==="function"&&(z=z(),d[w]=z);d=z}z=E[++M];w=u+1;typeof z==="number"&&z<0&&(w-=z,z=E[++M]);for(;u<w;u++){var n=Z[u];d?O(J,u,g,d,n):e(J,u,g,n)}}return E[l]=J};
n4L=function(l){return Array.isArray(l)?l[0]instanceof R5?l:[Aux,l]:[l,void 0]};
o4x=function(l,e){if(l instanceof _.Gu)return l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(l))return Jp(l,e,!1)};
aOW=function(l,e,O,E){var J=O.$$binaryReaderFn;l[e]=E?function(z,M,Z){return J(z,M,Z,E)}:J};
k08=function(l,e,O,E,J){var z=O.$$binaryReaderFn,M,Z;l[e]=function(u,d,g){return z(u,d,g,Z||(Z=sj(Bv,aOW,k08,E).messageMetadata),M||(M=IOp(E)),J)}};
IOp=function(l){var e=l[mod];if(e!=null)return e;var O=sj(Bv,aOW,k08,l);e=O.isMessageSet?function(E,J){return g48(E,J,O)}:function(E,J){for(;yuq(J)&&J.nextWireType_!=4;){var z=J.nextField_,M=O[z];
if(M==null){var Z=O.extensions;Z&&(Z=Z[z])&&(Z=phL(Z),Z!=null&&(M=O[z]=Z))}if(M==null||!M(J,E,z)){Z=J;M=Z.fieldCursor_;Pv(Z);if(Z.discardUnknownFields)var u=void 0;else{var d=Z.decoder_.cursor_-M;Z.decoder_.cursor_=M;u=KHx(Z.decoder_,d)}d=Z=M=void 0;var g=E;u&&((M=(Z=(d=g[No])!=null?d:g[No]=new T1x)[z])!=null?M:Z[z]=[]).push(u)}}if(E=rf(E))E.reviveUnknownFields=O.binaryFields[jiM];return!0};
l[mod]=e;l[jiM]=HPg.bind(l);return e};
HPg=function(l,e,O,E){var J=this[Bv],z=this[mod],M=Jp(void 0,J.messageMetadata,!1),Z=rf(l);if(Z){var u=!1,d=J.extensions;if(d){J=function(y,c,f){if(f.length!==0)if(d[c])for(y=_.b(f),c=y.next();!c.done;c=y.next()){c=cu2(c.value);try{u=!0,z(M,c)}finally{c.free()}}else E==null||E(l,c,f)};
if(e==null)DO(Z,J);else if(Z!=null){var g=Z[e];g&&J(Z,e,g)}if(u){var w=l[_.aq]|0;if(w&2&&w&2048&&(O==null||!O.reviveIntoImmutable))throw Error();var n=Ux(w),k=function(y,c){if(kH(l,y,n)!=null)switch(O==null?void 0:O.resolutionBehavior){case 1:return;default:throw Error();}c!=null&&(w=dc(l,w,y,c,n));delete Z[y]};
e==null?sdq(M,M[_.aq]|0,function(y,c){k(y,c)}):k(e,kH(M,e,n))}}}};
phL=function(l){l=n4L(l);var e=l[0].$$binaryReaderFn;if(l=l[1]){var O=IOp(l),E=sj(Bv,aOW,k08,l).messageMetadata;return function(J,z,M){return e(J,z,M,E,O)}}return e};
Uj=function(l,e,O){l[e]=O.$$binaryWriterFn};
hp=function(l,e,O,E){var J,z,M=O.$$binaryWriterFn;l[e]=function(Z,u,d){return M(Z,u,d,z||(z=sj(YH,Uj,hp,E).messageMetadata),J||(J=FHp(E)))}};
FHp=function(l){var e=l[fOV];if(!e){var O=sj(YH,Uj,hp,l);e=function(E,J){return R4A(E,J,O)};
l[fOV]=e}return e};
R4A=function(l,e,O){sdq(l,l[_.aq]|0,function(E,J){if(J!=null){var z=Tfd(O,E);z?z(e,J,E):E<500||$q(siT,3)}});
(l=rf(l))&&DO(l,function(E,J,z){LJ(e,e.encoder_.end());for(E=0;E<z.length;E++)LJ(e,FS(z[E])||new Uint8Array(0))})};
Tfd=function(l,e){var O=l[e];if(O)return O;if(O=l.extensions)if(O=O[e]){O=n4L(O);var E=O[0].$$binaryWriterFn;if(O=O[1]){var J=FHp(O),z=sj(YH,Uj,hp,O).messageMetadata;O=l.isMessageSet?iPx(z,J):function(M,Z,u){return E(M,Z,u,z,J)}}else O=E;
return l[e]=O}};
_.G08=function(l,e,O){if(Array.isArray(e)){var E=e[_.aq]|0;if(E&4)return e;for(var J=0,z=0;J<e.length;J++){var M=l(e[J]);M!=null&&(e[z++]=M)}z<J&&(e.length=z);O&&(m1(e,(E|5)&-1537),E&2&&Object.freeze(e));return e}};
_.tp=function(l,e,O){return new R5(l,e,O)};
_.BfV=function(l,e,O){return new R5(l,e,O)};
_.qH=function(l,e,O){dc(l,l[_.aq]|0,e,O,Ux(l[_.aq]|0))};
Pzx=function(l,e,O){e=_.uz(e);e!=null&&(_.NH(l,O,1),l=l.encoder_,O=rc||(rc=new DataView(new ArrayBuffer(8))),O.setFloat64(0,+e,!0),r1=O.getUint32(0,!0),DS=O.getUint32(4,!0),_.DV(l,r1),_.DV(l,DS))};
_.SO=function(l,e,O){e=W1q(e);if(e!=null){switch(typeof e){case "string":UoA(e)}if(e!=null)switch(_.NH(l,O,0),typeof e){case "number":l=l.encoder_;xq(e);Yuu(l,r1,DS);break;case "bigint":O=BigInt.asUintN(64,e);O=new LHT(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));Yuu(l.encoder_,O.JSC$6900_lo,O.JSC$6900_hi);break;default:O=UoA(e),Yuu(l.encoder_,O.JSC$6900_lo,O.JSC$6900_hi)}}};
qu8=function(l,e,O){e=_.Ii(e);e!=null&&e!=null&&(_.NH(l,O,0),_.t3d(l.encoder_,e))};
_.Nfq=function(l,e,O){v42(l,O,diM(e))};
_.ruA=function(l,e,O){e=_.rqx(e);e!=null&&(_.NH(l,O,0),l.encoder_.JSC$6902_buffer_.push(e?1:0))};
_.Su2=function(l,e,O){e=_.Uu(e);e!=null&&DoV(l,O,Jqx(e))};
QiV=function(l,e,O,E,J){e=o4x(e,E);e!=null&&(O=_.$oL(l,O),J(e,l),_.WHx(l,O))};
_.xox=function(l,e,O){e=e==null||typeof e=="string"||e instanceof fR?e:void 0;e!=null&&DoV(l,O,ZP8(e,!0).buffer)};
_.lVp=function(l,e,O){e=_.Ii(e);e!=null&&(e=parseInt(e,10),_.NH(l,O,0),_.t3d(l.encoder_,e))};
_.QI=function(l,e){return function(O,E){var J={treatNewDataAsImmutable:!0};E&&Object.assign(J,E);O=cu2(O,void 0,void 0,J);try{var z=new l,M=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;IOp(e)(M,O);var Z=z}finally{O.free()}return Z}};
_.xH=function(l){return function(e){return eS8(e,l)}};
OJV=function(l){return function(){return eS8(this,l)}};
_.lr=function(l){return hC(function(e){return e instanceof l&&!c6(e)})};
_.ev=function(l){return function(e){return EHu(l,e)}};
bJ8=function(l,e){return JpM({child:l,origin:e||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Xvt,getPayloadCase:function(O){return O.getPayloadCase()},
createInitMessage:function(O){var E=new ON,J=new zSV;O=_.EN(J,1,O);return _.Jz(E,5,XC,O)}})};
br=function(l){return{valueOf:l}.valueOf()};
VOT=function(){var l=null;if(!MOA)return l;try{var e=function(O){return O};
l=MOA.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(O){}return l};
uSL=function(){ZJA===void 0&&(ZJA=VOT());return ZJA};
_.VS=function(l){var e=uSL();l=e?e.createScriptURL(l):l;return new Mm(l)};
_.Z9=function(l){if(l instanceof Mm)return l.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
ur=function(l){return l.toString().indexOf("`")===-1};
oH=function(l){return new _.CU(Ck2,l)};
$e=function(l){return l instanceof _.CU};
_.W2=function(l){if($e(l))return l.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
dG=function(l){return new oHx(function(e){return e.substr(0,l.length+1).toLowerCase()===l+":"})};
ir=function(l,e){e=e===void 0?$HL:e;if($e(l))return l;for(var O=0;O<e.length;++O){var E=e[O];if(E instanceof oHx&&E.isValid(l))return oH(l)}};
_.nU=function(l,e){e=e===void 0?$HL:e;return ir(l,e)||wG};
_.aH=function(l){var e=window;if(typeof MediaSource!=="undefined"&&l instanceof MediaSource||typeof e.ManagedMediaSource!=="undefined"&&l instanceof e.ManagedMediaSource)return oH(URL.createObjectURL(l));e=l.type;e.toLowerCase()==="application/octet-stream"?e=!0:(e=e.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),e=(e==null?void 0:e.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(e[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(e[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(e[1])||/^font\/[\w-]+$/i.test(e[1])));if(!e)throw Error("da");return oH(URL.createObjectURL(l))};
_.IH=function(l){for(var e=_.ke.apply(1,arguments),O=[l[0]],E=0;E<e.length;E++)O.push(String(e[E])),O.push(l[E+1]);return oH(O.join(""))};
_.dH8=function(l){if(!Wbt){a:{var e=document.createElement("a");try{e.href=l}catch(O){l=void 0;break a}l=e.protocol;l=l===":"||l===""?"https:":l}return l}try{e=new URL(l)}catch(O){return"https:"}return e.protocol};
_.m7=function(l){l instanceof _.CU?l=_.W2(l):l=gHL.test(l)?l:void 0;return l};
yS=function(l,e){e=_.m7(e);e!==void 0&&(l.href=e)};
KU=function(l){var e=uSL();l=e?e.createHTML(l):l;return new pU(l)};
jv=function(l){if(l instanceof pU)return l.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.H2=function(l,e){l.src=_.Z9(e).toString()};
iJd=function(l,e){l.setAttribute("sandbox","");for(var O=0;O<e.length;O++)l.sandbox.supports&&!l.sandbox.supports(e[O])||l.sandbox.add(e[O])};
_.wvu=function(l,e,O){l.removeAttribute("srcdoc");switch(e){case 0:if(O instanceof Mm)throw new c2("TrustedResourceUrl",0);iJd(l,[]);e=_.m7(O);e!==void 0&&(l.src=e);break;case 1:if(!(O instanceof Mm))throw new c2(typeof O,1);iJd(l,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.H2(l,O);break;case 2:if(O instanceof Mm)throw new c2("TrustedResourceUrl",2);iJd(l,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
e=_.m7(O);e!==void 0&&(l.src=e);break;default:_.VC(e)}};
_.FC=function(l,e,O,E){e=_.m7(e);return e!==void 0?l.open(e,O,E):null};
_.fU=function(l){l=l===void 0?document:l;var e,O;l=(O=(e=l).querySelector)==null?void 0:O.call(e,"script[nonce]");return l==null?"":l.nonce||l.getAttribute("nonce")||""};
_.G1=function(l){var e=uSL();l=e?e.createScript(l):l;return new _.T1(l)};
B2=function(l){if(l instanceof _.T1)return l.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
Ap8=function(l){var e=_.fU(l.ownerDocument);e&&l.setAttribute("nonce",e)};
_.P2=function(l,e){l.textContent=B2(e);Ap8(l)};
_.UN=function(l,e){l.src=_.Z9(e);Ap8(l)};
_.Ye=function(l,e){if(l.nodeType===1&&/^(script|style)$/i.test(l.tagName))throw Error("da");l.innerHTML=jv(e)};
_.hz=function(l,e,O,E){if(l.length===0)throw Error("da");l=l.map(function(z){if(z instanceof nH2)z=z.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return z});
var J=O.toLowerCase();if(l.every(function(z){return J.indexOf(z)!==0}))throw Error("ea`"+O);
e.setAttribute(O,E)};
_.LU=function(l,e,O){if(e instanceof Mm)l.href=_.Z9(e).toString(),l.rel=O;else{if(aVt.indexOf(O)===-1)throw Error("fa`"+O);e=_.m7(e);e!==void 0&&(l.href=e,l.rel=O)}};
ku2=function(l){return"function"==typeof _.tz&&l instanceof _.tz};
_.IVp=function(l){if(ku2(l))return l.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.qm=function(l,e){e=_.m7(e);e!==void 0&&(l.href=e)};
v2=function(l,e){l&&(e=l.indexOf(e),0<=e&&l.splice(e,1))};
Nm=function(l){return typeof l==="function"};
mHW=function(l){return l instanceof rG||l&&"closed"in l&&Nm(l.remove)&&Nm(l.add)&&Nm(l.unsubscribe)};
D9=function(){};
Sv=function(l){ypg(function(){throw l;})};
QS=function(l){return l};
l1=function(){return pvA(_.ke.apply(0,arguments))};
pvA=function(l){return l.length===0?QS:l.length===1?l[0]:function(e){return l.reduce(function(O,E){return E(O)},e)}};
Kbp=function(l){var e;return(e=l!=null?l:void 0)!=null?e:Promise};
j5A=function(l,e){return new eS(function(O){var E=0;return e.schedule(function(){E===l.length?O.complete():(O.next(l[E++]),O.closed||this.schedule())})})};
HJx=function(l,e){if(!l)throw Error("ga");return new eS(function(O){var E=new rG;E.add(e.schedule(function(){var J=l[Symbol.asyncIterator]();E.add(e.schedule(function(){var z=this;J.next().then(function(M){M.done?O.complete():(O.next(M.value),z.schedule())})}))}));
return E})};
cpL=function(l,e,O){e=e.schedule(function(){try{O.call(this)}catch(E){l.error(E)}},0);
l.add(e)};
Fbg=function(l,e){return new eS(function(O){var E;O.add(e.schedule(function(){E=l[O$]();cpL(O,e,function(){var J=E.next(),z=J.value;J.done?O.complete():(O.next(z),this.schedule())})}));
return function(){var J;return Nm((J=E)==null?void 0:J.return)&&E.return()}})};
fVt=function(l,e){return new eS(function(O){var E=new rG;E.add(e.schedule(function(){var J=l[E$]();E.add(J.subscribe({next:function(z){E.add(e.schedule(function(){return O.next(z)}))},
error:function(z){E.add(e.schedule(function(){return O.error(z)}))},
complete:function(){E.add(e.schedule(function(){return O.complete()}))}}))}));
return E})};
RSd=function(l,e){return new eS(function(O){return e.schedule(function(){return l.then(function(E){O.add(e.schedule(function(){O.next(E);O.add(e.schedule(function(){return O.complete()}))}))},function(E){O.add(e.schedule(function(){return O.error(E)}))})})})};
Tcq=function(l){return new TypeError("ha`"+(l!==null&&typeof l==="object"?"an invalid object":"'"+l+"'"))};
Gux=function(l,e){if(l!=null){if(Nm(l[E$]))return fVt(l,e);if(s5M(l))return j5A(l,e);if(Nm(l==null?void 0:l.then))return RSd(l,e);if(Symbol.asyncIterator&&Nm(l==null?void 0:l[Symbol.asyncIterator]))return HJx(l,e);if(Nm(l==null?void 0:l[O$]))return Fbg(l,e)}throw Tcq(l);};
zq=function(l,e){return e?Gux(l,e):JD(l)};
JD=function(l){if(l instanceof eS)return l;if(l!=null){if(Nm(l[E$]))return BcW(l);if(s5M(l))return Pkd(l);if(Nm(l==null?void 0:l.then))return UHt(l);if(Symbol.asyncIterator&&Nm(l==null?void 0:l[Symbol.asyncIterator]))return Yjx(l);if(Nm(l==null?void 0:l[O$]))return hSW(l)}throw Tcq(l);};
BcW=function(l){return new eS(function(e){var O=l[E$]();if(Nm(O.subscribe))return O.subscribe(e);throw new TypeError("ia");})};
Pkd=function(l){return new eS(function(e){for(var O=0;O<l.length&&!e.closed;O++)e.next(l[O]);e.complete()})};
UHt=function(l){return new eS(function(e){l.then(function(O){e.closed||(e.next(O),e.complete())},function(O){return e.error(O)}).then(null,Sv)})};
hSW=function(l){return new eS(function(e){for(var O=l[O$]();!e.closed;){var E=O.next(),J=E.value;E.done?e.complete():e.next(J)}return function(){return Nm(O==null?void 0:O.return)&&O.return()}})};
Yjx=function(l){return new eS(function(e){Lbp(l,e).catch(function(O){return e.error(O)})})};
Lbp=function(l,e){var O,E,J,z,M,Z;return _.V(function(u){switch(u.nextAddress){case 1:_.b1(u,2,3);var d=l[Symbol.asyncIterator];z=d!==void 0?d.call(l):new tOx(_.b(l));case 5:return _.C(u,z.next(),8);case 8:E=u.yieldResult;if(E.done){u.jumpTo(3);break}M=E.value;e.next(M);u.jumpTo(5);break;case 3:_.MR(u);_.VE(u,9);if(!E||E.done||!(J=z.return)){u.jumpTo(9);break}return _.C(u,J.call(z),9);case 9:_.MR(u,0,0,1);if(O)throw O.error;_.ZU(u,10,1);break;case 10:_.ZU(u,4);break;case 2:Z=_.u1(u);O={error:Z};u.jumpTo(3);
break;case 4:e.complete(),_.Cl(u)}})};
oz=function(l,e){return e?j5A(l,e):Pkd(l)};
qju=function(l){return Nm(l[l.length-1])?l.pop():void 0};
$A=function(l){var e=l[l.length-1];return e&&Nm(e.schedule)?l.pop():void 0};
WI=function(){var l=_.ke.apply(0,arguments),e=$A(l);return e?j5A(l,e):oz(l)};
dp=function(l){var e=Nm(l)?l:function(){return l};
return new eS(function(O){return O.error(e())})};
gp=function(l){return function(e){if(Nm(e==null?void 0:e.lift))return e.lift(function(O){try{return l(O,this)}catch(E){this.error(E)}});
throw new TypeError("ja");}};
nl=function(){return gp(function(l,e){var O=null;l._refCount++;var E=new i1(e,void 0,void 0,void 0,function(){if(!l||l._refCount<=0||0<--l._refCount)O=null;else{var J=l._connection,z=O;O=null;!J||z&&J!==z||J.unsubscribe();e.unsubscribe()}});
l.subscribe(E);E.closed||(O=l.connect())})};
Nct=function(){var l=vHg;var e=e===void 0?0:e;return gp(function(O,E){E.add(l.schedule(function(){return O.subscribe(E)},e))})};
az=function(l){return gp(function(e,O){var E=0;e.subscribe(new i1(O,function(J){O.next(l.call(void 0,J,E++))}))})};
DHL=function(l){return az(function(e){return rpL(e)?l.apply(null,_.kA(e)):l(e)})};
e5d=function(l){if(l.length===1){var e=l[0];if(SjM(e))return{args:e,keys:null};if(e&&typeof e==="object"&&Q5T(e)===xHt)return l=l9A(e),{args:l.map(function(O){return e[O]}),
keys:l}}return{args:l,keys:null}};
mA=function(){var l=_.ke.apply(0,arguments),e=$A(l),O=qju(l);l=e5d(l);var E=l.args,J=l.keys;if(E.length===0)return zq([],e);e=new eS(OUu(E,e,J?function(z){for(var M={},Z=0;Z<z.length;Z++)M[J[Z]]=z[Z];return M}:QS));
return O?e.pipe(DHL(O)):e};
OUu=function(l,e,O){O=O===void 0?QS:O;return function(E){Eeq(e,function(){for(var J=l.length,z=Array(J),M=J,Z=l.map(function(){return!1}),u=!0,d={i$jscomp$216:0};d.i$jscomp$216<J;d={i$jscomp$216:d.i$jscomp$216},d.i$jscomp$216++)Eeq(e,function(g){return function(){zq(l[g.i$jscomp$216],e).subscribe(new yE(E,function(w){z[g.i$jscomp$216]=w;
u&&(Z[g.i$jscomp$216]=!0,u=!Z.every(QS));u||E.next(O(z.slice()))},function(){return--M===0}))}}(d),E)},E)}};
Eeq=function(l,e,O){l?O.add(l.schedule(e)):e()};
Jzd=function(l,e,O,E){var J=[],z=0,M=0,Z=!1,u=function(d){z++;JD(O(d,M++)).subscribe(new i1(e,function(g){e.next(g)},void 0,function(){z--;
for(var g={};J.length&&z<E;g={bufferedValue:void 0})g.bufferedValue=J.shift(),u(g.bufferedValue);!Z||J.length||z||e.complete()}))};
l.subscribe(new i1(e,function(d){return z<E?u(d):J.push(d)},void 0,function(){Z=!0;
!Z||J.length||z||e.complete()}));
return function(){J=null}};
pl=function(l,e){var O=O===void 0?Infinity:O;if(Nm(e))return pl(function(E,J){return az(function(z,M){return e(E,z,J,M)})(JD(l(E,J)))},O);
typeof e==="number"&&(O=e);return gp(function(E,J){return Jzd(E,J,l,O)})};
X2T=function(l){l=l===void 0?Infinity:l;return pl(QS,l)};
z5V=function(){var l=_.ke.apply(0,arguments);return X2T(1)(oz(l,$A(l)))};
Kl=function(l){return new eS(function(e){JD(l()).subscribe(e)})};
jS=function(l,e,O){if(Nm(O)){var E=O;O=void 0}if(E)return jS(l,e,O).pipe(DHL(E));E=_.b(Nm(l.addEventListener)&&Nm(l.removeEventListener)?bUM.map(function(M){return function(Z){return l[M](e,Z,O)}}):Nm(l.addListener)&&Nm(l.removeListener)?Mvx.map(VvL(l,e)):Nm(l.on)&&Nm(l.off)?ZUT.map(VvL(l,e)):[]);
var J=E.next().value,z=E.next().value;return!J&&s5M(l)?pl(function(M){return jS(M,e,O)})(oz(l)):new eS(function(M){if(!J)throw new TypeError("ka");
var Z=function(){var u=_.ke.apply(0,arguments);return M.next(1<u.length?u:u[0])};
J(Z);return function(){return z(Z)}})};
VvL=function(l,e){return function(O){return function(E){return l[O](e,E)}}};
cI=function(){var l=_.ke.apply(0,arguments),e=$A(l);var O=typeof l[l.length-1]==="number"?l.pop():Infinity;return l.length?l.length===1?JD(l[0]):X2T(O)(oz(l,e)):HI};
Crg=function(l){return l.length===1&&uCx(l[0])?l[0]:l};
oeL=function(){var l=Crg(_.ke.apply(0,arguments));return gp(function(e,O){var E=[e].concat(_.kA(l)),J=function(){if(!O.closed)if(E.length>0){try{var z=JD(E.shift())}catch(Z){J();return}var M=new i1(O,void 0,D9,D9);O.add(z.subscribe(M));M.add(J)}else O.complete()};
J()})};
FQ=function(l){return gp(function(e,O){var E=0;e.subscribe(new i1(O,function(J){return l.call(void 0,J,E++)&&O.next(J)}))})};
W7M=function(){var l=_.ke.apply(0,arguments);l=Crg(l);return l.length===1?JD(l[0]):new eS($mW(l))};
$mW=function(l){return function(e){for(var O=[],E={i$jscomp$219:0};O&&!e.closed&&E.i$jscomp$219<l.length;E={i$jscomp$219:E.i$jscomp$219},E.i$jscomp$219++)O.push(JD(l[E.i$jscomp$219]).subscribe(new i1(e,function(J){return function(z){if(O){for(var M=0;M<O.length;M++)M!==J.i$jscomp$219&&O[M].unsubscribe();O=null}e.next(z)}}(E))))}};
dmu=function(){var l=_.ke.apply(0,arguments),e=qju(l),O=Crg(l);return O.length?new eS(function(E){var J=O.map(function(){return[]}),z=O.map(function(){return!1});
E.add(function(){J=z=null});
for(var M={sourceIndex$jscomp$1:0};!E.closed&&M.sourceIndex$jscomp$1<O.length;M={sourceIndex$jscomp$1:M.sourceIndex$jscomp$1},M.sourceIndex$jscomp$1++)JD(O[M.sourceIndex$jscomp$1]).subscribe(new i1(E,function(Z){return function(u){J[Z.sourceIndex$jscomp$1].push(u);J.every(function(d){return d.length})&&(u=J.map(function(d){return d.shift()}),E.next(e?e.apply(null,_.kA(u)):u),J.some(function(d,g){return!d.length&&z[g]})&&E.complete())}}(M),void 0,function(Z){return function(){z[Z.sourceIndex$jscomp$1]=
!0;
!J[Z.sourceIndex$jscomp$1].length&&E.complete()}}(M)));
return function(){J=z=null}}):HI};
geu=function(l){var e,O,E;return!!l&&typeof l.active==="boolean"&&typeof((e=l.clock)==null?void 0:e.now)==="function"&&((O=l.clock)==null?void 0:O.timeline)!==void 0&&!((E=l.lastMeasurement)==null||!E.timestamp)&&typeof l.equivalentTo==="function"&&typeof l.extrapolateToNow==="function"&&typeof l.extrapolateToTime==="function"&&typeof l.map==="function"&&typeof l.joinWith==="function"};
iUL=function(l){function e(O){return typeof O==="boolean"||typeof O==="string"||typeof O==="number"||O===void 0||O===null}
return e(l)?!0:Array.isArray(l)?l.every(e):typeof l==="object"?Object.keys(l).every(function(O){return typeof O==="string"})&&Object.values(l).every(function(O){return Array.isArray(O)?O.every(e):e(O)}):!1};
w2V=function(l){if(iUL(l))return l;if(geu(l))return{lastMeasurement:{value:w2V(l.lastMeasurement.value),timestamp:fl(l.lastMeasurement.timestamp,new Rz(0,l.lastMeasurement.timestamp.timeline))},active:l.active};try{return JSON.parse(JSON.stringify(l))}catch(e){}return String(l)};
s$=function(l,e){return function(O){return new eS(function(E){return O.subscribe(function(J){l.timeExecution(e,function(){E.next(J)})()},function(J){l.timeExecution(e,function(){E.error(J)})()},function(){l.timeExecution(e,function(){E.complete()})()})})}};
Azx=function(l,e){var O=!1;return new eS(function(E){var J=l.setTimeout(function(){O=!0;E.next(!0);E.complete()},e);
return function(){O||l.clearTimeout(J)}})};
nex=function(l){l=l.global;if(l.fetchLater)return l.fetchLater.bind(l)};
Gq=function(l){return gp(function(e,O){var E=null,J=!1,z;E=e.subscribe(new i1(O,void 0,function(M){z=JD(l(M,Gq(l)(e)));E?(E.unsubscribe(),E=null,z.subscribe(O)):J=!0}));
J&&(E.unsubscribe(),E=null,z.subscribe(O))})};
a9T=function(l,e,O){return function(E,J){var z=O,M=e,Z=0;E.subscribe(new i1(J,function(u){var d=Z++;M=z?l(M,u,d):(z=!0,u);J.next(M)},void 0,void 0))}};
k1q=function(l){l=l===void 0?null:l;return gp(function(e,O){var E=!1;e.subscribe(new i1(O,function(J){E=!0;O.next(J)},void 0,function(){E||O.next(l);
O.complete()}))})};
BI=function(){return gp(function(l,e){l.subscribe(new i1(e,D9))})};
PI=function(l){return gp(function(e,O){e.subscribe(new i1(O,function(){return O.next(l)}))})};
U$=function(l){return l<=0?function(){return HI}:gp(function(e,O){var E=0;
e.subscribe(new i1(O,function(J){++E<=l&&(O.next(J),l<=E&&O.complete())}))})};
hD=function(l){var e=e===void 0?QS:e;var O;l=(O=l)!=null?O:I9V;return gp(function(E,J){var z,M=!0;E.subscribe(new i1(J,function(Z){var u=e(Z);if(M||!l(z,u))M=!1,z=u,J.next(Z)}))})};
I9V=function(l,e){return l===e};
yzg=function(l){l=l===void 0?mmM:l;return gp(function(e,O){var E=!1;e.subscribe(new i1(O,function(J){E=!0;O.next(J)},void 0,function(){return E?O.complete():O.error(l())}))})};
mmM=function(){return new p28};
Ll=function(){var l=_.ke.apply(0,arguments);return function(e){return z5V(e,WI.apply(null,_.kA(l)))}};
K7A=function(l){return gp(function(e,O){var E=0;e.subscribe(new i1(O,function(J){l.call(void 0,J,E++,e)||(O.next(!1),O.complete())},void 0,function(){O.next(!0);
O.complete()}))})};
jHq=function(){return gp(function(l,e){var O=[];l.subscribe(new i1(e,function(E){O.push(E);1<O.length&&O.shift()},void 0,function(){for(var E=_.b(O),J=E.next();!J.done;J=E.next())e.next(J.value);
e.complete()},function(){O=null}))})};
HUq=function(l,e){var O=arguments.length>=2;return function(E){return E.pipe(l?FQ(function(J,z){return l(J,z,E)}):QS,jHq(),O?k1q(e):yzg(function(){return new p28}))}};
qR=function(l){var e=Nm(l)?l:function(){return l};
return Nm()?gp(function(O,E){var J=e();(void 0)(J).subscribe(E).add(O.subscribe(J))}):function(O){var E=new tD(O,e);
Nm(O==null?void 0:O.lift)&&(E.lift=O.lift);E.source=O;E.subjectFactory=e;return E}};
NR=function(l){var e=new vI(l,void 0,void 0);return function(O){return qR(function(){return e})(O)}};
rp=function(l,e){return gp(a9T(l,e,arguments.length>=2))};
DU=function(){var l=_.ke.apply(0,arguments),e=$A(l);return gp(function(O,E){(e?z5V(l,O,e):z5V(l,O)).subscribe(E)})};
SS=function(l){return gp(function(e,O){var E=null,J=0,z=!1;e.subscribe(new i1(O,function(M){var Z;(Z=E)==null||Z.unsubscribe();Z=J++;JD(l(M,Z)).subscribe(E=new i1(O,function(u){return O.next(u)},void 0,function(){E=null;
z&&!E&&O.complete()}))},void 0,function(){(z=!0,!E)&&O.complete()}))})};
QE=function(l,e){e=e===void 0?!1:e;return gp(function(O,E){var J=0;O.subscribe(new i1(E,function(z){var M=l(z,J++);(M||e)&&E.next(z);!M&&E.complete()}))})};
xA=function(l,e,O){var E=Nm(l)||e||O?{next:l,error:e,complete:O}:l;return E?gp(function(J,z){J.subscribe(new i1(z,function(M){var Z;(Z=E.next)==null||Z.call(E,M);z.next(M)},function(M){var Z;
(Z=E.error)==null||Z.call(E,M);z.error(M)},function(){var M;
(M=E.complete)==null||M.call(E);z.complete()}))}):QS};
cz2=function(){var l=_.ke.apply(0,arguments),e=qju(l);return gp(function(O,E){for(var J=l.length,z=Array(J),M=l.map(function(){return!1}),Z=!1,u={i$jscomp$229:0};u.i$jscomp$229<J;u={i$jscomp$229:u.i$jscomp$229},u.i$jscomp$229++)JD(l[u.i$jscomp$229]).subscribe(new i1(E,function(d){return function(g){z[d.i$jscomp$229]=g;
Z||M[d.i$jscomp$229]||(M[d.i$jscomp$229]=!0,(Z=M.every(QS))&&(M=null))}}(u),void 0,D9));
O.subscribe(new i1(E,function(d){Z&&(d=[d].concat(_.kA(z)),E.next(e?e.apply(null,_.kA(d)):d))}))})};
F7A=function(l){var e=[],O=0,E;for(E in l)e[O++]=E;return e};
f9q=function(l,e){for(var O in l)if(l[O]==e)return!0;return!1};
R58=function(l,e,O){for(var E in l)if(e.call(O,l[E],E,l))return E};
TGu=function(l){if(!l||typeof l!=="object")return l;if(typeof l.clone==="function")return l.clone();if(typeof Map!=="undefined"&&l instanceof Map)return new Map(l);if(typeof Set!=="undefined"&&l instanceof Set)return new Set(l);if(l instanceof Date)return new Date(l.getTime());var e=Array.isArray(l)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(l)||l instanceof DataView?{}:new l.constructor(l.length),O;for(O in l)e[O]=TGu(l[O]);return e};
sHu=function(l){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return sHu.apply(null,arguments[0]);if(e%2)throw Error("oa");for(var O={},E=0;E<e;E+=2)O[arguments[E]]=arguments[E+1];return O};
G1x=function(l){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return G1x.apply(null,arguments[0]);for(var O={},E=0;E<e;E++)O[arguments[E]]=!0;return O};
_.lX=function(l){return new nH2(l[0].toLowerCase())};
BGt=function(l){try{return new URL(l,window.document.baseURI)}catch(e){return new URL("about:invalid")}};
Prq=function(l,e){var O=e.createRange();O.selectNode(e.body);l=KU(l);return O.createContextualFragment(jv(l))};
Um2=function(l){l=l.nodeName;return typeof l==="string"?l:"FORM"};
YNx=function(l){l=l.nodeType;return l===1||typeof l!=="number"};
eB=function(l,e,O){l.setAttribute(e,O)};
h58=function(l){return l.parts.map(function(e){var O=e.descriptor;return""+e.url+(O?" "+O:"")}).join(" , ")};
_.OP=function(l){var e=_.ke.apply(1,arguments);if(e.length===0)return _.VS(l[0]);for(var O=l[0],E=0;E<e.length;E++)O+=encodeURIComponent(e[E])+l[E+1];return _.VS(O)};
_.EP=function(l,e){l=_.Z9(l).toString();var O=l.split(/[?#]/),E=/[?]/.test(l)?"?"+O[1]:"";return L7q(O[0],E,/[#]/.test(l)?"#"+(E?O[2]:O[1]):"",e)};
L7q=function(l,e,O,E){function J(M,Z){M!=null&&(Array.isArray(M)?M.forEach(function(u){return J(u,Z)}):(e+=z+encodeURIComponent(Z)+"="+encodeURIComponent(M),z="&"))}
var z=e.length?"&":"?";E.constructor===Object&&(E=Object.entries(E));Array.isArray(E)?E.forEach(function(M){return J(M[1],M[0])}):E.forEach(J);
return _.VS(l+e+O)};
Jn=function(l,e,O,E){this.top=l;this.right=e;this.bottom=O;this.left=E};
tvq=function(l){l=l.global;if(l.PendingGetBeacon)return l.PendingGetBeacon};
z5=function(l){return function(e){return e.pipe(qNx(l,qR(new Xe)))}};
bX=function(l){return function(e){return e.pipe(qNx(l,NR(1)))}};
qNx=function(l,e){function O(E){return new eS(function(J){return E.subscribe(function(z){M4(l,function(){return void J.next(z)},3)},function(z){M4(l,function(){return void J.error(z)},3)},function(){M4(l,function(){return void J.complete()},3)})})}
return l1(O,Nct(),e,nl(),O)};
rzp=function(l){var e=veA(l);return e===null?new V9(null):e.pipe(az(function(O){O=O.serialize();if(NGp)O=_.Op.btoa(O);else{for(var E=[],J=0,z=0;z<O.length;z++){var M=O.charCodeAt(z);M>255&&(E[J++]=M&255,M>>=8);E[J++]=M}O=_.x4(E)}return O}),U$(1),bX(l.queue))};
Dmd=function(l){var e=e===void 0?{}:e;if(typeof Event==="function")return new Event(l,e);if(typeof document!=="undefined"){var O=document.createEvent("CustomEvent");O.initCustomEvent(l,e.bubbles||!1,e.cancelable||!1,e.detail);return O}throw Error();};
SN2=function(l){return typeof l==="string"?document.getElementById(l):l};
xmV=function(l){var e=!1;e=e===void 0?!1:e;if(l.tagName==="IMG"){if(l.complete&&(!l.naturalWidth||!l.naturalHeight))return!0;var O;if(e&&((O=l.style)==null?void 0:O.display)==="none")return!0}var E,J;return QHu.test((E=l.getAttribute("width"))!=null?E:"")&&QHu.test((J=l.getAttribute("height"))!=null?J:"")};
lUT=function(l,e){if(l.tagName==="IMG")return l.naturalWidth&&l.naturalHeight?!0:!1;try{if(l.readyState)var O=l.readyState;else{var E,J;O=(E=l.contentWindow)==null?void 0:(J=E.document)==null?void 0:J.readyState}return O==="complete"}catch(z){return e===void 0?!1:e}};
euV=function(l){l||(l=function(e,O,E){e.addEventListener(O,E)});
return l};
XIx=function(l,e){var O=Olt();O=O===void 0?new EAd:O;if(l=SN2(l)){var E=euV(E);for(var J=!1,z=function(f){J||(J=!0,e(f))},M,Z=2,u=0;u<JDM.length;++u)if(JDM[u]===l.tagName){Z=3;
M=[l];break}M||(M=l.querySelectorAll(JDM.join(",")));var d=0,g=0,w=!0,n=l=!1;u={};for(var k=0;k<M.length;u={isImg:void 0},k++){var y=M[k];if(!xmV(y))if(u.isImg=y.tagName==="IMG",lUT(y,O.crossDomainLoadedDefault))l=!0,u.isImg&&(w=!0);else{d++;var c=function(f){return function(P){d--;!d&&w&&z(Z);f.isImg&&(P=P&&P.type==="error",g--,P||(w=!0),!g&&n&&w&&z(Z))}}(u);
E(y,"load",c);u.isImg&&(g++,E(y,"error",c))}}g===0&&(w=!0);M=null;M=_.Op.document.readyState==="complete";if(d===0&&!l&&M)Z=5;else if(d||!l){E(_.Op,"load",function(){!O.pendingImagesBlockLoad||!g&&w?z(4):n=!0});
return}z(Z)}};
zu2=function(l,e,O){if(l)for(var E=0;l!=null&&E<500&&!O(l);++E)l=e(l)};
blx=function(l,e){zu2(l,function(O){try{return O===O.parent?null:O.parent}catch(E){}return null},e)};
MSt=function(l,e){if(l.tagName=="IFRAME")e(l);else{l=l.querySelectorAll("IFRAME");for(var O=0;O<l.length&&!e(l[O]);++O);}};
VSu=function(l){return(l=l.ownerDocument)&&(l.parentWindow||l.defaultView)||null};
Zlq=function(l,e,O){try{var E=JSON.parse(O.data)}catch(M){}if(typeof E==="object"&&E&&E.type==="creativeLoad"){var J=VSu(l);if(O.source&&J){var z;blx(O.source,function(M){try{if(M.parent===J)return z=M,!0}catch(Z){}});
z&&MSt(l,function(M){if(M.contentWindow===z)return e(E),!0})}}};
uQu=function(l){return typeof l==="string"?document.getElementById(l):l};
WAg=function(){var l={};return l[0]=_.OP(C1x,"current"),l[1]=_.OP(oAL),l[2]=_.OP($Rq),l};
Z7=function(l,e){return l.left===e.left&&l.top===e.top&&l.width===e.width&&l.height===e.height};
dR8=function(l,e){return{left:Math.max(l.left,e.left),top:Math.max(l.top,e.top),width:Math.max(0,Math.min(l.left+l.width,e.left+e.width)-Math.max(l.left,e.left)),height:Math.max(0,Math.min(l.top+l.height,e.top+e.height)-Math.max(l.top,e.top))}};
gAA=function(l,e){return{left:Math.round(l.left+e.x),top:Math.round(l.top+e.y),width:l.width,height:l.height}};
ilq=function(l,e,O){if(l&&e!==null&&e!=e.top){if(!e.top)return new _.uX(-12245933,-12245933);e=e.top}try{return(O===void 0?0:O)?(new _.uX(e.innerWidth,e.innerHeight)).round():_.CF(e).round()}catch(E){return new _.uX(-12245933,-12245933)}};
wIW=function(l,e,O){try{if(l){if(!e.top)return new Jn(-12245933,-12245933,-12245933,-12245933);e=e.top}var E=ilq(l,e,O),J=E.height,z=E.width;if(z===-12245933)return new Jn(z,z,z,z);var M=$S(WR(e.document)),Z=M.x,u=M.y;return new Jn(u,Z+z,u+J,Z)}catch(d){return new Jn(-12245933,-12245933,-12245933,-12245933)}};
ADd=function(l){var e;return(e=l.google_tag_data)!=null?e:l.google_tag_data={}};
nA2=function(l){var e,O;return typeof((e=l.navigator)==null?void 0:(O=e.userAgentData)==null?void 0:O.getHighEntropyValues)==="function"};
kqt=function(l){if(!nA2(l))return null;var e=ADd(l);if(e.uach_promise)return e.uach_promise;l=l.navigator.userAgentData.getHighEntropyValues(aUt).then(function(O){e.uach!=null||(e.uach=O);return O});
return e.uach_promise=l};
Tpg=function(l){var e;return IUp(mRT(yDL(pIV(KAA(jzx(Hld(cDp(FAp(new fUg,l.architecture||""),l.bitness||""),l.mobile||!1),l.model||""),l.platform||""),l.platformVersion||""),l.uaFullVersion||""),((e=l.fullVersionList)==null?void 0:e.map(function(O){var E=new RuL;E=_.da(E,1,O.brand);return _.da(E,2,O.version)}))||[]),l.wow64||!1)};
szx=function(l){var e,O;return(O=(e=kqt(l))==null?void 0:e.then(function(E){return Tpg(E)}))!=null?O:null};
Gqt=function(l,e){return new eS(function(O){var E=!1,J=Array(e.length);J.fill(void 0);var z=new Set,M=new Set,Z=function(w,n){l.running?(J[n]=w,z.add(n),E||(E=!0,M4(l,function(){E=!1;O.next(_.rT(J))},1))):O.error(new iX(n))},u=function(w,n){M.add(n);
z.add(n);M4(l,function(){O.error(w)},1)},d=function(w){M.add(w);
M4(l,function(){M.size===e.length&&O.complete()},1)},g=e.map(function(w,n){return w.subscribe(function(k){return void Z(k,n)},function(k){return void u(k,n)},function(){return void d(n)})});
return function(){g.forEach(function(w){return void w.unsubscribe()})}})};
P12=function(l,e,O){function E(){if(e.debugChannel){var f=e.debugChannel,P=f.next;var h={creativeId:e.debugNames.getName(O),requiredSignals:J,signals:Object.assign({},z),hasPrematurelyCompleted:M,errorMessage:Z,erroredSignalKey:u};h={specMajor:2,specMinor:0,specPatch:0,timestamp:fl(e.timeProvider.now(),new Rz(0,e.timeProvider.timeline)),instanceId:e.debugNames.getName(e.symbol),creativeState:h};P.call(f,h)}}
for(var J=Object.keys(l),z={},M=!1,Z=null,u=null,d={},g=new Set,w=[],n=[],k=_.b(J),y=k.next(),c={};!y.done;c={key$jscomp$375:void 0},y=k.next())c.key$jscomp$375=y.value,y=l[c.key$jscomp$375],y instanceof V9?(d[c.key$jscomp$375]=y.value,g.add(c.key$jscomp$375),e.debugChannel&&(z[String(c.key$jscomp$375)]=w2V(y.value))):(y=y.pipe(hD(function(f,P){return geu(f)||geu(P)?!1:f===P}),az(function(f){return function(P){e.debugChannel&&(z[String(f.key$jscomp$375)]=w2V(P),E());
var h={};return h[f.key$jscomp$375]=P,h}}(c)),Gq(function(f){return function(P){if(P instanceof iX)throw new BpL(String(f.key$jscomp$375));
throw P;}}(c)),xA(function(f){return function(){g.add(f.key$jscomp$375)}}(c),function(f){return function(P){u=String(f.key$jscomp$375);
Z=String(P);E()}}(c),function(f){return function(){g.has(f.key$jscomp$375)||(M=!0,E())}}(c))),n.push(c.key$jscomp$375),w.push(y));
(l=Object.keys(z).length>0)&&E();k=Gqt(e.queue,w).pipe(Gq(function(f){if(f instanceof iX)throw new wa(String(n[f.inputObservableIndex]));throw f;}),az(function(f){return Object.freeze(Object.assign.apply(Object,[{},
d].concat(_.kA(f))))}));
return(w=w.length>0)&&l?cI(WI(Object.freeze(d)),k):w?k:WI(Object.freeze(d))};
URx=function(l,e,O,E,J){return l.performanceMonitor.timeExecution.bind(l.performanceMonitor)(733,function(){var z={};try{return e.pipe(Gq(function(M){E(Object.assign({},z,{error:M}));return HI}),pl(function(M){try{var Z=O(l,M)}catch(d){return E(Object.assign({},z,{error:d instanceof Error?d:String(d)})),HI}var u={};
return P12(Z,l,M.symbol).pipe(xA(function(d){u=d}),NR(1),nl()).pipe(J,Gq(function(d){E(Object.assign({},u,{error:d}));
return HI}),Ll(void 0),az(function(){return!0}))})).pipe(rp(function(M){return M+1},0),Gq(function(M){E(Object.assign({},z,{error:M}));
return HI}))}catch(M){return E(Object.assign({},z,{error:M})),HI}})()};
An=function(l){var e=new Map;if(typeof l!=="object"||l===null)return e;Object.values(l).forEach(function(O){O&&typeof O.extrapolateToNow==="function"&&(e.has(O.clock.timeline)||e.set(O.clock.timeline,O.clock.now()))});
return e};
Y$d=function(l,e){return typeof l==="string"?encodeURIComponent(l):typeof l==="number"?String(l):Array.isArray(l)?l.map(function(O){return Y$d(O,e)}).join(","):l instanceof Rz?l.toString():l&&typeof l.extrapolateToNow==="function"?Y$d(l.extrapolateUsingTimestampMap(e).value,e):l===!0?"1":l===!1?"0":l===void 0||l===null?null:l instanceof hup?LAx(l):[l.top,
l.left,l.top+l.height,l.left+l.width].join()};
nF=function(l,e){l=Object.entries(l).map(function(O){var E=_.b(O);O=E.next().value;E=E.next().value;E=Y$d(E,e);return E===null?"":O+"="+E}).filter(function(O){return O!==""});
return l.length?l.join("&"):""};
vA8=function(l,e){var O=tSV,E=q$V;e=e===void 0?.01:e;return function(J){e>0&&Math.random()<=e&&(l.global.HTMLFencedFrameElement&&l.global.fence&&typeof l.global.fence.reportEvent==="function"&&l.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),J=Object.assign({},J,{errorMessage:J.error instanceof Error&&J.error.message?J.error.message:String(J.error),errorStack:J.error instanceof Error&&J.error.stack?String(J.error.stack):null,errorName:J.error instanceof
Error&&J.error.name?String(J.error.name):null,errorContext:String(l.performanceMonitor.timedFunctionContext),errorEscapedQueryId:J.escapedQueryId}),O(Object.assign({},J,{payloadMapper:function(){return function(z){try{return E(Object.assign({},z))}catch(M){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),An(J)).forEach(function(z){l.beaconFactory.makeBeacon(z).sendNow()}))}};
Np8=function(){var l=_.ke.apply(0,arguments);return function(e){var O=e.pipe(NR(1),nl());e=l.map(function(E){return O.pipe(E,Ll(!0))});
return mA(e).pipe(U$(1),BI())}};
rDx=function(){var l=_.ke.apply(0,arguments);return function(e){var O=e.pipe(NR(1),nl());e=l.map(function(E){return O.pipe(E,Ll(!0))});
return cI.apply(null,_.kA(e)).pipe(U$(1),BI())}};
DRx=function(l,e){return function(O){var E=O.pipe(NR(1),nl());O=E.pipe(l,Ll(!0));E=E.pipe(l1(e,NR(),nl()),Ll(!0));O=mA([O,E]);return W7M(O,E).pipe(U$(1),BI())}};
S$u=function(l,e,O){O(!0)};
QzW=function(l,e){return l1(SS(function(O){var E=l(O),J=e(O),z={};return E&&J&&z?new eS(function(M){J(E,z,function(Z){M.next(Object.assign({},O,{canEmit:Z}));M.complete()});
return function(){}}):a7}),FQ(function(O){return O.canEmit}))};
xRx=function(l){var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(O){return O.pipe(SS(function(E){return new eS(function(J){function z(){Z.disconnect();u.unsubscribe()}
var M=l.MutationObserver;if(M&&E.ref!==void 0){var Z=new M(function(d){J.next(d)});
Z.observe(E.ref,e);var u=E.JSC$7397_released.subscribe(z);return z}})}))}};
l7T=function(l){if(l.measurementDeferralState===3)return null;if(l.timeOnScreenReason!==void 0){var e=l.creativeFound===!1?"n":null;if(e!==null)return e}return l.geometricMeasurementErrors instanceof kS?"msf":l.contextValidationErrors instanceof I7?"c":l.contextVisibilityKnown===!1?"pv":l.geometricMeasurementErrors||l.contextValidationErrors?"x":null};
y9=function(l,e){return l.replace(ewL,function(O,E){try{var J=_.mm.get(e,E);if(J==null||J.toString()==null)return O;J=J.toString();if(J==""||!_.MA(J==null?"":String(J)))return encodeURIComponent(J).replace(/%2C/g,",")}catch(z){}return O})};
OFd=function(l,e){var O=Object.assign({},l),E=l.userAgentClientHints;O=(delete O.userAgentClientHints,O);O=l.payloadMapper(O);var J=nF(O,e);return _.pF(l.urlPrefixes,function(z){var M="";typeof E==="string"&&(M="&"+nF({uach:E},e));var Z={};return y9(z,(Z.VIEWABILITY=J,Z))+M})};
tSV=function(l,e){var O=l.payloadMapper(l),E=nF(O,e);return E?_.pF(l.urlPrefixes,function(J){J=J.indexOf("?")>=0?J:J+"?";J="?&".indexOf(J.slice(-1))>=0?J:J+"&";return J+E}):l.urlPrefixes};
ES8=function(){return l1(FQ(function(l){return l!==void 0}),az(function(l){return l}))};
Jnx=function(l){return l1(az(function(){return!0}),DU(!1),bX(l))};
XRx=function(l){return l.length<=0?HI:mA(l.map(function(e){var O=0;return e.pipe(az(function(E){return{index:O++,value:E}}))})).pipe(FQ(function(e){return e.every(function(O){return O.index===e[0].index})}),az(function(e){return e.map(function(O){return O.value})}))};
zwt=function(l,e){l.currentState&&(l.previousState=l.currentState);l.currentState=e;l.previousState&&l.previousState.value?(e=Math.max(0,fl(e.timestamp,l.previousState.timestamp)),l.totalTime+=e,l.consecutiveTime+=e):l.consecutiveTime=0;return l};
bF8=function(){return l1(rp(zwt,{totalTime:0,consecutiveTime:0}),az(function(l){return l.totalTime}))};
MBp=function(){return l1(rp(zwt,{totalTime:0,consecutiveTime:0}),az(function(l){return l.consecutiveTime}))};
VB8=function(l,e){return function(O){return XRx(e.map(function(E){return O.pipe(l(E))}))}};
ZFL=function(){var l;return l1(xA(function(e){return void(l=e.timestamp)}),MBp(),az(function(e){return{timestamp:l,
value:Math.round(e)}}))};
ued=function(l,e){return Z7(l.topWindowViewportExternalGeometry,e.topWindowViewportExternalGeometry)&&Z7(l.elementGeometry,e.elementGeometry)&&Z7(l.exposedViewportLocalGeometry,e.exposedViewportLocalGeometry)&&Z7(l.intersectionGeometry,e.intersectionGeometry)&&l.elementGeometrySourceName===e.elementGeometrySourceName&&l.measurementRequests===e.measurementRequests&&l.viewportGeometrySourceName===e.viewportGeometrySourceName&&l.viewportLocalAppOffset.x===e.viewportLocalAppOffset.x&&l.viewportLocalAppOffset.y===
e.viewportLocalAppOffset.y};
$4A=function(l,e){return function(O){return function(E){var J=E.pipe(qR(new Xe),nl());E=O.element.pipe(hD());J=J.pipe(az(function(z){return z.value}));
return mA([E,J,e]).pipe(az(function(z){var M=_.b(z);z=M.next().value;var Z=M.next().value;M=M.next().value;if(z.ref===void 0)var u={top:0,left:0,width:0,height:0};else{u=z.ref.getBoundingClientRect();var d=z.ref,g=l.global,w=new _.KF(0,0),n=jB(_.HR(d));if(cR(n,"parent")){do{if(n==g)var k=_.Fe(d);else k=CXu(d),k=new _.KF(k.left,k.top);w.x+=k.x;w.y+=k.y}while(n&&n!=g&&n!=n.parent&&(d=n.frameElement)&&(n=n.parent))}u={top:w.y,left:w.x,width:u.width,height:u.height}}u=gAA(u,Z.viewportLocalAppOffset);
g=dR8(u,Z.exposedViewportLocalGeometry);w=l.timeProvider.now();n=Object;d=n.assign;if(M!==2||l.inCrossDomainIframe||g.width<=0||g.height<=0)var y=!1;else try{var c=l.document.elementFromPoint(g.left+g.width/2,g.top+g.height/2);y=c?!oSu(c,z):!1}catch(f){y=!1}return{timestamp:w,value:d.call(n,{},Z,{elementGeometrySourceName:"geo",intersectionGeometry:y?fF.intersectionGeometry:g,elementGeometry:u})}}),z5(l.queue))}}};
oSu=function(l,e,O){O=O===void 0?0:O;return l.ref===void 0||e.ref===void 0?!1:l.ref===e.ref||_.R7(e.ref,function(E){return E===l.ref})?!0:e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView===e.ref.ownerDocument.defaultView.top?!1:O<10&&e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView.frameElement?oSu(l,new T5(e.ref.ownerDocument.defaultView.frameElement),O+1):!0};
gSp=function(l){return function(e){return e.pipe(l.ResizeObserver?Wmx(l):d4u(l),NR(1),nl())}};
Wmx=function(l){return function(e){return e.pipe(SS(function(O){var E=l.ResizeObserver;if(!E||O.ref===void 0)return WI(fF.elementGeometry);var J=(new eS(function(z){function M(){O.ref!==void 0&&Z.unobserve(O.ref);Z.disconnect();u.unsubscribe()}
if(O.ref===void 0)return z.complete(),function(){};
var Z=new E(function(d){d.forEach(function(g){z.next(g)})});
Z.observe(O.ref);var u=O.JSC$7397_released.subscribe(M);return M})).pipe(s$(l.performanceMonitor,736),az(function(z){return z.contentRect}));
return cI(WI(O.ref.getBoundingClientRect()),J)}),hD(Z7))}};
d4u=function(l){return function(e){var O=e.pipe(xRx(l)),E=l.onResize;O=cI(e.pipe(az(function(){return Dmd("resize")})),O,E);
return mA(e,O).pipe(s$(l.performanceMonitor,737),az(function(J){J=_.b(J).next().value;return J.ref===void 0?void 0:J.ref.getBoundingClientRect()}),ES8(),hD(Z7))}};
An8=function(l,e){var O=iFM(l,e).pipe(NR(1),nl());return function(E){return function(J){J=J.pipe(SS(function(z){return z.element}),hD());
return mA([O,J]).pipe(SS(function(z){var M=_.b(z);z=M.next().value;M=M.next().value;return wRt(l,z.intersectionObserver,gSp(l),z.observations,E,z.flushRecords,M)}),z5(l.queue))}}};
nST=function(l){return az(function(e){return e.value.viewportGeometrySourceName!=="nio"?e:Object.assign({},e,{value:Object.assign({},e.value,{exposedViewportLocalGeometry:sP(l,!0),topWindowViewportExternalGeometry:sP(l,!0)})})})};
a7L=function(l,e){return WI(e).pipe(l,az(function(){return e}))};
iFM=function(l,e){return l.timeProvider.timeline!==k5x?dp(new kS(2)):l.MutationObserver?typeof IntersectionObserver==="undefined"?dp(new kS(0)):(new eS(function(O){var E=new Xe,J=new G5(E.next.bind(E),{threshold:[].concat(_.kA(e))});O.next({observations:E.pipe(s$(l.performanceMonitor,735)),intersectionObserver:J,flushRecords:function(z){z=J.takeRecords(z);z.length>0&&E.next(z)}})})).pipe(U$(1),NR(1),nl()):dp(new kS(1))};
I7V=function(l){return Gux(l.sort(function(e,O){return e.time-O.time}),vHg)};
wRt=function(l,e,O,E,J,z,M){return new eS(function(Z){function u(){y||(y=!0,M.ref!==void 0&&e.unobserve(J,M.ref),g.unsubscribe(),k.unsubscribe(),n.unsubscribe(),c.unsubscribe())}
if(M.ref!==void 0){m4x(e,J);e.observe(J,M.ref);var d=new BR({timestamp:l.timeProvider.now(),value:Object.assign({},fF,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),g=E.pipe(pl(function(f){return I7V(f)}),FQ(function(f){return f.target===M.ref}),az(function(f){return{timestamp:new Rz(f.time,k5x),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:f.rootBounds||PR,topWindowViewportExternalGeometry:f.rootBounds||sP(l,!0),measurementRequests:w,elementGeometrySourceName:"nio",intersectionGeometry:f.intersectionRect,elementGeometry:f.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:f.isIntersecting,isV2Visible:f.isVisible}}}),qR(d),nl()).subscribe(Z),w=new Xe,n=w.subscribe(function(){z(J);
Z.next({timestamp:l.timeProvider.now(),value:d.value.value});M.ref!==void 0&&(e.unobserve(J,M.ref),e.observe(J,M.ref))}),k=a7L(O,M).subscribe(function(){w.next()}),y=!1,c=M.JSC$7397_released.subscribe(function(){return u()});
return u}})};
ynT=function(l,e){var O=l.getOnBackgrounded().pipe(az(function(){return"b"}));
return W7M(e,O).pipe(U$(1),bX(l.queue))};
UP=function(l){return function(e){var O;return e.pipe(xA(function(E){return void(O=E.timestamp)}),az(function(E){return E.value}),l,az(function(E){return{timestamp:O,
value:E}}))}};
pRL=function(l){return l.intersectionGeometry.width*l.intersectionGeometry.height/(l.elementGeometry.width*l.elementGeometry.height)};
YS=function(l,e,O){O=O===void 0?function(E,J){return E===J}:O;
return l.timestamp.equals(e.timestamp)&&O(l.value,e.value)};
LF=function(l,e){return e.pipe(az(function(O){return new hn(l.timeProvider,{timestamp:l.timeProvider.now(),value:O})}))};
KmW=function(l){return function(e){return e.pipe(cz2(l),az(function(O){var E=_.b(O);O=E.next().value;E=E.next().value;var J=O.value;return{timestamp:O.timestamp,value:J>=1?!0:J<=0?!1:J>=E}}))}};
HFx=function(){return l1(FQ(function(l,e){return e>0}),j78,DU(-1),hD())};
cnV=function(l,e,O){return l?mA([e,O]).pipe(FQ(function(E){var J=_.b(E);E=J.next().value;J=J.next().value;return E.timestamp.equals(J.timestamp)}),az(function(E){var J=_.b(E);
E=J.next().value;J=J.next().value;return E.value>J.value?E:J})):e};
RwA=function(l){return function(e){var O=e.pipe(Fmx),E=e.pipe(f72);return l instanceof eS?l.pipe(SS(function(J){return cnV(J,O,E)})):cnV(l.value,O,E)}};
tBT=function(l,e,O,E){var J=E.geometryIsOccluded,z=E.exposureThreshold,M=E.wasLargeAdAtRender,Z=E.allowLargeAdThreshold,u=E.largeAdExposureThreshold,d=E.mayUseViewportShareExposure,g=E.hasMeasurementStarted;E=E.useIntersectionObserverV2;e=Ta2(l,O,e);O=s7T(l,O);E=G5u(e,E);var w=BaA(l,J,d,e),n=w.pipe(az(function(r){return r.value}),hD(),bX(l),rp(function(r,D){return Math.max(r,D)},0)),k=w.pipe(az(function(r){return r.value}),HFx(),bX(l)),y=e.pipe(PXp,az(function(r){return r.value}),U$(2),hD(),bX(l));
M=U42(l,e,M,Z);var c=M.pipe(DU(!1),hD(),az(function(r){return r?u:z}));
Z=w.pipe(KmW(c),hD(),bX(l));var f=mA([Z,e]).pipe(FQ(function(r){var D=_.b(r);r=D.next().value;D=D.next().value;return r.timestamp.equals(D.timestamp)}),az(function(r){var D=_.b(r);
r=D.next().value;D=D.next().value;return{visible:r.value,geometry:D.value.elementGeometry}}),rp(function(r,D){return!D.visible&&r.visible?r:D},{visible:!1,
geometry:PR}),az(function(r){return r.geometry}),DU(PR),bX(l),hD(Z7));
d=d instanceof eS?d.pipe(hD(),PI()):a7;c=mA([d,c]).pipe(PI());var P=e.pipe(FQ(function(r){return r.value.viewportGeometrySourceName!=="ns"&&r.value.elementGeometrySourceName!=="ns"}),rp(function(r){return r+1},0),DU(0),bX(l)),h=O.pipe(PI(!0),DU(!1),bX(l));
h=mA([g,h]).pipe(az(function(r){var D=_.b(r);r=D.next().value;D=D.next().value;return r&&!D}),bX(l));
var N=e.pipe(YPt,hD()),t=N.pipe(az(function(r){return r.value}),rp(function(r,D){return Math.max(r,D)},0),hD(),bX(l));
l=N.pipe(az(function(r){return r.value}),HFx(),bX(l));
return{shouldResetExposureSignals:d,shouldResetViewabilitySignals:c,geometrySignals:{readyGeometryWithDefault:e,measurementStrategy:e.pipe(hwp),creativePosition:f.pipe(hD(Z7)),visible:Z.pipe(hD(YS)),timestampedExposure:w.pipe(hD(YS)),maximumExposure:n,minimumExposure:k,browserSize:e.pipe(Lmt,hD(_.bq)),timestampedScreenShare:N,maxScreenShare:t,minScreenShare:l,geometricMeasurementErrors:O,measurementRequests:e.pipe(az(function(r){return r.value.measurementRequests})),
isLargeAd:M,geometryIsOccluded:J,hasMeasurementStarted:g,geometryMeasurable:h,validMeasurementCount:P,loadTimeExposure:y,v2VisibilityBitVector:E}}};
s7T=function(l,e){return e.pipe(FQ(function(){return!1}),az(function(O){return O}),Gq(function(O){return tn(new V9(O),l)}))};
Ta2=function(l,e,O){return e.pipe(oeL(a7),bX(l)).pipe(hD(function(E,J){return YS(E,J,ued)}),DU({timestamp:O.now(),
value:fF}),bX(l))};
BaA=function(l,e,O,E){O=E.pipe(RwA(O),UP(az(function(J){return Math.round(J*100)/100})),bX(l));
return e instanceof V9?O:mA([O,e]).pipe(az(function(J){var z=_.b(J);J=z.next().value;z=z.next().value;return{timestamp:z.timestamp.maximum(J.timestamp),value:z.value?0:J.value}}),hD(YS),bX(l))};
U42=function(l,e,O,E){e=[e.pipe(az(function(J){return J.value.elementGeometry.width*J.value.elementGeometry.height>=242500}))];
O instanceof eS&&e.push(O.pipe(az(function(J){return!!J})));
O=mA(e);return E?O.pipe(az(function(J){return J.some(function(z){return z})}),DU(!1),hD(),bX(l)):tn(new V9(!1),l)};
G5u=function(l,e){l=mA([l,e]).pipe(az(function(J){var z=_.b(J);J=z.next().value;if(z.next().value&&J.value.isIntersecting)return J.value.isV2Visible}),hD());
var O=l.pipe(az(function(J){return J===void 0?!0:J}),rp(function(J,z){return J||!z},!1)),E=l.pipe(rp(function(J,z){return z===void 0?J:z?!1:J!=null?J:!0},void 0),az(function(J){return!!J}));
return mA([e,dmu(l,O,E)]).pipe(az(function(J){var z=_.b(J);J=z.next().value;var M=_.b(z.next().value);z=M.next().value;var Z=M.next().value;M=M.next().value;var u=0;if(!J)return 0;if(z===void 0)return 16;z&&(u|=1);z||(u|=2);Z&&(u|=4);M&&(u|=8);return u}))};
rnp=function(l,e,O,E,J){var z=q4.timeThresholdMs;var M=M===void 0?new qPA(e,E):M;return(new eS(function(Z){var u=O.pipe(DU(void 0),SS(function(){return vSL(J)})).pipe(az(function(d){var g=d.value;
d=d.timestamp;var w=g.visible;g=g.consecutiveViewTime;var n=g>=z;n||!w?vR(M):(d=Math.max(0,fl(e.now(),d)),Nag(M,Math.max(0,z-g-d)));return n}),rp(function(d,g){return g||d},!1),hD()).subscribe(Z);
return function(){M.dispose();u.unsubscribe()}})).pipe(QE(function(Z){return!Z},!0),bX(l))};
vSL=function(l){return XRx([l,l.pipe(ZFL())]).pipe(az(function(e){var O=_.b(e);e=O.next().value;O=O.next().value;return{timestamp:e.timestamp,value:{visible:e.value,consecutiveViewTime:O.value}}}),hD(function(e,O){return YS(e,O,function(E,J){return E.consecutiveViewTime===J.consecutiveViewTime&&E.visible===J.visible})}))};
D4q=function(){return l1(MBp(),rp(function(l,e){return Math.max(l,e)},0),az(function(l){return Math.round(l)}))};
SPt=function(l){return l1(KmW(WI(l)),D4q())};
Q7V=function(l,e){return e instanceof eS?e.pipe(SS(function(O){return(O=O?15:null)?dp(new kS(O)):l})):(e=e.value?15:null)?dp(new kS(e)):l};
x48=function(l){var e=new kS(13);if(l.length<1)return{chain:HI,capturedErrors:HI};var O=new Xe,E=l[0];return{chain:l.slice(1).reduce(function(J,z){return J.pipe(Gq(function(M){O.next(M);return z}))},E).pipe(Gq(function(J){O.next(J);
return dp(e)}),qR(new Xe),nl()),
capturedErrors:O}};
lF8=function(l,e){var O=l.pipe(qR(new Xe),nl());return SS(function(E){return O.pipe(e(E))})};
ObW=function(l,e){if(l.inCrossDomainIframe)return dp(new kS(6));var O=new Xe;return cI(WI({}),e,O).pipe(az(function(){return{timestamp:l.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:eJu(l),topWindowViewportExternalGeometry:sP(l,!0),measurementRequests:O,viewportLocalAppOffset:{x:0,y:0}}}}),z5(l.queue))};
eJu=function(l){var e=sP(l,!1);if(!l.inIframe||!N4(l.global.parent)||l.global.parent===l.global)return e;var O=new ra(l.global.parent,l.debugChannel);O.beaconFactory=l.beaconFactory;O=eJu(O);l=l.global.frameElement.getBoundingClientRect();return dR8(gAA(dR8(O,l),{x:e.left-l.left,y:e.top-l.top}),e)};
Ezq=function(l){if(l.prerendering)return 3;var e;return(e={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[l.visibilityState||l.webkitVisibilityState||l.mozVisibilityState||""])!=null?e:0};
Jld=function(l){return l.document.JSC$7408_onVisibilityChange.pipe(az(function(e){return e==="visible"}),hD(),bX(l.queue))};
XDA=function(l,e,O){var E;return e.pipe(hD(),SS(function(J){return O.pipe(az(function(){if(!E){E=!0;try{J.next()}finally{E=!1}}return!0}))}),DU(!1),bX(l.queue))};
zJg=function(l){return l1(UP(az(function(e){return e>=1?!0:e<=0?!1:e>=l})),bF8(),az(function(e){return Math.round(e)}))};
M$x=function(l,e,O,E,J){var z=bbx;if(z.length>1)for(var M=0;M<z.length-1;M++)if(z[M]<z[M+1])throw Error();M=J.pipe(DU(void 0),SS(function(){return O.pipe(ZFL())}),hD(),bX(l));
J=J.pipe(DU(void 0),SS(function(){return O.pipe(D4q())}),hD(),bX(l));
return{totalMeasurementTime:E.pipe(DU(void 0),SS(function(){return e.pipe(az(function(Z){return{timestamp:Z.timestamp,value:!0}}),bF8())}),hD(),bX(l)),
totalUnviewedTime:E.pipe(DU(void 0),SS(function(){return e.pipe(az(function(Z){return{timestamp:Z.timestamp,value:Z.value===0}}),bF8())}),hD(),bX(l)),
maxTimeOnScreen:E.pipe(DU(void 0),SS(function(){return e.pipe(VB8(SPt,z))}),hD(_.bq),bX(l)),
timeOnScreen:E.pipe(DU(void 0),SS(function(){return e.pipe(VB8(zJg,z),az(function(Z){return Z.map(function(u,d){return d>0?u-Z[d-1]:u})}))}),hD(_.bq),bX(l)),
maxConsecutiveViewTime:J,consecutiveViewTime:M.pipe(hD(YS),bX(l))}};
Zbu=function(l){var e=!0;e=e===void 0?!1:e;return l1(SS(function(O){return V$8(l.document,O,e)}),bX(l.queue))};
u8g=function(l,e,O){var E=O.pipe(az(function(J){return{value:J,timestamp:l.timeProvider.now()}}),hD(YS));
return e instanceof eS?e.pipe(hD(),SS(function(J){return J?tn(new V9({value:!1,timestamp:l.timeProvider.now()}),l.queue):E})):e.value===!1?E:new V9(!1)};
C$p=function(l,e,O,E,J,z,M){var Z=q4;e=e instanceof eS?e.pipe(DU(!1),hD()):e;var u=!l.isMobile();O=u8g(l,O,E);l=M.measurableCreative.pipe(Jnx(l.queue));return Object.assign({},Z,{geometryIsOccluded:O,wasLargeAdAtRender:J,allowLargeAdThreshold:u,mayUseViewportShareExposure:e,hasMeasurementStarted:l,useIntersectionObserverV2:z})};
$hu=function(l,e,O,E,J,z){var M=1;z=z===void 0?!0:z;M=M===void 0?.01:M;var Z=Z===void 0?l.timeProvider.intervalObservable(100).pipe(bX(l.queue)):Z;return l.performanceMonitor.timeExecution(916,function(){return ozt(l,e.pipe(z5(l.queue)),O.pipe(z5(l.queue)),E,J,z,M,Z)})()};
ozt=function(l,e,O,E,J,z,M,Z){var u=Jld(l).pipe(az(function(g){return!g})),d=new W3x(l,[new dhx(l,bbx),
new gzt(l,Z)]);Z=Np8(ibM,wDA);return URx(l,e,function(g,w){var n=tn(new V9(w.element),g.queue).pipe(Zbu(g),bX(g.queue)),k={loadedElement:n,shouldMeasure:n.pipe(PI(!0)),measurableCreative:n.pipe(az(function(r){var D=D===void 0?Symbol():D;return Object.freeze({symbol:D,element:tn(new V9(r),g.queue)})})),
creativeSearchResult:tn(new V9("mue"),g.queue)},y=new V9(!1),c=new V9(!1),f=new V9(17),P=new V9(!1),h=new V9(!1),N=tn(D7,g.queue);y=d.buildGeometrySource(k,{inApp:y,useV2:!1,requestSource:tn(f,g.queue)}).geometrySource;k=C$p(g,P,c,u,h,N,k);c=tBT(g.queue,g.timeProvider,y,k);k=c.geometrySignals;P=c.shouldResetViewabilitySignals;c=M$x(g.queue,k.timestampedExposure,k.visible,c.shouldResetExposureSignals,P);P=rnp(g.queue,g.timeProvider,P,k.measurementRequests,k.visible);h=O.pipe(FQ(function(r){return r===
w.element.ref}),az(function(){return"ur"}));
N=Azx(g.timeProvider,J).pipe(PI("t"));h=ynT(g,cI(h,N));N=XDA(g,k.measurementRequests,h.pipe(FQ(function(r){return r!==null})));
y=h.pipe(FQ(function(r){return r!==null}),az(function(){return Ezq(g.global.document)===1}));
var t=Alx(g.document);return Object.assign({},{beaconFactory:new V9(g.beaconFactory),context:new V9(g),inferredPingId:new V9("lidar2"),timeOnScreenPingId:new V9("lidartos"),binaryContext:new V9(17),binaryVersion:new V9(E),requestSource:f,contextValidationErrors:new V9(g.validate()?null:new I7),contextVisibilityKnown:new V9(t),payloadMapper:new V9(q$V),endOfSessionReason:h,timeOnScreenReason:h,requestMeasurementOnEndOfSession:N,hasImpressionFired:nzg,crossDomainIframeState:new V9(g.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:D7,inFetchLaterBeaconExperiment:D7,isTurtlex:D7,turtlexReportEventData:new V9(""),reportFencedFrameEvent:a7,isViewableAttributionEnabled:D7,inViewableAttributionExperiment:new V9(0),fetchBeaconFactory:a7,supportsPendingBeacon:D7,supportsFetchLater:D7,emit:new V9(S$u),beginToRenderEvent:new V9(Symbol()),activeViewUnmeasurableEvent:new V9(Symbol()),activeViewViewableEvent:new V9(Symbol()),creativeFound:nzg,immediateUrlPrefixes:new V9(w.immediateUrls),timeOnScreenUrlPrefixes:new V9(w.timeOnScreenUrls),
cpmavUrls:a7,viewableRelayUrls:a7,measurementDeferralState:new V9(2),urlSerializer:new V9(OFd),viewUrlSerializer:new V9(aFg),isCreativeLoaded:n.pipe(Jnx(g.queue)),pageVisible:u.pipe(az(function(r){return!r})),
eosPageVisible:y,timestampedExposureHistory:k.timestampedExposure.pipe(rp(function(r,D){r.push(D);return r},[]))},k,{viewable:LF(g,P),
maxTimeOnScreen:LF(g,c.maxTimeOnScreen),timeOnScreen:LF(g,c.timeOnScreen),maxConsecutiveViewTime:LF(g,c.maxConsecutiveViewTime),consecutiveViewTime:c.consecutiveViewTime.pipe(az(function(r){return new hn(g.timeProvider,r)})),
totalMeasurementTime:LF(g,c.totalMeasurementTime),totalUnviewedTime:LF(g,c.totalUnviewedTime),userAgentClientHints:rzp(g),clientOrderPingCounter:new V9(new hup)})},vA8(l,M),rDx(z?DRx(Z,kjt):DRx(Z,IFp),mhp))};
ylq=function(l){var e=_.ke.apply(1,arguments).filter(Boolean).join("&");if(!e)return l;var O=l.match(/[?&]adurl=/);return O?l.slice(0,O.index+1)+e+"&"+l.slice(O.index+1):l+(l.indexOf("?")<0?"?":"&")+e};
SB=function(l,e){return e?"&"+l+"="+encodeURIComponent(e):""};
pD8=function(){try{var l,e;return!!((l=window)==null?0:(e=l.top)==null?0:e.location.href)&&!1}catch(O){return!0}};
_.Q9=function(l){l&&typeof l.dispose=="function"&&l.dispose()};
_.xS=function(l){for(var e=0,O=arguments.length;e<O;++e){var E=arguments[e];_.SM(E)?_.xS.apply(null,E):_.Q9(E)}};
jQg=function(){var l=K3M();l=l===void 0?"bevasrsg":l;return new Promise(function(e){var O=window===window.top?window:pD8()?window:window.top,E=O[l],J;((J=E)==null?0:J.bevasrs)?e(new l$(E.bevasrs)):(E||(E={},E=(E.nqfbel=[],E),O[l]=E),E.nqfbel.push(function(z){e(new l$(z))}))})};
Hbx=function(l){var e={c:l.fZ,e:l.qq5,mc:l.oHB,me:l.yI8};l.gB&&(e.co={c:l.gB.veY,a:l.gB.ia8,s:l.gB.dfO});return e};
cl8=function(l){var e,O,E={fZ:l.c,qq5:l.e,oHB:(e=l.mc)!=null?e:!1,yI8:(O=l.me)!=null?O:!1};l.co&&(E.gB={veY:l.co.c,ia8:l.co.a,dfO:l.co.s});return E};
F3g=function(l){return function(){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l(),2);e=O.yieldResult;return O.return({f:function(){return e.tll()},
c:function(E){return e.nIv(E)},
m:function(E){return e.kA(cl8(E))},
mws:function(E){return e.uq(cl8(E))}})})}};
fFA=function(l,e){var O=K3M();O=O===void 0?"bevasrsg":O;e={s:function(z){var M;return l.snapshot(Object.assign({},z.c&&{fZ:z.c},z.s&&{qUY:z.s},{dWS:(M=z.p)!=null?M:!0}))},
e:function(z){var M;return void((M=l.nZB)==null?void 0:M.call(l,z))},
c:function(z,M){return l.caq(z,M)},
p:l.qIW,l:function(){return l.vL6()},
wpc:e?F3g(e):void 0};var E=window===window.top?window:pD8()?window:window.top,J=E[O];if(J){J.bevasrs=e;if(J.nqfbel!==void 0)for(O=_.b(J.nqfbel),E=O.next();!E.done;E=O.next())E=E.value,E(e);J.nqfbel=void 0}else J={},J=(J.bevasrs=e,J.nqfbel=void 0,J),E[O]=J};
Tkp=function(l){var e=e===void 0?49:e;var O=[];_.e$(l,RJd,6,_.Oo()).forEach(function(E){_.Eo(E,2)<=e&&O.push(_.Eo(E,1))});
return O};
sQt=function(l){var e=e===void 0?49:e;var O=[];_.e$(l,RJd,6,_.Oo()).forEach(function(E){_.Eo(E,2)>e&&O.push(_.Eo(E,1))});
return O};
GjW=function(l){l.then(function(){},function(){})};
Jl=function(l){return{fieldType:1,fieldName:l}};
X8=function(l){return{fieldType:2,fieldName:l}};
_.zj=function(l){return{fieldType:3,fieldName:l}};
Bkp=function(){function l(){J[0]=1732584193;J[1]=4023233417;J[2]=2562383102;J[3]=271733878;J[4]=3285377520;g=d=0}
function e(w){for(var n=M,k=0;k<64;k+=4)n[k/4]=w[k]<<24|w[k+1]<<16|w[k+2]<<8|w[k+3];for(k=16;k<80;k++)w=n[k-3]^n[k-8]^n[k-14]^n[k-16],n[k]=(w<<1|w>>>31)&4294967295;w=J[0];var y=J[1],c=J[2],f=J[3],P=J[4];for(k=0;k<80;k++){if(k<40)if(k<20){var h=f^y&(c^f);var N=1518500249}else h=y^c^f,N=1859775393;else k<60?(h=y&c|f&(y|c),N=2400959708):(h=y^c^f,N=3395469782);h=((w<<5|w>>>27)&4294967295)+h+P+N+n[k]&4294967295;P=f;f=c;c=(y<<30|y>>>2)&4294967295;y=w;w=h}J[0]=J[0]+w&4294967295;J[1]=J[1]+y&4294967295;J[2]=
J[2]+c&4294967295;J[3]=J[3]+f&4294967295;J[4]=J[4]+P&4294967295}
function O(w,n){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var k=[],y=0,c=w.length;y<c;++y)k.push(w.charCodeAt(y));w=k}n||(n=w.length);k=0;if(d==0)for(;k+64<n;)e(w.slice(k,k+64)),k+=64,g+=64;for(;k<n;)if(z[d++]=w[k++],g++,d==64)for(d=0,e(z);k+64<n;)e(w.slice(k,k+64)),k+=64,g+=64}
function E(){var w=[],n=g*8;d<56?O(Z,56-d):O(Z,64-(d-56));for(var k=63;k>=56;k--)z[k]=n&255,n>>>=8;e(z);for(k=n=0;k<5;k++)for(var y=24;y>=0;y-=8)w[n++]=J[k]>>y&255;return w}
for(var J=[],z=[],M=[],Z=[128],u=1;u<64;++u)Z[u]=0;var d,g;l();return{reset:l,update:O,digest:E,digestString:function(){for(var w=E(),n="",k=0;k<w.length;k++)n+="0123456789ABCDEF".charAt(Math.floor(w[k]/16))+"0123456789ABCDEF".charAt(w[k]%16);return n}}};
L32=function(l,e){e=e===void 0?P$d:e;if(!Uh8){var O;l=(O=l.navigator)==null?void 0:O.userAgentData;if(!l||typeof l.getHighEntropyValues!=="function"||l.brands&&typeof l.brands.map!=="function")return Promise.reject(Error("ya"));Yod((l.brands||[]).map(function(J){var z=new hJL;z=_.da(z,1,J.brand);return _.da(z,2,J.version)}));
typeof l.mobile==="boolean"&&_.b$(Mh,2,l.mobile);Uh8=l.getHighEntropyValues(e)}var E=new Set(e);return Uh8.then(function(J){var z=Mh.clone();E.has("platform")&&_.da(z,3,J.platform);E.has("platformVersion")&&_.da(z,4,J.platformVersion);E.has("architecture")&&_.da(z,5,J.architecture);E.has("model")&&_.da(z,6,J.model);E.has("uaFullVersion")&&_.da(z,7,J.uaFullVersion);return z.serialize()}).catch(function(){return Mh.serialize()})};
V6=function(l,e,O,E){this.initialValue_=l;this.maxValue_=e;this.currBaseValue_=this.currValue_=l;this.randomFactor_=O||0;this.backoffFactor_=E||2};
ZF=function(l){this.src=l;this.listeners={};this.typeCount_=0};
Nkx=function(){for(var l;l=t$g.remove();){try{l.fn.call(l.scope)}catch(e){Ep(e)}qoV.put(l)}vz2=!1};
_.u$=function(l){switch(l){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}};
rlV=function(l){switch(l){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""}};
_.Dh2=function(){};
X3x=function(l){return{vts:new Sox(l),errorCount:new QQq(l),eventCount:new xhg(l),gDB:new lcT(l),qZv:new e_p(l),hbt:new OSp(l),lTk:new EoA(l),uKk:new JFx(l)}};
cFx=function(l,e,O,E){l=z_L(bSx(Msd(new _.Cb(1828,"0"),l),new Vsd));e.length&&p3t(l,KFT(new jL8,e));E!==void 0&&(l.destinationUrl=E);var J=new HSd(1828,"","",!1,"",l.build());_.oQ(J,l);var z=new $z({flush:function(M){try{J.flush(M)}catch(Z){O(Z)}}});
z.addOnDisposeCallback(function(){setTimeout(function(){try{z.snapshotAndFlush()}finally{J.dispose()}})});
z.invocationLimit=1E5;z.flushInterval=3E4;z.JSC$7824_flushTimer.setInterval(3E4);return z};
WD=function(){var l,e,O;return(O=(l=globalThis.performance)==null?void 0:(e=l.now)==null?void 0:e.call(l))!=null?O:Date.now()};
fcL=function(l,e,O){if(l.disable)return new FFA;e=e?Tkp(e):[];if(O)return O.eKp(e),O.share();l={w7:l.w7,xxQ:l.xbk,pFH:l.gNV,destinationUrl:l.destinationUrl,v4Y:l.v4Y,vz:l.vz};O=e;O=O===void 0?[]:O;return new dk(l,O)};
R_t=function(l){if(!l)return null;l=_.gk(l,2);return l===null||l===void 0?null:KU(l)};
_.TXt=function(l){if(!l)return null;l=_.gk(l,4);return l===null||l===void 0?null:_.VS(l)};
BXL=function(l,e){return e?sLg(e):l?GhA(l):Promise.resolve()};
sLg=function(l){return new Promise(function(e,O){var E=_.i$("SCRIPT"),J=_.TXt(l);_.UN(E,J);E.onload=function(){_.wk(E);e()};
E.onerror=function(){_.wk(E);O(Error("Ja"))};
(nb("HEAD")[0]||document.documentElement).appendChild(E)})};
GhA=function(l){return new Promise(function(e){var O=_.i$("SCRIPT");if(l){var E=_.gk(l,6);E=E===null||E===void 0?null:_.G1(E)}else E=null;_.P2(O,E);(nb("HEAD")[0]||document.documentElement).appendChild(O);_.wk(O);e()})};
aQ=function(l,e,O){var E,J=new Promise(function(z){E=setTimeout(z,e)});
return Promise.race([l.finally(function(){return void clearTimeout(E)}),
J.then(O)])};
PJt=function(l,e){try{return globalThis.sessionStorage.setItem(l,e),!0}catch(O){return!1}};
Uau=function(l,e,O,E){e=e===void 0?0:e;O=O===void 0?l.length:O;var J=0;for(E&&(J=Uau(E));e<O;e++)E=typeof l==="string"?l.charCodeAt(e):l[e],J=YBA(31,J)+E|0;return J};
h_2=function(l,e){return[Uau(l,0,l.length>>1,e),Uau(l,l.length>>1)]};
LFA=function(l){var e=_.b(h_2(l,kz));l=e.next().value;e=e.next().value;return l.toString(16)+e.toString(16)};
tst=function(l,e){var O=h_2(e);l=new Uint32Array(l.buffer);e=l[0];var E=_.b(O);O=E.next().value;E=E.next().value;for(var J=1;J<l.length;J+=2){for(var z=e,M=J,Z=O,u=E,d=0;d<22;d++)M=M>>>8|M<<24,M+=z|0,M^=Z+38293,z=z<<3|z>>>29,z^=M,u=u>>>8|u<<24,u+=Z|0,u^=d+38293,Z=Z<<3|Z>>>29,Z^=u;z=[z,M];l[J]^=z[0];J+1<l.length&&(l[J+1]^=z[1])}};
qBq=function(l,e,O,E,J){var z=(4-(kz.length+O.length)%4)%4,M=new Uint8Array(4+z+kz.length+4+O.length),Z=new DataView(M.buffer),u=0;Z.setUint32(u,Math.random()*4294967295);u=u+4+z;M.set(kz,u);u+=kz.length;Z.setUint32(u,J);M.set(O,u+4);tst(M,E);return l.insert(e,function(d){return void globalThis.sessionStorage.removeItem(d)})?PJt(e,_.x4(M))?"s":"t":"i"};
vo8=function(l,e){var O=globalThis.sessionStorage.getItem(l);if(!O)return["m"];try{var E=_.VH(O);tst(E,e)}catch(J){return globalThis.sessionStorage.removeItem(l),["c"]}for(e=4;e<7&&E[e]===0;)e++;for(O=0;O<kz.length;O++)if(E[e++]!==kz[O])return globalThis.sessionStorage.removeItem(l),["d"];O=(new DataView(E.buffer)).getUint32(e);return Math.floor(Date.now()/1E3)>=O?(globalThis.sessionStorage.removeItem(l),["e"]):["a",new Uint8Array(E.buffer,e+4)]};
NXu=function(l){return globalThis.TextEncoder?(new TextEncoder).encode(l):_.IQ(l)};
rFL=function(l){var e=l,O;return function(){if(e){var E=e;e=void 0;O=E.apply(this,arguments)}return O}};
m3=function(l){return hC(function(e){if(e instanceof l)return!0;var O,E,J=e==null?void 0:(O=e.ownerDocument)==null?void 0:(E=O.defaultView)==null?void 0:E[l.name];return DaT(J)&&e instanceof J})};
_.Kb=function(l,e,O){_.y6.call(this);this.JSC$8037_listener_=l;this.JSC$8037_interval_=e||0;this.handler_=O;this.callback_=(0,_.pb)(this.JSC$8039_doAction_,this)};
_.j$=function(l){l=SBV(l);return _.VS(l)};
SBV=function(l){return l===null?"null":l===void 0?"undefined":l};
xaq=function(l){if(l&&l.focus)if(l!==document.activeElement)l.focus();else return QLq(function(){return _.V(function(e){document.activeElement&&document.activeElement.blur();return e.return(QLq(function(){l.focus()}))})})};
_.lBT=function(l){var e=e===void 0?5:e;setTimeout(function(){var O;return _.V(function(E){E.nextAddress==1&&(O=document.activeElement);if(E.nextAddress!=5)return(document.activeElement===O||document.activeElement===document.body)&&e>=0&&l?_.C(E,xaq(l),5):E.jumpTo(0);if(document.activeElement===l)return E.return();l=l.parentElement;--e;return E.jumpTo(2)})},15)};
QLq=function(l){return new Promise(function(e){requestAnimationFrame(function(){e(l())})})};
eTu=function(l){if(_.HD)l(_.HD);else{var e;((e=cD)!=null?e:cD=[]).push(l)}};
fb=function(){!_.HD&&_.F8&&_.OHp(_.F8());return _.HD};
_.OHp=function(l){_.HD=l;var e;(e=cD)==null||e.forEach(eTu);cD=void 0};
_.RQ=function(l){_.HD&&_.HD.beforeLoadModuleCode(l)};
_.Tj=function(){_.HD&&_.HD.JSC$8988_setLoaded()};
so=function(l){return su(l)?Number(l):String(l)};
Gj=function(l){this.action=l;this.wfv=!1};
Edq=function(l,e){Gj.call(this,"set-drive-options");this.appId=l;this.appOrigin=e};
JT2=function(l){Gj.call(this,"visibility");this.visible=l};
XKV=function(l,e,O){Uo.call(this,l,e,O)};
zT8=function(l){Yz.call(this,l)};
bHq=function(l){l=l&&l.getWindow()||window;return l.gadgets&&l.gadgets.rpc};
MD8=function(l,e){var O=e&&e.getWindow()||window;if(bHq(e))l();else if(hl)hl.push(l);else var E=hl=[l],J=O.setInterval(function(){if(bHq(e)){O.clearInterval(J);for(var z=0;z<E.length;z++)E[z]();hl=null}},100)};
ZHg=function(l,e){var O=new Lb(l);_.oQ(e,O);var E={passive:!1};e.listen(O,"mousewheel",function(J){return void VDt(l,J)},E).listen(l,"scroll",function(J){return void VDt(l,J)},E)};
VDt=function(l,e){var O;a:{for(O=e.target;O;){if(O.nodeType==1){var E=_.tl(O,"overflowY");if(E=="auto"||E=="scroll")break a}O=O.parentNode}O=null}if(!O||!_.qh(l,O)||O.scrollHeight==O.clientHeight||e.deltaY>0&&Math.abs(O.scrollTop-(O.scrollHeight-O.clientHeight))<=1||e.deltaY<0&&O.scrollTop==0)e.preventDefault(),e.stopPropagation()};
xz=function(l,e,O,E,J,z,M,Z,u){Z=Z===void 0?!1:Z;u=u===void 0?!1:u;Uo.call(this,void 0,void 0,void 0);Uo.call(this,z?z+" picker modal-dialog":"picker modal-dialog",!0,O);_.vD(l,"protocol");this.iframeManager_=new umL;this.targetId_=Nh();this.rpcToken_=Nh();l=_.rk(l);_.DF(l,"hostId");O=_.DF(l,"parent");this.useGapi_=!u&&!0||(O==null?void 0:O.includes("onepick.corp.google.com"));Z&&_.S$(l,"fv2","true");this.setUrl(l.toString());this.preferredDialogWidth_=E;this.preferredDialogHeight_=J;E!==void 0||
J!==void 0?E=!0:(E=_.DF(_.rk(l.toString()),"hostId"),CPp||(CPp=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),E=!CPp.has(E));this.autoSizeDialog_=E;this.JSC$8227_gadgetsDomHelper_=M||this.JSC$8178_dom_;e&&(M=this.JSC$8227_gadgetsDomHelper_,e=_.DF(_.rk(this.JSC$8229_url_),"grugl")=="true"?odx:$zV,bHq(M)||(M=M||WR(document),E=M.createElement("SCRIPT"),_.UN(E,e),E.type="text/javascript",M.JSC$7363_document_.body.appendChild(E)));
l=l.toString();e=null;M=l.indexOf("/picker?");M>-1?e=l.substring(0,M+8-1):zg(l,"/picker")&&(e=l);e&&this.setRelayUrl(e+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(l=this.buttons_,l.JSC$8212_element_=this.buttonEl_,l.render()):_.Ye(this.buttonEl_,WGq),_.Q6(this.buttonEl_,!!this.buttons_))};
_.wK8=function(l){var e=e===void 0?dzq:e;var O=_.Ox(l),E=function(z){z=_.b(z);z.next();z=lJ(z);return e(O,z)},J=function(z){var M=_.b(z);
z=M.next().value;M=lJ(M);return l.apply(z,M)};
return function(){var z=_.ke.apply(0,arguments),M=this||_.Op,Z=gdL.get(M);Z||(Z={},gdL.set(M,Z));return iHq(Z,[this].concat(_.kA(z)),J,E)}};
es=function(l){var e={};l=l.replace(/\r/g,"").split("\n");for(var O=0;O<l.length;O++){var E=l[O],J=E.indexOf(":");J<0||(e[E.substring(0,J)]=E.substring(J+2,E.length))}return e};
OB=function(l,e,O){O=O===void 0?function(){}:O;
return l?e():O()};
_.ndt=function(l){var e;return((e=ATx.documentOverride)!=null?e:l).__wizdispatcher};
aBx=function(l){return l===EB||(l==null?void 0:l.name)==="\u0275NotFound"};
_.X7=function(l){var e=JF;JF=l;return e};
zh=function(l,e){var O;if((O=l)==null?0:O.isDisposed)throw Error("nb`"+String(l.debugName));for(;l!==void 0;){O=l;if(O.retrieve)return O.retrieve(e,{optional:!0});l=l.parent}return EB};
bJ=function(l){return{"\u0275prov":{providedIn:"root",token:Symbol(l),factory:void 0,value:void 0}}};
_.kQp=function(l){var e=JF;if(!e){switch(l===void 0?3:l){case 0:l=Error("mb");break;case 1:l=Error("ob");break;case 2:l=Error("pb");break;default:l=Error("qb")}throw l;}return e};
IBA=function(l){var e=_.X7(l);l={};return l[Symbol.dispose]=function(){_.X7(e)},l};
mzg=function(l,e){l.disposables||(l.disposables=[]);l.disposables.push(e)};
Ma=function(l){var e=JF;e&&!e.isDisposed&&(mzg(e,l),l.parent=e)};
pKT=function(l){if(l.disposables){for(var e=_.b(l.disposables),O=e.next();!O.done;O=e.next())O=O.value,typeof O==="function"?O():yTV(O);l.disposables.length=0}};
yTV=function(l){if(!l.isDisposed){l.isDisposed=!0;var e;(e=l[Symbol.dispose])==null||e.call(l);delete l.parent;pKT(l)}};
sUx=function(l){var e={retrieve:function(O){switch(O.\u0275prov.token){case KGL.\u0275prov.token:var E=l.asyncDeps;break;case jUM.\u0275prov.token:E=l.rootElement;break;case HHg.\u0275prov.token:E=l.modelRootElement;break;case cTV.\u0275prov.token:E=l.appContext;break;case FG2.\u0275prov.token:E=l.rendererData;break;case fBM.\u0275prov.token:E=l.injectingConstructor;break;case RTu.\u0275prov.token:E=l.dispatcher}if(E)O=E;else a:{for(E=e.parent;E;){var J=E;if(J.retrieve){O=J.retrieve(O);break a}E=
E.parent}E=O.\u0275prov.token;J=T58[E];J!==void 0?O=J:(J=O.\u0275prov.providedIn,O.\u0275prov.factory?(O=O.\u0275prov.factory(),E&&J==="root"&&(T58[E]=O)):O=EB)}return O}};
Ma(e);return e};
GQg=function(){var l=_.kQp(1),e=zh(l,cTV);aBx(e)&&(l=zh(l,RTu),aBx(l)||l.getOptionalAppContext())};
B5x=function(l){if(typeof document!=="undefined"&&document&&document.getElementById&&(l=document.getElementById(l))){var e=l.tagName.toUpperCase();if(e=="SCRIPT"||e=="LINK")return l}return null};
Uz2=function(l,e){if((l=l===void 0?"":l)&&e)throw Error("wb");var O="";var E=_.Op._F_jsUrl;(l=e||B5x(l))&&(O=l.src?l.src:l.getAttribute("href"));if(E&&O){if(E!=O)throw Error("xb`"+E+"`"+O);O=E}else O=E||O;if(!PPW(O))throw Error("yb");return O};
tDt=function(){if(!YCp){YCp=!0;try{var l=Uz2(_.Op._F_jsUrl?"":"base-js")}catch(E){return}var e=hTx(LGW(l)),O=Object.keys(e);O.length!==0&&eTu(function(E){for(var J=_.b(O),z=J.next();!z.done;z=J.next()){z=z.value;for(var M=_.b(Object.keys(e[z])),Z=M.next();!Z.done;Z=M.next())E.addExtraEdge(z,Z.value)}})}};
vdg=function(){var l=Object.assign({},qCT);Object.getOwnPropertyNames(qCT).forEach(function(e){_.Zc[e]!==void 0&&(l[e]=_.Zc[e])});
return l};
N5d=function(l,e){if(_.Zc.enablePerformanceTiming){var O,E;(E=(O=performance).mark)==null||E.call(O,l+"Start__"+e)}};
rT8=function(l,e){if(_.Zc.enablePerformanceTiming){var O,E;(E=(O=performance).measure)==null||E.call(O,l+"__"+e,l+"Start__"+e)}};
DzW=function(l,e,O){var E;return l&&e?l+"__"+e:(E=l!=null?l:e)!=null?E:O};
QUx=function(l,e){var O=Object.create(SCM);O.debugName=e;!JF||Ma(O);e=_.X7(O);try{l(O)}finally{_.X7(e)}return function(){return void yTV(O)}};
lhT=function(l){return uJ(l)&&xzT in l};
edx=function(l,e){return Object.is(l,e)};
oL=function(l){var e=CS;CS=l;return e};
Xkg=function(l){if(W3)throw Error("da");if(CS!==null){var e=CS.nextProducerIndex++;Ov8(CS);e<CS.producerNode.length&&CS.producerNode[e]!==l&&dX(CS)&&E6q(CS.producerNode[e],CS.producerIndexOfThis[e]);CS.producerNode[e]!==l&&(CS.producerNode[e]=l,CS.producerIndexOfThis[e]=dX(CS)?J5g(l,CS,e):0);CS.producerLastReadVersion[e]=l.version}};
M7L=function(l){if(!dX(l)||l.dirty)if(l.dirty||l.lastCleanEpoch!==zdM)(l.producerMustRecompute(l)||bv8(l))&&l.producerRecomputeValue(l),l.dirty=!1,l.lastCleanEpoch=zdM};
V7x=function(l){if(l.liveConsumerNode!==void 0){var e=W3;W3=!0;try{for(var O=_.b(l.liveConsumerNode),E=O.next();!E.done;E=O.next()){var J=E.value;J.dirty||(l=void 0,J.dirty=!0,V7x(J),(l=J.consumerMarkedDirty)==null||l.call(J,J))}}finally{W3=e}}};
Zvu=function(){var l;return((l=CS)==null?void 0:l.consumerAllowSignalWrites)!==!1};
uRT=function(l){l&&(l.nextProducerIndex=0);return oL(l)};
Ct8=function(l,e){oL(e);if(l&&l.producerNode!==void 0&&l.producerIndexOfThis!==void 0&&l.producerLastReadVersion!==void 0){if(dX(l))for(e=l.nextProducerIndex;e<l.producerNode.length;e++)E6q(l.producerNode[e],l.producerIndexOfThis[e]);for(;l.producerNode.length>l.nextProducerIndex;)l.producerNode.pop(),l.producerLastReadVersion.pop(),l.producerIndexOfThis.pop()}};
bv8=function(l){Ov8(l);for(var e=0;e<l.producerNode.length;e++){var O=l.producerNode[e],E=l.producerLastReadVersion[e];if(E!==O.version)return!0;M7L(O);if(E!==O.version)return!0}return!1};
J5g=function(l,e,O){o6p(l);if(l.liveConsumerNode.length===0&&l.producerNode!==void 0)for(var E=0;E<l.producerNode.length;E++)l.producerIndexOfThis[E]=J5g(l.producerNode[E],l,E);l.liveConsumerIndexOfThis.push(O);return l.liveConsumerNode.push(e)-1};
E6q=function(l,e){o6p(l);if(l.liveConsumerNode.length===1&&l.producerNode!==void 0)for(var O=0;O<l.producerNode.length;O++)E6q(l.producerNode[O],l.producerIndexOfThis[O]);O=l.liveConsumerNode.length-1;l.liveConsumerNode[e]=l.liveConsumerNode[O];l.liveConsumerIndexOfThis[e]=l.liveConsumerIndexOfThis[O];l.liveConsumerNode.length--;l.liveConsumerIndexOfThis.length--;e<l.liveConsumerNode.length&&(O=l.liveConsumerIndexOfThis[e],l=l.liveConsumerNode[e],Ov8(l),l.producerIndexOfThis[O]=e)};
dX=function(l){var e,O;return l.consumerIsAlwaysLive||((O=l==null?void 0:(e=l.liveConsumerNode)==null?void 0:e.length)!=null?O:0)>0};
Ov8=function(l){l.producerNode!=null||(l.producerNode=[]);l.producerIndexOfThis!=null||(l.producerIndexOfThis=[]);l.producerLastReadVersion!=null||(l.producerLastReadVersion=[])};
o6p=function(l){l.liveConsumerNode!=null||(l.liveConsumerNode=[]);l.liveConsumerIndexOfThis!=null||(l.liveConsumerIndexOfThis=[])};
WWT=function(l){var e=Object.create($GW);e.computation=l;l=function(){M7L(e);Xkg(e);if(e.value===gX)throw e.error;return e.value};
l[iJ]=e;return l};
wkL=function(l,e){var O=Object.create(dGL);O.value=l;e!==void 0&&(O.equal=e);l=function(){Xkg(O);return O.value};
l[iJ]=O;return[l,function(E){return g6M(O,E)},
function(E){Zvu()||ivW(O);g6M(O,E(O.value))}]};
g6M=function(l,e){Zvu()||ivW(l);if(!l.equal(l.value,e)){l.value=e;l.version++;zdM++;V7x(l);var O;(O=A52)==null||O(l)}};
wX=function(l){var e=oL(null);try{return l()}finally{oL(e)}};
_.AF=function(l,e,O){O=O===void 0?"":O;l=wkL(l,e==null?void 0:e.equals);var E=l[0],J=E[iJ];J.debugName=DzW(e==null?void 0:e.debugName,O,"[signal]");if(!_.Zc.enablePerformanceTiming)return l;var z=l[1],M=l[2];return[E,function(Z){n6u(function(){return void z(Z)},J)},
function(Z){n6u(function(){return void M(Z)},J)}]};
n6u=function(l,e){N5d("signalSet",e.debugName);try{l()}finally{rT8("signalSet",e.debugName)}};
kRx=function(l,e){var O=_.b(_.AF(l,void 0,"cPpJzc"));l=O.next().value;O=O.next().value;l[ahV]=O;l[nS]=e;return l};
Ihx=function(l){return!!l&&typeof l==="object"&&Object.getPrototypeOf(l)===Object.prototype};
mGx=function(l){return typeof l==="function"&&ahV in l&&typeof l[ahV]==="function"};
y5L=function(l,e){Object.defineProperty(l,nS,{get:function(){return e}})};
ko=function(l,e){if(aL(l)){var O=l.map(function(z){return ko(z,e)});
y5L(O,e);return O}if(Ihx(l)){O={};l=_.b(Object.entries(l));for(var E=l.next();!E.done;E=l.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;O[E]=ko(J,e)}y5L(O,e);return O}return kRx(l,e)};
pku=function(l){if(aL(l))return l.map(function(J){return pku(J)});
if(Ihx(l)){var e={};l=_.b(Object.entries(l));for(var O=l.next();!O.done;O=l.next()){var E=_.b(O.value);O=E.next().value;E=E.next().value;e[O]=pku(E)}return e}return mGx(l)?l():l};
jyg=function(){var l={height:0,width:0};if(!Ihx(l))throw Error("Kb");var e=Symbol("Lb");return[ko(l,e),function(O,E){if(O[nS]===e)if(typeof E==="function"){var J=[].concat(_.kA(pku(O)));E=E(J)||J;KWM(O,[].concat(_.kA(E)))}else KWM(O,E);else throw Error("Mb");}]};
KWM=function(l,e){if(mGx(l))l[ahV](e);else if(aL(l)&&aL(e))e=ko(e,l[nS]),l.length=0,l.push.apply(l,_.kA(e));else if((Ihx(l)||aL(l))&&(aL(e)||typeof e==="object"&&e!==null)){e=_.b(Object.entries(e));for(var O=e.next();!O.done;O=e.next()){var E=_.b(O.value);O=E.next().value;E=E.next().value;var J=l,z=J[O];Object.hasOwn(l,O)?KWM(z,E):J[O]=ko(E,l[nS])}}else throw Error("Nb");};
HvW=function(l){return Object.create(Object.assign({},IL,l))};
FWx=function(){var l;return(l=c5x)!=null?l:c5x=HvW({consumerAllowSignalWrites:!0})};
_.mF=function(l,e,O){O=O===void 0?"":O;l=WWT(l);var E=l[iJ];E.debugName=DzW(e==null?void 0:e.debugName,O,"[computed]");(e==null?void 0:e.equals)!=null&&(E.equal=e.equals);return l};
y5=function(l){var e=oL(fhx);try{l()}finally{oL(e)}};
UGd=function(l){if(!l.isDisposed)switch(l.effectType){case Rdg:TLp.schedule(l);break;case syT:GRd.schedule(l);break;case BLx:Ptx.schedule(l);break;default:_.VC(l.effectType)}};
hdW=function(l){Yst.push(l);return function(){var e=Yst.indexOf(l);e!==-1&&Yst.splice(e,1)}};
t7x=function(){if(pS>0)_.Zc.flushRenderEffectsDuringRender&&TLp.flush();else for(var l=_.b(LWV),e=l.next();!e.done;e=l.next())e.value.flush()};
v6x=function(l){KS=!0;try{for(var e=_.b(l),O=e.next();!O.done;O=e.next()){for(var E=O.value,J=[E],z=E;z.parent!==void 0;)z=z.parent,qsM(z)&&l.has(z)&&J.push(z);for(;J.length>0;){var M=J.pop();l.delete(M);M.run()}}}finally{KS=!1}};
js=function(l){pS--;if(l){l=_.b(LWV);for(var e=l.next();!e.done;e=l.next())e.value.clear()}else pS>0||KS&&!_.Zc.flushRenderEffectsDuringRender||t7x()};
r52=function(l,e,O){var E=NLL(l);H3={name:O?E+" ("+O+")":E,isReactive:l.componentType!==c3,parent:H3};l=e();H3=H3.parent;return l};
F7=function(){var l=H3;return l?l.isReactive:!1};
RL=function(l,e){var O=H3;e&&(H3=e);try{return l()}catch(z){l=z;fS(l,H3);if(l!==DGx){Ssx=H3;e=[];for(var E=JF;E;){var J=void 0;e.push((J=E.debugName)!=null?J:"[context]");J=void 0;E=(J=E.parent)!=null?J:null}QyM=e.reverse()}DGx=l;throw l;}finally{H3=O}};
fS=function(l,e){try{var O=xG8(e);if(O&&!l.componentStack&&(l.componentStack=O,_.Zc.enableComponentStacksInErrorMessages)){var E=l.message+"\n\nComponent stack: "+O;l.stack&&(l.stack=l.stack.replace(l.message,E));l.message=E}}catch(J){}};
xG8=function(l){if(uJ(l)&&l.name!==void 0&&l.isReactive!==void 0&&l.parent!==void 0||l===null){for(var e=0,O="";e<20&&l;)O+=l.name+" > ",l=l.parent,e++;l=O.slice(0,-3)}else if(_.Zc.enableContextBasedComponentStacks){a:{for(l=l===void 0?JF:l;l;){if(lhT(l))break a;e=void 0;l=(e=l.parent)!=null?e:null}l=null}l=l.getComponentStack().slice(0,20).join(" > ")}else l="";return l};
NLL=function(l){return l.debugName||l.name||"[component]"};
lAL=function(l,e,O){e=Object.create(e);e.effectFn=l;O&&(e.debugName=O);Ma(e);e.componentStack=H3;return e};
_.Gh=function(l,e){l=lAL(l,epx,e);UGd(l)};
_.B3=function(l){var e=JF;if(e){var O=H3;mzg(e,function(){var E=oL(FWx());try{RL(function(){return void l()},O)}catch(J){throw _.Zc.enableContextBasedComponentStacks&&fS(J),J;
}finally{oL(E)}})}};
P3=function(l,e){var O={};(e===void 0||e)&&Ma(O);e=_.X7(O);try{l(O)}finally{_.X7(e)}return function(){return void yTV(O)}};
_.UB=function(l){return typeof l==="function"?l():(l==null?0:l[OuT])?l.get():l};
_.Yo=function(l,e){l=lAL(l,EPd,e);UGd(l)};
JWA=function(l){if(JF)throw Error("rb");P3(l,!1)};
hF=function(l,e){l=_.X7(l);try{return wX(e)}finally{_.X7(l)}};
_.LS=function(l,e){var O=xG8(Ssx),E,J;var z=(J=(E=QyM)==null?void 0:E.slice())!=null?J:[];e={componentStack:O,contextTrace:z,errorSeverity:3,featureFlags:vdg(),tagName:e};return[l,e]};
bu8=function(l,e,O){if(Object.hasOwnProperty.call(XwM,l)&&(l=XwM[l],Object.hasOwnProperty.call(l,e)&&(l=l[e],l instanceof Array))){for(var E=null,J=!1,z=0,M=l.length;z<M;++z){var Z=l[z],u=Z.contingentAttribute;if(!u)return Z.contract;E===null&&(E={});u=Object.hasOwnProperty.call(E,u)?E[u]:E[u]=O(u);if(u===Z.requiredValue)return Z.contract;u==null&&(J=!0)}if(J)return null}e=zpq[e];return typeof e==="number"?e:null};
ZuL=function(l,e,O){var E=null;(l=MtW[l])&&(E=l[e]);return typeof E!=="number"&&((l=MtW["*"])&&(E=l[e]),typeof E!=="number")?!1:!0===VtA[E][String(O).toLowerCase()]};
CLA=function(l,e){e=bu8(l.toLowerCase(),e,function(){var E;(E=_.Zc.handleError)==null||E.call.apply(E,[_.Zc].concat(_.kA(_.LS(Error("Rb"),l.toLowerCase()))))});
if(e===null)return null;var O;return(O=u_L[e])!=null?O:null};
oP8=function(l,e,O){if(O===null||O===void 0)return O;l=CLA(l,e);return l===null?O:l(e,O)};
$xu=function(){};
tF=function(l,e){for(;l.length>e;)l.pop()};
WwW=function(l){l=Array(l);tF(l,0);return l};
dxA=function(l,e,O){if(O==null)l.removeAttribute(e);else{var E;(E=e.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":e.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?l.setAttributeNS(E,e,O):l.setAttribute(e,O)}};
gP2=function(l,e,O){l[e]=O};
wwx=function(l,e,O){l=l.style;if(typeof O==="string")l.cssText=O;else{l.cssText="";for(var E in O)if(iug.call(O,E)){e=l;var J=E,z=O[E];J.indexOf("-")>=0?e.setProperty(J,z):e[J]=z}}};
AWu=function(l,e,O){var E=typeof O;E==="object"||E==="function"?l[e]=O:dxA(l,e,O)};
nPM=function(){var l=new $xu;l[qa.default]=AWu;l.style=wwx;return l};
aAp=function(l,e,O,E){(E[e]||E[qa.default])(l,e,O)};
IAu=function(l,e,O){e=new kJA(e,O);return l.__incrementalDOMData=e};
v3=function(l,e){if(l.__incrementalDOMData)return l.__incrementalDOMData;var O=l.nodeType===1?l.localName:l.nodeName,E=l.nodeType===1?l.getAttribute("key"):null;e=IAu(l,O,l.nodeType===1?E||e:null);if(l.nodeType===1&&(l=l.attributes,O=l.length)){E=e._attrsArr||(e._attrsArr=WwW(O*2));for(var J=0,z=0;J<O;J+=1,z+=2){var M=l[J],Z=M.value;E[z]=M.name;E[z+1]=Z}}return e};
mx8=function(l,e,O,E,J){return e==O&&E==J};
yWt=function(l){for(var e=Na,O=rX();O!==l;){var E=O.nextSibling;e.removeChild(O);Dc.deleted.push(O);O=E}};
rX=function(){return Ss?Ss.nextSibling:Na.firstChild};
Q5=function(){Ss=rX()};
jCu=function(l,e,O){Q5();var E;a:{if(E=Ss){do{var J=E,z=l,M=e,Z=v3(J,M);if(pwd(J,z,Z.nameOrCtor,M,Z.key))break a}while(e&&(E=E.nextSibling))}E=null}E||(l==="#text"?(O=xo.createTextNode(""),IAu(O,"#text",null),l=O):(E=xo,J=Na,typeof l==="function"?E=new l:E=(J=l==="svg"?"http://www.w3.org/2000/svg":l==="math"?"http://www.w3.org/1998/Math/MathML":J==null||v3(J).nameOrCtor==="foreignObject"?null:J.namespaceURI)?E.createElementNS(J,l):E.createElement(l),IAu(E,l,e),l=E,O&&l.setAttribute("nonce",O)),Dc.created.push(l),
E=l);O=E;if(O!==Ss){if(Kwp.indexOf(O)>=0)for(l=Na,e=O.nextSibling,E=Ss;E!==null&&E!==O;)J=E.nextSibling,l.insertBefore(E,e),E=J;else Na.insertBefore(O,Ss);Ss=O}};
Hug=function(l,e,O){jCu(l,e,O);Na=Ss;Ss=null;return Na};
cW8=function(){yWt(null);Ss=Na;Na=Na.parentNode};
lP=function(){Ss=Na.lastChild};
RpM=function(l,e){e=e===void 0?{}:e;var O=e.matches===void 0?mx8:e.matches;return function(E,J,z){var M=Dc,Z=xo,u=Kwp,d=OC,g=EC,w=Ss,n=Na,k=pwd;xo=E.ownerDocument;Dc=new FwM(E);pwd=O;OC=[];EC=[];Ss=null;var y=Na=E.parentNode,c,f=fAL.call(E);if((c=f.nodeType===11||f.nodeType===9?f.activeElement:null)&&E.contains(c)){for(f=[];c!==y;)f.push(c),c=c.parentNode||(y?c.host:null);y=f}else y=[];Kwp=y;try{return l(E,J,z)}finally{E=Dc,JT&&E.deleted.length>0&&JT(E.deleted),xo=Z,Dc=M,pwd=k,OC=d,EC=g,Ss=w,Na=n,
Kwp=u}}};
T3u=function(l,e,O,E){Xm.push(aAp);Xm.push(l);Xm.push(e);Xm.push(O);Xm.push(E)};
GJA=function(l,e,O){var E=EC;e=e._attrsArr||(e._attrsArr=WwW(E.length));for(var J=!e.length||!1,z=0;z<E.length;z+=2){var M=E[z];if(J)e[z]=M;else if(e[z]!==M)break;var Z=E[z+1];if(J||e[z+1]!==Z)e[z+1]=Z,T3u(l,M,Z,O)}if(z<E.length||z<e.length){for(z=J=z;z<e.length;z+=2)zQ[e[z]]=e[z+1];for(z=J;z<E.length;z+=2)J=E[z],M=E[z+1],zQ[J]!==M&&T3u(l,J,M,O),e[z]=J,e[z+1]=M,delete zQ[J];tF(e,E.length);for(var u in zQ)T3u(l,u,void 0,O),delete zQ[u]}l=sCu;sCu=O=Xm.length;for(u=l;u<O;u+=5)(0,Xm[u])(Xm[u+1],Xm[u+
2],Xm[u+3],Xm[u+4]);sCu=l;tF(Xm,l);tF(E,0)};
bP=function(l){jCu("#text",null);var e=Ss;var O=v3(e);if(O.text!==l){O=O.text=l;for(var E=1;E<arguments.length;E+=1)O=(0,arguments[E])(O);e.data!==O&&(e.data=O)}};
Lwx=function(l,e,O){if(O===!1&&B32.has(e))dxA(l,e,null);else if(e!=="idomKey"&&e!=="skip"&&e!=="skipchildren"&&e!=="children"&&e!=="el")if(e.startsWith("on"))if(e[2]===":")if(O===void 0||O===null){var E;(E=_.Zc.handleError)==null||E.call.apply(E,[_.Zc].concat(_.kA(_.LS(Error("Vb`"+e),l.tagName))));l[e]=void 0}else{var J=e.slice(3);E=F7();if(J==="jsaction"){O=_.b(Array.isArray(O)?O:[O]);for(var z=O.next();!z.done;z=O.next()){z=z.value;if(typeof z!=="object"||z===null||typeof z.selfReg!=="function")throw Error("Yb`"+
e);z.selfReg(0,l,E?_.B3:function(){})}}else{if(typeof O!=="object"||O===null)throw Error("Wb`"+e+"`"+typeof O);
if(typeof O.getFn!=="function")throw Error("Xb`"+e+"`"+Object.keys(O));if(O.selfReg)O.selfReg(0,l,J,E?_.B3:function(){});
else if(E&&l["on"+J]===void 0){var M=O.getFn(0);l.addEventListener(J,M);_.B3(function(){return void l.removeEventListener(J,M)})}else if(E||!PLT.includes(J))l["on"+J]=O.getFn(0)}}else Ux8(l,e,O);
else{if(e.startsWith("data-")&&typeof O==="string")try{O=YDx(O)}catch(Z){O="zSoyz"}typeof O!=="function"||l._disposeEffects!=null?(_.Zc.enableAttributeSanitization&&(O=oP8(l.tagName,e,O)),e==="style"?hpx(l,e,O):e.startsWith("prop:")?(e=e.slice(5),l[e]=O):Ux8(l,e,O)):(l._signalProps||(l._signalProps=[]),l._signalValues||(l._signalValues=[]),l._signalProps.push(e))}};
ttp=function(l,e,O){O=(O===void 0?{}:O).isReactive;if(e==null?0:e.el){var E=e.el;if(typeof E==="function")E(l);else{var J;(J=E.onRender)==null||J.call(E,l);l._disposeRef||(l._disposeRef=function(){var z;(z=E.onUnmount)==null||z.call(E);delete l._disposeRef},O&&_.B3(function(){var z;
return void((z=l._disposeRef)==null?void 0:z.call(l))}))}}};
qDx=function(l){return uJ(l)&&Mz in l};
vP8=function(l){return qDx(l)?l[Mz].flattened:l};
N3d=function(l,e){var O=_.ke.apply(2,arguments),E;e=(E=e)!=null?E:{};E={};return E.type=l,E.props=e,E.children=O,E[Vt]=!0,E};
_.ZB=function(l){return l.children};
uP=function(l){var e=rWx!==N3d;rWx=l?Dxx:N3d;return e};
_.CH=function(l){return _.e0(l)?"nodeType"in l:!1};
oU=function(){return document.createTextNode("")};
$d=function(l){l=document.createTextNode(String(l));l._isSignalTextNode=!0;return l};
lbx=function(l){var e=document.createElement("div");if(SDx(l)&&R_t(l))_.Ye(e,R_t(l));else if(l instanceof pU)_.Ye(e,l);else if(QCA(l)){if(l.contentKind!==xx8)throw Error("Ub");l=KU(l.toString());_.Ye(e,l)}l=_.b(e.childNodes);for(var O=l.next();!O.done;O=l.next())O.value._isSafeOrSanitizedHtmlNode=!0;return e};
WK=function(l){l=typeof l;return l==="string"||l==="number"||l==="boolean"};
eBL=function(l){return l instanceof Mm||$e(l)||"function"==typeof _.tz&&l instanceof _.tz||!1};
OZ8=function(l,e){var O=l.parentElement;if(!O)return e;O.replaceChild(e,l);return e};
EEx=function(l,e){var O=l[0].parentElement;if(O)if(l[0].previousSibling||l[l.length-1].nextSibling){O.insertBefore(e,l[0]);for(var E=l.length-1;E>=0;E--)O.removeChild(l[E])}else O.textContent="",O.appendChild(e);return e};
JG2=function(l,e){if(l[0].parentElement)for(var O=l[0].parentElement,E=e.length,J=l.length,z=E,M=0,Z=0,u=l[J-1].nextSibling,d=null;M<J||Z<z;)if(l[M]===e[Z])M++,Z++;else{for(;l[J-1]===e[z-1];)J--,z--;if(J===M)for(var g=z<E?Z?e[Z-1].nextSibling:e[z-Z]:u;Z<z;){var w=e[Z++];O.insertBefore(w,g)}else if(z===Z)for(;M<J;)g=l[M],d&&d.has(g)||O.removeChild(g),M++;else if(l[M]===e[z-1]&&e[Z]===l[J-1])g=l[--J].nextSibling,O.insertBefore(e[Z++],l[M++].nextSibling),O.insertBefore(e[--z],g),l[J]=e[z];else{if(!d)for(d=
new Map,g=Z;g<z;)d.set(e[g],g++);g=d.get(l[M]);if(g==null)O.removeChild(l[M]),M++;else if(Z<g&&g<z){w=M;for(var n=1,k=void 0;++w<J&&w<z&&(k=d.get(l[w]))!=null&&k===g+n;)n++;if(n>g-Z)for(w=l[M];Z<g;)O.insertBefore(e[Z++],w);else O.replaceChild(e[Z++],l[M++])}else M++}}return e};
MUA=function(l,e){var O;e!=null?O=e:O=_.ndt(document).getAppContext();O.get(XmL).JSC$25537_getEventTarget().dispatchEvent(new zBL(bZp,l,xx8))};
ZZT=function(l){if(Array.isArray(l)){if(l.length>1)throw Error("gc`"+l.length+"`"+l.map(VUx).join(", "));l=l[0]}if(l==null)return null;if(!(l instanceof _.T1)){var e,O;if((e=window)==null?0:(O=e.trustedTypes)==null?0:O.isScript(l))throw Error("fc");if(String(l).trim().length===0)return null;throw Error("hc`"+VUx(l));}return l};
uxd=function(l){if(Array.isArray(l)){if(l.length>1)throw Error("ic`"+l.length+"`"+l.map(VUx).join(", "));l=l[0]}if(l==null)return null;if(!ku2(l)){if(String(l).trim().length===0)return null;throw Error("jc`"+VUx(l));}return l};
VUx=function(l){return"("+typeof l+") "+(l!=null&&typeof l==="object"?l.constructor.name:typeof l)+" "+l};
g5=function(l,e){function O(){J=!1;e.isControlFlowComponent&&pS++;var z=E[0],M=E[Mz].flattened,Z=uP(!0);try{var u=l(),d=CN2(z,u,E);Array.isArray(d)||(E[Mz].flattened=[d]);var g=E[Mz].flattened;if(M&&(!Array.isArray(M)||M.length!==0)){var w=Array.isArray(M)?M[0]:M,n=w[d5],k=w._disposeEffects;w._disposeEffects=void 0;w=Array.isArray(g)?g[0]:g;w[d5]=n;w[d5]&&(w[d5].numNodes=w===g?1:g.length);w._disposeEffects=k}E[0]=d;e.isControlFlowComponent&&js(!1)}catch(y){throw e.isControlFlowComponent&&js(!0),y;
}finally{uP(Z)}}
e=e===void 0?{}:e;var E=oEq(),J=!0;_.Zc.legacyTriggerSoyRendererEvents&&GQg();_.Yo(function(){($rt==null?0:$rt.logger)&&!J?($rt.logger.logGraft(E[Mz].flattened[0].parentElement,O),$rt.logger.resetBuilder()):O()},e.debugName);
return E};
CN2=function(l,e,O){for(;typeof e==="function";)e=e();if(e!=null&&e[Vt]){var E,J,z;(z=_.Zc.handleError)==null||z.call.apply(z,[_.Zc].concat(_.kA(_.LS(Error("kc`"+((E=e.type)==null?void 0:E.TAG_NAME)),(J=e.type)==null?void 0:J.TAG_NAME))))}if(l==null)return e==null?oU():WK(e)?$d(e):eBL(e)?$d(e.toString()):_.CH(e)?e:e.length===0?oU():WB8(e,O);if(_.CH(l)){if(e==null)return OZ8(l,oU());if(WK(e))return drt(l,e);if(eBL(e))return drt(l,e.toString());if(_.CH(e))return OZ8(l,e);if(e.length===0)return OZ8(l,
oU());e=WB8(e,O);JG2([l],O[Mz].flattened);return e}l=iP(l);if(e==null)return EEx(l,oU());if(WK(e))return EEx(l,$d(e));if(eBL(e))return EEx(l,$d(e.toString()));if(_.CH(e))return JG2(l,[e])[0];if(e.length===0)return EEx(l,oU());e=WB8(e,O);JG2(l,O[Mz].flattened);return e};
drt=function(l,e){l.nodeType===Node.TEXT_NODE?l.textContent!==String(e)&&(l.textContent=String(e)):l=OZ8(l,$d(e));return l};
iP=function(l,e,O){return gEp(l,e!=null?e:[],O===void 0?!1:O)};
WB8=function(l,e){var O=iP(l,void 0,!0);if(O.length===0)return oU();e[Mz].flattened=O;return l};
gEp=function(l,e,O,E,J){e=e===void 0?[]:e;O=O===void 0?!1:O;J=J===void 0?-1:J;if(l==null)return e;if(l instanceof w5)return l=l.render(),gEp(l,e,O,E,J);if(_.CH(e)&&e.nodeType===Node.ELEMENT_NODE)switch(e.tagName){case "SCRIPT":O=ZZT(l);O!==null&&_.P2(e,O);return;case "STYLE":O=uxd(l);O!==null&&(e.textContent=_.IVp(O));return}WK(l)&&(l=$d(l),E&&O&&(E[J]=l));if(QCA(l)||l instanceof pU||SDx(l)){O=lbx(l);O=Array.from(O.childNodes);O=_.b(O);for(l=O.next();!l.done;l=O.next())iZ2(e,l.value);return e}eBL(l)&&
(l=$d(l.toString()),E&&O&&(E[J]=l));if(_.CH(l))return iZ2(e,l);if(Array.isArray(l)){for(var z=0;z<l.length;z++)gEp(l[z],e,O,l,z);return e}if(typeof l==="function"){l=g5(l,{debugName:"qmF2ne"})[0];if(Array.isArray(l)){O=_.b(l);for(l=O.next();!l.done;l=O.next())iZ2(e,l.value);return e}E&&O&&(E[J]=l);return iZ2(e,l)}if(l!=null&&l[Vt]){E=uP(!0);J=rWx;try{z=J.apply(null,[l.type,l.props].concat(_.kA(l.children)))}finally{uP(E)}return gEp(z,e,O)}var M;(M=_.Zc.handleError)==null||M.call.apply(M,[_.Zc].concat(_.kA(_.LS(Error("lc")))));
return e};
oEq=function(l){var e={};e=Object.assign([],(e[Mz]={flattened:[]},e));if(!l)return e;e[0]=WB8(l,e);return e};
iZ2=function(l,e){Array.isArray(l)?l.push(e):l.appendChild(e);return l};
AT=function(l){if(!_.Zc.enableLazyTsx)return l;if(Array.isArray(l)){for(var e=0;e<l.length;e++)l[e]=AT(l[e]);return l}return l instanceof w5?(l=l.render(),AT(l)):l};
AGu=function(l,e){var O,E,J=NLL(l),z=function(k){E=k;k=uP(!0);var y=oL(nH);N5d("render",J);try{O=AT(l(e))}finally{rT8("render",J),oL(y),uP(k)}};
z=_.Zc.enableContextPerComponent?QUx(z,J):P3(z,_.Zc.alwaysTrackContexts||!!JF);lhT(E);if(!e.renderedFromIdom){var M=_.X7(E);try{return wmT(l,e,O),O}finally{_.X7(M)}}!qDx(O)&&Array.isArray(O)&&(O=oEq(O));var Z=vP8(O);M=Array.isArray(Z)?Z[0]:Z;var u=!1;if(M){var d,g=(d=e==null?void 0:e.idomKey)!=null?d:l;d=Z!==M;M._disposeEffects=z;var w=M[d5]||{},n=qDx(O)?O:w.sourceDynamicRange;Object.assign(w,{key:g,numNodes:d?Z.length:1,context:E,higherOrder:!!M[d5],sourceDynamicRange:n});M[d5]=w}else u=!0;(function(){var k=
_.X7(E);try{wmT(l,e,Z)}finally{_.X7(k)}})();
u&&z();return O};
nEp=function(l){var e={},O;for(O in l)e={prev$jscomp$23:void 0,next$jscomp$32:void 0},e.prev$jscomp$23=aU[O],e.next$jscomp$32=l[O],aU[O]=function(E){return function(){var J=_.ke.apply(0,arguments);E.prev$jscomp$23.apply(null,_.kA(J));E.next$jscomp$32.apply(null,_.kA(J))}}(e)};
abx=function(){if(F7())throw Error("mc");return kd};
kMt=function(l,e){if(!l.__unmounted&&e){l.__unmounted=!0;try{l.didUnmount()}catch(J){var O,E;(E=_.Zc.handleError)==null||E.call.apply(E,[_.Zc].concat(_.kA(_.LS(J,(O=l.JSC$8251___type)==null?void 0:O.TAG_NAME))))}aU.didUnmount(l);l.el=null;e.__instance&&delete e.__instance}};
mr8=function(l,e,O){l._signalProps!=null&&l._disposeEffects==null&&((O===void 0?0:O)?l._disposeEffects=P3(function(){return void IbL(l,e)},_.Zc.alwaysTrackContexts||!!JF):IbL(l,e))};
IbL=function(l,e){_.Yo(function(){for(var O=l._signalProps,E=l._signalValues,J=0;J<O.length;J++){var z=O[J],M=e[z]();E[J]!==M&&(E[J]=M,Lwx(l,z,M))}},"e3YVbb")};
yGd=function(l,e,O){var E,J=[];l._disposeEffects=P3(function(){_.Yo(function(){var z=O();if(z===null||z===void 0)z="";if(WK(z)||z===null)E!=null||(E=document.createTextNode("")),E.parentNode!==l&&(E._isSignalTextNode=!0,l.insertBefore(E,e)),E.textContent=String(z);else if(QCA(z)||z instanceof pU||SDx(z)){for(var M=J.length>0?J[J.length-1].nextSibling:e,Z=_.b(J),u=Z.next();!u.done;u=Z.next())l.removeChild(u.value);z=lbx(z);J=Array.from(z.childNodes);z=_.b(J);for(Z=z.next();!Z.done;Z=z.next())l.insertBefore(Z.value,
M)}else throw u=(Z=(M=H3)==null?void 0:M.name)!=null?Z:"unknown",Error("bc`"+u+"`"+typeof z);},"VvDgC")},_.Zc.alwaysTrackContexts||!!JF)};
jDV=function(l,e){var O=_.ke.apply(2,arguments);e!=null||(e={});return!_.Zc.enableLazyTsx||H3!=null&&!F7()?pmu(l,e,O):new KBt(l,e,O)};
pmu=function(l,e,O){if(l===_.ZB)return O;if(typeof l==="function")return H3&&!F7()&&(e.renderedFromIdom=!0),r52(l,function(){var z=HZu(l,e,O);if(z)return z;O.length>0&&(e.children=O.length===1?O[0]:O);if(l.componentType===c3){var M;QUx(function(){var Z=e;if(l.componentType!==c3)M=!1;else{Z||(Z={});var u=new IU(Z,l),d=oL(nH);try{var g=u.render(Z)}finally{oL(d)}g instanceof HTMLElement?(g.__instance=u,u.el=g,u.JSC$8251___type=l,l.TAG_NAME=g.tagName.toLowerCase(),aU.didPatch(u),M=g):M=g}},l.name);
if(M)return M}return AGu(l,e)},e.debugInstance);
var E=cGt(l,e),J;for(J in e)Lwx(E,J,e[J]);mr8(E,e);iP(O,E);ttp(E,e,{isReactive:!0});FBM(E,e);return E};
cGt=function(l,e){l=(fbp.has(l.toLowerCase())?0:RBg.has(l.startsWith("svg:")?l.replace("svg:",""):l))?document.createElementNS("http://www.w3.org/2000/svg",l.startsWith("svg:")?l.replace("svg:",""):l):TAW(l,e)||document.createElement(l);l[sDq]=!0;return l};
GML=function(l){if(l){var e;(e=l._disposeRef)==null||e.call(l);var O;(O=l._disposeEffects)==null||O.call(l);l.__instance&&l.__instance instanceof mG&&(e=l.__instance,kMt(e,l),e instanceof IU&&e.disposeEffects());for(e=0;e<l.childNodes.length;e++)GML(l.childNodes[e])}};
PNM=function(l){BAM.push(l)===1&&requestAnimationFrame(function(){setTimeout(function(){var e=[].concat(_.kA(BAM));BAM=[];e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;try{for(var E=0;E<O.length;E++)GML(O[E])}catch(J){E=O=void 0,(E=(O=_.Zc).handleError)==null||E.call.apply(E,[O].concat(_.kA(_.LS(J))))}}})})};
_.W=function(l,e){return rWx.apply(null,[l,e].concat(_.kA(_.ke.apply(2,arguments))))};
Urp=function(l,e){e=e===void 0?new Map:e;l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,!e.has(O)){var E=void 0,J=(E=O.producerNode)!=null?E:[];e.set(O,J);Urp(J,e)}return e};
_.A=function(l){var e=l.cond;if(e===void 0)return l.else&&l.else();var O=_.mF(function(){return!!e()},void 0,"JHVi8"),E=function(){var J=e();
if(!J){var z;(z=_.Zc.handleError)==null||z.call.apply(z,[_.Zc].concat(_.kA(_.LS(YWd.nonNullableCondIsNull()))))}return J};
return g5(function(){var J=O(),z;P3(function(){var M=oL(nH);try{z=AT(J?l.then(E):l.else&&l.else())}finally{oL(M)}},!0);
return z},{debugName:l.debugInstance,
isControlFlowComponent:!0})};
hBx=function(l){return _.A(l)};
_.KH=function(l){return l.keyBy==="INDEX"?LBM(l):tUu(l)};
qWM=function(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next()){var O=void 0;(O=e.value)==null||O()}};
tUu=function(l){var e=l.keyBy===void 0||l.keyBy==="REFERENCE",O=e?function(g){return g}:l.keyBy,E=[],J=[],z=[],M=[],Z=[],u=[],d=!0;
_.B3(function(){qWM(M)});
return g5(function(){var g=l.each(),w=g.length;if(w===0){if(E.length===0&&!d)return z;qWM(M);E=g;J=[];for(g=0;g<E.length;g++)J.push(O(E[g]));z=[];M=[];Z=[];u=[];l.fallback&&(M[0]=vEu(function(){z[0]=AT(l.fallback())}));
d=!1;return z}for(var n=new NAV,k=E.length-1;k>=0;k--)n.push(J[k],k);k=Array(w);for(var y=Array(w),c=Array(w),f=Array(w),P=Array(e?0:w),h={i$jscomp$443:0};h.i$jscomp$443<w;h={i$jscomp$443:h.i$jscomp$443,item$jscomp$103:void 0,key$jscomp$524:void 0},h.i$jscomp$443++){h.item$jscomp$103=g[h.i$jscomp$443];h.key$jscomp$524=O(h.item$jscomp$103);var N=n.pop(h.key$jscomp$524);N!=null?(c[h.i$jscomp$443]=z[N],y[h.i$jscomp$443]=J[N],k[h.i$jscomp$443]=M[N],f[h.i$jscomp$443]=Z[N],e||(P[h.i$jscomp$443]=u[N]),y5(function(t){return function(){f[t.i$jscomp$443](t.i$jscomp$443);
if(!e)P[t.i$jscomp$443](t.item$jscomp$103)}}(h)),delete M[N]):k[h.i$jscomp$443]=vEu(function(t){return function(){var r=_.b(_.AF(t.i$jscomp$443,void 0,"Fqk1zd")),D=r.next().value;
r=r.next().value;f[t.i$jscomp$443]=r;y[t.i$jscomp$443]=t.key$jscomp$524;if(e)c[t.i$jscomp$443]=AT(l.children(t.item$jscomp$103,D));else{var b2=_.b(_.AF(t.item$jscomp$103,void 0,"GBj5de"));r=b2.next().value;b2=b2.next().value;P[t.i$jscomp$443]=b2;c[t.i$jscomp$443]=AT(l.children(r,D))}}}(h))}qWM(M);
E=g;J=y;z=c;M=k;Z=f;u=P;d=!1;return c},{debugName:l.debugInstance,
isControlFlowComponent:!0})};
LBM=function(l){var e=[],O=[],E=[],J=[],z=!1;_.B3(function(){for(var M=_.b(J),Z=M.next();!Z.done;Z=M.next())Z=Z.value,Z()});
return g5(function(){var M=l.each();z&&M.length>0&&(J.pop()(),e.pop(),z=!1);for(var Z=Array(M.length),u={i$jscomp$444:0};u.i$jscomp$444<M.length;u={i$jscomp$444:u.i$jscomp$444},u.i$jscomp$444++)if(u.i$jscomp$444<e.length)e[u.i$jscomp$444]!==M[u.i$jscomp$444]&&(y5(function(g){return function(){return void O[g.i$jscomp$444](M[g.i$jscomp$444])}}(u)),e[u.i$jscomp$444]=M[u.i$jscomp$444]),Z[u.i$jscomp$444]=E[u.i$jscomp$444];
else{var d=vEu(function(g){return function(){e[g.i$jscomp$444]=M[g.i$jscomp$444];var w=_.b(_.AF(M[g.i$jscomp$444],void 0,"kGMqJe")),n=w.next().value;w=w.next().value;O[g.i$jscomp$444]=w;Z[g.i$jscomp$444]=AT(l.children(n,g.i$jscomp$444))}}(u));
J[u.i$jscomp$444]=d}for(;e.length>M.length;)e.pop(),J.pop()(),O.pop();M.length===0&&!z&&l.fallback&&(u=vEu(function(){Z[0]=AT(l.fallback())}),J[0]=u,z=!0);
return E=Z},{debugName:l.debugInstance,
isControlFlowComponent:!0})};
vEu=function(l){var e=JF;return P3(function(O){var E=oL(nH);try{O.parent=e,l(O)}finally{oL(E)}},!1)};
_.jD=function(l){return l};
_.HK=function(l){return{isDefault:!0,children:l.children}};
_.cK=function(l){var e=rGV(l),O=_.mF(function(){return Drx(e)},void 0,"F1PF4");
return g5(function(){var E=O(),J;P3(function(){var z=oL(nH);try{J=AT(E())}finally{oL(z)}});
return J},{debugName:l.debugInstance,
isControlFlowComponent:!0})};
rGV=function(l){l=l.children;return Array.isArray(l)?l:[l]};
SWu=function(l){var e=l.props;l=l.getChildren()[0];return e.when?{when:e.when,children:l}:{isDefault:!0,children:l}};
Drx=function(l){var e=function(){return null};
l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O!=null&&O[Vt]&&(O=O.type===_.HK?{isDefault:!0,children:O.children[0]}:{when:O.props.when,children:O.children[0]}),O instanceof w5&&(O=SWu(O)),O.isDefault)e=O.children;else if(O.when())return O.children;return e};
xrL=function(l){var e=null,O,E={get value(){var z,M;(M=(z=J).validateGetValue)==null||M.call(z);return J.__value},set value(z){J.__hasBeenSet=!0;J.__value=z}},J=(E.__value=null,E.__hasBeenSet=!1,E.__hasErrored=!1,E.onRender=function(z){if(O&&z!==O){O._disposeRef=void 0;var M;(M=e)==null||M()}O=z;e=l(z)||null},E.onUnmount=function(){var z;
(z=e)==null||z();e=null},E[QDx]=!0,E);
return J};
l8L=function(l){var e=abx();if(e==null)throw _.Fm.PRIMITIVE_INVALID_HOOK_CALL();var O=e.hookCounter++;e.hooks||(e.hooks=[]);var E=e.hooks;E[O]||(E[O]={key:l,host:e});if(l!==E[O].key){if(e.JSC$8251___type){var J;l=(J=e.JSC$8251___type)==null?void 0:J.name}else l=e instanceof IU?NLL(e.functionComponent):"<"+e.el.tagName.toLowerCase()+">";throw _.Fm.OUT_OF_ORDER_HOOK_CALL(l);}return E[O]};
eaM=function(l,e){return!l||l.length!==(e==null?void 0:e.length)||l.some(function(O,E){return O!==e[E]})};
Or2=function(l,e){var O=l8L("onChange"),E=abx();eaM(O.deps,e)&&(O.deps=e,O.pendingEffect=l,E.__syncEffects||(E.__syncEffects=[]),E.__syncEffects.push(O))};
_.fH=function(l,e){var O=O===void 0?{enableDevtools:!1}:O;var E=_.Zc.legacyTriggerSoyRendererEvents,J=O.appContext,z=RL(function(){var M=oL(nH);try{return P3(function(){var Z=_.ndt(_.HR(l)),u;var d=sUx({rootElement:{value:l},appContext:J||(Z==null?void 0:(u=Z.getOptionalAppContext)==null?void 0:u.call(Z)),dispatcher:Z});Z=_.X7(d);d=uP(!0);pS++;try{iP(e(),l),js(!1)}catch(g){throw js(!0),g;}finally{uP(d),_.X7(Z)}},!1)}catch(Z){throw _.Zc.enableContextBasedComponentStacks&&fS(Z),Z;
}finally{oL(M)}});
l[EZ8]=!0;E&&MUA(l,J);return function(){l.textContent="";z();l[EZ8]=!1}};
_.RU=function(l){if(qsM(CS)){var e;(e=_.Zc.handleError)==null||e.call.apply(e,[_.Zc].concat(_.kA(_.LS(Error("ac")))))}var O=JF,E=H3;Promise.resolve().then(function(){if(O&&!O.isDisposed){var J=_.X7(O);try{RL(function(){return void l()},E)}catch(z){throw _.Zc.enableContextBasedComponentStacks&&fS(z),z;
}finally{_.X7(J)}}})};
TQ=function(l,e){Or2(function(){return wX(l)},e)};
_.sC=function(l){F7()?_.RU(function(){wX(l)}):Or2(function(){return wX(l)},[])};
XQ2=function(l){var e=[].concat(_.kA(l));l.length=0;l=_.b(e);for(e=l.next();!e.done;e=l.next()){e=e.value;JPt(e);var O=e.pendingEffect;e.pendingEffect=null;if(O=O==null?void 0:O())e.pendingCleanup=O}};
JPt=function(l){var e=l.pendingCleanup;l.pendingCleanup=null;e==null||e()};
zaq=function(l,e){if(F7())return l();var O=l8L("useMemoInternal");eaM(O.deps,e)&&(O.deps=e,O.value=l());return O.value};
brt=function(l,e){return zaq(l,e)};
GQ=function(l){return zaq(l,[])};
BK=function(l){return GQ(function(){return{value:l}})};
_.PK=function(l,e){if(!l)return null;l=Object.keys(l);l=_.b(l);for(var O=l.next();!O.done;O=l.next()){O=O.value;var E=O.toLowerCase();if(E.indexOf(e,E.length-e.length)>-1)return O}return null};
_.Yd=function(){var l=arguments,e=_.UC;l.length>1?e[l[0]]=l[1]:l.length===1&&Object.assign(e,l[0])};
_.hT=function(l,e){return l in _.UC?_.UC[l]:e};
_.LH=function(l,e){return!!_.hT(l,e)};
M4x=function(l){var e=_.UC.EXPERIMENT_FLAGS;return e?e[l]:void 0};
Zrx=function(l){V4A.forEach(function(e){return e(l)})};
_.qz=function(l){return l&&window.yterr?function(){try{return l.apply(this,arguments)}catch(e){_.tT(e)}}:l};
_.tT=function(l){var e=_.vK("yt.logging.errors.log");e?e(l,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=_.hT("ERRORS",[]),e.push([l,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Yd("ERRORS",e));Zrx(l)};
_.Nz=function(l,e,O,E,J){var z=_.vK("yt.logging.errors.log");z?z(l,"WARNING",e,O,E,void 0,J):(z=_.hT("ERRORS",[]),z.push([l,"WARNING",e,O,E,void 0,J]),_.Yd("ERRORS",z))};
CgL=function(l,e){e=l.split(e);for(var O={},E=0,J=e.length;E<J;E++){var z=e[E].split("=");if(z.length===1&&z[0]||z.length===2)try{var M=uwt(z[0]||""),Z=uwt(z[1]||"");if(M in O){var u=O[M];Array.isArray(u)?_.Q8(u,Z):O[M]=[u,Z]}else O[M]=Z}catch(n){var d=n,g=z[0],w=String(CgL);d.args=[{key:g,value:z[1],query:l,method:oZu===w?"unchanged":w}];$Y8.hasOwnProperty(g)||_.Nz(d)}}return O};
WPd=function(l){var e=[];_.mm.forEach(l,function(O,E){var J=_.r5(E);_.DB(Array.isArray(O)?O:[O],function(z){z==""?e.push(J):e.push(J+"="+_.r5(z))})});
return e.join("&")};
_.SD=function(l){l.charAt(0)==="?"&&(l=l.substring(1));return CgL(l,"&")};
_.Qt=function(l){return l.indexOf("?")!==-1?(l=(l||"").split("#")[0],l=l.split("?",2),_.SD(l.length>1?l[1]:l[0])):{}};
_.xd=function(l,e){return dYt(l,e||{},!0)};
gZT=function(l,e){return dYt(l,e||{},!1)};
dYt=function(l,e,O){var E=l.split("#",2);l=E[0];E=E.length>1?"#"+E[1]:"";var J=l.split("?",2);l=J[0];J=_.SD(J[1]||"");for(var z in e)if(O||!_.mm.containsKey(J,z))J[z]=e[z];return _.e7(l,J)+E};
zR=function(l){if(!e)var e=window.location.href;var O=_.Os(l)[1]||null,E=_.Es(l);return O&&E?J5(l,e):E?_.Es(e)===E&&(Number(_.Os(e)[4]||null)||null)===(Number(_.Os(l)[4]||null)||null):!0};
_.wQT=function(l){l=irM(l);return l===null?!1:l[0]==="com"&&l[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
irM=function(l){l=_.Es(l);return l!==null?l.split(".").reverse():null};
uwt=function(l){return l&&l.match(APV)?l:bt(l)};
_.MG=function(l){return new nZu(l)};
_.V2=function(){a8V||(a8V=new kLd);return a8V};
mYp=function(l){var e=_.Zh,O,E;_.V(function(J){O=_.V2();return(E=O.resolve(_.MG(e)))?(l(E),J.return(Promise.resolve(E))):J.return(O.resolve(new I88(e)).then(function(z){l(z);return z}))})};
_.a=function(l){l=ut(l);return typeof l==="string"&&l==="false"?!1:!!l};
_.Cv=function(l,e){l=ut(l);return l===void 0&&e!==void 0?e:Number(l||0)};
yP8=function(l){l=ut(l);return Array.isArray(l)?_.pF(l,function(e){return Number(e||0)}):[Number(l||0)]};
_.oy=function(l){l=ut(l);return l!==void 0?String(l):""};
_.$6=function(l){l=ut(l);return Array.isArray(l)?_.pF(l,function(e){return String(e||"")}):[String(l||"")]};
pQ8=function(){return _.hT("EXPERIMENTS_TOKEN","")};
ut=function(l){return _.hT("EXPERIMENT_FLAGS",{})[l]};
KPp=function(){for(var l=[],e=_.hT("EXPERIMENTS_FORCED_FLAGS",{}),O=_.b(Object.keys(e)),E=O.next();!E.done;E=O.next())E=E.value,l.push({key:E,value:String(e[E])});O=_.hT("EXPERIMENT_FLAGS",{});E=_.b(Object.keys(O));for(var J=E.next();!J.done;J=E.next())J=J.value,J.startsWith("force_")&&e[J]===void 0&&l.push({key:J,value:String(O[J])});return l};
Hr8=function(){if(!jmu)return null;var l=jmu();return"open"in l?l:null};
_.cPg=function(l){switch(_.Wk(l)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Wk=function(l){return l&&"status"in l?l.status:-1};
_.dL=function(l,e){typeof l==="function"&&(l=_.qz(l));return window.setTimeout(l,e)};
_.gL=function(l,e){typeof l==="function"&&(l=_.qz(l));return window.setInterval(l,e)};
_.wL=function(l){window.clearTimeout(l)};
f8d=function(l){l=_.Qt(l);for(var e=_.b(FPx),O=e.next();!O.done;O=e.next())if(l[O.value]!==void 0)return!0;return!1};
sm2=function(l,e,O,E,J,z,M,Z){O=O===void 0?"GET":O;E=E===void 0?"":E;Z=Z===void 0?!1:Z;var u=Hr8();if(!u)return null;var d=function(){(u&&"readyState"in u?u.readyState:0)===4&&e&&_.qz(e)(u)};
"onloadend"in u?u.addEventListener("loadend",d,!1):u.onreadystatechange=d;_.a("debug_forward_web_query_parameters")&&(l=Rax(l,window.location.search));u.open(O,l,!0);z&&(u.responseType=z);M&&(u.withCredentials=!0);O=O==="POST"&&(window.FormData===void 0||!(E instanceof FormData));if(J=T4V(l,J))for(var g in J)u.setRequestHeader(g,J[g]),"content-type"===g.toLowerCase()&&(O=!1);O&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(Z&&"setAttributionReporting"in XMLHttpRequest.prototype){l=
{eventSourceEligible:!0,triggerEligible:!1};try{u.setAttributionReporting(l)}catch(w){_.Nz(w)}}u.send(E);return u};
T4V=function(l,e){e=e===void 0?{}:e;var O=zR(l),E=_.hT("INNERTUBE_CLIENT_NAME"),J=_.a("web_ajax_ignore_global_headers_if_set"),z;for(z in GLL){var M=_.hT(GLL[z]),Z=z==="X-Goog-AuthUser"||z==="X-Goog-PageId";z!=="X-Goog-Visitor-Id"||M||(M=_.hT("VISITOR_DATA"));var u;if(!(u=!M)){if(!(u=O||(_.Es(l)?!1:!0))){u=l;var d;if(d=_.a("add_auth_headers_to_remarketing_google_dot_com_ping")&&z==="Authorization"&&(E==="TVHTML5"||E==="TVHTML5_UNPLUGGED"||E==="TVHTML5_SIMPLY"))d=irM(u),d=d===null?!1:d[1]==="google"?
!0:d[2]==="google"?d[0]==="au"&&d[1]==="com"?!0:d[0]==="uk"&&d[1]==="co"?!0:!1:!1;d&&(u=_.A5(u)||"",u=u.split("/"),u="/"+(u.length>1?u[1]:""),d=u==="/pagead");u=d?!0:!1}u=!u}u||J&&e[z]!==void 0||E==="TVHTML5_UNPLUGGED"&&Z||(e[z]=M)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(O||!_.Es(l))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(O||!_.Es(l)){try{var g=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(w){}g&&(e["X-YouTube-Time-Zone"]=
g)}document.location.hostname.endsWith("youtubeeducation.com")||!O&&_.Es(l)||(e["X-YouTube-Ad-Signals"]=WPd(B4M()));return e};
_.Pg2=function(l,e){var O=_.Es(l);_.a("debug_handle_relative_url_for_query_forward_killswitch")||!O&&zR(l)&&(O=document.location.hostname);var E=_.A5(l);E=(O=O&&(O.endsWith("youtube.com")||O.endsWith("youtube-nocookie.com")))&&E&&E.startsWith("/api/");if(!O||E)return l;var J=_.SD(e),z={};_.DB(FPx,function(M){J[M]&&(z[M]=J[M])});
return gZT(l,z)};
UYu=function(l,e){e.method="POST";e.postParams||(e.postParams={});return _.nv(l,e)};
Y0M=function(l,e){var O=_.hT("XSRF_FIELD_NAME"),E;e.headers&&(E=e.headers["Content-Type"]);return!e.excludeXsrf&&(!_.Es(l)||e.withCredentials||_.Es(l)===document.location.hostname)&&e.method==="POST"&&(!E||E==="application/x-www-form-urlencoded")&&!(e.postParams&&e.postParams[O])};
_.nv=function(l,e){var O=e.format||"JSON";l=hap(l,e);var E=LPx(l,e),J=!1,z=t4t(l,function(u){if(!J){J=!0;Z&&_.wL(Z);var d=_.cPg(u),g=null,w=400<=u.status&&u.status<500,n=500<=u.status&&u.status<600;if(d||w||n)g=q0g(l,O,u,e.convertToSafeHtml);d&&(d=vZt(O,u,g));g=g||{};w=e.context||_.Op;d?e.onSuccess&&e.onSuccess.call(w,u,g):e.onError&&e.onError.call(w,u,g);e.onFinish&&e.onFinish.call(w,u,g)}},e.method,E,e.headers,e.responseType,e.withCredentials);
E=e.timeout||0;if(e.onTimeout&&E>0){var M=e.onTimeout;var Z=_.dL(function(){J||(J=!0,z.abort(),_.wL(Z),M.call(e.context||_.Op,z))},E)}return z};
hap=function(l,e){e.includeDomain&&(l=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+l);var O=_.hT("XSRF_FIELD_NAME");if(e=e.urlParams)e[O]&&delete e[O],l=_.xd(l,e);return l};
LPx=function(l,e){var O=_.hT("XSRF_FIELD_NAME"),E=_.hT("XSRF_TOKEN"),J=e.postBody||"",z=e.postParams;Y0M(l,e)&&(z||(z={}),z[O]=E);(_.a("ajax_parse_query_data_only_when_filled")&&z&&Object.keys(z).length>0||z)&&typeof J==="string"&&(J=_.SD(J),_.mm.extend(J,z),J=e.postBodyFormat&&e.postBodyFormat==="JSON"?JSON.stringify(J):_.ay(J));z=J||z&&!_.mm.isEmpty(z);!N4u&&z&&e.method!=="POST"&&(N4u=!0,_.tT(Error("Gc")));return J};
q0g=function(l,e,O,E){var J=null;switch(e){case "JSON":try{var z=O.responseText}catch(M){throw E=Error("Hc"),E.params=l,_.Nz(E),M;}l=O.getResponseHeader("Content-Type")||"";z&&l.indexOf("json")>=0&&(z.substring(0,5)===")]}'\n"&&(z=z.substring(5)),J=JSON.parse(z));break;case "XML":if(l=(l=O.responseXML)?rPu(l):null)J={},_.DB(l.getElementsByTagName("*"),function(M){J[M.tagName]=DYT(M)})}E&&S0p(J);
return J};
S0p=function(l){if(_.e0(l))for(var e in l)e==="html_content"||zg(e,"_html")?l[e]=KU(l[e]):S0p(l[e])};
vZt=function(l,e,O){if(e&&e.status===204)return!0;switch(l){case "JSON":return!!O;case "XML":return Number(O&&O.return_code)===0;case "RAW":return!0;default:return!!O}};
rPu=function(l){return l?(l=("responseXML"in l?l.responseXML:l).getElementsByTagName("root"))&&l.length>0?l[0]:null:null};
DYT=function(l){var e="";_.DB(l.childNodes,function(O){e+=O.nodeValue});
return e};
Qmt=function(l){if(l.name==="JavaException")return!0;l=l.stack;return l.includes("chrome://")||l.includes("-extension://")||l.includes("webkit-masked-url://")};
xYg=function(l){if(!l.stack)return!0;var e=!l.stack.includes("\n");return e&&l.stack.includes("ErrorType: ")||e&&l.stack.includes("Anonymous function (Unknown script")||l.stack.toLowerCase()==="not available"||l.fileName==="user-script"||l.fileName.startsWith("user-script:")?!0:!1};
_.k6=function(l){_.y6.call(this);this.JSC$8479_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!l};
eRx=function(l,e){var O=l.length,E=0,J=function(){return l.charCodeAt(E++)};
do{var z=lpV(J);if(z===Infinity)break;var M=z>>3;switch(z&7){case 0:z=lpV(J);if(M===e)return z;break;case 1:if(M===e)return;E+=8;break;case 2:z=lpV(J);if(M===e)return l.substr(E,z);E+=z;break;case 5:if(M===e)return;E+=4;break;default:return}}while(E<O)};
lpV=function(l){var e=l(),O=e&127;if(e<128)return O;e=l();O|=(e&127)<<7;if(e<128)return O;e=l();O|=(e&127)<<14;if(e<128)return O;e=l();return e<128?O|(e&127)<<21:Infinity};
Evd=function(l,e,O,E){if(l)if(Array.isArray(l)){var J=E;for(E=0;E<l.length&&!(l[E]&&(J+=O_T(E,l[E],e,O),J>500));E++);E=J}else if(typeof l==="object")for(J in l){if(l[J]){var z=J;var M=l[J],Z=e,u=O;z=typeof M!=="string"||z!=="clickTrackingParams"&&z!=="trackingParams"?0:(M=eRx(atob(M.replace(/-/g,"+").replace(/_/g,"/")),2))?O_T(z+".ve",M,Z,u):0;E+=z;E+=O_T(J,l[J],e,O);if(E>500)break}}else O[e]=Iy(l),E+=O[e].length;else O[e]=Iy(l),E+=O[e].length;return E};
O_T=function(l,e,O,E){O+="."+l;l=Iy(e);E[O]=l;return O.length+l.length};
Iy=function(l){try{return(typeof l==="string"?l:String(JSON.stringify(l))).substr(0,500)}catch(e){return"unable to serialize "+typeof l+" ("+e.message+")"}};
Jix=function(l){switch(l){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}};
_.y2=function(l,e,O,E,J){_.mW.set(l,e,{maxAge:O,path:"/",domain:E===void 0?"youtube.com":E,secure:J===void 0?!1:J})};
_.X9M=function(l,e,O){_.mW.remove(l,e===void 0?"/":e,O===void 0?"youtube.com":O)};
_.pv=function(){if(_.a("embeds_web_enable_cookie_detection_fix")){if(!_.Op.navigator.cookieEnabled)return!1}else if(!_.mW.isEnabled())return!1;if(!_.mW.isEmpty())return!0;_.a("embeds_web_enable_cookie_detection_fix")?_.mW.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.mW.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.mW.get("TESTCOOKIESENABLED")!=="1")return!1;_.mW.remove("TESTCOOKIESENABLED");return!0};
zRV=function(){var l=_.Op.navigator;return l?l.connection:void 0};
b_d=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}};
_.VH2=function(){var l=zRV();if(l){var e=MHx[l.type||"unknown"]||"CONN_UNKNOWN";l=MHx[l.effectiveType||"unknown"]||"CONN_UNKNOWN";e==="CONN_CELLULAR_UNKNOWN"&&l!=="CONN_UNKNOWN"&&(e=l);if(e!=="CONN_UNKNOWN")return e;if(l!=="CONN_UNKNOWN")return l}};
ucd=function(){var l=zRV();if(l!=null&&l.effectiveType)return Z_d.hasOwnProperty(l.effectiveType)?Z_d[l.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.j7=function(){try{return _.Kv(),!0}catch(l){return!1}};
_.Kv=function(l){if(_.hT("DATASYNC_ID")!==void 0)return _.hT("DATASYNC_ID");throw new _.Hk("Datasync ID not set",l===void 0?"unknown":l);};
_.ck=function(l){this.mechanism=l};
FR=function(l){this.mechanism=l};
fv=function(l){this.storage_=l;this.cachedIsStorageAvailable_=null};
CeM=function(){var l=null;try{l=_.Op.localStorage||null}catch(e){}fv.call(this,l)};
ovL=function(){var l=null;try{l=_.Op.sessionStorage||null}catch(e){}fv.call(this,l)};
Ry=function(l,e){this.mechanism_=l;this.JSC$8581_prefix_=e+"::"};
_.$dV=function(l){var e=new CeM;return e.isAvailable()?l?new Ry(e,l):e:null};
_.Wux=function(l){var e=new ovL;return e.isAvailable()?l?new Ry(e,l):e:null};
gvp=function(){var l;return(l=ddx())==null?void 0:l.get("LAST_RESULT_ENTRY_KEY",!0)};
_.GR=function(l){i_g||(_.TR?_.TR.logError(l):(_.ss.push({type:"ERROR",payload:l}),_.ss.length>10&&_.ss.shift()))};
Bk=function(l,e){i_g||(_.TR?_.TR.logEvent(l,e):(_.ss.push({type:"EVENT",eventType:l,payload:e}),_.ss.length>10&&_.ss.shift()))};
Pk=function(l){if(l.indexOf(":")>=0)throw Error("Oc");};
Us=function(l){return l.substr(0,l.indexOf(":"))||l};
nvV=function(){return(w98||AiT)&&Y6("applewebkit")&&!Y6("version")&&(!Y6("safari")||Y6("gsa/"))};
Y6=function(l){var e=_.dT();return e?e.toLowerCase().indexOf(l)>=0:!1};
Ipd=function(l,e,O,E){e=Us(e);var J=l instanceof Error?l:Error("Pc`"+l);if(J instanceof h5)return J;l={objectStoreNames:O,dbName:e,dbVersion:E};if(J.name==="QuotaExceededError")return new h5("QUOTA_EXCEEDED",l);if(_.Lv&&J.name==="UnknownError")return new h5("QUOTA_MAYBE_EXCEEDED",l);if(J instanceof ap2)return new h5("MISSING_INDEX",Object.assign({},l,{objectStore:J.objectStore,index:J.index}));if(J.name==="InvalidStateError"&&kzq.some(function(z){return J.message.includes(z)}))return new h5("EXECUTE_TRANSACTION_ON_CLOSED_DB",
l);
if(J.name==="AbortError")return new h5("UNKNOWN_ABORT",l,J.message);J.args=[Object.assign({},l,{name:"IdbError",originalName:J.name})];J.level="WARNING";return J};
t5=function(l,e,O){var E=gvp();return new h5("IDB_NOT_SUPPORTED",{context:{caller:l,publicName:e,version:O,hasSucceededOnce:E==null?void 0:E.hasSucceededOnce}})};
mdp=function(l){if(!l)throw Error();throw l;};
yiL=function(l){return l};
p92=function(l,e,O){var E=function(){try{l.removeEventListener("success",J),l.removeEventListener("error",z)}catch(M){}},J=function(){e(l.result);
E()},z=function(){O(l.error);
E()};
l.addEventListener("success",J);l.addEventListener("error",z)};
Ku8=function(l){return new Promise(function(e,O){p92(l,e,O)})};
Dh=function(l){return new qG(new NG(function(e,O){p92(l,e,O)}))};
jcq=function(l,e){return new qG(new NG(function(O,E){var J=function(){var z=l?e(l):null;z?z.then(function(M){l=M;J()},E):O()};
J()}))};
ciM=function(l,e,O){return new Promise(function(E,J){var z=e!==void 0?self.indexedDB.open(l,e):self.indexedDB.open(l);var M=O.blocked,Z=O.blocking,u=O.terminated,d=O.upgrade,g=O.closed,w,n=function(){w||(w=new S7(z.result,{closed:g}));return w};
z.addEventListener("upgradeneeded",function(k){try{if(k.newVersion===null)throw Error("Uc");if(z.transaction===null)throw Error("Vc");k.dataLoss&&k.dataLoss!=="none"&&Bk("IDB_DATA_CORRUPTED",{reason:k.dataLossMessage||"unknown reason",dbName:Us(l)});var y=n(),c=new H_M(z.transaction);d&&d(y,function(f){return k.oldVersion<f&&k.newVersion>=f},c);
c.done.catch(function(f){J(f)})}catch(f){J(f)}});
z.addEventListener("success",function(){var k=z.result;Z&&k.addEventListener("versionchange",function(){Z(n())});
k.addEventListener("close",function(){Bk("IDB_UNEXPECTEDLY_CLOSED",{dbName:Us(l),dbVersion:k.version});u&&u()});
E(n())});
z.addEventListener("error",function(){J(z.error)});
M&&z.addEventListener("blocked",function(){M()})})};
Fut=function(l,e,O){O=O===void 0?{}:O;return ciM(l,e,O)};
_.x6=function(l,e){e=e===void 0?{}:e;var O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return _.b1(M,2),O=self.indexedDB.deleteDatabase(l),E=e,(J=E.blocked)&&O.addEventListener("blocked",function(){J()}),_.C(M,Ku8(O),4);
if(M.nextAddress!=2)return _.Q2(M,0);z=_.u1(M);throw Ipd(z,l,"",-1);})};
RRT=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,_.lL(fpq,e),2);O=E.yieldResult;return E.return(_.et(O,["databases"],{enableRetries:!0,mode:"readwrite"},function(J){var z=J.objectStore("databases");return z.get(l.actualName).then(function(M){if(M?l.actualName!==M.actualName||l.publicName!==M.publicName||l.userIdentifier!==M.userIdentifier:1)return z.put(l).then(function(){})})}))})};
_.OD=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1)return l?_.C(E,_.lL(fpq,e),2):E.return();O=E.yieldResult;return E.return(O.delete("databases",l))})};
_.Tv2=function(l,e){var O,E;return _.V(function(J){return J.nextAddress==1?(O=[],_.C(J,_.lL(fpq,e),2)):J.nextAddress!=3?(E=J.yieldResult,_.C(J,_.et(E,["databases"],{enableRetries:!0,mode:"readonly"},function(z){O.length=0;return ED(z.objectStore("databases"),{},function(M){l(M.getValue())&&O.push(M.getValue());return M.continue()})}),3)):J.return(O)})};
sc8=function(l,e){return _.Tv2(function(O){return O.publicName===l&&O.userIdentifier!==void 0},e)};
Pet=function(){var l,e,O,E;return _.V(function(J){switch(J.nextAddress){case 1:l=gvp();if((e=l)==null?0:e.hasSucceededOnce)return J.return(!0);var z;if(z=Gzu)z=/WebKit\/([0-9]+)/.exec(_.dT()),z=!!(z&&parseInt(z[1],10)>=600);z&&(z=/WebKit\/([0-9]+)/.exec(_.dT()),z=!(z&&parseInt(z[1],10)>=602));if(z||JW)return J.return(!1);try{if(O=self,!(O.indexedDB&&O.IDBIndex&&O.IDBKeyRange&&O.IDBObjectStore))return J.return(!1)}catch(M){return J.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return J.return(!1);
_.b1(J,2);E={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.C(J,RRT(E,BvL),4);case 4:return _.C(J,_.OD("yt-idb-test-do-not-use",BvL),5);case 5:return J.return(!0);case 2:return _.u1(J),J.return(!1)}})};
YK8=function(){if(Udd!==void 0)return Udd;i_g=!0;return Udd=Pet().then(function(l){i_g=!1;var e;if((e=ddx())!=null&&e.expiringStorage_){var O;e={hasSucceededOnce:((O=gvp())==null?void 0:O.hasSucceededOnce)||l};var E;(E=ddx())==null||E.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return l})};
X_=function(){return _.vK("ytglobal.idbToken_")||void 0};
_.bL=function(){var l=X_();return l?Promise.resolve(l):YK8().then(function(e){(e=e?BvL:void 0)&&_.zJ("ytglobal.idbToken_",e);return e})};
hR8=function(l){if(!_.j7())throw l=new h5("AUTH_INVALID",{dbName:l}),_.GR(l),l;var e=_.Kv();return{actualName:l+":"+e,publicName:l,userIdentifier:e}};
LuW=function(l,e,O,E){var J,z,M,Z,u,d;return _.V(function(g){switch(g.nextAddress){case 1:return z=(J=Error().stack)!=null?J:"",_.C(g,_.bL(),2);case 2:M=g.yieldResult;if(!M)throw Z=t5("openDbImpl",l,e),_.a("ytidb_async_stack_killswitch")||(Z.stack=Z.stack+"\n"+z.substring(z.indexOf("\n")+1)),_.GR(Z),Z;Pk(l);u=O?{actualName:l,publicName:l,userIdentifier:void 0}:hR8(l);_.b1(g,3);return _.C(g,RRT(u,M),5);case 5:return _.C(g,Fut(u.actualName,e,E),6);case 6:return g.return(g.yieldResult);case 3:return d=
_.u1(g),_.b1(g,7),_.C(g,_.OD(u.actualName,M),9);case 9:_.Q2(g,8);break;case 7:_.u1(g);case 8:throw d;}})};
tHu=function(l,e,O){O=O===void 0?{}:O;return LuW(l,e,!1,O)};
qKp=function(l,e,O){O=O===void 0?{}:O;return LuW(l,e,!0,O)};
vvq=function(l,e){e=e===void 0?{}:e;var O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,_.bL(),2);if(J.nextAddress!=3){O=J.yieldResult;if(!O)return J.return();Pk(l);E=hR8(l);return _.C(J,_.x6(E.actualName,e),3)}return _.C(J,_.OD(E.actualName,O),0)})};
NvW=function(l,e,O){l=l.map(function(E){return _.V(function(J){return J.nextAddress==1?_.C(J,_.x6(E.actualName,e),2):_.C(J,_.OD(E.actualName,O),0)})});
return Promise.all(l).then(function(){})};
rig=function(l){var e=e===void 0?{}:e;var O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,_.bL(),2);if(J.nextAddress!=3){O=J.yieldResult;if(!O)return J.return();Pk(l);return _.C(J,sc8(l,O),3)}E=J.yieldResult;return _.C(J,NvW(E,e,O),0)})};
Ddx=function(l,e){e=e===void 0?{}:e;var O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,_.bL(),2);if(E.nextAddress!=3){O=E.yieldResult;if(!O)return E.return();Pk(l);return _.C(E,_.x6(l,e),3)}return _.C(E,_.OD(l,O),0)})};
Mx=function(l,e){return SKd(l,e)};
xdu=function(l){return _.lL(Qcg(),l)};
lGp=function(l,e,O,E){var J,z,M;return _.V(function(Z){switch(Z.nextAddress){case 1:return J={config:l,hashData:e,timestamp:E!==void 0?E:(0,_.VZ)()},_.C(Z,xdu(O),2);case 2:return z=Z.yieldResult,_.C(Z,z.clear("hotConfigStore"),3);case 3:return _.C(Z,z.put("hotConfigStore",J),4);case 4:return M=Z.yieldResult,Z.return(M)}})};
eUM=function(l,e,O,E,J){var z,M,Z;return _.V(function(u){switch(u.nextAddress){case 1:return z={config:l,hashData:e,configData:O,timestamp:J!==void 0?J:(0,_.VZ)()},_.C(u,xdu(E),2);case 2:return M=u.yieldResult,_.C(u,M.clear("coldConfigStore"),3);case 3:return _.C(u,M.put("coldConfigStore",z),4);case 4:return Z=u.yieldResult,u.return(Z)}})};
Ozq=function(l){var e,O;return _.V(function(E){return E.nextAddress==1?_.C(E,xdu(l),2):E.nextAddress!=3?(e=E.yieldResult,O=void 0,_.C(E,_.et(e,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.ZA(J.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(z){O=z.getValue()})}),3)):E.return(O)})};
EuL=function(l){var e,O;return _.V(function(E){return E.nextAddress==1?_.C(E,xdu(l),2):E.nextAddress!=3?(e=E.yieldResult,O=void 0,_.C(E,_.et(e,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.ZA(J.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(z){O=z.getValue()})}),3)):E.return(O)})};
Jgp=function(){return _.V(function(l){return _.C(l,rig("ytGcfConfig"),0)})};
Xbu=function(){return"INNERTUBE_API_KEY"in _.UC&&"INNERTUBE_API_VERSION"in _.UC};
_.uL=function(){return{innertubeApiKey:_.hT("INNERTUBE_API_KEY"),innertubeApiVersion:_.hT("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.hT("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.hT("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.hT("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.hT("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.hT("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.hT("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.hT("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.LH("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.LH("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.hT("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Cig=function(l){var e={client:{hl:l.innertubeContextHostLanguage,gl:l.innertubeContextGeoLocation,clientName:l.innertubeContextClientName,clientVersion:l.innertubeContextClientVersion,configInfo:l.innertubeContextClientConfigInfo}};navigator.userAgent&&(e.client.userAgent=String(navigator.userAgent));var O=_.Op.devicePixelRatio;O&&O!=1&&(e.client.screenDensityFloat=String(O));O=pQ8();O!==""&&(e.client.experimentsToken=O);O=KPp();O.length>0&&(e.request={internalExperimentFlags:O});zUu(l,void 0,e);
bzL(void 0,e);Mjx(void 0,e);VjL(l,void 0,e);ZzA(void 0,e);_.a("start_client_gcf")&&uj2(void 0,e);_.hT("DELEGATED_SESSION_ID")&&!_.a("pageid_as_header_web")&&(e.user={onBehalfOfUser:_.hT("DELEGATED_SESSION_ID")});!_.a("fill_delegate_context_in_gel_killswitch")&&(l=_.hT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user=Object.assign({},e.user,{serializedDelegationContext:l}));l=_.hT("INNERTUBE_CONTEXT");var E;if(_.a("enable_persistent_device_token")&&(l==null?0:(E=l.client)==null?0:E.rolloutToken)){var J;
e.client.rolloutToken=l==null?void 0:(J=l.client)==null?void 0:J.rolloutToken}E=Object;J=E.assign;l=e.client;O={};for(var z=_.b(Object.entries(_.SD(_.hT("DEVICE","")))),M=z.next();!M.done;M=z.next()){var Z=_.b(M.value);M=Z.next().value;Z=Z.next().value;M==="cbrand"?O.deviceMake=Z:M==="cmodel"?O.deviceModel=Z:M==="cbr"?O.browserName=Z:M==="cbrver"?O.browserVersion=Z:M==="cos"?O.osName=Z:M==="cosver"?O.osVersion=Z:M==="cplatform"&&(O.platform=Z)}e.client=J.call(E,l,O);return e};
zUu=function(l,e,O){l=l.innertubeContextClientName;if(l==="WEB"||l==="MWEB"||l===1||l===2)if(e){O=_.Cu(e,ouV,96)||new ouV;var E=$98();E=Object.keys(WlL).indexOf(E);E=E===-1?null:E;E!==null&&_.oC(O,3,E);_.EN(e,96,O)}else O&&(O.client.mainAppWebInfo=(E=O.client.mainAppWebInfo)!=null?E:{},O.client.mainAppWebInfo.webDisplayMode=$98())};
bzL=function(l,e){var O=_.vK("yt.embedded_player.embed_url");O&&(l?(e=_.Cu(l,d9L,7)||new d9L,_.da(e,4,O),_.EN(l,7,e)):e&&(e.thirdParty={embedUrl:O}))};
Mjx=function(l,e){var O;if(_.a("web_log_memory_total_kbytes")&&((O=_.Op.navigator)==null?0:O.deviceMemory)){var E;O=(E=_.Op.navigator)==null?void 0:E.deviceMemory;l?_.$P(l,95,FF(O*1E6)):e&&(e.client.memoryTotalKbytes=""+O*1E6)}};
VjL=function(l,e,O){if(l.appInstallData)if(e){var E;O=(E=_.Cu(e,Ww,62))!=null?E:new Ww;_.da(O,6,l.appInstallData);_.EN(e,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},O.client.configInfo.appInstallData=l.appInstallData)};
ZzA=function(l,e){var O=_.VH2();O&&(l?_.oC(l,61,gud[O]):e&&(e.client.connectionType=O));_.a("web_log_effective_connection_type")&&(O=ucd())&&(l?_.oC(l,94,izx[O]):e&&(e.client.effectiveConnectionType=O))};
_.nuW=function(l,e,O){O=O===void 0?{}:O;var E={};_.hT("EOM_VISITOR_DATA")?E={"X-Goog-EOM-Visitor-Id":_.hT("EOM_VISITOR_DATA")}:E={"X-Goog-Visitor-Id":O.visitorData||_.hT("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return E;e=O.authorization||_.hT("AUTHORIZATION");e||(l?e="Bearer "+_.vK("gapi.auth.getToken")().access_token:(wbx.instance||(wbx.instance=new wbx),l=Agd(),_.a("pageid_as_header_web")||delete l["X-Goog-PageId"],E=Object.assign({},E,l)));e&&(E.Authorization=e);return E};
uj2=function(l,e){var O=aGW();if(O){var E=O.coldConfigData,J=O.coldHashData;O=O.hotHashData;if(l){var z;e=(z=_.Cu(l,Ww,62))!=null?z:new Ww;E=_.da(e,1,E);_.da(E,3,J).setHotHashData(O);_.EN(l,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},E&&(e.client.configInfo.coldConfigData=E),J&&(e.client.configInfo.coldHashData=J),O&&(e.client.configInfo.hotHashData=O))}};
d3=function(l){for(var e=l.length;--e>=0;)l[e]=0};
k9q=function(l,e,O,E,J){this.static_tree=l;this.extra_bits=e;this.extra_base=O;this.elems=E;this.max_length=J;this.has_stree=l&&l.length};
IGp=function(l,e){this.dyn_tree=l;this.max_code=0;this.stat_desc=e};
g3=function(l,e){l.pending_buf[l.pending++]=e&255;l.pending_buf[l.pending++]=e>>>8&255};
iL=function(l,e,O){l.bi_valid>16-O?(l.bi_buf|=e<<l.bi_valid&65535,g3(l,l.bi_buf),l.bi_buf=e>>16-l.bi_valid,l.bi_valid+=O-16):(l.bi_buf|=e<<l.bi_valid&65535,l.bi_valid+=O)};
w3=function(l,e,O){iL(l,O[e*2],O[e*2+1])};
m92=function(l,e){var O=0;do O|=l&1,l>>>=1,O<<=1;while(--e>0);return O>>>1};
ygp=function(l,e,O){var E=Array(16),J=0,z;for(z=1;z<=15;z++)E[z]=J=J+O[z-1]<<1;for(O=0;O<=e;O++)J=l[O*2+1],J!==0&&(l[O*2]=m92(E[J]++,J))};
pbt=function(l){var e;for(e=0;e<286;e++)l.dyn_ltree[e*2]=0;for(e=0;e<30;e++)l.dyn_dtree[e*2]=0;for(e=0;e<19;e++)l.bl_tree[e*2]=0;l.dyn_ltree[512]=1;l.opt_len=l.static_len=0;l.last_lit=l.matches=0};
Klq=function(l){l.bi_valid>8?g3(l,l.bi_buf):l.bi_valid>0&&(l.pending_buf[l.pending++]=l.bi_buf);l.bi_buf=0;l.bi_valid=0};
jpq=function(l,e,O){Klq(l);g3(l,O);g3(l,~O);AW.arraySet(l.pending_buf,l.window,e,O,l.pending);l.pending+=O};
Hzq=function(l,e,O,E){var J=e*2,z=O*2;return l[J]<l[z]||l[J]===l[z]&&E[e]<=E[O]};
cgu=function(l,e,O){for(var E=l.heap[O],J=O<<1;J<=l.heap_len;){J<l.heap_len&&Hzq(e,l.heap[J+1],l.heap[J],l.depth)&&J++;if(Hzq(e,E,l.heap[J],l.depth))break;l.heap[O]=l.heap[J];O=J;J<<=1}l.heap[O]=E};
spM=function(l,e,O){var E=0;if(l.last_lit!==0){do{var J=l.pending_buf[l.d_buf+E*2]<<8|l.pending_buf[l.d_buf+E*2+1];var z=l.pending_buf[l.l_buf+E];E++;if(J===0)w3(l,z,e);else{var M=nu[z];w3(l,M+256+1,e);var Z=Fl2[M];Z!==0&&(z-=fGx[M],iL(l,z,Z));J--;M=J<256?aC[J]:aC[256+(J>>>7)];w3(l,M,O);Z=RUq[M];Z!==0&&(J-=TQt[M],iL(l,J,Z))}}while(E<l.last_lit)}w3(l,256,e)};
G9p=function(l,e){var O=e.dyn_tree,E=e.stat_desc.static_tree,J=e.stat_desc.has_stree,z=e.stat_desc.elems,M,Z=-1;l.heap_len=0;l.heap_max=573;for(M=0;M<z;M++)O[M*2]!==0?(l.heap[++l.heap_len]=Z=M,l.depth[M]=0):O[M*2+1]=0;for(;l.heap_len<2;){var u=l.heap[++l.heap_len]=Z<2?++Z:0;O[u*2]=1;l.depth[u]=0;l.opt_len--;J&&(l.static_len-=E[u*2+1])}e.max_code=Z;for(M=l.heap_len>>1;M>=1;M--)cgu(l,O,M);u=z;do M=l.heap[1],l.heap[1]=l.heap[l.heap_len--],cgu(l,O,1),E=l.heap[1],l.heap[--l.heap_max]=M,l.heap[--l.heap_max]=
E,O[u*2]=O[M*2]+O[E*2],l.depth[u]=(l.depth[M]>=l.depth[E]?l.depth[M]:l.depth[E])+1,O[M*2+1]=O[E*2+1]=u,l.heap[1]=u++,cgu(l,O,1);while(l.heap_len>=2);l.heap[--l.heap_max]=l.heap[1];M=e.dyn_tree;u=e.max_code;E=e.stat_desc.static_tree;J=e.stat_desc.has_stree;z=e.stat_desc.extra_bits;var d=e.stat_desc.extra_base,g=e.stat_desc.max_length,w,n=0;for(w=0;w<=15;w++)l.bl_count[w]=0;M[l.heap[l.heap_max]*2+1]=0;for(e=l.heap_max+1;e<573;e++){var k=l.heap[e];w=M[M[k*2+1]*2+1]+1;w>g&&(w=g,n++);M[k*2+1]=w;if(!(k>
u)){l.bl_count[w]++;var y=0;k>=d&&(y=z[k-d]);var c=M[k*2];l.opt_len+=c*(w+y);J&&(l.static_len+=c*(E[k*2+1]+y))}}if(n!==0){do{for(w=g-1;l.bl_count[w]===0;)w--;l.bl_count[w]--;l.bl_count[w+1]+=2;l.bl_count[g]--;n-=2}while(n>0);for(w=g;w!==0;w--)for(k=l.bl_count[w];k!==0;)E=l.heap[--e],E>u||(M[E*2+1]!==w&&(l.opt_len+=(w-M[E*2+1])*M[E*2],M[E*2+1]=w),k--)}ygp(O,Z,l.bl_count)};
BQp=function(l,e,O){var E,J=-1,z=e[1],M=0,Z=7,u=4;z===0&&(Z=138,u=3);e[(O+1)*2+1]=65535;for(E=0;E<=O;E++){var d=z;z=e[(E+1)*2+1];++M<Z&&d===z||(M<u?l.bl_tree[d*2]+=M:d!==0?(d!==J&&l.bl_tree[d*2]++,l.bl_tree[32]++):M<=10?l.bl_tree[34]++:l.bl_tree[36]++,M=0,J=d,z===0?(Z=138,u=3):d===z?(Z=6,u=3):(Z=7,u=4))}};
PiW=function(l,e,O){var E,J=-1,z=e[1],M=0,Z=7,u=4;z===0&&(Z=138,u=3);for(E=0;E<=O;E++){var d=z;z=e[(E+1)*2+1];if(!(++M<Z&&d===z)){if(M<u){do w3(l,d,l.bl_tree);while(--M!==0)}else d!==0?(d!==J&&(w3(l,d,l.bl_tree),M--),w3(l,16,l.bl_tree),iL(l,M-3,2)):M<=10?(w3(l,17,l.bl_tree),iL(l,M-3,3)):(w3(l,18,l.bl_tree),iL(l,M-11,7));M=0;J=d;z===0?(Z=138,u=3):d===z?(Z=6,u=3):(Z=7,u=4)}}};
U9x=function(l){var e=4093624447,O;for(O=0;O<=31;O++,e>>>=1)if(e&1&&l.dyn_ltree[O*2]!==0)return 0;if(l.dyn_ltree[18]!==0||l.dyn_ltree[20]!==0||l.dyn_ltree[26]!==0)return 1;for(O=32;O<256;O++)if(l.dyn_ltree[O*2]!==0)return 1;return 0};
kP=function(l,e,O){l.pending_buf[l.d_buf+l.last_lit*2]=e>>>8&255;l.pending_buf[l.d_buf+l.last_lit*2+1]=e&255;l.pending_buf[l.l_buf+l.last_lit]=O&255;l.last_lit++;e===0?l.dyn_ltree[O*2]++:(l.matches++,e--,l.dyn_ltree[(nu[O]+256+1)*2]++,l.dyn_dtree[(e<256?aC[e]:aC[256+(e>>>7)])*2]++);return l.last_lit===l.lit_bufsize-1};
mw=function(l,e){l.msg=IC[e];return e};
yZ=function(l){for(var e=l.length;--e>=0;)l[e]=0};
pu=function(l){var e=l.state,O=e.pending;O>l.avail_out&&(O=l.avail_out);O!==0&&(AW.arraySet(l.output,e.pending_buf,e.pending_out,O,l.next_out),l.next_out+=O,e.pending_out+=O,l.total_out+=O,l.avail_out-=O,e.pending-=O,e.pending===0&&(e.pending_out=0))};
F_=function(l,e){var O=l.block_start>=0?l.block_start:-1,E=l.strstart-l.block_start,J=0;if(l.level>0){l.strm.data_type===2&&(l.strm.data_type=U9x(l));G9p(l,l.l_desc);G9p(l,l.d_desc);BQp(l,l.dyn_ltree,l.l_desc.max_code);BQp(l,l.dyn_dtree,l.d_desc.max_code);G9p(l,l.bl_desc);for(J=18;J>=3&&l.bl_tree[YGV[J]*2+1]===0;J--);l.opt_len+=3*(J+1)+5+5+4;var z=l.opt_len+3+7>>>3;var M=l.static_len+3+7>>>3;M<=z&&(z=M)}else z=M=E+5;if(E+4<=z&&O!==-1)iL(l,e?1:0,3),jpq(l,O,E);else if(l.strategy===4||M===z)iL(l,2+(e?
1:0),3),spM(l,Hw,cw);else{iL(l,4+(e?1:0),3);O=l.l_desc.max_code+1;E=l.d_desc.max_code+1;J+=1;iL(l,O-257,5);iL(l,E-1,5);iL(l,J-4,4);for(z=0;z<J;z++)iL(l,l.bl_tree[YGV[z]*2+1],3);PiW(l,l.dyn_ltree,O-1);PiW(l,l.dyn_dtree,E-1);spM(l,l.dyn_ltree,l.dyn_dtree)}pbt(l);e&&Klq(l);l.block_start=l.strstart;pu(l.strm)};
fu=function(l,e){l.pending_buf[l.pending++]=e};
RC=function(l,e){l.pending_buf[l.pending++]=e>>>8&255;l.pending_buf[l.pending++]=e&255};
hUA=function(l,e){var O=l.max_chain_length,E=l.strstart,J=l.prev_length,z=l.nice_match,M=l.strstart>l.w_size-262?l.strstart-(l.w_size-262):0,Z=l.window,u=l.w_mask,d=l.prev,g=l.strstart+258,w=Z[E+J-1],n=Z[E+J];l.prev_length>=l.good_match&&(O>>=2);z>l.lookahead&&(z=l.lookahead);do{var k=e;if(Z[k+J]===n&&Z[k+J-1]===w&&Z[k]===Z[E]&&Z[++k]===Z[E+1]){E+=2;for(k++;Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&Z[++E]===Z[++k]&&E<g;);
k=258-(g-E);E=g-258;if(k>J){l.match_start=e;J=k;if(k>=z)break;w=Z[E+J-1];n=Z[E+J]}}}while((e=d[e&u])>M&&--O!==0);return J<=l.lookahead?J:l.lookahead};
sD=function(l){var e=l.w_size,O;do{var E=l.window_size-l.lookahead-l.strstart;if(l.strstart>=e+(e-262)){AW.arraySet(l.window,l.window,e,e,0);l.match_start-=e;l.strstart-=e;l.block_start-=e;var J=O=l.hash_size;do{var z=l.head[--J];l.head[J]=z>=e?z-e:0}while(--O);J=O=e;do z=l.prev[--J],l.prev[J]=z>=e?z-e:0;while(--O);E+=e}if(l.strm.avail_in===0)break;J=l.strm;O=l.window;z=l.strstart+l.lookahead;var M=J.avail_in;M>E&&(M=E);M===0?O=0:(J.avail_in-=M,AW.arraySet(O,J.input,J.next_in,M,z),J.state.wrap===
1?J.adler=LlV(J.adler,O,M,z):J.state.wrap===2&&(J.adler=TJ(J.adler,O,M,z)),J.next_in+=M,J.total_in+=M,O=M);l.lookahead+=O;if(l.lookahead+l.insert>=3)for(E=l.strstart-l.insert,l.ins_h=l.window[E],l.ins_h=(l.ins_h<<l.hash_shift^l.window[E+1])&l.hash_mask;l.insert&&!(l.ins_h=(l.ins_h<<l.hash_shift^l.window[E+3-1])&l.hash_mask,l.prev[E&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=E,E++,l.insert--,l.lookahead+l.insert<3););}while(l.lookahead<262&&l.strm.avail_in!==0)};
tjM=function(l,e){for(var O;;){if(l.lookahead<262){sD(l);if(l.lookahead<262&&e===0)return 1;if(l.lookahead===0)break}O=0;l.lookahead>=3&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,O=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);O!==0&&l.strstart-O<=l.w_size-262&&(l.match_length=hUA(l,O));if(l.match_length>=3)if(O=kP(l,l.strstart-l.match_start,l.match_length-3),l.lookahead-=l.match_length,l.match_length<=l.max_lazy_match&&l.lookahead>=3){l.match_length--;
do l.strstart++,l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart;while(--l.match_length!==0);l.strstart++}else l.strstart+=l.match_length,l.match_length=0,l.ins_h=l.window[l.strstart],l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+1])&l.hash_mask;else O=kP(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++;if(O&&(F_(l,!1),l.strm.avail_out===0))return 1}l.insert=l.strstart<2?l.strstart:2;return e===4?(F_(l,
!0),l.strm.avail_out===0?3:4):l.last_lit&&(F_(l,!1),l.strm.avail_out===0)?1:2};
GJ=function(l,e){for(var O,E;;){if(l.lookahead<262){sD(l);if(l.lookahead<262&&e===0)return 1;if(l.lookahead===0)break}O=0;l.lookahead>=3&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,O=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);l.prev_length=l.match_length;l.prev_match=l.match_start;l.match_length=2;O!==0&&l.prev_length<l.max_lazy_match&&l.strstart-O<=l.w_size-262&&(l.match_length=hUA(l,O),l.match_length<=5&&(l.strategy===1||l.match_length===3&&
l.strstart-l.match_start>4096)&&(l.match_length=2));if(l.prev_length>=3&&l.match_length<=l.prev_length){E=l.strstart+l.lookahead-3;O=kP(l,l.strstart-1-l.prev_match,l.prev_length-3);l.lookahead-=l.prev_length-1;l.prev_length-=2;do++l.strstart<=E&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);while(--l.prev_length!==0);l.match_available=0;l.match_length=2;l.strstart++;if(O&&(F_(l,!1),l.strm.avail_out===0))return 1}else if(l.match_available){if((O=
kP(l,0,l.window[l.strstart-1]))&&F_(l,!1),l.strstart++,l.lookahead--,l.strm.avail_out===0)return 1}else l.match_available=1,l.strstart++,l.lookahead--}l.match_available&&(kP(l,0,l.window[l.strstart-1]),l.match_available=0);l.insert=l.strstart<2?l.strstart:2;return e===4?(F_(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(F_(l,!1),l.strm.avail_out===0)?1:2};
qGM=function(l,e){for(var O,E,J,z=l.window;;){if(l.lookahead<=258){sD(l);if(l.lookahead<=258&&e===0)return 1;if(l.lookahead===0)break}l.match_length=0;if(l.lookahead>=3&&l.strstart>0&&(E=l.strstart-1,O=z[E],O===z[++E]&&O===z[++E]&&O===z[++E])){for(J=l.strstart+258;O===z[++E]&&O===z[++E]&&O===z[++E]&&O===z[++E]&&O===z[++E]&&O===z[++E]&&O===z[++E]&&O===z[++E]&&E<J;);l.match_length=258-(J-E);l.match_length>l.lookahead&&(l.match_length=l.lookahead)}l.match_length>=3?(O=kP(l,1,l.match_length-3),l.lookahead-=
l.match_length,l.strstart+=l.match_length,l.match_length=0):(O=kP(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++);if(O&&(F_(l,!1),l.strm.avail_out===0))return 1}l.insert=0;return e===4?(F_(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(F_(l,!1),l.strm.avail_out===0)?1:2};
vut=function(l,e){for(var O;;){if(l.lookahead===0&&(sD(l),l.lookahead===0)){if(e===0)return 1;break}l.match_length=0;O=kP(l,0,l.window[l.strstart]);l.lookahead--;l.strstart++;if(O&&(F_(l,!1),l.strm.avail_out===0))return 1}l.insert=0;return e===4?(F_(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(F_(l,!1),l.strm.avail_out===0)?1:2};
Bw=function(l,e,O,E,J){this.good_length=l;this.max_lazy=e;this.nice_length=O;this.max_chain=E;this.func=J};
NQq=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 AW.Buf16(1146);this.dyn_dtree=new AW.Buf16(122);this.bl_tree=new AW.Buf16(78);yZ(this.dyn_ltree);yZ(this.dyn_dtree);yZ(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new AW.Buf16(16);this.heap=new AW.Buf16(573);yZ(this.heap);this.heap_max=this.heap_len=0;this.depth=new AW.Buf16(573);yZ(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};
rgM=function(l,e){if(!l||!l.state||e>5||e<0)return l?mw(l,-2):-2;var O=l.state;if(!l.output||!l.input&&l.avail_in!==0||O.status===666&&e!==4)return mw(l,l.avail_out===0?-5:-2);O.strm=l;var E=O.last_flush;O.last_flush=e;if(O.status===42)if(O.wrap===2)l.adler=0,fu(O,31),fu(O,139),fu(O,8),O.gzhead?(fu(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),fu(O,O.gzhead.time&255),fu(O,O.gzhead.time>>8&255),fu(O,O.gzhead.time>>16&255),fu(O,O.gzhead.time>>
24&255),fu(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),fu(O,O.gzhead.os&255),O.gzhead.extra&&O.gzhead.extra.length&&(fu(O,O.gzhead.extra.length&255),fu(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(l.adler=TJ(l.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(fu(O,0),fu(O,0),fu(O,0),fu(O,0),fu(O,0),fu(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),fu(O,3),O.status=113);else{var J=8+(O.w_bits-8<<4)<<8;J|=(O.strategy>=2||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6;O.strstart!==0&&(J|=
32);O.status=113;RC(O,J+(31-J%31));O.strstart!==0&&(RC(O,l.adler>>>16),RC(O,l.adler&65535));l.adler=1}if(O.status===69)if(O.gzhead.extra){for(J=O.pending;O.gzindex<(O.gzhead.extra.length&65535)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>J&&(l.adler=TJ(l.adler,O.pending_buf,O.pending-J,J)),pu(l),J=O.pending,O.pending!==O.pending_buf_size));)fu(O,O.gzhead.extra[O.gzindex]&255),O.gzindex++;O.gzhead.hcrc&&O.pending>J&&(l.adler=TJ(l.adler,O.pending_buf,O.pending-J,J));O.gzindex===O.gzhead.extra.length&&
(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){J=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>J&&(l.adler=TJ(l.adler,O.pending_buf,O.pending-J,J)),pu(l),J=O.pending,O.pending===O.pending_buf_size)){var z=1;break}z=O.gzindex<O.gzhead.name.length?O.gzhead.name.charCodeAt(O.gzindex++)&255:0;fu(O,z)}while(z!==0);O.gzhead.hcrc&&O.pending>J&&(l.adler=TJ(l.adler,O.pending_buf,O.pending-J,J));z===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===
91)if(O.gzhead.comment){J=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>J&&(l.adler=TJ(l.adler,O.pending_buf,O.pending-J,J)),pu(l),J=O.pending,O.pending===O.pending_buf_size)){z=1;break}z=O.gzindex<O.gzhead.comment.length?O.gzhead.comment.charCodeAt(O.gzindex++)&255:0;fu(O,z)}while(z!==0);O.gzhead.hcrc&&O.pending>J&&(l.adler=TJ(l.adler,O.pending_buf,O.pending-J,J));z===0&&(O.status=103)}else O.status=103;O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&pu(l),
O.pending+2<=O.pending_buf_size&&(fu(O,l.adler&255),fu(O,l.adler>>8&255),l.adler=0,O.status=113)):O.status=113);if(O.pending!==0){if(pu(l),l.avail_out===0)return O.last_flush=-1,0}else if(l.avail_in===0&&(e<<1)-(e>4?9:0)<=(E<<1)-(E>4?9:0)&&e!==4)return mw(l,-5);if(O.status===666&&l.avail_in!==0)return mw(l,-5);if(l.avail_in!==0||O.lookahead!==0||e!==0&&O.status!==666){E=O.strategy===2?vut(O,e):O.strategy===3?qGM(O,e):Pw[O.level].func(O,e);if(E===3||E===4)O.status=666;if(E===1||E===3)return l.avail_out===
0&&(O.last_flush=-1),0;if(E===2&&(e===1?(iL(O,2,3),w3(O,256,Hw),O.bi_valid===16?(g3(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):O.bi_valid>=8&&(O.pending_buf[O.pending++]=O.bi_buf&255,O.bi_buf>>=8,O.bi_valid-=8)):e!==5&&(iL(O,0,3),jpq(O,0,0),e===3&&(yZ(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),pu(l),l.avail_out===0))return O.last_flush=-1,0}if(e!==4)return 0;if(O.wrap<=0)return 1;O.wrap===2?(fu(O,l.adler&255),fu(O,l.adler>>8&255),fu(O,l.adler>>16&255),fu(O,l.adler>>24&255),fu(O,
l.total_in&255),fu(O,l.total_in>>8&255),fu(O,l.total_in>>16&255),fu(O,l.total_in>>24&255)):(RC(O,l.adler>>>16),RC(O,l.adler&65535));pu(l);O.wrap>0&&(O.wrap=-O.wrap);return O.pending!==0?0:1};
D9p=function(l){if(!(this instanceof D9p))return new D9p(l);l=this.options=AW.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},l||{});l.raw&&l.windowBits>0?l.windowBits=-l.windowBits:l.gzip&&l.windowBits>0&&l.windowBits<16&&(l.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new SGW;this.strm.avail_out=0;var e=this.strm;var O=l.level,E=l.method,J=l.windowBits,z=l.memLevel,M=l.strategy;if(e){var Z=1;O===-1&&(O=6);J<0?(Z=0,J=-J):J>15&&
(Z=2,J-=16);if(z<1||z>9||E!==8||J<8||J>15||O<0||O>9||M<0||M>4)e=mw(e,-2);else{J===8&&(J=9);var u=new NQq;e.state=u;u.strm=e;u.wrap=Z;u.gzhead=null;u.w_bits=J;u.w_size=1<<u.w_bits;u.w_mask=u.w_size-1;u.hash_bits=z+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 AW.Buf8(u.w_size*2);u.head=new AW.Buf16(u.hash_size);u.prev=new AW.Buf16(u.w_size);u.lit_bufsize=1<<z+6;u.pending_buf_size=u.lit_bufsize*4;u.pending_buf=new AW.Buf8(u.pending_buf_size);
u.d_buf=u.lit_bufsize;u.l_buf=3*u.lit_bufsize;u.level=O;u.strategy=M;u.method=E;if(e&&e.state){e.total_in=e.total_out=0;e.data_type=2;O=e.state;O.pending=0;O.pending_out=0;O.wrap<0&&(O.wrap=-O.wrap);O.status=O.wrap?42:113;e.adler=O.wrap===2?0:1;O.last_flush=0;if(!QpM){E=Array(16);for(z=M=0;z<28;z++)for(fGx[z]=M,J=0;J<1<<Fl2[z];J++)nu[M++]=z;nu[M-1]=z;for(z=M=0;z<16;z++)for(TQt[z]=M,J=0;J<1<<RUq[z];J++)aC[M++]=z;for(M>>=7;z<30;z++)for(TQt[z]=M<<7,J=0;J<1<<RUq[z]-7;J++)aC[256+M++]=z;for(J=0;J<=15;J++)E[J]=
0;for(J=0;J<=143;)Hw[J*2+1]=8,J++,E[8]++;for(;J<=255;)Hw[J*2+1]=9,J++,E[9]++;for(;J<=279;)Hw[J*2+1]=7,J++,E[7]++;for(;J<=287;)Hw[J*2+1]=8,J++,E[8]++;ygp(Hw,287,E);for(J=0;J<30;J++)cw[J*2+1]=5,cw[J*2]=m92(J,5);x98=new k9q(Hw,Fl2,257,286,15);lrV=new k9q(cw,RUq,0,30,15);e7g=new k9q([],OOL,0,19,7);QpM=!0}O.l_desc=new IGp(O.dyn_ltree,x98);O.d_desc=new IGp(O.dyn_dtree,lrV);O.bl_desc=new IGp(O.bl_tree,e7g);O.bi_buf=0;O.bi_valid=0;pbt(O);O=0}else O=mw(e,-2);O===0&&(e=e.state,e.window_size=2*e.w_size,yZ(e.head),
e.max_lazy_match=Pw[e.level].max_lazy,e.good_match=Pw[e.level].good_length,e.nice_match=Pw[e.level].nice_length,e.max_chain_length=Pw[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0);e=O}}else e=-2;if(e!==0)throw Error(IC[e]);l.header&&(e=this.strm)&&e.state&&e.state.wrap===2&&(e.state.gzhead=l.header);if(l.dictionary){var d;typeof l.dictionary==="string"?d=Ept(l.dictionary):JYg.call(l.dictionary)==="[object ArrayBuffer]"?
d=new Uint8Array(l.dictionary):d=l.dictionary;l=this.strm;z=d;M=z.length;if(l&&l.state)if(d=l.state,e=d.wrap,e===2||e===1&&d.status!==42||d.lookahead)e=-2;else{e===1&&(l.adler=LlV(l.adler,z,M,0));d.wrap=0;M>=d.w_size&&(e===0&&(yZ(d.head),d.strstart=0,d.block_start=0,d.insert=0),O=new AW.Buf8(d.w_size),AW.arraySet(O,z,M-d.w_size,d.w_size,0),z=O,M=d.w_size);O=l.avail_in;E=l.next_in;J=l.input;l.avail_in=M;l.next_in=0;l.input=z;for(sD(d);d.lookahead>=3;){z=d.strstart;M=d.lookahead-2;do d.ins_h=(d.ins_h<<
d.hash_shift^d.window[z+3-1])&d.hash_mask,d.prev[z&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=z,z++;while(--M);d.strstart=z;d.lookahead=2;sD(d)}d.strstart+=d.lookahead;d.block_start=d.strstart;d.insert=d.lookahead;d.lookahead=0;d.match_length=d.prev_length=2;d.match_available=0;l.next_in=E;l.input=J;l.avail_in=O;d.wrap=e;e=0}else e=-2;if(e!==0)throw Error(IC[e]);this._dict_set=!0}};
XtM=function(l,e){e=e||{};e.gzip=!0;e=new D9p(e);e.push(l,!0);if(e.err)throw e.msg||IC[e.err];return e.result};
bOd=function(l,e){var O=z7M();O&&O.publish.call(O,l.toString(),l,e)};
CHu=function(l,e,O){var E=z7M();if(!E)return 0;var J=E.subscribe(l.toString(),function(z,M){var Z=_.vK("ytPubsub2Pubsub2SkipSubKey");Z&&Z==J||(Z=function(){if(Mot[J])try{if(M&&l instanceof Vox&&l!=z)try{var u=l.dataClass,d=M;if(!d.args||!d.version)throw Error("Xc");try{if(!u.version_){var g=new u;u.version_=g.version}var w=u.version_}catch(n){}if(!w||d.version!=w)throw Error("Yc");try{M=Reflect.construct(u,_.rT(d.args))}catch(n){throw n.message="yt.pubsub2.Data.deserialize(): "+n.message,n;}}catch(n){throw n.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+l.toString()+": "+n.message,n;}e.call(O||window,M)}catch(n){_.tT(n)}},ZOW[l.toString()]?_.vK("yt.scheduler.instance")?_.UD.addLowPriorityJob(Z):_.dL(Z,0):Z())});
Mot[J]=!0;u$T[l.toString()]||(u$T[l.toString()]=[]);u$T[l.toString()].push(J);return J};
du2=function(){var l=opM,e=CHu($uu,function(O){l.apply(void 0,arguments);WcT(e)});
return e};
WcT=function(l){var e=z7M();e&&(typeof l==="number"&&(l=[l]),_.DB(l,function(O){e.unsubscribeByKey(O);delete Mot[O]}))};
z7M=function(){return _.vK("ytPubsub2Pubsub2Instance")};
gpp=function(l,e,O){O=O===void 0?{sampleRate:.1}:O;Math.random()<Math.min(.02,O.sampleRate/100)&&bOd("meta_logging_csi_event",{timerName:l,timelineData:e})};
_.iOW=function(l){return l?(l=l.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.G1(l):null:null};
_.YP=function(l){return l?(l=l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.VS(l):null:null};
AY2=function(){wtg||(wtg=_.YP(_.hT("WORKER_SERIALIZATION_URL")));return wtg||void 0};
_.ar2=function(){var l=AY2();npV||l===void 0||(npV=new Worker(_.Z9(l),void 0));return npV};
_.k4V=function(){return typeof Worker==="function"&&AY2()?!0:!1};
_.ptV=function(){if(_.k4V()&&!Irg){var l=function(O){O=O.data;if(O.op==="gzippedGelBatch"){var E=mud.get(O.key);E&&(yYW(O.gzippedBatch,E.latencyPayload,E.url,E.options,E.sendFn),mud.delete(O.key))}},e=_.ar2();
e&&(e.addEventListener("message",l),e.onerror=function(){mud.clear()},Irg=!0)}};
R7M=function(l,e,O,E,J){J=J===void 0?!1:J;var z={startTime:(0,_.VZ)(),ticks:{},infos:{}};if(hW)try{var M=Kcu(e);if(M!=null&&(M>jMu||M<HOT))E(l,O);else{if(_.a("gzip_gel_with_worker")&&(_.a("initial_gzip_use_main_thread")&&!cYA||!_.a("initial_gzip_use_main_thread"))){Irg||_.ptV();var Z=_.ar2();if(Z&&!J){mud.set(Fcg,{latencyPayload:z,url:l,options:O,sendFn:E});Z.postMessage({op:"gelBatchToGzip",serializedBatch:e,key:Fcg});Fcg++;return}}var u=XtM(frd(e));yYW(u,z,l,O,E)}}catch(d){_.Nz(d),E(l,O)}else E(l,
O)};
yYW=function(l,e,O,E,J){cYA=!1;var z=(0,_.VZ)();e.ticks.gelc=z;Lu++;_.a("disable_compression_due_to_performance_degredation")&&z-e.startTime>=TVu&&(sMV++,_.a("abandon_compression_after_N_slow_zips")?Lu===_.Cv("compression_disable_point")&&sMV>G4x&&(hW=!1):hW=!1);BVM(e);E.headers||(E.headers={});E.headers["Content-Encoding"]="gzip";E.postBody=l;E.postParams=void 0;J(O,E)};
PH8=function(l){var e=e===void 0?!1:e;var O=O===void 0?!1:O;var E=(0,_.VZ)(),J={startTime:E,ticks:{},infos:{}},z=e?_.vK("yt.logging.gzipForFetch",!1):!0;if(hW&&z){if(!l.body)return l;try{var M=O?l.body:typeof l.body==="string"?l.body:JSON.stringify(l.body);z=M;if(!O&&typeof M==="string"){var Z=Kcu(M);if(Z!=null&&(Z>jMu||Z<HOT))return l;O=e?{level:1}:void 0;z=XtM(frd(M),O);var u=(0,_.VZ)();J.ticks.gelc=u;if(e){Lu++;if((_.a("disable_compression_due_to_performance_degredation")||_.a("disable_compression_due_to_performance_degradation_lr"))&&
u-E>=TVu)if(sMV++,_.a("abandon_compression_after_N_slow_zips")||_.a("abandon_compression_after_N_slow_zips_lr")){e=sMV/Lu;var d=G4x/_.Cv("compression_disable_point");Lu>0&&Lu%_.Cv("compression_disable_point")===0&&e>=d&&(hW=!1)}else hW=!1;BVM(J)}}l.headers=Object.assign({},{"Content-Encoding":"gzip"},l.headers||{});l.body=z;return l}catch(g){return _.Nz(g),l}}else return l};
Kcu=function(l){try{return(new Blob(l.split(""))).size}catch(e){return _.Nz(e),null}};
BVM=function(l){_.a("gel_compression_csi_killswitch")||!_.a("log_gel_compression_latency")&&!_.a("log_gel_compression_latency_lr")||gpp("gel_compression",l,{sampleRate:.1})};
Uuu=function(){this.blockSize=-1};
tW=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var l=1;l<this.blockSize;++l)this.pad_[l]=0;this.total_=this.inbuf_=0;this.reset()};
h7V=function(l){l=Object.assign({},l);delete l.Authorization;var e=_.Ynt();if(e){var O=new tW;O.update(_.hT("INNERTUBE_API_KEY"));O.update(e);l.hash=_.x4(O.digest(),3)}return l};
vw=function(){LcL||(LcL=new _.qx("yt.innertube"));return LcL};
tox=function(l,e,O,E){if(E)return null;E=vw().get("nextId",!0)||1;var J=vw().get("requests",!0)||{};J[E]={method:l,request:e,authState:h7V(O),requestTime:Math.round((0,_.VZ)())};vw().set("nextId",E+1,86400,!0);vw().set("requests",J,86400,!0);return E};
qnq=function(l){var e=vw().get("requests",!0)||{};delete e[l];vw().set("requests",e,86400,!0)};
NVW=function(l){var e=vw().get("requests",!0);if(e){for(var O in e){var E=e[O];if(!(Math.round((0,_.VZ)())-E.requestTime<6E4)){var J=E.authState,z=h7V(_.nuW(!1));_.mm.equals(J,z)&&(J=E.request,"requestTimeMs"in J&&(J.requestTimeMs=Math.round((0,_.VZ)())),vp8(l,E.method,J,{}));delete e[O]}}vw().set("requests",e,86400,!0)}};
rYT=function(l){var e;return(l=l==null?void 0:(e=l.error)==null?void 0:e.code)&&l>=400&&l<=599?!1:!0};
Duu=function(l){var e;l=l==null?void 0:(e=l.error)==null?void 0:e.code;return!(l!==400&&l!==415)};
QMM=function(){if(Sn8)return Sn8();var l={};Sn8=Mx("LogsDatabaseV2",{objectStores:(l.LogsRequestsStore={addedAtVersion:2},l),shared:!1,upgrade:function(e,O,E){O(2)&&Nx(e,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});O(3);O(5)&&(E=E.objectStore("LogsRequestsStore"),E.JSC$8640_wrapped.indexNames.contains("newRequest")&&E.JSC$8640_wrapped.deleteIndex("newRequest"),r3(E,"newRequestV2",["status","interface","timestamp"]));O(7)&&e.JSC$8625_wrapped.objectStoreNames.contains("sapisid")&&e.JSC$8625_wrapped.deleteObjectStore("sapisid");
O(9)&&e.JSC$8625_wrapped.objectStoreNames.contains("SWHealthLog")&&e.JSC$8625_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Sn8()};
DA=function(l){return _.lL(QMM(),l)};
lCM=function(l,e){var O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return O={startTime:(0,_.VZ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.C(M,DA(e),2);if(M.nextAddress!=3)return E=M.yieldResult,J=Object.assign({},l,{options:JSON.parse(JSON.stringify(l.options)),interface:_.hT("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.C(M,E.put("LogsRequestsStore",J),3);z=M.yieldResult;O.ticks.tc=(0,_.VZ)();xuA(O);return M.return(z)})};
ebT=function(l,e){var O,E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1)return O={startTime:(0,_.VZ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.C(g,DA(e),2);if(g.nextAddress!=3)return E=g.yieldResult,J=_.hT("INNERTUBE_CONTEXT_CLIENT_NAME",0),z=[l,J,0],M=[l,J,(0,_.VZ)()],Z=IDBKeyRange.bound(z,M),u="prev",_.a("use_fifo_for_networkless")&&(u="next"),d=void 0,_.C(g,_.et(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){return _.ZA(w.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:Z,direction:u},function(n){n.getValue()&&(d=n.getValue(),l==="NEW"&&(d.status="QUEUED",n.update(d)))})}),3);
O.ticks.tc=(0,_.VZ)();xuA(O);return g.return(d)})};
O0q=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,DA(e),2);O=E.yieldResult;return E.return(_.et(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){var z=J.objectStore("LogsRequestsStore");return z.get(l).then(function(M){if(M)return M.status="QUEUED",z.put(M).then(function(){return M})})}))})};
E18=function(l,e,O,E){O=O===void 0?!0:O;var J;return _.V(function(z){if(z.nextAddress==1)return _.C(z,DA(e),2);J=z.yieldResult;return z.return(_.et(J,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var Z=M.objectStore("LogsRequestsStore");return Z.get(l).then(function(u){return u?(u.status="NEW",O&&(u.sendCount+=1),E!==void 0&&(u.options.compress=E),Z.put(u).then(function(){return u})):qG.resolve(void 0)})}))})};
J$M=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,DA(e),2);O=E.yieldResult;return E.return(O.delete("LogsRequestsStore",l))})};
Xct=function(l){var e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,DA(l),2);e=E.yieldResult;O=(0,_.VZ)()-2592E6;return _.C(E,_.et(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){return ED(J.objectStore("LogsRequestsStore"),{},function(z){if(z.getValue().timestamp<=O)return z.delete().then(function(){return z.continue()})})}),0)})};
zbT=function(){_.V(function(l){return _.C(l,rig("LogsDatabaseV2"),0)})};
xuA=function(l){_.a("nwl_csi_killswitch")||gpp("networkless_performance",l,{sampleRate:1})};
_.MT2=function(l){return _.lL(b02(),l)};
VTd=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,_.MT2(l),2);e=E.yieldResult;O=(0,_.VZ)()-2592E6;return _.C(E,_.et(e,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(J){return ED(J.objectStore("SWHealthLog"),{},function(z){if(z.getValue().timestamp<=O)return z.delete().then(function(){return z.continue()})})}),0)})};
Z0p=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,_.MT2(l),2);e=O.yieldResult;return _.C(O,e.clear("SWHealthLog"),0)})};
_.St=function(l,e,O,E,J,z,M){J=J===void 0?"":J;z=z===void 0?!1:z;M=M===void 0?!1:M;if(l)if(O&&!Y6("cobalt"))_.Nz(new _.Hk("Legacy referrer-scrubbed ping detected")),l&&uvt(l,void 0,{scrubReferrer:!0});else if(J)sm2(l,e,"POST",J,E);else if(_.hT("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||E||M)sm2(l,e,"GET","",E,void 0,z,M);else{b:{try{c:{var Z=new CGg({url:l});if(Z.urlParamValues_.dsh==="1")var u=null;else{var d=Z.urlParamValues_.ae;if(d==="1"){var g=Z.urlParamValues_.adurl;if(g)try{u={version:3,directUrl:decodeURIComponent(g),
asyncUrl:ylq(Z.JSC$7513_url_,"act=1","ri=1",o18(Z))};break c}catch(y){}}u=d==="2"?{version:4,directUrl:ylq(Z.JSC$7513_url_,"dct=1","suid="+Z.suid_,""),asyncUrl:ylq(Z.JSC$7513_url_,"act=1","ri=1","suid="+Z.suid_)}:null}}if(u){var w=_.A5(l);var n=!(!w||!w.endsWith("/aclk")||_.vD(l,"ri")!=="1");break b}}catch(y){}n=!1}if(n){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(l,"")){var k=!0;break b}}catch(y){}k=!1}k?(e&&e(),O=!0):O=!1}else O=!1;O||uvt(l,e)}};
uvt=function(l,e,O){O=O===void 0?{}:O;var E=new Image,J=""+$vW++;Wsx[J]=E;E.onload=E.onerror=function(){e&&Wsx[J]&&e();delete Wsx[J]};
O.scrubReferrer&&(E.referrerPolicy="no-referrer");E.src=l};
QZ=function(l,e){dvA(l,e==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
g1W=function(l){var e;return((e=document.featurePolicy)==null?0:e.allowedFeatures().includes("attribution-reporting"))?l+"&nis=6":l+"&nis=5"};
i0g=function(l){if(!l)return!1;try{var e;if(((e=_.SD(l))==null?void 0:e.asm)==="4")return!0}catch(O){_.tT(O)}return!1};
dvA=function(l,e){e?(l=g1W(l),_.St(l,void 0,void 0,void 0,"",!0,!0)):_.St(l)};
A$A=function(){wcd||(wcd=new _.qx("yt.offline"));return wcd};
n1x=function(l){if(_.a("offline_error_handling")){var e=A$A().get("errors",!0)||{};e[l.message]={name:l.name,stack:l.stack};l.level&&(e[l.message].level=l.level);A$A().set("errors",e,2592E3,!0)}};
k_q=function(l,e,O,E){E=E===void 0?!1:E;e=_.a("web_fp_via_jspb")?Object.assign({},e):e;_.a("use_cfr_monitor")&&aC8(l,e);if(_.a("use_request_time_ms_header"))e.headers&&zR(l)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.VZ)())));else{var J;if((J=e.postParams)==null?0:J.requestTimeMs)e.postParams.requestTimeMs=Math.round((0,_.VZ)())}O&&Object.keys(e).length===0?_.St(l):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),R7M(l,e.postBody,
e,_.nv,E)):R7M(l,JSON.stringify(e.postParams),e,UYu,E):_.nv(l,e)};
ICu=function(l,e){_.a("use_event_time_ms_header")&&zR(l)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.VZ)())));return e};
_.y$8=function(){mv8||(mv8=new _.xP({logOfflineErrors:!0,enablePolling:!0}));return mv8};
aC8=function(l,e){var O=e.onError?e.onError:function(){};
e.onError=function(J,z){lN().requestComplete(l,!1);O(J,z)};
var E=e.onSuccess?e.onSuccess:function(){};
e.onSuccess=function(J,z){lN().requestComplete(l,!0);E(J,z)}};
_.pcT=function(){return _.Es(document.location.toString())!=="www.youtube-nocookie.com"};
_.H0q=function(){return _.vK("ytNetworklessLoggingInitializationOptions")?_.Ksg.isNwlInitialized:_.j4x};
c$L=function(l,e){if(_.a("polymer_on_demand_shady_dom")){var O;var E=(O=l.__shady_native_firstElementChild)!=null?O:l.firstElementChild}else E=l.firstElementChild;for(;E;){if(l=e(E)?E:c$L(E,e))return l;E=E.nextElementSibling}return null};
fCp=function(){var l=document;if("visibilityState"in l)return l.visibilityState;var e=Fsu+"VisibilityState";if(e in l)return l[e]};
_.Rb2=function(l,e){var O;eU(l,function(E){O=e[E];return!!O});
return O};
_.EW=function(l){var e=T8u(l);e?e.focus(void 0):_.OW(l)};
T8u=function(l){return(l=c$L(l,function(e){return _.JG(e)?s4L(e)&&!!e.offsetParent:!1}))?l:null};
_.OW=function(l,e){l.hasAttribute("tabindex")||l.setAttribute("tabindex","-1");l.focus(e)};
G_T=function(l,e,O,E){E=E===void 0?{}:E;l.addEventListener&&(e!="mouseenter"||"onmouseenter"in document?e!="mouseleave"||"onmouseenter"in document?e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover");return _.mm.findKey(Xx,function(J){var z=typeof J[4]==="boolean"&&J[4]==!!E,M=_.e0(J[4])&&_.e0(E)&&_.mm.equals(J[4],E);return!!J.length&&J[0]==l&&J[1]==e&&J[2]==O&&(z||M)})};
_.bN=function(l,e,O,E){E=E===void 0?{}:E;if(!l||!l.addEventListener&&!l.attachEvent)return"";var J=G_T(l,e,O,E);if(J)return J;J=++B8A.count+"";var z=!(e!="mouseenter"&&e!="mouseleave"||!l.addEventListener||"onmouseenter"in document);var M=z?function(Z){Z=new zM(Z);if(!_.R7(Z.relatedTarget,function(u){return u==l},!0))return Z.currentTarget=l,Z.type=e,O.call(l,Z)}:function(Z){Z=new zM(Z);
Z.currentTarget=l;return O.call(l,Z)};
M=_.qz(M);l.addEventListener?(e=="mouseenter"&&z?e="mouseover":e=="mouseleave"&&z?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),PG2()||typeof E==="boolean"?l.addEventListener(e,M,E):l.addEventListener(e,M,!!E.capture)):l.attachEvent("on"+e,M);Xx[J]=[l,e,O,M,E];return J};
_.Ymd=function(l,e,O){var E=E===void 0?{}:E;var J=_.bN(l,e,function(){_.UvV(J);O.apply(l,arguments)},E)};
_.UvV=function(l){l&&(typeof l=="string"&&(l=[l]),_.DB(l,function(e){if(e in Xx){var O=Xx[e],E=O[0],J=O[1],z=O[3];O=O[4];E.removeEventListener?PG2()||typeof O==="boolean"?E.removeEventListener(J,z,O):E.removeEventListener(J,z,!!O.capture):E.detachEvent&&E.detachEvent("on"+J,z);delete Xx[e]}}))};
VW=function(l){this.callback_=l;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(l=0;l<4;l++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.bN(window,"mousemove",(0,_.pb)(this.onMouseMove_,this));this.timerId_=_.gL((0,_.pb)(this.checkPosition_,this),25)};
Lsu=function(){var l={};var e=l.preferMobileEvents===void 0?!1:l.preferMobileEvents;l=l.enableScrollEventListener===void 0?!0:l.enableScrollEventListener;if(_.vK("_lact",window)==null){var O=parseInt(_.hT("LACT"),10);O=isFinite(O)?Date.now()-Math.max(O,0):-1;_.zJ("_lact",O,window);_.zJ("_fact",O,window);O==-1&&_.Zb();_.bN(document,"keydown",_.Zb);_.bN(document,"keyup",_.Zb);_.bN(document,"mousedown",_.Zb);_.bN(document,"mouseup",_.Zb);e?_.bN(window,"touchmove",function(){hb8("touchmove",200)},{passive:!0}):
(_.bN(window,"resize",function(){hb8("resize",200)}),l&&_.bN(window,"scroll",function(){hb8("scroll",200)}));
new VW(function(){hb8("mouse",100)});
_.bN(document,"touchstart",_.Zb,{passive:!0});_.bN(document,"touchend",_.Zb,{passive:!0})}};
hb8=function(l,e){tTp[l]||(tTp[l]=!0,_.UD.addLowPriorityJob(function(){_.Zb();tTp[l]=!1},e))};
_.Zb=function(){_.vK("_lact",window)==null&&Lsu();var l=Date.now();_.zJ("_lact",l,window);_.vK("_fact",window)==-1&&_.zJ("_fact",l,window);(l=_.vK("ytglobal.ytUtilActivityCallback_"))&&l()};
_.uN=function(){var l=_.vK("_lact",window);return l==null?-1:Math.max(Date.now()-l,0)};
_.Wm=function(l,e,O){var E=_.CZ();if(E&&e){var J=E.subscribe(l,function(){var z=arguments,M=function(){oD[J]&&e.apply&&typeof e.apply=="function"&&e.apply(O||window,z)};
try{_.qm8[l]?M():_.dL(M,0)}catch(Z){_.tT(Z)}},O);
oD[J]=!0;$E[l]||($E[l]=[]);$E[l].push(J);return J}return 0};
_.v1x=function(l){var e=_.CZ();e&&(typeof l==="number"?l=[l]:typeof l==="string"&&(l=[parseInt(l,10)]),_.DB(l,function(O){e.unsubscribeByKey(O);delete oD[O]}))};
_.N8x=function(l,e){var O=_.CZ();O&&O.publish.apply(O,arguments)};
_.Dvq=function(l){var e=_.CZ();if(e)if(e.clear(l),l)r$2(l);else for(var O in $E)r$2(O)};
_.CZ=function(){return _.Op.ytPubsubPubsubInstance};
r$2=function(l){$E[l]&&(l=$E[l],_.DB(l,function(e){oD[e]&&delete oD[e]}),l.length=0)};
Smt=function(){var l,e;return"h5vcc"in iN&&((l=iN.h5vcc.traceEvent)==null?0:l.traceBegin)&&((e=iN.h5vcc.traceEvent)==null?0:e.traceEnd)?1:"performance"in iN&&iN.performance.mark&&iN.performance.measure?2:0};
Q4T=function(l){var e=Smt();switch(e){case 1:iN.h5vcc.traceEvent.traceBegin("YTLR",l);break;case 2:iN.performance.mark(l+"-start");break;case 0:break;default:_.VC(e,"unknown trace type")}};
xvM=function(l){var e=Smt();switch(e){case 1:iN.h5vcc.traceEvent.traceEnd("YTLR",l);break;case 2:e=l+"-start";var O=l+"-end";iN.performance.mark(O);iN.performance.measure(l,e,O);break;case 0:break;default:_.VC(e,"unknown trace type")}};
lex=function(l){var e,O;(O=(e=window).onerror)==null||O.call(e,l.message,"",0,0,l)};
eed=function(l){if(_.a("web_lifecycle_error_handling_killswitch"))return l();try{return l()}catch(e){lex(e)}};
O1q=function(l){return[l.auth===void 0?"undefined":l.auth,l.isJspb===void 0?"undefined":l.isJspb,l.cttAuthInfo===void 0?"undefined":l.cttAuthInfo,l.tier===void 0?"undefined":l.tier].join("/")};
_.I=function(l,e){if(l)return l[e.name]};
AG=function(){var l=_.vK("yt.logging.ims");l||(l=new wA,_.zJ("yt.logging.ims",l));return l};
u0L=function(l,e){if(l.endpoint==="log_event"){ET8(l);var O=JAp(l),E=XsA(l.payload)||"",J=ze2(E),z=200;if(J){if(J.enabled===!1&&!_.a("web_payload_policy_disabled_killswitch"))return;z=b1g(J.tier);if(z===400){My2(l,e);return}}nZ[O]=!0;O={cttAuthInfo:O,isJspb:!1,tier:z};AG().storePayload(O,l.payload);VyM(e,!1,O,Z18(E))}};
oT8=function(l,e,O){if(e.endpoint==="log_event"){ET8(void 0,e);var E=JAp(e,!0),J=ze2(l),z=200;if(J){if(J.enabled===!1&&!_.a("web_payload_policy_disabled_killswitch"))return;z=b1g(J.tier);if(z===400){Cd8(l,e,O);return}}nZ[E]=!0;E={cttAuthInfo:E,isJspb:!0,tier:z};AG().storePayload(E,eO(e.payload));VyM(O,!0,E,Z18(l))}};
VyM=function(l,e,O,E){e=e===void 0?!1:e;E=E===void 0?!1:E;l&&(aD=new l);l=_.Cv("tvhtml5_logging_max_batch_ads_fork")||_.Cv("tvhtml5_logging_max_batch")||_.Cv("web_logging_max_batch")||100;var J=(0,_.VZ)(),z=$7A(e,O.tier),M=z.lastDebounceQueueFromLogTimeMs;E&&(z.useVideoStatsEndPoint=!0);E=0;O&&(E=AG().getSequenceCount(O));var Z=function(){W0W({writeThenSend:!0},e,O.tier)};
E>=1E3?Z():E>=l?d72||(d72=gTd(function(){Z();d72=void 0},0)):J-M>=10&&(i1q(e,O.tier),z.lastDebounceQueueFromLogTimeMs=J)};
My2=function(l,e){if(l.endpoint==="log_event"){_.a("more_accurate_gel_parser")&&AG().storePayload({isJspb:!1},l.payload);ET8(l);var O=JAp(l),E=new Map;E.set(O,[l.payload]);var J=XsA(l.payload)||"";e&&(aD=new e);return new _.kE(function(z,M){aD&&aD.isReady()?wsq(E,aD,z,M,{bypassNetworkless:!0},!0,Z18(J)):z()})}};
Cd8=function(l,e,O){if(e.endpoint==="log_event"){ET8(void 0,e);var E=JAp(e,!0),J=new Map;J.set(E,[eO(e.payload)]);O&&(aD=new O);return new _.kE(function(z){aD&&aD.isReady()?AAx(J,aD,z,{bypassNetworkless:!0},!0,Z18(l)):z()})}};
JAp=function(l,e){var O="";if(l.dangerousLogToVisitorSession)O="visitorOnlyApprovedKey";else if(l.cttAuthInfo){if(e===void 0?0:e){e=l.cttAuthInfo.token;O=l.cttAuthInfo;var E=new nTp;O.videoId?E.setVideoId(O.videoId):O.playlistId&&ID(E,2,aeu,Ph(O.playlistId));kVu[e]=E}else e=l.cttAuthInfo,O={},e.videoId?O.videoId=e.videoId:e.playlistId&&(O.playlistId=e.playlistId),Iep[l.cttAuthInfo.token]=O;O=l.cttAuthInfo.token}return O};
W0W=function(l,e,O){l=l===void 0?{}:l;e=e===void 0?!1:e;new _.kE(function(E,J){var z=$7A(e,O),M=z.useVideoStatsEndPoint;z.useVideoStatsEndPoint=!1;m7d(z.queueTimer);m7d(z.queueMaxTimer);z.queueMaxTimer=0;aD&&aD.isReady()?O===void 0&&_.a("enable_web_tiered_gel")?yAW(E,J,l,e,300,M):yAW(E,J,l,e,O,M):(i1q(e,O),E())})};
yAW=function(l,e,O,E,J,z){var M=aD;O=O===void 0?{}:O;E=E===void 0?!1:E;J=J===void 0?200:J;z=z===void 0?!1:z;var Z=new Map,u=new Map,d={isJspb:E,cttAuthInfo:void 0,tier:J},g={isJspb:E,cttAuthInfo:void 0};if(E){e=_.b(Object.keys(nZ));for(J=e.next();!J.done;J=e.next())J=J.value,u=_.a("enable_web_tiered_gel")?AG().smartExtractMatchingEntries({keys:[d,g],sizeLimit:1E3}):AG().extractMatchingEntries({isJspb:!0,cttAuthInfo:J}),u.length>0&&Z.set(J,u),(_.a("web_fp_via_jspb_and_json")&&O.writeThenSend||!_.a("web_fp_via_jspb_and_json"))&&
delete nZ[J];AAx(Z,M,l,O,!1,z)}else{Z=_.b(Object.keys(nZ));for(d=Z.next();!d.done;d=Z.next())d=d.value,g=_.a("enable_web_tiered_gel")?AG().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:J},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):AG().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),g.length>0&&u.set(d,g),(_.a("web_fp_via_jspb_and_json")&&O.writeThenSend||!_.a("web_fp_via_jspb_and_json"))&&delete nZ[d];wsq(u,M,l,e,O,!1,z)}};
i1q=function(l,e){l=l===void 0?!1:l;e=e===void 0?200:e;var O=function(){W0W({writeThenSend:!0},l,e)},E=$7A(l,e),J=E===psT||E===K0T?5E3:jBq;
_.a("web_gel_timeout_cap")&&!E.queueMaxTimer&&(J=gTd(function(){O()},J),E.queueMaxTimer=J);
m7d(E.queueTimer);J=_.hT("LOGGING_BATCH_TIMEOUT",_.Cv("web_gel_debounce_ms",1E4));_.a("shorten_initial_gel_batch_timeout")&&H1d&&(J=cAM);J=gTd(function(){_.Cv("gel_min_batch_size")>0?AG().getSequenceCount({cttAuthInfo:void 0,isJspb:l,tier:e})>=F0t&&O():O()},J);
E.queueTimer=J};
wsq=function(l,e,O,E,J,z,M){J=J===void 0?{}:J;var Z=Math.round((0,_.VZ)()),u=l.size,d=feg(M);l=_.b(l);var g=l.next();for(M={};!g.done;M={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},g=l.next()){var w=_.b(g.value);g=w.next().value;w=w.next().value;M.batchRequest=_.mm.unsafeClone({context:_.Cig(e.config_||_.uL())});if(!_.SM(w)&&!_.a("throw_err_when_logevent_malformed_killswitch")){E();break}M.batchRequest.events=w;
(w=Iep[g])&&Reu(M.batchRequest,g,w);delete Iep[g];M.dangerousLogToVisitorSession=g==="visitorOnlyApprovedKey";TPM(M.batchRequest,Z,M.dangerousLogToVisitorSession);sB2(J);M.onSuccess$jscomp$3=function(n){_.a("start_client_gcf")&&_.UD.addLowPriorityJob(function(){return _.V(function(k){return _.C(k,GVA(n),0)})});
u--;u||O()};
M.networkFailures=0;M.onError$jscomp$5=function(n){return function(){n.networkFailures++;if(J.bypassNetworkless&&n.networkFailures===1)try{vp8(e,d,n.batchRequest,BPx({writeThenSend:!0},n.dangerousLogToVisitorSession,n.onSuccess$jscomp$3,n.onError$jscomp$5,z)),H1d=!1}catch(k){_.tT(k),E()}u--;u||O()}}(M);
try{vp8(e,d,M.batchRequest,BPx(J,M.dangerousLogToVisitorSession,M.onSuccess$jscomp$3,M.onError$jscomp$5,z)),H1d=!1}catch(n){_.tT(n),E()}}};
AAx=function(l,e,O,E,J,z){E=E===void 0?{}:E;var M=Math.round((0,_.VZ)()),Z={value:l.size},u=new Map([].concat(_.kA(l)));u=_.b(u);for(var d=u.next();!d.done;d=u.next()){var g=_.b(d.value).next().value,w=l.get(g);d=new Pdx;var n=e.config_||_.uL(),k=new mB,y=new U7x;_.da(y,1,n.innertubeContextHostLanguage);_.da(y,2,n.innertubeContextGeoLocation);_.oC(y,16,n.innertubeContextClientNameFieldNumber);_.da(y,17,n.innertubeContextClientVersion);if(n.innertubeContextClientConfigInfo){var c=n.innertubeContextClientConfigInfo,
f=new Ww;c.coldConfigData&&_.da(f,1,c.coldConfigData);c.appInstallData&&_.da(f,6,c.appInstallData);c.coldHashData&&_.da(f,3,c.coldHashData);c.hotHashData&&f.setHotHashData(c.hotHashData);_.EN(y,62,f)}(c=_.Op.devicePixelRatio)&&c!=1&&_.$P(y,65,_.ZO(c));c=pQ8();c!==""&&_.da(y,54,c);c=KPp();if(c.length>0){f=new YVx;for(var P=0;P<c.length;P++){var h=new yW;h.setKey(c[P].key);ID(h,2,hed,Ph(c[P].value));pZ(f,15,yW,h)}_.EN(k,5,f)}zUu(n,y);bzL(k);Mjx(y);VjL(n,y);ZzA(y);_.a("start_client_gcf")&&uj2(y);_.hT("DELEGATED_SESSION_ID")&&
!_.a("pageid_as_header_web")&&(n=new KZ,_.da(n,3,_.hT("DELEGATED_SESSION_ID")));!_.a("fill_delegate_context_in_gel_killswitch")&&(c=_.hT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f=_.Cu(k,KZ,3)||new KZ,n=k,c=_.da(f,18,c),_.EN(n,3,c));n=y;c=_.b(Object.entries(_.SD(_.hT("DEVICE",""))));for(f=c.next();!f.done;f=c.next())P=_.b(f.value),f=P.next().value,P=P.next().value,f==="cbrand"?_.da(n,12,P):f==="cmodel"?_.da(n,13,P):f==="cbr"?_.da(n,87,P):f==="cbrver"?_.da(n,88,P):f==="cos"?_.da(n,18,
P):f==="cosver"?_.da(n,19,P):f==="cplatform"&&_.oC(n,42,Jix(P));k.setClient(y);_.EN(d,1,k);if(y=kVu[g])a:{if(_.gk(y,jU(y,aeu,1)))k=1;else if(y.getPlaylistId())k=2;else break a;_.EN(d,4,y);y=d.getContext()||new mB;n=_.Cu(y,KZ,3)||new KZ;c=new Hm;c.setToken(g);_.oC(c,1,k);pZ(n,12,Hm,c);_.EN(y,3,n)}delete kVu[g];g=g==="visitorOnlyApprovedKey";L0q()||_.cm(d,2,M);!g&&(k=_.hT("EVENT_ID"))&&(y=tyV(),n=new qVx,_.da(n,1,k),_.cm(n,2,y),_.EN(d,5,n));sB2(E);if(_.a("jspb_serialize_with_worker")&&(k=_.ar2())&&
E.writeThenSend){_.vTx.set(NPV,{client:e,resolve:O,networklessOptions:E,isIsolated:J,useVSSEndpoint:z,dangerousLogToVisitorSession:g,requestsOutstanding:Z});k.postMessage({op:"gelBatchToSerialize",batchRequest:eO(d),clientEvents:w,key:NPV});NPV++;break}if(w){k=[];for(y=0;y<w.length;y++)try{k.push(new Fx(w[y]))}catch(N){_.tT(new _.Hk("Transport failed to deserialize "+String(w[y])))}w=k}else w=[];w=_.b(w);for(k=w.next();!k.done;k=w.next())pZ(d,3,Fx,k.value);w={startTime:(0,_.VZ)(),ticks:{},infos:{}};
d=d.serialize();w.ticks.geljspc=(0,_.VZ)();_.a("log_jspb_serialize_latency")&&gpp("gel_jspb_serialize",w,{sampleRate:.1});_.rAg(d,e,O,E,J,z,g,Z)}};
_.rAg=function(l,e,O,E,J,z,M,Z){E=E===void 0?{}:E;Z=Z===void 0?{value:0}:Z;z=feg(z);E=BPx(E,M,function(u){_.a("start_client_gcf")&&_.UD.addLowPriorityJob(function(){return _.V(function(d){return _.C(d,GVA(u),0)})});
Z.value--;Z.value||O()},function(){Z.value--;
Z.value||O()},J);
E.headers["Content-Type"]="application/json+protobuf";E.postBodyFormat="JSPB";E.postBody=l;vp8(e,z,"",E);H1d=!1};
sB2=function(l){_.a("always_send_and_write")&&(l.writeThenSend=!1)};
BPx=function(l,e,O,E,J){l={retry:!0,onSuccess:O,onError:E,networklessOptions:l,dangerousLogToVisitorSession:e,bypassMonitoring:!!J,headers:{},postBodyFormat:"",postBody:"",compress:_.a("compress_gel")||_.a("compress_gel_lr")};L0q()&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.VZ)())));return l};
TPM=function(l,e,O){L0q()||(l.requestTimeMs=String(e));_.a("unsplit_gel_payloads_in_logs")&&(l.unsplitGelPayloadsInLogs=!0);!O&&(e=_.hT("EVENT_ID"))&&(O=tyV(),l.serializedClientEventId={serializedEventId:e,clientCounter:String(O)})};
tyV=function(){var l=_.hT("BATCH_CLIENT_COUNTER")||0;l||(l=Math.floor(Math.random()*65535/2));l++;l>65535&&(l=1);_.Yd("BATCH_CLIENT_COUNTER",l);return l};
Reu=function(l,e,O){if(O.videoId)var E="VIDEO";else if(O.playlistId)E="PLAYLIST";else return;l.credentialTransferTokenTargetId=O;l.context=l.context||{};l.context.user=l.context.user||{};l.context.user.credentialTransferTokens=[{token:e,scope:E}]};
ET8=function(l,e){var O=_.oy("il_payload_scraping")==="enable_il_payload_scraping";if(!_.vK("yt.logging.transport.enableScrapingForTest"))if(O)D7A=[],_.zJ("yt.logging.transport.enableScrapingForTest",!0),_.zJ("yt.logging.transport.scrapedPayloadsForTesting",D7A),_.zJ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.zJ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.zJ("yt.logging.transport.scrapeClientEvent",!0);else return;O=_.vK("yt.logging.transport.scrapedPayloadsForTesting");var E=_.vK("yt.logging.transport.payloadToScrape");e&&(e=_.vK("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e.payload)())&&O.push(e);e=_.vK("yt.logging.transport.scrapeClientEvent");if(E&&E.length>=1)for(var J=0;J<E.length;J++)if(l&&l.payload[E[J]])if(e)O.push(l.payload);else{var z=void 0;O.push(((z=l)==null?void 0:z.payload)[E[J]])}_.zJ("yt.logging.transport.scrapedPayloadsForTesting",
O)};
L0q=function(){return _.a("use_request_time_ms_header")||_.a("lr_use_request_time_ms_header")};
gTd=function(l,e){return _.a("transport_use_scheduler")===!1?_.dL(l,e):_.a("logging_avoid_blocking_during_navigation")||_.a("lr_logging_avoid_blocking_during_navigation")?_.fZ(_.UD,function(){if(_.SVW().currentState==="none")l();else{var O={};_.SVW().install((O.none={callback:l},O))}},e):_.fZ(_.UD,l,e)};
m7d=function(l){_.a("transport_use_scheduler")?_.UD.cancelJob(l):_.wL(l)};
GVA=function(l){var e,O,E,J,z,M,Z,u,d,g;return _.V(function(w){return w.nextAddress==1?(E=(e=l)==null?void 0:(O=e.responseContext)==null?void 0:O.globalConfigGroup,J=_.I(E,QBT),M=(z=E)==null?void 0:z.hotHashData,Z=_.I(E,x7L),d=(u=E)==null?void 0:u.coldHashData,(g=_.V2().resolve(_.MG(RD)))?M?J?_.C(w,luW(g,M,J),2):_.C(w,luW(g,M),2):w.jumpTo(2):w.return()):d?Z?_.C(w,ec8(g,d,Z),0):_.C(w,ec8(g,d),0):w.jumpTo(0)})};
$7A=function(l,e){e=e===void 0?200:e;return l?e===300?psT:O4d:e===300?K0T:E0u};
ze2=function(l){if(_.a("enable_web_tiered_gel")){l=J3q[l||""];var e,O,E,J=_.V2().resolve(_.MG(RD))==null?void 0:(e=Xfx())==null?void 0:(O=e.loggingHotConfig)==null?void 0:(E=O.eventLoggingConfig)==null?void 0:E.payloadPolicies;if(J)for(e=0;e<J.length;e++)if(J[e].payloadNumber===l)return J[e]}};
XsA=function(l){l=Object.keys(l);l=_.b(l);for(var e=l.next();!e.done;e=l.next())if(e=e.value,J3q[e])return e};
b1g=function(l){switch(l){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}};
Z18=function(l){return l==="gelDebuggingEvent"};
feg=function(l){return(l===void 0?0:l)&&_.a("vss_through_gel_video_stats")?"video_stats":"log_event"};
sW=function(l,e,O,E){E=E===void 0?{}:E;var J={},z=Math.round(E.timestamp||(0,_.VZ)());J.eventTimeMs=z<Number.MAX_SAFE_INTEGER?z:0;J[l]=e;l=_.uN();J.context={lastActivityMs:String(E.timestamp||!isFinite(l)?-1:l)};E.sequenceGroup&&!_.a("web_gel_sequence_info_killswitch")&&(l=J.context,e=E.sequenceGroup,e={index:zct(e),groupKey:e},l.sequence=e,E.endOfSequence&&delete TM[E.sequenceGroup]);(E.sendIsolatedPayload?My2:u0L)({endpoint:"log_event",payload:J,cttAuthInfo:E.cttAuthInfo,dangerousLogToVisitorSession:E.dangerousLogToVisitorSession},
O)};
zct=function(l){TM[l]=l in TM?TM[l]+1:0;return TM[l]};
_.Bm=function(l,e,O){O=O===void 0?{}:O;var E=GM;_.LH("ytLoggingEventsDefaultDisabled",!1)&&GM===GM&&(E=null);sW(l,e,E,O)};
_.Pm=function(){if(_.a("web_fp_via_jspb")){var l=!0;l=l===void 0?!1:l;var e=b4L;b4L=[];if(e){e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,l?sW(O.payloadName,O.payload,GM,O.options):_.Bm(O.payloadName,O.payload,O.options)}W0W(void 0,!0);if(!_.a("web_fp_via_jspb_and_json"))return}W0W(void 0,!1)};
MbM=function(l,e){var O;if((O=e)==null?0:O.componentStack)return e;if(l=l.componentStack)e||(e={}),e.componentStack=l;return e};
Vbu=function(){_.DB(_.hT("ERRORS")||[],function(l){_.UW.apply(null,l)});
_.Yd("ERRORS",[])};
_.YE=function(l){_.UW(l)};
_.hG=function(l){_.UW(l,"WARNING")};
Z42=function(l){l instanceof Error?_.UW(l):(l=_.e0(l)?JSON.stringify(l):String(l),l=new _.Hk(l),l.name="RejectedPromiseError",_.hG(l))};
uOV=function(l,e,O,E,J,z){e=e===void 0?"Unknown file":e;O=O===void 0?0:O;var M=!1,Z=M4x("log_window_onerror_fraction");if(Z&&Math.random()<Z)M=!0;else{Z=document.getElementsByTagName("script");for(var u=0,d=Z.length;u<d;u++)if(Z[u].src.indexOf("/debug-")>0){M=!0;break}}M&&(M=!1,J?M=!0:(typeof l==="string"?Z=l:ErrorEvent&&l instanceof ErrorEvent?(M=!0,Z=l.message,e=l.filename,O=l.lineno,E=l.colno):(Z="Unknown error",e="Unknown file",O=0),J=new _.Hk(Z),J.name="UnhandledWindowError",J.message=Z,J.fileName=
e,J.lineNumber=O,isNaN(E)?delete J.columnNumber:J.columnNumber=E),_.a("wiz_enable_component_stack_propagation_killswitch")||(z=MbM(J,z)),z&&_.LZ(J,z),M?_.UW(J):_.hG(J))};
_.UW=function(l,e,O,E,J,z,M,Z){z=z===void 0?{}:z;z.name=O||_.hT("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=E||_.hT("INNERTUBE_CONTEXT_CLIENT_VERSION");O=z;e=e===void 0?"ERROR":e;M=M===void 0?!1:M;e=e===void 0?"ERROR":e;M=M===void 0?!1:M;if(l&&(l.hasOwnProperty("level")&&l.level&&(e=l.level),_.a("console_log_js_exceptions")&&(E=[],E.push("Name: "+l.name),E.push("Message: "+l.message),l.hasOwnProperty("params")&&E.push("Error Params: "+JSON.stringify(l.params)),l.hasOwnProperty("args")&&E.push("Error args: "+
JSON.stringify(l.args)),E.push("File name: "+l.fileName),E.push("Stacktrace: "+l.stack),E=E.join("\n"),window.console.log(E,l)),!(Csd>=5))){E=[];J=_.b(o0q);for(z=J.next();!z.done;z=J.next()){z=z.value;try{z()&&E.push(z())}catch(f){}}E=[].concat(_.kA($Tg),_.kA(E));var u=WXu(l);J=u.message||"Unknown Error";z=u.name||"UnknownError";var d=u.stack||l.stacktrace||"Not available";if(d.startsWith(z+": "+J)){var g=d.split("\n");g.shift();d=g.join("\n")}g=u.lineNumber||"Not available";u=u.fileName||"Not available";
var w=0;if(l.hasOwnProperty("args")&&l.args&&l.args.length)for(var n=0;n<l.args.length&&!(w=Evd(l.args[n],"params."+n,O,w),w>=500);n++);else if(l.hasOwnProperty("params")&&l.params){var k=l.params;if(typeof l.params==="object")for(n in k){if(k[n]){var y="params."+n,c=Iy(k[n]);O[y]=c;w+=y.length+c.length;if(w>500)break}}else O.params=Iy(k)}if(E.length)for(n=0;n<E.length&&!(w=Evd(E[n],"params.context."+n,O,w),w>=500);n++);navigator.vendor&&!O.hasOwnProperty("vendor")&&(O["device.vendor"]=navigator.vendor);
n={message:J,name:z,lineNumber:g,fileName:u,stack:d,params:O,sampleWeight:1};O=Number(l.columnNumber);isNaN(O)||(n.lineNumber=n.lineNumber+":"+O);if(l.level==="IGNORED")l=0;else a:{l=dT2();O=_.b(l.messageWeights);for(E=O.next();!E.done;E=O.next())if(E=E.value,n.message&&n.message.match(E.messageRegExp)){l=E.weight;break a}l=_.b(l.callbackWeights);for(O=l.next();!O.done;O=l.next())if(O=O.value,O.callback(n)){l=O.weight;break a}l=1}n.sampleWeight=l;l=_.b(g0u);for(O=l.next();!O.done;O=l.next())if(O=
O.value,O.patternsForType[n.name])for(J=_.b(O.patternsForType[n.name]),E=J.next();!E.done;E=J.next())if(z=E.value,E=n.message.match(z.regexp)){n.params["params.error.original"]=E[0];J=z.groups;z={};for(g=0;g<J.length;g++)z[J[g]]=E[g+1],n.params["params.error."+J[g]]=E[g+1];n.message=O.messageFn(z);break}n.params||(n.params={});l=dT2();n.params["params.errorServiceSignature"]="msg="+l.messageWeights.length+"&cb="+l.callbackWeights.length;n.params["params.serviceWorker"]="false";_.Op.document&&_.Op.document.querySelectorAll&&
(n.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new tG(i4M,"sample")).constructor!==tG&&(n.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(n);if(n.sampleWeight!==0&&!wfV.has(n.message)){if(M&&_.a("web_enable_error_204"))A38(e===void 0?"ERROR":e,n);else{e=e===void 0?"ERROR":e;e==="ERROR"?(n02.publish("handleError",n),_.a("record_app_crashed_web")&&auM===0&&n.sampleWeight===1&&(auM++,M={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.a("report_client_error_with_app_crash_ks")||(M.systemHealth={crashData:{clientError:{logMessage:{message:n.message}}}}),_.Bm("appCrashed",M)),krx++):e==="WARNING"&&n02.publish("handleWarning",n);if(_.a("kevlar_gel_error_routing")){M=e;Z=Z===void 0?{}:Z;b:{l=_.b(Iud);for(O=l.next();!O.done;O=l.next())if(Y6(O.value.toLowerCase())){l=!0;break b}l=!1}if(l)Z=void 0;else{O={stackTrace:n.stack};n.fileName&&(O.filename=n.fileName);l=n.lineNumber&&n.lineNumber.split?n.lineNumber.split(":"):[];l.length!==
0&&(l.length!==1||isNaN(Number(l[0]))?l.length!==2||isNaN(Number(l[0]))||isNaN(Number(l[1]))||(O.lineNumber=Number(l[0]),O.columnNumber=Number(l[1])):O.lineNumber=Number(l[0]));l={level:"ERROR_LEVEL_UNKNOWN",message:n.message,errorClassName:n.name,sampleWeight:n.sampleWeight};M==="ERROR"?l.level="ERROR_LEVEL_ERROR":M==="WARNING"&&(l.level="ERROR_LEVEL_WARNNING");O={isObfuscated:!0,browserStackInfo:O};Z.pageUrl=window.location.href;Z.kvPairs=[];_.hT("FEXP_EXPERIMENTS")&&(Z.experimentIds=_.hT("FEXP_EXPERIMENTS"));
E=_.hT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!M4x("web_disable_gel_stp_ecatcher_killswitch")&&E)for(J=_.b(Object.keys(E)),z=J.next();!z.done;z=J.next())z=z.value,Z.kvPairs.push({key:z,value:String(E[z])});if(E=n.params)for(J=_.b(Object.keys(E)),z=J.next();!z.done;z=J.next())z=z.value,Z.kvPairs.push({key:"client."+z,value:String(E[z])});E=_.hT("SERVER_NAME");J=_.hT("SERVER_VERSION");E&&J&&(Z.kvPairs.push({key:"server.name",value:E}),Z.kvPairs.push({key:"server.version",value:J}));Z={errorMetadata:Z,
stackTrace:O,logMessage:l}}Z&&(_.Bm("clientError",Z),(M==="ERROR"||_.a("errors_flush_gel_always_killswitch"))&&_.Pm())}_.a("suppress_error_204_logging")||A38(e,n)}try{wfV.add(n.message)}catch(f){}Csd++}}};
A38=function(l,e){var O=e.params||{};l={urlParams:{a:"logerror",t:"jserror",type:e.name,msg:e.message.substr(0,250),line:e.lineNumber,level:l,"client.name":O.name},postParams:{url:_.hT("PAGE_NAME",window.location.href),file:e.fileName},method:"POST"};O.version&&(l["client.version"]=O.version);if(l.postParams){e.stack&&(l.postParams.stack=e.stack);e=_.b(Object.keys(O));for(var E=e.next();!E.done;E=e.next())E=E.value,l.postParams["client."+E]=O[E];if(O=_.hT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(e=
_.b(Object.keys(O)),E=e.next();!E.done;E=e.next())E=E.value,l.postParams[E]=O[E];(O=_.hT("LAVA_VERSION"))&&(l.postParams["lava.version"]=O);O=_.hT("SERVER_NAME");e=_.hT("SERVER_VERSION");O&&e&&(l.postParams["server.name"]=O,l.postParams["server.version"]=e)}_.nv(_.hT("ECATCHER_REPORT_HOST","")+"/error_204",l)};
_.mTd=function(l,e){e=e===void 0?"ERROR":e;var O=O===void 0?{}:O;var E=_.vK("ytbin.polymer.shared.lib.tampering.info");E&&(E=E())&&(O["params.tamperingInfo"]=E.sort().join(","));_.UW(l,e,void 0,void 0,!0,O)};
_.LZ=function(l){var e=_.ke.apply(1,arguments);l.args||(l.args=[]);Array.isArray(l.args)&&l.args.push.apply(l.args,_.kA(e))};
y3T=function(l){l.level="IGNORED"};
pfd=function(l,e){$Tg.push(l);e();$Tg.pop()};
vm=function(l,e){for(var O in e)e.hasOwnProperty(O)&&(l=_.qr(l,O,e[O]));return l};
_.KXx=function(l,e,O){O=O===void 0?!1:O;if(!l)return null;if(l.adInfoDialogEndpoint||l.backstageImageUploadEndpoint||l.confirmDialogEndpoint||l.clientActionEndpoint||l.createBackstagePostDialogEndpoint||l.createCommentReplyDialogEndpoint||l.flowEndpoint||l.guideBuilderEndpoint||l.liveChatDialogEndpoint||l.modalEndpoint||l.openPopupAction||l.shareEndpoint||l.shareEntityEndpoint||l.showLiveChatItemEndpoint||l.subscriptionManagerEndpoint||l.unlimitedCreateFamilyEndpoint||l.unlimitedFamilyFlowEndpoint||
l.updateCommentDialogEndpoint||l.updateCommentReplyDialogEndpoint||l.userFeedbackEndpoint||l.videoEditorEndpoint||l.ypcCancelSurveyEndpoint)return e=_.Cv("polymer_report_client_url_requested_rate"),!O&&Math.random()<e&&_.hG(new _.Hk("urlForEndpoint used on client endpoint",l)),null;var E=_.Cv("polymer_report_missing_web_navigation_endpoint_rate");if(l.liveChatEndpoint||l.liveChatReplayEndpoint)E=0;if(!l.commandMetadata&&!l.clickTrackingParams&&Math.random()<E){var J={},z;for(z in l)J[z]="1";_.hG(new _.Hk("Missing navigation data",
J))}J="";if(l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.url)J=l.commandMetadata.webCommandMetadata.url;else if(l.searchEndpoint)Math.random()<E&&_.hG(new _.Hk("Should not manually handle search",l)),J="/results?search_query="+encodeURIComponent(l.searchEndpoint.query).replace(/%20/g,"+"),l.searchEndpoint.params&&(J+="&sp="+l.searchEndpoint.params);else if(l.watchEndpoint)Math.random()<E&&_.hG(new _.Hk("Should not manually handle watch",l)),J="/watch?v="+
l.watchEndpoint.videoId,l.watchEndpoint.playlistId&&(J+="&list="+l.watchEndpoint.playlistId),l.watchEndpoint.index&&(J+="&index="+l.watchEndpoint.index),l.watchEndpoint.startTimeSeconds&&(J+="&t="+l.watchEndpoint.startTimeSeconds);else if(l.browseEndpoint)E=l.browseEndpoint.browseId,(z=l.browseEndpoint.canonicalBaseUrl)?J=z:E&&(J=E.substr(0,2),J=J==="FE"?E==="FEwhat_to_watch"?"/":E==="FEmy_videos"?"/my_videos":"/feed/"+E.substr(2):J==="VL"?"/playlist?list="+E.substr(2):"/channel/"+E),J&&l.browseEndpoint.query&&
(J=vm(J+"/search",{query:l.browseEndpoint.query})),J&&l.browseEndpoint.params&&(J=vm(J,{params:l.browseEndpoint.params}));else{if(l.urlEndpoint)return l.urlEndpoint.url;l.signInEndpoint?(J="https://accounts.google.com/ServiceLogin",E={},_.mm.extend(E,e||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),e=E):l.uploadEndpoint?J="//www.youtube.com/upload":l.liveChatEndpoint?(J=l.liveChatEndpoint,E=_.mm.clone(J),_.e0(J.continuation)&&(z=Object.keys(J.continuation)[0],
E.continuation=J.continuation[z].continuation),J=vm("/youtubei/v1/live_chat/get_live_chat",E)):l.liveChatReplayEndpoint?(J=_.mm.clone(l.liveChatReplayEndpoint),J.currentPlayerState&&(_.mm.extend(J,J.currentPlayerState),delete J.currentPlayerState),J=vm("/youtubei/v1/live_chat/get_live_chat_replay",J)):l.liveChatItemContextMenuEndpoint?J=vm("/youtubei/v1/live_chat/get_item_context_menu",l.liveChatItemContextMenuEndpoint):l.liveChatPurchaseMessageEndpoint?J=vm("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
l.liveChatPurchaseMessageEndpoint):l.openSuperStickerBuyFlowCommand?J=vm("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",l.openSuperStickerBuyFlowCommand):l.videoEditEndpoint?J=vm("/edit",{video_id:l.videoEditEndpoint.videoId}):l.liveDashboardEndpoint?J=l.liveDashboardEndpoint.videoId?vm("/live_dashboard",{v:l.liveDashboardEndpoint.videoId}):"/live_dashboard":l.signalNavigationEndpoint&&l.signalNavigationEndpoint.signal&&l.signalNavigationEndpoint.signal==="WEBCAM"?J="/webcam":l.getPdgBuyFlowCommand&&
(J=vm(l.getPdgBuyFlowCommand.buyflowApiPath,{params:l.getPdgBuyFlowCommand.params}))}return J||O?vm(J,e||{}):(_.hG(new _.Hk("Error: Can't construct url for endpoint","keys:"+Object.keys(l).sort().join(","),l)),null)};
jXd=function(l){if(l){if(l.browseEndpoint)return!!l.browseEndpoint.nofollow;if(l.watchEndpoint)return!!l.watchEndpoint.nofollow;if(l.urlEndpoint)return!!l.urlEndpoint.nofollow}return!1};
_.c3u=function(l,e){var O=e+l,E=H4L.get(O);if(E)return E;l=e+"-"+l.replace(/([A-Z])/g,"-$1").toLowerCase();H4L.set(O,l);return l};
FXV=function(l){var e=_.PK(l,"action")||_.PK(l,"command")||_.PK(l,"endpoint");if(!e)return null;e=_.c3u(e,"yt");_.I(l,_.Nr)&&(e+="-"+_.I(l,_.Nr).signal.toLowerCase().replace(/_/g,"-"));return e};
sXp=function(l){try{var e=Object.keys(l)}catch(J){return[]}for(var O=0;O<e.length;O++){var E=e[O];if(fuV.test(E)||Rcq.test(E))return T6W(l[E])}return[]};
T6W=function(l){return l.command?[l.command]:l.onExecutionAction?[l.onExecutionAction]:l.onResponseReceivedCommand?[l.onResponseReceivedCommand]:l.updateFlowCommand?[l.updateFlowCommand]:l.clientActions?l.clientActions:l.action?[l.action]:l.actions||l.commands||l.onResponseReceivedActions||l.onResponseReceivedCommands||l.onResponseReceivedEndpoints||[]};
B6u=function(l,e){e=e===void 0?!1:e;var O=_.V2().resolve(_.MG(rA));O||(O=new GrW,_.V2().addProvider({provide:rA,useValue:O}));return O&&l&&!_.mm.isEmpty(l)?O.getUrl(l,e):""};
Pst=function(l,e,O){O=O===void 0?"":O;if(e){l.data=e;var E=B6u(e);E?(yS(l,E),jXd(e)||!zR(E)?l.rel="nofollow":l.removeAttribute("rel"),_.I(e,_.Db)&&_.I(e,_.Db).target==="TARGET_NEW_WINDOW"?l.target="_blank":O?l.target=O:l.removeAttribute("target")):(l.removeAttribute("href"),l.removeAttribute("rel"),l.removeAttribute("target"))}};
_.lg=function(l,e){var O=JF;if(F7())UTp(l,function(){var z=_.ke.apply(0,arguments);hF(O,function(){e.apply(null,_.kA(z))})});
else{var E=_.SU.getInstance(),J=BK(e);Or2(function(){J.value=e});
_.sC(function(){var z={},M=_.QW(E,(z[l]=function(){var Z=_.ke.apply(0,arguments);hF(O,function(){J.value.apply(J,_.kA(Z))})},z));
return function(){var Z={};_.xE(E,(Z[l]="",Z),M)}})}};
_.e4=function(l,e){return YtT(l,!1,e)};
_.O0=function(l,e){return YtT(l,!0,e)};
YtT=function(l,e,O){return F7()?hcg(l,e,O):LXT(l,e,O)};
LXT=function(l,e,O){return GQ(function(){return hcg(l,e,O)})};
hcg=function(l,e,O){var E=xrL(function(J){E.__value&&E.__value===J||(E.__count=E.__count?E.__count+1:1);E.value=J;var z=function(){var M=oL(null);try{return O==null?void 0:O(J)}finally{oL(M)}}();
return function(){z==null||z();E.value=null}});
l!==_.E0&&(E.__expectedTagName=l);E.__optional=e;E.isIdom=!F7();return E};
tbx=function(l){var e=JF,O=H3;return{getFn:function(){return function(E){e.isDisposed||RL(function(){return wX(function(){return l(E)})},O)!==!0&&E.stopPropagation()}}}};
JP=function(l){if(typeof l.children==="function")return l.children(),null;l=_.b(l.children);for(var e=l.next();!e.done;e=l.next())e=e.value,e();return null};
qtg=function(l){var e;return((e=l.prototype)==null?void 0:e.render)===void 0};
v0W=function(l){l=l.items.map(l.children);return l.length>0&&typeof l[0]==="string"?l.join(""):l};
r3x=function(l,e,O){O=O===void 0?!1:O;RL(function(){return N6p(l,e,O)})};
N6p=function(l,e,O){var E=null;pS++;O=(O===void 0?0:O)?DTV:Stt;try{E=O(l,function(){Xw(e)}),js(!1)}catch(J){throw js(!0),J;
}return E===null?l:E};
Xw=function(l){if(l!==void 0&&l!==null)if(l instanceof w5)for(var e=Na;rX()!=null&&sDq in rX()&&e.contains(rX());)Q5();else if(Array.isArray(l))for(e=_.b(l),l=e.next();!l.done;l=e.next())Xw(l.value);else if(l instanceof Mm||"function"==typeof _.tz&&l instanceof _.tz)bP(l.toString());else if(_.CH(l)){if(rX()!==l){var O,E;e=(E=(O=H3)==null?void 0:O.name)!=null?E:"unknown";throw Error("ec`"+l.tagName+"`"+e);}Q5()}else if(QCA(l)||l instanceof pU||SDx(l))for(e=lbx(l),e=Array.from(e.childNodes),e=_.b(e),
l=e.next();!l.done;l=e.next())Na.appendChild(l.value),Q5();else if($e(l)&&(l=l.toString()),O=typeof l,O==="boolean"||O==="number"||O==="string")bP(l);else if(typeof l==="function"){e=Na;var J=rX();J&&(J._isSignalTextNode||J._isSafeOrSanitizedHtmlNode)||yGd(e,J,l);Q5()}else if(l.type===v0W)Xw(l.type(Object.assign({},l.props,{children:l.children[0]})));else{aU.beforeVisit(l);if(typeof l.type==="string"){a:{l.__open||Hug(l.type,l.props.idomKey);J=Na;for(e in l.props)if(l.props[e]!==QXx){var z=l.props[e];
O=EC;O.push(e);O.push(z)}e=_.Zc.attributes;e=e===void 0?zL:e;z=Na;O=v3(z);GJA(z,O,e);mr8(J,l.props,!0);if((l.props.skip||l.props.skipchildren)&&Na.hasChildNodes())lP();else{if(l.type==="style"&&uxd(l.children)===null){lP();e=void 0;break a}Xw(l.children)}cW8();l.__open&&(l.__open=!1);ttp(J,l.props);e=J}return e}if(l.type===_.ZB)Xw(l.children);else if(!xTT(l)){e=l;try{lwx(e)}catch(M){l=M,(z=_.Zc.handleError)==null||z.call.apply(z,[_.Zc].concat(_.kA(_.LS(l,(J=e.type)==null?void 0:J.TAG_NAME))))}e.__open&&
(cW8(),e.__open=!1)}}};
ejp=function(l,e){var O;qtg(l)?O=new IU(e,l):O=new l(e);O.JSC$8251___type=l;O.__updateContext={nextState:O.state,isForced:!1};return O};
lwx=function(l){var e=l.type,O=e.TAG_NAME;if(e===JP)l.props.children=l.children,e(l.props);else{l.children.length>0&&(l.props.children=l.children);var E;(E=l.props).idomKey||(E.idomKey=e);if(O){var J=Hug(O,l.props.idomKey);l.__open=!0;var z=J.__instance}z||(z=ejp(e,l.props),z.props=null,J&&(J.__instance=z,z.el=J));var M;O=((M=z.__updateContext)!=null?M:{nextState:z.state,isForced:!1}).nextState;z.__updateContext=void 0;e.getDerivedStateFromProps&&(O=e.getDerivedStateFromProps(l.props,O));z.props=
l.props;z.state=O;M=function(){var Z=z;aU.beforeRender(Z);var u=Z.render(Z.props);aU.afterRender(Z,u);u?(Z.props.idomKey&&(u.props.idomKey=Z.props.idomKey),Z=u):Z=void 0;if(u=Z)if(u.__open=l.__open,Z=Xw(u),l.__open=u.__open,!e.TAG_NAME)if(Z)e.TAG_NAME=Z.tagName.toLowerCase(),Z.__instance=z,z.el=Z;else{var d;if((d=z.hooks)==null?0:d.length){var g;(g=_.Zc.handleError)==null||g.call.apply(g,[_.Zc].concat(_.kA(_.LS(Error("kd")))))}}z.didPatch();aU.didPatch(z)};
(O=z.functionComponent)?r52(O,M,z.props.debugInstance):M()}};
xTT=function(l){var e=l.type;if(!qtg(e)||e===JP||e.componentType===c3)return!1;l.props.children=l.children.length>1?l.children:l.children[0];var O,E=(O=l.props.idomKey)!=null?O:l.type,J;if(rX()&&((J=rX()[d5])==null?void 0:J.key)===E){var z=rX(),M=z[d5];if(!M)throw Error("dc`"+z.tagName);var Z;(Z=M.updateSignalsFromIdomProps)==null||Z.call(M,l.props);OdW(M);return!0}if(E7d.has(e.name))throw Z=e.name,e=(M=(z=H3)==null?void 0:z.name)!=null?M:"unknown",Error("cc`"+Z+"`"+e);HZu(l.type,l.props,l.children);
l.props.renderedFromIdom=!0;(Z=r52(l.type,function(){return AGu(l.type,l.props)},l.props.debugInstance))&&Jm2(Z);
return!0};
XFL=function(l){for(var e=0;e<iP(l).length;e++)Q5()};
OdW=function(l){var e=zjW();if(e)XFL(e);else for(var O=0;O<l.numNodes;O++)(e=zjW())?XFL(e):Q5()};
zjW=function(){var l;return(l=rX()[d5])==null?void 0:l.sourceDynamicRange};
Jm2=function(l){l=vP8(l);l=Array.isArray(l)?l:[l];l=_.b(l);for(var e=l.next();!e.done;e=l.next())Na.insertBefore(e.value,rX()),Q5()};
bd8=function(l){var e=abx(),O=GQ(function(){return{value:typeof l==="function"?l():l}});
return[O.value,function(E){if(kd!==null){var J;(J=_.Zc.handleError)==null||J.call.apply(J,[_.Zc].concat(_.kA(_.LS(Error("ld")))))}O.value=typeof E==="function"?E(O.value):E;e.__updateContext={nextState:e.state,isForced:!0};E=_.X7(e.effectContext);J=uP(!1);try{if(e.el){var z,M={},Z=(M.props=e.props,M.type=e.JSC$8251___type,M.children=(z=e.props.children)!=null?z:[],M[Vt]=!0,M);try{r3x(e.el,Z,!0)}catch(g){var u,d;(d=_.Zc.handleError)==null||d.call.apply(d,[_.Zc].concat(_.kA(_.LS(g,(u=e.JSC$8251___type)==
null?void 0:u.TAG_NAME))))}}}finally{uP(J),_.X7(E)}}]};
bg=function(l,e){var O=JF,E=function(J){hF(O,function(){e(J)})};
window.addEventListener(l,E,void 0);_.B3(function(){window.removeEventListener(l,E,void 0)})};
_.VR=function(l,e){var O=JF;_.sC(function(){var E,J=(E=e.observer)!=null?E:_.V2().resolve(MY);if(E=l.value){var z=MNA(E),M=[];e.showOption&&M.push(J.observe(E,function(){hF(O,function(){e.visibilityCallback(!0)})},e.showOption));
e.hideOption&&M.push(J.observe(E,function(){hF(O,function(){e.visibilityCallback(!1)})},e.hideOption));
e.prescanOption&&e.prescanCallback&&M.push(J.observe(E,function(){hF(O,function(){e.prescanCallback()})},e.prescanOption));
var Z;z.visibilityMonitorKeys=((Z=z.visibilityMonitorKeys)!=null?Z:[]).concat(M)}})};
MNA=function(l){var e;return(e=l.polymerController)!=null?e:l};
_.Z8=function(l){l.componentType=c3};
Cpt=function(l,e){var O=VNx;return _.W(_.ZB,null,OB(_.Zc.enableLazyTsx,function(){return _.W(ZdT,{id:O,value:l,children:e})},function(){var E=uY2(O,l);
Ma(E);E=_.X7(E);try{return e()}finally{_.X7(E)}}))};
ZdT=function(l){var e=l.children;l=uY2(l.id,l.value);Ma(l);l=_.X7(l);try{return _.W(_.ZB,null,AT(e()))}finally{_.X7(l)}};
uY2=function(l,e){return Object.assign(Object.create(o7u),{id:l,contextValue:e})};
$jx=function(l){var e,O=JF;_.Yo(function(){var E=_.X7(O),J=uP(!e);try{if(e)r3x(e,l.children(),!0);else if(e=AT(l.children()),!(e instanceof Element))throw Error("md");}finally{uP(J),_.X7(E)}});
return e};
_.Wfx=function(l,e){var O;e=P3(function(){var E=uP(!0);try{O=iP(l())}finally{uP(E)}},e===void 0?!1:e);
return[O,e]};
g72=function(l){l=l.buf.charCodeAt(l.pos++);return djT[l]};
ug=function(l){var e=0,O=0;do{var E=g72(l);e|=(E&31)<<O;O+=5}while(E&32);return e<0?e+4294967296:e};
AmL=function(l,e,O){idL(l,e);l[e][wFx].unshift(O)};
idL=function(l,e){if(!l[e]||!l[e][wFx]){var O=l[e],E=O?[O]:[];l[e]=function(){for(var J=_.b(E),z=J.next();!z.done;z=J.next())z.value.apply(this,arguments)};
l[e][wFx]=E}};
n7x=function(l){if(!l)return[];var e=[];l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,Array.isArray(O)?e.push.apply(e,_.kA(n7x(O))):e.push(O);return e};
_.om=function(l,e){if(l&&awx.test(l)||l==="//")return l;if(kkp===void 0){kkp=!1;try{var O=new URL("b","http://a");O.pathname="c%20d";kkp=O.href==="http://a/c%20d"}catch(E){}}e||(e=document.baseURI||window.location.href);if(kkp)try{return(new URL(l,e)).href}catch(E){return l}Cr||(Cr=document.implementation.createHTMLDocument("temp"),Cr.base=Cr.createElement("base"),Cr.head.appendChild(Cr.base),Cr.anchor=Cr.createElement("a"),Cr.body.appendChild(Cr.anchor));Cr.base.href=e;Cr.anchor.href=l;return Cr.anchor.href||
l};
mjL=function(l,e){return l.replace(Iw2,function(O,E,J,z){return E+"'"+_.om(J.replace(/["']/g,""),e)+"'"+z})};
ymA=function(l){return l.substring(0,l.lastIndexOf("/")+1)};
jxx=function(){pFq=!1;for(var l=$Z.length,e=0;e<l;e++){var O=$Z[e];if(O)try{O()}catch(E){setTimeout(function(){throw E;})}}$Z.splice(0,l);
Kft+=l};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(l){console.log("["+l.is+"]: registered")};
cmg=function(l){Hd2.push(l)};
WQ=function(l){return Ffd[l]||(Ffd[l]=l.indexOf("-")<0?l:l.replace(fw8,function(e){return e[1].toUpperCase()}))};
d4=function(l){return Ffd[l]||(Ffd[l]=l.replace(RjM,"-$1").toLowerCase())};
Tgq=function(l,e){var O=e.parentInfo&&Tgq(l,e.parentInfo);if(O)for(l=O.firstChild,O=0;l;l=l.nextSibling){if(e.parentIndex===O++)return l}else return l};
sxT=function(l,e){l=l._methodHost||l;return function(O){if(l[e])l[e](O,O.detail);else console.warn("listener method `"+e+"` not defined")}};
g4=function(l){return l.indexOf(".")>=0};
ig=function(l){var e=l.indexOf(".");return e===-1?l:l.slice(0,e)};
GkA=function(l,e){return l.indexOf(e+".")===0};
w4=function(l,e){return e.indexOf(l+".")===0};
AP=function(l,e,O){return e+O.slice(l.length)};
BgT=function(l,e){return l===e||GkA(l,e)||w4(l,e)};
nr=function(l){if(Array.isArray(l)){for(var e=[],O=0;O<l.length;O++)for(var E=l[O].toString().split("."),J=0;J<E.length;J++)e.push(E[J]);return e.join(".")}return l};
PpW=function(l){return Array.isArray(l)?nr(l).split("."):l.toString().split(".")};
am=function(l,e,O){e=PpW(e);for(var E=0;E<e.length;E++){if(!l)return;l=l[e[E]]}O&&(O.path=e.join("."));return l};
Ujp=function(l,e,O){var E=PpW(e),J=E[E.length-1];if(E.length>1){for(e=0;e<E.length-1;e++)if(l=l[E[e]],!l)return;l[J]=O}else l[e]=O;return E.join(".")};
YL8=function(l,e,O){var E=l[e];if(!E)E=l[e]={};else if(!l.hasOwnProperty(e)&&(E=l[e]=Object.create(l[e]),O))for(var J in E)for(l=E[J],e=E[J]=Array(l.length),O=0;O<l.length;O++)e[O]=l[O];return E};
Im=function(l,e,O,E,J,z){if(e){var M=!1,Z=kZ++,u;for(u in O){var d=J?ig(u):u;if(d=e[d])for(var g=0,w=d.length,n=void 0;g<w&&(n=d[g]);g++)n.info&&n.info.lastRun===Z||J&&!hjL(u,n.trigger)||(n.info&&(n.info.lastRun=Z),n.fn(l,u,O,E,n.info,J,z),M=!0)}return M}return!1};
hjL=function(l,e){if(e){var O=e.name;return O==l||!(!e.structured||!GkA(O,l))||!(!e.wildcard||!w4(O,l))}return!0};
Lf2=function(l,e,O,E,J){e=typeof J.method==="string"?l[J.method]:J.method;O=J.property;e?e.call(l,l.__data[O],E[O]):J.dynamicFn||console.warn("observer method `"+J.method+"` not defined")};
tN8=function(l,e,O,E){O={value:O,queueProperty:!0};E&&(O.path=E);(0,_.mP)(l).dispatchEvent(new CustomEvent(e,{detail:O}))};
qLp=function(l,e,O,E,J,z){z=(E=(z?ig(e):e)!=e?e:null)?am(l,E):l.__data[e];E&&z===void 0&&(z=O[e]);tN8(l,J.eventName,z,E)};
v7M=function(l,e,O,E,J){O=l.__data[e];yR&&(O=yR(O,J.attrName,"attribute",l));l._propertyToAttribute(e,J.attrName,O)};
rmt=function(l){var e=l.constructor.__orderedComputedDeps;if(!e){e=new Map;for(var O=l.__computeEffects,E=Ngp(l),J=E.counts,z=E.ready,M=E.total;E=z.shift();)e.set(E,e.size),(E=O[E])&&E.forEach(function(Z){Z=Z.info.methodInfo;--M;--J[Z]===0&&z.push(Z)});
M!==0&&console.warn("Computed graph for "+l.localName+" incomplete; circular?");l.constructor.__orderedComputedDeps=e}return e};
Ngp=function(l){var e=l.__computeInfo,O={};l=l.__computeEffects;var E=[],J=0,z;for(z in e){var M=e[z];J+=O[z]=M.args.filter(function(u){return!u.literal}).length+(M.dynamicFn?1:0)}for(var Z in l)e[Z]||E.push(Z);
return{counts:O,ready:E,total:J}};
SL8=function(l,e,O,E,J){e=DjV(l,e,O,E,J);if(e===pr)return!1;J=J.methodInfo;if(l.__dataHasAccessor&&l.__dataHasAccessor[J])return l._setPendingProperty(J,e,!0);l[J]=e;return!1};
lPd=function(l,e,O,E,J,z,M){O.bindings=O.bindings||[];E={kind:E,target:J,parts:z,literal:M,isCompound:z.length!==1};O.bindings.push(E);E.target&&E.kind!="attribute"&&E.kind!="text"&&!E.isCompound&&E.parts[0].mode==="{"&&(O=E.parts[0],z=O.negate,E.listenerEvent=O.event||d4(J)+"-changed",E.listenerNegate=z);J=e.nodeInfoList.length;for(O=0;O<E.parts.length;O++){var Z=E.parts[O];Z.compoundIndex=O;z=l;M=e;var u=E,d=Z,g=J;if(!d.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(Z=d.dependencies,u={index:g,binding:u,part:d,evaluator:z},d=0;d<Z.length;d++)g=Z[d],typeof g=="string"&&(g=Qxt(g),g.wildcard=!0),z._addTemplatePropertyEffect(M,g.rootProperty,{fn:xj8,info:u,trigger:g})}};
xj8=function(l,e,O,E,J,z,M){M=M[J.index];var Z=J.binding,u=J.part;z&&u.source&&e.length>u.source.length&&Z.kind=="property"&&!Z.isCompound&&M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[Z.target]?(O=O[e],e=AP(u.source,Z.target,e),M._setPendingPropertyOrPath(e,O,!1,!0)&&l._enqueueClient(M)):(e=J.evaluator._evaluateBinding(l,u,e,O,E,z),e!==pr&&(Z.isCompound&&(O=M.__dataCompoundStorage[Z.target],O[u.compoundIndex]=e,e=O.join("")),Z.kind==="attribute"||Z.target!=="textContent"&&
(Z.target!=="value"||M.localName!=="input"&&M.localName!=="textarea")||(e=e==void 0?"":e),u=e,yR&&(u=yR(u,Z.target,Z.kind,M)),Z.kind=="attribute"?l._valueToNodeAttribute(M,u,Z.target):(Z=Z.target,M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[Z]?M.__readOnly&&M.__readOnly[Z]||M._setPendingProperty(Z,u)&&l._enqueueClient(M):l._setUnmanagedPropertyToNode(M,Z,u))))};
es8=function(l,e,O){if(O.listenerEvent){var E=O.parts[0];l.addEventListener(O.listenerEvent,function(J){var z=O.target,M=E.source,Z=E.negate,u=J.detail,d=u&&u.path;d?(M=AP(z,M,d),J=u&&u.value):J=J.currentTarget[z];e.__readOnly&&e.__readOnly[M]||!e._setPendingPropertyOrPath(M,Z?!J:J,!0,!!d)||u&&u.queueProperty||e._invalidateProperties()})}};
OTg=function(l,e,O,E,J,z){z=e.static||z&&(typeof z!=="object"||z[e.methodName]);J={methodName:e.methodName,args:e.args,methodInfo:J,dynamicFn:z};for(var M=0,Z=void 0;M<e.args.length&&(Z=e.args[M]);M++)Z.literal||l._addPropertyEffect(Z.rootProperty,O,{fn:E,info:J,trigger:Z});z&&l._addPropertyEffect(e.methodName,O,{fn:E,info:J});return J};
DjV=function(l,e,O,E,J){E=l._methodHost||l;var z=E[J.methodName];if(z)return l=l._marshalArgs(J.args,e,O),l===pr?pr:z.apply(E,l);J.dynamicFn||console.warn("method `"+J.methodName+"` not defined")};
ED8=function(l){for(var e="",O=0;O<l.length;O++)e+=l[O].literal||"";return e};
zsW=function(l){if(l=l.match(/([^\s]+?)\(([\s\S]*)\)/)){var e={methodName:l[1],static:!0,args:JMV};return l[2].trim()?Xiq(l[2].replace(/\\,/g,"&comma;").split(","),e):e}return null};
Xiq=function(l,e){e.args=l.map(function(O){O=Qxt(O);O.literal||(e.static=!1);return O},this);
return e};
Qxt=function(l){l=l.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var e={name:l,value:"",literal:!1},O=l[0];O==="-"&&(O=l[1]);O>="0"&&O<="9"&&(O="#");switch(O){case "'":case '"':e.value=l.slice(1,-1);e.literal=!0;break;case "#":e.value=Number(l),e.literal=!0}e.literal||(e.rootProperty=ig(l),e.structured=g4(l),e.structured&&(e.wildcard=l.slice(-2)==".*",e.wildcard&&(e.name=l.slice(0,-2))));return e};
bTp=function(l,e,O){l=am(l,O);l===void 0&&(l=e[O]);return l};
Mpd=function(l,e,O,E){E={indexSplices:E};Kr&&!l._overrideLegacyUndefined&&(e.splices=E);l.notifyPath(O+".splices",E);l.notifyPath(O+".length",e.length);Kr&&!l._overrideLegacyUndefined&&(E.indexSplices=[])};
j4=function(l,e,O,E,J,z){Mpd(l,e,O,[{index:E,addedCount:J,removed:z,object:e,type:"splice"}])};
Vpd=function(l){l=mjL((l.body?l.body:l).textContent,l.baseURI);var e=document.createElement("style");e.textContent=l;return e};
uZg=function(l){l=l.trim().split(/\s+/);for(var e=[],O=0;O<l.length;O++)e.push.apply(e,_.kA(ZTM(l[O])));return e};
ZTM=function(l){var e=HQ.import(l);if(!e)return console.warn("Could not find style data in module named",l),[];if(e._styles===void 0){l=[];l.push.apply(l,_.kA(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e)));var O=e.querySelector("template");O&&l.push.apply(l,_.kA(CVx(O,e.assetpath)));e._styles=l}return e._styles};
CVx=function(l,e){if(!l._styles){for(var O=[],E=l.content.querySelectorAll("style"),J=0;J<E.length;J++){var z=E[J],M=z.getAttribute("include");M&&O.push.apply(O,_.kA(uZg(M).filter(function(Z,u,d){return d.indexOf(Z)===u})));
e&&(z.textContent=mjL(z.textContent,e));O.push(z)}l._styles=O}return l._styles};
oDg=function(l){return(l=HQ.import(l))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(l){var e=[];l=l.querySelectorAll("link[rel=import][type~=css]");for(var O=0;O<l.length;O++){var E=l[O];if(E.import){var J=E.import;if((E=E.hasAttribute("shady-unscoped"))&&!J._unscopedStyle){var z=Vpd(J);z.setAttribute("shady-unscoped","");J._unscopedStyle=z}else J._style||(J._style=Vpd(J));e.push(E?J._unscopedStyle:J._style)}}return e};
WMx=function(l){l=l.trim().split(/\s+/);for(var e="",O=0;O<l.length;O++)e+=$c2(l[O]);return e};
$c2=function(l){var e=HQ.import(l);if(e&&e._cssText===void 0){var O=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e),E=e.querySelector("template");E&&(O+=dcL(E,e.assetpath));e._cssText=O||null}e||console.warn("Could not find style data in module named",l);return e&&e._cssText||""};
dcL=function(l,e){var O="";l=CVx(l,e);for(e=0;e<l.length;e++){var E=l[e];E.parentNode&&E.parentNode.removeChild(E);O+=E.textContent}return O};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(l){var e="";l=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l);for(var O=0;O<l.length;O++)e+=l[O].textContent;return e};
cQ=function(l,e){return{index:l,removed:[],addedCount:e}};
iT2=function(l,e,O,E){var J=0,z=0,M=0,Z=0,u=Math.min(e-J,E-z);if(J==0&&z==0)a:{for(M=0;M<u;M++)if(l[M]!==O[M])break a;M=u}if(e==l.length&&E==O.length){Z=l.length;for(var d=O.length,g=0;g<u-M&&gD2(l[--Z],O[--d]);)g++;Z=g}J+=M;z+=M;e-=Z;E-=Z;if(e-J==0&&E-z==0)return[];if(J==e){for(e=cQ(J,0);z<E;)e.removed.push(O[z++]);return[e]}if(z==E)return[cQ(J,e-J)];u=J;M=z;E=E-M+1;Z=e-u+1;e=Array(E);for(d=0;d<E;d++)e[d]=Array(Z),e[d][0]=d;for(d=0;d<Z;d++)e[0][d]=d;for(d=1;d<E;d++)for(g=1;g<Z;g++)if(l[u+g-1]===
O[M+d-1])e[d][g]=e[d-1][g-1];else{var w=e[d-1][g]+1,n=e[d][g-1]+1;e[d][g]=w<n?w:n}u=e.length-1;M=e[0].length-1;E=e[u][M];for(l=[];u>0||M>0;)u==0?(l.push(2),M--):M==0?(l.push(3),u--):(Z=e[u-1][M-1],d=e[u-1][M],g=e[u][M-1],w=d<g?d<Z?d:Z:g<Z?g:Z,w==Z?(Z==E?l.push(0):(l.push(1),E=Z),u--,M--):w==d?(l.push(3),u--,E=d):(l.push(2),M--,E=g));l.reverse();e=void 0;u=[];for(M=0;M<l.length;M++)switch(l[M]){case 0:e&&(u.push(e),e=void 0);J++;z++;break;case 1:e||(e=cQ(J,0));e.addedCount++;J++;e.removed.push(O[z]);
z++;break;case 2:e||(e=cQ(J,0));e.addedCount++;J++;break;case 3:e||(e=cQ(J,0)),e.removed.push(O[z]),z++}e&&u.push(e);return u};
wiV=function(l,e){return iT2(l,l.length,e,e.length)};
gD2=function(l,e){return l===e};
nD8=function(l){if(l instanceof AM2)return l.value;throw Error("Dd`"+l);};
knT=function(l,e){for(var O in e)O===null?l.style.removeProperty(O):l.style.setProperty(O,e[O])};
IPV=function(l,e){return(l=window.getComputedStyle(l).getPropertyValue(e))?l.trim():""};
KMp=function(l){requestAnimationFrame(function(){mcT?mcT(l):(yMx||(yMx=new Promise(function(e){pix=e}),document.readyState==="complete"?pix():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&pix()})),yMx.then(function(){l&&l()}))})};
cMW=function(l){jKW=l&&l.shimcssproperties?!1:HTx||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
sKq=function(l){if(!(FMp.indexOf(l)>-1)&&l!=="touchend"&&fPt&&Rs2&&TCT)return{passive:!0}};
Ucq=function(l){for(var e=Gnp?["click"]:FMp,O=0,E;O<e.length;O++)E=e[O],l?(BCW.length=0,document.addEventListener(E,PVp,!0)):document.removeEventListener(E,PVp,!0)};
Fw=function(l){var e=l.type;return FMp.indexOf(e)>-1?e==="mousemove"?(e=l.buttons===void 0?1:l.buttons,l instanceof window.MouseEvent&&!YhA&&(e=hsp[l.which]||0),!!(e&1)):(l.button===void 0?0:l.button)===0:!1};
LMp=function(l){if(l.type==="click"){if(l.detail===0)return!0;var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;e=e.getBoundingClientRect();var O=l.pageX;l=l.pageY;return!(O>=e.left&&O<=e.right&&l>=e.top&&l<=e.bottom)}return!1};
tpg=function(l,e,O){l.movefn=e;l.upfn=O;document.addEventListener("mousemove",e);document.addEventListener("mouseup",O)};
fr=function(l){document.removeEventListener("mousemove",l.movefn);document.removeEventListener("mouseup",l.upfn);l.movefn=null;l.upfn=null};
qhx=function(l,e){for(var O=document.elementFromPoint(l,e),E=O;E&&E.shadowRoot&&!window.ShadyDOM;){var J=E;E=E.shadowRoot.elementFromPoint(l,e);if(J===E)break;E&&(O=E)}return O};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){var e=vDW(l);return e.length>0?e[0]:l.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){var e=l.type,O=l.currentTarget.__polymerGestures;if(O&&(O=O[e])){if(!l.__polymerGesturesHandled&&(l.__polymerGesturesHandled={},e.slice(0,5)==="touch")){var E=l.changedTouches[0];e==="touchstart"&&l.touches.length===1&&(NCL=E.identifier);if(NCL!==E.identifier)return;fPt||(e==="touchstart"||e==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l)}E=
l.__polymerGesturesHandled;if(!E.skip){for(var J=0,z;J<Rm.length;J++)z=Rm[J],O[z.name]&&!E[z.name]&&z.flow&&z.flow.start.indexOf(l.type)>-1&&z.reset&&z.reset();for(J=0;J<Rm.length;J++)z=Rm[J],O[z.name]&&!E[z.name]&&(E[z.name]=!0,z[e](l))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){var e=l.changedTouches[0],O=l.type;if(O==="touchstart")rMW=e.clientX,DcW=e.clientY,ShM=!1;else if(O==="touchmove"&&!ShM){ShM=!0;O="auto";for(var E=vDW(l),J=0,z;J<E.length;J++)if(z=E[J],z.__polymerGesturesTouchAction){O=z.__polymerGesturesTouchAction;break}E=!1;J=Math.abs(rMW-e.clientX);e=Math.abs(DcW-e.clientY);l.cancelable&&(O==="none"?E=!0:O==="pan-x"?E=e>J:O==="pan-y"&&(E=J>e));E?l.preventDefault():
TL("track")}};
GL=function(l,e,O){return s0[e]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,e,O),!0):!1};
BQ=function(l,e,O){return s0[e]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,e,O),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l,e,O){var E=s0[e],J=E.deps,z=E.name,M=l.__polymerGestures;M||(l.__polymerGestures=M={});for(var Z=0,u,d;Z<J.length;Z++)u=J[Z],Gnp&&FMp.indexOf(u)>-1&&u!=="click"||((d=M[u])||(M[u]=d={_count:0}),d._count===0&&l.addEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,sKq(u)),d[z]=(d[z]||0)+1,d._count=(d._count||0)+1);l.addEventListener(e,O);E.touchAction&&_.PQ(l,E.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l,e,O){var E=s0[e],J=E.deps;E=E.name;var z=l.__polymerGestures;if(z)for(var M=0,Z,u;M<J.length;M++)Z=J[M],(u=z[Z])&&u[E]&&(u[E]=(u[E]||1)-1,u._count=(u._count||1)-1,u._count===0&&l.removeEventListener(Z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,sKq(Z)));l.removeEventListener(e,O)};
QK2=function(l){Rm.push(l);for(var e=0;e<l.emits.length;e++)s0[l.emits[e]]=l};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){for(var e=0,O;e<Rm.length;e++){O=Rm[e];for(var E=0,J;E<O.emits.length;E++)if(J=O.emits[E],J===l)return O}return null};
_.PQ=function(l,e){fPt&&l instanceof HTMLElement&&U0.run(function(){l.style.touchAction=e});
l.__polymerGesturesTouchAction=e};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l,e,O){e=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});e.detail=O;(0,_.mP)(l).dispatchEvent(e);e.defaultPrevented&&(l=O.preventer||O.sourceEvent)&&l.preventDefault&&l.preventDefault()};
TL=function(l){l=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);l.info&&(l.info.prevent=!0)};
YZ=function(l,e,O,E){e&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,l,{x:O.clientX,y:O.clientY,sourceEvent:O,preventer:E,prevent:function(J){return TL(J)}})};
xcg=function(l,e,O){if(l.prevent)return!1;if(l.started)return!0;O=Math.abs(l.y-O);return Math.abs(l.x-e)>=5||O>=5};
lsL=function(l,e,O){if(e){var E=l.moves[l.moves.length-2],J=l.moves[l.moves.length-1],z=J.x-l.x,M=J.y-l.y,Z=0;if(E){var u=J.x-E.x;Z=J.y-E.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,"track",{state:l.state,x:O.clientX,y:O.clientY,dx:z,dy:M,ddx:u,ddy:Z,sourceEvent:O,hover:function(){return qhx(O.clientX,O.clientY)}})}};
OkM=function(l,e,O){var E=Math.abs(e.clientX-l.x),J=Math.abs(e.clientY-l.y),z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O||e);!z||eHu[z.localName]&&z.hasAttribute("disabled")||!(isNaN(E)||isNaN(J)||E<=25&&J<=25||LMp(e))||l.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:O})};
EJt=function(l,e,O,E,J){var z;J&&(z=typeof O==="object"&&O!==null)&&(E=l.__dataTemp[e]);E=E!==O&&(E===E||O===O);z&&E&&(l.__dataTemp[e]=O);return E};
X1A=function(){if(hP&&!Lr){if(!JeW){JeW=!0;var l=document.createElement("style");l.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(l)}return!0}return!1};
bkq=function(){return zHq};
MAt=function(l,e){zHq=l;Object.setPrototypeOf(l,e.prototype);new e;zHq=null};
VAx=function(l,e){for(var O=0;O<e.length;O++){var E=e[O];if(!!l!=!!E.__hideTemplateChildren__)if(E.nodeType===Node.TEXT_NODE)l?(E.__polymerTextContent__=E.textContent,E.textContent=""):E.textContent=E.__polymerTextContent__;else if(E.localName==="slot")if(l)E.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.mP)((0,_.mP)(E).parentNode).replaceChild(E.__polymerReplaced__,E);else{var J=E.__polymerReplaced__;J&&(0,_.mP)((0,_.mP)(J).parentNode).replaceChild(E,J)}else E.style&&(l?(E.__polymerDisplay__=
E.style.display,E.style.display="none"):E.style.display=E.__polymerDisplay__);E.__hideTemplateChildren__=l;E._showHideChildren&&E._showHideChildren(l)}};
Zkg=function(l){return(l=l.__dataHost)&&l._methodHost||l};
oJM=function(l,e,O){var E=O.mutableData?uLV:tP;qY.mixin&&(E=qY.mixin(E));var J=function(){return E.apply(this,arguments)||this};
_.m(J,E);J.prototype.__templatizeOptions=O;J.prototype._bindTemplate(l);C3T(J,l,e,O);return J};
ikx=function(l,e,O,E){var J=O.forwardHostProp;if(J&&e.hasHostProps){var z=l.localName=="template",M=e.templatizeTemplateClass;if(!M){if(z){var Z=O.mutableData?$sd:WIt;M=function(){return Z.apply(this,arguments)||this};
_.m(M,Z);M=e.templatizeTemplateClass=M}else{var u=l.constructor;M=function(){return u.apply(this,arguments)||this};
_.m(M,u);M=e.templatizeTemplateClass=M}var d=e.hostProps,g;for(g in d)M.prototype._addPropertyEffect("_host_"+g,M.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:ds8(J)}),M.prototype._createNotifyingProperty("_host_"+g);vQ&&E&&gJW(e,O,E)}l.__dataProto&&Object.assign(l.__data,l.__dataProto);if(z)MAt(l,M),l.__dataTemp={},l.__dataPending=null,l.__dataOld=null,l._enableProperties();else{Object.setPrototypeOf(l,M.prototype);e=e.hostProps;for(var w in e)w="_host_"+w,w in l&&(e=l[w],delete l[w],l.__data[w]=
e)}}};
ds8=function(l){return function(e,O,E){l.call(e.__templatizeOwner,O.substring(6),E[O])}};
C3T=function(l,e,O,E){var J=O.hostProps||{},z;for(z in E.instanceProps){delete J[z];var M=E.notifyInstanceProp;M&&l.prototype._addPropertyEffect(z,l.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:w1x(M)})}if(E.forwardHostProp&&e.__dataHost)for(var Z in J)O.hasHostProps||(O.hasHostProps=!0),l.prototype._addPropertyEffect(Z,l.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:AeL()})};
w1x=function(l){return function(e,O,E){l.call(e.__templatizeOwner,e,O,E[O])}};
AeL=function(){return function(l,e,O){l.__dataHost._setPendingPropertyOrPath("_host_"+e,O[e],!0,!0)}};
qY=function(l,e,O){if(NY&&!Zkg(l))throw Error("Jd");O=O||{};if(l.__templatizeOwner)throw Error("Kd");l.__templatizeOwner=e;var E=(e?e.constructor:tP)._parseTemplate(l),J=E.templatizeInstanceClass;J||(J=oJM(l,E,O),E.templatizeInstanceClass=J);var z=Zkg(l);ikx(l,E,O,z);O=function(){return J.apply(this,arguments)||this};
_.m(O,J);O.prototype._methodHost=z;O.prototype.__dataHost=l;O.prototype.__templatizeOwner=e;O.prototype.__hostProps=E.hostProps;return O};
gJW=function(l,e,O){O=O.constructor._properties;l=l.propertyEffects;e=e.instanceProps;for(var E in l)if(!(O[E]||e&&e[E]))for(var J=l[E],z=0;z<J.length;z++){var M=J[z].info.part;if(!M.signature||!M.signature.static){console.warn("Property '"+E+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
nJq=function(l,e){for(var O;e;)if(O=e.__dataHost?e:e.__templatizeInstance)if(O.__dataHost!=l)e=O.__dataHost;else return O;else e=(0,_.mP)(e).parentNode;return null};
D8=function(l){return l.localName==="slot"};
asx=function(){for(var l=S4.prototype,e="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),O={},E=0;E<e.length;O={method$jscomp$30:void 0},E++)O.method$jscomp$30=e[E],l[O.method$jscomp$30]=function(J){return function(){return this.node[J.method$jscomp$30].apply(this.node,arguments)}}(O)};
kK2=function(l,e){for(var O={},E=0;E<e.length;O={name$jscomp$380:void 0},E++)O.name$jscomp$380=e[E],Object.defineProperty(l,O.name$jscomp$380,{get:function(J){return function(){return this.node[J.name$jscomp$380]}}(O),
configurable:!0})};
IsT=function(){for(var l=S4.prototype,e=["textContent","innerHTML","className"],O={},E=0;E<e.length;O={name$jscomp$381:void 0},E++)O.name$jscomp$381=e[E],Object.defineProperty(l,O.name$jscomp$381,{get:function(J){return function(){return this.node[J.name$jscomp$381]}}(O),
set:function(J){return function(z){this.node[J.name$jscomp$381]=z}}(O),
configurable:!0})};
msx=function(){QR=document.documentElement.getAttribute("dir");QR=document.documentElement.getAttribute("dir");for(var l=0;l<xZ.length;l++){var e=xZ[l];e.__autoDirOptOut||e.setAttribute("dir",QR)}};
j9d=function(){le=!0;requestAnimationFrame(function(){le=!1;yeq(p1A);setTimeout(function(){for(var l=0,e=eH.length;l<e;l++)KIW(eH.shift())})})};
yeq=function(l){for(;l.length;)KIW(l.shift())};
KIW=function(l){var e=l[0],O=l[1];l=l[2];try{O.apply(e,l)}catch(E){setTimeout(function(){throw E;})}};
_.Hkd=function(l,e,O){le||j9d();p1A.push([l,e,O])};
_.OK=function(l,e,O){le||j9d();eH.push([l,e,O])};
fsp=function(l,e){e=e===void 0?!1:e;if(!ceg||!FIW||!ceg.handlesDynamicScoping)return null;var O=FIW.ScopingShim;if(!O)return null;var E=O.scopeForNode(l),J=(0,_.mP)(l).getRootNode(),z=function(M){if((0,_.mP)(M).getRootNode()===J){var Z=Array.from(ceg.nativeMethods.querySelectorAll.call(M,"*"));Z.push(M);for(M=0;M<Z.length;M++){var u=Z[M];if((0,_.mP)(u).getRootNode()===J){var d=O.currentScopeForNode(u);d!==E&&(d!==""&&O.unscopeNode(u,d),O.scopeNode(u,E))}}}};
z(l);return e?(e=new MutationObserver(function(M){for(var Z=0;Z<M.length;Z++)for(var u=M[Z],d=0;d<u.addedNodes.length;d++){var g=u.addedNodes[d];g.nodeType===Node.ELEMENT_NODE&&z(g)}}),e.observe(l,{childList:!0,
subtree:!0}),e):null};
RHq=function(){document.body.removeAttribute("unresolved")};
P3W=function(l){var e=l=l.replace(T$g,"").replace(s9d,""),O=new GKL;O.start=0;O.end=e.length;for(var E=O,J=0,z=e.length;J<z;J++)if(e[J]==="{"){E.rules||(E.rules=[]);var M=E,Z=M.rules[M.rules.length-1]||null;E=new GKL;E.start=J+1;E.parent=M;E.previous=Z;M.rules.push(E)}else e[J]==="}"&&(E.end=J+1,E=E.parent||O);return B$2(O,l)};
B$2=function(l,e){var O=e.substring(l.start,l.end-1);l.parsedCssText=l.cssText=O.trim();l.parent&&(O=e.substring(l.previous?l.previous.end:l.parent.start,l.start-1),O=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(O),O=O.replace(Usx," "),O=O.substring(O.lastIndexOf(";")+1),O=l.parsedSelector=l.selector=O.trim(),l.atRule=O.indexOf("@")===0,l.atRule?O.indexOf("@media")===0?l.type=4:O.match(Y6V)&&(l.type=7,l.keyframesName=l.selector.split(Usx).pop()):O.indexOf("--")===
0?l.type=1E3:l.type=1);if(O=l.rules)for(var E=0,J=O.length,z=void 0;E<J&&(z=O[E]);E++)B$2(z,e);return l};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(l){return l.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],O=6-e.length;O--;)e="0"+e;return"\\"+e})};
hHx=function(l,e,O){O=O===void 0?"":O;var E="";if(l.cssText||l.rules){var J=l.rules;if(J&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(J))for(var z=0,M=J.length,Z=void 0;z<M&&(Z=J[z]);z++)E=hHx(Z,e,E);else e?e=l.cssText:(e=l.cssText,e=e.replace(LId,"").replace(tAd,""),e=e.replace(q62,"").replace(vJd,"")),(E=e.trim())&&(E="  "+E+"\n")}E&&(l.selector&&(O+=l.selector+" {\n"),O+=E,l.selector&&(O+="}\n\n"));return O};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(l){l=l[0];return!!l&&!!l.selector&&l.selector.indexOf("--")===0};
rex=function(l){if(l=N$p[l])l._applyShimCurrentVersion=l._applyShimCurrentVersion||0,l._applyShimValidatingVersion=l._applyShimValidatingVersion||0,l._applyShimNextVersion=(l._applyShimNextVersion||0)+1};
Ds8=function(l){return l._applyShimCurrentVersion===l._applyShimNextVersion};
Q9g=function(l){l._applyShimValidatingVersion=l._applyShimNextVersion;l._validating||(l._validating=!0,S6M.then(function(){l._applyShimCurrentVersion=l._applyShimNextVersion;l._validating=!1}))};
lLu=function(l){if(!l)return"";typeof l==="string"&&(l=P3W(l));return hHx(l,xsu)};
ehA=function(l){!l.__cssRules&&l.textContent&&(l.__cssRules=P3W(l.textContent));return l.__cssRules||null};
Exq=function(l,e,O,E){if(l){var J=!1,z=l.type;if(E&&z===4){var M=l.selector.match(ONM);M&&(window.matchMedia(M[1]).matches||(J=!0))}z===1?e(l):O&&z===7?O(l):z===1E3&&(J=!0);if((l=l.rules)&&!J)for(J=0,z=l.length,M=void 0;J<z&&(M=l[J]);J++)Exq(M,e,O,E)}};
Jcg=function(l,e){var O=l.indexOf("var(");if(O===-1)return e(l,"","","");a:{var E=0;var J=O+3;for(var z=l.length;J<z;J++)if(l[J]==="(")E++;else if(l[J]===")"&&--E===0)break a;J=-1}E=l.substring(O+4,J);O=l.substring(0,O);l=Jcg(l.substring(J+1),e);z=E.indexOf(",");if(z===-1)return e(O,E.trim(),"",l);J=E.substring(0,z).trim();E=E.substring(z+1).trim();return e(O,J,E,l)};
Xnd=function(l){if(EK!==void 0)return EK;if(l.__cssBuild===void 0){var e=l.getAttribute("css-build");if(e)l.__cssBuild=e;else{a:{e=l.localName==="template"?l.content.firstChild:l.firstChild;if(e instanceof Comment&&(e=e.textContent.trim().split(":"),e[0]==="css-build")){e=e[1];break a}e=""}if(e!==""){var O=l.localName==="template"?l.content.firstChild:l.firstChild;O.parentNode.removeChild(O)}l.__cssBuild=e}}return l.__cssBuild||""};
bNM=function(l,e,O,E){for(var J=e._noAccessors,z=Object.getOwnPropertyNames(e),M=0;M<z.length;M++){var Z=z[M];if(!(Z in E))if(J)l[Z]=e[Z];else{var u=Object.getOwnPropertyDescriptor(e,Z);u&&(u.configurable=!0,Object.defineProperty(l,Z,u))}}for(var d in zhq)e[d]&&(O[d]=O[d]||[],O[d].push(e[d]))};
Md8=function(l,e,O){e=e||[];for(var E=l.length-1;E>=0;E--){var J=l[E];J?Array.isArray(J)?Md8(J,e):e.indexOf(J)<0&&(!O||O.indexOf(J)<0)&&e.unshift(J):console.warn("behavior is null, check for missing or 404 import")}return e};
VdL=function(l,e){for(var O in e){var E=l[O],J=e[O];l[O]=!("value"in J)&&E&&"value"in E?Object.assign({value:E.value},J):J}};
CYq=function(l,e,O){var E={},J=function(){return e.apply(this,arguments)||this};
_.m(J,e);J._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(M)for(var u=0,d;u<M.length;u++)d=M[u],d.properties&&this.createProperties(d.properties),d.observers&&this.createObservers(d.observers,d.properties);l.properties&&this.createProperties(l.properties);l.observers&&this.createObservers(l.observers,l.properties);this._prepareTemplate()}else e._finalizeClass.call(this)};
J.prototype.created=function(){e.prototype.created.call(this);var u=E.created;if(u)for(var d=0;d<u.length;d++)u[d].call(this)};
J.prototype._registered=function(){var u=J.prototype;if(!u.hasOwnProperty("__hasRegisterFinished")){u.__hasRegisterFinished=!0;e.prototype._registered.call(this);hP&&Z(u);u=Object.getPrototypeOf(this);var d=E.beforeRegister;if(d)for(var g=0;g<d.length;g++)d[g].call(u);if(d=E.registered)for(g=0;g<d.length;g++)d[g].call(u)}};
J.prototype._applyListeners=function(){e.prototype._applyListeners.call(this);var u=E.listeners;if(u)for(var d=0;d<u.length;d++){var g=u[d];if(g)for(var w in g)this._addMethodEventListenerToNode(this,w,g[w])}};
J.prototype._ensureAttributes=function(){var u=E.hostAttributes;if(u)for(var d=u.length-1;d>=0;d--){var g=u[d],w;for(w in g)this._ensureAttribute(w,g[w])}e.prototype._ensureAttributes.call(this)};
J.prototype.ready=function(){e.prototype.ready.call(this);var u=E.ready;if(u)for(var d=0;d<u.length;d++)u[d].call(this)};
J.prototype.attached=function(){e.prototype.attached.call(this);var u=E.attached;if(u)for(var d=0;d<u.length;d++)u[d].call(this)};
J.prototype.detached=function(){e.prototype.detached.call(this);var u=E.detached;if(u)for(var d=0;d<u.length;d++)u[d].call(this)};
J.prototype.attributeChanged=function(u,d,g){e.prototype.attributeChanged.call(this);var w=E.attributeChanged;if(w)for(var n=0;n<w.length;n++)w[n].call(this,u,d,g)};
_.Ji.Object.defineProperties(J,{properties:{configurable:!0,enumerable:!0,get:function(){var u={};if(M)for(var d=0;d<M.length;d++)VdL(u,M[d].properties);VdL(u,l.properties);return u}},
observers:{configurable:!0,enumerable:!0,get:function(){var u=[];if(M)for(var d=0,g;d<M.length;d++)g=M[d],g.observers&&(u=u.concat(g.observers));l.observers&&(u=u.concat(l.observers));return u}}});
if(O){Array.isArray(O)||(O=[O]);var z=e.prototype.behaviors;var M=Md8(O,null,z);J.prototype.behaviors=z?z.concat(O):M}var Z=function(u){if(M)for(var d=M,g=0;g<d.length;g++)bNM(u,d[g],E,ZNM);bNM(u,l,E,ui8)};
hP||Z(J.prototype);J.generatedFrom=l;return J};
dJM=function(l){var e=typeof l!=="string"?l:{is:l,notifyObserversOnUndefined:!0};e.fastInit===void 0&&(e.fastInit=!0);return function(O){if(!e.disableInheritanceCheck&&Object.getPrototypeOf(O.prototype).constructor!==_.Xc)throw Error("Od");var E=O.prototype;E.is=e.is;AmL(E,"created",function(){this.hostElement=this;this.polymerController=this});
oxu(E,O,e.fastInit);e.notifyObserversOnUndefined&&(E._overrideLegacyUndefined=!0);if($Jq)for(var J=_.b(Object.getOwnPropertyNames(E)),z=J.next();!z.done;z=J.next()){z=z.value;var M=Object.getOwnPropertyDescriptor(E,z);M.enumerable===!1&&(M.enumerable=!0,Object.defineProperty(E,z,M))}if("template"in O)var Z=function(){return O.template};
else e.template!==void 0&&(Z=e.template);if(Z!==void 0){var u;Object.defineProperty(E,"_template",{get:function(){u===void 0&&(u=Z());return u},
set:function(d){u=d},
configurable:!0,enumerable:!0})}Polymer(E);O[WCW]=E}};
gxL=function(l){l=l===void 0?{}:l;l.fastInit===void 0&&(l.fastInit=!0);return function(e){if(!l.disableInheritanceCheck&&Object.getPrototypeOf(e.prototype).constructor!==zz)throw Error("Pd");oxu(e.prototype,e,l.fastInit)}};
oxu=function(l,e,O){O=O===void 0?!1:O;iN2(e);O?AmL(l,"created",function(){this.disableEnforceFastDefaultValuesCheck||wnV(e,this)}):AmL(l,"ready",function(){for(var E={},J=_.b(n7x(this.behaviors)),z=J.next();!z.done;z=J.next())z=z.value,z.properties&&Object.assign(E,Acx(this,z.properties));
Object.assign(E,Acx(this,this.properties));wnV(e,this);J=_.b(Object.keys(E));for(z=J.next();!z.done;z=J.next())z=z.value,this[z]=E[z]})};
wnV=function(l,e){if($Jq){l=new l;for(var O=_.b(Object.getOwnPropertyNames(l)),E=O.next();!E.done;E=O.next())E=E.value,e[E]=l[E];for(O=e;O&&O!==Object.prototype;O=Object.getPrototypeOf(O)){E=_.b(Object.getOwnPropertyNames(O));for(var J=E.next();!J.done;J=E.next())J=J.value,l.hasOwnProperty(J)||Object.defineProperty(l,J,nxA(e,J))}}else l.apply(e)};
nxA=function(l,e){return{get:function(){var O=l[e];return O instanceof Function?O.bind(l):O},
set:function(O){l[e]=O}}};
Acx=function(l,e){if(!e)return{};for(var O={},E=_.b(Object.keys(e)),J=E.next();!J.done;J=E.next())if(J=J.value,!e[J].readOnly){var z=l[J];z!==void 0&&(O[J]=z)}return O};
iN2=function(l){var e=new l;l=l.prototype.properties||{};for(var O=_.b(Object.keys(l)),E=O.next();!E.done;E=O.next())if(E=E.value,e.hasOwnProperty(E)){var J=l[E];typeof J==="function"&&(l[E]=J={type:J});e[E]!=null&&J.type===Object&&(J.type=aLx(e[E].constructor))}};
aLx=function(l){for(var e=_.b(kip),O=e.next();!O.done;O=e.next())if(O=O.value,l===O)return O;return Object};
ILA=function(l){return function(e,O){e.behaviors=e.behaviors||[];e.behaviors.push(l||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",e,O).prototype:void 0));Object.defineProperty(e,O,{get:function(){return this},
enumerable:!0,configurable:!0})}};
mJg=function(l){l=l===void 0?{}:l;return function(e,O){e.properties=e.properties||{};l.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?l.type=aLx(Reflect.getMetadata("design:type",e,O)):l.type=String);var E=l,J=e.properties[O];e.properties[O]=J?Object.assign({},J,E):E}};
ycV=function(l){return function(e,O){e.listeners=e.listeners||{};e.listeners[l]=O}};
pn2=function(){var l=_.ke.apply(0,arguments);if(l.length===0)throw Error("Qd");return function(e,O){e.observers=e.observers||[];e.observers.push(O+"("+l.join(",")+")")}};
KCW=function(){var l=_.ke.apply(0,arguments);return function(e,O,E){var J=Object.getOwnPropertyDescriptor(e,O).get,z="__compute__"+O;Object.defineProperty(e,z,{value:J,enumerable:!0});e.properties=e.properties||{};J=e.properties[O];J||(J={},e.properties[O]=J);J.computed=z+"("+l.join(",")+")";E.get=void 0}};
_.be=function(l,e,O){_.y6.call(this);this.JSC$9254_id_=null;this.usingListeners_=!1;this.JSC$9254_listener_=l;this.handler_=O;this.JSC$9254_win_=e||window;this.callback_=(0,_.pb)(this.JSC$9256_doAction_,this)};
Md=function(l){this.range_=l};
Vf=function(l){this.range_=l};
C_=function(l,e,O){_.y6.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=l;this.scrollTimer_=new _.Zp(50);this.JSC$9333_eventHandler_=new _.ue(this);this.scrollDelta_=new _.KF;this.containerIsActuallyContent_=l.tagName==="BODY"||l.tagName==="HTML";this.containerBounds_=j2x(l);this.containerIsActuallyContent_&&(l=_.CF(),this.containerBounds_.height=l.height,this.containerBounds_.width=l.width);this.margin_=e||0;if(e){if(e=this.containerBounds_.clone(),l=this.margin_){var E=
Math.min(l,e.height*.25);e.top+=E;e.height-=2*E;l=Math.min(l,e.width*.25);e.left+=l;e.width-=2*l}}else e=this.containerBounds_;this.scrollBounds_=e;O||this.JSC$9333_eventHandler_.listen(_.HR(this.containerNode_),"mousemove",this.JSC$9335_onMouseMove);this.JSC$9333_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9335_onTick_)};
_.oc=function(l){this.mechanism=l};
$v=function(l,e){this.JSC$9431_key_=l;this.JSC$9431_value_=e};
ccx=function(l){if(l>=55296&&l<=57343||l>1114111)return"\ufffd";l in HNx&&(l=HNx[l]);var e="";l>65535&&(l-=65536,e+=String.fromCharCode(l>>>10&1023|55296),l=56320|l&1023);return e+=String.fromCharCode(l)};
FCA=function(l,e){return l<e?1:-1};
Rht=function(){return function(l){return l.charAt(1)==="#"?l.charAt(2)==="X"||l.charAt(2)==="x"?ccx(parseInt(l.substr(3),16)):ccx(parseInt(l.substr(2),10)):fLt[l.slice(1,-1)]}};
Git=function(l){return l.slice(1,l.length-1).trim().replace(Td8,function(e){return s2p[e]||" "})};
W9=function(l){return l===32||l===9};
dv=function(l,e){return e<l.length?l.charCodeAt(e):-1};
BdL=function(l){for(;l;){if(l._lastLineBlank)return!0;var e=l.type;if(e==="list"||e==="item")l=l._lastChild;else break}return!1};
gv=function(l){if(PYM.test(l)){var e=1,O=0,E=0;for(l[O]=="|"&&O++;O<l.length;){switch(l[O]){case "|":E=1;break;case " ":break;case "\t":break;default:E&&(E=0,e++)}O++}return UJA.test(l)?-e:e}return 0};
YU8=function(l){return l=="table"||l=="row"||l=="cell"};
hhg=function(){return new ie("document",[[1,1],[0,0]])};
LCp=function(){};
wv=function(){var l={safe:!1};l=l||{};l.softbreak=l.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=l};
rcV=function(l,e){var O="";if(l)if(l=l.toLowerCase(),l===" "||td8.test(l))O="space";else if(qU2.test(l))O="esc";else if(l.length==1){if(!e||vx2.test(l))O=l}else O=Ndx.test(l)?l.replace("arrow",""):l=="multiply"?"*":l;return O};
xJg=function(l,e){var O=l.hasModifiers;if(e.key)O=rcV(e.key,O);else if(e.detail&&e.detail.key)O=rcV(e.detail.key,O);else{O=e.keyIdentifier;var E="";O&&(O in DJp?E=DJp[O]:SUd.test(O)?(O=parseInt(O.replace("U+","0x"),16),E=String.fromCharCode(O).toLowerCase()):E=O.toLowerCase());(O=E)||(O=e.keyCode,E="",Number(O)&&(O>=65&&O<=90?E=String.fromCharCode(32+O):O>=112&&O<=123?E="f"+(O-112+1):O>=48&&O<=57?E=String(O-48):O>=96&&O<=105?E=String(O-96):E=Q2q[O]),O=E);O=O||""}return O===l.key&&(!l.hasModifiers||
!!e.shiftKey===!!l.shiftKey&&!!e.ctrlKey===!!l.ctrlKey&&!!e.altKey===!!l.altKey&&!!e.metaKey===!!l.metaKey)};
e1d=function(l){return l.length===1?{combo:l,key:l,event:"keydown"}:l.split("+").reduce(function(e,O){var E=O.split(":");O=E[0];E=E[1];O in lZq?(e[lZq[O]]=!0,e.hasModifiers=!0):(e.key=O,e.event=E||"keydown");return e},{combo:l.split(":").shift()})};
O2L=function(l){return l.trim().split(" ").map(function(e){return e1d(e)})};
Eht=function(l,e){if(l&&l.fn){var O=l.fn;l.fn=function(){try{O.apply(this,arguments)}catch(E){if(E instanceof Ai)console.warn("Argument '"+E.arg+"'"+(e?" for method '"+e+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw E;}}}return l};
JZT=function(){var l=_.ke.apply(0,arguments);return l.length===0?function(e){return e}:l.length===1?l[0]:l.reduce(function(e,O){return function(){return e(O.apply(null,_.kA(_.ke.apply(0,arguments))))}})};
XW8=function(){var l=_.ke.apply(0,arguments);return function(e){return function(O,E){O=e(O,E);var J=function(){throw Error("Ae");},z={getState:O.getState,
dispatch:function(M){return J.apply(null,[M].concat(_.kA(_.ke.apply(1,arguments))))}};
E=l.map(function(M){return M(z)});
J=JZT.apply(null,_.kA(E))(O.dispatch);return Object.assign({},O,{dispatch:J})}}};
MRL=function(l){Object.keys(l).forEach(function(e){var O=l[e];if(typeof O(void 0,{type:z1L})==="undefined")throw Error("Be`"+e);if(typeof O(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+b2q()})==="undefined")throw Error("Ce`"+e+"`"+z1L);})};
n_=function(l){for(var e=Object.keys(l),O={},E=0;E<e.length;E++){var J=e[E];typeof l[J]==="function"&&(O[J]=l[J])}var z=Object.keys(O);try{MRL(O)}catch(Z){var M=Z}return function(Z,u){Z=Z===void 0?{}:Z;if(M)throw M;for(var d=!1,g={},w=0;w<z.length;w++){var n=z[w],k=Z[n],y=(0,O[n])(k,u);if(typeof y==="undefined")throw Z=u&&u.type,Error("De`"+(Z?'"'+String(Z)+'"':"(unknown type)")+"`"+n);g[n]=y;d=d||y!==k}return(d=d||z.length!==Object.keys(Z).length)?g:Z}};
VR8=function(l,e,O){function E(){if(g)throw Error("Ee");return Z}
function J(k){if(typeof k!=="function")throw Error("Fe`"+typeof k);if(g)throw Error("Ge");var y=!0;d===u&&(d=u.slice());d.push(k);return function(){if(y){if(g)throw Error("He");y=!1;d===u&&(d=u.slice());var c=d.indexOf(k);d.splice(c,1);u=null}}}
function z(k){if(typeof k!=="object"||k===null)var y=!1;else{for(y=k;Object.getPrototypeOf(y)!==null;)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(k)===y}if(!y)throw Error("Ie`"+typeof k);if(typeof k.type==="undefined")throw Error("Je");if(g)throw Error("Ke");try{g=!0,Z=M(Z,k)}finally{g=!1}y=u=d;for(var c=0;c<y.length;c++)(0,y[c])();return k}
if(typeof e==="function"&&typeof O==="function"||typeof O==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof e==="function"&&typeof O==="undefined"&&(O=e,e=void 0);if(typeof O!=="undefined"){if(typeof O!=="function")throw Error("Me`"+typeof O);return O(VR8)(l,e)}if(typeof l!=="function")throw Error("Ne`"+typeof l);var M=l,Z=e,u=[],d=u,g=!1;z({type:z1L});var w={},n=(w.dispatch=z,w.subscribe=J,w.getState=E,w.replaceReducer=function(k){if(typeof k!=="function")throw Error("Oe`"+
typeof k);M=k;z({type:Z2p});return n},w[u4g]=function(){var k={};
return k.subscribe=function(y){function c(){y.next&&y.next(E())}
if(typeof y!=="object"||y===null)throw new TypeError("Pe`"+typeof y);c();return{unsubscribe:J(c)}},k[u4g]=function(){return this},k},w);
return n};
Cv2=function(l){function e(){J&&(J=!1,l());z&&E()}
function O(){requestAnimationFrame(e)}
function E(){var Z=Date.now();if(J){if(Z-M<2)return;z=!0}else J=!0,z=!1,setTimeout(O,20);M=Z}
var J=!1,z=!1,M=0;return E};
ac=function(l){return typeof l==="number"?l:parseFloat(l)||0};
ohg=function(l){return _.ke.apply(1,arguments).reduce(function(e,O){return e+ac(l["border-"+O+"-width"])},0)};
_.p=function(l,e){e=jv(KU(e));l.innerHTML=e};
d38=function(l){var e=$32;e||(e=Wy8(),e=$32=_.mm.transpose(e));e=e[l];return typeof e==="string"?e:_.kv(l)};
ghx=function(l){l=String(l).toLowerCase();var e=Wy8()[l];return typeof e==="string"?e:_.Ic(l)};
i2u=function(l){l=l.toLowerCase();l=Wy8()[l];return typeof l==="string"?l:null};
Wy8=function(){if(!wW8){for(var l=Object.assign({},AZx),e=_.b(nhM),O=e.next();!O.done;O=e.next())O=O.value,l[O.toLowerCase()]=O;wW8=l}return wW8};
IZg=function(l,e){var O=window.customElements;return O&&O.get(l)||aZ2[l]===!0?2:e.name==="HTMLUnknownElement"?1:e.name==="HTMLElement"&&k8A.test(l)?3:0};
pWt=function(l,e){switch(e){case "innerHTML":return m3p(l)===1?2:null;case "textContent":return l=m3p(l),l===1||l===6?1:null;default:var O,E;return(E=(O=yZu[l.localName])==null?void 0:O[e])!=null?E:null}};
m3p=function(l){var e=l.localName,O=IZg(e,l.constructor);switch(O){case 0:case 1:return KyT(e,l);case 3:case 2:return 1;default:_.VC(O,"got an unknown element classification")}};
KyT=function(l,e){var O=Object.hasOwnProperty.call(j_M,l)?j_M[l]:null;return O!==null?O:Object.hasOwnProperty.call(H2T,l)&&e instanceof SVGElement?H2T[l]:null};
cZx=function(l,e){return e};
fZg=function(l){return(l=l.split(Fyu,2))?{url:l[0],metadata:l[1]}:null};
TsL=function(l){var e=String(l.url).replace(R1x,encodeURIComponent);if(l=l.metadata){R1x.lastIndex=0;if(R1x.test(l))return null;e+=" "+l}return e};
Pvt=function(l){function e(d){var g=d.localName;if(!d.getAttribute("is")&&IZg(g,d.constructor)===2){var w;return(w=u)!=null?w:u=document.createElement("polyresinuncustomized")}(d=Z[g])||(d=Z[g]=document.createElement(g));return d}
var O=l.reportHandler||void 0,E=l.safeTypesBridge||s_V,J=/^$/;if(l=l.allowedIdentifierPrefixes){l=_.b(l);for(var z=l.next();!z.done;z=l.next())J=new RegExp(J.source+"|^"+_.G8u(z.value))}O&&O(!1,"initResin",null);var M=BsL(J,E,O),Z={},u=null;return function(d,g,w){var n=d.nodeType;if(n!==Node.ELEMENT_NODE){if(n===Node.TEXT_NODE){g=d.parentElement;w=!g;if(g&&g.nodeType===Node.ELEMENT_NODE){n=g.localName;var k=IZg(n,g.constructor);switch(k){case 0:case 1:g=KyT(n,g);w=g===1||g===6;break;case 3:case 2:w=
!0;break;default:_.VC(k,"got an unknown element classification")}}if(w)return function(P){return""+E(P,"STRING",P)}}return function(P){if(!P&&P!==document.all)return P;
O&&O(!0,"Failed to sanitize "+(d.parentElement&&d.parentElement.nodeName)+" #text node to value "+P,d.parentElement);return mu}}var y=d.localName;
n=e(d);var c=null;switch(w){case "attribute":if(ghx(g)in n)break;return function(P){return P};
case "property":if(g in n){c=pWt(n,g);break}if((k=i2u(g))&&k in n)break;return function(P){return P};
default:_.VC(w,"got an unknown resin type, expected either 'property' or 'attribute'")}var f=w==="attribute"?g.toLowerCase():d38(g);c||(c=bu8(y,f,function(P){var h=d.getAttribute(P);return!h||/[\[\{]/.test(P)?null:h}));
return function(P){var h=yf,N=null;if(!P&&P!==document.all)return P;if(c!=null){var t=M[c],r=t.safeType;N=t.safeReplacement;r&&(h=E(P,r,yf));h===yf&&(t.filterString?(h=String(E(P,"STRING",P)),h=t.filterString(y,f,h)):t.filterRaw&&(h=t.filterRaw(y,f,P,d)),h===N&&(h=yf))}h===yf&&(h=N||mu,O&&O(!0,"Failed to sanitize attribute of <"+y+">: <"+y+" "+f+'="'+P+'">',d));return h}}};
BsL=function(l,e,O){return[,{filterRaw:function(E,J,z){return z},
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:U3L,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:U3L,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:mu,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:Y9x,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(E,J,z){z=
String(z).toLowerCase();return ZuL(E,J,z)?z:mu},
safeReplacement:mu,safeType:void 0},,{filterRaw:void 0,filterString:function(E,J,z){return l.test(z)?z:mu},
safeReplacement:mu,safeType:"CONSTANT"},{filterRaw:function(E,J,z,M){if(typeof z==="string")var Z=(Z=z.match(h12))?Z.map(fZg).filter(Boolean):[];else if(Array.isArray(z))Z=z;else return U3L;var u=Z;Z=[];var d=[],g={};if(Array.isArray(u))for(var w=0,n=u.length;w<n;++w){var k=u[w],y=k&&k.url;if(y){var c=e(y,"URL",g);if(c){var f=c!==g;(f?Z:d).push({url:f?c:y,metadata:k.metadata})}}}else d.push(u);u=d.length?JSON.stringify(d):null;d=yf;if(Z.length){if(!Array.isArray(Z))throw Error();d=Z.map(TsL).filter(Boolean).join(" , ")||
yf}u&&O&&O(!0,"Failed to sanitize attribute value of <"+E+">: <"+E+" "+J+'="'+z+'">: '+u,M);return d===yf?U3L:d},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Lyq=function(l){var e=Pvt(l);return function(O,E,J,z){return z||z===document.all?e(O,E,J)(z):z}};
p_=function(l,e){function O(){function J(Z,u,d){for(u=Reflect.getMetadata("parameters",Z)||[];u.length<=d;)u.push(null);u[d]=u[d]||[];u[d].push(M);Reflect.defineMetadata(u,Z);return Z}
var z=_.ke.apply(0,arguments);if(this instanceof O)return E.apply(this,z),this;var M=new (Function.prototype.bind.apply(O,[null].concat(_.kA(z))));J.annotation=M;return J}
var E=tRg(e);O.prototype.toString=function(){return"@"+l};
return O.annotationCls=O};
tRg=function(l){return function(){var e=_.ke.apply(0,arguments),O=this;l.forEach(function(E,J){J=e[J];if(Array.isArray(E))O[E[0]]=J&&J!==void 0?J:E[1];else for(var z in E)O[z]=J&&J[z]!==void 0?J[z]:E[z]})}};
q9W=function(l){return l!==void 0&&l!==null};
K_=function(l){if(typeof l==="string")return l;if(l===void 0||l===null)return""+l;if(l.overriddenName)return l.overriddenName;if(l.name)return l.name;l=l.toString();var e=l.indexOf("\n");return e===-1?l:l.substring(0,e)};
vhg=function(l){l.__forward_ref__=vhg;l.toString=function(){return K_(this())};
return l};
jH=function(l){return typeof l==="function"&&l.hasOwnProperty("__forward_ref__")&&l.__forward_ref__===vhg?l():l};
Nsg=function(l){return l?l.map(function(e){return new (Function.prototype.bind.apply(e.type.annotationCls,[null].concat(_.kA(e.args?e.args:[]))))}):[]};
rZu=function(l){for(var e=[],O=0;O<l.length;++O){if(e.indexOf(l[O])>-1){e.push(l[O]);break}e.push(l[O])}return e};
D3W=function(l){return l.length>1?" ("+rZu(l.slice().reverse()).map(function(e){return K_(e.token)}).join(" -> ")+")":""};
Q_W=function(l,e,O,E){if(E){var J=Error("We``"+(E instanceof Error?E.message:E));J.ngOriginalError=E}else J=Error();J.addKey=S9g;J.keys=[e];J.injectors=[l];J.constructResolvingMessage=O;J.message=J.constructResolvingMessage();J.ngOriginalError=E;return J};
S9g=function(l,e){this.injectors.push(l);this.keys.push(e);this.message=this.constructResolvingMessage()};
x3g=function(l,e){return Q_W(l,e,function(){return"No provider for "+K_(this.keys[0].token)+"!"+D3W(this.keys)})};
lmM=function(l,e){return Q_W(l,e,function(){return"Cannot instantiate cyclic dependency!"+D3W(this.keys)})};
e9L=function(l,e,O){return Q_W(l,O,function(){var E=K_(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+E+"!"+D3W(this.keys)+"."},e)};
O3t=function(l,e){for(var O=[],E=0,J=e.length;E<J;E++){var z=e[E];z&&z.length!=0?O.push(z.map(K_).join(" ")):O.push("?")}return Error("$e`"+K_(l)+"`"+O.join(", ")+"`"+K_(l))};
Z3q=function(l){var e=void 0,O=void 0;if(l&&l.useClass!==void 0){e=l.useClass;var E=jH(l.useClass);var J=EMt.factory(E);E=Jrp(E)}else l&&l.useExisting!==void 0?(J=function(z){return z},E=[XYu(H9.get(jH(l.useExisting)))]):l&&l.useFactory!==void 0?(J=l.useFactory,E=z9u(l.useFactory,l.deps)):(O=l.useValue,J=function(){return l.useValue},E=b3t);
return new Va2(J,E,e,O)};
CQd=function(l){return new uD2(H9.get(jH(l.provide)),[Z3q(l)],l.multi)};
$Cq=function(l){l=oMu(l,[]).map(CQd);for(var e=new Map,O=0;O<l.length;O++){var E=l[O],J=e.get(E.key.id);if(J){if(E.multiProvider!==J.multiProvider)throw Error("bf`"+J+"`"+E);if(E.multiProvider)for(var z=0;z<E.resolvedFactories.length;z++)J.resolvedFactories.push(E.resolvedFactories[z]);else e.set(E.key.id,E)}else J=void 0,E.multiProvider?J=new uD2(E.key,E.resolvedFactories.slice(),E.multiProvider):J=E,e.set(E.key.id,J)}return Array.from(e.values())};
oMu=function(l,e){l.forEach(function(O){if(O instanceof W4M)e.push({provide:O,useClass:O});else if(O&&typeof O=="object"&&O.provide!==void 0)e.push(O);else if(O instanceof Array)oMu(O,e);else throw Error("Ze`"+O);});
return e};
z9u=function(l,e){if(e){var O=e.map(function(E){return[E]});
return e.map(function(E){return dCd(l,E,O)})}return Jrp(l)};
Jrp=function(l){var e=EMt.parameters(l);if(!e)return[];if(e.some(function(O){return O==null}))throw O3t(l,e);
return e.map(function(O){return dCd(l,O,e)})};
dCd=function(l,e,O){var E=null,J=!1;if(!Array.isArray(e))return e instanceof gM2?i3x(e.token,J,null):i3x(e,J,null);for(var z=null,M=0;M<e.length;++M){var Z=e[M];if(Z instanceof W4M)E=Z;else if(Z instanceof gM2)E=Z.token;else if(Z instanceof wYx)J=!0;else if(Z instanceof Arg||Z instanceof nMp)z=Z}E=jH(E);if(E!=null)return i3x(E,J,z);throw O3t(l,O);};
i3x=function(l,e,O){return new amT(H9.get(jH(l)),e,O)};
kPT=function(l,e){for(var O=Array(l.providers.length),E=0;E<l.providers.length;++E){var J=E;if(E<0||E>=l.providers.length)throw Error("af`"+E);O[J]=e(l.providers[E])}return O};
ImA=function(l){return typeof l==="function"&&EMt.parameters(l).every(function(e){return!!e})};
pYx=function(l){var e=mCA;yru.get(l)||yru.set(l,new e);return yru.get(l)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(l)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(l)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l,e){var O,E;if(l.contains(e))return!0;l=_.c9(l).querySelectorAll("content,slot");for(O=0;O<l.length;++O){var J=_.c9(l[O]).getDistributedNodes();for(E=0;E<J.length;++E)if(J[E].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(J[E],e))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){l.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(l)&&l.preventDefault();l.targetTouches&&(l=l.targetTouches[0],K4q=l.pageX,jI8=l.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 l=0,e=Fc.length;l<e;l++)document.addEventListener(Fc[l],_._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 l=0,e=Fc.length;l<e;l++)document.removeEventListener(Fc[l],_._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(l){var e=_.c9(l).rootTarget;l.type!=="touchmove"&&H3d!==e&&(H3d=e,cru=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.c9(l).path));if(!cru.length)return!0;if(l.type==="touchstart")return!1;l=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(l);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(cru,l.deltaX,l.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){for(var e=[],O=l.indexOf(F4g),E=0;E<=O;E++)if(l[E].nodeType===Node.ELEMENT_NODE){var J=l[E],z=J.style;z.overflow!=="scroll"&&z.overflow!=="auto"&&(z=window.getComputedStyle(J));z.overflow!=="scroll"&&z.overflow!=="auto"||e.push(J)}return e};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l,e,O){if(e||O)for(var E=Math.abs(O)>=Math.abs(e),J=0;J<l.length;J++){var z=l[J];if(E?O<0?z.scrollTop>0:z.scrollTop<z.scrollHeight-z.clientHeight:e<0?z.scrollLeft>0:z.scrollLeft<z.scrollWidth-z.clientWidth)return z}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){var e={deltaX:l.deltaX,deltaY:l.deltaY};"deltaX"in l||("wheelDeltaX"in l&&"wheelDeltaY"in l?(e.deltaX=-l.wheelDeltaX,e.deltaY=-l.wheelDeltaY):"wheelDelta"in l?(e.deltaX=0,e.deltaY=-l.wheelDelta):"axis"in l?(e.deltaX=l.axis===1?l.detail:0,e.deltaY=l.axis===2?l.detail:0):l.targetTouches&&(l=l.targetTouches[0],e.deltaX=K4q-l.pageX,e.deltaY=jI8-l.pageY));return e};
fm2=function(l){this.element=l;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
TYq=function(l){this.element=l;this.color=window.getComputedStyle(l).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");_.c9(this.waveContainer).appendChild(this.wave);R9L(this)};
f_=function(l,e){for(var O in l)if(O.toLowerCase()===e.toLowerCase())return l[O]};
sIt=function(l,e){for(var O in l)if(O.toLowerCase()===e.toLowerCase()){delete l[O];break}};
BYA=function(l){l=_.mm.clone(l);for(var e=0;e<GPt.length;++e){var O=GPt[e],E=f_(l,O);E&&(l["X-Goog-Upload-Header-"+O]=E,sIt(l,O))}return l};
PQT=function(l){l=_.mm.clone(l);sIt(l,"X-Goog-Upload-Status")};
Y8V=function(l){return UCL.some(function(e){return e.test(l)})};
q8d=function(l,e){var O;var E=(O=l.formContent)==null?void 0:O.locale;O=E==null?void 0:E.split("-")[0];E=E&&h9V.includes(E)?E:O&&h9V.includes(O)?O:void 0;E=(E!=null?E:"en").replaceAll("-","_").toLowerCase();var J;l=((J=l.initializationData)==null?0:J.useNightlyRelease)?"nightly":"live";var z;return(e==null?0:(z=e.getEnableAlohaBinarySplit)==null?0:z.call(e))?_.OP(L4x,l):_.OP(tad,l,E)};
rrx=function(l,e,O,E){if(vMx&&NYV===e)return vMx;NYV=e;var J=q8d(l,E);return vMx=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(z,M){var Z=_.i$("SCRIPT");_.UN(Z,J);Z.onload=function(){e.feedbackV2GlobalObject?z(e.feedbackV2GlobalObject):M(Error("ef"))};
Z.onerror=function(){M(Error("ff`"+J.toString()))};
O.body.appendChild(Z)})};
QIx=function(l,e,O,E){if(DCu&&S8A===e)return DCu;S8A=e;var J=q8d(l,E);return DCu=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(z,M){var Z=_.i$("SCRIPT");_.UN(Z,J);Z.onload=function(){e.feedbackV2GlobalObject?z(e.feedbackV2GlobalObject):M(Error("ef"))};
Z.onerror=function(){M(Error("ff`"+J.toString()))};
O.body.appendChild(Z)})};
xC2=function(l,e,O,E,J){J=J===void 0?!0:J;var z,M,Z,u,d;return _.V(function(g){switch(g.nextAddress){case 1:return z=Date.now(),_.C(g,rrx(l,O,E,e),2);case 2:M=g.yieldResult;if(!(J||((u=l.initializationData)==null?0:u.useNightlyRelease)||((d=l.initializationData)==null?0:d.isLocalServer))){Z=M.initializeFeedbackClient(l,z,e);g.jumpTo(3);break}return _.C(g,M.initializeFeedbackClientAsync(l,z,e),4);case 4:Z=g.yieldResult;case 3:return Z.initiateAloha(),g.return(Z)}})};
lgg=function(l,e,O,E){var J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return J=Date.now(),_.C(Z,QIx(l,O,E.document,e),2);if(Z.nextAddress!=3)return z=Z.yieldResult,_.C(Z,z.initializeFeedbackClientAsync(l,J,e,E),3);M=Z.yieldResult;M.initiateAloha();return Z.return(M)})};
eG2=function(l,e,O){var E=!0;E=E===void 0?!0:E;var J,z,M,Z,u,d,g,w,n,k;return _.V(function(y){J=O||_.Op;if((z=e)==null?0:(Z=(M=z).getEnableAlohaBinarySplit)==null?0:Z.call(M)){u=J;if(u.isFormOpened)throw d=Error("gf"),d.name="DuplicateFormError",d;u.isFormOpened=!0;l.callbacks=l.callbacks||{};g=l.callbacks.onClose||function(){};
l.callbacks.onClose=function(c){u.isFormOpened=!1;g(c)};
try{return y.return(lgg(l,e,u,J))}catch(c){throw u.isFormOpened=!1,c;}}else{w=J;if(w.isFormOpened)throw n=Error("gf"),n.name="DuplicateFormError",n;w.isFormOpened=!0;l.callbacks=l.callbacks||{};k=l.callbacks.onClose||function(){};
l.callbacks.onClose=function(c){w.isFormOpened=!1;k(c)};
try{return y.return(xC2(l,e,w,J.document,E))}catch(c){throw w.isFormOpened=!1,c;}}_.Cl(y)})};
zGx=function(l,e){return _.V(function(O){return O.return(new Promise(function(E){var J=Oxg(e!=null?e:"")+"/aloha_form_properties?productId="+l;E$t(J,function(z){z=z.target;var M=null;try{var Z=JSON,u=Z.stringify;if(z.JSC$7833_xhr_){var d=z.JSC$7833_xhr_.responseText;d.indexOf(")]}'\n")==0&&(d=d.substring(5));var g=(0,_.Rc)(d)}else g=void 0;M=EHu(JIg,u.call(Z,g))}catch(w){u=new JIg,g=Xog(),g=_.Tz(g,13,!1),g=_.Tz(g,14,!0),g=_.Tz(g,15,!0),g=_.Tz(g,20,!1),M=_.EN(u,1,g)}E(M)},"GET","",{},2E3,!0)}))})};
Oxg=function(l){return Y8V(l)?l:"https://www.google.com/tools/feedback"};
Zx8=function(l){l=l.match(new RegExp(bxx,"gi"))||[];l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;a:{var O=_.b(M1g);for(var E=O.next();!E.done;E=O.next())if(E.value.test(e)){O=!1;break a}O=!0}if(!O)a:{O=_.b(V1M);for(E=O.next();!E.done;E=O.next())if(E.value.test(e)){O=!0;break a}O=!1}if(O)return!0}return!1};
uVT=function(l){switch(l){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"}};
o$M=function(l){if(window.crypto&&window.crypto.getRandomValues)try{var e=Array(l),O=new Uint8Array(l);window.crypto.getRandomValues(O);for(var E=0;E<e.length;E++)e[E]=O[E];return e}catch(z){}e=Array(l);for(O=0;O<l;O++){E=Date.now();for(var J=0;J<E%23;J++)e[O]=Math.random();e[O]=Math.floor(Math.random()*256)}if(CZu)for(O=1,E=0;E<CZu.length;E++)e[O%l]^=e[(O-1)%l]/4^CZu.charCodeAt(E),O++;return e};
sK=function(l){l=o$M(l);for(var e=[],O=0;O<l.length;O++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(l[O]&63));return e.join("")};
Whx=function(l){l&&_.Bm("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:$82,clientScreenNonce:l})};
d8q=function(l){return _.hT("client-screen-nonce-store",{})[l===void 0?0:l]};
g$x=function(l,e){e=e===void 0?0:e;var O=_.hT("client-screen-nonce-store");O||(O={},_.Yd("client-screen-nonce-store",O));O[e]=l};
ixT=function(l){l=l===void 0?0:l;return l===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+l};
woT=function(l){return _.hT(ixT(l===void 0?0:l))};
_.B9=function(l){return(l=woT(l===void 0?0:l))?new _.Gz({veType:l,youtubeData:void 0,jspbYoutubeData:void 0}):null};
AIt=function(){var l=_.hT("csn-to-ctt-auth-info");l||(l={},_.Yd("csn-to-ctt-auth-info",l));return l};
n$t=function(){return Object.values(_.hT("client-screen-nonce-store",{})).filter(function(l){return l!==void 0})};
_.P9=function(l){l=d8q(l===void 0?0:l);if(!l&&!_.LH("USE_CSN_FALLBACK",!0))return null;l||(l="UNDEFINED_CSN");return l?l:null};
kvt=function(l){for(var e=_.b(Object.values(agV)),O=e.next();!O.done;O=e.next())if(_.P9(O.value)===l)return!0;return!1};
IgW=function(l,e,O){var E=AIt();(O=_.P9(O))&&delete E[O];e&&(E[l]=e)};
UK=function(l){return AIt()[l]};
_.Yv=function(l,e,O,E){O=O===void 0?0:O;if(l!==d8q(O)||e!==_.hT(ixT(O)))if(IgW(l,E,O),g$x(l,O),_.Yd(ixT(O),e),e=function(){setTimeout(function(){Whx(l)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(e)}catch(J){e()}else e()};
m8L=function(l,e){e=e===void 0?"":e;var O=[],E;for(E in l)if(l.hasOwnProperty(E)){var J=e!==""?e+"."+E:E;typeof l[E]==="object"?O.push.apply(O,_.kA(m8L(l[E],J))):O.push([J,l[E]])}O.sort();return O};
_.L_=function(l){var e=_.ke.apply(1,arguments);if(!hi(l)||e.some(function(E){return!hi(E)}))throw Error("hf");
e=_.b(e);for(var O=e.next();!O.done;O=e.next())yIT(l,O.value)};
yIT=function(l,e){for(var O in e)if(hi(e[O])){if(O in l&&!hi(l[O]))throw Error("jf");O in l||(l[O]={});yIT(l[O],e[O])}else if(poA(e[O])){if(O in l&&!poA(l[O]))throw Error("kf");O in l||(l[O]=[]);KhV(l[O],e[O])}else l[O]=e[O];return l};
KhV=function(l,e){e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,hi(O)?l.push(yIT({},O)):poA(O)?l.push(KhV([],O)):l.push(O);return l};
hi=function(l){return typeof l==="object"&&!Array.isArray(l)};
poA=function(l){return typeof l==="object"&&Array.isArray(l)};
HxT=function(l){for(var e=_.b(Object.entries(jaW)),O=e.next();!O.done;O=e.next())if(O=_.b(O.value),O.next(),O=O.next().value,O==="SLI_STATUS_"+l)return O;return"SLI_STATUS_UNKNOWN"};
_.qd=function(l,e,O,E){return cI8(l,e,function(){return new _.FhA(l,e,O,E)})};
_.fgx=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
RGM=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
v9=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
TEV=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
saq=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
GvM=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
U8x=function(l){l&&(l.dataset?l.dataset[BEg()]="true":_.hz([_.lX(PZu)],l,"data-loaded","true".toString()))};
Ykx=function(l){return l?l.dataset?l.dataset[BEg()]:l.getAttribute("data-loaded"):null};
BEg=function(){return hGp.loaded||(hGp.loaded="loaded".replace(/\-([a-z])/g,function(l,e){return e.toUpperCase()}))};
_.Nd=function(l,e,O){LhL(l,e,O===void 0?null:O)};
_.qkT=function(l,e){l&&e&&(l=""+_.Ox(e),(l=t1M[l])&&_.v1x(l))};
LhL=function(l,e,O){O=O===void 0?null:O;var E=_.v$u(l),J=document.getElementById(E),z=J&&Ykx(J),M=J&&!z;z?e&&e():(e&&(z=_.Wm(E,e),e=""+_.Ox(e),t1M[e]=z),M||(J=NET(l,E,function(){Ykx(J)||(U8x(J),_.N8x(E),_.dL(function(){_.Dvq(E)},0))},O)))};
NET=function(l,e,O,E){E=E===void 0?null:E;var J=_.i$("SCRIPT");J.id=e;J.onload=function(){O&&setTimeout(O,0)};
J.onreadystatechange=function(){switch(J.readyState){case "loaded":case "complete":J.onload()}};
E&&J.setAttribute("nonce",E);_.UN(J,_.j$(l));l=document.getElementsByTagName("head")[0]||document.body;l.insertBefore(J,l.firstChild);return J};
_.v$u=function(l){var e=document.createElement("a");yS(e,l);return"js-"+rv(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
rIW=function(l){var e=_.hT("INNERTUBE_HOST_OVERRIDE");e&&(l=String(e)+String(_.Dp(l)));return l};
D8V=function(l){var e={};_.a("json_condensed_response")&&(e.prettyPrint="false");return l=gZT(l,e)};
_.SH=function(l){return zR(l)?"same-origin":"include"};
_.Qf=function(l){return zR(l)?"same-origin":"cors"};
xv=function(l,e,O){O=O===void 0?{}:O;l={method:e===void 0?"POST":e,mode:_.Qf(l),credentials:_.SH(l)};e={};for(var E=_.b(Object.keys(O)),J=E.next();!J.done;J=E.next())J=J.value,O[J]&&(e[J]=O[J]);Object.keys(e).length>0&&(l.headers=e);return l};
_.li=function(l,e){e=e===void 0?{}:e;return"service:"+l+"/"+Object.keys(e).sort().map(function(O){return O+":"+e[O]}).join("/")};
SkL=function(l){var e,O,E,J;l=(e=_.I(l,_.ej))==null?void 0:(O=e.watchEndpointSupportedOnesieConfig)==null?void 0:(E=O.html5PlaybackOnesieConfig)==null?void 0:(J=E.commonConfig)==null?void 0:J.url;if(!l)return[];e=new _.Jg(l);return e.JSC$8068_domain_?["https://"+e.JSC$8068_domain_+"/generate_204"]:[]};
_.lqL=function(){return Qa2()||nvV()||x88&&Y6("version/")?!0:_.hT("EOM_VISITOR_DATA")?!1:!0};
e0d=function(l){var e=l.docid||l.video_id||l.videoId||l.id;if(e)return e;e=l.raw_player_response;e||(l=l.player_response)&&(e=JSON.parse(l));return e&&e.videoDetails&&e.videoDetails.videoId||null};
OnL=function(l){return l.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Xj=function(l){return!isNaN(Number(l))&&!_.MA(l)};
_.bi=function(l,e,O,E){E=E===void 0?!0:E;var J=_.hT("VALID_SESSION_TEMPDATA_DOMAINS",[]),z=_.Es(window.location.href);z&&J.push(z);z=_.Es(l);if(_.hq(J,z)||!z&&_.Jq(l,"/"))if(J=document.createElement("a"),yS(J,l),l=J.href)if(l=_.Dp(l),l=_.z9(l))E&&!e.csn&&(e.itct||e.ved)&&(e=Object.assign({csn:_.P9()},e)),O?(O=parseInt(O,10),isFinite(O)&&O>0&&EN2(l,e,O)):EN2(l,e)};
Xe8=function(l){var e=_.hT("VALID_SESSION_TEMPDATA_DOMAINS",[]),O=_.Es(window.location.href);O&&e.push(O);O=_.Es(l);if(!(_.hq(e,O)||!O&&_.Jq(l,"/")))return null;l=_.Dp(l);(l=_.z9(l))?(l=J6T(l),l=(l=_.mW.get(l,void 0)||null)?_.SD(l):{}):l=null;return l};
EN2=function(l,e,O){l=J6T(l);e=e?_.ay(e):"";O=O||5;_.lqL()&&_.y2(l,e,O)};
J6T=function(l){for(var e=_.b(z0A),O=e.next();!O.done;O=e.next())l=_.M9(l,O.value);return"ST-"+rv(l).toString(36)};
bnV=function(l,e){l.commandMetadata&&_.I(l.commandMetadata,_.V4)&&_.I(l.commandMetadata,_.V4).url&&(l=_.Qt(_.I(l.commandMetadata,_.V4).url).adurl)&&_.wQT(l)&&_.bi(_.Dp(l),{encoded_ad_playback_context:e})};
_.MVu=function(l){if(l.requestFullscreen)l=l.requestFullscreen(void 0);else if(l.webkitRequestFullscreen)l=l.webkitRequestFullscreen();else if(l.mozRequestFullScreen)l=l.mozRequestFullScreen();else if(l.msRequestFullscreen)l=l.msRequestFullscreen();else if(l.webkitEnterFullscreen)l=l.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return l instanceof Promise?l:Promise.resolve()};
_.ui=function(l){var e;_.Rb2(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ZG()==l&&(e=document):e=l;if(e&&(l=_.Rb2(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))){l.call(e)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ZG=function(){var l=l===void 0?!1:l;var e=_.Rb2(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(l)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null};
_.Cz=function(l,e){e=e===void 0?!0:e;l.addEventListener("wheel",VVu);l.overscrollConfig={cooldown:e}};
_.op=function(l){l.overscrollConfig=void 0;l.removeEventListener("wheel",VVu)};
VVu=function(l){var e=l.deltaY,O=l.target,E=null;if(window.Polymer&&window.Polymer.Element){if(O=l.path||l.composedPath&&l.composedPath()){O=_.b(O);for(var J=O.next();!J.done&&(J=J.value,!ZnA(J,e));J=O.next())if(J.overscrollConfig){E=J;break}}}else for(;O&&!ZnA(O,e);){if(O.overscrollConfig){E=O;break}O=O.parentElement}E&&(e=E.overscrollConfig,e.cooldown?(E=l.deltaY,O=e.lastDeltaY||0,e.lastDeltaY=E,J=e.lastStopped||0,O&&J&&O>0==E>0?Math.abs(O)>=Math.abs(E)?(E=J+1200,O=!1):(E=J+600,O=!0):(E=Date.now()+
600,O=!0),E>Date.now()&&(l.preventDefault(),O&&(e.lastStopped=Date.now()))):l.preventDefault())};
ZnA=function(l,e){return e<0&&l.scrollTop>0||e>0&&l.scrollTop<l.scrollHeight-l.clientHeight-1?(l=getComputedStyle(l).overflowY,l=="auto"||l=="scroll"):!1};
_.$u=function(l,e,O,E){E||(E={bubbles:!0,cancelable:!1,composed:!0});O!==null&&O!==void 0&&(E.detail=O);var J=new CustomEvent(e,E);_.a("untrack_fire_custom_event_killswitch")?l.dispatchEvent(J):wX(function(){return void l.dispatchEvent(J)});
return J};
_.Wb=function(l,e,O,E){e=new uBq(e,!(E===void 0||!E),O);_.$u(l,"yt-action",e);return e.returnValue};
_.dQ=function(l,e,O){return _.Wb(l,e,O,!0)};
_.gQ=function(l,e,O){return _.Wb(l,e,O)[0]};
_.wQ=function(l,e,O,E){e&&e.length&&e.forEach(function(J){var z=FXV(J);z&&(_.a("handle_service_request_actions")&&J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.sendPost?_.ii(O?O:l,[J]):_.dQ(l,z,[J,O,E]))})};
_.ii=function(l,e){var O=[l];e&&O.push.apply(O,e);e=_.Wb(l,"yt-service-request",O);return e.length>0&&(e=e[0],_.$u(l,"yt-service-request-sent",e),e&&e.ajaxPromise)?(e.ajaxPromise.then(function(E){_.$u(l,"yt-service-request-completed",E)},function(E){_.$u(l,"yt-service-request-error",{error:E,
params:O})},l),e.ajaxPromise):_.Ag()};
_.ap=function(l,e){if(_.a("handle_service_request_actions"))_.wQ(e,l,e);else{l=_.b(l);for(var O=l.next();!O.done;O=l.next()){O=O.value;var E=void 0;((E=_.I(O,_.nz))==null?0:E.commands)?_.ap(_.I(O,_.nz).commands,e):(E=void 0,((E=_.I(O,_.ku))==null?0:E.actions)?_.ap(_.I(O,_.ku).actions,e):(E=void 0,((E=_.I(O.commandMetadata,_.V4))==null?0:E.sendPost)?_.ii(e,[O]):_.wQ(e,[O],e)))}}};
_.oNA=function(l,e,O){e=e===void 0?{}:e;typeof e==="function"&&(e={callback:e});O||e._c&&e._c.jsl&&e._c.jsl.h||_.mm.extend(e,{_c:{jsl:{h:_.hT("GAPI_HINT_PARAMS")}}});(e.gapiHintOverride||_.hT("GAPI_HINT_OVERRIDE"))&&(O=_.Qt(document.location.href).gapi_jsh)&&_.mm.extend(e,{_c:{jsl:{h:O}}});CO8(l,e)};
_.ml=function(l,e,O){e=e===void 0?{}:e;l=(l=l in Ip?Ip[l]:O)||"";O={};for(var E in e){O={key$jscomp$789:O.key$jscomp$789};O.key$jscomp$789=E;var J=function(z){return function(){return String(e[z.key$jscomp$789])}}(O);
l=l.replace(new RegExp("\\$\\{"+O.key$jscomp$789+"\\}","gi"),J);l=l.replace(new RegExp("\\$"+O.key$jscomp$789,"gi"),J)}return l};
_.y4=function(l,e){return $DW(l in Ip?Ip[l]:{},e)};
$DW=function(l,e){var O=_.hT("I18N_PLURAL_RULES");O||(O=function(E){return E==1?"one":"other"});
return(l=l["case"+e]||l[O(e)])?l.replace("#",e.toString()):e+""};
gNT=function(l){var e=W2p(l),O=document.getElementById(e),E=O&&Ykx(O);E||O&&!E||(O=dDg(l,e,function(){if(!Ykx(O)){U8x(O);_.N8x(e);var J=_.pz(_.Dvq,e);_.dL(J,0)}}))};
dDg=function(l,e,O){var E=document.createElement("link");E.id=e;E.onload=function(){O&&setTimeout(O,0)};
l=_.j$(l);_.LU(E,l,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(E);return E};
W2p=function(l){var e=_.i$("A");yS(e,oH(l));return"css-"+rv(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.weM=function(l){var e=inp();l!==e&&(e=_.Kz(),!_.a("web_autonav_allow_off_by_default")&&l||_.jj(0,141,!0),_.jj(0,140,!l),e.save())};
inp=function(){var l=_.Kz();return _.a("web_autonav_allow_off_by_default")&&!l.getFlag(141)&&_.hT("AUTONAV_OFF_BY_DEFAULT")?!1:!l.getFlag(140)};
A68=function(l,e){var O,E;l=((O=l.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(E=O.videoAuthorizationToken)==null?void 0:E.credentialTransferTokens)||[];for(O=0;O<l.length;++O)if(l[O].scope===e)return l[O].token||void 0};
nNV=function(l){for(var e=0,O=0;O<l.length;O++)e=e*31+l.charCodeAt(O),O<l.length-1&&(e%=0x800000000000);return e%1E5};
_.Hb=function(l){return _.vK("ytcsi."+(l||"")+"data_")||aqV(l)};
_.kGu=function(l){l=_.Hb(l);l.metadata||(l.metadata={});return l.metadata};
_.Iq8=function(l){l=_.Hb(l);l.tick||(l.tick={});return l.tick};
_.cb=function(l){l=_.Hb(l);if(l.gel){var e=l.gel;e.gelInfos||(e.gelInfos={});e.gelTicks||(e.gelTicks={})}else l.gel={gelTicks:{},gelInfos:{}};return l.gel};
_.mDu=function(l){l=_.cb(l);l.gelInfos||(l.gelInfos={});return l.gelInfos};
y6x=function(l){var e=_.Hb(l).nonce;e||(e=sK(16),_.Hb(l).nonce=e);return e};
aqV=function(l){var e={tick:{},info:{}};_.zJ("ytcsi."+(l||"")+"data_",e);return e};
peM=function(){var l=_.vK("ytcsi.debug");l||(l=[],_.zJ("ytcsi.debug",l),_.zJ("ytcsi.reference",{}));return l};
_.Fj=function(l){l=l||"";var e=K2M();if(e[l])return e[l];var O=peM(),E={timerName:l,info:{},tick:{},span:{},jspbInfo:[]};O.push(E);return e[l]=E};
jsx=function(l){l=l||"";var e=K2M();e[l]&&delete e[l];var O=peM(),E={timerName:l,info:{},tick:{},span:{},jspbInfo:[]};O.push(E);e[l]=E};
K2M=function(){var l=_.vK("ytcsi.reference");if(l)return l;peM();return _.vK("ytcsi.reference")};
_.c6x=function(l){return HnT[l]||"LATENCY_ACTION_UNKNOWN"};
TUM=function(l,e,O){O=O===void 0?{}:O;var E=!1;_.LH("ytLoggingEventsDefaultDisabled",!1)&&(E=!0);E=E?null:GM;O=O===void 0?{}:O;var J=Math.round(O.timestamp||(0,_.VZ)());_.cm(e,1,J<Number.MAX_SAFE_INTEGER?J:0);J=new F2x;if(O.lact)_.cm(J,1,isFinite(O.lact)?O.lact:-1);else if(O.timestamp)_.cm(J,1,-1);else{var z=_.uN();_.cm(J,1,isFinite(z)?z:-1)}if(O.sequenceGroup&&!_.a("web_gel_sequence_info_killswitch")){z=O.sequenceGroup;var M=zct(z),Z=new fqp;_.cm(Z,2,M);_.da(Z,1,z);_.EN(J,3,Z);O.endOfSequence&&delete R0A[O.sequenceGroup]}_.EN(e,
33,J);(O.sendIsolatedPayload?Cd8:oT8)(l,{endpoint:"log_event",payload:e,cttAuthInfo:O.cttAuthInfo,dangerousLogToVisitorSession:O.dangerousLogToVisitorSession},E)};
_.Rp=function(){return(_.a("csi_use_time_origin")||_.a("csi_use_time_origin_tvhtml5"))&&_.fz.timeOrigin?Math.floor(_.fz.timeOrigin):_.fz.timing.navigationStart};
_.ssd=function(l,e){_.T9("_start",l,e)};
_.sG=function(l,e){if(!_.a("web_csi_action_sampling_enabled")||!_.Hb(e).actionDisabled){var O=_.Fj(e||"");_.L_(O.info,l);l.loadType&&(O=l.loadType,_.kGu(e).loadType=O);_.L_(_.mDu(e),l);O=y6x(e);e=_.Hb(e).cttAuthInfo;GG2().info(l,O,e)}};
BUT=function(){var l,e,O,E;return((E=_.V2().resolve(_.MG(RD))==null?void 0:(l=Xfx())==null?void 0:(e=l.loggingHotConfig)==null?void 0:(O=e.csiConfig)==null?void 0:O.debugTicks)!=null?E:[]).map(function(J){return Object.values(J)[0]})};
_.T9=function(l,e,O){if(!_.a("web_csi_action_sampling_enabled")||!_.Hb(O).actionDisabled){var E=y6x(O),J;if(J=_.a("web_csi_debug_sample_enabled")&&E){(_.V2().resolve(_.MG(RD))==null?0:Xfx())&&!POL&&(POL=!0,_.T9("gcfl",(0,_.VZ)(),O));var z,M,Z;J=(_.V2().resolve(_.MG(RD))==null?void 0:(z=Xfx())==null?void 0:(M=z.loggingHotConfig)==null?void 0:(Z=M.csiConfig)==null?void 0:Z.debugSampleWeight)||0;if(z=J!==0)b:{z=BUT();if(z.length>0)for(M=0;M<z.length;M++)if(l===z[M]){z=!0;break b}z=!1}z?(J=nNV(E)%J!==
0,_.Hb(O).debugTicksExcludedLogged||(z={},z.debugTicksExcluded=J,_.sG(z,O)),_.Hb(O).debugTicksExcludedLogged=!0):J=!1}if(!J){l[0]!=="_"&&UDV(l,O,e);J=_.Fj(O||"");J.tick[l]=e||(0,_.VZ)();if(J.callback&&J.callback[l])for(J=_.b(J.callback[l]),z=J.next();!z.done;z=J.next())z=z.value,z();J=_.cb(O);J.gelTicks&&(J.gelTicks[l]=!0);z=_.Iq8(O);J=e||(0,_.VZ)();_.a("log_repeated_ytcsi_ticks")?l in z||(z[l]=J):z[l]=J;z=_.Hb(O).cttAuthInfo;l==="_start"?GG2().baseline(E,e,z):GG2().tick(l,E,e,z);_.Y7A(O);return J}}};
UDV=function(l,e,O){if(_.fz.mark)if(l.startsWith("mark_")||(l="mark_"+l),e&&(l+=" ("+e+")"),O===void 0||_.a("web_csi_disable_alt_time_performance_mark"))_.fz.mark(l);else{O=_.a("csi_use_performance_navigation_timing")?O-_.fz.timeOrigin:O-(_.fz.timeOrigin||_.fz.timing.navigationStart);try{_.fz.mark(l,{startTime:O})}catch(E){}}};
h0x=function(){var l,e=(l=_.fz.getEntriesByType)==null?void 0:l.call(_.fz,"mark");e&&e.forEach(function(O){if(O.name.startsWith("mark_")){var E;(E=_.fz.clearMarks)==null||E.call(_.fz,O.name)}})};
_.L2t=function(){switch(fCp()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.tVt=function(l){var e={},O=function(z,M,Z){M=M.match("_rid")?M.split("_rid")[0]:M;typeof Z==="number"&&(Z=JSON.stringify(Z));z.requestIds?z.requestIds.push({endpoint:M,id:Z}):z.requestIds=[{endpoint:M,id:Z}]};
l=_.b(Object.entries(l));for(var E=l.next();!E.done;E=l.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;switch(E){case "GetBrowse_rid":O(e,E,J);break;case "GetGuide_rid":O(e,E,J);break;case "GetHome_rid":O(e,E,J);break;case "GetPlayer_rid":O(e,E,J);break;case "GetSearch_rid":O(e,E,J);break;case "GetSettings_rid":O(e,E,J);break;case "GetTrending_rid":O(e,E,J);break;case "GetWatchNext_rid":O(e,E,J);break;case "yt_red":e.isRedSubscriber=!!J;break;case "yt_ad":e.isMonetized=!!J}}return e};
vNL=function(l,e,O,E,J,z){if(!_.a("web_csi_action_sampling_enabled")||!_.Hb(z).actionDisabled){var M=_.cb(z);if(M.gelSpans)M.gelSpans[l]=!0;else{var Z={};M.gelSpans=(Z[l]=!0,Z)}q7g++;l={spanName:l,spanLengthUsec:String(Math.round(e*1E3)),spanNonce:q7g};E&&(l.spanInfo=E);J&&(l.parentSpanNonce=J);O&&(l.spanStartTimeUsec=String(Math.round(O*1E3)));_.Fj(z||"").span[String(l.spanName)]=l;O=_.cb(z);O.gelSpans||(O.gelSpans={});_.L_(O.gelSpans,l);O=y6x(z);z=_.Hb(z).cttAuthInfo;GG2().span(l,O,z);return l.spanNonce}};
_.NUM=function(l){var e=_.G9("aft",l);if(e)return e;e=_.hT((l||"")+"TIMING_AFT_KEYS",["ol"]);for(var O=e.length,E=0;E<O;E++){var J=_.G9(e[E],l);if(J)return J}return NaN};
_.r6p=function(l,e){_.zJ("ytglobal.timing"+(e||"")+"ready_",l)};
_.G9=function(l,e){if(l=_.Iq8(e)[l])return typeof l==="number"?l:l[l.length-1]};
_.Y7A=function(l){var e=_.G9("_start",l),O=_.NUM(l),E=!DDx;e&&O&&E&&(bOd(S78,new Qsx(Math.round(O-e),l)),DDx=!0)};
lKT=function(l){aqV(l);xDx();h0x();l||(_.hT("TIMING_ACTION")&&_.Yd("PREVIOUS_ACTION",_.hT("TIMING_ACTION")),_.Yd("TIMING_ACTION",""))};
_.eoW=function(l){l=l===void 0?{}:l;_.qz(function(){Bb();jsx();lKT();_.r6p(!1);l.cttAuthInfo&&(_.Hb().cttAuthInfo=l.cttAuthInfo);_.Yd("TIMING_AFT_KEYS",[]);l.isHot?_.Pb({loadType:"hot"}):_.Pb({loadType:"warm"});_.Yd("TIMING_ACTION","");delete _.hT("TIMING_INFO",{}).yt_lt;_.qz(_.ssd)(l.startTime,void 0)})()};
_.UG=function(l,e,O,E){e=e===void 0?{}:e;_.qz(function(){var J=O?O:l;OI8(J);var z=e.sampleRate;if(!_.a("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var M=y6x(J);z=nNV(M)%z!==0}z&&(_.Hb(J).actionDisabled=!0);_.Fj(J||"").info.actionType=l;e.cttAuthInfo&&(_.Hb(J).cttAuthInfo=e.cttAuthInfo);_.Yd(J+"TIMING_ACTION",l);_.qz(_.ssd)(e.startTime,J);z={actionType:E||_.c6x(l)};e.logPreviousAction&&(z.previousAction=_.c6x(_.hT("TIMING_ACTION")));(M=_.P9())&&M!=="UNDEFINED_CSN"&&(z.clientScreenNonce=
M);_.Pb(z,J);_.r6p(!0,J)})()};
OI8=function(l){_.qz(function(){Bb(l);jsx(l);lKT(l)})()};
E3L=function(){_.qz(function(){var l=[],e;for(e in _.vK("ytcsi.".slice(0,-1)))e.endsWith("data_")&&l.push(e.slice(0,-5));l=_.b(l);for(e=l.next();!e.done;e=l.next())OI8(e.value);Bb()})()};
_.X0L=function(l){return _.qz(function(){return _.Jfg("_start",l)})()};
_.Pb=function(l,e,O){_.qz(_.sG)(l,e,O===void 0?!1:O)};
_.Yu=function(l,e,O){return _.qz(_.T9)(l,e,O)};
_.Jfg=function(l,e){return _.qz(function(){var O=_.Iq8(e);return l in O})()};
bIM=function(l){if(!_.a("universal_csi_network_ticks"))return"";l=_.A5(l)||"";for(var e=Object.keys(zoM),O=0;O<e.length;O++){var E=e[O];if(l.includes(E))return E}return""};
Vqt=function(l){if(!_.a("universal_csi_network_ticks"))return function(){};
var e=zoM[l];return e?(_.hg(e),function(){var O=_.a("universal_csi_network_ticks")?(O=Mqt[l])?_.hg(O):!1:!1;return O}):function(){}};
_.hg=function(l,e,O){return _.qz(function(){if(_.Jfg(l,O))return!1;_.Yu(l,e,O);return!0})()};
_.Lz=function(l,e,O){_.qz(function(){if(!_.X0L(O)||_.Jfg(l,O))return!1;_.Yu(l,e,O);return!0})()};
_.tg=function(l){return _.qz(_.G9)(l,void 0)};
Bb=function(l){_.X0L(l)&&_.Yu("aa",void 0,l)};
_.$kg=function(l,e,O,E,J,z,M,Z,u){var d=ZIx();Z=new _.Gz({veType:e,youtubeData:z,jspbYoutubeData:Z});z=q9({},d);J&&(z.cttAuthInfo=J);J={csn:d,pageVe:Z.getAsJson()};_.a("expectation_logging")&&u&&u.screenCreatedLoggingExpectations&&(J.screenCreatedLoggingExpectations=u.screenCreatedLoggingExpectations);O&&O.visualElement?(J.implicitGesture={parentCsn:O.clientScreenNonce,gesturedVe:O.visualElement.getAsJson()},M&&(J.implicitGesture.gestureType=M)):O&&_.hG(new _.Hk("newScreen() parent element does not have a VE - rootVe",
e));E&&(J.cloneCsn=E);l?sW("screenCreated",J,l,z):_.Bm("screenCreated",J,z);bOd($uu,new uaM(d));vb.clear();C_W.clear();o3g.clear();return d};
N9=function(l,e,O,E,J){WSd(l,e,O,[E],J===void 0?!1:J)};
WSd=function(l,e,O,E,J){J=J===void 0?!1:J;for(var z=q9({cttAuthInfo:UK(e)||void 0},e),M=_.b(E),Z=M.next();!Z.done;Z=M.next()){Z=Z.value;var u=Z.getAsJson();(_.mm.isEmpty(u)||!u.trackingParams&&!u.veType)&&_.hG(Error("uf"));if(_.a("no_client_ve_attach_unless_shown")){var d=dkL(Z,e);if(u.veType&&!C_W.has(d)&&!o3g.has(d)&&!J){if(!_.a("il_attach_cache_limit")||vb.size<1E3){vb.set(d,[l,e,O,Z]);return}_.a("il_attach_cache_limit")&&vb.size>1E3&&_.hG(new _.Hk("IL Attach cache exceeded limit"))}Z=dkL(O,e);
vb.has(Z)?g3M(O,e):o3g.set(Z,!0)}}E=E.filter(function(g){g.csn!==e?(g.csn=e,g=!0):g=!1;return g});
O={csn:e,parentVe:O.getAsJson(),childVes:_.pF(E,function(g){return g.getAsJson()})};
e==="UNDEFINED_CSN"?rQ("visualElementAttached",z,O):l?sW("visualElementAttached",O,l,z):_.Bm("visualElementAttached",O,z)};
w0g=function(l,e,O,E,J){iIL(l,e,O,J)};
iIL=function(l,e,O,E){Afx(O,e);var J=q9({cttAuthInfo:UK(e)||void 0},e);O={csn:e,ve:O.getAsJson(),eventType:1};E&&(O.clientData=E);e==="UNDEFINED_CSN"?rQ("visualElementShown",J,O):l?sW("visualElementShown",O,l,J):_.Bm("visualElementShown",O,J)};
n3V=function(l,e,O,E){Afx(O,e);var J=q9({cttAuthInfo:UK(e)||void 0},e);O={csn:e,ve:O.getAsJson(),eventType:4};E&&(O.clientData=E);e==="UNDEFINED_CSN"?rQ("visualElementShown",J,O):l?sW("visualElementShown",O,l,J):_.Bm("visualElementShown",O,J)};
aKM=function(l,e,O,E,J){var z=(E=E===void 0?!1:E)?16:8;E=q9({cttAuthInfo:UK(e)||void 0,endOfSequence:E},e);O={csn:e,ve:O.getAsJson(),eventType:z};J&&(O.clientData=J);e==="UNDEFINED_CSN"?rQ("visualElementHidden",E,O):l?sW("visualElementHidden",O,l,E):_.Bm("visualElementHidden",O,E)};
IKV=function(l,e,O,E,J){k7T(l,e,O,void 0,E,J)};
k7T=function(l,e,O,E,J){Afx(O,e);E=E||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var z=q9({cttAuthInfo:UK(e)||void 0},e);O={csn:e,ve:O.getAsJson(),gestureType:E};J&&(O.clientData=J);e==="UNDEFINED_CSN"?rQ("visualElementGestured",z,O):l?sW("visualElementGestured",O,l,z):_.Bm("visualElementGestured",O,z)};
mku=function(l,e,O,E){var J=q9({cttAuthInfo:UK(e)||void 0},e);O={csn:e,ve:O.getAsJson(),clientData:E};e==="UNDEFINED_CSN"?rQ("visualElementStateChanged",J,O):l?sW("visualElementStateChanged",O,l,J):_.Bm("visualElementStateChanged",O,J)};
yfL=function(){var l=o$M(16);for(var e=[],O=0;O<l.length;O++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(l[O]&63));return e.join("")};
rQ=function(l,e,O){p0g.push({payloadName:l,payload:O,jspbPayload:void 0,options:e});KSW||(KSW=du2())};
opM=function(l){if(p0g){for(var e=_.b(p0g),O=e.next();!O.done;O=e.next())O=O.value,O.payload&&(O.payload.csn=l.csn,_.Bm(O.payloadName,O.payload,O.options));p0g.length=0}KSW=0};
dkL=function(l,e){return""+l.getAsJson().veType+l.getAsJson().veCounter+e};
Afx=function(l,e){if(_.a("no_client_ve_attach_unless_shown")){var O=dkL(l,e);C_W.set(O,!0);g3M(l,e)}};
g3M=function(l,e){l=dkL(l,e);vb.has(l)&&(e=vb.get(l)||[],N9(e[0],e[1],e[2],e[3],!0),vb.delete(l))};
q9=function(l,e){_.a("log_sequence_info_on_gel_web")&&(l.sequenceGroup=e);return l};
_.DG=function(l,e,O){_.qz(N9)(void 0,l,e,O)};
_.Sj=function(l,e,O){_.qz(WSd)(void 0,l,e,O)};
_.Q4=function(l,e){_.qz(w0g)(void 0,l,e,void 0,void 0,void 0)};
_.xu=function(l,e,O){_.qz(function(){_.DB(e,function(E){n3V(void 0,l,E,O)})})()};
_.lH=function(l,e,O,E){_.qz(function(){_.DB(e,function(J){aKM(void 0,l,J,O,E)})})()};
_.On=function(l,e,O){_.qz(IKV)(void 0,l,e,O,void 0)};
_.En=function(l,e,O,E){_.qz(k7T)(void 0,l,e,O,E,void 0)};
_.JY=function(l,e,O){_.qz(mku)(void 0,l,e,O,void 0)};
jFt=function(l,e){X$.set(l,e)};
HIx=function(l){return z4?z4.enabledSpans?!!z4.enabledSpans[l]:!0:!1};
cfd=function(l){if(!z4)throw Error("xf");z4.processors.push(l)};
FSV=function(l,e){if(l){e=e===void 0?1:e;if(l&&(l.endTime=performance.now(),e&&(l.status=e),e=z4)){e=_.b(e.processors);for(var O=e.next();!O.done;O=e.next()){var E=void 0,J=void 0;(J=(E=O.value).onSpanEnd)==null||J.call(E,l)}}if(e=z4){if(l!==e.activeSpan)throw Error("yf");var z;e.activeSpan=(z=e.activeSpan)==null?void 0:z.parent}}};
fKA=function(l,e,O){var E;if((E=z4)&&HIx(l)){var J=E.nextSpanId++,z=E.activeSpan;l={id:J,parent:z,name:l,attributes:e,traceId:z?z.traceId:J,sessionId:E.sessionId,startTime:performance.now(),status:0};if(E.activeSpan){var M;(M=E.activeSpan).children||(M.children=[]);E.activeSpan.children.push(l)}E=_.b(E.processors);for(M=E.next();!M.done;M=E.next())J=e=void 0,(J=(e=M.value).onSpanStart)==null||J.call(e,l);E=l}else E=void 0;l=z4;E=E&&l?l.activeSpan=E:void 0;if(!E)return O();try{var Z=O(E);FSV(E);return Z}catch(u){throw FSV(E,
2),u;}};
Rox=function(l,e){var O=Object.keys(l);l=new _.Hk("[Command Handler] "+e,{filteredCommandNames:O,originalCommand:l});_.UW(l)};
T9p=function(l,e){Rox(l,e+" was called but not set")};
sFt=function(l){return function(){return new l}};
bH=function(l){return function(){return _.V2().resolve(l)}};
G7M=function(l,e){var O=_.I(l,_.Nr);if(O&&(O=e[O.signal]))return O();l=_.b(Object.keys(l));for(O=l.next();!O.done;O=l.next())if(O=O.value,e[O]&&(O=e[O]))return O()};
Mu=function(l,e,O,E){return{browseEndpoint:{browseId:l},commandMetadata:{webCommandMetadata:{url:e,rootVe:O,webPageType:E===void 0?"WEB_PAGE_TYPE_BROWSE":E}}}};
B9g=function(l,e,O){var E=e=e===void 0?0:e;O=O===void 0?0:O;var J=O-E;return _.Vy(l,"PPSV",void 0,void 0,(J>600?0:J<60||O<=0||E/O>.9)?0:e)};
_.Vy=function(l,e,O,E,J){var z="/watch?v="+l;l={videoId:l};e&&(l.playlistId=e,z+="&list="+e);E&&(z+="&pp="+E);J&&(l.startTimeSeconds=J,z+="&t="+J+"s");e={watchEndpoint:l,commandMetadata:{webCommandMetadata:{url:z,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};O&&(e.clickTrackingParams=O);E&&(_.I(e,_.ej).playerParams=E);return e};
P_q=function(l){return{browseEndpoint:{browseId:"VL"+l},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+l,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
UkT=function(l){if(l){var e;if(l){var O=(e=_.I(l.commandMetadata,_.V4))==null?void 0:e.url;e=!(!O||O==="/service_ajax")}else e=!1;if(e)return l;var E;if(l=(E=_.I(l,_.nz))==null?void 0:E.commands)for(E=_.b(l),l=E.next();!l.done;l=E.next())if(l=UkT(l.value))return l}};
_.Zr=function(l){return{runs:[{text:l}]}};
YSg=function(l,e){return l&&e?{runs:[{text:l,navigationEndpoint:e}]}:void 0};
uH=function(l){return l?_.Zr(l):void 0};
_.CO=function(l){return l?{simpleText:l}:void 0};
_.oM=function(l){var e=l.type;l=l.payload;e={type:e};l!==void 0&&(e.payload=l);return e};
hog=function(l,e,O){for(var E=Object.assign({},l),J=_.b(Object.keys(e)),z=J.next();!z.done;z=J.next()){z=z.value;var M=l[z],Z=e[z];if(Z===void 0)delete E[z];else if(M===void 0)E[z]=Z;else if(Array.isArray(Z)&&Array.isArray(M))E[z]=O?[].concat(_.kA(M),_.kA(Z)):Z;else if(!Array.isArray(Z)&&_.e0(Z)&&!Array.isArray(M)&&_.e0(M))E[z]=hog(M,Z,O);else if(typeof Z===typeof M)E[z]=Z;else return e=new _.Hk("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:z,originalValue:M,updateValue:Z}),
_.UW(e),l}return E};
qSp=function(l){if(!l.length)return"";try{if(LSW)return LSW.decode(l);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(l)}catch(M){}for(var e=0,O=[],E=l.length;e<E;){for(var J=0;J<1024&&e<E;){var z=l[e++];if(z<128)tqL[J++]=z;else{if(z<224)z=(z&31)<<6|l[e++]&63;else if(z<240)z=(z&15)<<12|(l[e++]&63)<<6|l[e++]&63;else{if(J+1===1024){--e;break}z=(z&7)<<18|(l[e++]&63)<<12|(l[e++]&63)<<6|l[e++]&63;z-=65536;tqL[J++]=55296|z>>10;z=56320|z&1023}tqL[J++]=z}}z=String.fromCharCode.apply(String,
tqL);J<1024&&(z=z.substring(0,J));O.push(z)}return O.join("")};
N9d=function(l,e){var O;if((O=v3q)==null?0:O.encodeInto)return e=v3q.encodeInto(l,e),e.read<l.length?l.length*4:e.written;for(var E=O=0;E<l.length;E++){var J=l.charCodeAt(E);J<128?e[O++]=J:(J<2048?e[O++]=J>>6|192:((J&64512)===55296&&E+1<l.length&&(l.charCodeAt(E+1)&64512)===56320?(J=65536+((J&1023)<<10)+(l.charCodeAt(++E)&1023),e[O++]=J>>18|240,e[O++]=J>>12&63|128):e[O++]=J>>12|224,e[O++]=J>>6&63|128),e[O++]=J&63|128)}return O};
rf2=function(l,e){l=new Uint8Array(l);e&&l.set(e);return l};
_.Wt=function(l){l=new Dkx(new SSu([_.VH(decodeURIComponent(l))]));if(QFp(l,2)){var e=$p(l);var O=l.pos;var E=l.arrayView;O=O===void 0?0:O;var J=e===void 0?-1:e;O=O===void 0?0:O;J=J===void 0?-1:J;if(E.totalLength&&J){J<0&&(J=E.totalLength-O);E.focus(O);if(!(O-E.arrayPos+J<=E.arrays[E.arrayIdx].length)){var z=E.arrayIdx,M=E.arrayPos;E.focus(O+J-1);M=new Uint8Array(E.arrayPos+E.arrays[E.arrayIdx].length-M);for(var Z=0,u=z;u<=E.arrayIdx;u++)M.set(E.arrays[u],Z),Z+=E.arrays[u].length;E.arrays.splice(z,
E.arrayIdx-z+1,M);E.arrayIdx=0;E.arrayPos=0;E.focus(O)}z=E.arrays[E.arrayIdx];E=new DataView(z.buffer,z.byteOffset+O-E.arrayPos,J)}else E=new DataView(new ArrayBuffer(0));E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength);l.pos+=e;e=E}else e=void 0;e=e?qSp(e):void 0;l=QFp(l,4)?$p(l):void 0;E=xkL[l];if(typeof E==="undefined")throw l=new _.Hk("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:l}),_.UW(l),l;return{entityTypeFieldNumber:l,entityType:E,entityId:e}};
_.iH=function(l,e,O){O=O===void 0?0:O;var E=new l3V;if(v3q)l=v3q.encode(l);else{var J=new Uint8Array(Math.ceil(l.length*1.2)),z=N9d(l,J);J.length<z&&(J=new Uint8Array(z),z=N9d(l,J));J.length>z&&(J=J.subarray(0,z));l=J}l!==void 0&&(dV(E,18),J=l.length,dV(E,J),gV(E,J),E.buf.set(l,E.pos),E.pos+=J);l=eLu[e];if(typeof l==="undefined")throw O=new _.Hk("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),_.UW(O),O;l!==void 0&&(dV(E,32),dV(E,l));dV(E,40);dV(E,1);e=new Uint8Array(E.buf.buffer,
E.buf.byteOffset,E.pos);return encodeURIComponent(_.x4(e,O))};
Oi2=function(l){l=l.key||l.id;if(!l)throw Error("zf");return l};
JHT=function(l,e){l=l===void 0?{}:l;return EnV(l,e)};
XXu=function(l,e,O,E){if(E===void 0)return E=Object.assign({},l[e]||{}),O=(delete E[O],E),E={},Object.assign({},l,(E[e]=O,E));var J={},z={};return Object.assign({},l,(z[e]=Object.assign({},l[e],(J[O]=E,J)),z))};
zLx=function(l,e,O,E,J){var z=l[e];if(z==null||!z[O])return l;E=hog(z[O],E,J==="REPEATED_FIELDS_MERGE_OPTION_APPEND");J={};z={};return Object.assign({},l,(z[e]=Object.assign({},l[e],(J[O]=E,J)),z))};
_.wV=function(l,e,O){return l[e]?l[e][O]||null:null};
MJA=function(){if(biM)return biM();var l={};biM=Mx("PersistentEntityStoreDb",{objectStores:(l.EntityStore={addedAtVersion:1},l.EntityAssociationStore={addedAtVersion:2},l),shared:!1,upgrade:function(e,O){O(1)&&r3(Nx(e,"EntityStore",{keyPath:"key"}),"entityType","entityType");O(2)&&(e=Nx(e,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),r3(e,"byParentEntityKey","parentEntityKey"),r3(e,"byChildEntityKey","childEntityKey"))},
version:3});return biM()};
VJA=function(l){return _.lL(MJA(),l)};
AY=function(l){return window.Int32Array?new Int32Array(l):Array(l)};
usx=function(l){return _.lL(Zi2(),l)};
CaM=function(l){return new nO("WRONG_DATA_TYPE",{encoderVersion:l})};
onT=function(l){return l instanceof Error?new nO("UNKNOWN_ENCODE_ERROR",{originalMessage:l.message}):new nO("UNKNOWN_ENCODE_ERROR")};
$Bq=function(l){return l instanceof Error?new nO("UNKNOWN_DECODE_ERROR",{originalMessage:l.message}):new nO("UNKNOWN_DECODE_ERROR")};
WR2=function(l,e){l=l instanceof nO?l:e(l);_.UW(l);throw l;};
dBu=function(l){l=(new TextEncoder).encode(l).subarray(0,16);var e=new Uint8Array(16);e.set(l);return e};
ii2=function(l){var e=gnx[l];if(e)return e;_.hG(new _.Hk("Entity model not found.",{entityType:l}))};
_.aM=function(){wXt||(wXt=AHx());return wXt};
AHx=function(){var l,e,O;return _.V(function(E){if(E.nextAddress==1)return _.b1(E,2),_.C(E,_.bL(),4);if(E.nextAddress!=2){l=E.yieldResult;if(!l||!_.j7()||typeof _.Op.BroadcastChannel==="undefined")return E.return();e=new nnW;return E.return(new kp(l,e))}O=_.u1(E);O instanceof Error&&_.UW(O);return E.return()})};
_.IM=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1){O=l.mutations;if(!O||O.length<=0)return E.return();e&&e.dispatch(_.oM({type:"ENTITY_LOADED",payload:O}));return _.C(E,a3p(O),2)}O.length=0;_.Cl(E)})};
a3p=function(l){var e;return _.V(function(O){return O.nextAddress==1?_.C(O,_.aM(),2):(e=O.yieldResult)?_.C(O,_.mc(e,"readwrite",function(E){for(var J={},z=_.b(l),M=z.next(),Z={};!M.done;Z={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},M=z.next())Z.mutation$jscomp$4=M.value,Z.mutation$jscomp$4.entityKey&&kxu(Z.mutation$jscomp$4)&&(Z.mutationEntityType$jscomp$3=(0,_.mm.getAnyKey)(Z.mutation$jscomp$4.payload),M=void 0,Z.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(M=function(u){return function(){return _.I3T(E,
u.mutation$jscomp$4.payload[u.mutationEntityType$jscomp$3],u.mutationEntityType$jscomp$3)}}(Z)),Z.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(M=function(u){return function(){return mBg(E,u.mutation$jscomp$4.entityKey)}}(Z)),Z.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(M=function(u){return function(){return yHT(E,u.mutation$jscomp$4.entityKey,u.mutation$jscomp$4.payload[u.mutationEntityType$jscomp$3],u.mutationEntityType$jscomp$3)}}(Z)),M&&(J[Z.mutation$jscomp$4.entityKey]=
J[Z.mutation$jscomp$4.entityKey]?J[Z.mutation$jscomp$4.entityKey].then(M):M()));
return qG.all(Object.values(J))}),0):O.return()})};
kxu=function(l){var e;l=(e=l.options)==null?void 0:e.persistenceOption;return l==="ENTITY_PERSISTENCE_OPTION_PERSIST"||l==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
jtA=function(l,e){var O,E;_.V(function(J){if(J.nextAddress==1)return _.C(J,_.aM(),2);if(J.nextAddress!=3)return(O=J.yieldResult)?_.C(J,_.mc(O,"readonly",function(z){var M={},Z=Object.keys(e).map(function(u){var d=e[u]?[].concat(_.kA(e[u])):[];return pXT(z,u,d,M)});
return qG.all(Z).then(function(){return M})}),3):J.return();
E=J.yieldResult;Object.keys(E).length>0&&l.dispatch(KRd(E));_.Cl(J)})};
pXT=function(l,e,O,E){return yy(l,e,O).then(function(J){E[e]=Hip(O,J)})};
Hip=function(l,e){if(e.length!==l.length)throw Error("Cf");return e.reduce(function(O,E,J){O[l[J]]=E;return O},{})};
f3p=function(l){var e=l.filter(function(J){var z;return(J==null?void 0:(z=J.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_COMPLETE"}).length,O=l.filter(function(J){var z;
return(J==null?void 0:(z=J.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_FAILED"}).length,E=l.filter(function(J){var z;
return(J==null?void 0:(z=J.transferEntity)==null?void 0:z.transferState)&&cH8.includes(J.transferEntity.transferState)});
if(!(e||E!=null&&E.length))return 0;e=_.FRA(E)+e;l=l.length-O;return l===0?0:Math.round(e*100/l)/100};
_.FRA=function(l){var e=[];e=e.concat.apply(e,_.kA(l.filter(function(z){return z.streamEntity}).map(function(z){var M=Object.assign({},z.streamEntity),Z,u=(Z=z.transferEntity)==null?void 0:Z.transferState;
M.streamsProgress=M.streamsProgress||[];M.streamsProgress=M.streamsProgress.map(function(d){var g=Object.assign({},d);g.numBytesDownloaded=u==="TRANSFER_STATE_COMPLETE"?d.numTotalBytes:d.numBytesDownloaded;return g});
return M}).map(function(z){return z.streamsProgress})));
var O=l=0;e=_.b(e);for(var E=e.next();!E.done;E=e.next()){var J=E.value;E=Number(J.numBytesDownloaded);J=Number(J.numTotalBytes);O+=isNaN(E)?0:E;l+=isNaN(J)?0:J}return l===0?0:Math.round(O*100/l)/100};
RLL=function(l){if(!l||!l.expirationTimestamp||!l.action)return!1;var e=(0,_.VZ)()/1E3;return Number(l.expirationTimestamp)>=e};
pO=function(l){return l&&l.expirationTimestamp&&l.action?RLL(l)&&l.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.KO=function(l){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(l||"TRANSFER_STATE_UNKNOWN")};
TIu=function(l){var e=new l3V;if(l!==void 0){var O=Math.ceil(Math.log2(l.length*4+2)/7);O=O===void 0?2:O;dV(e,10);e.submessagePosStack.push(e.pos);e.submessagePosStack.push(O);e.pos+=O;gV(e,l.length*1.2);O=N9d(l,e.buf.subarray(e.pos));e.pos+O>e.buf.length&&(gV(e,O),O=N9d(l,e.buf.subarray(e.pos)));e.pos+=O;l=e.submessagePosStack.pop();O=e.submessagePosStack.pop();for(var E=e.pos-O-l;l--;){var J=l?128:0;e.view.setUint8(O++,E&127|J);E>>=7}}e=new Uint8Array(e.buf.buffer,e.buf.byteOffset,e.pos);return(new TextDecoder("utf-8")).decode(e)};
_.jo=function(l){var e=0;l=_.b(l);for(var O=l.next(),E={};!O.done;E={transferState$jscomp$3:void 0},O=l.next()){var J=O.value,z=void 0;O=(z=J.streamEntity)!=null?z:{};z=void 0;E.transferState$jscomp$3=(z=J.transferEntity)==null?void 0:z.transferState;z=J=void 0;((J=O)==null?0:(z=J.streamsProgress)==null?0:z.length)&&O.streamsProgress.forEach(function(M){return function(Z){Z=Number(M.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?Z.numTotalBytes:Z.numBytesDownloaded);isFinite(Z)&&(e+=Z)}}(E))}return e};
st2=function(l){return l.some(function(e){var O;if(!(e==null?0:(O=e.transferEntity)==null?0:O.transferState)){var E;return!(e==null?0:(E=e.policyEntity)==null?0:E.action)||e.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return cH8.includes(e.transferEntity.transferState)})};
GxL=function(l,e){if(!e)return!1;if(_.a("of_pb_en_po_ks"))return!0;var O;l=(O=_.wV(l,"offlineVideoPolicy",_.iH(e,"offlineVideoPolicy")))!=null?O:void 0;return!!l&&pO(l)};
_.Pa2=function(l){var e=["TRANSFER_STATE_COMPLETE"];e=e===void 0?BI8:e;return l.filter(function(O){var E,J;return e.includes((J=(E=O.transferEntity)==null?void 0:E.transferState)!=null?J:"TRANSFER_STATE_UNKNOWN")})};
gkt=function(l,e){if(e){var O,E=(O=_.wV(l,"playbackData",_.iH(e,"playbackData")))!=null?O:null,J;O=(J=_.wV(l,"transfer",_.iH(e,"transfer")))!=null?J:null;var z;J=(z=_.wV(l,"offlineVideoStreams",_.iH(e,"offlineVideoStreams")))!=null?z:null;var M;l=(M=_.wV(l,"offlineVideoPolicy",_.iH(e,"offlineVideoPolicy")))!=null?M:null;if(E||O||J||l)return{playbackDataEntity:E,transferEntity:O,streamEntity:J,policyEntity:l}}};
_.Ht=function(l){var e=l.playbackData;if(!e)return[];var O=[];e=_.b(Object.keys(e));for(var E=e.next();!E.done;E=e.next()){var J=E.value;if(!iot(l,_.Wt(J).entityId)&&(E=gkt(l,_.Wt(J).entityId))){var z=void 0,M=void 0;J=(M=Number((z=_.wV(l,"playbackData",J))==null?void 0:z.streamDownloadTimestampSeconds))!=null?M:(0,_.VZ)();O.push({entity:E,streamDownloadTimestamp:J})}}return O.sort(function(Z,u){var d=Z.streamDownloadTimestamp,g=u.streamDownloadTimestamp;return g===d?Z.entity.streamEntity&&!u.entity.streamEntity?
1:-1:g-d}).map(function(Z){return Z.entity})};
wyu=function(l){return _.Pa2(_.Ht(l))};
_.AJq=function(l){return _.Ht(l).filter(function(e){var O;if(((O=e.policyEntity)==null?0:O.action)&&e.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var E;if((E=e.transferEntity)==null?0:E.transferState){var J;return cH8.includes((J=e.transferEntity)==null?void 0:J.transferState)}return!0})};
iot=function(l,e){var O;return((O=_.wV(l,"downloadStatusEntity",_.iH(e,"downloadStatusEntity")))==null?void 0:O.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
nkT=function(l){var e;if(l==null?0:(e=l.playbackDataEntity)==null?0:e.key)return _.Wt(l.playbackDataEntity.key).entityId;var O;if(l==null?0:(O=l.transferEntity)==null?0:O.key)return _.Wt(l.transferEntity.key).entityId;var E;if(l==null?0:(E=l.streamEntity)==null?0:E.key)return _.Wt(l.streamEntity.key).entityId;var J;if(l==null?0:(J=l.policyEntity)==null?0:J.key)return _.Wt(l.policyEntity.key).entityId};
kaq=function(l){var e=new Set,O;l=(O=l.mainDownloadsListEntity)==null?void 0:O[aY2];var E;if(!(l==null?0:(E=l.downloads)==null?0:E.length))return e;var J;l==null||(J=l.downloads)==null||J.forEach(function(z){(z==null?0:z.videoItem)&&e.add(z.videoItem)});
return e};
ct=function(l,e){if(e){var O=_.wV(l,"mainVideoEntity",_.iH(e,"mainVideoEntity")),E=_.wV(l,"downloadStatusEntity",_.iH(e,"downloadStatusEntity")),J=_.wV(l,"ytMainChannelEntity",_.iH(e,"ytMainChannelEntity")),z={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};l=gkt(l,e);E=(E==null?void 0:E.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.a("woffle_render_failed_download_state_ks")&&(E==null?void 0:E.downloadState)==="DOWNLOAD_STATE_FAILED";!l&&E&&(l=z);if(l&&O&&
J)return Object.assign({},{videoEntity:O,channelEntity:J},l)}};
mZg=function(l,e){return IYq(l,e)==="TRANSFER_STATE_COMPLETE"&&GxL(l,e)};
yJx=function(l,e){if(!e)return!1;var O;l=(O=_.wV(l,"playbackData",_.iH(e,"playbackData")))!=null?O:void 0;return!!l&&!!l.playerResponseJson};
IYq=function(l,e){if(!e)return"TRANSFER_STATE_UNKNOWN";var O=_.wV(l,"transfer",_.iH(e,"transfer"));if(O){var E;return(E=O.transferState)!=null?E:"TRANSFER_STATE_UNKNOWN"}O=_.wV(l,"offlineOrchestrationActionWrapperEntity",_.iH(e,"offlineOrchestrationActionWrapperEntity"));l=_.wV(l,"mainVideoEntity",_.iH(e,"mainVideoEntity"));return O||l?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
pyL=function(l,e){if(!e)return"TRANSFER_STATE_UNKNOWN";if(l=_.wV(l,"transfer",_.iH(e,"transfer"))){var O;return(O=l.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
KoM=function(l,e){return e&&(l=_.wV(l,"videoPlaybackPositionEntity",_.iH(e,"videoPlaybackPositionEntity")),l==null?0:l.lastPlaybackPositionSeconds)?Number(l.lastPlaybackPositionSeconds):0};
Hox=function(l,e){return jTx(l).some(function(O){var E;return(O==null?void 0:(E=O.mainPlaylistEntity)==null?void 0:E.playlistId)===e})};
Fo2=function(l,e,O){var E=cJx(l,e);if(!E.length)return[];e=[];E=_.b(E);for(var J=E.next();!J.done;J=E.next()){J=J.value;var z=ct(l,J);O&&IYq(l,J)!=="TRANSFER_STATE_COMPLETE"||z&&e.push(z)}return e};
cJx=function(l,e){if(!e)return[];var O=_.iH(e,"mainPlaylistEntity"),E;e=(E=l.mainPlaylistEntity)==null?void 0:E[O];E=[];if(e==null||!e.videos)return E;e=_.b(e.videos);for(O=e.next();!O.done;O=e.next()){O=O.value;var J=void 0,z=void 0,M=void 0,Z=(J=l)==null?void 0:(z=J.mainPlaylistVideoEntity)==null?void 0:(M=z[O])==null?void 0:M.video;Z&&(O=_.Wt(Z).entityId)&&E.push(O)}return E};
fYu=function(l,e){if(e){var O=_.wV(l,"mainPlaylistEntity",_.iH(e,"mainPlaylistEntity")),E=_.wV(l,"mainPlaylistDownloadStateEntity",_.iH(e,"mainPlaylistDownloadStateEntity"));l=_.wV(l,"ytMainChannelEntity",_.iH(e,"ytMainChannelEntity"));if(E&&O)return Object.assign({},{mainPlaylistEntity:O,mainPlaylistDownloadStateEntity:E},!!l&&{channelEntity:l})}};
jTx=function(l){return R2p(l).sort(function(e,O){return O.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedPlaylistEntities})};
R2p=function(l){var e=l.mainPlaylistDownloadStateEntity,O=[];if(!e)return O;for(var E=_.b(Object.keys(e)),J=E.next();!J.done;J=E.next()){var z=J.value;J=fYu(l,_.Wt(z).entityId);var M=void 0;z=Number((M=e[z])==null?void 0:M.addedTimestampMillis);M=isNaN(z)?(0,_.VZ)():z;J!==void 0&&O.push({downloadedPlaylistEntities:J,addedTimestampMillis:M})}return O};
T0M=function(l){var e,O=(e=l.mainPlaylistVideoEntity)!=null?e:{};return new Set(jTx(l).reduce(function(E,J){E=E===void 0?[]:E;var z,M;J==null||(z=J.mainPlaylistEntity)==null||(M=z.videos)==null||M.forEach(function(Z){var u;(Z=(u=O[Z])==null?void 0:u.video)&&E.push(Z)});
return E},[]))};
sTg=function(l){return"downloadedMusicPlaylistEntities"in l};
GaM=function(l){return"mainPlaylistEntity"in l&&"mainPlaylistDownloadStateEntity"in l};
B08=function(l){return"videoEntity"in l&&"channelEntity"in l};
PId=function(l){var e=l.musicPlaylistDownloadMetadataEntity,O=[];if(!e)return O;for(var E=_.b(Object.keys(e)),J=E.next();!J.done;J=E.next()){J=J.value;a:{var z=l,M=_.Wt(J).entityId;if(M){var Z=_.wV(z,"musicPlaylist",_.iH(M,"musicPlaylist"));z=_.wV(z,"musicPlaylistDownloadMetadataEntity",_.iH(M,"musicPlaylistDownloadMetadataEntity"));if(Z&&z){Z={musicPlaylistEntity:Z,musicPlaylistDownloadStateEntity:z};break a}}Z=void 0}z=void 0;J=Number((z=e[J])==null?void 0:z.addedTimestampMillis);J=isNaN(J)?(0,_.VZ)():
J;Z!==void 0&&O.push({downloadedMusicPlaylistEntities:Z,addedTimestampMillis:J})}return O};
UZd=function(l){var e=new Set;l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,"musicPlaylistEntity"in O&&"musicPlaylistDownloadStateEntity"in O){O=_.b(O.musicPlaylistEntity.tracks);for(var E=O.next();!E.done;E=O.next())e.add(E.value)}return e};
Ylp=function(l,e){if(e){var O=_.wV(l,"musicTrack",_.iH(e,"musicTrack")),E=_.wV(l,"musicArtist",_.iH(e,"musicArtist"))||{};if((l=gkt(l,e))&&O&&E)return Object.assign({},{musicTrackEntity:O,musicArtistEntity:E},l)}};
h2x=function(l){var e=l.musicTrackDownloadMetadataEntity,O=[];if(!e)return[];e=_.b(Object.keys(e));for(var E=e.next();!E.done;E=e.next()){var J=E.value;E=Ylp(l,_.Wt(J).entityId);var z=void 0;J=Number((z=_.wV(l,"musicTrackDownloadMetadataEntity",J))==null?void 0:z.addedTimestampMillis);z=isNaN(J)?(0,_.VZ)():J;E!==void 0&&O.push({downloadedMusicEntities:E,addedTimestampMillis:z})}return O};
qlu=function(l,e){if(!e)return[];if(Object.values(Lox).includes(e))return tZt(l,e);e=_.iH(e,"musicPlaylist");var O;l=(O=l.musicPlaylist)==null?void 0:O[e];O=[];if(l==null||!l.tracks)return O;l=_.b(l.tracks);for(e=l.next();!e.done;e=l.next())(e=_.Wt(e.value).entityId)&&O.push(e);return O};
tZt=function(l,e){var O=new Set,E=PId(l).map(function(z){return z.downloadedMusicPlaylistEntities});
E=UZd(E);E=_.b(E);for(var J=E.next();!J.done;J=E.next())(J=_.Wt(J.value).entityId)&&O.add(J);return vkp(l).downloadedMusicEntities.filter(function(z){var M;if((M=z.musicTrackEntity)!=null&&M.videoId){z=z.musicTrackEntity;if(M=e==="PPOM"?!0:!O.has(z.videoId))b:switch(z=z.musicVideoType,e){case "PPSE":M=z==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:M=z!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}z=M}else z=!1;return z}).map(function(z){var M;
return(M=z.musicTrackEntity)==null?void 0:M.videoId})};
vkp=function(l){var e=h2x(l).sort(function(O,E){return E.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return"downloadedMusicEntities"in O?O.downloadedMusicEntities:sTg(O)?O.downloadedMusicPlaylistEntities:{}});
l=PId(l).sort(function(O,E){return E.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return"downloadedMusicEntities"in O?O.downloadedMusicEntities:sTg(O)?O.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:e,downloadedMusicPlaylistEntities:l}};
rJg=function(l,e){e=_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?qlu(l,e):cJx(l,e);if(!e.length)return"TRANSFER_STATE_UNKNOWN";e=e.map(function(O){return pyL(l,O)});
return N0x(e)};
N0x=function(l){var e=new Set(l);if(e.has("TRANSFER_STATE_FAILED")&&e.size===1)return"TRANSFER_STATE_FAILED";e.delete("TRANSFER_STATE_FAILED");if(e.has("TRANSFER_STATE_UNKNOWN")&&e.size===1)return"TRANSFER_STATE_PRE_TRANSFER";e.delete("TRANSFER_STATE_UNKNOWN");if(e.has("TRANSFER_STATE_PRE_TRANSFER")&&e.size===1||e.size===0)return"TRANSFER_STATE_PRE_TRANSFER";l=e.has("TRANSFER_STATE_TRANSFERRING");e=e.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return l||e?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
F$=function(l){var e=l.mainVideoDownloadStateEntity,O=[];if(!e)return[];e=_.b(Object.keys(e));for(var E=e.next();!E.done;E=e.next()){var J=E.value;if(!iot(l,_.Wt(J).entityId)){E=ct(l,_.Wt(J).entityId);var z=void 0,M=void 0;J=(M=Number((z=_.wV(l,"mainVideoDownloadStateEntity",J))==null?void 0:z.addedTimestampMillis))!=null?M:(0,_.VZ)();E!==void 0&&O.push({downloadedVideoEntities:E,addedTimestampMillis:J})}}return O};
DZd=function(l){return F$(l).sort(function(e,O){return O.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedVideoEntities})};
_.QTu=function(l){var e=T0M(l),O=_.fO(l),E=kaq(l),J=F$(l).filter(function(M){var Z,u;if((M==null?void 0:(Z=M.downloadedVideoEntities)==null?void 0:(u=Z.transferEntity)==null?void 0:u.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var d,g;M=M==null?void 0:(d=M.downloadedVideoEntities)==null?void 0:(g=d.videoEntity)==null?void 0:g.key;return _.a("kevlar_use_library_entity")?M&&(E.has(M)||O[M]):M&&!e.has(M)}),z=R2p(l).filter(function(M){return rJg(l,M.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.kA(J),_.kA(z)).sort(function(M,Z){return Z.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return Slt(M)})};
xZ8=function(l,e){if(e&&GxL(l,e)){var O,E,J=(E=(O=_.wV(l,"playbackData",_.iH(e,"playbackData")))!=null?O:void 0)==null?void 0:E.playerResponseJson;if(J){try{var z=JSON.parse(J);var M=_.wV(l,"transfer",_.iH(e,"transfer")),Z=KoM(l,e);Z&&(z=Object.assign({},z,{playerConfig:Object.assign({},z.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+Z*1E3}}})}));z.cotn=M==null?void 0:M.cotn}catch(u){}return z}}};
_.OpA=function(l){var e,O,E;l=(E=(O=((e=l.downloadsPageViewConfigurationEntity)!=null?e:{})[lnL])==null?void 0:O.smartDownloadsOptInBannerVisibility)!=null?E:{};var J;return(J=_.I(l,efq))!=null?J:{}};
_.fO=function(l){var e,O,E;l=(E=(O=((e=l.mainDownloadsListEntity)!=null?e:{})[_.EUx])==null?void 0:O.downloads)!=null?E:[];e={};O=_.b(l);for(E=O.next();!E.done;E=O.next())l=void 0,e[(l=E.value.videoItem)!=null?l:""]=!0;return e};
JK8=function(l){var e=_.fO(l);if(Object.keys(e).length===0)return!1;var O=l.mainVideoEntity;if(!O)return!0;O=_.b(Object.keys(O));for(var E=O.next();!E.done;E=O.next()){E=E.value;var J=_.Wt(E).entityId;if(e[E]&&!iot(l,J))return!1}return!0};
_.RM=function(l){var e=_.fO(l);return F$(l).sort(function(O,E){return O.addedTimestampMillis-E.addedTimestampMillis}).map(function(O){return O.downloadedVideoEntities}).filter(function(O){var E;
return(O=O==null?void 0:(E=O.videoEntity)==null?void 0:E.key)&&!!e[O]})};
Slt=function(l){return"downloadedVideoEntities"in l?l.downloadedVideoEntities:"downloadedPlaylistEntities"in l?l.downloadedPlaylistEntities:{}};
XCx=function(l){var e=_.fO(l),O=T0M(l),E=F$(l).filter(function(J){var z,M;return(J=J==null?void 0:(z=J.downloadedVideoEntities)==null?void 0:(M=z.videoEntity)==null?void 0:M.key)&&!e[J]&&!O.has(J)});
l=R2p(l);return[].concat(_.kA(E),_.kA(l)).sort(function(J,z){return z.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return Slt(J)})};
_.T4=function(l){if(!_.a("kevlar_use_library_entity"))return XCx(l);var e=F$(l).filter(function(E){var J,z;if(J=E=E==null?void 0:(J=E.downloadedVideoEntities)==null?void 0:(z=J.videoEntity)==null?void 0:z.key){var M,Z,u;J=((Z=(M=l.mainDownloadsListEntity)==null?void 0:M[aY2])==null?0:(u=Z.downloads)==null?0:u.length)?kaq(l).has(E):!1}return J}),O=R2p(l);
return[].concat(_.kA(e),_.kA(O)).sort(function(E,J){return J.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return Slt(E)})};
zfq=function(l){var e=_.fO(l),O=T0M(l);return DZd(l).filter(function(E){var J;return(E=E==null?void 0:(J=E.videoEntity)==null?void 0:J.key)&&!e[E]&&!O.has(E)})};
bpt=function(l){if(!_.a("kevlar_use_library_entity"))return zfq(l);var e=_.fO(l),O=kaq(l);return DZd(l).filter(function(E){var J;return(E=E==null?void 0:(J=E.videoEntity)==null?void 0:J.key)&&!e[E]&&O.has(E)})};
MK8=function(l,e){e=_.iH(e,"settingEntity");var O,E,J;return!!((J=(E=((O=l.settingEntity)!=null?O:{})[e])==null?void 0:E.settingOptionValue)!=null?J:{}).boolValue};
_.sn=function(l){var e=_.RM(l);if(st2(e))return 0;var O=[];e=_.b(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;var J=void 0,z=void 0;if((J=E)==null?0:(z=J.videoEntity)==null?0:z.key)J=_.Wt(E.videoEntity.key).entityId,E=l,J=_.iH(J,"mainVideoDownloadStateEntity"),E=_.wV(E,"mainVideoDownloadStateEntity",J),(E=Number(E==null?void 0:E.addedTimestampMillis))&&O.push(E)}return Math.max.apply(Math,_.kA(O))};
_.G4=function(l){return l.ui.richGridMiniMode};
_.Bt=function(l){return l.ui.richGridItemsPerRow};
_.VKT=function(l){return l.ui.richGridSlimItemsPerRow};
_.ZpL=function(l){return l.ui.guideIsExpanded};
_.Pt=function(l){return l.ui.miniplayerIsActive};
_.unM=function(l){return l.ui.singleOptionSurveyIsActive};
_.Un=function(l){return l.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.CS8=function(l){return l.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.oU8=function(l){return l.ui.inlinePreviewIsActive};
_.$Sd=function(l){return l.ui.inlinePreviewIsEnabled};
_.WVT=function(l){return l.ui.miniplayerPlaybackState};
dSL=function(l){return l.ui.isOnline};
_.gUT=function(l){return l.ui.frostedGlassMode};
_.Yp=function(l,e){return IYq(l.entities,e)};
_.hY=function(l,e){return rJg(l.entities,e)};
ipT=function(l,e){var O;if(e){var E;l=(E=_.wV(l.entities,"offlineVideoPolicy",_.iH(e,"offlineVideoPolicy")))==null?void 0:E.action}else l=void 0;return(O=l)!=null?O:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
wCq=function(l,e){var O;e?(l=_.wV(l.entities,"offlineVideoPolicy",_.iH(e,"offlineVideoPolicy")),l=Number(l==null?void 0:l.expirationTimestamp)):l=void 0;return(O=l)!=null?O:0};
_.AKT=function(l){return _.Ht(l.entities).length};
nUp=function(l,e){return ct(l.entities,e)};
anA=function(l,e){return fYu(l.entities,e)};
LO=function(l,e){return(l=ct(l.entities,e))?_.FRA([l]):0};
_.kWW=function(l,e){var O=_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(O){var E=l.entities;var J=qlu(E,e);if(J.length){var z=[];J=_.b(J);for(var M=J.next();!M.done;M=J.next())(M=Ylp(E,M.value))&&z.push(M);E=z}else E=[]}else E=Fo2(l.entities,e);var Z;if(O){var u=l.entities;e?(e=_.iH(e,"musicPlaylist"),u=(Z=u.musicPlaylist)==null?void 0:Z[e],Z=u!=null&&u.tracks?u.tracks.length:0):Z=0}else Z=l.entities,e?(e=_.iH(e,"mainPlaylistEntity"),Z=(u=Z.mainPlaylistEntity)==null?void 0:u[e],Z=Z!=null&&Z.videos?
Z.videos.length:0):Z=0;return E.length!==Z?0:E?f3p(E):0};
_.Ind=function(l){return l.download.isLeaderTab};
_.mSA=function(l,e,O){if(!e&&O){var E=l.entities;if(O){var J=TIu(O),z,M;e=(M=(z=_.wV(E,"offlineabilityEntity",_.iH(J,"offlineabilityEntity")))==null?void 0:z.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else z=l.entities,e?(M=TIu(e),e=(J=(E=_.wV(z,"offlineabilityEntity",_.iH(M,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?J:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return e};
yKd=function(l,e){l=l.entities;if(e){e=TIu(e);var O,E;e=(E=(O=_.wV(l,"offlineabilityEntity",_.iH(e,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?E:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else e="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return e};
_.pCg=function(l){var e=l.entities;l=dSL(l);var O=MK8(e,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.a("kevlar_modern_downloads_page")&&O)var E=!1;else{var J,z;e=(z=(J=((E=e.downloadsPageViewConfigurationEntity)!=null?E:{})[lnL])==null?void 0:J.smartDownloadsOptInBannerVisibility)!=null?z:{};E=l?!!e.visibleWithConnection:!!e.visibleWithoutConnection}return E};
_.KV8=function(l){return MK8(l.entities,"SMART_DOWNLOADS_ENABLED")};
_.j62=function(l){return JK8(l.entities)};
Hpq=function(l){return _.RM(l.entities).every(function(e){var O;return(e==null?void 0:(O=e.transferEntity)==null?void 0:O.transferState)&&!cH8.includes(e.transferEntity.transferState)})};
_.cKt=function(l,e){return iot(l.entities,e)};
FVM=function(l,e){if(e){var O,E;l=(E=(O=_.wV(l.entities,"downloadStatusEntity",_.iH(e,"downloadStatusEntity")))==null?void 0:O.downloadState)!=null?E:"DOWNLOAD_STATE_UNKNOWN"}else l="DOWNLOAD_STATE_UNKNOWN";return l};
tY=function(l,e){return KoM(l.entities,e)};
s6V=function(l){l=_.fn8(l);var e=l.hours===void 0?0:l.hours,O=l.minutes===void 0?0:l.minutes,E=l.seconds===void 0?0:l.seconds,J=e>0;l=[];J&&(e=_.Rfd(e),l.push(e));e=J;e=e===void 0?!1:e;O=(["af","be","lt"].includes(_.qu)||e)&&O<10?Ttq().format(O):(new Intl.NumberFormat("en-u-nu-latn")).format(O);l.push(O);O=Ttq().format(E);l.push(O);O=":";"da fi id si sr sr-Latn".split(" ").includes(_.qu)&&(O=".");return l.join(O)};
_.fn8=function(l){var e=l.hours||0,O=l.minutes||0,E=l.seconds||0;e=E+O*60+e*3600+(l.days||0)*86400+(l.weeks||0)*604800+(l.months||0)*2629800+(l.years||0)*31557600;if(e<=0)return{hours:0,minutes:0,seconds:0};l=e;e=Math.floor(l/3600);l%=3600;O=Math.floor(l/60);E=Math.floor(l%60);return{hours:e,minutes:O,seconds:E}};
_.Rfd=function(l){l=(new Intl.NumberFormat("en-u-nu-latn")).format(l);var e=["fr"],O="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(_.qu)?l.replace(",","\u00a0"):e.includes(_.qu)?l.replace(",","\u202f"):O.includes(_.qu)?l.replace(",","."):l};
Ttq=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
GWg=function(l){try{return(new _.vt(5)).format(l)}catch(e){}};
Nu=function(l){return{thumbnailOverlayDownloadingRenderer:{state:l}}};
BtA=function(l){if(l=GWg(l))return{thumbnailOverlaySidePanelRenderer:{text:_.Zr(l),icon:{iconType:"PLAYLISTS"}}}};
PSV=function(){var l=_.ml("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Zr(l),icon:{iconType:"PLAY_ALL"}}}};
USu=function(l){l=_.rV(l,2);return _.qu!=="ru"&&_.qu!=="es_419"&&_.qu!=="es-419"&&_.qu!=="es"&&_.qu!=="es_US"&&_.qu!=="es-US"&&_.qu!=="fr"&&_.qu!=="pl"&&_.qu!=="it"&&_.qu!=="nl"&&_.qu!=="uk"&&_.qu!=="fr_CA"&&_.qu!=="fr-CA"||l===""?l:l[0].toLocaleUpperCase()+l.substring(1)};
hfd=function(l){return function(e){var O=l(),E=_.rV(e,O.dateFormat);e=_.rV(e,O.timeFormat);var J=Y1M.DATETIMEFORMATS[O.joinerStyle];J=J.replace(/'(?!')/g,"");J=J.replace("{0}",e);J=J.replace("{1}",E);return O.capitalize(J)}};
LVu=function(l){return l?typeof l.seconds==="string"&&(l.nanos===void 0||typeof l.nanos==="number"):!1};
tKt=function(l){return new Date(Number(l.seconds)*1E3+(l.nanos||0)*1E-6)};
_.rV=function(l,e){if(typeof l.getTime==="function")l={date:l};else if(LVu(l))l={date:tKt(l)};else if(typeof LVu(l.timestamp)&&typeof l.i18nInternalSecondsEastOfUtc==="number")l={date:tKt(l.timestamp),timeZone:Dr(-l.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(l));var O=l;l=O.date;O=O.timeZone;e=q1M(e).format(l,O);_.qu==="zh-TW"&&(l=O?Number(q1M("H").format(l,O)):l.getHours(),e=l<5?e.replace("\u4e0a\u5348","\u51cc\u6668"):l<8?e.replace("\u4e0a\u5348","\u65e9\u4e0a"):l<12?
e.replace("\u4e0a\u5348","\u4e0a\u5348"):l<13?e.replace("\u4e0b\u5348","\u4e2d\u5348"):l<19?e.replace("\u4e0b\u5348","\u4e0b\u5348"):e.replace("\u4e0b\u5348","\u665a\u4e0a"));return e};
q1M=function(l){if(vUW.has(l))return vUW.get(l);var e=Ntt(l);e=rKT(e);DSA!==!0&&(DSA=!0);S1t=!0;S1t=!1;e=new So(e,Y1M);vUW.set(l,e);return e};
Ntt=function(l){return(new So(l,Y1M)).patternParts_.map(function(e){return e.type===0?"'"+e.text+"'":e.text}).join("")};
rKT=function(l){return _.qu==="en"||_.qu==="es_US"||_.qu==="es-US"?l:l.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(e,O,E){return"H".repeat(O.length)+E})};
XJq=function(l,e){Q6x||(_.Qy=_.xSM,Q6x=new l1V);var O=Q6x;a:if(l=eIL(l),e=eIL(e||new Date),l>e)O=l.getTime()-e.getTime()>6048E5?_.rV(l,1):O62(l);else{for(var E=0;Ewg(l,12*(E+1))<e;)++E;if(E>0)O=O.format(-E,0);else{for(E=0;Ewg(l,E+1)<e;)++E;if(E>0)O=O.format(-E,2);else{l=e.getTime()-l.getTime();e=_.b(J7A);for(E=e.next();!E.done;E=e.next()){E=E.value;var J=E.unit,z=Math.floor(l/E.unitDuration);if(z>=(E.threshold===void 0?1:E.threshold)){O=O.format(-z,J);break a}}O=O.format(-0,7)}}}return O};
eIL=function(l){if(typeof l.getTime==="function")return l;if(LVu(l))return tKt(l);throw Error("Ef`"+JSON.stringify(l));};
Ewg=function(l,e){for(var O=0,E;;++O)if(E=new Date(l.getFullYear(),l.getMonth()+e,l.getDate()-O,l.getHours(),l.getMinutes(),l.getSeconds()),E.getMonth()===(l.getMonth()+e)%12)return E};
_.xp=function(l){return{runs:[{text:l}]}};
_.lG=function(l){if(l&&l.simpleText)return l.simpleText;var e="";if(l&&l.runs)for(var O=0;O<l.runs.length;O++)l.runs[O].text&&(e+=l.runs[O].text);return e};
b6x=function(l,e,O,E){return l.videoEntity&&!l.policyEntity&&O!=="DOWNLOAD_STATE_FAILED"?[Nu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:pO(l.policyEntity)&&e!=="TRANSFER_STATE_FAILED"&&e!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?e==="TRANSFER_STATE_PAUSED_BY_USER"?[Nu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.KO(e)?[Nu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:l.videoEntity.lengthSeconds?zIA(l.videoEntity.lengthSeconds,E):[]:
[Nu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
zIA=function(l,e){var O=[{thumbnailOverlayTimeStatusRenderer:{text:_.Zr(s6V({seconds:l})),style:"DEFAULT"}}];e&&(l=e<=0||l<=0?0:e>=l?100:Math.ceil(e*100/l),l>0&&O.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:l}}));return O};
M9g=function(l,e,O,E,J){if(e==="TRANSFER_STATE_UNKNOWN"||!l)return{};if(_.KO(e)||e==="TRANSFER_STATE_PRE_TRANSFER")var z=[Nu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var M,Z;if(e==="TRANSFER_STATE_COMPLETE"&&((M=l.mainPlaylistEntity)==null?0:(Z=M.videos)==null?0:Z.length)){if(_.a("web_modern_collections_v2")){var u;var d=(z=l.mainPlaylistEntity)==null?void 0:(u=z.videos)==null?void 0:u.length;z=(z=GWg(d))?{thumbnailOverlayBottomPanelRenderer:{text:_.Zr(z),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var g;z=BtA((d=l.mainPlaylistEntity)==null?void 0:(g=d.videos)==null?void 0:g.length)}var w;z=[PSV(),Object.assign({},(w=z)!=null?w:{})]}else z=[]}w=z;a:if(e==="TRANSFER_STATE_PRE_TRANSFER")O=uH(_.ml("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE")O=uH(_.ml("WAITING_TO_DOWNLOAD"));else if(_.KO(e))O=Math.floor(O*100).toString(),O=uH(_.ml("DOWNLOADING_PERCENT",{percent:O},"Downloading... "+O+"%"));else{if(E&&(_.a("playlist_is_offline_selector_killswitch")&&
(J=_.V2().resolve(_.xP).isNetworkAvailable()),J)){O=YSg(_.ml("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),P_q(E));break a}O=void 0}e=e==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.ml("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},w.length?{thumbnailOverlays:w}:{},O?{viewPlaylistText:O}:{viewPlaylistText:_.xp("")},e.length?{badges:e}:{})};
V9q=function(l,e,O,E,J,z){if(e==="TRANSFER_STATE_UNKNOWN"||!l)return{};if(E==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var M=b6x(l,e,E);if(l.videoEntity&&!l.policyEntity&&E!=="DOWNLOAD_STATE_FAILED"){var Z=_.ml("WAITING_TO_DOWNLOAD");if(Z)return{shortViewCountText:_.xp(Z),publishedTimeText:void 0,thumbnailOverlays:M}}if(!pO(l.policyEntity)){z=l.policyEntity&&!RLL(l.policyEntity)?_.ml("DOWNLOAD_EXPIRED",{},"Download expired"):
_.ml("TRANSFER_FAILED",{},"Download failed");var u;if((u=l.policyEntity)==null?0:u.shortMessageForDisabledAction)z=l.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:uH(z),publishedTimeText:void 0,thumbnailOverlays:M}}if(e==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.xp(_.ml("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:M};if(e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.xp(_.ml("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:M};if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(u=_.ml("WAITING_TO_DOWNLOAD"),E==="DOWNLOAD_STATE_PAUSED"&&(u=_.ml("DOWNLOAD_PAUSED",{},"Download paused")),u))return{shortViewCountText:_.xp(u),publishedTimeText:void 0,thumbnailOverlays:M};if(_.KO(e))return l=Math.floor(O*100).toString(),{shortViewCountText:_.xp(_.ml("DOWNLOADING_PERCENT",{percent:l},"Downloading... "+l+"%")),publishedTimeText:void 0,thumbnailOverlays:M};e=void 0;l.videoEntity.publishedTimestampMillis&&
(e=new Date,J&&(e=new Date(J)),e=uH(XJq(new Date(Number(l.videoEntity.publishedTimestampMillis)),e)));J=[];_.a("kevlar_woffle_badge_killswitch")||(J=[{metadataBadgeRenderer:{label:_.ml("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var d;l=uH((d=l.videoEntity.localizedStrings)==null?void 0:d.viewCount);return Object.assign({},z?{shortViewCountText:void 0}:{shortViewCountText:l},z?{}:{publishedTimeText:e},{badges:J,thumbnailOverlays:M})};
u5L=function(l,e){l=l===void 0?Z68:l;switch(e.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:e.payload.playlistId,inviteLinkURL:e.payload.inviteLinkUrl};default:return l}};
ow8=function(l,e){l=l===void 0?Cyx:l;switch(e.type){case "SET_CURRENT_FORM_ID":return e=e.payload.formId,l.currentFormId===e?l:{currentFormId:e,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var O=e.payload;e=O.groupId;O=O.command;if(l.currentFormId){var E=Object.assign({},l.commandsMap);E[e]=O;l=Object.assign({},l,{commandsMap:E})}return l;case "RESET_COMMAND_MAP":return Object.assign({},l,{commandsMap:{}});default:return l}};
WgV=function(l,e){l=l===void 0?$gd:l;switch(e.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},l,{guideIsExpanded:e.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},l,{scrollAtTop:e.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},l,{guideIsVisibleButNotPersistent:e.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},l,{miniplayerIsActive:e.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},l,{singleOptionSurveyIsActive:e.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},l,{slimlineSurveyRatingSelectedIndex:e.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},l,{richGridMiniMode:e.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},l,{richGridItemsPerRow:e.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},l,{richGridSlimItemsPerRow:e.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},l,{richGridContainerWidth:e.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},l,{richGridStyle:e.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},l,{currentPageType:e.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},l,{inlinePreviewIsActive:e.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},l,{inlinePreviewIsEnabled:e.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},l,{darkModeIsEnabled:e.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
l,{miniplayerPlaybackState:e.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},l,{tabGesturesIsActive:e.payload});case "SET_ONLINE_STATUS":return Object.assign({},l,{isOnline:e.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},l,{chipBarIsSticky:e.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},l,{frostedGlassMode:e.payload});default:return l}};
gwM=function(l,e){l=l===void 0?dgp:l;switch(e.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},l,{transcription:e.payload});case "SET_OVERLAY_STATE":return Object.assign({},l,{overlay:e.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return l}};
pJg=function(){return n_(Object.assign({},{continuation:i6u,entities:JHT,download:wJ2,reportChannelAbuse:A72,share:nwT,talkToRecs:a1M,ui:WgV,voiceSearch:gwM,watch:kZ8,ypc:I1q,shorts:mgu,radioButtonGroup:ow8,collabInviteLink:u5L},y7q))};
H6L=function(){return _.a("web_player_entities_middleware")?new eT(pJg(),[Kg2,jnT]):new eT(pJg(),[Kg2])};
_.Om=function(){c7T||(c7T=H6L());return c7T};
Fgg=function(l,e,O){if(l.length)return{titleText:_.Zr(e!=null?e:_.ml("DOWNLOADS",void 0,"Downloads")),contents:l.map(function(E){var J=E.videoEntity;E={videoId:J.videoId,title:uH(J.title),shortBylineText:uH(E.channelEntity.title),thumbnail:J.thumbnail};var z=J.videoId?tY(_.Om().getState(),J.videoId):0;J.videoId&&O?E.navigationEndpoint=_.Vy(J.videoId,O,void 0,void 0,z):J.videoId&&(E.navigationEndpoint=B9g(J.videoId,z,J.lengthSeconds));J.lengthSeconds&&(E.thumbnailOverlays=zIA(J.lengthSeconds,z));return{playlistPanelVideoRenderer:E}}),
totalVideos:l.length}};
f1x=function(l){return(l=(0,_.mm.getValueByKeys)(l,"playlistId"))?{playlistId:l}:null};
RIt=function(){return{}};
TnA=function(l,e){return new _.kE(function(O,E){l.then(function(J){if(J){if(J=e(J))return O(J);E()}},E)})};
snd=function(l){var e,O,E,J=(e=l.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(E=O.autoplay)==null?void 0:E.autoplay,z,M,Z;e=(z=l.contents)==null?void 0:(M=z.twoColumnWatchNextResults)==null?void 0:(Z=M.playlist)==null?void 0:Z.playlist;return J&&e&&e.playlistId?{rawResponse:l,autoplayRenderer:J,playlistPanelRenderer:e,playlistId:e.playlistId}:null};
BnV=function(l){var e=e===void 0?"UNKNOWN_INTERFACE":e;if(l.length===1)return l[0];var O=GZ2[e];if(O){O=new RegExp(O);for(var E=_.b(l),J=E.next();!J.done;J=E.next())if(J=J.value,O.exec(J))return J}var z=[];Object.entries(GZ2).forEach(function(M){var Z=_.b(M);M=Z.next().value;Z=Z.next().value;e!==M&&z.push(Z)});
O=new RegExp(z.join("|"));l.sort(function(M,Z){return M.length-Z.length});
E=_.b(l);for(J=E.next();!J.done;J=E.next())if(J=J.value,!O.exec(J))return J;return l[0]};
_.Em=function(l){return"/youtubei/v1/"+BnV(l)};
_.J$=function(l){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:l}}}}};
_.Xv=function(l){return _.J$(_.xp(l))};
Pyd=function(l,e){var O={mode:"NORMAL"};l&&(O.autoplayVideo=l.navigationEndpoint,O.nextButtonVideo=l.navigationEndpoint);e&&(O.previousButtonVideo=e.navigationEndpoint);return O};
hI2=function(l,e,O){if(!O||!O.sets)return{sets:[Pyd(l,e)]};var E=O.sets.find(function(M){return M.mode==="NORMAL"}),J=(0,_.mm.unsafeClone)(O);
if(!E)return J.sets.push(Pyd(l,e)),J;if(!l)return O;E=_.mm.getValueByKeys.apply(null,[E].concat(_.kA(UgV)));var z=_.mm.getValueByKeys.apply(null,[l].concat(_.kA(Y5x)));if(E===z)return O;J.sets=J.sets.filter(function(M){return M.mode!=="NORMAL"});
J.sets.push(Pyd(l,e));return J};
Lgp=function(l){return!!l.playlistPanelVideoRenderer&&!l.playlistPanelVideoRenderer.unplayableText};
t9u=function(l){return!!l.playlistPanelVideoRenderer&&!!l.playlistPanelVideoRenderer.title};
q5W=function(l,e){if(e.contents&&!(l>=e.contents.length)&&(l=e.contents.slice(l).find(Lgp)))return l.playlistPanelVideoRenderer};
vwt=function(l,e){if(e.contents)return(e=e.contents.find(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId===l}))?e.playlistPanelVideoRenderer:void 0};
Nnq=function(l,e){return e.contents?e.contents.findIndex(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId===l}):-1};
r7u=function(l,e){return e.contents?e.contents.findIndex(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.playlistSetVideoId===l}):-1};
Dgd=function(l,e){l.contents&&e!==-1&&l.contents.splice(e,1).length===1&&l.totalVideos!==void 0&&(--l.totalVideos,delete l.videoCountText)};
_.S5V=function(l){var e=[];if(!l||!l.contents)return e;l=_.b(l.contents);for(var O=l.next();!O.done;O=l.next())O=O.value,O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId&&e.push(O.playlistPanelVideoRenderer.videoId);return e};
_.Qnu=function(l){if(l&&l.contents)return(l=l.contents.find(function(e){return!!e.playlistPanelVideoRenderer&&!!e.playlistPanelVideoRenderer.selected})||l.contents[l.currentIndex])?l.playlistPanelVideoRenderer:void 0};
xgx=function(l,e,O,E,J,z,M){J=J===void 0?!1:J;z=z===void 0?!1:z;M=M===void 0?!1:M;if(l.contents&&l.contents.length!==0){E&&(l.contents=l.contents.filter(E));E=l.contents.length;for(var Z=0;Z<E;Z++){var u=l.contents[Z].playlistPanelVideoRenderer;u&&(Z===e?(z&&delete u.menu,u.indexText=_.xp("\u25b6")):J||l.isInfinite||u.indexText===void 0?delete u.indexText:u.indexText=_.xp((Z+1+O).toString()))}l.currentIndex=e+O;M&&(delete l.videoCountText,l.totalVideos=E)}};
_.z_=function(l){l=llT(l);if(l){var e=l.length;var O=-24%e;O<0&&(O=e+O);l=l.slice(e-O)+l.slice(0,e-O)}else l="";O="";for(e=0;e<l.length&&l[e]!==ex2;e++)O+=l[e];return O};
_.OQd=function(l,e){var O=document.body;e=e===void 0?function(Z){return Z}:e;
var E,J=null;l=_.b(l);for(E=l.next();!E.done;E=l.next()){var z=E.value;E=void 0;var M=(E=z[2])!=null?E:"div";E=document.createElement(M);J||(J=E);M=z[0];z=z[1];M&&(E.id=e(M));if(z)for(z=_.b(z),M=z.next();!M.done;M=z.next())E.classList.add(e(M.value));O.appendChild(E);O=E}return[J,O]};
E5M=function(l,e){for(var O="",E=0;E<e;E++)O+=l.charAt(Math.floor(Math.random()*l.length));return O};
bG=function(l){return E5M("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",l)};
Mv=function(l){return E5M("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",l)};
VF=function(l){return E5M("0123456789",l)};
ZC=function(){var l=performance.now(),e=new Date;var O="2."+e.getFullYear()+String(e.getMonth()+1).padStart(2,"0")+String(e.getDate()).padStart(2,"0");for(var E,J=Math.floor(Math.random()*11)+15,z=[],M=0;M<J;M++)z.push(Math.floor(Math.random()*26476865)+24547720);E=z.join(",");var Z=bG(10),u=bG(100),d=bG(102),g=bG(106),w=bG(108),n=bG(11),k=bG(1140),y=bG(123),c=bG(14),f=bG(16),P=bG(1900),h=bG(23),N=bG(26),t=bG(34),r=bG(397),D=bG(44),b2=bG(5),$V=bG(72),gT=bG(74),mx=bG(75),jM=bG(88),cx=bG(91),tq="rr1---sn-t0a7sn7d rr2---sn-ntq7yney rr1---sn-5hnekn7k rr1---sn-q4fl6nlz rr1---sn-5hne6nsd rr1---sn-q4fl6nsk rr2---sn-aigzrn7d rr2---sn-q4fl6n66 rr1---sn-ntqe6n7r rr3---sn-q4fl6n6z rr5---sn-q4fzenee rr5---sn-q4fl6nss rr1---sn-hgn7yn7e rr3---sn-q4flrnlz rr1---sn-ntqe6nee rr4---sn-q4fl6nsd rr1---sn-t0a7lnee rr1---sn-q4fl6nz7 rr1---sn-ntqe6n76 rr2---sn-aigl6nze".split(" ");
var Px=tq[Math.floor(Math.random()*tq.length)];var S0=(new Date("2010-01-01")).getTime();var QH=(new Date(S0+Math.random()*((new Date).getTime()-S0))).toISOString().split("T")[0];for(var pR,oq=[],ZS=0;ZS<4;ZS++)oq.push(Math.floor(Math.random()*100));pR=oq.join(".");var Ou=Number(VF(5)),uq=Number(VF(6)),ZV=Number(VF(7)),jO=Number(VF(9)),V8=VF(1),AC=VF(10),Fk=VF(16),tu=VF(19),kq=VF(2),Ni=VF(20),YA=VF(21),v6=VF(3),Xk=VF(4),P6=VF(5),wf=VF(6),w1=VF(7),KR=VF(8),CP=VF(9);var z1=E5M("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var bz=[Mv(5),Mv(5),Mv(5)].join("%2C"),wp=[VF(3),VF(5),VF(5)].join("%2C"),ti=Mv(0),Yq=Mv(1),mH=Mv(10),QC=Mv(108),Ap=Mv(11),V5=Mv(12),Tq=Mv(13),lt=Mv(14),pH=Mv(15),RH=Mv(16),Mr=Mv(17),ad=Mv(18),Tg=Mv(19),YV=Mv(2),d1=Mv(20),z0=Mv(22),Hv=Mv(23),oi=Mv(24),iq=Mv(266),W6=Mv(3),Au=Mv(30),uk=Mv(34),zS=Mv(35),gG=Mv(36),Al=Mv(4),Tu=Mv(40),AD=Mv(43),vk=Mv(47),p1=Mv(5),LL=Mv(6),Mo=Mv(7),Bh=Mv(75),KP=Mv(8),xe=Mv(80),Iz=Mv(9),CJ="https://www."+Mv(12)+".com",cn={},Fi={},fC={},h48={},Rl={},rz={},Do={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:E}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:O},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Mv(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:O},{key:"client.name",value:"WEB"},{key:"client.fexp",value:E}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:YA+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Mv(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Tu,ypcGetOfflineUpsellEndpoint:{params:xe}},trackingParams:zS+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&cnr="+kq+"&ratebypass=yes&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&c=WEB&txp="+w1+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:uq,width:640,height:360,lastModified:Fk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:w1,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+wp+"&mn="+
bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&cnr="+kq+"&ratebypass=yes&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&c=WEB&txp="+w1+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+QC+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:uq,width:1280,
height:720,lastModified:Fk,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:w1,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+wp+"&mn="+bz+"&ms="+
bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+CP+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&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="+w,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:ZV,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:CP,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ZV,approxDurationMs:w1},{itag:248,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+wp+"&mn="+bz+"&ms="+bz+"&mv="+
Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+CP+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:ZV,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:CP,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ZV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:399,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+CP+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&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="+w,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:ZV,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:CP,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ZV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:136,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+CP+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:ZV,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:CP,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:uq,approxDurationMs:w1},{itag:247,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+wp+"&mn="+
bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+CP+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:ZV,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:CP,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:398,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+CP+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:ZV,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:CP,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:135,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:uq,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:uq,approxDurationMs:w1},{itag:244,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+wp+"&mn="+
bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+QC+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:uq,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:397,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&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="+w,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:uq,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:134,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:uq,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:uq,highReplication:!0,approxDurationMs:w1},{itag:243,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:uq,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:396,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:uq,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:133,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:uq,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:uq,approxDurationMs:w1},{itag:242,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+wp+"&mn="+
bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:uq,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:395,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:uq,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:uq,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:160,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:uq,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ou,approxDurationMs:w1},{itag:278,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+wp+"&mn="+
bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:uq,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ou,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:394,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&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="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=video%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&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="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ou,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ou,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:w1},{itag:140,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=audio%2Fmp4&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:uq,
initRange:{start:"0",end:"631"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:uq,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:w1,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+
kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=audio%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+w1+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Ou,initRange:{start:"0",end:"265"},indexRange:{start:v6,
end:Xk},lastModified:Fk,contentLength:w1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ou,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:w1,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=audio%2Fwebm&ns="+
oi+"&gir="+W6+"&clen="+w1+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+w1+"&n="+RH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Ou,initRange:{start:"0",end:"265"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:w1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ou,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:w1,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Px+".googlevideo.com/videoplayback?expire="+AC+"&ei="+h+"&ip="+pR+"&id=o-AF"+AD+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+wp+"&mn="+bz+"&ms="+bz+"&mv="+Yq+"&mvi="+V8+"&pl="+kq+"&initcwndbps="+w1+"&siu="+V8+"&spc="+D+"&vprv="+V8+"&svpuc="+V8+"&mime=audio%2Fwebm&ns="+oi+"&gir="+W6+"&clen="+KR+"&dur="+KR+"&lmt="+Fk+"&mt="+AC+"&fvip=3&keepalive="+W6+"&c=WEB&txp="+
w1+"&n="+RH+"&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="+w,mimeType:'audio/webm; codecs="opus"',bitrate:uq,initRange:{start:"0",end:"265"},indexRange:{start:v6,end:Xk},lastModified:Fk,contentLength:KR,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:uq,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:w1,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="+CP+"&docid="+n+"&ei="+h+"&feature="+Z+"&fexp="+ti+"&ns="+YV+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yq+"&el="+mH+"&len="+Xk+"&of="+z0+
"&uga="+kq+"&vm="+iq},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+CP+"&docid="+n+"&ei="+h+"&feature="+Z+"&fexp="+ti+"&ns="+YV+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yq+"&el="+mH+"&len="+Xk+"&of="+z0+"&uga="+kq+"&vm="+iq},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+CP+"&docid="+n+"&ei="+h+"&feature="+Z+"&fexp="+ti+"&ns="+YV+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Yq+"&el="+mH+"&len="+Xk+"&of="+z0+"&uga="+kq+"&vm="+iq},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+h+"&m="+jM+"&oid="+z0+"&plid="+f+"&pltype="+Mo+"&ptchn="+z0+"&ptk="+c+"&video_id="+n},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+CP+"&docid="+n+"&ei="+h+"&event="+lt+"&feature="+Z+"&fexp="+ti+"&ns="+YV+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yq},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+n+"&ei="+h+"&feature="+
Z+"&len="+Xk+"&ns="+YV+"&plid="+f+"&ver="+V8,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+n+"&caps="+W6+"&opi="+CP+"&xoaf="+V8+"&hl="+YV+"&ip="+pR+"&ipbits="+V8+"&expire="+AC+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+pR+"&key="+W6+"&lang="+b2,name:{simpleText:Iz},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+n+"&caps="+W6+"&opi="+CP+"&xoaf="+V8+"&hl="+YV+"&ip="+pR+"&ipbits="+V8+"&expire="+AC+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+pR+"&key="+W6+"&kind="+W6+"&lang="+YV,name:{simpleText:Tg},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:Ap,title:KP,lengthSeconds:"1155",keywords:[LL,mH,ad,KP],
channelId:oi,isOwnerViewing:!1,shortDescription:Mr,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+uk,width:168,height:94},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+uk,width:196,height:110},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+t,width:246,height:138},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+t,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
n+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:w1,author:Tq,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:w1,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+z0+"/featured_channel.jpg?v="+KP,width:40,height:40}]},trackingParams:zS+"=",navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"/channel/"+oi,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:oi}},channelName:Tq,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:LL}]},subscribed:!1,enabled:!0,type:"FREE",channelId:oi,showPreferences:!1,subscribedButtonText:{runs:[{text:LL}]},unsubscribedButtonText:{runs:[{text:lt}]},trackingParams:zS+"=",unsubscribeButtonText:{runs:[{text:Mr}]},serviceEndpoints:[{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[oi],params:KP}},{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Tu,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zS+"=",dialogMessages:[{runs:[{text:V5},{text:Mo},{text:LL}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:RH}]},serviceEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[oi],params:KP}},accessibility:{label:p1},trackingParams:zS+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:lt}]},accessibility:{label:Tq},trackingParams:zS+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Mo}},unsubscribeAccessibility:{accessibilityData:{label:pH}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:KR},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[oi],params:KP}},unsubscribeCommand:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[oi],params:KP}},addToWatchLaterCommand:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Ap,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Ap}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+n+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+gG+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
n+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Ap,width:1280,height:720},title:{simpleText:Tg},description:{simpleText:ad},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+KP,externalChannelId:oi,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:w1,category:"Travel & Events",publishDate:QH,ownerChannelName:Tq,uploadDate:QH}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:V5},trackingParams:zS+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Tu,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:zS+"="}}],headerText:{simpleText:pH},icon:{infoCardIconRenderer:{trackingParams:zS+"="}},closeButton:{infoCardIconRenderer:{trackingParams:zS+"="}},trackingParams:zS+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:zS+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Ap+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:z1,interpreterSafeUrl:(cn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Au+".js",cn),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Al},{text:LL,bold:!0}]},endpoint:{clickTrackingParams:Tu,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:zS+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:d1}]},actionButton:{buttonRenderer:{text:{runs:[{text:RH}]},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+n,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
n,target:"TARGET_NEW_WINDOW"}},trackingParams:zS+"="}},trackingParams:zS+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+$V+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+$V+"=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:w1,endMs:w1,title:{accessibility:{accessibilityData:{label:Mo}},simpleText:mH},metadata:{simpleText:Al},callToAction:{simpleText:Al},dismiss:{simpleText:p1},endpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"/channel/"+oi,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:oi}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Tg}]},subscribed:!1,enabled:!0,type:"FREE",channelId:oi,showPreferences:!1,
subscribedButtonText:{runs:[{text:lt}]},unsubscribedButtonText:{runs:[{text:Al}]},trackingParams:zS+"=",unsubscribeButtonText:{runs:[{text:Ap}]},serviceEndpoints:[{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[oi],params:KP}},{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Tu,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zS+
"=",dialogMessages:[{runs:[{text:RH},{text:V5},{text:Tg}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:KP}]},serviceEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[oi],params:KP}},accessibility:{label:RH},trackingParams:zS+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Tq}]},
accessibility:{label:KP},trackingParams:zS+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:p1}},unsubscribeAccessibility:{accessibilityData:{label:mH}}}},trackingParams:zS+"=",isSubscribe:!0,id:Ni}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+t,width:168,height:94},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+uk,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+t,width:246,height:138},{url:"https://i.ytimg.com/vi/"+n+"/hqdefault.jpg?sqp=-oaymwE"+gG+"G&rs="+t,width:336,height:188},{url:"https://i.ytimg.com/vi/"+n+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:w1,endMs:w1,title:{accessibility:{accessibilityData:{label:pH}},simpleText:Mo},metadata:{simpleText:Mr},endpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Ap,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Ap,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Px+".googlevideo.com/videoplayback?source=youtube&oeis="+V8+"&c=WEB&oad="+Xk+"&ovd="+Xk+"&oaad="+P6+"&oavd="+P6+"&ocs="+v6+"&oewis="+V8+"&oputc="+V8+"&ofpcc="+V8+"&siu="+V8+"&msp="+V8+"&odepv="+V8+
"&id=o-AF"+AD+"&ip="+pR+"&initcwndbps="+w1+"&mt="+AC+"&oweuc="+ti}}}}},trackingParams:zS+"=",id:Ni,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:d1}},simpleText:KP},style:"DEFAULT"}}]}}],startMs:w1,trackingParams:zS+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:V8,offsetEndMilliseconds:P6},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";ord="+AC+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+v6+";dc_sk="+V8+";dc_ctype="+kq+";dc_ref=http://www.youtube.com/video/"+Ap+";dc_pubid="+V8+";dc_btype=23?gclid="+cx+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+V8+"&ns="+V8+"&event="+V8+"&device="+V8+"&content_v="+n+"&el="+mH+"&ei="+h+"&devicever="+O+"&bti="+w1+"&format="+wf+"&break_type="+V8+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+V8+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+pR+"&slot_pos="+V8+"&slot_len="+V8+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+wp+"&ad_len="+P6+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Ap+"&aqi="+h+"&ad_rmp="+V8+"&sli="+V8}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+
";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+w1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&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"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&ctype="+v6+"&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"+
k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_engaged_view&ctype="+v6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+tu+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+Hv+"&ad_cpn=[AD_CPN]&id="+LL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LL+"&dc_pubid="+V8+"&dc_exteid="+Ni+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+Hv+"&ad_cpn=[AD_CPN]&id="+LL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+V8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LL+"&avm="+V8+"&dc_pubid="+V8+"&dc_exteid="+
Ni+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&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="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
d+"&sig="+Hv+"&ad_cpn=[AD_CPN]&id="+LL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+V8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LL+"&dc_pubid="+V8+"&dc_exteid="+Ni+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Tu,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+
v6+"&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/"+n+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zS+"="},trackingParams:zS+
"=",templatedCountdown:{templatedAdText:{text:Tg,isTemplated:!0,trackingParams:zS+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Mo,isTemplated:!1,trackingParams:zS+"="},trackingParams:zS+"="}},trackingParams:zS+"=",skipOffsetMilliseconds:5E3}},trackingParams:zS+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Mr},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zS+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Iz,isTemplated:!1,trackingParams:zS+"="},trackingParams:zS+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:mH,isTemplated:!0,trackingParams:zS+"="}},trackingParams:zS+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Tu,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Fi.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+YV+"&origin=www.youtube.com&ata_theme="+Al,Fi),trackingParams:zS+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:zS+"="}},hoverText:{runs:[{text:KP}]},trackingParams:zS+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zS+"="},headline:{text:Al,isTemplated:!1,trackingParams:zS+"="},description:{text:KP,
trackingParams:zS+"="},actionButton:{buttonRenderer:{text:{simpleText:RH},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zS+"="}},startMs:V8,trackingParams:zS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Mr},elementId:Mo}},elementId:Mr,trackingParams:zS+"=",legacyInfoCardVastExtension:ad,sodarExtensionData:{siub:V5,bgub:Tq,scs:p1,bgp:Tq},externalVideoId:Ap,adLayoutLoggingData:{serializedAdServingDataEntry:lt},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zS+"="},
headline:{text:RH,isTemplated:!1,trackingParams:zS+"="},description:{text:Mr,isTemplated:!1,trackingParams:zS+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:lt},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+
Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+
V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zS+"="}},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+
CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+
y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zS+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zS+"="},abandonCommands:{commands:[{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&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="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+
V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Tu,commandExecutorCommand:{commands:[{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Tq,isTemplated:!1,trackingParams:zS+
"="},trackingParams:zS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lt},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+w1+";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="+CP+";dc_trk_cid="+CP+";ord="+AC+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+v6+";dc_sk="+V8+";dc_ctype="+kq+";dc_ref=http://www.youtube.com/video/"+Ap+";dc_pubid="+V8+";dc_btype=23?gclid="+cx+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+V8+"&ns="+V8+"&event="+V8+"&device="+V8+"&content_v="+n+"&el="+mH+"&ei="+h+"&devicever="+O+"&bti="+w1+"&format="+wf+"&break_type="+V8+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+V8+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+pR+"&slot_pos="+V8+"&slot_len="+V8+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
wp+"&ad_len="+P6+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Ap+"&aqi="+h+"&ad_rmp="+V8+"&sli="+V8}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+
N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+w1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&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"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&ctype="+v6+"&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"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_engaged_view&ctype="+v6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+Hv+"&ad_cpn=[AD_CPN]&id="+
LL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LL+"&dc_pubid="+V8+"&dc_exteid="+Ni+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+
"&sig="+Hv+"&ad_cpn=[AD_CPN]&id="+LL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+V8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LL+"&avm="+V8+"&dc_pubid="+V8+"&dc_exteid="+Ni+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&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="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+d+"&sig="+Hv+"&ad_cpn=[AD_CPN]&id="+LL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+V8},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LL+"&dc_pubid="+V8+"&dc_exteid="+Ni+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+wf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+
v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&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/"+n+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zS+"="},trackingParams:zS+"=",templatedCountdown:{templatedAdText:{text:V5,isTemplated:!0,trackingParams:zS+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Iz,isTemplated:!1,trackingParams:zS+"="},trackingParams:zS+"="}},
trackingParams:zS+"=",skipOffsetMilliseconds:5E3}},trackingParams:zS+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:mH},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:RH,isTemplated:!1,trackingParams:zS+"="},trackingParams:zS+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:d1,
isTemplated:!0,trackingParams:zS+"="}},trackingParams:zS+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Tu,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+YV+"&origin=www.youtube.com&ata_theme="+Al,fC),trackingParams:zS+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:zS+"="}},hoverText:{runs:[{text:mH}]},trackingParams:zS+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gT+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zS+"="},headline:{text:KP,isTemplated:!1,trackingParams:zS+"="},description:{text:Ap,trackingParams:zS+"="},actionButton:{buttonRenderer:{text:{simpleText:RH},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zS+"="}},startMs:V8,trackingParams:zS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Tq},elementId:mH}},elementId:pH,trackingParams:zS+"=",legacyInfoCardVastExtension:Mr,sodarExtensionData:{siub:p1,bgub:Tg,scs:pH,bgp:LL},externalVideoId:Ap,adLayoutLoggingData:{serializedAdServingDataEntry:LL},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gT+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zS+"="},headline:{text:p1,
isTemplated:!1,trackingParams:zS+"="},description:{text:V5,isTemplated:!1,trackingParams:zS+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:d1},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zS+"="}},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+
V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zS+"="},abandonCommands:{commands:[{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&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="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+kq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Tu,commandExecutorCommand:{commands:[{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Tq,isTemplated:!1,trackingParams:zS+"="},trackingParams:zS+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:KP},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+V8+";dc_exteid="+Ni+";met="+V8+";ecn"+V8+"="+V8+";etm1="+V8+";eid1="+
w1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:KP}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Tg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:P6,offsetEndMilliseconds:wf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+kq+"&token=ALHj"+r+"&index="+V8+"&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="+O+"&m_pos_ms="+P6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:wf,offsetEndMilliseconds:wf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+v6+"&token=ALHj"+r+"&index="+V8+"&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="+
O+"&m_pos_ms="+wf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wf,offsetEndMilliseconds:wf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+v6+"&token=ALHj"+r+"&index="+V8+"&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="+
O+"&m_pos_ms="+wf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:LL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wf,offsetEndMilliseconds:wf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+v6+"&token=ALHj"+r+"&index="+V8+"&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="+
O+"&m_pos_ms="+wf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Tg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wf,offsetEndMilliseconds:kq},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+v6+"&token=ALHj"+r+"&index="+V8+"&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="+
O+"&m_pos_ms="+wf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:p1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:kq,offsetEndMilliseconds:kq},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+kq+"&token=ALHj"+r+"&index="+V8+"&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="+
O+"&m_pos_ms="+kq}},adSlotLoggingData:{serializedSlotAdServingDataEntry:p1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Mr,isTemplated:!1,trackingParams:zS+"="},description:{text:KP,isTemplated:!1,trackingParams:zS+"="},actionButton:{buttonRenderer:{text:{simpleText:V5},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vk+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:zS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zS+"="},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+
";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Tu,openPopupAction:{popup:{aboutThisAdRenderer:{url:(h48.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+YV+"&origin=www.youtube.com&ata_theme="+Al,h48),trackingParams:zS+"="}},popupType:"DIALOG"}},trackingParams:zS+"="}},hoverText:{runs:[{text:ad}]},trackingParams:zS+"="}},adVideoId:Ap,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ad},associatedCompositePlayerBytesLayoutId:RH}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Tg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Al,isTemplated:!1,trackingParams:zS+"="},description:{text:Iz,isTemplated:!1,trackingParams:zS+"="},actionButton:{buttonRenderer:{text:{simpleText:Al},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+
y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gT+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Bh+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zS+"="},navigationEndpoint:{clickTrackingParams:Tu,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+
V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Tu,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Rl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+YV+"&origin=www.youtube.com&ata_theme="+Al,Rl),trackingParams:zS+"="}},popupType:"DIALOG"}},trackingParams:zS+"="}},
hoverText:{runs:[{text:V5}]},trackingParams:zS+"="}},adVideoId:Ap,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+Ap+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Tq},associatedCompositePlayerBytesLayoutId:RH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:d1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:RH,
isTemplated:!1,trackingParams:zS+"="},description:{text:lt,isTemplated:!1,trackingParams:zS+"="},actionButton:{buttonRenderer:{text:{simpleText:mH},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+
kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+
t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zS+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+vk+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zS+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+mx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zS+
"="},navigationEndpoint:{clickTrackingParams:Tu,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+CP+";dc_trk_cid="+CP+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+V8+";ord="+CP+";dc_rui="+V8+";dc_exteid="+Ni+";dc_av="+V8+";dc_sk="+V8+";dc_ctype="+kq+";dc_pubid="+V8+";dc_btype=3?gclid="+cx+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+y+"AxAA&ase=2&num="+V8+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+t+"&adurl="+CJ+"&label=video_click_to_advertiser_site&ctype="+v6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zS+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Tu,openPopupAction:{popup:{aboutThisAdRenderer:{url:(rz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+YV+"&origin=www.youtube.com&ata_theme="+Al,rz),trackingParams:zS+"="}},popupType:"DIALOG"}},trackingParams:zS+
"="}},hoverText:{runs:[{text:Al}]},trackingParams:zS+"="}},adVideoId:Ap,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+y+"AxAA&sigh="+n+"&cid="+N+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Al},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:RH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:V5}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Au,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Au,command:{innertubeCommand:{clickTrackingParams:Tu,ypcGetOfflineUpsellEndpoint:{params:xe}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:zS+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:AC,nanos:jO}}}},aPq=JSON.stringify(Do),SP=performance.now()-l;return{objectRepresentation:Do,jsonRepresentation:aPq,generationTime:SP}};
JwA=function(l,e){if(l===e)return!0;if(!l||!e||typeof l!==typeof e)return!1;if(l instanceof Array&&e instanceof Array){if(l.length!==e.length)return!1;for(var O=0;O<l.length;O++)if(!JwA(l[O],e[O]))return!1;return!0}if(typeof l==="object"&&typeof e==="object"&&l&&e){for(O in l)if(!(O in e&&JwA(l[O],e[O])))return!1;for(var E in e)if(!(E in l))return!1;return!0}return!1};
_.C0=function(){if(!uG){uG=new $z(new Xax);var l=_.Cv("client_streamz_web_flush_count",-1);l!==-1&&(uG.invocationLimit=l)}return uG};
o4=function(l,e,O,E){if(l===e)return!0;if(Array.isArray(l)&&Array.isArray(e)){if(l.length!==e.length)return!1;for(var J=0;J<l.length;J++)if(!o4(l[J],e[J],O,E))return!1;return!0}if(l instanceof Set||e instanceof Set){if(l instanceof Set&&e instanceof Set){if(l.size!==e.size)return!1;E=_.b(l.values());for(J=E.next();!J.done;J=E.next())if(!e.has(J.value))return!1;return!0}return!1}if(l instanceof Function){if(E)return!0;l.name===""&&_.UW(Error("If"),"ERROR");return!1}if(l instanceof Date&&e instanceof
Date)return l.getTime()===e.getTime();if(l instanceof Object&&e instanceof Object){if(zxx(l)&&zxx(e))try{return l.equals(e)}catch(M){_.UW(Error("Jf`"+M),"ERROR")}J=Object.getOwnPropertyNames(l).filter(function(M){return O?l[M]!==void 0:!0});
var z=Object.getOwnPropertyNames(e).filter(function(M){return O?e[M]!==void 0:!0});
if(J.length!==z.length)return!1;J=_.b(J);for(z=J.next();!z.done;z=J.next())if(z=z.value,!o4(l[z],e[z],O,E))return!1;return!0}return!1};
zxx=function(l){l=Object.getPrototypeOf(l).equals;return l instanceof Function&&l.length===1};
_.VQx=function(){return _.V(function(l){if(l.nextAddress==1)return bQA!==2?l.jumpTo(2):_.C(l,MQp(),3);l.nextAddress!=2&&(bQA=l.yieldResult);return l.return(bQA)})};
_.C4p=function(){return _.V(function(l){if(l.nextAddress==1)return _.a("ab_pl_man")?ZQL!==2?l.jumpTo(2):_.C(l,uJT(),3):l.return(1);l.nextAddress!=2&&(ZQL=l.yieldResult);return l.return(ZQL)})};
W6L=function(){return _.V(function(l){if(l.nextAddress==1)return _.a("ab_fk_sk_cl")?o5p!==2?l.jumpTo(2):_.C(l,$5T(),3):l.return(1);l.nextAddress!=2&&(o5p=l.yieldResult);return l.return(o5p)})};
_.iQV=function(){return _.V(function(l){if(l.nextAddress==1)return _.a("ab_det_apb_b")?d5p!==2?l.jumpTo(2):_.C(l,g5u(),3):l.return(1);l.nextAddress!=2&&(d5p=l.yieldResult);return l.return(d5p)})};
n58=function(){var l;return _.V(function(e){if(e.nextAddress==1)return _.C(e,Promise.all([_.VQx(),_.iQV(),_.C4p(),W6L()]),2);if(e.nextAddress!=3)return wax()?e.return(!0):_.C(e,_.AwM(),3);l=e.yieldResult;return e.return(l===0)})};
wax=function(){var l=!1,e=function(O,E){al2.increment(E,O);O===0&&(l=!0)};
e(_.klg(),"j.s_");e(bQA,"f.i_");e(d5p,"a.b_");e(ZQL,"p.m_");e(o5p,"i.f_");Il8===2&&(Il8=_.m58(ywx));e(Il8,"e.h_");_.a("ks_det_gpbl")||e(_.pat(),"p.i_");_.a("ks_get_o_pp")||e(_.K6u(),"g.o_");_.a("ab_deg_unex_thr")||e(_.j3T(),"a.o_");e(HQp,"s.t_");_.a("ab_det_sc_inj_enf")&&e(_.cwx(),"s.i_");e(F6u,"d.p_");e(_.fl8(_.$1),"o.p_");e(_.Rx8()===0?0:_.TSp(),"o.a_");return _.a("debug_sk_em_precheck")?!0:l};
GlL=function(){var l=[].concat(_.kA(s3L));try{var e=ZC();l.push({jsonRepresentation:e.jsonRepresentation,objectRepresentation:e.objectRepresentation})}catch(O){l=[].concat(_.kA(s3L))}return l};
BSW=function(){var l=["adPlacements","adSlots"];try{return l.filter(function(){return!0}).length!==l.length?0:1}catch(e){return 0}};
_.K6u=function(){if(BSW()===0)return 0;var l=ZC(),e=l.objectRepresentation,O=(0,_.mm.unsafeClone)(e),E=[];if(e&&typeof e==="object")for(var J in e)E.push(J);else return 4;l=l.objectRepresentation.adPlacements;if(!(l&&l.length>0))return 4;try{if(!JwA(E,Object.getOwnPropertyNames(e)))return 0}catch(z){return 0}return JwA(O,e)?1:0};
_.fl8=function(l){if(!l||!l.length||typeof l==="string")return 0;for(var e=Object.getOwnPropertyNames(Object.prototype),O=0;O<l.length;O++)for(var E=_.z_(l[O]),J=_.b(e),z=J.next();!z.done;z=J.next())if(E===z.value)return 0;return 1};
P4t=function(l){var e=_.z_(l[1]);if(l[0]===null)return e;l=l[0];for(var O={},E=0;E<l.length;E++){var J=_.z_(l[E]);if(E===0)O[J]=e;else{var z={};z[J]=O;O=z}}return O};
_.Rx8=function(){for(var l=_.Wc,e=0;e<l.length;e++){var O=P4t(l[e]),E=[];E.push(O);if(E.length===0)return 0}return 1};
_.TSp=function(){for(var l=_.Wc,e={},O=0;O<l.length;e={rx6:void 0},O++){var E=[P4t(l[O])];e.rx6=[];E.forEach(function(J){return function(z){J.rx6[J.rx6.length]=z}}(e));
if(e.rx6.length===0)return 0}return 1};
_.klg=function(){for(var l=_.b(GlL()),e=l.next();!e.done;e=l.next()){var O=e.value;e=O.jsonRepresentation;O=O.objectRepresentation;try{var E=JSON.parse(e);if(!o4(E,O,!1,!1))return 0}catch(J){return 0}}return 1};
_.cwx=function(){try{var l=_.$6("ab_det_sc_inj_val");l.length===1&&l[0]===""&&(l=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var e=document.querySelectorAll("script"),O=_.b(e),E=O.next();!E.done;E=O.next())for(var J=E.value,z=_.b(l),M=z.next();!M.done;M=z.next()){var Z=M.value;e=void 0;if((e=J.textContent)==null?0:e.includes(Z))return 0}}catch(u){return 4}return 1};
_.AwM=function(){var l,e,O,E,J,z,M;return _.V(function(Z){switch(Z.nextAddress){case 1:_.b1(Z,2),l=_.b(s3L),e=l.next();case 4:if(e.done)return Z.return(1);E=O=e.value;J=E.jsonRepresentation;z=E.objectRepresentation;return _.C(Z,(new Response(J,{status:200})).json(),7);case 7:M=Z.yieldResult;if(!o4(M,z,!1,!1))return Z.return(0);e=l.next();Z.jumpTo(4);break;case 2:return _.u1(Z),Z.return(4)}})};
_.j3T=function(){try{btoa("abc")}catch(l){return 0}return 1};
MQp=function(){var l,e,O,E,J,z,M,Z,u,d,g;return _.V(function(w){switch(w.nextAddress){case 1:_.b1(w,2),l=_.b(GlL()),e=l.next();case 4:if(e.done)return w.return(1);E=O=e.value;J=E.jsonRepresentation;z=E.objectRepresentation;M=btoa(J);Z="data:application/json;base64,"+M;u=new Request(Z);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 _.C(w,fetch(u),7);case 7:return d=w.yieldResult,_.C(w,d.json(),8);case 8:g=w.yieldResult;if(!o4(g,z,!1,!1))return w.return(0);e=l.next();w.jumpTo(4);break;case 2:return _.u1(w),w.return(4)}})};
_.m58=function(l){if(!l||!l.length||typeof l==="string")return 0;for(var e=function(J){return _.z_(J)},O=2,E=0;E<l.length&&(O=_.U5x(_.OQd(l[E],e)),O!==0);E++);
return O};
_.U5x=function(l){var e=_.b(l);l=e.next().value;e=e.next().value;try{var O=document.createElement("div");document.body.appendChild(O);var E=getComputedStyle(O).display;document.body.removeChild(O);if(E==="none")return 4;var J=getComputedStyle(e).display==="none"?0:1;document.body.removeChild(l);return J}catch(z){return 4}};
$5T=function(){var l,e,O;return _.V(function(E){l=new _.d8;e=document.createElement("button");e.classList.add("ytp-ad-skip-button");e.style.opacity="0";e.style.height="0px";e.style.width="0px";e.style.padding="0px";e.style.border="none";O=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.onclick=function(){l.resolve(0);O()};
document.body.appendChild(e);setTimeout(function(){O();l.resolve(1)},50);
return E.return(l.promise)})};
uJT=function(){var l,e,O,E,J,z,M;return _.V(function(Z){l=new _.d8;e=document.createElement("ytd-player");try{document.body.prepend(e)}catch(u){return Z.return(4)}O=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.getElementsByTagName("div").length>0?E=e.getElementsByTagName("div")[0]:(E=document.createElement("div"),e.appendChild(E));J=document.createElement("div");E.appendChild(J);z=document.createElement("video");M=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"});z.src=_.W2(_.aH(M));z.ontimeupdate=function(){O();l.resolve(0)};
J.appendChild(z);z.classList.add("html5-main-video");setTimeout(function(){J.classList.add("ad-interrupting")},200);
setTimeout(function(){O();l.resolve(1)},5E3);
return Z.return(l.promise)})};
Yg8=function(l,e){var O,E;return _.V(function(J){switch(J.nextAddress){case 1:O=[],E=0;case 2:if(!(E<3)){J.jumpTo(4);break}return _.C(J,fetch(l,{cache:"no-store",method:e}).then(function(z){O.push(z.status)}).catch(function(){O.push(-1)}),3);
case 3:E++;J.jumpTo(2);break;case 4:return J.return(O)}})};
hxp=function(l){return l.domainLookupStart===0&&l.domainLookupEnd===0&&l.connectStart===0&&l.connectEnd===0};
L6t=function(l,e,O){O=O===void 0?"GET":O;var E,J,z,M,Z,u,d,g,w,n;return _.V(function(k){if(k.nextAddress==1)return _.C(k,Promise.all([Yg8(l,O),Yg8(e,O)]),2);E=k.yieldResult;J=_.b(E);z=J.next().value;M=J.next().value;Z=z;u=M;if(Math.min.apply(Math,_.kA(u))!==Math.max.apply(Math,_.kA(u))||Math.min.apply(Math,_.kA(Z))!==Math.max.apply(Math,_.kA(Z)))return k.return(2);if(Math.min.apply(Math,_.kA(u))===Math.min.apply(Math,_.kA(Z)))return k.return(1);g=(d=performance.getEntriesByName(l))==null?void 0:d[0];
n=(w=performance.getEntriesByName(e))==null?void 0:w[0];return g&&n?hxp(n)?k.return(1):hxp(g)?k.return(0):k.return(1):k.return(2)})};
g5u=function(){var l;return _.V(function(e){var O=[];var E;var J,z,M;(J=E=(J=ZC().objectRepresentation.streamingData)==null?void 0:(z=J.formats)==null?void 0:(M=z[0])==null?void 0:M.url)&&J&&!E.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(J=J.replace("initcwndbps","ctier=L&initcwndbps"),J=J.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),E={testUrl:J,baseUrl:E,method:"GET"}):E=void 0;E&&O.push(E);_.a("ab_net_tp_e")&&O.push({testUrl:_.Op.location.origin+"/ad_companion",baseUrl:_.Op.location.origin+
"/generate_204",method:"OPTIONS"});if(_.a("ad_net_pb_ab")){var Z;b:{E=/api\/stats\/ads/;var u,d,g,w;J=(Z=ZC().objectRepresentation.adPlacements)==null?void 0:(u=Z[0])==null?void 0:(d=u.adPlacementRenderer)==null?void 0:(g=d.renderer)==null?void 0:(w=g.linearAdSequenceRenderer)==null?void 0:w.linearAds;if(J!=null&&J.length&&(Z=_.I(J[0],tQq))&&(Z=Z.pings,Z!=null&&Z.impressionPings))for(u=[].concat(_.kA(Z.impressionPings)),Z.progressPings&&(u=[].concat(_.kA(u),_.kA(Z.progressPings))),Z=_.b(u),u=Z.next();!u.done;u=
Z.next())if(u=u.value,u.baseUrl&&E.test(u.baseUrl)){Z=u.baseUrl.replace("https://www.youtube.com","");break b}Z=void 0}Z&&O.push({testUrl:_.Op.location.origin+Z,baseUrl:_.Op.location.origin+"/feed/download",method:"GET"})}if(_.a("ad_net_pb_pbp")){var n;b:{Z=/api\/stats\/qoe/;if(u=ZC().objectRepresentation.playbackTracking){d=[];d.push(u==null?void 0:(n=u.videostatsPlaybackUrl)==null?void 0:n.baseUrl);var k;d.push(u==null?void 0:(k=u.videostatsDelayplayUrl)==null?void 0:k.baseUrl);var y;d.push(u==
null?void 0:(y=u.videostatsWatchtimeUrl)==null?void 0:y.baseUrl);var c;d.push(u==null?void 0:(c=u.ptrackingUrl)==null?void 0:c.baseUrl);var f;d.push(u==null?void 0:(f=u.qoeUrl)==null?void 0:f.baseUrl);var P;d.push(u==null?void 0:(P=u.atrUrl)==null?void 0:P.baseUrl);n=_.b(d);for(k=n.next();!k.done;k=n.next())if((k=k.value)&&Z.test(k)){n=k.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}n=void 0}n&&O.push({testUrl:_.Op.location.origin+n,baseUrl:_.Op.location.origin+
"/feed/download",method:"GET"})}O=O.length!==0?O[Math.floor(Math.random()*O.length)]:void 0;return(l=O)?e.return(L6t(l.testUrl,l.baseUrl,l.method)):e.return(4)})};
_.pat=function(){if(_.Op.xUr===void 0||_.Op.xUr===null||typeof _.Op.xUr!=="function")return 2;try{return _.Op.xUr()===!0?0:1}catch(l){return 0}};
qgp=function(l){switch(l){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.VC(l,"unknown result type")}};
_.v5A=function(l,e){var O=Number(_.hT("CATSTAT",0));if(e.oBt===void 0)return O;e=e.oBt;l=qgp(l);return O&~(3<<e)|l<<e};
NSt=function(l){var e,O;if((l=(e=l.auxiliaryUi)==null?void 0:(O=e.messageRenderers)==null?void 0:O.bkaEnforcementMessageViewModel)&&l.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return l};
D5M=function(){for(var l=_.b(Object.values(_.rwd)),e=l.next();!e.done;e=l.next())e=e.value,e.isAsync&&e.oBt&&_.Yd("CATSTAT",_.v5A(2,e))};
_.A$=function(l,e){l=_.g8("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",l);(e===void 0?0:e)?_.SgV(l,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.iG(_.w8(),l,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
x5T=function(){if(!Q3W){if(Polymer.Base){var l=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{l.apply(this,arguments)}catch(w){_.tT(w)}};
var e=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{e.apply(this,arguments)}catch(w){_.tT(w)}};
var O=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{O.apply(this,arguments)}catch(w){_.tT(w)}};
var E=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{E.apply(this,arguments)}catch(w){_.tT(w)}};
var J=Polymer.Base._listen,z=new WeakMap;Polymer.Base._listen=function(w,n,k){var y=function(){try{k.apply(this,arguments)}catch(c){_.tT(c)}};
z.set(k,y);J.call(this,w,n,y)};
var M=Polymer.Base._unlisten;Polymer.Base._unlisten=function(w,n,k){M.call(this,w,n,z.get(k))}}if(Polymer.Async){var Z=Polymer.Async,u=Z._atEndOfMicrotask;
Z._atEndOfMicrotask=function(){try{u.apply(Z,arguments)}catch(w){_.tT(w)}}}if(Polymer.RenderStatus){var d=Polymer.RenderStatus,g=d.afterNextRender;
d.afterNextRender=function(w,n,k){g.call(d,w,function(){try{n.apply(this,arguments)}catch(y){_.tT(y)}},k)}}Q3W=!0}};
_.k1=function(l){var e=l?_.A5(l):"";if(e){if(e.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(e.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(e.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(e.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(e.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(e.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";e=e.toLowerCase();if(e==="/")return"home";if(e===
"/channel_memberships")return"channel-memberships-shopfront";if(e.indexOf("/feed/trending")===0)return"trending";if(e.indexOf("/feed/explore")===0)return"explore";if(e.indexOf("/live")===0)return"live";if(e.indexOf("/results")===0)return"search";if(e.indexOf("/sports")===0)return"sports";if(e.indexOf("/fashion")===0||e.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(e))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(e))return"learning";
if(e.indexOf("/channel/")===0||e.indexOf("/user/")===0||e.indexOf("/gaming")===0||e.indexOf("/post/")===0)return"channel";if(lHu(l))return"show";if(e==="/playlist"||e.indexOf("/playlist/")===0||e==="/view_play_list"||e.indexOf("/view_play_list/")===0||e.indexOf("/show/")===0)return"playlist";if(e==="/feed/history"||e.indexOf("/feed/history/")===0)return"history";if(e==="/new")return"labs";if(e==="/feed/subscriptions")return"subscriptions";if(e.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(e==="/history_controls")return"standalone";if(e.indexOf("/account")===0||e==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(e.indexOf("/paid_memberships")===0||e.indexOf("/refund")===0||e.indexOf("/purchases")===0||e.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(e.indexOf("/product")===0)return"yts-products";if(e.indexOf("/premium")===0||e.indexOf("/musicpremium")===0)return e.indexOf("/premium/offers")===0||e.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(e===
"/cart/checkout"||e==="/cart")return"ypc-checkout";if(e.indexOf("/feed/downloads")===0||e.indexOf("/redeem")===0||e.indexOf("/reporthistory")===0)return"browse";if(e.indexOf("/hashtag")===0)return"hashtag-landing-page";if(e.indexOf("/handle")===0)return"handle";if(e.indexOf("/source")===0)return"audio-pivot";if(e.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(e.indexOf("/playables")===0)return"playables";if(e.indexOf("/create/live/join")===0)return"open-in-app";if(e.indexOf("/shorts")===
0)return"shorts";if(e.indexOf("/feed/channels")===0)return"subscriptions-channels";(e=l?_.A5(l):"")&&e.indexOf("/watch")===0&&_.a("web_watch_enable_learning_journey")?(l=_.Qt(l),l=!!l.list&&l.list.indexOf("LJPP")===0):l=!1;if(l)return"learning_journey_watch"}};
_.I4=function(l){var e,O;(l=(O=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:O.url)&&(e=_.k1(l));return e};
lHu=function(l){var e=l?_.A5(l):"";if(!e)return!1;e=e.toLowerCase();return e.indexOf("/show/")===0||e.indexOf("/playlist")===0&&(l=_.Qt(l),l.list&&l.list.indexOf("EL")===0)?!0:!1};
p0=function(l){var e="unknown",O;var E=((O=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:O.webPageType)||"";E?(O=E.toLowerCase(),O.startsWith("web_page_type_")&&(O=O.slice(14))):O=E;O&&ey8[O.toUpperCase()]?e=ey8[O.toUpperCase()]:_.I(l,_.ms)||_.I(l,OgV)?e="browse":_.I(l,_.yF)?e="search":_.I(l,_.ej)&&(e="watch");e==="watch"&&_.I4(l||null)==="learning_journey_watch"&&(e="learning_journey_watch");e==="unknown"&&_.hG(Error("Lf`"+JSON.stringify({clickTrackingParams:l==null?void 0:l.clickTrackingParams,
commandMetadata:l==null?void 0:l.commandMetadata,allEndpointKeys:Object.keys(l||[])})));return e};
_.K0=function(l){if(!_.E8g||l)_.E8g=_.CF();return _.E8g};
_.Jb2=function(l){return!!_.I(l,_.ej)||!!_.I(l,_.jT)&&_.a("kevlar_enable_shorts_prefetch")};
_.Xu8=function(l,e){l=_.I(l,_.ej)||_.I(l,_.jT);return"v"+l.videoId+(l.playlistId?"-pl"+l.playlistId:"")+(e?"-an1":"")+(l.params?"-pr"+l.params:"")};
Hc=function(l){return function(){return new l}};
cc=function(l){var e=_.V2();return function(){return e.resolve(l)}};
bgA=function(l){var e=_.Cv("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;if(!_.I(l,_.jT))return e&&_.hG(Error("Of")),!1;var O;return _.a("shorts_controller_retrieve_seedless_sequence_v2")&&((O=_.I(l,_.jT))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:zyW(l)?!0:(e&&_.hG(Error("Pf")),!1)};
zyW=function(l){var e=(_.I(l,_.ej)||_.I(l,_.jT)).videoId;if(!e||!MF2.test(e))return!1;var O;return(l=(O=_.I(l.commandMetadata,_.V4))==null?void 0:O.url)&&(l.includes(e)||l.startsWith("/clip"))?!0:!1};
_.Zgt=function(){var l=_.Kz();return l.getFlag(192)?l.getFlag(190):!(_.a("web_watch_cinematics_disabled_by_default")||_.a("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&VFx())};
_.Fv=function(l,e,O){var E={};E.currentUrl=e;E.vis=l.vis!==void 0?l.vis:0;E.splay=!1;e=_.Kz();E.autoCaptionsDefaultOn=e.getFlag(66);e.getFlag(141)?e.getFlag(140)?E.autonavState="STATE_OFF":E.autonavState="STATE_ON":E.autonavState="STATE_NONE";E.html5Preference="HTML5_PREF_WANTS";isNaN(_.hT("STS"))||(E.signatureTimestamp=_.hT("STS"));l.autonav&&(E.autoplay=!0,E.autonav=!0);l.mutedAutoplay&&(E.autoplay=!0,E.mutedAutoplay=!0);l.inlinePlayback&&(E.autoplay=!0,E.autonav=!1,E.isInlineUnmutedPlayback=!!l.inlineUnmuted);
E.referer=O;E.lactMilliseconds=l.lact!==void 0?l.lact.toString():"-1";_.a("enable_unknown_lact_fix_on_html5")&&E.lactMilliseconds==="-1"&&_.hG(new _.Hk("Unknown LACT is set in playbackContext.",{"lact in tempData":l.lact||"undefined",autonav:l.autonav||"undefined"}));l={};e.getFlag(194)&&(l.hasShownAmbientMode=!0);e.getFlag(192)&&(l.hasToggledOffAmbientMode=!0);_.Zgt()&&(l.watchAmbientModeEnabled=!0);E.watchAmbientModeContext=l;return E};
uPT=function(l){var e={},O=l.pbis||0;O&&(e.playbackBeginsInSeconds=O);l.prefetch_reason&&l.prefetch_reason==="hc_pbis"&&(e.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return e};
_.R4=function(l){l=l===void 0?!1:l;var e=_.Kz(),O="USER_INTERFACE_THEME_LIGHT";e.getFlag(165)?O="USER_INTERFACE_THEME_DARK":e.getFlag(174)?O="USER_INTERFACE_THEME_LIGHT":_.f0()&&(O="USER_INTERFACE_THEME_DARK");return l?O:CBx()||O};
_.o82=function(){return!_.a("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.f0=function(){return _.o82()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.T_=function(){var l=_.Kz();return _.o82()&&!l.getFlag(165)&&!l.getFlag(174)};
CBx=function(){var l=l===void 0?window.location.href:l;if(_.a("kevlar_disable_theme_param"))return null;var e=_.A5(l);if(_.$eM(e))return"USER_INTERFACE_THEME_DARK";try{var O=_.Qt(l).theme;return W8T.get(O)||null}catch(E){}return null};
_.$eM=function(l){return _.a("enable_dark_theme_only_on_shorts")?!(l==null||!l.startsWith("/shorts/")):!1};
_.igL=function(l,e,O,E,J){e=e===void 0?!1:e;O=O===void 0?!1:O;var z=_.hT("INNERTUBE_CONTEXT");if(!z)return _.UW(Error("Sf")),{};z=(0,_.mm.unsafeClone)(z);_.a("web_no_tracking_params_in_shell_killswitch")||delete z.clickTracking;z.client||(z.client={});var M=z.client;M.clientName==="MWEB"&&M.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(M.clientFormFactor=_.hT("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");M.screenWidthPoints=window.innerWidth;M.screenHeightPoints=window.innerHeight;M.screenPixelDensity=
Math.round(window.devicePixelRatio||1);M.screenDensityFloat=window.devicePixelRatio||1;M.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());M.userInterfaceTheme=_.R4();if(!e){var Z=_.VH2();Z&&(M.connectionType=Z);_.a("web_log_effective_connection_type")&&(Z=ucd())&&(z.client.effectiveConnectionType=Z)}var u;if(_.a("web_log_memory_total_kbytes")&&((u=_.Op.navigator)==null?0:u.deviceMemory)){var d;u=(d=_.Op.navigator)==null?void 0:d.deviceMemory;z.client.memoryTotalKbytes=""+u*1E6}e&&E&&!_.a("web_it_context_set_original_url_ks")&&
(M.originalUrl=de2(_.Op.location.href,E).toString());_.a("web_gcf_hashes_innertube")&&(Z=aGW())&&(d=Z.coldConfigData,u=Z.coldHashData,Z=Z.hotHashData,z.client.configInfo=z.client.configInfo||{},d&&(z.client.configInfo.coldConfigData=d),u&&(z.client.configInfo.coldHashData=u),Z&&(z.client.configInfo.hotHashData=Z));d=_.Qt(_.Op.location.href);!_.a("web_populate_internal_geo_killswitch")&&d.internalcountrycode&&(M.internalGeo=d.internalcountrycode);!_.a("web_populate_client_screen_killswitch")&&J&&(M.clientScreen=
J);M.clientName==="MWEB"||M.clientName==="WEB"?(M.mainAppWebInfo||(M.mainAppWebInfo={}),M.mainAppWebInfo.graftUrl=E||_.Op.location.href,_.a("kevlar_woffle")&&_.sm.instance&&(E=_.sm.instance,M.mainAppWebInfo.pwaInstallabilityStatus=!E.appInstalledEventFired&&E.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),M.mainAppWebInfo.webDisplayMode=$98(),M.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):M.clientName==="TVHTML5"&&
(!_.a("web_lr_app_quality_killswitch")&&(E=_.hT("LIVING_ROOM_APP_QUALITY"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{appQuality:E})),E=_.hT("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{certificationScope:E}));!_.a("web_populate_time_zone_itc_killswitch")&&(E=b_d())&&(M.timeZone=E);(E=pQ8())?M.experimentsToken=E:delete M.experimentsToken;M=KPp();E=_.g8M();E=(0,_.mm.getValues)(E.tokenJars);z.request=Object.assign({},z.request,{internalExperimentFlags:M,consistencyTokenJars:E});
!_.a("web_prequest_context_killswitch")&&(M=_.hT("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(z.request.externalPrequestContext=M);E=_.Kz();M=E.getFlag(58);E=E.get("gsml","");z.user=Object.assign({},z.user);M&&(z.user.enableSafetyMode=M);E&&(z.user.lockedSafetyMode=!0);_.a("warm_op_csn_cleanup")?O&&(e=_.P9())&&(z.clientScreenNonce=e):!e&&(e=_.P9())&&(z.clientScreenNonce=e);l&&(z.clickTracking={clickTrackingParams:l});if(l=_.vK("yt.mdx.remote.remoteClient_"))z.remoteClient=l;_.G_.getInstance().setLocationOnInnerTubeContext(z);
try{var g=B4M(),w=g.bid;delete g.bid;z.adSignalsInfo={params:[],bid:w};for(var n=_.b(Object.entries(g)),k=n.next();!k.done;k=n.next()){var y=_.b(k.value),c=y.next().value,f=y.next().value;g=c;w=f;l=void 0;(l=z.adSignalsInfo.params)==null||l.push({key:g,value:""+w})}var P,h;if(((P=z.client)==null?void 0:P.clientName)==="TVHTML5"||((h=z.client)==null?void 0:h.clientName)==="TVHTML5_UNPLUGGED"){var N=_.hT("INNERTUBE_CONTEXT");N.adSignalsInfo&&(z.adSignalsInfo.advertisingId=N.adSignalsInfo.advertisingId,
z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",z.adSignalsInfo.limitAdTracking=N.adSignalsInfo.limitAdTracking)}}catch(t){_.UW(t)}return z};
_.wu2=function(l){var e=new Bc(_.hT("ONE_PICK_URL",""));e.urlParamMap_.set("hostId",l);(l=_.hT("GAPI_LOCALE"))&&e.urlParamMap_.set("hl",l);(l=_.hT("SESSION_INDEX"))&&e.urlParamMap_.set("authuser",l);(l=_.hT("DELEGATED_SESSION_ID"))&&e.urlParamMap_.set("groupId",l);return e};
n8V=function(){var l=_.V2(),e=l.resolve(_.Pc);l=l.resolve(_.Um);return new Abx(e,l)};
kHT=function(l){if(window.IntersectionObserver)return new aHM(l,400);throw new TypeError("Zf");};
meM=function(){var l=Hammer.TouchAction,e=l.prototype.preventDefaults;l.prototype.preventDefaults=function(O){var E=this.actions.indexOf("pan-down")>-1;if(!E)return e.call(this,O);if(!IHq){var J=O.srcEvent;O=O.direction;var z;if((z=this.manager)==null?0:z.session.prevented)J.preventDefault();else if(E&&O&Hammer.DIRECTION_DOWN)return this.preventSrc(J)}}};
ybp=function(l){if(!l||l.size===0)return Hammer.DIRECTION_ALL;if(l.size===2){if(l.has("up")&&l.has("down"))return Hammer.DIRECTION_VERTICAL;if(l.has("right")&&l.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(l.size===1){if(l.has("up"))return Hammer.DIRECTION_UP;if(l.has("down"))return Hammer.DIRECTION_DOWN;if(l.has("right"))return Hammer.DIRECTION_RIGHT;if(l.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.K8p=function(){return pu8?Promise.resolve(pu8):new Promise(function(l,e){var O=self.indexedDB.open("swpushnotificationsdb");O.onerror=e;O.onsuccess=function(){var E=O.result;if(E.objectStoreNames.contains("swpushnotificationsstore"))pu8=E,l(pu8);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.K8p()};
O.onupgradeneeded=jfp})};
jfp=function(l){l=l.target.result;l.objectStoreNames.contains("swpushnotificationsstore")&&l.deleteObjectStore("swpushnotificationsstore");l.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
cbx=function(l){var e=Hgx(),O;return _.V(function(E){switch(E.nextAddress){case 1:return _.b1(E,2),_.C(E,l.match(e,{cacheName:"yt-appshell-assets"}),4);case 4:O=E.yieldResult;_.Q2(E,3);break;case 2:_.u1(E);case 3:return E.return(O)}})};
Hgx=function(){var l=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?F8M.registration.scope:fHg;l.endsWith("/")&&(l=l.slice(0,-1));return l+"/app_shell_home"};
Ryq=function(l){l.map(function(e){return e.source}).join("|")};
_.T_d=function(l){return _.V(function(e){return e.return(cbx(l))})};
sfV=function(){var l=window.caches,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,_.T_d(l),2);e=O.yieldResult;return O.return(!!e)})};
L8V=function(){_.V(function(l){if(l.nextAddress==1){if(GHL)return l.jumpTo(0);GHL=!0;if(_.a("enable_system_health_primes_monitoring"))return _.gL(B_d,3E4),PBx(),l.return();if(!(Math.random()<_.Cv("web_system_health_fraction")))return l.jumpTo(0);Ue8={heightPixels:screen.height,widthPixels:screen.width};Y1&&!isNaN(Y1.jsHeapSizeLimit)&&(Ue8.memoryTotalKbytes=String(Math.round(Y1.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Ue8.devicePixelRatio=window.devicePixelRatio);return _.C(l,Ydp(),4)}_.gL(B_d,
3E4);return _.C(l,hyq(),0)})};
Ydp=function(){return _.V(function(l){if(l.nextAddress==1)return h$.intersectionObserverPresent="IntersectionObserver"in window,h$.serviceWorkerPresent="serviceWorker"in navigator,h$.webSharePresent="share"in navigator,h$.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,h$.cacheStoragePresent="caches"in window,h$.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,h$.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
h$.webkitTemporaryStoragePresent="webkitTemporaryStorage"in L0&&L0.webkitTemporaryStorage&&"queryUsageAndQuota"in L0.webkitTemporaryStorage,h$.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.C(l,YK8(),2);h$.indexedDbPresent=l.yieldResult;h$.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;h$.broadcastChannelPresent="BroadcastChannel"in window;h$.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(h$.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,h$.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Cl(l)})};
B_d=function(){var l=9E4+Math.random()*2E3;_.uN()>l||(_.a("enable_system_health_primes_monitoring")?PBx():hyq())};
hyq=function(){var l;return _.V(function(e){if(e.nextAddress==1)return _.C(e,tF2(),2);l=e.yieldResult;_.Bm("systemHealthCaptured",l);_.Cl(e)})};
PBx=function(){var l={metric:{}},e=qdd();e.networkEvents.length&&(l.metric.networkEvents=v8x(e));_.Bm("systemHealthCaptured",l)};
tF2=function(){var l,e,O,E,J,z,M,Z,u,d;return _.V(function(g){switch(g.nextAddress){case 1:l={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};e=window.screen;_.a("enable_is_extended_monitoring")&&e&&"isExtended"in e&&(l.isExtended=!!e.isExtended);O={metric:{staticContext:Ue8,dynamicContext:l,webMetric:N_u,webApiSupport:h$}};
if(E=_.P9())O.csn=E;Y1&&(O.metric.webMetric.currentHeapKbytes=Math.round(Y1.usedJSHeapSize/1E3));window.matchMedia&&(O.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,O.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,O.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in L0&&typeof L0.getBattery==="function")){g.jumpTo(2);break}return _.C(g,L0.getBattery(),3);case 3:if(J=
g.yieldResult)O.metric.dynamicContext.chargingStatus=J.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(O.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(h$.storageEstimatePresent)return _.C(g,navigator.storage.estimate(),8);if(!h$.webkitTemporaryStoragePresent){g.jumpTo(5);break}return _.C(g,rbA(),7);case 7:z=g.yieldResult;g.jumpTo(5);break;case 8:z=g.yieldResult;case 5:return O.metric.dynamicContext.deviceStorageQuotaMbytes=((M=z)==null?0:M.quota)?String(Math.round(z.quota/
1048576/10)*10):"-1",O.metric.dynamicContext.deviceStorageUsageMbytes=((Z=z)==null?0:Z.usage)?String(Math.round(z.usage/1048576/10)*10):"-1",u=O.metric.dynamicContext,_.C(g,sfV(),9);case 9:return u.hasAppShell=g.yieldResult,d=qdd(),d.networkEvents.length&&(O.metric.networkEvents=v8x(d)),g.return(O)}})};
rbA=function(){return new Promise(function(l){var e;h$.webkitTemporaryStoragePresent&&(e=L0.webkitTemporaryStorage)!=null&&e.queryUsageAndQuota?L0.webkitTemporaryStorage.queryUsageAndQuota(function(O,E){l({usage:O,quota:E})}):l(void 0)})};
_.t$=function(l){l&=16777215;l=[(l&16711680)>>16,(l&65280)>>8,l&255];return Deg(l[0],l[1],l[2])};
_.qv=function(l){l=[(l&16711680)>>>16,(l&65280)>>>8,l&255,(l&4278190080)>>>24];var e=_.SdT(l,function(O){return O==(O&255)});
l[3]=(l[3]/255).toFixed(3);if(!e)throw Error("$f`"+l.join(","));return"rgba("+l.join(",")+")"};
_.QfW=function(l){return[(l&16711680)>>>16,(l&65280)>>>8,l&255]};
_.xeT=function(l){l=l.map(function(e){e/=255;return e<=.03928?e/12.92:Math.pow((e+.05)/1.05,2.4)});
return l[0]*.2126+l[1]*.7152+l[2]*.0722};
vc=function(l,e){l=_.QfW(l);return"rgba("+l[0]+", "+l[1]+", "+l[2]+", "+e+")"};
_.lT8=function(){try{return!!self.localStorage}catch(l){return!1}};
Jxg=function(){if(eMT())_.hG(Error("ag"));else{var l=document.createElement("iframe");l.style.display="none";var e=e===void 0?window.location.href:e;var O=_.YP(_.hT("PERSIST_IDENTITY_IFRAME_URL"));e=O?O:(new URL(e)).host.indexOf("studio")===0?_.OP(OeA,"persist_identity"):_.OP(Elq,"persist_identity");_.wvu(l,1,e);l.id="persist_identity";var E;(E=document.body)==null||E.appendChild(l)}};
eMT=function(){var l=X8V;l||(l=document.querySelector("#persist_identity"));return l};
zMV=function(){var l=!1;try{l=!!window.sessionStorage.getItem("session_logininfo")}catch(e){l=!0}return(_.hT("INNERTUBE_CLIENT_NAME")==="WEB"||_.hT("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&l};
beT=function(l,e){if(!zMV())return!1;e||(e=_.hT("LOGIN_INFO"));return e?(l.session_logininfo=e,!0):!1};
Vkp=function(l,e){l=l===void 0?!1:l;if((e===void 0||!e)&&Mkt!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.LH("LOG_STICKINESS",!1)){e=_.P9();var O=_.B9(),E={identityStickinessData:{initialState:Mkt}};e&&O&&_.JY(e,O,E)}if(e=eMT())if(O=e.src?(new URL(e.src)).origin:"*",l){var J;(J=e.contentWindow)==null||J.postMessage({action:"clear"},O)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(l=window.sessionStorage.getItem("session_logininfo"))){var z;(z=e.contentWindow)==null||z.postMessage({loginInfo:l},O)}};
_.Nv=function(l){l=l===void 0?!0:l;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Yd("LOGIN_INFO",""),l&&window.sessionStorage.setItem("from_switch_account","1"),Vkp(!0,l)}catch(e){}};
Zep=function(l){l&&(l.startsWith("https://accounts.google.com/AddSession")?_.Nv():l.startsWith("https://accounts.google.com/ServiceLogin")?_.Nv():l.startsWith("https://myaccount.google.com")&&_.rk(l).getPath().endsWith("/youtubeoptions")&&_.Nv())};
r8=function(l,e){Zep(l);if(_.LH("LOGGED_IN",!0)&&zMV()){var O=Xe8(l);O==null&&(O={});beT(O,e)&&_.bi(l,O)}};
uNg=function(){function l(e){for(e=e.target;e&&e.nodeName!=="A";)if(e=e.parentNode,!(e&&e instanceof HTMLElement))return;if(e&&!e.hasAttribute("download")&&e.getAttribute("rel")!=="external"&&e.href)return e.href}
document.addEventListener("mousedown",function(e){e.button!==0&&(e=l(e))&&r8(e)});
document.addEventListener("click",function(e){(e=l(e))&&r8(e)})};
$Ox=function(){var l=new C8g;try{if(_.LH("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(Z){l.increment(5,!1);return}if(_.hT("LOGIN_INFO")){var e=olp?olp:window.location;_.hT("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Jxg();var O=Xe8(e.href);O==null&&(O={});var E=O.session_logininfo,J=Number(window.sessionStorage.getItem("stickiness_reload")),z=E===_.hT("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
J>=2||z)J>=2?l.increment(2,z):z?l.increment(7,z):window.sessionStorage.getItem("session_logininfo")||(l.increment(3,z),Mkt="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.hT("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.hT("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))l.increment(4,z),window.sessionStorage.removeItem("stickiness_reload");
else if(J<2){window.sessionStorage.setItem("stickiness_reload",String(J+1));var M=e.href;M=_.M9(M,"sttick");r8(M,window.sessionStorage.getItem("session_logininfo"));M=_.xd(M,{sttick:J});l.increment(J,z);_.qm(e,M)}}else l.increment(6,!1)}else _.Nv(!1)}catch(Z){}};
_.DC=function(l,e,O,E,J){e=e===void 0?{}:e;O=O===void 0?"":O;E=E===void 0?window:E;l=_.e7(l,e);r8(l);O=_.nU(l+O,J);_.qm(E.location,O)};
_.WYu=function(l,e,O,E,J){J=J===void 0?!1:J;O&&_.bi(l,O);O=_.nU(l);var z=_.W2(O);l!=z&&_.Nz(Error("bg`"+l));l=z;e=e||rv(l).toString(36);try{if(J)return J=l,J=g1W(J),r8(J),_.FC(window,J,e,"attributionsrc")}catch(M){_.tT(M)}r8(l);return _.FC(window,O,e,E)};
dO8=function(l){if(l.urlEndpoint){if(l=_.Qt(l.urlEndpoint.url),l.adurl)return bt(l.adurl)}else if(l.watchEndpoint)return"//www.youtube.com/watch?v="+l.watchEndpoint.videoId;return null};
glu=function(l){if(!l||!l.reportingPings)return null;var e={};l.reportingPings.forEach(function(O){O.pingType in e?e[O.pingType].push(O.url):e[O.pingType]=[O.url]});
return{adpings:WPd(e)}};
_.ST=function(){return{isShellLoad:_.LH("IS_SHELL_LOAD",!1)}};
w8d=function(){navigator.serviceWorker.getRegistrations().then(function(l){l.forEach(ieA)})};
ieA=function(l){l&&_.AxM(nlW,l.scope)};
_.AxM=function(l,e){e={scope:e||_.oy("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Z9(l),e)};
QF=function(l,e,O,E){if(e&&e.serializedYpcCujLoggingParams){if(O){var J={};J.transactionErrorType=O;E&&(J.errorMessage=E);e.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:J}}}O={};O.ypcCujContext=e;l=_.g8("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",l,O);_.iG(_.w8(),l,"FLOW_TYPE_YPC_ACQUISITION")}};
_.aTV=function(l,e,O,E){var J={};J.serializedTransactionFlowLoggingParams=e;O&&(J.errorType=O);E&&(J.errorMessage=E);_.Bm(l,J);_.Pm()};
_.kEq=function(l){l&&_.aTV("transactionFlowStarted",l)};
_.ITL=function(l){l&&_.aTV("transactionFlowCancelled",l)};
_.x1=function(l,e,O){e&&_.aTV("transactionFlowFailed",e,l,O)};
mOL=function(l){if(_.a("enable_setting_app_inert_when_buy_flow_opens")){var e=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");e&&(e.inert=l)}};
_.ld=function(){this.megabloxUrl_=null};
_.ey=function(l){try{var e=yxu==null?void 0:yxu.composedPath(l)}catch(O){e=l.composedPath?l.composedPath():[]}return e&&e.length>0?e:l.composedPath?l.composedPath():[]};
_.OV=function(l){return _.ey(l)[0]};
_.EV=function(l){if(!(l instanceof Element))return null;l=l.classList?Array.from(l.classList):void 0;if(!l)return null;var e=l.indexOf("style-scope");return e>-1&&e+1<l.length?l[e+1]:null};
JA=function(l){if(!(l instanceof HTMLElement))return null;var e=l&&(l.$$||l.polymerController)?l.tagName.toLowerCase():null;return e?e:_.EV(l)};
p8p=function(l,e){return l.replace(/[^a-z]*[^\s]+/g,function(O){return O+".style-scope."+e})};
KY2=function(l,e){return e?l.split(",").map(function(O){return p8p(O.trim(),e)}).join(", "):l};
_.X0=function(l){var e,O,E,J;return(J=(E=(O=(e=l.root)!=null?e:l.shadowRoot)!=null?O:l.__shady_native_shadowRoot)!=null?E:l.__shady_shadowRoot)!=null?J:l};
zV=function(l){return l instanceof ShadowRoot?ShadowRoot:l instanceof DocumentFragment?DocumentFragment:l instanceof Document?Document:HTMLElement};
jku=function(l){var e,O,E;return(E=(O=(e=l.parentElement)!=null?e:l.__shady_native_parentElement)!=null?O:l.__shady_parentElement)!=null?E:null};
HeM=function(l){var e,O,E;return(E=(O=(e=l.parentNode)!=null?e:l.__shady_native_parentNode)!=null?O:l.__shady_parentNode)!=null?E:null};
cxt=function(l){var e,O,E;return(E=(O=(e=l.__shady_parentNode)!=null?e:l.__shady_native_parentNode)!=null?O:l.parentNode)!=null?E:null};
FYd=function(l){var e,O;return(O=(e=HeM(l))!=null?e:l.host)!=null?O:null};
fTL=function(l){var e,O,E;return(E=(O=(e=l.nextSibling)!=null?e:l.__shady_native_nextSibling)!=null?O:l.__shady_nextSibling)!=null?E:null};
RMg=function(l){var e,O,E;return(E=(O=(e=l.previousSibling)!=null?e:l.__shady_native_previousSibling)!=null?O:l.__shady_previousSibling)!=null?E:null};
TuW=function(l){var e,O,E;return(E=(O=(e=l.nextElementSibling)!=null?e:l.__shady_native_nextElementSibling)!=null?O:l.__shady_nextElementSibling)!=null?E:null};
skp=function(l){var e,O,E;return(E=(O=(e=l.previousElementSibling)!=null?e:l.__shady_native_previousElementSibling)!=null?O:l.__shady_previousElementSibling)!=null?E:null};
GEV=function(l){var e,O,E;return new Set([].concat(_.kA((e=l.children)!=null?e:[]),_.kA((O=l.__shady_native_children)!=null?O:[]),_.kA((E=l.__shady_children)!=null?E:[])))};
Bu8=function(l){var e,O,E;return new Set([].concat(_.kA((e=l.childNodes)!=null?e:[]),_.kA((O=l.__shady_native_childNodes)!=null?O:[]),_.kA((E=l.__shady_childNodes)!=null?E:[])))};
P8p=function(l){if(!l)return null;var e=_.EV(l);if(!e){var O;return(O=Node.prototype.getRootNode)==null?void 0:O.call(l)}e=e.toUpperCase();for(l=jku(l);l&&l.tagName!==e;)l=jku(l);return l?_.X0(l):null};
UOq=function(l){for(;l&&!(l instanceof HTMLElement);)l=FYd(l);return l};
YYT=function(l){var e=UOq(l);return l===e?_.EV(l):e?JA(e):null};
hMA=function(l){return(l=UOq(l))?JA(l):null};
LYV=function(l){if(l instanceof Comment)return!1;if(l instanceof Text){var e,O;if(((O=(e=l.textContent)==null?void 0:e.trim())!=null?O:"")==="")return!1}return!0};
bd=function(l,e,O){var E=e(l);for(O=O===void 0?hMA(l):O;E&&(YYT(E)!==O||!LYV(E));)l=E,E=e(l);return E};
tkW=function(l,e,O){if(!e)return null;l=hMA(l);return YYT(e)===l&&LYV(e)?e:bd(e,O,l)};
qYx=function(l){return bd(l,cxt,_.EV(l))};
vlT=function(l){return bd(l,TuW)};
Nud=function(l){return bd(l,fTL)};
rxV=function(l){return bd(l,skp)};
DOA=function(l){return bd(l,RMg)};
SYp=function(l){return tkW(l,l.firstChild||l.__shady_native_firstChild||l.__shady_firstChild||null,fTL)};
Qkg=function(l){var e,O,E;var J=(E=(O=(e=l.firstElementChild)!=null?e:l.__shady_native_firstElementChild)!=null?O:l.__shady_firstElementChild)!=null?E:null;return tkW(l,J,TuW)};
xOq=function(l){var e,O,E;var J=(E=(O=(e=l.lastChild)!=null?e:l.__shady_native_lastChild)!=null?O:l.__shady_lastChild)!=null?E:null;return tkW(l,J,RMg)};
l28=function(l){var e,O,E;var J=(E=(O=(e=l.lastElementChild)!=null?e:l.__shady_native_lastElementChild)!=null?O:l.__shady_lastElementChild)!=null?E:null;return tkW(l,J,skp)};
emx=function(l){var e=hMA(l);return Array.from(Bu8(l)).filter(function(O){return YYT(O)===e})};
OCt=function(l){var e=JA(l);return Array.from(GEV(l)).filter(function(O){return _.EV(O)===e})};
_.M7=function(l,e,O){if(l instanceof HTMLElement&&_.EV(l)===O){var E=Array.from(l.classList).indexOf("style-scope");if(E===-1)l.classList.add("style-scope"),l.classList.add(e);else if(!(E+1>=l.classList.length)){E=l.classList[E+1];var J,z;l==null||(J=l.classList)==null||(z=J.replace)==null||z.call(J,E,e)}}if(l instanceof HTMLElement||l instanceof DocumentFragment)for(J=_.b(GEV(l)),z=J.next();!z.done;z=J.next())_.M7(z.value,e,O);return l};
V0=function(l,e){if(l instanceof HTMLElement&&_.EV(l)===e){var O=Array.from(l.classList).indexOf("style-scope");O===-1||O+1>=l.classList.length||l.classList.remove("style-scope",l.classList[O+1])}if(l instanceof HTMLElement||l instanceof DocumentFragment){O=_.b(l.children);for(var E=O.next();!E.done;E=O.next())V0(E.value,e)}return l};
_.EGd=function(l,e){return zV(l).prototype.appendChild.call(l,e)};
JLp=function(l,e){if(l===e)return!0;l=Bu8(l);return Array.from(l).some(function(O){return JLp(O,e)})};
_.ud=function(l,e){if(l instanceof Ze)return l;(e==null?0:e.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(l,"ownerDocument")&&Object.defineProperty(l,"ownerDocument",{get:function(){return window.document}});
return new Ze(l)};
zmT=function(){var l=Ze.prototype,e=[].concat(_.kA(X5u?[]:["getRootNode"]),["setAttribute","removeAttribute"]);e=_.b(e);for(var O=e.next(),E={};!O.done;E={method$jscomp$48:void 0},O=e.next())E.method$jscomp$48=O.value,l[E.method$jscomp$48]=function(J){return function(){return this.host[J.method$jscomp$48].apply(this.host,arguments)}}(E)};
MfA=function(){var l=Ze.prototype,e=[].concat(_.kA(X5u?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.kA(bCA?[]:["querySelector","querySelectorAll"]));e=_.b(e);for(var O=e.next(),E={};!O.done;E={method$jscomp$49:void 0},O=e.next())E.method$jscomp$49=O.value,l[E.method$jscomp$49]=function(J){return function(){return this.root[J.method$jscomp$49].apply(this.root,arguments)}}(E)};
uKq=function(){var l=Ze.prototype,e=[].concat(_.kA(Vfq?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.kA(ZCp?[]:["parentNode"]));e=_.b(e);for(var O=e.next(),E={};!O.done;E={prop$jscomp$62:void 0},O=e.next())E.prop$jscomp$62=O.value,Object.defineProperty(l,E.prop$jscomp$62,{get:function(J){return function(){return this.host[J.prop$jscomp$62]}}(E),
configurable:!0})};
$fq=function(){var l=Ze.prototype,e=["activeElement"].concat(_.kA(Vfq?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.kA(CFx?[]:["children"]),_.kA(oGp?[]:["lastChild"]));e=_.b(e);for(var O=e.next(),E={};!O.done;E={prop$jscomp$63:void 0},O=e.next())E.prop$jscomp$63=O.value,Object.defineProperty(l,E.prop$jscomp$63,{get:function(J){return function(){return this.root[J.prop$jscomp$63]}}(E),
configurable:!0})};
Wnp=function(){for(var l=Ze.prototype,e=_.b(["innerHTML","textContent"]),O=e.next(),E={};!O.done;E={prop$jscomp$64:void 0},O=e.next())E.prop$jscomp$64=O.value,Object.defineProperty(l,E.prop$jscomp$64,{get:function(J){return function(){return this.root[J.prop$jscomp$64]}}(E),
set:function(J){return function(z){this.root[J.prop$jscomp$64]=z}}(E),
configurable:!0})};
dfV=function(l){var e=Ze.prototype;l=_.b(Object.entries(l));for(var O=l.next(),E={};!O.done;E={fn$jscomp$360:void 0},O=l.next()){var J=_.b(O.value);O=J.next().value;J=J.next().value;E.fn$jscomp$360=J;e[O]=function(z){return function(){return z.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.kA(arguments)))}}(E)}};
iCT=function(){for(var l=Ze.prototype,e=_.b(Object.entries(gGT)),O=e.next(),E={};!O.done;E={fn$jscomp$361:void 0},O=e.next()){var J=_.b(O.value);O=J.next().value;J=J.next().value;E.fn$jscomp$361=J;Object.defineProperty(l,O,{get:function(z){return function(){return z.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.kA(arguments)))}}(E),
configurable:!0})}};
_.C1=function(l){return l instanceof w5x||l instanceof Document?l:new w5x(l)};
ALd=function(){for(var l=w5x.prototype,e=_.b("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),O=e.next(),E={};!O.done;E={method$jscomp$50:void 0},O=e.next())E.method$jscomp$50=O.value,l[E.method$jscomp$50]=function(J){return function(){return HTMLElement.prototype[J.method$jscomp$50].call.apply(HTMLElement.prototype[J.method$jscomp$50],[this.node].concat(_.kA(arguments)))}}(E)};
nGx=function(){for(var l=w5x.prototype,e=_.b("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),O=e.next(),E={};!O.done;E={prop$jscomp$65:void 0},O=e.next())E.prop$jscomp$65=O.value,Object.defineProperty(l,E.prop$jscomp$65,{get:function(J){return function(){var z;return(z=this.node["__shady_native_"+J.prop$jscomp$65])!=null?z:this.node[J.prop$jscomp$65]}}(E),
configurable:!0})};
_.oB=function(l,e,O){O===void 0&&(O=!l.classList.contains(e));O?l.classList.add(e):l.classList.remove(e)};
_.$T=function(l,e,O){O===void 0&&(O=!l.hasAttribute(e));if(e==="class")throw Error("fg");O?_.C1(l).setAttribute(e,""):_.C1(l).removeAttribute(e)};
a2V=function(l){return(l.localName!=="slot"?[]:(0,_.Ws)(l).assignedNodes({flatten:!0})).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
_.kBu=function(l){return(l=_.ud(l).querySelector("slot"))&&l.localName==="slot"?a2V(l):[]};
_.dP=function(l,e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(l,e)};
gP=function(l,e){var O=e.bind(l);return function(E){O(E,E.detail)}};
_.id=function(l,e){var O=I2x.get(l);O||(O=new WeakMap,I2x.set(l,O));if(O.has(e))return O.get(e);if(_.a("web_fi_listen_disable_bound_fn_helper")){var E=e.bind(l);l=function(J){E(J,J==null?void 0:J.detail)}}else l=gP(l,e);
O.set(e,l);return l};
p5p=function(l,e){mfx(l);l.created[yLW].push(e)};
mfx=function(l){if(!l.created||!l.created[yLW]){var e=l.created,O=e?[e]:[];l.created=function(){for(var E=_.b(O),J=E.next();!J.done;J=E.next())J.value.apply(this)};
l.created[yLW]=O}};
KnL=function(l){return function(){var e=_.ke.apply(0,arguments);return function(O,E,J){l.apply(null,_.kA(e))(O,E,J)}}};
jlL=function(){return function(){var l=_.ke.apply(0,arguments);return function(e,O,E){ILA.apply(null,_.kA(l))(e,O,E)}}};
_.K=function(l){return jlL()(l)};
_.R=function(){return KnL(KCW).apply(null,_.kA(_.ke.apply(0,arguments)))};
_.wP=function(l){return _.a("pbcm_fi_listen_decorators")?HCV(l):KnL(ycV)(l)};
HCV=function(l){return function(e,O){p5p(e,function(){var E=this[O],J=_.a("web_fi_listen_disable_bound_fn_helper")?function(z){E(z,z.detail)}.bind(this):gP(this,E);
cLA.has(l)?GL(this.hostElement,l,J):this.hostElement.addEventListener(l,J)})}};
_.AA=function(){return KnL(pn2).apply(null,_.kA(_.ke.apply(0,arguments)))};
_.T=function(l){l=l===void 0?{}:l;return KnL(mJg)(l)};
_.n1=function(l){if(l.hostElement&&l!==l.hostElement){var e=_.c9(l.hostElement);e=l.renderIdom?e:e.shadowRoot}e||(l=l.root,e=l instanceof Node?_.c9(l):null);return e};
_.aB=function(l){return Fnx?f28(l):function(e,O){Object.defineProperty(e,O,{get:function(){var E;return(E=_.n1(this))==null?void 0:E.querySelector(l)},
enumerable:!0,configurable:!0})}};
f28=function(l){return function(e,O){Object.defineProperty(e,O,{get:function(){var E,J=(E=_.ud(this.hostElement))==null?void 0:E.querySelector(l);if(J)return J;var z;return(z=_.n1(this))==null?void 0:z.querySelector(l)},
enumerable:!0,configurable:!0})}};
_.kT=function(l){return Fnx?Rm8(l):function(e,O){Object.defineProperty(e,O,{get:function(){var E;return(E=_.n1(this))==null?void 0:E.querySelectorAll(l)},
enumerable:!0,configurable:!0})}};
Rm8=function(l){return function(e,O){Object.defineProperty(e,O,{get:function(){var E,J=(E=_.ud(this.hostElement))==null?void 0:E.querySelectorAll(l);if(J==null?0:J.length)return J;var z;return(z=_.n1(this))==null?void 0:z.querySelectorAll(l)},
enumerable:!0,configurable:!0})}};
TiV=function(l){return function(e){if(![_.Xc,_.B].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("gg");dJM(Object.assign({},typeof l!=="string"?l:{is:l,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(e)}};
_.m0=function(){var l=l===void 0?{}:l;return function(e){if(![zz,_.IB].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("hg");gxL(Object.assign({},l,{disableInheritanceCheck:!0}))(e)}};
GBg=function(l,e){slV[l]!=null||(slV[l]=new Set);slV[l].add(e)};
_.y0=function(){var l=_.AA.apply(null,_.kA(_.ke.apply(0,arguments)));return function(e,O){GBg(e.is,O);l(e,O)}};
Hs=function(l,e,O){if(K1(l)&&!BiT.has(e)){e=e.replace(/^JSC\$[\d]+_/,"");e=e.replace(/\.\d+(\.|$)/g,function(z,M){return".#"+M});
jy[l]!=null||(jy[l]={});var E,J;(E=jy[l])[J=e]!=null||(E[J]=new Set);jy[l][e].has(O)||(jy[l][e].add(O),_.Bm("polymerPropertyAccessEvent",{componentName:l,propertyName:e,accessType:O}))}};
PFu=function(){return _.a("polymer_property_access_logging_debug")||_.a("polymer_enable_property_access_logging")};
K1=function(l){if(_.a("polymer_property_access_logging_debug"))return!0;if(!_.a("polymer_enable_property_access_logging"))return!1;Ufx||(Ufx=Date.now());return(rv(l)+Ufx)%100<_.Cv("polymer_property_access_logging_percent")};
YwA=function(l,e){return K1(e)&&l.hostElement.loggingStatus?new Proxy(l,{get:function(O,E,J){if(O.hostElement.loggingStatus.bypassProxyController)return O[E];O.hostElement.loggingStatus.isExternalGet=!0;var z=O[E];O.hostElement.loggingStatus.isExternalGet=!1;if(z instanceof Function)return function(){var M=_.ke.apply(0,arguments);try{return O.hostElement.loggingStatus.currentExternalCall=E,Hs(e,E,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),z.apply(this===J?O:this,M)}finally{O.hostElement.loggingStatus.currentExternalCall=
void 0}};
Hs(e,E,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return z},
set:function(O,E,J){if(O.hostElement.loggingStatus.bypassProxyController)return O[E]=J,!0;O.hostElement.loggingStatus.isRendererStamper?Hs(e,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):O.hostElement.loggingStatus.isDeclarativeExternal||Hs(e,E,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{O.hostElement.loggingStatus.currentExternalSet=E,O[E]=J}finally{O.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):l};
hmx=function(l,e){l&&l.loggingStatus&&!l.loggingStatus.isDeclarativeExternal&&!l.loggingStatus.isExternalGet&&l.loggingStatus.currentExternalSet!==e&&Hs(l.tagName.toLowerCase(),e,"PROPERTY_ACCESS_GET_INTERNAL")};
cs=function(l,e,O){l&&(O||l.loggingStatus&&!l.loggingStatus.isInitializing&&!l.loggingStatus.isDefiningPropertyAccessor&&l.loggingStatus.currentExternalSet!==e)&&Hs(l.tagName.toLowerCase(),e,"PROPERTY_ACCESS_SET_INTERNAL")};
LnA=function(){return{_definePropertyAccessor:function(l,e){var O=this,E=O.hostElement.loggingStatus;E&&(E.isDefiningPropertyAccessor=!0);var J=O[l];J!==void 0&&(O.__data?O._setPendingProperty(l,J):(O.__dataProto!=null||(O.__dataProto={}),O.__dataProto[l]=J));E&&(E.isDefiningPropertyAccessor=!1);Object.defineProperty(this,l,{get:function(){hmx(O.hostElement,l);return this.__data[l]},
set:function(z){e||this._setPendingProperty(l,z,!0)&&this._invalidateProperties()}})},
created:function(){var l=this._setPendingProperty.bind(this);this._setPendingProperty=function(e,O,E){cs(this.hostElement,e);return l.apply(this,[e,O,E])}}}};
tfA=function(l){PFu()&&_.K(F0.prototype)(l.prototype,"__templateBindingLoggingBehavior")};
qwL=function(l,e){if(e.resolvedFactories.length!==l.resolvedFactories.length)return!0;e=_.b(e.resolvedFactories.entries());for(var O=e.next();!O.done;O=e.next()){var E=_.b(O.value);O=E.next().value;E=E.next().value;if(E.providerClass){if(E.providerClass!==l.resolvedFactories[O].providerClass)return!0}else if(E.providerValue){if(E.providerValue!==l.resolvedFactories[O].providerValue)return!0}else if(E.factory!==l.resolvedFactories[O].factory)return!0}return!1};
vGM=function(l,e){l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.constructor===Array)vGM(O,e);else{var E=e;E.has(O)||(O.inject&&E.add(O),O.behaviors&&vGM(O.behaviors,E))}};
f1=function(l,e){var O=l[e];l[e]=function(){var E=_.ke.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(O)return O.apply(this,E)}};
Swu=function(){_.RB.Class=function(O,E){O=Nix(O,E);f1(O.prototype,"created");return O};
f1(TV.prototype,"_initializeProperties");f1(_.sV.prototype,"_initializeProperties");if(rLp)f1(Dfx,"created");else{var l=function(){f1(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))l();else{var e=customElements.define;customElements.define=function(O,E,J){e.call(customElements,O,E,J);O==="tp-yt-iron-list"&&(l(),customElements.define=e)}}}};
xfx=function(l,e){l.prototype.behaviors=l.prototype.behaviors||[];l.prototype.behaviors.unshift(Qlp.InjectBehavior);l.prototype.provide=e};
_.Ps=function(l){return function(e){if(!l.disableElementRegistration){l.noInjection||xfx(e,l.providers);var O=e.prototype;O.__templateHelpers||ILA(GV.prototype)(O,"__templateHelpers");O=l.is;lEg||(lEg=Date.now());(rv(O)+lEg)%100<_.Cv("polymer_log_prop_change_observer_percent")&&ILA(Bs.prototype)(e.prototype,"__propertyObserverObserver");e.prototype.behaviors=e.prototype.behaviors||[];e.prototype.behaviors.unshift(_.egW.YtHostElementBehavior);tfA(e);TiV({is:l.is,notifyObserversOnUndefined:l.notifyObserversOnUndefined!==
!1,fastInit:l.fastInit,template:l.template,disableEnforceFastDefaultValuesCheck:!0})(e)}}};
_.U=function(l){return _.Ps({is:l.is,template:l.template,disableElementRegistration:l.disableElementRegistration,cssBuildOptOut:l.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Jdg=function(l,e){if(OY8){l=new l;for(var O=_.b(Object.getOwnPropertyNames(l)),E=O.next();!E.done;E=O.next())E=E.value,e[E]=l[E];for(O=e;O&&O!==Object.prototype;O=Object.getPrototypeOf(O)){E=_.b(Object.getOwnPropertyNames(O));for(var J=E.next();!J.done;J=E.next())J=J.value,l.hasOwnProperty(J)||Object.defineProperty(l,J,ERx(e,J))}}else l.apply(e)};
ERx=function(l,e){return{get:function(){var O=l[e];return O instanceof Function?O.bind(l):O},
set:function(O){l[e]=O}}};
zgV=function(l,e){for(var O=l._noAccessors,E=_.b(Object.getOwnPropertyNames(l)),J=E.next();!J.done;J=E.next())if(J=J.value,!Xpu.has(J))if(O)e[J]=l[J];else{var z=Object.getOwnPropertyDescriptor(l,J);z&&(z.configurable=!0,Object.defineProperty(e,J,z))}};
bYT=function(l,e,O){return function(E){if(O){var J=O();E.model=J}if(l[e])l[e](E,E.detail)}};
UV=function(l){var e=[];if(typeof l==="string")l.length>0&&e.push.apply(e,_.kA(l.split(".")));else{l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,typeof O==="string"?e.push.apply(e,_.kA(O.split("."))):e.push(O)}return e};
MWp=function(l,e){if(e[e.length-1]!=="*"&&e[e.length-1]!=="splices"){for(var O=0;O<e.length;O++){if(!l)return;l=l[e[O]]}return l}};
VW2=function(l,e){if(l.length>e.length)return!1;for(var O=0;O<l.length;O++)if(l[O]!==e[O])return!1;return!0};
uft=function(l,e,O){if(e.type==="compute"){var E=e.getter.bind(O);var J=e.args}else E=function(){return O[e.method.methodName].apply(O,_.kA(_.ke.apply(0,arguments)))},J=e.method.args;
ZYd(l,e.propertyKey,E,J,e.value)};
oRL=function(l,e){if(e.readOnly){var O=Object.getOwnPropertyDescriptor(l.model,e.propertyKey);Object.defineProperty(l.model,e.propertyKey,{get:O.get,set:function(){}});
l.model[CEt(e.propertyKey)]=O.set}};
$l8=function(l,e,O){if(O){var E=e.propertyKey,J=e.selector;e=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.kA(e.selectorArgs.map(function(z){return{type:"path",path:z}})));
ZYd(l,E,function(z){var M=_.ke.apply(1,arguments);return J.apply(null,[O.getState()].concat(_.kA(M)))},e)}};
dlx=function(l,e,O){var E=_.kv(e.propertyKey)+"-changed";WOt(l,function(J){var z={value:J.value,queueProperty:!0};J.path.split(".").length>1&&(z.path=J.path);O.dispatchEvent(new CustomEvent(E,{detail:z}))},[{type:"wildcard",
path:e.propertyKey}])};
gRg=function(l,e,O){WOt(l,function(){O[e.method.methodName].apply(O,_.kA(_.ke.apply(0,arguments)))},e.method.args)};
CEt=function(l){return"_set"+(l.charAt(0).toUpperCase()+l.slice(1))};
iYx=function(){var l,e=P3(function(O){l=O},!1);
return[l,e]};
kDA=function(l){l=l.trim().replace(wpW,",").replace(AdM,"$1");var e=l[0];e==="-"&&(e=l[1]);if(e>="0"&&e<="9")return{type:"literal",value:Number(l)};if(e==="'"||e==='"')return{type:"literal",value:l.slice(1,-1)};if(e=l.match(nRL)){e=e[1];var O=aEp[e];if(O)return{type:O,path:l.slice(0,-(e.length+1))}}return{type:"path",path:l}};
ppx=function(l){var e=l.match(IEt);if(e)return l={methodName:e[1],args:mlA},e[2].trim()&&(e=e[2].replace(ydg,"&comma;").split(","),l.args=e.map(kDA)),l};
KOx=function(l,e,O,E){E=E===void 0?!1:E;e=_.kv(e);var J=yR;J&&(O=J(O,e,"attribute",l));hA(l,O,e,E)};
hA=function(l,e,O,E){e=je2(e,E===void 0?!1:E);e===void 0?l.removeAttribute(O):l.setAttribute(O,e)};
je2=function(l,e){switch(typeof l){case "object":case "function":if(l instanceof Date)return l.toString();if(l){if((e===void 0?0:e)&&!_.a("polymer_reflect_objects_as_boolean_killswitch"))return l?"":void 0;e=window.trustedTypes?window.trustedTypes.isHTML(l)||window.trustedTypes.isScript(l)||window.trustedTypes.isScriptURL(l):void 0;if(e)return l;try{return JSON.stringify(l)}catch(O){_.hG(Error("Dg`"+l))}}break;case "boolean":return l?"":void 0;default:return l!==null&&l!==void 0?l.toString():void 0}};
HY2=function(l){if(l===void 0)throw Error("Eg");return l};
Trp=function(l,e,O,E){var J=cd2(E);if(J.length){E=O;var z="property";FOL.test(O)?z="attribute":O[O.length-1]==="$"&&(O=O.slice(0,-1),z="attribute");var M=fEx(J);M&&z==="attribute"&&(O==="class"&&l.hasAttribute("class")&&(M+=" "+l.getAttribute(O)),hA(l,M,O));z==="attribute"&&E==="disable-upgrade$"&&l.setAttribute("disable-upgrade","");l.localName==="input"&&E==="value"&&l.setAttribute("value","");l.removeAttribute(E);z==="property"&&(O=_.Ic(O));e=HY2(e);RgM(e,z,O,J);return!0}return O.slice(0,3)===
"on-"?(l.removeAttribute(O),(z=e).events!=null||(z.events=[]),e.events.push({name:O.slice(3),value:E}),!0):O==="id"?(e.id=E,!0):!1};
cd2=function(l){for(var e=[],O=0,E;(E=seW.exec(l))!==null;){E.index>O&&e.push({type:"literal",value:l.slice(O,E.index)});var J=E[1][0];O=!!E[2];E=E[3].trim();if(J==="{")throw Error("Fg");(J=ppx(E))?e.push({type:"method",negate:O,signature:J}):e.push({type:"path",negate:O,path:E});O=seW.lastIndex}O&&O<l.length&&(l=l.substring(O))&&e.push({type:"literal",value:l});return e};
fEx=function(l){for(var e="",O=0;O<l.length;O++){var E=l[O];E.type==="literal"&&(e+=E.value)}return e};
RgM=function(l,e,O,E){l.bindings!=null||(l.bindings=[]);l.bindings.push({kind:e,target:O,parts:E})};
YM2=function(l,e,O){var E=!1;if(l.localName==="template"){E=O;var J=e.stripWhitespace;J=GDg(l,J===void 0?!1:J);var z=l.content.ownerDocument.createDocumentFragment();J.content=z;z.appendChild(l.content);E&&(E.templateInfo=J);E=!0}else l.localName==="slot"&&(e.hasInsertionPoint=!0);if(l.firstChild&&(J=O,l.localName!=="script"&&l.localName!=="style")){z=0;for(var M=l.firstChild;M;){var Z=M;if(Z.localName==="template"){var u=Z.getAttribute("is");if((M=u==="dom-if")||u==="dom-repeat"){Z.removeAttribute("is");
u=Z.ownerDocument.createElement("ps-"+u);Z.parentNode.replaceChild(u,Z);u.appendChild(Z);var d=Array.from(Z.attributes);d=_.b(d);for(var g=d.next();!g.done;g=d.next())g=g.value,M?Bru.has(g.name)&&hA(u,g.value,g.name):PEL.has(g.name)?hA(u,g.value,g.name):Uld.has(g.name),Z.removeAttribute(g.name);M=u}else M=Z}if(M.nodeType===Node.TEXT_NODE){Z=void 0;u=l;for(d=M;((Z=d.nextSibling)==null?void 0:Z.nodeType)===Node.TEXT_NODE;)g=void 0,(g=d).textContent!=null||(g.textContent=""),d.nextSibling.textContent&&
(d.textContent+=d.nextSibling.textContent),u.removeChild(d.nextSibling);if(e.stripWhitespace&&M.textContent&&!M.textContent.trim()){l.removeChild(M);M=M.nextSibling;continue}}YM2(M,e,{parentIndex:z,parentInfo:J});M.parentNode&&z++;M=M.nextSibling}}var w;if((w=l.hasAttributes)==null?0:w.call(l)){w=O=HY2(O);J=!1;z=Array.from(l.attributes);z=_.b(z);for(Z=z.next();!Z.done;Z=z.next())Z=Z.value,J=Trp(l,w,Z.name,Z.value)||J;E=J||E}l.nodeType===Node.TEXT_NODE&&(w=cd2(l.textContent),w.length&&(l.textContent=
fEx(w)||" ",O=HY2(O),RgM(O,"text","textContent",w),E=!0));O&&E&&(O.infoIndex=e.nodeInfoList.push(O)-1)};
GDg=function(l,e){e={nodeInfoList:[],stripWhitespace:(e===void 0?!1:e)||l.hasAttribute("strip-whitespace")};YM2(l.content,e);return e};
hgx=function(l){Object.assign(l,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
tWp=function(l,e,O){e.signalCache!=null||(e.signalCache={});var E=e.signalCache[O];if(!E){var J=O.split(".");E=!LOM(l,J[0]);if(J.length>1&&E){var z=l.getPathMutationSignal(J);E=function(){var M=hF(l.owner,function(){return l.getWithPath([J[0]])}),Z,u=(Z=z())==null?void 0:Z.value;
return{rootWasDefined:M!==void 0,value:u}}}else E=function(){var M=l.getWithPath(J);
return{rootWasDefined:M!==void 0,value:M}};
e.signalCache[O]=E}return E()};
vRp=function(l,e,O,E,J){e=e.parts.map(function(M,Z){if(M.type==="literal"){O.partWasDefined!=null||(O.partWasDefined=[]);var u;(u=O.partWasDefined)[Z]||(u[Z]=M.value!==void 0);return M.value}var d;if(M.type==="method"){var g,w=(g=(d=O.partWasDefined)==null?void 0:d[Z])!=null?g:!1;w||(w=M.signature.args.every(function(y){return y.type==="literal"}));
var n=!1,k=!0;d=M.signature.args.map(function(y){if(y.type==="literal")return y.value;if(y.type!=="path")throw Error("Gg`"+y.type);var c=tWp(l,O,y.path);y=c.value;c=c.rootWasDefined;n||(n=c);k&&(k=c);return y});
w||(w=J===1?k:n);O.partWasDefined!=null||(O.partWasDefined={});O.partWasDefined[Z]=w;if(!w)return;d=(Z=tWp(l,O,M.signature.methodName).value)&&typeof Z==="function"?Z.apply(E,d):void 0}else g=tWp(l,O,M.path),d=g.value,O.partWasDefined!=null||(O.partWasDefined={}),(w=O.partWasDefined)[Z]||(w[Z]=d!==void 0||g.rootWasDefined);M.negate&&(d=!d);return d});
if(e.length===1){var z;return((z=O.partWasDefined)==null?0:z[0])?e[0]:qMt}return e.join("")};
Nru=function(l){return typeof l==="object"&&!!l&&"notifyPath"in l&&"canNotifyPath"in l};
rdT=function(l){return typeof l==="object"&&!!l&&"notifyPath"in l};
DlM=function(l){return"polymerController"in l};
SMx=function(l,e){e=""+UV(e)[0];if(Nru(l))return l.canNotifyPath(e);if(DlM(l)&&Nru(l.polymerController))return l.polymerController.canNotifyPath(e);if(rdT(l)){var O;return!((O=l.properties)==null||!O[e])}if(DlM(l)&&rdT(l.polymerController)){var E;return!((E=l.polymerController.properties)==null||!E[e])}return!1};
QeA=function(l,e,O){Nru(l)||rdT(l)?l.notifyPath(e,O):DlM(l)&&(Nru(l.polymerController)||rdT(l.polymerController))&&l.polymerController.notifyPath(e,O)};
lix=function(l,e,O){if(O!==qMt){l.kind==="attribute"||l.target!=="textContent"&&(l.target!=="value"||e.localName!=="input"&&e.localName!=="textarea")||(O=O===void 0?"":O);var E,J=(E=xlt.Polymer)==null?void 0:E.sanitizeDOMValue;J&&(O=J(O,l.target,l.kind,e));if(l.kind==="attribute"){l=l.target;if(l==="class"||l==="name"||l==="slot")e=(0,_.Ws)(e);hA(e,O,l)}else if(l=l.target,O!==e[l]||typeof O==="object")e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!0,Hs(e.localName,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
e[l]=O,e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!1)}};
enq=function(l,e,O,E){var J=e.parts[0];if(e.parts.length!==1||J.type!=="path"||!SMx(O,e.target))return!1;var z=_.b(J.path.split(".")),M=z.next().value,Z=lJ(z);if(LOM(l,M))return!1;E.signalCache!=null||(E.signalCache={});z=E.signalCache[J.path];var u;z=(u=z)==null?void 0:u().value;if((z==null?void 0:z.path)!==void 0){E=UV(z.path);var d=UV(J.path);E=[e.target].concat(_.kA(E.slice(d.length-1)));QeA(O,E,J.negate?!z.value:z.value);return!0}var g=L1(l,M);var w=g.getChangeRecordSignal(Z),n=!1;z=function(){if(!n){var y=
hF(l.owner,function(){return g.getWithPath([])});
n||(n=y!==void 0)}return{value:w(),rootWasDefined:n}};
E.signalCache[J.path]=z;E.partWasDefined!=null||(E.partWasDefined={});z=z();(d=E.partWasDefined)[0]||(d[0]=z.rootWasDefined);var k=hF(l.owner,function(){return g.getWithPath(Z)});
E.partWasDefined[0]&&hF(l.owner,function(){return void lix(e,O,J.negate?!k:k)});
return!0};
OwT=function(l,e,O,E,J,z){if(!enq(l,e,O,E)){var M=vRp(l,e,E,J,z);hF(l.owner,function(){return void lix(e,O,M)})}};
E_M=function(l,e,O,E,J,z){O=_.b(O);for(var M=O.next(),Z={};!M.done;Z={infoIndex:void 0},M=O.next()){M=M.value;var u=M.bindings;Z.infoIndex=M.infoIndex;M=M.parentInfo;if(u){u=_.b(u);for(var d=u.next(),g={};!d.done;g={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},d=u.next()){g.b$jscomp$252=d.value;if(Z.infoIndex===void 0)throw Error("Hg");g.bindingCtx$jscomp$4={};l.effect(function(w,n){return function(){J&&!J()||OwT(l,w.b$jscomp$252,e[n.infoIndex],w.bindingCtx$jscomp$4,E,z)}}(g,Z))}}M&&E_M(l,e,[M],
E,J,z)}};
JQW=function(l,e){l=(e.parentInfo?JQW(l,e.parentInfo):l).firstChild;for(var O=0;l;l=l.nextSibling)if(e.parentIndex===O++)return l;throw Error("Ig");};
znL=function(l,e,O,E){l=document.importNode(l.content,!0);l.__noInsertionPoint=!(E==null?0:E.hasInsertionPoint);for(var J=Array(e.length),z={},M=0;M<e.length;M++){var Z=e[M],u=JQW(l,Z);J[M]=u;Z.id&&(z[Z.id]=u);if(Z.templateInfo){var d=u.parentElement;d&&(d.templateInfo=Z.templateInfo,d.parentSignalProxy=O,d.eventListenerHost=E.eventListenerHost,d.stampingEnabled=E.enabledSignal)}d=void 0;if((d=Z.events)==null?0:d.length)for(d=0;d<Z.events.length;d++){var g=Z.events[d];XdV(E.eventListenerHost,u,g.name,
g.value,E.getModel)}}E_M(O,J,e,E.thisCtx,E.enabledSignal,E.methodInvocationRequirement);return{root:l,nodes:J,nodesById:z}};
Mcd=function(l,e){l=l();var O;(O=bwd.ShadyCSS)==null||O.prepareTemplate(l,e);e=GDg(l);return{template:l,nodeInfoList:e.nodeInfoList,hasInsertionPoint:e.hasInsertionPoint}};
u32=function(){VcW=!1;for(var l=tA.length,e=0;e<l;e++){var O=tA[e];if(O)try{O()}catch(E){Promise.resolve().then(function(){throw E;})}}tA.splice(0,l);
Zwg+=l};
Wq2=function(l){VcW||(VcW=!0,Coq.textContent=(o_u++).toString());tA.push(l);return $Ut++};
_.N7=function(l,e,O){q7++;l=e?new dUT(q7,l,e,O):new g_u(q7,l);vs.set(q7,l);return q7};
iwx=function(l){(l=vs.get(l))&&l.cancel()};
AQq=function(l,e){l=wdW.get(l);return l?(e=l.get(e))?e:null:null};
_.rP=function(l,e,O,E){var J=AQq(l,e);if(!J){J=new n_8;var z=wdW.get(l);z||(z=new Map,wdW.set(l,z));z.set(e,J)}l=O.bind(l);J.run(l,E,void 0)};
_.ait=function(l,e){var O;(O=AQq(l,e))==null||O.cancel()};
km8=function(l){var e;(e=AQq(l,"doRender"))==null||e.flush()};
De=function(l){var e;return(e=l.hostElement)!=null?e:l};
Iig=function(l){var e=l.indexOf(".");return e===-1?l:l.slice(0,e)};
mUp=function(l,e,O,E,J,z){z=(J=(E=z?Iig(e):e)?e:null)?l.get(J):l.__data[e];J&&z===void 0&&(z=O[e]);_.$u(l.hostElement,OnL(E)+"-changed",{value:z,queueProperty:!0,path:J!=null?J:void 0},{bubbles:!1,composed:!1})};
yQW=function(l,e){l.__isReflecting=!0;KOx(l.hostElement,e,l.__data[e]);l.__isReflecting=!1};
pdp=function(l){if(l._onIronRequestResizeNotifications){var e=l._onIronRequestResizeNotifications.bind(l);l._onIronRequestResizeNotifications=function(O){_.OV(O)!==l.hostElement&&e(O)}}l._ariaActiveAttributeChanged&&(l._ariaActiveAttributeChanged=l._ariaActiveAttributeChanged.bind(l.hostElement));
l._activeChanged&&(l._activeChanged=function(O){l.toggles?hA(l.hostElement,O?"true":"false",l.ariaActiveAttribute):l.hostElement.removeAttribute(l.ariaActiveAttribute);l._changedButtonState()});
l._asyncClick&&(l._asyncClick=function(){_.N7(function(){l.hostElement.click()},1)});
!l.keyEventTarget||l.keyEventTarget instanceof EventTarget||(l.keyEventTarget=De(l.keyEventTarget));l._disabledChanged&&(l._disabledChanged=l._disabledChanged.bind(l.hostElement));l._observeItems&&(l._observeItems=function(O){var E=De(O);return _.c9(E).observeNodes(function(J){l._updateItems();l._updateSelected();_.$u(E,"iron-items-changed",J,{bubbles:!1,cancelable:!1})})});
l._updateItems&&l._updateItems===_.Sy._updateItems&&(l._updateItems=function(){var O=_.c9(l.hostElement).queryDistributedElements(l.selectable||"*");O=Array.prototype.filter.call(O,l._bindFilterItem);l._setItems(O)});
l._computeKeyboardClass&&(l._computeKeyboardClass=function(O){_.oB(l.hostElement,"keyboard-focus",O)});
l.ensureRipple&&(l.ensureRipple=function(O){if(l.hasRipple&&!l.hasRipple()){if(!l._createRipple)return;l._ripple=l._createRipple();l._ripple.noink=l.noink;var E=l._rippleContainer||l.hostElement;E&&_.ud(E).appendChild(l._ripple)}var J;if(O&&((J=l._ripple)==null?0:J.uiDownAction)){E=_.ud(l._rippleContainer||l.hostElement);var z;J=(z=O.composedPath())==null?void 0:z[0];E.contains(J)&&l._ripple.uiDownAction(O)}});
l._updateMultiselectable&&(l._updateMultiselectable=function(O){O?l.hostElement.setAttribute("aria-multiselectable","true"):l.hostElement.removeAttribute("aria-multiselectable")})};
KqT=function(l,e,O){O=_.b(O);for(var E=O.next();!E.done;E=O.next())Jdg(E.value.constructor,l);Jdg(e.constructor,l)};
Hwg=function(l,e){l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.type==="signal"){var E=O.propertyKey;if(e.hasOwnProperty(E)&&e[E]!=null&&O.attributeType===Object){a:{E=e[E].constructor;for(var J=_.b(jWx),z=J.next();!z.done;z=J.next())if(z=z.value,E===z){E=z;break a}E=Object}O.attributeType=E}}};
cQu=function(){};
Fqt=function(l){var e;return(e=l.hostElement)!=null?e:l};
fi2=function(){throw Error("Mg");};
Rnq=function(l,e){l.constructor.prototype.useSignals=!0;var O=new l.constructor;KqT(O,l,e.behaviors);Hwg(e.reactiveSchemas,O);O={};for(var E=_.b(e.reactiveSchemas),J=E.next();!J.done;J=E.next())J=J.value,J.type==="signal"&&(O[J.propertyKey]=J.attributeType);var z={copyPropertiesToProto:fi2,didRegister:!1,typesForSignals:O},M=["disable-upgrade"].concat(_.kA(e.observedAttributes)),Z=function(u){Q0.call(this,l,e,z,u)};
_.m(Z,Q0);_.Ji.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
z.copyPropertiesToProto=function(){for(var u=0;u<e.behaviors.length;u++)zgV(e.behaviors[u],Z.prototype);zgV(l,Z.prototype)};
e.legacyOptimizations||z.copyPropertiesToProto();Z.prototype.is=l.is;return Z};
TZ8=function(l,e){if(Object.getPrototypeOf(e.prototype).constructor!==_.B)throw Error("Ng");e.prototype.is=l.is;return Rnq(e.prototype,l)};
sWg=function(l){return l.type==="compute"||l.type==="computeWithMethod"};
Gm8=function(l){for(var e=l.reactiveSchemas.filter(sWg),O=new Map,E=new Map,J=new Map,z=_.b(e),M=z.next();!M.done;M=z.next())M=M.value,O.set(M.propertyKey,M),E.set(M.propertyKey,[]),J.set(M.propertyKey,0);z=0;e=_.b(e);for(M=e.next();!M.done;M=e.next()){M=M.value;for(var Z=_.b(M.type==="computeWithMethod"?M.method.args:M.args),u=Z.next();!u.done;u=Z.next())u=u.value,u.type!=="literal"&&(u=u.path.split(".")[0],E.has(u)&&(E.get(u).push(M.propertyKey),J.set(M.propertyKey,J.get(M.propertyKey)+1),z++))}M=
[].concat(_.kA(E.keys())).filter(function(d){return J.get(d)===0});
for(e=[];M.length;)for(Z=M.shift(),e.push(O.get(Z)),Z=_.b(E.get(Z)),u=Z.next();!u.done;u=Z.next())u=u.value,J.set(u,J.get(u)-1),z--,J.get(u)===0&&M.push(u);O=l.reactiveSchemas.filter(function(d){return!sWg(d)});
l.reactiveSchemas=[].concat(_.kA(O),_.kA(e))};
BZu=function(l,e){if(e.properties)for(var O=_.b(Object.entries(e.properties)),E=O.next();!E.done;E=O.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;l.properties[E]=typeof J==="function"?{type:J}:J}e.observers&&l.observers.push.apply(l.observers,_.kA(e.observers));e.disabledPolySiReactions&&l.disabledPolySiReactions.push.apply(l.disabledPolySiReactions,_.kA(e.disabledPolySiReactions))};
Pou=function(l,e){for(var O=e.length-1;O>=0;O--){var E=e[O];Array.isArray(E)?Pou(l,E):l.indexOf(E)<0&&l.unshift(E)}};
UUg=function(l,e){l.reactiveSchemas=l.reactiveSchemas.filter(function(O){return O.type==="observe"&&e.includes(O.method.methodName)||sWg(O)&&e.includes(O.propertyKey)?!1:!0})};
hnM=function(l,e){var O=e.prototype,E,J,z={is:l.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Qlp.InjectBehavior,GV.prototype],disableElementRegistration:l.disableElementRegistration,provide:(E=l.providers)!=null?E:[],reactivityMode:l.reactivityMode,signalProperties:(J=O.signalProperties)!=null?J:[]};"template"in e?z.templateGetter=function(){return e.template}:l.getTemplate&&(z.templateGetter=l.getTemplate);
O.behaviors&&Pou(z.behaviors,O.behaviors);YzA(z,e);return z};
YzA=function(l,e){for(var O=e.prototype,E={properties:{},observers:[],disabledPolySiReactions:[]},J=_.b(l.behaviors),z=J.next();!z.done;z=J.next())BZu(E,z.value);BZu(E,O);if(l.signalProperties)for(O=_.b(l.signalProperties),J=O.next();!J.done;J=O.next())delete E.properties[J.value];O=_.b(Object.entries(E.properties));for(J=O.next();!J.done;J=O.next()){z=_.b(J.value);J=z.next().value;z=z.next().value;var M=void 0;if((M=l.signalProperties)==null||!M.includes(J)){M=void 0;var Z=l,u=z.type;if(!u)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{u=Reflect.getMetadata("design:type",e,J);for(var d=_.b(Lqd),g=d.next();!g.done;g=d.next())if(g=g.value,u===g){u=g;break a}u=Object}else u=String;z.computed||z.selector||(Z.reactiveSchemas.push({type:"signal",propertyKey:J,value:z.value,attributeType:u,readOnly:z.readOnly}),Z.observedAttributes.push(_.kv(J)));z.reflectToAttribute&&Z.reactiveSchemas.push({type:"reflect",propertyKey:J});if(z.computed){u=ppx(z.computed);if(!u)throw Error("Og");Z.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:J,method:u,value:z.value})}z.observer&&Z.reactiveSchemas.push({type:"observe",method:{methodName:z.observer,args:[{type:"path",path:J}]}});z.notify&&Z.reactiveSchemas.push({type:"notify",propertyKey:J});z.selector&&Z.reactiveSchemas.push({type:"redux",propertyKey:J,selector:z.selector,selectorArgs:(M=z.selectorArgs)!=null?M:[]})}}tcq&&Gm8(l);e=_.b(E.observers);for(J=e.next();!J.done;J=e.next())O=l,J=J.value,(z=ppx(J))?O.reactiveSchemas.push({type:"observe",method:z}):console.log('Warning: unable to parse observe declaration: "'+
J+'"');UUg(l,E.disabledPolySiReactions)};
qzu=function(l,e){for(var O=0;O<e.length;O++){var E=e[O],J=void 0;(J=E).showHideApi!=null||(J.showHideApi={});J=void 0;!!l!==!((J=E.showHideApi)==null||!J.hideTemplateChildren)&&(E.nodeType===Node.TEXT_NODE?l?(E.showHideApi.polymerTextContent=E.textContent,E.textContent=""):(J=void 0,E.textContent=(J=E.showHideApi.polymerTextContent)!=null?J:null):E instanceof Element&&E.localName==="slot"?l?(E.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Ws)((0,_.Ws)(E).parentNode).replaceChild(E.showHideApi.polymerReplaced,
E)):(J=E.showHideApi.polymerReplaced)&&(0,_.Ws)((0,_.Ws)(J).parentNode).replaceChild(E,J):E instanceof HTMLElement&&E.style&&(l?(E.showHideApi.polymerDisplay=E.style.display,E.style.display="none"):E.style.display=E.showHideApi.polymerDisplay));E.showHideApi.hideTemplateChildren=l;E.showHideChildren&&E.showHideChildren(l)}};
NZq=function(){if(!v_W){var l=document.createElement("style");l.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(l);v_W=!0}};
xT=function(){return _.a("disable_hidden_dom_if_using_stamper")||_.a("creator_disable_hidden_dom_if_using_stamper")};
rQM=function(l,e){var O=_.ls().getState();return e?l.apply(null,[O].concat(_.kA(e))):l(O)};
QWt=function(){if(DUq)return DUq;var l=_.b(_.AF(0,void 0,"Nl6eIe")),e=l.next().value;l.next();var O=l.next().value;_.ls().subscribe(function(){Szt(O)});
return DUq=e};
Szt=function(l){_.a("delay_redux_signal_update_killswitch")?l(function(e){return e+1}):xU8||(xU8=!0,Promise.resolve().then(function(){l(function(e){return e+1});
xU8=!1}))};
_.ls=function(){return lkV.getAppStore()};
eb=function(l,e){return lkV.getSelectFn()(l,e)};
_.Ot=function(l){lkV.getDispatchFn()(l)};
eNL=function(l,e){var O={},E;for(E in l)O[E]=e(l[E],E);return O};
_.Et=function(l,e){return function(){var O;return(O=_.UB(l))!=null?O:e}};
_.J3=function(l,e){var O=Object.assign({},l),E;for(E in e)e.hasOwnProperty(E)&&(O[E]=_.Et(l[E],e[E]));return O};
Oq2=function(l,e,O){l instanceof Element&&(O.debugName||(O.debugName="<"+l.tagName.toLowerCase()+(l.tagName.includes("-")?">":"."+l.className+">")),_.a("ytwiz_enable_debug_component_props")&&(l.debugProps||(l.debugProps=eNL(e,function(E){return function(){return E()}}))))};
_.XO=function(l,e){var O=function(E){return fKA("ytComponent",{},function(J){var z=Em2={};var M;if(((M=O)==null?0:M.idomCompat)&&E.renderedFromIdom){var Z;M=typeof O.idomCompat==="object"?(Z=O)==null?void 0:Z.idomCompat.callbacks:{};Z=_.b(JhT(E,M,O.debugName));var u=Z.next().value;Z.next();Z=Z.next().value;M=X4x(l,u);z.privateValue=M;Em2=void 0;Oq2(M,u,O);z={debugName:O.debugName};J&&z&&Object.assign(J.attributes,z);J=vP8(M);J=Array.isArray(J)?J[0]:J;J[d5]||(J[d5]={});J[d5].updateSignalsFromIdomProps=
Z;return M}M=eNL(E,zNg);Z=X4x(l,M);z.privateValue=Z;Em2=void 0;Oq2(Z,M,O);z={debugName:O.debugName};J&&z&&Object.assign(J.attributes,z);return Z})};
O.debugName=e===void 0?"":e;return O};
X4x=function(l,e){l=l(e);return AT(l)};
bqM=function(l,e){l[e]||(l=new _.Hk("IDOM interop setter undefined. Key:",e),_.UW(l))};
zNg=function(l,e){return e==="children"||e==="ref"||typeof l==="function"||l===void 0?l:function(){return _.UB(l)}};
JhT=function(l,e,O){var E={},J={},z={},M={},Z;for(Z in l){M={key$jscomp$894:M.key$jscomp$894};M.key$jscomp$894=Z;var u=l[M.key$jscomp$894];if(M.key$jscomp$894==="children"||M.key$jscomp$894==="ref")E[M.key$jscomp$894]=u;else if(typeof u==="function")M.key$jscomp$894 in e||u.length>0?(z[M.key$jscomp$894]=u,E[M.key$jscomp$894]=function(g){return function(){return z[g.key$jscomp$894].apply(z,_.kA(_.ke.apply(0,arguments)))}}(M)):E[M.key$jscomp$894]=u;
else if(!(l[M.key$jscomp$894]===void 0&&M.key$jscomp$894 in e)){var d=_.b(_.AF(l[M.key$jscomp$894],{debugName:"__cwis:"+O+":"+M.key$jscomp$894},"BCkIlf"));u=d.next().value;d=d.next().value;E[M.key$jscomp$894]=u;J[M.key$jscomp$894]=d}}return[E,J,function(g){var w={},n;for(n in g)w={key$jscomp$895:w.key$jscomp$895,val$jscomp$117:void 0},w.key$jscomp$895=n,w.val$jscomp$117=g[w.key$jscomp$895],w.key$jscomp$895!=="children"&&w.key$jscomp$895!=="ref"&&(typeof w.val$jscomp$117==="function"?w.key$jscomp$895 in
e?z[w.key$jscomp$895]=w.val$jscomp$117:w.val$jscomp$117.length>0&&(z[w.key$jscomp$895]=w.val$jscomp$117,_.hG(new _.Hk("Callback detected that was not set in the idomCompat callbacks map. Key:",w.key$jscomp$895))):w.key$jscomp$895 in e&&w.val$jscomp$117===void 0||(bqM(J,w.key$jscomp$895),y5(function(k){return function(){J[k.key$jscomp$895](k.val$jscomp$117)}}(w))))}]};
Zqx=function(l,e,O){var E=CYq(l.prototype,Mgt,l.prototype.behaviors);E.prototype.is=e;E.prototype.localName=e;O&&VgA(E,O);return function(J){J&&(E.prototype.hostElement=J);var z=new E;z.root=z;z.hostElement=J;return z}};
VgA=function(l,e){var O;Object.defineProperty(l.prototype,"_template",{get:function(){O===void 0&&(O=e());return O},
set:function(E){O=E},
configurable:!0,enumerable:!0})};
WkL=function(l,e,O,E){function J(){if(!k){for(var y=new Set,c=_.b(g),f=c.next();!f.done;f=c.next()){f=f.value;for(var P=_.b(Object.getOwnPropertyNames(f)),h=P.next();!h.done;h=P.next()){h=h.value;var N=void 0,t=(N=Object.getOwnPropertyDescriptor(f,h))==null?void 0:N.value;t&&t instanceof Function&&!zr(h)&&(!Z[h]||_.a("polymer_forward_method_killswitch"))&&y.add(h)}}c=_.b(Object.entries(Object.getOwnPropertyDescriptors(l.prototype)));for(f=c.next();!f.done;f=c.next())P=_.b(f.value),f=P.next().value,
P=P.next().value,P.value instanceof Function&&!zr(f)&&y.add(f);k=y}return k}
utV(l,e,E==null?void 0:E.providers);oxu(l.prototype,l,!0);var z=Zqx(l,e,O),M,Z=(M=l.prototype.properties)!=null?M:{},u,d,g=(d=(u=l.prototype.behaviors)==null?void 0:u.flat(Infinity))!=null?d:[];O=_.b(g);for(M=O.next();!M.done;M=O.next())Z=Object.assign({},M.value.properties,Z);var w=[].concat(_.kA(CwM),_.kA(Object.keys(Z).map(function(y){return _.kv(y)}))),n=!1,k;
return{ctor:function(y,c){var f=z(y),P,h;y=[].concat(_.kA((P=E==null?void 0:E.allowedProps)!=null?P:[]),_.kA((h=E==null?void 0:E.allowedPropsFromBehaviors)!=null?h:[]));f.allowedProps=y.length>0?y:void 0;P={};h=_.b(w);for(y=h.next();!y.done;y=h.next())y=y.value,P[y]=_.Ic(y);f.__dataAttributes=P;var N=f.ready.bind(f);f.ready=function(){c.beforeReady();N();if(K1(e)&&!n){var t=f.__templateInfo;if(t==null?0:t.hostProps){t=_.b(Object.keys(t.hostProps));for(var r=t.next();!r.done;r=t.next())Hs(e,r.value,
"PROPERTY_ACCESS_GET_INTERNAL")}n=!0}};
f._overrideLegacyUndefined=!0;return f},
props:Z,observedAttributes:w,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var y=[],c=new Set,f=_.b(Object.keys(Z)),P=f.next();!P.done;P=f.next())P=P.value,y.push([P,Z[P].readOnly]),c.add(P);f=J();P=_.b(Object.keys(Object.getOwnPropertyDescriptors(l.prototype)));for(var h=P.next();!h.done;h=P.next())h=h.value,!omt(h)||f.has(h)||c.has(h)||(y.push([h,!1]),c.add(h));c=_.b($N8);for(f=c.next();!f.done;f=c.next())y.push([f.value,!0]);return y},
getPropsToForwardBeforeReady:function(y){for(var c=[],f=_.b(Object.entries(y)),P=f.next();!P.done;P=f.next()){var h=_.b(P.value);P=h.next().value;h=h.next().value;if(omt(P)&&!(h instanceof Function)&&(c.push([P,!1]),K1(e))){var N=h=void 0;(N=(h=y)._createPropertyAccessor)==null||N.call(h,P)}}return c},
shouldForwardProp:omt,shouldLog:K1}};
utV=function(l,e,O){xfx(l,O);l.prototype.behaviors.unshift(dNu);if(PFu()){if(K1(e)){var E;(E=l.prototype).behaviors!=null||(E.behaviors=[]);l.prototype.behaviors.unshift(LnA())}tfA(l)}_.K(GV.prototype)(l.prototype,"__templateHelpers")};
zr=function(l){return gmV.has(l)||l.startsWith("__compute__")};
omt=function(l){return!zr(l)&&!l.startsWith("_")&&!l.endsWith("_")};
akT=function(l,e){function O(){var n=u();n=_.b(n);for(var k=n.next();!k.done;k=n.next()){var y=_.b(k.value);k=y.next().value;y=y.next().value;iqL(w.prototype,k,y)}E=!0}
var E=!1,J=l.ctor,z=l.getInitialMethods,M=l.observedAttributes,Z=l.getPropsToForwardBeforeReady,u=l.getPropsToForwardBeforeRegister,d=l.shouldForwardProp,g=l.shouldLog,w=function(){var n=HTMLElement.call(this)||this;n.didForwardDynamicProps=!1;n.loggingStatus={};E||O();n.inst=J(n,{beforeReady:function(){n.didForwardDynamicProps||(n.forwardDynamicProps(),n.didForwardDynamicProps=!0)}});
n.controllerProxy=YwA(n.inst,e);n.forwardMethods();return n};
_.m(w,HTMLElement);w.prototype.forwardMethods=function(){for(var n=this,k=_.b(this.inst.getExtraMethodsToForward()),y=k.next(),c={};!y.done;c={method$jscomp$60:void 0},y=k.next()){var f=_.b(y.value);y=f.next().value;f=f.next().value;c.method$jscomp$60=f;this[y]=function(P){return function(){return P.method$jscomp$60.call.apply(P.method$jscomp$60,[n.inst].concat(_.kA(_.ke.apply(0,arguments))))}}(c)}k=_.b(z());
for(c=k.next();!c.done;c=k.next())c=c.value,d(c)&&w4T(this,c),g(e)&&!zr(c)&&Ah8(this.inst,c)};
w.prototype.forwardDynamicProps=function(){var n=Z(this.inst);n=_.b(n);for(var k=n.next();!k.done;k=n.next()){var y=_.b(k.value);k=y.next().value;y=y.next().value;iqL(this,k,y);g(e)&&!zr(k)&&nmu(this.inst,k)}};
w.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
w.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
w.prototype.attributeChangedCallback=function(n,k,y){this.inst.attributeChangedCallbackWrapper(n,k,y)};
_.Ji.Object.defineProperties(w.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return e}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Ji.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
customElements.define(e,w)};
iqL=function(l,e,O){l.hasOwnProperty(e)||Object.defineProperty(l,e,{get:function(){var E,J=((E=l.is)!=null?E:l.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Hs(J,e,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,E=this.polymerController[e],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,E},
set:function(E){if(!O){var J,z=((J=l.is)!=null?J:l.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Hs(z,e,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=e,this.loggingStatus.bypassProxyController=!0,this.polymerController[e]!==E&&(J={},this.polymerController.setProperties((J[e]=E,J)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
w4T=function(l,e,O){var E=l.polymerController;l[e]=function(){var J=_.ke.apply(0,arguments);l.loggingStatus.currentExternalCall=e;l.loggingStatus.bypassProxyController=!0;var z,M=((z=l.is)!=null?z:l.tagName).toLowerCase();Hs(M,e,"PROPERTY_ACCESS_CALL_EXTERNAL");var Z;z=(Z=O!=null?O:E[e])==null?void 0:Z.call.apply(Z,[E].concat(_.kA(J)));l.loggingStatus.currentExternalCall=void 0;l.loggingStatus.bypassProxyController=!1;return z}};
Ah8=function(l,e){var O=l.hostElement,E=l[e];l[e]=function(){var J=_.ke.apply(0,arguments);if(O.loggingStatus.currentExternalCall!==e){var z,M=((z=O.is)!=null?z:O.tagName).toLowerCase();Hs(M,e,"PROPERTY_ACCESS_CALL_INTERNAL")}return E==null?void 0:E.apply(l,J)}};
nmu=function(l,e){var O=Object.getOwnPropertyDescriptor(l,e);O&&!O.get&&Object.defineProperty(l,e,{get:function(){hmx(l.hostElement,e);return O.value},
set:function(E){cs(l.hostElement,e);O.value=E}})};
ksA=function(l){return _.a("poly_si_dom_repeat_detached_fix_killswitch")||l.tagName!=="PS-DOM-REPEAT"?l.tagName==="DOM-REPEAT":!0};
mNT=function(l,e){var O=IkV(l);l instanceof Element&&O.unshift(l);l=_.b(O.filter(ksA));for(var E=l.next();!E.done;E=l.next()){var J=void 0;E=_.b((J=E.value.__instances)!=null?J:[]);for(J=E.next();!J.done;J=E.next())if(J=J.value,J.root){J=Array.from(J.root.children);J=_.b(J);for(var z=J.next();!z.done;z=J.next())O.push.apply(O,_.kA(mNT(z.value,e)))}}return O.filter(function(M){return M.usePatchedLifecycles&&M.lifecycleIsConnected===e})};
IkV=function(l){var e=null;l instanceof Element?e=Element.prototype.querySelectorAll:l instanceof DocumentFragment&&(e=DocumentFragment.prototype.querySelectorAll);return e?Array.from(e.call(l,"*")):[]};
bs=function(l){wX(function(){for(var e=_.b(mNT(l,!1)),O=e.next();!O.done;O=e.next()){O=O.value;O.lifecycleIsConnected=!0;try{var E=void 0,J=void 0,z=void 0,M=void 0;(E=(M=O.polymerController)!=null?M:O)==null||(z=(J=E).connectedCallback)==null||z.call(J)}catch(Z){_.UW(Z)}}})};
MT=function(l){wX(function(){for(var e=_.b(mNT(l,!0)),O=e.next();!O.done;O=e.next()){O=O.value;O.lifecycleIsConnected=!1;try{var E=void 0,J=void 0,z=void 0,M=void 0;(E=(M=O.polymerController)!=null?M:O)==null||(z=(J=E).disconnectedCallback)==null||z.call(J)}catch(Z){_.UW(Z)}}})};
Fk8=function(){if(!yhq){yhq=!0;var l=[Node];VN&&l.push(VN.Wrapper);var e=Node.prototype.insertBefore,O=Node.prototype.removeChild;l=_.b(l);for(var E=l.next(),J={};!E.done;J={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},E=l.next())E=E.value,J.nativeInsertBefore=E.prototype.insertBefore,E.prototype.insertBefore=function(M){return function(Z,u){if(Z instanceof DocumentFragment){var d=Array.from(Z.children);Z=M.nativeInsertBefore.call(this,Z,u);
if(this.isConnected&&M.nativeInsertBefore===e)for(u=_.b(d),d=u.next();!d.done;d=u.next())bs(d.value);return Z}d=Z instanceof Element&&Z.isConnected;u=M.nativeInsertBefore.call(this,Z,u);d&&MT(Z);this.isConnected&&bs(Z);return u}}(J),J.nativeAppendChild=E.prototype.appendChild,E.prototype.appendChild=function(M){return function(Z){if(Z instanceof DocumentFragment){var u=Array.from(Z.children);
Z=M.nativeAppendChild.call(this,Z);if(this.isConnected){u=_.b(u);for(var d=u.next();!d.done;d=u.next())bs(d.value)}return Z}u=Z instanceof Element&&Z.isConnected;d=M.nativeAppendChild.call(this,Z);u&&MT(Z);this.isConnected&&bs(Z);return d}}(J),J.nativeRemoveChild=E.prototype.removeChild,E.prototype.removeChild=function(M){return function(Z){var u=Z instanceof Element&&Z.isConnected,d=M.nativeRemoveChild.call(this,Z);
u&&O===M.nativeRemoveChild&&MT(Z);return d}}(J),J.nativeReplaceChild=E.prototype.replaceChild,E.prototype.replaceChild=function(M){return function(Z,u){if(Z instanceof DocumentFragment){var d=Array.from(Z.children);
Z=M.nativeReplaceChild.call(this,Z,u);if(this.isConnected)for(MT(u),u=_.b(d),d=u.next();!d.done;d=u.next())bs(d.value);return Z}d=Z instanceof Element&&Z.isConnected;var g=this.isConnected,w=M.nativeReplaceChild.call(this,Z,u);g&&MT(u);d&&MT(Z);g&&bs(Z);return w}}(J);
l=[Element];VN&&l.push(VN.Wrapper);l=_.b(l);E=l.next();for(J={};!E.done;J={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},E=l.next())E=E.value,E.prototype.before=p4q(E.prototype.before),E.prototype.after=p4q(E.prototype.after),J.nativeReplaceWith=E.prototype.replaceWith,E.prototype.replaceWith=function(M){return function(){var Z=_.ke.apply(0,arguments),u=_.b(Kkq(Z)),d=u.next().value,
g=u.next().value;u=this.isConnected;M.nativeReplaceWith.apply(this,Z);Z=_.b(g);for(g=Z.next();!g.done;g=Z.next())MT(g.value);if(u)for(MT(this),d=_.b(d),u=d.next();!u.done;u=d.next())u=u.value,u instanceof Element&&bs(u)}}(J),J.nativeRemove=E.prototype.remove,E.prototype.remove=function(M){return function(){var Z=this.isConnected;
M.nativeRemove.call(this);Z&&MT(this)}}(J),J.nativeInsertAdjacentElement=E.prototype.insertAdjacentElement,E.prototype.insertAdjacentElement=function(M){return function(Z,u){var d=u.isConnected;
Z=M.nativeInsertAdjacentElement.call(this,Z,u);d&&MT(u);Z.isConnected&&bs(Z);return Z}}(J),J.nativeSetAttribute=E.prototype.setAttribute,E.prototype.setAttribute=function(M){return function(Z,u){var d=joq(this);
if(!d.usePatchedLifecycles)return M.nativeSetAttribute.call(this,Z,u);var g=this.getAttribute(Z);M.nativeSetAttribute.call(this,Z,u);u=this.getAttribute(Z);Hqu(d,Z,g,u)}}(J),J.nativeRemoveAttribute=E.prototype.removeAttribute,E.prototype.removeAttribute=function(M){return function(Z){var u=joq(this);
if(!u.usePatchedLifecycles)return M.nativeRemoveAttribute.call(this,Z);var d=this.getAttribute(Z);M.nativeRemoveAttribute.call(this,Z);d!==null&&Hqu(u,Z,d,null)}}(J),J.nativeToggleAttribute=E.prototype.toggleAttribute,E.prototype.toggleAttribute=function(M){return function(Z,u){var d=joq(this);
if(!this.usePatchedLifecycles)return M.nativeToggleAttribute.call(this,Z,u);var g=this.getAttribute(Z),w=g!==null;u=M.nativeToggleAttribute.call(this,Z,u);u!==w&&Hqu(d,Z,g,u?"":null);return u}}(J);
l=[Document,DocumentFragment,Element,ShadowRoot];VN&&l.push(VN.Wrapper);l=_.b(l);for(J=l.next();!J.done;J=l.next())J=J.value,J.prototype.prepend=p4q(J.prototype.prepend),J.prototype.append=p4q(J.prototype.append);(VN==null?void 0:VN.noPatch)===!0&&chq();document.readyState==="complete"?bs(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&bs(document.body)});
var z=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");z&&z.get&&z.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:z.enumerable,configurable:!0,get:z.get,set:function(M){M||MT(this);z.set.call(this,M);return M}})}};
p4q=function(l){return function(){var e=_.ke.apply(0,arguments),O=_.b(Kkq(e)),E=O.next().value;O=O.next().value;l.apply(this,e);e=_.b(O);for(O=e.next();!O.done;O=e.next())MT(O.value);if(this.isConnected)for(E=_.b(E),e=E.next();!e.done;e=E.next())e=e.value,e instanceof Element&&bs(e)}};
chq=function(){for(var l=_.b(fkp),e=l.next();!e.done;e=l.next()){e=e.value.prototype;for(var O=_.b(RNg),E=O.next();!E.done;E=O.next()){E=E.value;var J=Object.getOwnPropertyDescriptor(e,E);J&&Object.defineProperty(e,"__shady_native_"+E,J)}}};
Hqu=function(l,e,O,E){var J,z;if((J=l.polymerController)==null?0:(z=J.observedAttributes)==null?0:z.includes(e))if(l=l.polymerController,l.attributeChangedCallbackWrapper)l.attributeChangedCallbackWrapper.call(l,e,O,E);else{var M;(M=l.attributeChangedCallback)==null||M.call(l,e,O,E)}};
Kkq=function(l){var e=[],O=[];l=_.b(l);for(var E=l.next();!E.done;E=l.next())E=E.value,E instanceof Element&&E.isConnected&&O.push(E),E instanceof DocumentFragment?e.push.apply(e,_.kA(Array.from(E.children))):e.push(E);return[e,O]};
joq=function(l){return!(l instanceof Element)&&l.node instanceof Element?l.node:l};
Tqx=function(l,e){var O=e?["children"].concat(_.kA(e)):["children"];e=[];O=_.b(O);for(var E=O.next();!E.done;E=O.next()){var J=E.value;if(l.hasOwnProperty(J)){E=l[J];E=typeof E==="function"?E():E;E=AT(Array.isArray(E)?E:[E]).flat();if(J!=="children"){J=OnL(J);for(var z=_.b(E),M=z.next();!M.done;M=z.next())M=M.value,M instanceof Element&&M.setAttribute("slot",J)}e.push(E)}}e.length===0?l=[]:(l=AT(_.W("div",null,e)),l=Array.from(l.childNodes));return l};
GsM=function(l,e,O){var E={};_.Yo(function(){var J={},z;for(z in e)if(e.hasOwnProperty(z)){var M=void 0,Z=void 0;if(!(((M=O.slotProps)==null?0:M.includes(z))||z==="children"||((Z=O.callbackProps)==null?0:Z.includes(z))||z==="ref")&&(M=_.UB(e[z]),E[z]!==M)){E[z]=M;Z=void 0;var u=(Z=l.hostElement)!=null?Z:l;sog.has(z)&&(u[z]=M);J[z]=M}}y5(function(){if(l.setProperties)l.setProperties(J);else for(var d=_.b(Object.entries(J)),g=d.next();!g.done;g=d.next()){var w=_.b(g.value);g=w.next().value;w=w.next().value;
l[g]=w}})})};
Pw2=function(l,e,O,E){var J=Tqx(O,E.slotProps),z=(0,_.Ws)(l);J=_.b(J);for(var M=J.next();!M.done;M=J.next())z.appendChild(M.value);GsM(e,O,E);E=_.b(E.callbackProps||[]);J=E.next();for(z={};!J.done;z={kebabEventName:void 0,eventListener:void 0},J=E.next())M=J=J.value,String(J).substring(0,2)==="on"&&O[M]?(z.kebabEventName=OnL(String(J).substring(2)),z.eventListener=O[M],l.addEventListener(z.kebabEventName,z.eventListener),_.B3(function(g){return function(){l.removeEventListener(g.kebabEventName,g.eventListener)}}(z))):
e[M]=O[M];
if(O.ref){O=_.b(BqT(O.ref));var Z=O.next().value,u=O.next().value,d=e.attached.bind(e);e.attached=function(){Z(l);d()};
_.B3(function(){u()})}};
BqT=function(l){if(typeof l==="function"){var e;return[function(O){e=l(O)},
function(){var O;(O=e)==null||O()}]}if(!l.onRender||!l.onUnmount)throw Error("Sg");
return[l.onRender,l.onUnmount]};
Lkd=function(l,e,O,E,J){E=E===void 0?{}:E;var z=UNu,M=!1;z?(M=!0,UNu=void 0):(Y_T=e,z=document.createElement(e),Y_T=void 0);var Z=z;Z.usePatchedLifecycles=!0;Z.lifecycleIsConnected=!1;z.loggingStatus={};var u=hNL(l,e,z,E,J);_.B3(function(){Z.lifecycleIsConnected&&(Z.lifecycleIsConnected=!1,u.disconnectedCallback())});
M||Pw2(z,u,O,E);return z};
hNL=function(l,e,O,E,J){J=J===void 0?WkL:J;tgu[e]!=null||(tgu[e]=J(l,e,E==null?void 0:E.getTemplate,E));var z=tgu[e],M=z.ctor;J=z.getInitialMethods;var Z=z.getPropsToForwardBeforeReady;l=z.getPropsToForwardBeforeRegister;E=z.shouldForwardProp;var u=z.observedAttributes,d=z.shouldLog,g=M(O,{beforeReady:function(){var w=g;w._takeAttributes?w._takeAttributes():w.setPropertiesFromInitialAttributeValues&&w.setPropertiesFromInitialAttributeValues();w=_.b(Z(O.polymerController));for(var n=w.next();!n.done;n=
w.next()){var k=_.b(n.value);n=k.next().value;k=k.next().value;iqL(O,n,k);d(e)&&!zr(n)&&nmu(O.polymerController,n)}O.polymerController=YwA(g,e)}});
O.polymerController=g;O.polymerController.observedAttributes=u;z=_.b(g.getExtraMethodsToForward());for(M=z.next();!M.done;M=z.next())u=_.b(M.value),M=u.next().value,u=u.next().value,w4T(O,M,u);J=_.b(J());for(z=J.next();!z.done;z=J.next())z=z.value,E(z)&&w4T(O,z),d(e)&&!zr(z)&&Ah8(g,z);l=_.b(l());for(E=l.next();!E.done;E=l.next())J=_.b(E.value),E=J.next().value,J=J.next().value,iqL(O,E,J);return g};
vmq=function(l,e){return Zu===e?(l.isInert=!0,Zu="",!0):q_V===e?(l.isInert=!0,q_V="",!0):!1};
Nqd=function(l){var e=us;us=l;return e};
DNW=function(l){if(C4.has(l))q_V=l;else if(oX.has(l)&&us&&rht(us)===l){var e;(e=us)._numRenders!=null||(e._numRenders=0);us._numRenders++;if(us._numRenders>1)throw Error("Tg");return us}};
S_x=function(l){C4.has(rht(l))?q_V=rht(l):oX.has(rht(l))&&us!==l&&(l._isInert=!0)};
rht=function(l){var e;return(e=l==null?void 0:l.tagName.toLowerCase())!=null?e:""};
Qot=function(l,e){if(l.componentType===c3)throw Error("Ug");oX.add(e);var O=function(){var E=HTMLElement.call(this)||this;E.is=e;if(Y_T===e)return E.isInert=!0,E;E.createElement();return E};
_.m(O,HTMLElement);O.prototype.createElement=function(){if(!this.isInert){UNu=this;var E=_.b(_.Wfx(function(){return _.W(l,null)})).next().value;
UNu=void 0;hgx(this);return E}};
customElements.define(e,O)};
lD2=function(l,e,O,E,J){l.prototype.is=e;(E==null?0:E.useSink)?xNL(l,e,O,E,J):(O=WkL(l,e,O,E),akT(O,e));return l};
xNL=function(l,e,O,E,J){Fk8();var z=_.XO(function(M){return Lkd(l,e,M,Object.assign({},E,{getTemplate:O}),J)},"a");
Qot(z,e);return z};
OWL=function(l){return!eEA.has(l)};
XNq=function(l,e,O,E){function J(){if(!w){for(var n=new Set(EWx),k=_.b(z.behaviors),y=k.next();!y.done;y=k.next()){y=y.value;for(var c=_.b(Object.getOwnPropertyNames(y)),f=c.next();!f.done;f=c.next()){f=f.value;var P=void 0,h=(P=Object.getOwnPropertyDescriptor(y,f))==null?void 0:P.value;h&&h instanceof Function&&(!d[f]||_.a("polymer_forward_method_killswitch"))&&n.add(f)}}k=_.b(Object.entries(Object.getOwnPropertyDescriptors(l.prototype)));for(y=k.next();!y.done;y=k.next())c=_.b(y.value),y=c.next().value,
c=c.next().value,c.value instanceof Function&&n.add(y);w=n}return w}
var z=hnM({is:e,disableElementRegistration:!1,getTemplate:O,providers:E==null?void 0:E.providers,reactivityMode:E==null?void 0:E.reactivityMode},l);if((E==null?0:E.allowedProps)||(E==null?0:E.allowedPropsFromBehaviors)){var M,Z;z.allowedProps=[].concat(_.kA((M=E.allowedProps)!=null?M:[]),_.kA((Z=E.allowedPropsFromBehaviors)!=null?Z:[]))}var u=TZ8(z,l);e=u.observedAttributes;var d={};O=_.b(z.reactiveSchemas);for(E=O.next();!E.done;E=O.next())if(E=E.value,E.type==="signal")d[E.propertyKey]={readOnly:E.readOnly},
E.readOnly&&(d[CEt(E.propertyKey)]={readOnly:!0});else if(E.type==="compute"||E.type==="computeWithMethod"||E.type==="redux")d[E.propertyKey]={readOnly:!0};var g=z.reactiveSchemas.length,w;return{ctor:function(n,k){n=new u(n);n.beforeReady=k.beforeReady;return n},
props:d,observedAttributes:e,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var n=[],k=new Set,y=_.b(JUt),c=y.next();!c.done;c=y.next())c=c.value,n.push([c,c!=="observers"&&c!=="properties"]),k.add(c);y=_.b(Object.keys(d));for(c=y.next();!c.done;c=y.next())c=c.value,n.push([c,d[c].readOnly]),k.add(c);y=J();c=_.b(Object.keys(Object.getOwnPropertyDescriptors(l.prototype)));for(var f=c.next();!f.done;f=c.next())f=f.value,!OWL(f)||y.has(f)||k.has(f)||(n.push([f,!1]),k.add(f));n.push(["allowedProps",
!0]);return n},
getPropsToForwardBeforeReady:function(n){var k=[];n=_.b(Object.keys(n));for(var y=n.next();!y.done;y=n.next()){y=y.value;var c=J();OWL(y)&&!c.has(y)&&k.push([y,!1])}n=_.b(z.reactiveSchemas.slice(g));for(y=n.next();!y.done;y=n.next())y=y.value,y.type!=="compute"&&y.type!=="computeWithMethod"&&y.type!=="redux"&&y.type!=="signal"||k.push([y.propertyKey,y.type==="signal"?y.readOnly:!0]);return k},
shouldForwardProp:OWL,shouldLog:K1}};
_.Y=function(l,e,O,E){var J,z,M=(z=(J=E)==null?void 0:J.mode)!=null?z:0;E!=null||(E={});var Z;(Z=E).reactivityMode!=null||(Z.reactivityMode=0);M===1&&_.$6("creator_poly_si_disable_list").includes(e)&&(M=2);return M===1?lD2(l,e,O,Object.assign({},E,{useSink:!0}),XNq):lD2(l,e,O,Object.assign({},E,{useSink:M===2}))};
_.$0=function(){return function(l,e,O,E){var J,z,M=(z=(J=E)==null?void 0:J.mode)!=null?z:2;E!=null||(E={});var Z;(Z=E).reactivityMode!=null||(Z.reactivityMode=0);if(M===0)throw Error("Vg`"+M);return xNL(l,e,O,E,M===1?XNq:void 0)}};
_.Wf=function(l){return _.a("creator_poly_si_killswitch")?!1:_.a("force_all_poly_si_batches")&&(l==="poly_si_all_on_test_check"||l==="creator_poly_si_batch_050"?0:l)||document.documentElement.hasAttribute("use-signals")?!0:!l||_.a(l+"_holdback_enabled")&&_.a("kevlar_polysi_holdback")?!1:_.a(l)};
d6=function(l){return l?l.icon?l.icon.iconType.toLowerCase():l.customThumbnail?"member":"":""};
zEg=function(l){if(!l)return"";l=_.b(l);for(var e=l.next();!e.done;e=l.next())if((e=e.value)&&e.liveChatAuthorBadgeRenderer&&(e=d6(e.liveChatAuthorBadgeRenderer))&&e!=="verified")return e;return""};
bWx=function(l,e){if(!l)return null;var O;return((O=l.find(function(E){return E&&E.liveChatAuthorBadgeRenderer?d6(E.liveChatAuthorBadgeRenderer)===e:!1}))==null?void 0:O.liveChatAuthorBadgeRenderer)||null};
_.oWV=function(l){var e=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;l=Mxx(l);e=Mxx(e);var O=Vxg(l.hex);e=Vxg(e.hex);var E=e[0]/255;var J=e[1]/255,z=e[2]/255,M=Math.max(E,J,z),Z=Math.min(E,J,z),u=0,d=0,g=.5*(M+Z);M!=Z&&(M==E?u=60*(J-z)/(M-Z):M==J?u=60*(z-E)/(M-Z)+120:M==z&&(u=60*(E-J)/(M-Z)+240),d=0<g&&g<=.5?(M-Z)/(2*g):(M-Z)/(2-2*g));E=[Math.round(u+360)%360,d,g];O=ZWx(O,e);for(l=uz2(l.hex);O<4.5;){l=E[2]>=.5?l.darker((4.5-O)/2):l.brighter((4.5-O)/2);O=l.toString();
J=ClW(O);if(!J.length)throw Error("Sd`"+O);O=J;O=ZWx(O,e)}return l.hex()};
ZWx=function(l,e){l=_.xeT(l);e=_.xeT(e);return(Math.max(l,e)+.05)/(Math.min(l,e)+.05)};
_.g6=function(l){return"#"+("000000"+(l&16777215).toString(16)).slice(-6)};
_.$$V=function(l){for(var e=0,O=0;O<l.length;O++)e=l.charCodeAt(O)+((e<<5)-e);l="#";for(O=0;O<3;O++)l+=("00"+(e>>O*8&255).toString(16)).slice(-2);return l};
WKp=function(l){l=(l||"").split(":");l.length===1&&l.unshift("yt-icons");l[1]=l[1].toLowerCase();return l};
nWV=function(l,e){var O=(e=e===void 0?!1:e)?d$x:gWL,E=e?iWx:wNV;l.getIconNames().forEach(function(J){J=e?J:J.substring(J.indexOf(":")+1);l.name==="yt-icons"?AUV.add(J):J.includes("-filled")?O.add(J):E.add(J)})};
is=function(l,e,O,E){O=O===void 0?!1:O;E=E===void 0?!1:E;var J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return _.C(Z,aDM,2);if(E)return Z.return(AUV.has(l));J=O?d$x:gWL;z=O?iWx:wNV;return e?(M=l.includes("-filled")?l:l.concat("-filled"),Z.return(J.has(M))):Z.return(z.has(l))})};
_.m$x=function(l){if(kN8(l))return l;var e=l=l.toLowerCase();(l=IDu.get(l))&&(e=l);return e};
_.w6=function(l){if(kN8(l))return l.toString();var e=yUg.get(l);if(e)return e;e=l.toLowerCase();var O="yt-icons",E=e.replace(/_/g,"-");switch(l){case "MY_CHANNEL":e="account_circle";break;case "ADD_TO_LIBRARY":e="add";break;case "ALERT_WARN_RED":e="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":e="person_music";break;case "BLOCK_USER":e="block";break;case "CAPTIONS":e="closed_caption";break;case "CLOSED_CAPTION":O="av";e="closed-caption";break;case "COLLECTION":O="maps";e="layers";break;case "CONTACT":O=
"icons";e="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":O="ytcp-icons";e=E.split("creator-studio-")[1];break;case "DISMISSAL":e="close";break;case "DO_NOT_DISTURB":e="block";break;case "DOGFOOD":O="icons";e="pets";break;case "DRAFT":e="paper_corner_folded";break;
case "EMPTY_LIKE":e="like_outline";break;case "EXIT_APP":e="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":e=E;break;case "GAMES":O="ytg";e="my-games";break;case "GO_TO_PAGE":e="arrow-forward";break;case "GROUP":O="social";break;case "HIDE":e="not_interested";break;case "INPUT_COMPONENT":O="icons";e="settings-input-component";break;case "KIDS_BLOCK":e="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":O="ytg";e="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":O=
"ytg";e="membership-post-purchase";break;case "MULTIVIEW":e="screen_multi_view";break;case "MY_LOCATION":O="maps";e=E;break;case "NOTIFICATIONS_INBOX":e="NOTIFICATIONS";break;case "NEXT":e="chevron_right";break;case "OFFLINE":e="power-settings-new";break;case "PAUSE":O="miniplayer";break;case "PAYMENT":O="icons";break;case "PHONE_DOWNLOAD":e="phone_download";break;case "PREMIUM_STANDALONE":O="yt-logos";e="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":O="yt-logos";e="premium_standalone_cairo";
break;case "QUESTION_ANSWER":e="question_answer";break;case "REDEEM":O="icons";e="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":e="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":e="library_add";break;case "SCHOOL":O="yt-sys-icons";e="creator_academy";break;case "SETTINGS_LIGHT":e="settings_applications";break;case "SETTINGS_MATERIAL":e="settings";break;case "SEARCH_HISTORY":e="watch_history";break;case "SHOPPING_BAG":e="bag";break;case "SOCIAL":case "PEOPLE":O=
"yt-icons";e="people";break;case "STAFF_PICK":O="ytg";e="spotlight";break;case "START_DVR":e="add";break;case "STOP_DVR":O="av";e="stop";break;case "TAB_LIKED":e="like";break;case "TAB_INBOX":e="mail";break;case "TERMS_OF_SERVICE":O="icons";e="description";break;case "TRENDING":e="fire";break;case "UNBLOCK_USER":e="remove";break;case "UNPLUGGED_DARK_THEME":O="image";e="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":e="live";break;case "UNPLUGGED_SPORTS":O="ytu";e="visibility-off";break;
case "VIDEOS":O="av";e="play-circle-filled";break;case "YOUTUBE":O="yt-logos";e="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":O="yt-logos-ext";e="yt-logo-red-updated";break;case "YOUTUBE_LOGO":O="yt-logos-ext";e="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":O="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":O="shorts";e=E;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":O="yt-sys-icons";e="youtube_improve_tv";break;case "OUTLINE_BAG":O=
"yt-sys-icons";e="bag";break;case "QUEUE_PLAY_LAST":O="yt-sys-icons";e="list_queue_last";break;case "SLASH_CIRCLE_LEFT":e="slash_circle_left";break;case "SPEED_1_POINT_2X":e="1_point_2x";break;case "SPEED_1_POINT_5X":e="1_point_5x";break;case "SPEED_1_POINT_8X":e="1_point_8x";break;case "SPEED_POINT_2X":e="point_2x";break;case "SPEED_POINT_5X":e="point_5x";break;case "SPEED_POINT_8X":e="point_8x";break;case "SPEED_1X":e="1x";break;case "SPEED_2X":e="2x";break;case "TAB_BOOKMARK":e="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":O="yt-sys-icons";e="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":O="yt-sys-icons";e="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":O="yt-sys-icons",e="tic_tac_toe"}e=O+":"+e;yUg.set(l,e);return e};
kN8=function(l){var e;_.a("kevlar_use_wil_icons")?e=!!_.V2().resolve(_.A3).resolveIcon({iconName:l.toString()}):e=!1;return e};
_.aX=function(l,e,O,E){O=O===void 0?{}:O;E=E===void 0?!1:E;O===null&&(O={});var J=_.$6("kevlar_command_handler_command_banlist");J=_.b(J);for(var z=J.next();!z.done;z=J.next())if(z=l?l.hasOwnProperty(z.value):void 0,z)return!1;J=_.I(l.commandMetadata,_.V4);return E&&J!=null&&J.url?!1:!e.disableCommandHandlerOverride&&_.n4.instance?(E=_.n4.instance,O.form||(O.form={element:e}),O.form.element||(O.form.element=e),!O.clickedVisualElement&&e.visualElement&&(O.clickedVisualElement=e.visualElement),E.resolveCommand(l,
O),!0):!1};
pNL=function(l,e){l=k0(l);for(var O=_.b(l.visibilityMonitorKeys||[]),E=O.next();!E.done;E=O.next())e.unobserveByKey(E.value);l.visibilityMonitorKeys=void 0};
cUg=function(l,e){if(_.P9()){if(_.a("kevlar_vimio_use_shared_monitor"))KKL(l,e.data);else if(!KKL(l,e.data))return;var O=e.data,E=jvt(O);if(_.a("enable_client_ve_spec_logging"))pNL(l,e.observer);else{var J=k0(l);J.trackedParams&&J.trackedParams!==E&&pNL(l,e.observer)}J=k0(l);!O||J.data&&J.data===O||(J.data=O);HWL(l,e);J.trackedParams=E}};
HWL=function(l,e){var O=e.observer;if(!O&&_.a("web_skip_missing_vimio_observer")){var E,J;_.hG(new _.Hk("VisibilityObserver is not defined.",l.tagName,l.trackedParams,(E=e.data)==null?void 0:E.trackingParams,(J=e.data)==null?void 0:J.loggingDirectives))}else{var z=e.layer,M=e.visibilityCallback||function(){},Z=e.prescanCallback,u=k0(l);
E=[];e.showOption&&E.push(O.observe(l,function(){e.skipLogging&&e.skipLogging()||_.IX().reportShown(u,void 0,z);M(!0)},e.showOption));
e.hideOption&&E.push(O.observe(l,function(){_.IX().reportHidden(u,void 0,z);M(!1)},e.hideOption));
e.prescanOption&&Z&&E.push(O.observe(l,function(){Z()},e.prescanOption));
u.visibilityMonitorKeys=E}};
KKL=function(l,e){l=k0(l);if(l.visualElement&&!e)return!0;if(!e)return!1;var O=!1;if(_.a("enable_client_ve_spec_logging")){var E,J;O=!!((E=e.loggingDirectives)==null?0:(J=E.clientVeSpec)==null?0:J.uiType)}E=jvt(e);if(!E&&!O)return!1;_.a("mweb_component_visibility_logging")&&(l.veContainer||(l.veContainer={}),l.veContainer.trackingParams=E);if(l.trackedParams&&l.trackedParams===E)return!1;var z;if(_.a("enable_client_ve_spec_logging")&&((z=l.visualElement)==null?0:z.isClientVe())){var M;z=(M=l.visualElement)==
null?void 0:M.getAsJspb();var Z,u,d,g;if(_.Eo(z,2)===((Z=e.loggingDirectives)==null?void 0:(u=Z.clientVeSpec)==null?void 0:u.uiType)&&_.Eo(z,3,-1)===((d=e.loggingDirectives)==null?void 0:(g=d.clientVeSpec)==null?void 0:g.elementIndex))return!1}if(_.a("enable_client_ve_spec_logging")){var w,n;!l.visualElement&&((w=e.loggingDirectives)==null?0:(n=w.clientVeSpec)==null?0:n.uiType)&&(Z=e.loggingDirectives.clientVeSpec,e=Z.uiType,M=Z.elementIndex,Z=Z.clientYoutubeData,l.visualElement=_.mX(_.yN(),{veType:e,
elementIndex:M,clientYouTubeData:Z}))}return!0};
jvt=function(l){if(l==null?0:l.rendererContext){var e=_.I(l.rendererContext,_.p4);if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams}return(l==null?0:l.loggingDirectives)?l.loggingDirectives.trackingParams:l==null?void 0:l.trackingParams};
k0=function(l){var e;return(e=l.polymerController)!=null?e:l};
TbA=function(l){_.IX();if(_.qz(K4().JSC$10504_elementShouldLogGesture).bind(K4())(l,4)){FKd(l);var e=fDp(l);REq.set(l,e)}};
FKd=function(l){REq.has(l)&&(REq.get(l).cancel("untrack hover element"),REq.delete(l))};
fDp=function(l){var e,O=[],E=!1,J=new _.kE(function(z,M){jb(l,"mouseenter",_.qz(function(){var Z,u,d;return _.V(function(g){if(g.nextAddress==1)return e=(0,_.VZ)(),Z=svV(l),O.push(Z),u=GNu(l,function(){E=!0;M(Error("Wg"))}),_.C(g,Z,2);
if(g.nextAddress!=3)return u&&Hf(u),d=Bbu(l),O.push(d),_.C(g,d,3);z();_.Cl(g)})}))});
J.then(function(){var z=(0,_.VZ)()-e;z=Math.round(z);if(!(500>z||6E5<=z)){var M=l.getScreenLayer?l.getScreenLayer():void 0;M=_.P9(M)||"";var Z=Plg(_.IX(),l);_.En(M,l.visualElement?l.visualElement:_.cf(Z),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:z}})}TbA(l)},function(){FO&&(FO(),FO=null);
E&&(FKd(l),TbA(l))});
return J};
svV=function(l){var e;return(new _.kE(function(O,E){FO=function(){E(Error("Xg"))};
e=_.UD.debounce(_.qz(function(){Hf(J);O()}),1,100);
var J=_.f4(l,"mousemove",e)})).thenCatch(function(){var O=_.UD.cancelDebouncedJobMap.get(e);
O&&_.UD.cancelJob(O)})};
Bbu=function(l){var e;return(new _.kE(function(O,E){FO=function(){E(Error("Yg"))};
e=jb(l,"mouseleave",_.qz(function(){O()}))})).thenCatch(function(){Hf(e)})};
GNu=function(l,e){return jb(l,"mouseleave",_.qz(e))};
Yeq=function(l){U$M&&_.RX.cancel(U$M);U$M=_.RX.run(function(){_.$u(l,"yt-visibility-refresh");U$M=0})};
hEx=function(l){l=Number(l);return"rgba("+[l>>16&255,l>>8&255,l&255,(l>>24&255)/255].join()+")"};
tx8=function(l){if(!l)return!1;if(_.I(l,_.LKM))return!0;var e;if(l=(e=_.I(l,_.nz))==null?void 0:e.commands)for(e=_.b(l),l=e.next();!l.done;l=e.next())if(_.I(l.value,_.LKM))return!0;return!1};
qeA=function(l){var e=!0;e=e===void 0?!0:e;if(!l.useSignals&&!l.experimentalPropertiesChanged||_.a("experimental_templating_behavior_nopatch_killswitch")){var O=l._propertiesChanged;l._propertiesChanged=function(E,J,z){e?l.debounceRender():l.doRender();O&&O.call(l,E,J,z)}}};
vWW=function(l,e){if(l.useSignals||l.experimentalPropertiesChanged)if(_.a("experimental_templating_behavior_nopatch_killswitch"))l.experimentalPropertiesChanged=function(){};
else return;var O=new Set,E=[l].concat(_.kA(l.behaviors));E=_.b(E);for(var J=E.next();!J.done;J=E.next()){J=J.value;for(var z in J.properties)O.has(z)||(l._addPropertyEffect(z,"function",e),O.add(z))}};
Nbg=function(){var l=Polymer.Element,e=l._prepareTemplate;l._prepareTemplate=function(){e.call(this);var O=this.prototype;if(O.experimentalTemplatingInUse&&O.experimentalTemplatingInUse()&&O.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.UW(Error("Zg"));else{O=this.template.content.childNodes;for(var E=O.length-1;E>=0;E--){var J=O[E];J.nodeName!=="STYLE"&&J.nodeName!=="LINK"&&J.nodeName!=="SCRIPT"&&J.nodeName!=="#comment"&&J.remove()}}}};
rU2=function(l){var e=!0;e=e===void 0?!0:e;Nbg();var O=l.ready;l.ready=function(){this._template=null;O.call(this)};
vWW(l,e?l.debounceRender:l.doRender)};
SeW=function(l,e,O){if(O===null||O===void 0)return O;var E=bu8(l.tagName.toLowerCase(),e,function(){throw Error("Rb");});
if(E===null)return O;E=D$T[E];var J;if((J=E.isUnwrappable)==null?0:J.call(E,O)){if(E.unwrap)return E.unwrap(O);throw Error("bh");}return E.filterString?E.filterString(l.tagName,e,String(O)):O};
Qvq=function(l,e,O){var E=e[e.length-1]!=="$",J=SeW(l,e,O);if(E)if(typeof J==="function"&&e.startsWith("reactiveon")&&e===e.toLowerCase()){var z=JF;gP2(l,e.slice(8),function(M){hF(z,function(){J(M)})})}else l[e]=J;
else O=J==null?null:String(J),dxA(l,e.slice(0,-1),O)};
st=function(l){x$x.length===0&&requestAnimationFrame(function(){setTimeout(function(){var e=x$x.slice();x$x.length=0;e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;try{O()}catch(E){_.Tr(E)}}})});
x$x.push(l)};
lju=function(l){if(l){var e=l.component;if(e){var O;e==null||(O=e.events)==null||O.publish("DISCONNECTED");var E;e==null||(E=e.onDisconnected)==null||E.call(e)}var J,z;(J=l.__spec)==null||(z=J.didUnmount)==null||z.call(J);for(e=0;e<l.childNodes.length;e++)lju(l.childNodes[e])}};
Bf=function(l,e,O){var E=e&&e.key,J=OC;J[0]=l;J[1]=E;J[2]=void 0;for(var z in e)e.hasOwnProperty(z)&&(l=e[z],E=EC,E.push(z),E.push(l));e=OC;a:{if(z=OC[2])for(l=0;l<z.length;l+=2)if(z[l]==="nonce"){z=z[l+1];break a}z=""}z=Hug(e[0],e[1],z);l=v3(z);E=e[2];if(!l.staticsApplied&&(l.staticsApplied=!0,E&&E.length))if((J=l._attrsArr)&&J.length){for(J=0;J<E.length;J+=2)Gr[E[J]]=J+1;J=l._attrsArr||(l._attrsArr=WwW(0));for(var M=0,Z=0;Z<J.length;Z+=2){var u=J[Z],d=J[Z+1],g=Gr[u];g?E[g]===d&&delete Gr[u]:(J[M]=
u,J[M+1]=d,M+=2)}tF(J,M);for(var w in Gr)aAp(z,w,E[Gr[w]],zL),delete Gr[w]}else for(w=0;w<E.length;w+=2)aAp(z,E[w],E[w+1],zL);GJA(z,l,zL);tF(e,0);O&&O(Na);cW8()};
eWp=function(l){var e=l.toString().toLowerCase();return function(O,E){Bf(e,O,E)}};
_.Pf=function(l,e,O){O===void 0?delete l[e.name]:l[e.name]=O};
_.Ut=function(l){var e={androidIncludeFontPadding:!1},O=0,E=[],J=[],z=[];if(l.simpleText)return e.content=l.simpleText,e;if(l.runs===void 0)return e.content="",e;l=_.b(l.runs);for(var M=l.next();!M.done;M=l.next()){M=M.value;var Z=M.text,u=void 0,d=(u=Z)==null?void 0:u.length;if(Z&&d){E.push(Z);if(M.bold||M.italics||M.strikethrough||M.underline||M.textColor!=null&&M.textColor!==0||M.deemphasize){Z=J;u=Z.push;var g={startIndex:O,length:d};M.bold&&(g.weightLabel="FONT_WEIGHT_MEDIUM");M.italics&&(g.italic=
!0);M.strikethrough&&(g.strikethrough="LINE_STYLE_SINGLE");M.underline&&(g.underline="LINE_STYLE_SINGLE");M.textColor!=null&&M.textColor!==0?document.documentElement.hasAttribute("dark")?g.fontColor=M.darkModeTextColor||M.textColor:g.fontColor=M.textColor:M.deemphasize&&(document.documentElement.hasAttribute("dark")?g.fontColor=parseInt("ff"+OG2("#aaa").substring(1),16):g.fontColor=parseInt("ff"+OG2("#606060").substring(1),16));u.call(Z,g)}M.navigationEndpoint&&(Z=z,u=Z.push,g={startIndex:O,length:d,
onTap:{innertubeCommand:M.navigationEndpoint}},M.loggingDirectives&&_.Pf(g,EyV,M.loggingDirectives),u.call(Z,g));O+=d}}e.content=E.join("");e.styleRuns=J.length?J:void 0;e.commandRuns=z.length?z:void 0;return e};
XSu=function(l){if(l==null||!l.runs)return!0;l=_.b(l.runs);for(var e=l.next();!e.done;e=l.next())if(e=e.value,e.bracket||e.errorUnderline||e.deemphasize||_.I(e,Y0)||_.I(e,JoW))return!1;return!0};
zWW=function(l,e){return function(O){var E=e.unit;if(E!==O)throw Error("eh`"+l+"`"+E+"`"+O);return e}};
h3=function(l){if(!((l==null?0:l.value)&&(l==null?0:l.unit)))return"";switch(l.unit){case "DIMENSION_UNIT_FRACTION":var e="%";break;default:e="px"}l=l.value;e==="%"&&(l*=100);return""+l+e};
bGd=function(l){try{return l()}catch(e){_.hG(e)}};
_.t3=function(l){var e=_.I(l,_.L4);if(e)return e;if((e=_.I(l,MiA))&&e.commands)return Vig(e.commands);if((e=_.I(l,ZGx))&&e.commands)return Vig(e.commands);if((l=_.I(l,uMx))&&l.identifier&&l.command&&(Cxt||(Cxt=[]),!Cxt.includes(l.identifier)))return Cxt.push(l.identifier),_.I(l.command,_.L4)};
Vig=function(l){if(l.length!==0){var e=[];l=_.b(l);for(var O=l.next();!O.done;O=l.next())(O=_.t3(O.value))&&e.push(O);return{commandExecutorCommand:{commands:e}}}};
_.vf=function(l){var e=l.defaultTarget,O=l.elementConfig,E=l.elementsCommand,J=l.skipOnClick,z=l.forceNewState,M=l.additionalCommandArgs,Z=l.innertubeCommand||_.t3(E);if(Z){l={};var u=oyu(Z);E=u.navigatingCommand;u=u.href;E&&u?(l.href$=u,$p2(l,E,u,e),_.a("web_atagconfig_pointerdown")&&WLT(l,E),z&&(l["force-new-state$"]=!0)):(l.role$="button",l.href$="javascript:void(0);");_.I(Z,dp8)&&(l["aria-haspopup$"]=!0);J||(l.onclick=function(d){if(gyW(d)){var g=Object.assign({},{form:{element:d.target,event:d}},
M);d.preventDefault();_.qT(Z,g)}});
return Object.assign({},O,l)}};
iG8=function(l){if(l.length){if(l.length===1)return l[0];var e={};_.Pf(e,_.nz,{commands:l});return e}};
NT=function(l){return l&&l.href$!=="javascript:void(0);"};
oyu=function(l){var e,O=((e=_.I(l,_.nz))==null?void 0:e.commands)||[l];l=_.b(O);for(e=l.next();!e.done;e=l.next()){e=e.value;var E=void 0,J=void 0;O=(J=_.I((E=e)==null?void 0:E.commandMetadata,_.V4))==null?void 0:J.url;_.a("web_remove_web_navigation_endpoint_data")||(E=void 0,O=O||((E=_.I(e,wSM))==null?void 0:E.url));if(O&&O!=="/service_ajax"){if(E=ir(O,AoL))return l=_.W2(E),{navigatingCommand:e,href:l};_.hG(new _.Hk("AttributedString URL could not be sanitized",O))}}return{}};
gyW=function(l){return l.button!==void 0?l.button===0&&!(l.shiftKey||l.altKey||l.metaKey||l.ctrlKey):!(l.shiftKey||l.altKey||l.metaKey||l.ctrlKey)};
$p2=function(l,e,O,E){O=!zR(O);var J,z,M;if((J=_.I(e,_.ms))!=null&&J.nofollow||(z=_.I(e,_.ej))!=null&&z.nofollow||(M=_.I(e,_.Db))!=null&&M.nofollow||O)l.rel$="nofollow";var Z;e=((Z=_.I(e,_.Db))==null?void 0:Z.target)==="TARGET_NEW_WINDOW"?"_blank":E===void 0?"":E;l.target$=e};
WLT=function(l,e){e.clickTrackingParams&&(l.params={itct:e.clickTrackingParams});l.onpointerdown=function(O){nyp(O)};
l._data=e};
ajt=function(l){(l.loggingUrls||[]).forEach(function(e){QZ(e.baseUrl,e.attributionSrcMode)})};
k$g=function(l){l.currentTarget._data&&ajt(l.currentTarget._data)};
nyp=function(l){var e=l.currentTarget;l=bGd(function(){return e.href});
var O=e.params;l&&_.bi(l,O||{},8,!0)};
Ijq=function(l,e){if(e=_.I(e,_.Db))(e==null?void 0:e.target)==="TARGET_NEW_WINDOW"&&(l.target="_blank"),e.nofollow&&(l.rel="nofollow")};
mp8=function(l){l=_.I(l==null?void 0:l.commandMetadata,_.V4);return(l==null?0:l.url)?l.url:null};
_.r6=function(l,e){(l=_.t3(l))&&_.qT(l,e)};
_.qT=function(l,e){mYp(function(O){e?O.resolveCommand(l,e):O.resolveCommand(l)})};
j$2=function(l,e){var O=["yt-core-attributed-string__link"];e!=null&&e.noLinkColor||((e==null?0:e.isOverlay)?O.push("yt-core-attributed-string__link--overlay-call-to-action-color"):O.push("yt-core-attributed-string__link--call-to-action-color"),(e==null?0:e.linkInheritColor)&&O.push("yt-core-attributed-string--link-inherit-color"));O={className:O.join(" "),tabindex$:"0"};var E=l.onTap||l.onLongPress;if(!E)return O;var J=yoL(l);J&&(O["aria-label$"]=J);e=_.vf({elementsCommand:E,elementConfig:O,skipOnClick:!(e==
null||!e.skipOnClick),forceNewState:!0});l.onLongPress&&(E=new pSx(function(){var z=_.t3(l.onLongPress);z&&_.V2().resolve(_.Zh).resolveCommand(z)}),e&&KLx(E,e));
return e||O};
yoL=function(l){var e,O;return(e=l.onTapOptions)==null?void 0:(O=e.accessibilityInfo)==null?void 0:O.accessibilityLabel};
HGL=function(l){var e=l;l<=16777215&&(e+=parseInt("ff000000",16));return _.qv(e)};
cox=function(l){var e=l.isDarkTheme;var O=l.extension;l=l.runColor;var E=void 0;if(O=O==null?void 0:O.colorMap){e=e?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";O=_.b(O);for(var J=O.next();!J.done;J=O.next())if(J=J.value,e===J.key){E=J.value;break}}E==null&&l&&(E=l);if(E)return HGL(E)};
Du=function(l){var e=l.config;var O=l.image;var E=l.imageConfig;var J=l.imageWrapperConfig;var z=l.run;var M=l.tag;var Z=l.textLength;var u=l.startIndex===void 0?0:l.startIndex;l=l.length;u===void 0&&(u=0);z={run:z,startIndex:u,endIndex:l!==void 0?u+l:Z,tag:M};O&&(z.image=O);E&&(z.imageConfig=E);J&&(z.imageWrapperConfig=J);e&&(z.config=e);return z};
fju=function(l,e){var O=[];O.push("yt-core-attributed-string");(e==null?0:e.className)&&O.push(e==null?void 0:e.className);(e==null?0:e.ellipsisTruncate)?O.push("yt-core-attributed-string--ellipsis-truncate"):(e==null?0:e.noWrap)?O.push("yt-core-attributed-string--white-space-no-wrap"):(e==null?0:e.noPreWrap)||O.push("yt-core-attributed-string--white-space-pre-wrap");(e==null?0:e.linkInheritColor)&&O.push("yt-core-attributed-string--link-inherit-color");l.alignment&&O.push(FLM(l.alignment));l.lineBreakMode&&
O.push("yt-core-attributed-string--word-wrapping");return O.join(" ")};
RWT=function(l){if(l.weight)return l.weight;switch(l.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
TFT=function(l){switch(l){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"}};
FLM=function(l){switch(l){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"}};
x0=function(l,e,O){var E=e;l.content&&O&&(O=l.content.indexOf("\n"),O!==-1&&(E=Math.min(e,O)));if(!l.content||l.content.length<=E)e=l;else if(l.attachmentRuns||l.commandRuns||l.decorationRuns||l.styleRuns||l.paragraphStyleRuns){e=Sb(l.content,E);O=E;var J=l.attachmentRuns;if(J){var z=[];J=_.b(J);for(var M=J.next();!M.done;M=J.next())M=Object.assign({},M.value),M.startIndex===void 0||M.startIndex>=O||(M.length||(M.length=0),M.length+M.startIndex>O&&(M.length=O-M.startIndex),z.push(M));O=z}else O=void 0;
z=s$V(E,l.commandRuns);J=E;var Z=l.decorationRuns;if(Z){M=[];Z=_.b(Z);for(var u=Z.next();!u.done;u=Z.next()){u=u.value;var d=_.I(u.textDecorator,QN);if(d&&d.startIndex!==void 0&&!(d.startIndex>=J)){u=Object.assign({},u,{textDecorator:{highlightTextDecorator:Object.assign({},d)}});d=_.I(u.textDecorator,QN);if(!d.length||d.length+d.startIndex>J)d.length=J-d.startIndex;M.push(u)}}J=M}else J=void 0;M=s$V(E,l.styleRuns);if(Z=l.paragraphStyleRuns)for(l=[],Z=_.b(Z),u=Z.next();!u.done;u=Z.next()){var g=u.value;
u=Object.assign({},g);if(!(u.startIndex===void 0||u.startIndex>=E)){if(!u.length||u.length+u.startIndex>E)u.length=E-u.startIndex;d=[];var w=void 0,n=void 0;if((w=g)==null?0:(n=w.listGroup)==null?0:n.listItems)for(g=_.b(g.listGroup.listItems),w=g.next();!w.done;w=g.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=E)){if(!w.length||w.length+w.startIndex>E)w.length=E-w.startIndex;d.push(w)}d.length>0&&(u.listGroup||(u.listGroup={}),u.listGroup=Object.assign({},u.listGroup,
{listItems:d}));l.push(u)}}else l=void 0;e={content:e,attachmentRuns:O,commandRuns:z,decorationRuns:J,styleRuns:M,paragraphStyleRuns:l}}else e=Object.assign({},l,{content:Sb(l.content,E)});return e};
s$V=function(l,e){if(e){var O=[];e=_.b(e);for(var E=e.next();!E.done;E=e.next())if(E=Object.assign({},E.value),!(E.startIndex===void 0||E.startIndex>=l)){if(!E.length||E.length+E.startIndex>l)E.length=l-E.startIndex;O.push(E)}return O}};
Sb=function(l,e){var O=e,E;if(E=O>0)E=l.charCodeAt(O-1),E=E>=55296&&E<=56319;E&&(O=l.charCodeAt(O),E=O>=56320&&O<=57343);E&&--e;return l.substring(0,e)};
Upx=function(l,e,O){O=O===void 0?G$8:O;if(l){var E=_.V2().resolve(MY);E||_.a("mweb_no_observer_killswitch")?cUg(l,{data:e,observer:E,visibilityCallback:O,hideOption:BFL,showOption:Pxx,layer:l.layer}):_.hG(new _.Hk("Warning: monitorVisibility called with null observer",l.tagName,e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams))}else _.hG(new _.Hk("Warning: monitorVisibility called with null element",e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams,e==null?void 0:
e.rendererContext))};
NFM=function(l,e){var O=[],E=l.content.length,J,z=(J=_.V2().resolve(_.MG(_.lp)))==null?void 0:J();if(l.paragraphStyleRuns){J=_.b(l.paragraphStyleRuns);for(var M=J.next();!M.done;M=J.next()){var Z=O.push,u=Z.apply;var d=void 0;M=M.value;if((d=M.listGroup)!=null&&d.listItems){d=[];b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var g="ul";break b;default:g="span"}d.push(Du({run:M,textLength:E,tag:g,config:{className:"yt-core-attributed-string__list-group"},startIndex:M.startIndex,length:M.length}));
g=_.b(M.listGroup.listItems);for(var w=g.next();!w.done;w=g.next()){w=w.value;b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var n="li";break b;default:n="span"}d.push(Du({run:M,textLength:E,tag:n,startIndex:w.startIndex,length:w.length}))}M=d}else M=[];u.call(Z,O,_.kA(M))}}if(l.styleRuns&&(e==null||!e.noStyleRuns))for(J=_.b(l.styleRuns),Z=J.next();!Z.done;Z=J.next()){Z=Z.value;u=cox({extension:_.I(Z.styleRunExtensions,YO2),isDarkTheme:z===void 0?!1:z,runColor:Z.fontColor});d=[];u&&d.push("yt-core-attributed-string--link-inherit-color");
Z.italic&&d.push("yt-core-attributed-string--italicized");Z.underline&&Z.strikethrough?d.push("yt-core-attributed-string--underline-strikethrough",TFT(Z.underline)):Z.underline?d.push("yt-core-attributed-string--underlined",TFT(Z.underline)):Z.strikethrough&&d.push("yt-core-attributed-string--strikethrough",TFT(Z.strikethrough));if(Z.baselineOffset){a:switch(Z.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":M="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":M=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:M="yt-core-attributed-string--baseline-offset-unknown"}d.push(M)}M=d.join(" ");d=Z;g={};if(d.weight||d.weightLabel)g.fontWeight=RWT(d).toString();u&&(g.color=u);O.push(Du({run:Z,textLength:E,tag:"span",config:{className:M,style:g},startIndex:Z.startIndex,length:Z.length}))}if(l.decorationRuns)for(J=_.b(l.decorationRuns),Z=J.next();!Z.done;Z=J.next())Z=Z.value,u={},Z.textDecorator&&(g=Z.textDecorator,M=z===void 0?!1:z,w=[],d=
_.I(g,QN),g=_.I(g,hWg),d?(g=w,w=g.concat,n=[],(M=cox({extension:_.I(d.highlightTextDecoratorExtensions,LLV),isDarkTheme:M,runColor:d.backgroundColor}))&&n.push("background-color: "+M+";"),d.backgroundCornerRadius!==void 0&&n.push("border-radius: "+d.backgroundCornerRadius+"px;"),d.leftPadding!==void 0&&n.push("padding-left: "+d.leftPadding+"px;"),d.rightPadding!==void 0&&n.push("padding-right: "+d.rightPadding+"px;"),d.topPadding!==void 0&&n.push("padding-top: "+d.topPadding+"px;"),d.bottomPadding!==
void 0&&n.push("padding-bottom: "+d.bottomPadding+"px;"),w=w.call(g,n)):g&&(d=w,w=d.concat,M=M?"#2ba640":"#107516",M=g.color?HGL(g.color):M,M=["padding: 2px;","border-top: solid "+M+" 2px;","border-bottom: solid "+M+" 2px;","background: linear-gradient(135deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px);"],w=w.call(d,M)),M=w.join(" "),u.style$=M,M=Z.textDecorator,d=[],g=_.I(M,hWg),_.I(M,QN)?d.push("yt-core-attributed-string--highlight-text-decorator"):
g&&d.push("yt-core-attributed-string--bracket-text-decorator"),M=d.join(" "),u.className=M,u.dir="auto"),M=_.I(Z.textDecorator,QN),d=_.I(Z.textDecorator,hWg),g=_.I(Z.textDecorator,QN),w=_.I(Z.textDecorator,hWg),O.push(Du({run:Z,textLength:E,tag:"span",config:u,startIndex:(M==null?void 0:M.startIndex)||(d==null?void 0:d.startIndex)||0,length:(g==null?void 0:g.length)||(w==null?void 0:w.length)||0}));if(l.commandRuns&&(e==null||!e.noEndpoints))for(z=_.b(l.commandRuns),J=z.next();!J.done;J=z.next())J=
J.value,Z=j$2(J,e),O.push(Du({run:J,textLength:E,tag:"a",config:Z,startIndex:J.startIndex,length:J.length}));if(l.attachmentRuns)for(l=_.b(l.attachmentRuns),z=l.next();!z.done;z=l.next()){z=z.value;u=Z=void 0;J={className:"yt-core-attributed-string--inline-block-mod"};if((u=z.element)==null?0:u.properties){u=(Z=z.element)==null?void 0:Z.properties;Z=[];u=_.I(u,tix);if(u==null?0:u.margin)u=u.margin,u.left&&Z.push("margin-left: "+h3(u.left)+";"),u.right&&Z.push("margin-right: "+h3(u.right)+";"),u.top&&
Z.push("margin-top: "+h3(u.top)+";"),u.bottom&&Z.push("margin-bottom: "+h3(u.bottom)+";");Z=Z.length!==0?Z.join(" "):void 0;J.style$=Z}M=void 0;Z={alt:"",preserveHeight:!0,preserveWidth:!0};u=["yt-core-attributed-string__image-element"];if(z.alignment){a:switch(z.alignment){case "ALIGNMENT_BASELINE":d="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":d="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:d=
"yt-core-attributed-string__image-element--image-alignment-bottom"}u.push(d)}if((M=z.element)==null?0:M.properties)M=[],d=_.I(z.element.properties,tix),(d==null?0:d.height)&&M.push("height: "+h3(d.height)+";"),(d==null?0:d.width)&&M.push("width: "+h3(d.width)+";"),M=M.length!==0?M.join(" "):void 0,Z.style$=M,d=void 0,M=((d=_.I(z.element.properties,qOA))==null?void 0:d.label)||"",Z.alt=M;Z.className=u.join(" ");u=void 0;g=d=void 0;M=((g=z.element)==null?0:g.type)?(d=_.I(z.element.type,vyt))==null?
void 0:d.image:void 0;O.push(Du({run:z,textLength:E,tag:"img",image:M,imageConfig:Z,imageWrapperConfig:J,startIndex:z.startIndex,length:(u=z.length)!=null?u:0}))}if(e==null?0:e.headerRuns)for(e=_.b(e.headerRuns),l=e.next();!l.done;l=e.next())if(l=l.value,l.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(l.headerMapping)){a:{switch(l.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":z=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":z="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":z="yt-core-attributed-string--heading-3";break a}z=void 0}O.push(Du({run:l,textLength:E,tag:"span",config:z?{className:z}:void 0,startIndex:l.startIndex,length:l.length}))}return O};
_.eN=function(l){return(l==null?void 0:l.content)!==void 0};
roT=function(l){return _.eN(l)?l:_.Ut(l)};
Dpg=function(l){return l.image!==void 0&&l.imageConfig!==void 0};
SOV=function(l,e){if(e==null?0:e.userInput)for(l=_.b(l),e=l.next();!e.done;e=l.next())if(e=e.value,e.tag!=="a"&&e.tag!=="li"){var O=void 0;(O=e).config||(O.config={});e.config.dir=e.tag==="ul"?_.V2().resolve(_.OL):"auto"}};
Q$V=function(l){return function(e){var O=l.run;(O.onTap!==void 0||O.onLongPress!==void 0)&&_.I(O,EyV)&&Upx(e,{loggingDirectives:_.I(O,EyV)})}};
xpp=function(l){return function(e){for(var O in l)(zL[O]||zL[qa["default"]])(e,O,l[O])}};
Egg=function(l,e){l$M(e);var O={data:null,start:0,end:l.length,parts:[]};e=_.b(e);for(var E=e.next();!E.done;E=e.next())E=E.value,e$2(O,E.startIndex,E.endIndex,E);Ocg(l,O);return O};
e$2=function(l,e,O,E){for(var J=_.b(l.parts),z=J.next();!z.done;z=J.next()){z=z.value;if(typeof z==="string")throw Error("gh");if(z.start<=e&&O<=z.end){e$2(z,e,O,E);return}}l.parts.push({data:E,parts:[],start:e,end:O})};
Ocg=function(l,e){for(var O=e.parts.length;O>=0;O--){var E=e.parts[O],J=e.parts[O-1],z=O===e.parts.length?e.end:E.start;J=O===0?e.start:J.end;z!==J&&e.parts.splice(O,0,l.slice(J,z));E&&Ocg(l,E)}};
l$M=function(l){l.sort(function(e,O){if(e.startIndex<O.startIndex)return-1;if(O.startIndex<e.startIndex)return 1;e=e.endIndex-e.startIndex;O=O.endIndex-O.startIndex;return e>O?-1:O>e?1:0})};
_.Jkd=function(l){var e=l.thumbnails;if(e){l={sources:[]};e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E={};E.url=O.url;E.width=O.width;E.height=O.height;l.sources.push(E)}return l}};
XqV=function(l,e,O,E){if(!e)return l.length>=1?l[l.length-1]:null;if(E)for(var J=_.b(l),z=J.next();!z.done;z=J.next()){z=z.value;var M=void 0,Z=(M=z.url)==null?void 0:M.indexOf(E);if(Z!==void 0&&Z>=0)return z}E=_.b(l);for(J=E.next();!J.done;J=E.next())if(J=J.value,J.width&&J.height&&(O&&J.width>=e||!O&&J.height>=e))return J;for(e=l.length-1;e>=0;e--)if(O&&l[e].width||!O&&l[e].height)return l[e];return l[0]};
_.z$x=function(l){var e;return(l=(e=l.sources)==null?void 0:e[0])?l.width/l.height:0};
_.bcx=function(l){if(l.sources){l=_.b(l.sources);for(var e=l.next();!e.done;e=l.next()){e=e.value;var O=void 0;if((O=e.clientResource)==null?0:O.imageName)return e}}};
MGx=function(l){var e;if((e=l.clientResource)!=null&&e.imageColor)return _.qv(l.clientResource.imageColor)};
_.ZcT=function(l,e,O,E,J,z,M){if(!e||e.length===0||e[0].clientResource)return null;if(O&&e[0].url)return e[0].url;E===void 0&&(E=!0);if(E){var Z;l=VGu*(J||(l==null?void 0:(Z=l.getBoundingClientRect())==null?void 0:Z.width)||0)}else{var u;l=VGu*(z||(l==null?void 0:(u=l.getBoundingClientRect())==null?void 0:u.height)||0)}e=XqV(e,l,E,M);return(e==null?0:e.url)?e.url:(e==null?0:e.imageData)?e.imageData:null};
uUA=function(l,e,O){O=O?[O]:[];l.opacity&&O.push("opacity: "+l.opacity+";");e&&l.placeholderColor?(l=_.qv(l.placeholderColor),O.push("background-color: "+l+";")):O.push("background-color: transparent;");return O.join(" ")};
CnA=function(l,e,O,E,J){var z=["yt-core-image"];e&&z.push(e);O||z.push("yt-core-image--fill-parent-height");E||z.push("yt-core-image--fill-parent-width");switch(l.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":z.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":z.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":z.push("yt-core-image--content-mode-center");break;default:z.push("yt-core-image--content-mode-scale-to-fill")}l.flipForRtlLayout&&
z.push("yt-core-image--flip-rtl");switch(J){case "TOP_START":var M;z.push(((M=document.body)==null?void 0:M.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return z.join(" ")};
$tt=function(l){var e;if(l==null?0:(e=l.clientResource)==null?0:e.imageName){var O;l=(O=l.clientResource)==null?void 0:O.imageName;a:{switch(l){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":O="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":O="yt-logos-ext:yt-logo-updated";break a}O=void 0}return O||ogV.get(l)||l}};
ggW=function(l){return _.a("mweb_wiz_skip_render")?WeW(l):dtW(l)};
WeW=function(l){return function(e){var O=Hug("wink-root");lP();cW8();r3x(O,_.W(l,e))}};
dtW=function(l){var e=e===void 0?!1:e;return function(O){if(!e||!_.a("mweb_skip_keto_to_c3_if_no_data")||O.data!==void 0){var E=uP(!1);try{var J=O.children;_.a("mweb_render_outside_patch_killswitch")||Na?J?Xw(_.W(l,O,J)):Xw(_.W(l,O)):_.hG(new _.Hk("ketoToC3 called outside of a patch",{tagName:l.TAG_NAME}))}finally{uP(E)}}}};
icT=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Akt=function(l,e){l.onViewportEntered=e;wq2.observe(l)};
ngu=function(){var l={rootMargin:"10%",threshold:.01};_.a("mweb_enable_set_io_root_to_null_safari")?l.root=null:_.a("mweb_enable_set_io_root_to_body_safari")&&(l.root=document.body);return new IntersectionObserver(function(e,O){e.filter(function(E){return E.intersectionRect.height>0}).forEach(function(E){E=E.target;
if(!_.a("mweb_enable_only_update_image_when_connected")||E.isConnected!==!1){var J;(J=E.onViewportEntered)==null||J.call(E);O.unobserve(E)}})},l)};
a$A=function(l,e,O,E,J){function z(){if(E){var Z=E.loadedClass,u=E.notifyOnUnloaded;Z&&_.EL(l,Z);u&&l.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function M(){var Z=O(e,l);Z&&l.getAttribute("src")!==Z&&(_.a("mweb_enable_only_update_image_when_connected")&&l.isConnected===!1||Z===l.src||(l.src=Z),z())}
J=J===void 0?!0:J;l.removeAttribute("src");z();e&&(J?Akt(l,M):M())};
k3T=function(l,e,O){if(!e)return!1;e=O(e,l);O=l.getAttribute("src");return e&&e===O&&l.complete};
I$p=function(l,e){for(var O in e)O==="className"?l.className=e[O]:(zL[O]||zL[qa.default])(l,O,e[O])};
mt2=function(l,e,O,E){ggW(_.Jm)({contentMode:e.contentMode,loadedClass:e.loadedClass,isPreloaded:e.isPreloaded,notifyOnLoaded:e.notifyOnLoaded,notifyOnUnloaded:e.notifyOnUnloaded,preferredThumbnail:e.preferredThumbnail,preserveHeight:e.preserveHeight,preserveWidth:e.preserveWidth,objectPosition:e.objectPosition,targetWidth:e.targetWidth,targetHeight:e.targetHeight,shouldShowPlaceholder:e.shouldShowPlaceholder,useWidth:e.useWidth,isToggled:e.isToggled,alt:e.alt,className:e.className,onerror:e.onerror,
onload:e.onload,style$:e.style$,color:e.color,width:e.width,height:e.height,"aria-hidden$":e["aria-hidden$"],draggable:e.draggable,"data-disabled$":e["data-disabled$"],data:l,callback:O,renderLazy:E===void 0?!0:E,hideOn404:!1})};
pqL=function(l,e,O){O=O===void 0?!1:O;var E=l.sources!==void 0?l:_.Jkd(l);if(E){var J=e.onload;e.onload=function(u){var d=u.target;O&&d.naturalWidth===120||_.XY(d,"yt-core-image--loaded");e.notifyOnLoaded&&d.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));J==null||J(u)};
e.targetWidth&&e.preserveWidth&&(e.width=e.targetWidth);e.targetHeight&&e.preserveHeight&&(e.height=e.targetHeight);var z=_.bcx(E),M=z&&$tt(z);if(M)return(l=MGx(z))&&(e.color=l),{type:"icon",iconName:M,config:Object.assign({},e,e.alt?{}:{"aria-hidden$":"true"},{"aria-label$":e.alt,role:"img"})};if(l.sources===void 0){e.alt=l.accessibility&&l.accessibility.accessibilityData&&l.accessibility.accessibilityData.label||e.alt;e.style$=uUA(l,e.shouldShowPlaceholder,e.style$);var Z;e.isPreloaded=!((Z=_.I(l,
ykT))==null||!Z.isPreloaded)}e.contentMode&&!E.contentMode&&(E.contentMode=e.contentMode);e.className=CnA(E,e.className,e.preserveHeight,e.preserveWidth,e.objectPosition);e.loadedClass="yt-core-image--loaded";return{type:"image",image:E,config:e}}};
_.zk=function(){var l=_.ke.apply(0,arguments);return _.O0(_.E0,function(e){var O=l.map(function(E){return E(e)});
return function(){return void O.forEach(function(E){return void(E==null?void 0:E())})}})};
bp=function(l,e){var O=e==null?void 0:e.initial;return _.mF(function(){_.UB(!0);return O=l(O)},{equals:e==null?void 0:e.isEqual},"rSlKsc")};
Ked=function(l,e){if(l===e)return!0;if(l===void 0||e===void 0)return!1;var O,E,J,z,M,Z,u,d;return l.content===e.content&&((O=l.styleRuns)==null?void 0:O.length)===((E=e.styleRuns)==null?void 0:E.length)&&((J=l.commandRuns)==null?void 0:J.length)===((z=e.commandRuns)==null?void 0:z.length)&&((M=l.attachmentRuns)==null?void 0:M.length)===((Z=e.attachmentRuns)==null?void 0:Z.length)&&((u=l.decorationRuns)==null?void 0:u.length)===((d=e.decorationRuns)==null?void 0:d.length)};
ck8=function(l,e){if(l){var O=roT(l);if(O!=null&&O.content)if(_.a("attr_string_reactive"))ggW(jgu)({text:l,config:e});else{var E=!(e==null||!e.ariaLabel)||!(O.commandRuns&&O.commandRuns.length!==0||O.paragraphStyleRuns&&O.paragraphStyleRuns.length!==0);l=E?e==null?void 0:e.ariaLabel:null;E=E?"text":null;Bf("span",{className:fju(O,e),dir$:(e==null?0:e.userInput)?"auto":void 0,"aria-label$":l,role$:E},function(){if(O.styleRuns||O.commandRuns||O.attachmentRuns||O.decorationRuns){var J=NFM(O,e);SOV(J,
e);J=Egg(O.content,J);J=_.b(J.parts);for(var z=J.next();!z.done;z=J.next())HcL(z.value)}else bP(O.content)})}}};
HcL=function(l){typeof l==="string"?bP(l):Dpg(l.data)?Bf("span",l.data.imageWrapperConfig,function(){mt2(l.data.image,l.data.imageConfig)}):Bf(l.data.tag,l.data.config,function(e){Q$V(l.data)(e);
e=_.b(l.parts);for(var O=e.next();!O.done;O=e.next())HcL(O.value)})};
f$T=function(l){return l.parts.map(Fe2)};
Fe2=function(l){if(typeof l==="string")return l;l=Dpg(l.data)?_.W("span",{el:_.zk(xpp(l.data.imageWrapperConfig))},_.W(_.Jm,Object.assign({},{data:l.data.image},l.data.imageConfig))):_.W(l.data.tag,{el:_.zk(Q$V(l.data),xpp(l.data.config))},l.parts.map(Fe2));return AT(l)};
R$d=function(l,e){return l===e?!0:l===void 0||e===void 0?!1:l.noStyleRuns===e.noStyleRuns&&l.noLinkColor===e.noLinkColor&&l.noEndpoints===e.noEndpoints&&l.headerRuns===e.headerRuns&&l.isOverlay===e.isOverlay&&l.linkInheritColor===e.linkInheritColor&&l.userInput===e.userInput};
Teg=function(l){return function(){var e,O,E,J,z,M,Z,u,d,g,w,n,k,y;return{ariaLabel:(e=l.ariaLabel)==null?void 0:e.call(l),className:(O=l.className)==null?void 0:O.call(l),ellipsisTruncate:(E=l.ellipsisTruncate)==null?void 0:E.call(l),isOverlay:(J=l.isOverlay)==null?void 0:J.call(l),linkInheritColor:(z=l.linkInheritColor)==null?void 0:z.call(l),noEndpoints:(M=l.noEndpoints)==null?void 0:M.call(l),noStyleRuns:(Z=l.noStyleRuns)==null?void 0:Z.call(l),noLinkColor:(u=l.noLinkColor)==null?void 0:u.call(l),
noPreWrap:(d=l.noPreWrap)==null?void 0:d.call(l),noWrap:(g=l.noWrap)==null?void 0:g.call(l),skipOnClick:(w=l.skipOnClick)==null?void 0:w.call(l),stopPropagation:(n=l.stopPropagation)==null?void 0:n.call(l),userInput:(k=l.userInput)==null?void 0:k.call(l),headerRuns:(y=l.headerRuns)==null?void 0:y.call(l)}}};
sgp=function(l){return l.value===""||l.value==="true"?!0:l.value==="false"?!1:isNaN(Number(l.value))?l.value:Number(l.value)};
Mj=function(l,e){l=new G3d(l,e);_.UW(l);throw l;};
Bex=function(l,e,O){var E=Nqd(l);l._numRenders=0;try{var J=_.Wfx(function(){return _.W(e,Object.assign({},O))})}catch(M){var z=function(Z){Z.args||(Z.args=[]);
Z.args.push("Error in web component wrapper");Z.args.push(l.tagName.toLowerCase());return Z};
_.YE(M instanceof Error?z(M):new G3d("Wiz rendering error",l.tagName.toLowerCase()));throw M;}finally{Nqd(E)}return J};
_.Zw=function(l,e,O){function E(g){var w={};g=_.b(g);for(var n=g.next();!n.done;n=g.next()){n=n.value;var k=void 0,y=void 0,c=void 0,f=_.Ic((c=(y=(k=n).getAttribute)==null?void 0:y.call(k,"slot"))!=null?c:"children");if(k=w[f])k.push(n);else if(f in z||f==="children")w[f]=[n]}g=_.b(Object.keys(w));f=g.next();for(n={};!f.done;n={content$jscomp$55:void 0},f=g.next())f=f.value,f!=="children"&&(n.content$jscomp$55=w[f],w[f]=function(P){return function(){return P.content$jscomp$55}}(n));
return w}
O=O===void 0?{}:O;l.componentType!==c3||Mj("Components must be marked reactive to be used from web component wrapper.",e);C4.has(e)&&Mj("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",e);var J,z=(J=O.props)!=null?J:{};oX.add(e);var M=PnW();J=function(){var g=M.apply(this,arguments)||this;g.rawProps={};g.queuingRender=!1;g.dispose=function(){};
g.isWebComponentWrapper=!0;g.isReparenting=!1;g.hasRendered=!1;return g};
_.m(J,M);J.prototype.render=function(){this.hasRendered=!0;for(var g=_.b([].concat(_.kA(this.attributes))),w=g.next();!w.done;w=g.next())w=w.value,w.name!=="slot"&&this.removeAttribute(w.name);g=Object.assign({},this.componentProps,this.slotProps);w=_.b(Bex(this,l,g));g=w.next().value;w=w.next().value;!(g[0]instanceof Element)||g.length>1?Mj("Wrapped Wiz components must return a single root element.",e):(g=g[0].tagName.toLowerCase(),g!==e&&Mj("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(g+" !== '"+e),e),this.dispose=w)};
J.prototype.setUpProps=function(){for(var g=this.rawProps,w=this.attributes,n=_.b(Object.keys(z)),k=n.next();!k.done;k=n.next()){k=k.value;var y=void 0;((y=this)==null?0:y[k])&&this[k]!==Utt&&g[k]===void 0&&(g[k]=this[k],(y=Object.getOwnPropertyDescriptor(this.constructor.prototype,k))&&Object.defineProperty(this,k,y))}n=_.b(w);for(k=n.next();!k.done;k=n.next()){y=k.value;k=_.Ic(y.name);var c=k==="class"&&!w.getNamedItem("class-name");if(k in z||c)y=sgp(y),k!=="class"||g.className?g[k]=y:g.className=
y}w={};for(var f in z)z[f]!==_.Vh&&z[f]!==Yq8&&(g[f]instanceof Function&&Mj("Function props must be configured as STATIC, not SIGNAL.",e),k=_.b(_.AF(g[f],void 0,"Ri8MSe")),n=k.next().value,k=k.next().value,w[f]=k,g[f]=n);g=_.b([g,w]);this.componentProps=g.next().value;this.setters=g.next().value;this.slotProps=E(this.childNodes)};
J.prototype.connectedCallback=function(){Zu===e&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in z&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
J.prototype.disconnectedCallback=function(){if(!this._isInert){var g;a:{if(_.h$x)for(g=this;g;){if(_.LeM.has(g)){g=!0;break a}g=g.parentElement}g=!1}if(g)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){g=_.b([].concat(_.kA(this.attributes)));for(var w=g.next();!w.done;w=g.next())w=w.value,w.name!=="slot"&&this.removeAttribute(w.name)}this.innerText="";hgx(this)}}};
J.prototype._setPendingPropertyOrPath=function(){};
J.prototype.notifyPath=function(){};
_.Ji.Object.defineProperties(J.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var Z=_.b(Object.keys(z)),u=Z.next(),d={};!u.done;d={prop$jscomp$104:void 0},u=Z.next())d.prop$jscomp$104=u.value,u=void 0,((u=O.legacyPolymer)==null?0:u.forwardHostProps)&&sog.has(d.prop$jscomp$104)||Object.defineProperty(J.prototype,d.prop$jscomp$104,{set:function(g){return function(w){var n=this;this._isInert||(this.setters?y5(function(){var k,y;return void((y=(k=n.setters)[g.prop$jscomp$104])==null?void 0:y.call(k,w))}):(this.rawProps[g.prop$jscomp$104]=w,this.queuingRender&&g.prop$jscomp$104===
"data"&&w!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(d),
get:tGL.has(d.prop$jscomp$104)?void 0:function(){return Utt}});
customElements.define(e,J)};
_.qqx=function(l,e){return(l=_.up(l,e))?_.W2(_.nU(l)):null};
_.Cd=function(l){if(l=_.up(l,Number.MAX_VALUE,void 0,"width"))return _.nU(l)};
_.up=function(l,e,O,E){E=E===void 0?"width":E;if(!l||!l.length)return null;if(_.a("kevlar_tuner_should_always_use_device_pixel_ratio")){var J=window.devicePixelRatio;_.a("kevlar_tuner_should_clamp_device_pixel_ratio")?J=Math.min(J,_.Cv("kevlar_tuner_clamp_device_pixel_ratio")):_.a("kevlar_tuner_should_use_thumbnail_factor")&&(J=_.Cv("kevlar_tuner_thumbnail_factor"));vgp=J}else vgp||(vgp=window.devicePixelRatio);J=vgp;_.a("kevlar_tuner_should_always_use_device_pixel_ratio")?e*=J:J>1&&(e*=J);if(_.a("kevlar_tuner_min_thumbnail_quality"))return l[0].url||
null;J=l.length;if(_.a("kevlar_tuner_max_thumbnail_quality"))return l[J-1].url||null;if(O)for(var z=0;z<J;z++)if(l[z].url.indexOf(O)>=0)return l[z].url||null;for(O=0;O<J;O++)if(l[O][E]>=e)return l[O].url||null;for(e=J-1;e>0;e--)if(l[e][E])return l[e].url||null;return l[0].url||null};
Dtd=function(){ox.size?setTimeout(function(){$7(NeV)},0):rk8=0};
NeV=function(){var l=(0,_.VZ)(),e=null,O=!1;ox.forEach(function(J){J.loaded=!0;J.loadTime=l;J.pendingPaint=!1;var z=Sqt.get(J);z&&z.resolve(l);e=J;O||!J.ftlEligible&&J.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(O=!0)});
var E;((E=e)==null?0:E.markDirty)&&e.markDirty();ox.clear();rk8=0;O&&QgA(l)};
xtt=function(l){ox.add(l);l.pendingPaint=!0;rk8||(rk8=_.WF(_.UD,Dtd))};
lax=function(l){l.loaded=!1;l.loadTime=Infinity;var e=Sqt.get(l);e&&(e.reject(Error("mh")),Sqt.delete(l));l.pendingPaint&&(ox.delete(l),l.pendingPaint=!1)};
_.eqW=function(l){var e=l.indexOf(":");return e===-1?{originalName:l}:{originalName:l.substring(0,e),datasyncId:l.substring(e+1)}};
_.EKd=function(){return _.V(function(l){if(OET!==void 0)return l.return(OET);OET=new Promise(function(e){var O;return _.V(function(E){switch(E.nextAddress){case 1:return _.b1(E,2),_.C(E,_.dg.open("test-only"),4);case 4:return _.C(E,_.dg.delete("test-only"),5);case 5:_.Q2(E,3);break;case 2:if(O=_.u1(E),O instanceof Error&&O.name==="SecurityError")return e(!1),E.return();case 3:e("caches"in window),_.Cl(E)}})});
return l.return(OET)})};
zqp=function(){return _.V(function(l){if(l.nextAddress==1)return _.C(l,_.EKd(),2);if(!l.yieldResult)return l.return(void 0);Jaq||(Jaq=new Xlp);return l.return(Jaq)})};
bEW=function(l){var e,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return _.C(z,zqp(),2);case 2:e=z.yieldResult;if(!e)throw Error("oh");return _.C(z,e.open("yt-player-local-img"),3);case 3:return O=z.yieldResult,_.C(z,O.match(l),4);case 4:E=z.yieldResult;if(!E)throw Error("ph");return _.C(z,E.blob(),5);case 5:return J=z.yieldResult,z.return(J)}})};
MYt=function(l,e){for(var O in l)if(l.hasOwnProperty(O)&&e[O])return O;return null};
VY2=function(l){return"stamp"+l.replace("-","_")+"_"};
ZEW=function(l){var e=l.match(/\[\[([\w\.]+)\]\]/);if(e&&e.length>1)return e[1];_.UW(Error("rh`"+l));return null};
ur8=function(l){return l===void 0?_.LH("REUSE_COMPONENTS",!1):l||!1};
$1d=function(l,e,O){O&&(e.is?(CAg.has(e)&&(l=CAg.get(e),O=l.listener,delete e[l.property],O.type==="element"&&e.removeEventListener(O.eventName,O.handler),CAg.delete(e)),oKA(e)):e.__proto__==HTMLElement.prototype&&(e=new _.Hk("Rendererstamper removed a non custom element","Stamper: "+l+" element: "+(e&&e.nodeName)),_.hG(e)))};
Wru=function(l,e,O,E){var J=e.node?e.node:e;_.ud(O).parentNode===J&&(e.removeChild(O),$1d(l,O,E));if(l=gg.get(O))gg.delete(O),_.UD.cancelJob(l);O.hidden=!1};
d1V=function(l,e,O,E){if(e&&e.children&&(O=e.children[O]))if(_.LH("DEFERRED_DETACH"))for(;O&&!gg.has(O);){var J=l,z=e,M=O,Z=E;M.hidden=!0;J=_.fZ(_.UD,Wru.bind(null,J,z,M,Z),0);gg.set(M,J);O=O.nextElementSibling}else for(;(M=e.lastElementChild)&&(e.removeChild(M),$1d(l,M,E),M!=O););};
gKL=function(l){var e=_.e4("__slot-el");_.sC(function(){for(var O=_.b(l.slotContent),E=O.next();!E.done;E=O.next())e.value.appendChild(E.value)});
return _.W("__slot-el",{el:e,skip:!0})};
_.ip=function(l,e,O){O=O===void 0?iEd:O;C4.add(e);var E;(E=O).propNames!=null||(E.propNames=[]);var J=new Set(O.propNames),z=PnW();E=function(){var d=z.call(this)||this;d.props={};d.isUpdating=!1;d.hasAttached=!1;d.isInert=!1;d.updateQueued=!1;d.initialClasses=[];vmq(d,e);return d};
_.m(E,z);E.prototype.forwardKebabCaseProp=function(d,g){d=_.Ic(d);if(J.has(d)||d==="children")this.props[d]=g};
E.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var d=_.b(this.initialClasses),g=d.next();!g.done;g=d.next())(g=g.value)&&this.classList.add(g);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
E.prototype.handleSlottedContent=function(){for(var d=new Map,g=_.b(this.children),w=g.next();!w.done;w=g.next()){w=w.value;var n=void 0,k=(n=w.getAttribute("slot"))!=null?n:"children";(n=d.get(k))?n.push(w):d.set(k,[w]);if(!w.getAttribute("key")){var y=void 0,c=void 0;w.setAttribute("key",k+"_"+((c=(y=n)==null?void 0:y.length)!=null?c:0))}}d=_.b(d);for(g=d.next();!g.done;g=d.next())w=_.b(g.value),g=w.next().value,w=w.next().value,this.forwardKebabCaseProp(g,_.W(gKL,{slotContent:w}))};
E.prototype.connectedCallback=function(){var d=this;if(!vmq(this,e)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var g=_.b(this.attributes),w=g.next();!w.done;w=g.next())w=w.value,this.forwardKebabCaseProp(w.name,sgp(w));this.handleSlottedContent();O.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){d.afterFirstPatch()});
this.hasAttached=!0}};
E.prototype.attributeChangedCallback=function(d,g,w){this.isInert||this.isUpdating||this.isConnected||d!=="class"||this.initialClasses.push.apply(this.initialClasses,_.kA(w.split(" ")))};
E.prototype.disconnectedCallback=function(){GML(this)};
E.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var d,g;r3x(this,_.W(l,Object.assign({},this.props,{idomKey:(g=(d=this.__incrementalDOMData)==null?void 0:d.key)!=null?g:e})),!0)}catch(n){var w=n instanceof Error?n:new _.Hk("Wiz rendering error");w.args||(w.args=[]);w.args.push("Error in deprecated web component wrapper");w.args.push(e.toLowerCase());_.UW(w);throw n;}finally{this.updateQueued=this.isUpdating=!1}}};
E.prototype.enqueueUpdate=function(){var d=this;return _.V(function(g){if(O.synchronous)return d.update(),g.return();if(d.updateQueued)return g.return();d.updateQueued=!0;return g.return(Promise.resolve().then(function(){d.update()}))})};
E.prototype.notifyPath=function(){O.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Ji.Object.defineProperties(E,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var M=_.b(O.propNames),Z=M.next(),u={};!Z.done;u={prop$jscomp$106:void 0},Z=M.next())u.prop$jscomp$106=Z.value,Object.defineProperty(E.prototype,u.prop$jscomp$106,{set:function(d){return function(g){this.isInert||g===this.props[d.prop$jscomp$106]||(this.props[d.prop$jscomp$106]=g,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(u)});
customElements.define(e,E)};
_.wlt=function(l,e){return _.wV(l.entities,"markersEngagementPanelSyncEntity",e)};
AaV=function(l,e){return _.wV(l.entities,"fantasyWinProbabilityEntity",e)};
nKA=function(l,e){return _.wV(l.entities,"fantasyTeamEntity",e)};
aa2=function(l,e){return _.wV(l.entities,"fantasyPlayerEntity",e)};
k6p=function(l,e){return _.wV(l.entities,"booleanEntity",e)};
IaV=function(l,e){return _.wV(l.entities,"qrCodeEntity",e)};
m1M=function(l){return _.wV(l.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
ya8=function(){if(wg)return wg;if(window.lottie)return wg=Promise.resolve(window.lottie);var l=_.YP(_.hT("LOTTIE_URL"));return l?wg=new Promise(function(e,O){var E=document.createElement("script");E.addEventListener("load",function(){e(lottie)});
E.addEventListener("error",function(J){var z="Lottie library failed to load.";J?J.message&&(z+=" Original description: "+J.message,_.LZ(J,z)):J=Error(z);_.hG(J);O(J)});
E.setAttribute("async","");_.UN(E,l);document.head.appendChild(E)}):Promise.reject(Error("sh"))};
plA=function(){return wg?wg:ya8()};
Krg=function(l){if(l)switch(l){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.a("kevlar_use_wil_icons"))return l=(l=m1M(_.Om().getState()))&&l.animationLightUrl&&l.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:l.animationLightUrl,pathDarkTheme:l.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,l?l:Am.get("LIKE")}};
jZ8=function(l){var e=Krg(l);if(e)return e;switch(l){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Am.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Am.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Am.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Am.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Am.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Am.get("NOTIFICATION_BELL")}};
caL=function(l,e){if(!l||HE8)e=!1;else{if(l.closest){var O=!!Krg(e);O=_.hT("ID_TOKEN")&&O?!!l.closest("segmented-like-dislike-button-view-model"):!1}else O=!1;if(!O)if(l.closest)if(O=!_.hT("ID_TOKEN"),l=l.closest("ytd-subscription-notification-toggle-button-renderer-next"),O||!l)O=!1;else{var E;O=((E=l.data)==null?void 0:E.targetId)==="notification-bell"&&e!=="EXPAND_MORE"}else O=!1;e=O}return e};
Frt=function(l){var e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.b1(E,2),_.C(E,fetch(l),4);case 4:return e=E.yieldResult,_.C(E,e.json(),5);case 5:return E.return(E.yieldResult);case 2:O=_.u1(E),_.hG(O),_.Cl(E)}})};
faq=function(l,e){var O,E,J;return _.V(function(z){if(z.nextAddress==1)return(O=e?l.pathDarkTheme:l.path)?_.C(z,Promise.all([Frt(O),ya8()]),2):z.return();E=z.yieldResult;J=E[0];nd.set(O,J);_.Cl(z)})};
_.ax=function(){for(var l=_.ke.apply(0,arguments),e=!0,O=_.b(l),E=O.next();!E.done;E=O.next())if(typeof E.value!=="string"){e=!1;break}return e?l.join(" ").trim()||void 0:function(){for(var J="",z=_.b(l),M=z.next();!M.done;M=z.next())if(M=M.value,typeof M==="function"&&(M=M()),M)if(typeof M==="string")J+=" "+M;else for(var Z in M)if(M.hasOwnProperty(Z)){var u=M[Z];typeof u==="function"&&(u=u());u&&(J+=" "+Z)}J=J.trim()||void 0;return _.UB(J)}};
_.k7=function(l){var e;var O=l.data;var E=l.className;var J=l.animationName;var z=l.animationRef;var M=(e=l.elRefForInterop)||_.e4("lottie-component"),Z;_.B3(function(){var g;return void((g=Z)==null?void 0:g.destroy())});
var u;_.Gh(function(){var g=_.UB(J);if(g!==u){u=g;var w=Object.assign({},{animationName:g,animationRef:_.UB(z)},_.UB(O));try{_.V2().resolve(RqV)().then(function(y){var c;(c=Z)==null||c.destroy();c=w.animationRef;var f=w.listeners;y=y.loadAnimation(Object.assign({},{container:M.value},w.animationConfig));c&&(c.lottieEl=y);if(f)for(c=_.b(Object.entries(f)),f=c.next();!f.done;f=c.next()){var P=_.b(f.value);f=P.next().value;(P=P.next().value)&&y.addEventListener(f,P)}Z=y})}catch(y){g=y;
var n="LottieComponent error.";g.message&&(n+=" Original description: "+g.message);_.LZ(g,n);_.hG(g);var k;((k=w.listeners)==null?0:k.error)&&w.listeners.error(g)}}},"Cu2JNe");
var d=_.ax("ytLottieComponentHost",E);return _.W(hBx,{cond:function(){return!e},
then:function(){return _.W("lottie-component",{class:d,el:M})}})};
sZ2=function(l,e,O,E){function J(M,Z){if(e.value===Z&&l!=null&&l.value){for(;l.value.firstChild;)l.value.removeChild(l.value.firstChild);l.value.classList.add("yt-spec-icon-shape");M(l.value,E)}}
O=_.Thq(_.V2().resolve(_.A3),O);if(typeof O==="function")e.value=null,J(O,null);else{var z=new _.kE(O.then,O);e.value=z;z.then(function(M){J(M,z)})}};
Bhu=function(l,e){var O=document.createElement("div"),E=_.fH(O,function(){return _.W(_.A,{cond:l,then:function(J){return _.W(G6V,{data:J,options:e})}})});
return[O,E]};
_.Ix=function(){for(var l=[],e=_.b(_.ke.apply(0,arguments)),O=e.next();!O.done;O=e.next())if(O=O.value)if(typeof O==="string")l.push(O);else{O=_.b(Object.entries(O));for(var E=O.next();!E.done;E=O.next()){var J=_.b(E.value);E=J.next().value;(J=J.next().value)&&l.push(E)}}return l.join(" ")};
hqu=function(l){var e=_.e4("animated-rolling-character"),O=BK(),E=Xj(l.character)||Xj(l.previousCharacter);Or2(function(){if(l.marginMultiplier){var J;(J=O.value)==null||J.cancel();E?(J=l.previousCharacter?Number(l.previousCharacter)+10:l.rollUp?0:30,l.shouldAnimate||(J-=PAt(l,J))):(J=l.rollUp?0:2,l.shouldAnimate||(J-=l.rollUp?-1:1));e.value.style.marginTop="-"+J*l.marginMultiplier+"px";l.shouldAnimate?O.value=U1A(e.value,l,J,E):e.value.style.display=l.character?"":"none"}});
return _.W("animated-rolling-character",{el:e,class:"animated-rolling-character-wiz"},OB(E,function(){for(var J=[],z=1;z<30;z++)J.push(_.W("div",null,z%10));return _.W(_.ZB,null,_.W("div",null,"\u00a0"),J,_.W("div",null,"\u00a0"))},function(){return Y3d(l.character)}))};
Y3d=function(l){return _.W(_.ZB,null,_.W("div",null,"\u00a0"),_.W(_.ZB,null,OB(!l||_.MA(l),function(){return _.W("div",null,"\u00a0")},function(){return _.W("div",null,l)})),_.W("div",null,"\u00a0"))};
U1A=function(l,e,O,E){O=new Animation(new KeyframeEffect(l,[{transform:"translateY(0px)"},{transform:"translateY("+(E?PAt(e,O):e.rollUp?-1:1)*e.marginMultiplier+"px)"}],LrW),document.timeline);e.character?(l.style.display="",O.onfinish=null):O.onfinish=function(){l.style.display="none"};
O.play();return O};
PAt=function(l,e){var O=Number(l.character)+10;if(l.previousCharacter)if(l.character){var E=Number(l.character),J=Number(l.previousCharacter);l=l.rollUp?J<E?O:O+10:J<E?O-10:O}else l=l.rollUp?30:0;else l=l.character==="0"?O:l.rollUp?O-10:O+10;return e-l};
_.yh=function(l,e){return function(O){var E={},J;for(J in O){var z=void 0,M=void 0;((z=e)==null?0:(M=z.callbacks)==null?0:M[J])||(E[J]=O[J])}return _.W($jx,null,function(){for(var Z in E)O[Z]=_.UB(E[Z]);O.disableReactiveLogging=!0;return _.W(l,Object.assign({},O))})}};
vKg=function(l,e,O,E,J,z,M){O=new Animation(new KeyframeEffect(l,[{transform:"translateY(0px)"},{transform:"translateY("+(z?tYq(e,O,E,J):E?-1:1)*M+"px)"}],q3x),document.timeline);e?(l.style.display="",O.onfinish=null):O.onfinish=function(){l.style.display="none"};
O.play();return O};
tYq=function(l,e,O,E){var J=Number(l)+10;e?l?(l=Number(l),e=Number(e),O=O?e<l?J:J+10:e<l?J-10:J):O=O?30:0:O=l==="0"?J:O?J-10:J+10;return E-O};
raM=function(l){var e=BK(),O=BK();TQ(function(){e.value=l.numberText;O.value=l.numberValue},[l.numberText]);
var E=l.fontSizeMultiplier?l.heightPx*l.fontSizeMultiplier:l.heightPx,J=brt(function(){if(l.numberText){var M=l.numberText;var Z=l.forceRollUp||!O.value||!l.numberValue||O.value<l.numberValue;var u=!!l.shouldAnimate,d=e.value,g=[],w=0,n=0,k=(d?d.replace(/\D/g,"").length:0)-(M?M.replace(/\D/g,"").length:0);d=d?d.split(/(\d)/).filter(Boolean):[];for(M=M.split(/(\d)/).filter(Boolean);k<0;){var y=M[n];g.push({character:y,rollUp:Z,marginMultiplier:E,shouldAnimate:u});n++;Xj(y)&&k++}for(;w<k;)y=d[w],g.push({previousCharacter:y,
rollUp:Z,marginMultiplier:E,shouldAnimate:u}),w++,Xj(y)||k++;for(;n<M.length;)k=M[n],y=d[w],Xj(k)===Xj(y)?(n++,w++):Xj(k)?(w++,k=void 0):Xj(y)&&(n++,y=void 0),g.push({character:k,previousCharacter:y,rollUp:Z,marginMultiplier:E,shouldAnimate:u});Z=g}else Z=[];return Z},[l.numberText]),z=l.numberText?["height: "+E+"px;",
"line-height: "+l.heightPx+"px;"].join(" "):"";return _.W("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:z,dir:"ltr","aria-hidden":"true"},J.map(function(M){return _.W(NhW,Object.assign({},M))}))};
S3W=function(l){var e;return(e=D1L[l])!=null?e:"EVENT_SPAN_TYPE_UNKNOWN"};
QZu=function(l){var e=l.nodeName;if(l.id)return e+="#"+l.id;if(l.classList)for(var O=_.b(l.classList),E=O.next();!E.done;E=O.next())e+="."+E.value;l.parentElement&&(e=QZu(l.parentElement)+" > "+e);return e};
x1M=function(l){return function(e){var O=S3W(e.type);return O==="EVENT_SPAN_TYPE_UNKNOWN"?l(e):fKA("event",{type:O,nodepath:e.target instanceof Element?QZu(e.target):void 0},function(){return l(e)})}};
_.pd=function(l){l&&HIx("event")&&(l=x1M(l));return tbx(function(e){var O,E=(O=l)==null?void 0:O(e);return typeof E==="boolean"?E:!0})};
Kd=function(l){return function(){return l()?l():void 0}};
lfV=function(l){return new KeyframeEffect(l,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
e6A=function(l){return new KeyframeEffect(l,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.jN=function(l){var e=bp(function(O){O=O?wX(O[0]):void 0;return _.AF(l(O),void 0,"AwTxXe")},{isEqual:function(O,E){return wX(O[0])===wX(E[0])}});
return[function(){return e()[0]()},
function(O){return void e()[1](O)}]};
_.HF=function(l){return function(){var e="",O;for(O in l){for(var E=l[O];typeof E==="function";)E=E();E!==void 0&&E!==null&&(e+="; "+O+": "+E)}return e.length>0?_.UB(e.slice(2)):_.UB()}};
O8t=function(l){switch(l){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"}};
z6p=function(l,e,O,E,J,z){var M=EOu(l),Z=M.disabled,u=M.iconPosition,d=M.style,g=M.focused,w=function(){return!!y()&&u()==="icon-only"},n=function(){return!!y()&&u()==="icon-only-40"},k=function(){return!!y()&&u()==="icon-with-label"},y=function(){return!!e||!(E==null||!E())};
return{type:function(){return d()==="call-to-action-inverse"?"text":d()==="overlay-dark"&&l().type!=="filled"&&l().type!=="tonal"?"tonal":l().type},
shouldFocus:function(){return(g()||(z==null?void 0:z()))&&!Z()},
hasIconLeading:function(){return!!y()&&u()==="leading"},
hasIconTrailing:function(){return!!y()&&u()==="trailing"},
hasIconLeadingTrailing:function(){return!!y()&&!!(O||J!=null&&J())&&u()==="leading-trailing"},
hasIconOnly:w,hasIconOnly40:n,hasIconWithLabel:k,iconButton:function(){return w()||n()||k()},
visiblyDisabled:function(){return(Z()?"disabled":l().state)==="disabled"||Z()},
overrideSmallSizeIcon:function(){return J0d(l(),y())},
iconToRender:e?e:function(){return _.W(_.cF,{icon:E,size:function(){return FY(l(),!0)},
active:function(){return l().toggled},
iconFilter:function(){return Xj2(l())}})},
secondaryIconToRender:O?O:function(){return _.W(_.cF,{icon:J,size:function(){return FY(l(),!0)},
active:function(){return l().toggled},
iconFilter:function(){return Xj2(l())}})}}};
EOu=function(l){return{size:function(){return l().size},
style:function(){return l().style},
focused:function(){return l().focused},
disabled:function(){return l().disabled},
onTap:function(e){var O,E;return(E=(O=l()).onTap)==null?void 0:E.call(O,e)},
alignByText:function(){return l().alignByText},
aTagConfig:function(){return l().aTagConfig},
customColors:function(){return l().customColors},
segmentedPosition:function(){return l().segmentedPosition},
toggled:function(){return l().toggled},
toggleable:function(){return l().toggleable},
accessibilityLabel:function(){return l().accessibilityLabel},
onToggle:function(e){var O,E;return(E=(O=l()).onToggle)==null?void 0:E.call(O,e)},
iconPosition:function(){return l().iconPosition},
oneOffCustomTextWrap:function(){return l().oneOffCustomTextWrap},
disableTextEllipsis:function(){return l().disableTextEllipsis},
disableBackdropFilter:function(){return l().disableBackdropFilter},
tooltipText:function(){return l().tooltipText},
ariaHidden:function(){return l().ariaHidden},
tabIndex:function(){return l().tabIndex},
buttonText:function(){return l().buttonText},
formattedButtonText:function(){return l().formattedButtonText},
animatedTextProps:function(){return l().animatedTextProps}}};
b8g=function(l){return l.style==="overlay-dark"?4:l.style==="overlay"?l.type==="filled"?4:3:l.type==="filled"||l.style==="call-to-action-inverse"||l.style==="mono-inverse"?2:1};
J0d=function(l,e){e=(l.iconPosition==="icon-only"||l.iconPosition==="icon-only-40"||l.iconPosition==="icon-with-label")&&e;return!l.segmentedPosition&&e&&l.size==="S"};
MrA=function(){return!_.a("web_disable_backdrop_filter")};
FY=function(l,e){switch(l.size){case "XS":return 16;case "S":return J0d(l,e)?24:16;default:return 24}};
Vrx=function(l){switch(l){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"}};
Z8W=function(l){switch(l){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"}};
u6x=function(l){switch(l){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"}};
Xj2=function(l){if(l.style==="overlay-dark"&&l.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
CM2=function(l){if(!l)return{};var e=l.color,O=l.backgroundColor;l=l.borderColor;var E="";e&&(E+="color: "+e+";");O&&(E+="background-color: "+O+";");l&&(E+="border-color: "+l+";");return{style:E}};
gOd=function(l,e,O){var E=l.buttonText,J=l.formattedButtonText,z=l.formattedButtonTextLegacy,M=l.animatedTextProps,Z=l.style,u=l.size,d=l.focused,g=l.disabled,w=l.onTap,n=l.alignByText,k=l.aTagConfig,y=l.customColors,c=l.segmentedPosition,f=l.toggled,P=l.toggleable,h=l.accessibilityLabel,N=l.onToggle,t=l.iconPosition,r=l.oneOffCustomTextWrap,D=l.disableTextEllipsis,b2=l.disableBackdropFilter,$V=l.tooltipText,gT=l.ariaHidden,mx=l.tabIndex,jM=l.state,cx=l.type;Z==="call-to-action-inverse"&&(cx="text");
Z==="overlay-dark"&&cx!=="filled"&&cx!=="tonal"&&(cx="tonal");var tq=!!e&&t==="leading",Px=!!e&&t==="trailing",S0=!!e&&!!O&&t==="leading-trailing",QH=!!e&&t==="icon-only",pR=!!e&&t==="icon-only-40",oq=!!e&&t==="icon-with-label",ZS=QH||pR||oq;g&&(jM="disabled");var Ou=jM==="disabled"||g;jM=J0d(l,!!e);var uq={},ZV=(uq["yt-spec-button-shape-next"]=!0,uq[Vrx(cx)]=!0,uq[Z8W(Z)]=!Ou,uq["yt-spec-button-shape-next--disabled"]=!!Ou,uq[u6x(u)]=!0,uq["yt-spec-button-shape-next--focused"]=!!d&&!g,uq["yt-spec-button-shape-next--icon-trailing"]=
Px,uq["yt-spec-button-shape-next--icon-leading"]=tq,uq["yt-spec-button-shape-next--icon-leading-trailing"]=S0,uq["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=S0&&!(E||J),uq["yt-spec-button-shape-next--icon-button"]=QH||oq,uq["yt-spec-button-shape-next--icon-only-default"]=pR,uq["yt-spec-button-shape-next--align-by-text"]=!!n,uq["yt-spec-button-shape-next--segmented-start"]=c==="start",uq["yt-spec-button-shape-next--segmented-end"]=c==="end",uq["yt-spec-button-shape-next--override-small-size-icon"]=
jM,uq["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!r,uq["yt-spec-button-shape-next--disable-text-ellipsis"]=!!D,uq["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!b2&&MrA(),uq),jO=function(){if(M)ggW(_.oO2)(M);else if(z)z(t==="icon-with-label"||r?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(J){var Ni=t==="icon-with-label"||r;ck8(Object.assign({},J,Ni?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!Ni})}else E&&bP(E)},V8=function(Ni){w==null||w(Ni);
P&&(N==null||N(Ni))},AC=k?$w8:WJx,Fk=k?"aria-current$":"aria-pressed$",tu=function(){e&&(tq||S0||ZS)&&function(){fd({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){e()})}();
(E||J||z||M)&&!ZS&&function(){fd({className:"yt-spec-button-shape-next__button-text-content"},function(){jO()})}();
Px&&function(){fd({className:"yt-spec-button-shape-next__icon"},function(){e()})}();
S0&&function(){fd({className:"yt-spec-button-shape-next__secondary-icon"},function(){O()})}();
g||ggW(_.Rx)({model:{color:b8g(l)}})},kq=function(){var Ni={};
AC(Object.assign({},(Ni.className=_.Ix(ZV),Ni.onclick=k?void 0:V8,Ni.disabled=g,Ni["aria-disabled$"]=Ou,Ni.style=g&&k?"pointer-events:none":void 0,Ni[Fk]=P?!!f:void 0,Ni["aria-label$"]=h,Ni.title$=$V!=null?$V:"",Ni["aria-hidden$"]=gT,Ni.tabindex$=mx,Ni),k,CM2(y)),function(){tu()})};
oq?(u={},Z=(u["yt-spec-button-shape-with-label"]=!0,u["yt-spec-button-shape-with-label--is-overlay"]=Z==="overlay"||Z==="overlay-dark",u),dwL({className:_.Ix(Z)},function(){kq();fd({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},jO)})):kq()};
i8M=function(l,e){if(!JF){var O;JWA(function(){return O=Cpt(l,e)});
return O}return Cpt(l,e)};
wjt=function(){var l=zh(JF||void 0,VNx);return aBx(l)?void 0:l};
Tk=function(l,e){_.qT(l,Object.assign({},e,{forceClickLogging:!0}))};
A08=function(l,e,O,E){var J=void 0;return function(z){var M=_.t3(O?l==null?void 0:l.onDisabledTap:l==null?void 0:l.onTap);if(M){var Z;J=(Z=J)!=null?Z:e==null?void 0:e.value;if(M)if(_.a("web_button_vm_click_client_ve_killswitch"))Tk(M,Object.assign({},{form:{element:J,event:z}},void 0));else{var u;Z=M==null?void 0:M.clickTrackingParams;var d,g=l==null?void 0:(u=l.loggingDirectives)==null?void 0:(d=u.clientVeSpec)==null?void 0:d.uiType;u=g&&!Z?_.sL(g):void 0;Tk(M,Object.assign({},{form:{element:J,event:z}},
{clickedVisualElement:u}))}}E&&E(z)}};
nOt=function(l){switch(l){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"}};
afL=function(l){switch(l){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"}};
kyM=function(l){switch(l){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"}};
IfM=function(l){switch(l){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"}};
mwT=function(l,e){return _.wV(l.entities,"engagementToolbarStateEntityPayload",e)};
pjx=function(l){(l=_.cf(l))&&_.y0u(l)};
_.y0u=function(l){var e=_.P9();e&&_.Q4(e,l)};
KJ2=function(l,e,O){_.Wb(l,"yt-open-popup-action",[e,O||l])};
jOq=function(l,e){var O=_.PK(l,"endpoint"),E=_.PK(l,"action");return(O=E?E:O)&&e&&(O=e.navigationEndpointPopupMap[O])&&(l=_.vK(O,l),(O=_.PK(l,"renderer"))&&e.supportedPopups.hasOwnProperty(O))?{openPopupAction:{popupType:e.popupTypeMap[O],popup:l}}:null};
H8T=function(l,e,O,E){if(E){var J;O=O==null?void 0:(J=O.data)==null?void 0:J.contents;(J=O instanceof Array&&O.length?O[0]:O)&&(O=_.PK(J,"renderer"))&&E.supportedPopups.hasOwnProperty(O)&&(e.stopPropagation(),KJ2(l,{openPopupAction:{popupType:E.popupTypeMap[O],popup:J}}))}};
ffM=function(l,e,O,E){E=E===void 0?!1:E;var J=c0g(e);if(J){J.href&&r8(J.href);var z=e.button;z=z!==void 0?z===0&&!Gk(e):!Gk(e);J.data&&z&&FJp(l,J,e,O,E)}};
FJp=function(l,e,O,E,J){J=J===void 0?!1:J;var z=_.Cv("pbj_navigate_limit",-1)===0;R62(e);_.V2().resolve(_.MG(rA));var M=e.data;if(Object.keys(M).length!==0)if(!_.a("unplugged_web_disable_actions_for_cec_endpoint")&&_.I(M,_.nz))_.a("endpoint_behavior_command_executor_fix_killswitch")||(O.preventDefault(),O.stopPropagation()),_.wQ(l,[M],l);else if(E=jOq(M,E))M.loggingUrls&&M.loggingUrls.forEach(function(u){u.baseUrl&&_.St(u.baseUrl)}),O.preventDefault(),O.stopPropagation(),KJ2(l,E,e);
else{var Z=THW(0,e.data,O);if(l=e.getForm)l=l(),Z.tempData=Z.tempData||{},Z.tempData=Object.assign({},Z.tempData,l);l=_.ey(O);if(E=l.find(function(u){return!!u.visualElement}))Z.createScreenConfig=Z.createScreenConfig||{},Z.createScreenConfig.clickedVisualElement=E.visualElement;
if(!z)if(O.preventDefault(),O.stopPropagation(),_.I(M,_.sOt)&&!J&&_.n4.instance)_.n4.instance.resolveCommand(M,Z);else if(_.a("kevlar_command_handler_formatted_string")&&!J&&_.n4.instance&&GyL(M))J=l.find(function(u){return!!u.is})||O.target,O={form:Object.assign({},Z,{event:O,
element:J,originatingNode:e})},_.n4.instance.resolveCommand(M,O);else{M=_.ey(O);O=[];for(J=0;J<M.length;J++)(z=M[J].is)&&O.push(z);pfd({parents:O.join(","),text:e.innerText},function(){_.$u(e,"yt-navigate",Z)})}}};
BHu=function(l){if(l=c0g(l))R62(l),Zep(l.href)};
c0g=function(l){l=_.ey(l);for(var e,O=0;O<l.length;O++)if(e=l[O],e.tagName==="A"&&e.classList.contains("yt-simple-endpoint")){if(!e.data)break;return e}return null};
Gk=function(l){return l.shiftKey||l.altKey||l.metaKey||l.ctrlKey};
PM8=function(l,e){var O={itct:e.clickTrackingParams};_.a("kevlar_client_side_screens")&&(!_.I(e,_.jT)||_.a("kevlar_exclude_endpoint_killswitch"))&&(O.endpoint=JSON.stringify(e));_.a("enable_unknown_lact_fix_on_html5")&&_.V2().resolve(_.MG(_.BF))&&(O.lact=_.uN());beT(O);_.bi(l,O)};
R62=function(l){l.href&&Object.keys(l.data).length!==0&&PM8(l.href,l.data)};
GyL=function(l){for(var e=_.b(Uwg),O=e.next();!O.done;O=e.next())if(l[O.value])return!1;return!0};
_.PF=function(l,e){if(e){var O={};YZW.forEach(function(E){E=h62(e,E,"--yt-lightsource-");Object.assign(O,E)});
LJt.forEach(function(E){E=h62(e,E,"--yt-basic-");Object.assign(O,E)});
_.dP(l,O)}};
h62=function(l,e,O){var E={};E[O+_.kv(e)]=l&&l[e]?_.qv(l[e]):"";return E};
_.Y7=function(l,e,O){UL[l]||(UL[l]={});UL[l][e]=O};
_.hm=function(l){UL[l]||(UL[l]={});return UL[l]};
trd=function(l){if(!l)return{};var e=l.foregroundTitleColor,O=l.backgroundColor;l=l.borderColor;var E="text";l?E="outline":O&&(E="filled");return{type:E,customColors:{color:e?_.qv(e):void 0,backgroundColor:O?_.qv(O):void 0,borderColor:l?_.qv(l):void 0}}};
DwM=function(l){var e=l.renderer;var O=l.element;var E=l.commandController;var J=l.onTapCallback;var z=l.skipCommandHandling;var M=l.overrides;var Z=l.forceIcon;var u=l.forceModernIconButton;var d=l.forceDisabled;var g=l.isSubscribe===void 0?!1:l.isSubscribe;var w=l.isPressed===void 0?!1:l.isPressed;var n=l.useButtonSize===void 0?!1:l.useButtonSize;l=qZL(e);g&&(l.style="mono",l.type="filled");Z=!e.icon||!Z&&e.text?e.icon?e.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:u?"icon-only":"icon-only-40";Z==="icon-only-40"&&(l.type="text");var k;u=Object;g=u.assign;n=vOV(e,n);w=!!e.isSelected||!_.a("web_propagate_is_pressed_killswitch")&&!!w;var y=e.isSelected!==void 0;d=d===void 0?e.isDisabled:d;var c=e.text?_.Ut(e.text):void 0;var f,P,h,N=((f=e.accessibilityData)==null?void 0:(P=f.accessibilityData)==null?void 0:P.label)||((h=e.accessibility)==null?void 0:h.label);f=N?N:_.lG(e.text);O=NHd(e,O,E,J,z);E=r0V(e);E!=null&&E.length?(E=_.vf({innertubeCommand:iG8(E),
forceNewState:!0}),E=NT(E)?E:void 0):E=void 0;return g.call(u,{},l,n,{iconPosition:Z},M,{focused:!1,toggled:w,toggleable:y,disabled:d,formattedButtonText:c,accessibilityLabel:f,onTap:O,aTagConfig:E},trd((k=e.colorData)==null?void 0:k.basicColorPaletteData),{oneOffCustomTextWrap:e.oneOffCustomTextWrap})};
NHd=function(l,e,O,E,J){return function(z){var M=r0V(l);E(M,z);if(!J){M=_.b(M);for(var Z=M.next();!Z.done;Z=M.next())Tk(Z.value,{form:{element:e,event:z},commandController:O})}}};
r0V=function(l){var e=[];l.command&&e.push(l.command);l.serviceEndpoint&&e.push(l.serviceEndpoint);l.navigationEndpoint&&e.push(l.navigationEndpoint);return e};
vOV=function(l,e){if(e)switch(l.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(l.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
qZL=function(l){switch(l.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Ld=function(l){return _.mF(function(){QWt()();return eb(l)},void 0,"Icv7j")};
tm=function(l,e){return _.wV(l.entities,"likeStatusEntity",e)};
SZp=function(l,e){return _.wV(l.entities,"likeCountEntity",e)};
_.QO2=function(l,e){return _.wV(l.entities,"stringEntity",e)};
xwV=function(l,e){if(!l)return!1;var O,E=(O=_.I(l,_.ku))==null?void 0:O.signal;if(E&&e.signalEndpointMap)return!!e.signalEndpointMap[E];var J;if((O=(J=_.I(l,_.qj))==null?void 0:J.request)&&e.continuationEndpointMap)return!!e.continuationEndpointMap[O];for(var z in l)if(e.commandEndpointMap[z])return!0;return!1};
l_x=function(l,e){if(e.streamingEndpointMap)for(var O in l)if(e.streamingEndpointMap[O]&&(l=e.streamingEndpointMap[O]))return l()};
ekL=function(l,e){var O,E=(O=_.I(l,_.ku))==null?void 0:O.signal;if(E&&e.signalEndpointMap&&(O=e.signalEndpointMap[E]))return O();var J;if((O=(J=_.I(l,_.qj))==null?void 0:J.request)&&e.continuationEndpointMap&&(J=e.continuationEndpointMap[O]))return J();for(var z in l)if(e.commandEndpointMap[z]&&(l=e.commandEndpointMap[z]))return l()};
OmV=function(l){var e={"Content-Type":"application/json"};_.hT("EOM_VISITOR_DATA")?e["X-Goog-EOM-Visitor-Id"]=_.hT("EOM_VISITOR_DATA"):_.hT("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=_.hT("VISITOR_DATA"));e["X-Youtube-Bootstrap-Logged-In"]=_.hT("LOGGED_IN",!1);_.hT("DEBUG_SETTINGS_METADATA")&&(e["X-Debug-Settings-Metadata"]=_.hT("DEBUG_SETTINGS_METADATA"));l!=="cors"&&((l=_.hT("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(e["X-Youtube-Client-Name"]=l),(l=_.hT("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(e["X-Youtube-Client-Version"]=
l),(l=_.hT("CHROME_CONNECTED_HEADER"))&&(e["X-Youtube-Chrome-Connected"]=l),(l=_.hT("DOMAIN_ADMIN_STATE"))&&(e["X-Youtube-Domain-Admin-State"]=l),_.LH("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(l=_.hT("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=l));return e};
EaL=function(l,e){e.watchNextResponse||e.reelItemWatchResponse?e.watchNextResponse?l.content=e.watchNextResponse:l.content=e.reelItemWatchResponse:e.playerResponse?l.player=e.playerResponse:e.reelWatchSequenceResponse&&(l.reelSequence=e.reelWatchSequenceResponse)};
_.vF=function(l){if(!l)return null;for(var e=[],O=0;O<l.textSegments.length;O++){var E=l.textSegments[O];E.text?e.push(E):E.emojiId&&e.push({emoji_id:E.emojiId})}return{text_segments:e}};
MEp=function(l,e,O,E,J,z,M){z=z===void 0?[]:z;var Z=new _.Nj;Z.endpoint=O;if(!O)return _.YE(new _.Hk("handle undefined endpoint",e.tagName)),Z;var u=sXp(O);u.length&&(_.wQ(l,u,e,E),Z.actions=u);O.loggingUrls&&O.loggingUrls.forEach(function(g){g.baseUrl&&QZ(g.baseUrl,g.attributionSrcMode)});
u=!_.a("web_skip_impression_click_killswitch")&&E&&E.impression;if(O.clickTrackingParams&&!JBL(O)&&!XHp(e)&&!u&&(u=_.yN(),!_.rg(u,e))){var d=e.getScreenLayer&&e.getScreenLayer();d?u.clickCommand(O,null,d):u.clickCommand(O,null)}u=!1;for(d=0;d<z.length;d++)if((0,z[d])(e,O,E)){u=!0;break}!u&&zkM(O)&&(Z.ajaxPromise=bmu(l,e,O,E,J,M));return Z};
XHp=function(l){var e;return(l=(e=l.data)==null?void 0:e.navigationEndpoint)&&!!l.clickTrackingParams};
JBL=function(l){var e=_.I(l,_.ku);if(e&&(e=e.signal)&&VEV.indexOf(e)>=0)return!0;for(var O in l)if(Zmu.indexOf(O)>=0)return!0;return!1};
zkM=function(l){var e;if(((e=_.I(l,_.ku))==null?void 0:e.signal)==="CLIENT_SIGNAL")return!1;for(var O in l)if(uqL.indexOf(O)>=0)return!1;l=Object.keys(l);return l.length===1&&l[0]==="loggingUrls"?!1:!0};
wHd=function(l,e,O,E,J,z,M){var Z=_.Dw.instance;if(Z&&_.SN(Z,E))var u=_.Qh(Z,E,J).then(function(g){return(g==null?0:g.data)?g:{data:g}});
else u=l.requestDataForServiceEndpoint(E,J),_.I(E,C02)||_.I(E,oaL)||_.I(E,_.$0g)||_.I(E,W$8)||_.hG(new _.Hk("No RequestBuilder for endpoint",E));var d=_.x7();d.promise.thenCatch(function(){var g=_.PK(E,"action")||_.PK(E,"command")||_.PK(E,"endpoint");g&&(g=E[g],g.hasOwnProperty("onFailureAction")?_.wQ(e,[g.onFailureAction],O):g.hasOwnProperty("onFailureCommand")&&_.wQ(e,g.onFailureCommand,O));u.cancel("Resolver promise rejected")});
u.then(function(g){if(g){var w=g.error;if(w){if(z&&z.onServerError)z.onServerError(E,g);d.reject(new _.Hk("Response error",E,w))}else if(g=g.data)if(w=g.error){if(z&&z.onServerError)z.onServerError(E,g);d.reject(new _.Hk("Returned error",E,w))}else{d0g(e,O,g,E);gaV(g);if(w=T6W(g))for(var n=_.b(w),k=n.next();!k.done;k=n.next()){k=k.value;var y=_.V2().resolve(_.MG(imT))||lV;if(!_.Dw.instance||!y.some(function(f){return!!_.I(E,f)})||_.a("kevlar_response_processor_allowlist_killswitch")){var c=y=void 0;
((c=_.I((y=k)==null?void 0:y.commandMetadata,_.V4))==null?0:c.sendPost)?_.ii(e,[k]):_.wQ(e,[k],O)}}(n=_.I(g==null?void 0:g.frameworkUpdates,ep))&&M&&M(n);if(z&&z.onSuccess)z.onSuccess(E,g);d.resolve(new _.Oh(g,w))}}else d.reject(new _.Hk("Invalid service endpoint provided",E))},function(g){d.reject(g)});
return d.promise};
gaV=function(l){var e;(l=(e=_.I(l==null?void 0:l.onResponseReceivedCommand,_.ABg))==null?void 0:e.continuationItems)&&(l==null?void 0:l.length)===1&&_.I(l[0],na8)&&_.Yu("so_r",void 0,"search_overview_answer")};
bmu=function(l,e,O,E,J,z){var M;return(M=e.getNetworkManager&&e.getNetworkManager()?e.getNetworkManager():_.V2().resolve(_.MG(_.Pc)))?wHd(M,l,e,O,E,J,z):_.Tr("No network manager.")};
d0g=function(l,e,O,E){if(O=O.trackingParams||O.loggingDirectives&&O.loggingDirectives.trackingParams){var J;(_.I(E,a_8)||_.I(E,kC2)||_.I(E,I_p))&&E.clickTrackingParams?J=_.cf(E.clickTrackingParams):_.a("web_graft_to_parent_command")&&E.clickTrackingParams&&(J=_.cf(E.clickTrackingParams));var z;E=(z=e.getScreenLayer)==null?void 0:z.call(e);e=_.yN().graftServerVe(O,J,E);_.dQ(l,"yt-store-grafted-ve-action",[e])}};
_.m0t=function(l){var e=new Image;return new _.kE(function(O,E){e.addEventListener("load",function(){O()});
e.addEventListener("error",function(){E()});
e.src=l})};
yB8=function(l){return!!l};
pHT=function(l){return!!l};
K$8=function(l,e,O){var E=l.rowIndex;E!==void 0&&_.dQ(l.hostElement,"yt-section-reactive-dismissal",[E,e,O])};
_.Eh=function(l,e,O){l=_.b(l);for(var E=l.next();!E.done;E=l.next()){E=E.value;if(E===e)break;for(var J=_.b(O),z=J.next();!z.done;z=J.next())if(z=z.value,E.tagName===z||!_.a("web_event_button_role_check_killswitch")&&E.role==="button"&&z==="BUTTON")return!0}return!1};
_.JM=function(l,e,O){l=_.b(l);for(var E=l.next();!E.done;E=l.next()){E=E.value;if(E===e)break;for(var J=_.b(O),z=J.next();!z.done;z=J.next())if(E.id===z.value)return!0}return!1};
jPd=function(l,e){if(!l&&!e)return"medium";l=Math.max(l||0,e||0);return l>=256?"large":l>=96?"medium":"small"};
Hmx=function(l){switch(l){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.bV=function(){var l=_.V2().resolve(_.MG(_.XZ));return l?(l=l.getCurrentPage())?_.zn(l):null:null};
_.Mc=function(){var l=_.bV();if(!l){var e=_.V2().resolve(_.MG(_.XZ)),O=e?typeof e:"no page manager";e=e?e.getCurrentPage():null;O=new _.Hk("Player is missing when requested.",O,e?e.tagName:"no page");_.UW(O)}return l};
_.zn=function(l){return l&&l.getPlayer?l.getPlayer():null};
cBA=function(l,e){l={args:{raw_player_response:l}};e&&(l.args=Object.assign({},l.args,e));return l};
F$2=function(l){if(l.args){if(l.args.raw_player_response)return l.args.raw_player_response;if(l.args.player_response)return JSON.parse(l.args.player_response)}};
_.f_2=function(l,e){var O={url:"/watch?v="+l.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};l.playlistId&&(O.url+="&list="+l.playlistId);l.playerParams&&(O.url+="&pp="+l.playerParams);l={watchEndpoint:l,commandMetadata:{webCommandMetadata:O}};e&&(l.clickTrackingParams=e);return l};
TxL=function(){return Rkx||!!_.vK("yt.player.Application")};
GCV=function(){return sPV||!!document.querySelector("link#player-css")};
P0L=function(){function l(){Rkx=!0;BxM.resolve()}
var e,O;return _.V(function(E){BxM||(BxM=new _.d8,TxL()?l():(e=document.createElement("script"),e.addEventListener("load",l),O=_.j$(_.hT("PLAYER_JS_URL")),_.UN(e,O),document.head.appendChild(e)));return E.return(BxM.promise)})};
YvL=function(){function l(){sPV=!0;U0x.resolve()}
if(!U0x)if(U0x=new _.d8,GCV())l();else{var e=document.createElement("link");e.id="player-css";e.addEventListener("load",l);var O=_.j$(_.hT("PLAYER_CSS_URL"));_.LU(e,O,"stylesheet");document.head.appendChild(e)}return U0x.promise};
hkV=function(){return TxL()&&GCV()?Promise.resolve([]):Promise.all([P0L(),YvL()])};
L$V=function(l,e,O){var E={args:{}};l&&(E.args.raw_player_response=l);e&&(E.args.raw_watch_next_response=e);O&&(E.args=Object.assign({},E.args,O));return E};
Nx2=function(l,e,O){var E=!1;E=E===void 0?!0:E;l=typeof l==="string"?_.Vz(document,l):l;var J=tE2+"_"+_.Ox(l),z=qvd[J];if(z&&E)return vaV(e,O)?z.api.loadVideoByPlayerVars(e.args||null):z.loadNewVideoConfig(e),z.api;z=new ZP(l,J,e,O,void 0);qvd[J]=z;z.addOnDisposeCallback(function(){delete qvd[z.getId()]});
return z.api};
vaV=function(l,e){return e&&e.serializedExperimentFlags?e.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):l&&l.args&&l.args.fflags?l.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
rBT=function(){var l=new _.d8;l.resolved=!1;var e=l.resolve;l.resolve=function(O){l.resolved=!0;e(O)};
return l};
Svx=function(l){var e={};D0T().install((e.document_disposed={callback:l},e))};
uV=function(l,e){if(!l&&Math.random()<=_.Cv("kevlar_unified_player_logging_threshold")){l=Error("uh`"+(e?e:"Unspecified error"));if(_.a("kevlar_unified_player_throw_errors"))throw l;_.hG(l)}};
_.QPx=function(){var l=_.vK("ytDebugData.callbacks");l||(l={},_.zJ("ytDebugData.callbacks",l));return l};
lJV=function(l,e){var O=_.QPx();if(_.a("web_dd_iu")||x0d.includes(l))O[l]=e};
eAx=function(){return _.V(function(l){return l.return({isLeader:_.Ind(_.Om().getState()),c:_.hT("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.hT("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
OA8=function(){var l;_.V(function(e){if(e.nextAddress==1)return lJV("APP_STATE",eAx),_.C(e,_.V2().resolve(_.CT),2);l=e.yieldResult;lJV("PI",function(){return _.V(function(O){return O.return(l.getVideoStats())})});
_.Cl(e)})};
EC2=function(l){var e=_.z9(_.Dp(_.Op.location.href));l=_.z9(_.Dp(l));return _.a("kevlar_clear_non_displayable_url_params")?e==oK(l):oK(e)==oK(l)};
oK=function(l){var e=_.J9g(l);l=l.slice(0);var O=["frags"];_.a("kevlar_hide_pp_url_param")&&O.push("pp");_.a("kevlar_hide_time_continue_url_param")&&O.push("time_continue");O=_.b(O);for(var E=O.next();!E.done;E=O.next())E=E.value,l=_.M9(_.z9(l),E);return _.z9(l)+(e?"#"+e:"")};
$D=function(l,e){e=Number(e)*1E3;var O=Math.round((0,_.VZ)()),E=O.toString();l={innertubeResponse:l,serverDateTimestampMs:E,lastModifiedTimestampMs:E,expireTimestampMs:(O+e).toString()};if(e=_.hT("INNERTUBE_CONTEXT_CLIENT_NAME"))l.clientName=e;return l};
zAV=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++XTV};
_.bAd=function(){var l=_.B9(),e=_.P9();e&&l&&_.lH(e,[l],!0)};
VnA=function(l){return l&&Mnu.some(function(e){return l.includes(e)})};
WZt=function(l){var e=_.I(l,_.Db);if(!e)return!1;var O=e.url,E=e.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!O)return _.UW(Error("zh")),!1;if(e.target==="TARGET_NEW_WINDOW"){var J={};_.a("resolve_url_parent_tracking_params")&&(!_.Es(O)||J5(window.location.href,O))&&(J={endpoint:l,itct:l.clickTrackingParams});beT(J);l=null;try{if(E)return l=_.WYu(O,"_blank",J,void 0,E),ZAu(_.V2().resolve(uWT),l,O),!0}catch(n){_.UW(n)}_.bi(O,J);e={target:"_blank",noopener:_.a("set_window_noopener_ks")&&
!e.allowOpener};l=window;E=$e(O)?O:_.nU(typeof O.href!="undefined"?O.href:String(O));J=self.crossOriginIsolated!==void 0;var z="strict-origin-when-cross-origin";window.Request&&(z=(new Request("/")).referrerPolicy);var M=e.noreferrer;if(J&&M&&z==="unsafe-url")throw Error("qe");z=M&&!J;M=e.target||O.target;var Z=[],u=[],d=!1;for(w in e){var g=e[w];switch(w){case "width":case "height":case "top":case "left":Z.push(w+"="+g);break;case "target":break;case "noopener":case "noreferrer":g?u.push(w):(d=!0,
u.push(w+"=false"));break;case "attributionsrc":Z.push(w+(g?"="+g:""));break;default:Z.push(w+"="+(g?1:0))}}var w=M!==void 0&&!["_blank","_self","_top","_parent",""].includes(M);w=pL()&&w;CbL&&J&&Z.length===0&&u.length>0&&!w&&!d?(u.length===2&&(u=["noreferrer"]),_.FC(l,E,M,u[0]),l=oCV()):(w=Z.join(","),_.Rd()&&l.navigator&&l.navigator.standalone&&M&&M!="_self"?(w=_.i$("A"),yS(w,E),w.target=M,z&&(w.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&w.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),
e.initMouseEvent("click",!0,!0,l,1),w.dispatchEvent(e),l=oCV()):z?(l=_.FC(l,"",M,w),e=_.W2(E),l&&(l.opener=null,e===""&&(e="javascript:''"),e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Wi(e)+'">',e=KU(e),(E=l.document)&&E.write&&(E.write(jv(e)),E.close()))):((l=_.FC(l,E,M,w))&&e.noopener&&(l.opener=null),l&&e.noreferrer&&(l.opener=null)));ZAu(_.V2().resolve(uWT),l,O);return!0}e=_.A5(O);e=VnA(e)||O==="https://studio.youtube.com/";E=!(!_.Es(O)||J5(window.location.href,
O));w=O.indexOf("disable_polymer=1")>=0;if(E||w||e)r8(O),Bb(),_.DC(O,void 0,void 0,window.top,$qM);else return _.hG(new _.Hk("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",l)),!1;return!0};
_.iAp=function(l,e){e=e===void 0?0:e;if(!(_.I(l,dqL)||_.I(l,gCq)||_.I(l,_.Db)&&_.I(l,_.Db).url))return!1;var O,E=(O=_.I(l,_.Db))==null?void 0:O.url;O=E?{externalLinkData:{url:E}}:null;return _.yN().clickCommand(l,O,e)};
wT2=function(l,e){return _.wV(l.entities,"subscriptionStateEntity",e)};
A9x=function(l,e){return _.wV(l.entities,"subscriptionNotificationStateEntity",e)};
nCp=function(l,e){return _.wV(l.entities,"upcomingEventReminderStateEntity",e)};
aJp=function(l,e){return _.wV(l.entities,"engagementToolbarSurfaceEntityPayload",e)};
kY8=function(l,e){return _.wV(l.entities,"triStateButtonStateEntityPayload",e)};
IJM=function(l,e){return _.wV(l.entities,"commerceCartCheckoutButtonEntity",e)};
_.mqV=function(l,e){return _.wV(l.entities,"playlistLoopStateEntity",e)};
y9L=function(l,e){return _.wV(l.entities,"commandEntity",e)};
KZp=function(l,e,O,E,J){J=J===void 0?{}:J;return function(z){var M,Z;var u=((M=l.loggingDirectives)==null?0:(Z=M.clientVeSpec)==null?0:Z.uiType)?_.sL(l.loggingDirectives.clientVeSpec.uiType):void 0;J.clickedVisualElement||(J.clickedVisualElement=u);u=pTu(l,e);O(u,z);u=_.b(u);for(M=u.next();!M.done;M=u.next()){M=M.value;Z=E;var d=z,g=J;g.form?g.form.event=d:g.form={element:Z,event:d};Tk(M,g)}}};
pTu=function(l,e){var O=[];e?(l.toggledCommand&&O.push(l.toggledCommand),l.toggledServiceEndpoint&&O.push(l.toggledServiceEndpoint)):(l.defaultCommand&&O.push(l.defaultCommand),l.defaultServiceEndpoint&&O.push(l.defaultServiceEndpoint),l.defaultNavigationEndpoint&&O.push(l.defaultNavigationEndpoint));return O};
jN8=function(l,e){var O=l.toggledStyle||l.style,E;switch((E=e?O:l.style)==null?void 0:E.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"}}};
_.dC=function(){return _.V(function(l){return l.nextAddress==1?_.C(l,_.V2().resolve(_.CT),2):l.return(_.V2().resolve(HAL)())})};
_.gC=function(){return _.V2().resolve(HAL)()};
_.iV=function(){return GQ(function(){return{lottieEl:void 0}})};
c9t=function(l,e){return l.startsWith(e.uniqueId)};
FZW=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,_.dC(),2);e=E.yieldResult;if((O=e)==null||!O.addEventListener)return wC(),E.return();e.addEventListener("onCueRangeEnter",l);_.Cl(E)})};
fJM=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,_.dC(),2);e=E.yieldResult;if((O=e)==null||!O.removeEventListener)return wC(),E.return();e.removeEventListener("onCueRangeEnter",l);_.Cl(E)})};
RAx=function(l){var e,O,E,J,z;_.V(function(M){if(M.nextAddress==1)return _.C(M,_.dC(),2);e=M.yieldResult;if((O=e)==null||!O.addCueRange)return wC(),M.return();E=_.b(l.timings);for(J=E.next();!J.done;J=E.next())z=J.value,e.addCueRange(l.uniqueId+"-"+z,z/1E3,(z+100)/1E3);_.Cl(M)})};
T2T=function(l){var e,O,E,J,z;_.V(function(M){if(M.nextAddress==1)return _.C(M,_.dC(),2);e=M.yieldResult;if((O=e)==null||!O.removeCueRange)return wC(),M.return();E=_.b(l.timings);for(J=E.next();!J.done;J=E.next())z=J.value,e.removeCueRange(l.uniqueId+"-"+z);_.Cl(M)})};
sNx=function(){var l,e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,_.dC(),2);l=E.yieldResult;if((e=l)==null||!e.getPlayerState)return wC(),E.return();O=l.getPlayerState();return E.return(O===2)})};
wC=function(){_.hG(new _.Hk("Smartimation player does not exist or is corrupted"))};
GYW=function(){try{var l;return(l=window.CSS)!=null&&l.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(e){return _.hG(new _.Hk("Smartimation CSS.supports threw an error")),!1}};
tnT=function(l,e,O,E,J){var z=l.playlistId?B28:PbM;e=e();O=O();J=!!l.videoId&&J()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.KO(e))return Uqq({data:l,actionType:z,disabled:J},O);if(l.videoId&&E())return YRp({data:l,actionType:z,disabled:J});switch(e){case "TRANSFER_STATE_UNKNOWN":return YRp({data:l,actionType:z,disabled:J});case "TRANSFER_STATE_FAILED":return l.videoId?hAA({data:l,actionType:z,disabled:J}):LZg({data:l,actionType:z,disabled:J});case "TRANSFER_STATE_COMPLETE":return LZg({data:l,
actionType:z,disabled:J});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Uqq({data:l,actionType:z,disabled:J},O);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return l.videoId?hAA({data:l,actionType:z,disabled:J}):YRp({data:l,actionType:z,disabled:J});default:return YRp({data:l,actionType:z,disabled:J})}};
qRT=function(l,e){var O=l.onTapCommand,E=_.t3(O);if(l.videoId&&_.I(E,_.AM))return _.I(E,_.AM).action=e,O;l.playlistId&&_.I(E,_.nT)&&(_.I(E,_.nT).action=e);return O};
YRp=function(l){var e=l.data;var O=l.actionType;l=l.disabled;return{text:vCx,iconType:"OFFLINE_DOWNLOAD",onTap:qRT(e,O.ACTION_ADD),disabled:l}};
Uqq=function(l,e){var O=l.data;var E=l.actionType;l=l.disabled;var J="OFFLINE_DOWNLOAD";e>=0&&e<=.1?J="OFFLINE_DOWNLOADING_ZERO":e>.1&&e<=.3?J="OFFLINE_DOWNLOADING_TWENTY":e>.3&&e<=.5?J="OFFLINE_DOWNLOADING_FORTY":e>.5&&e<=.7?J="OFFLINE_DOWNLOADING_SIXTY":e>.7&&e<1?J="OFFLINE_DOWNLOADING_EIGHTY":e===1&&(J="OFFLINE_PIN");return{text:N2x,iconType:J,onTap:qRT(O,E.ACTION_REMOVE_WITH_PROMPT),disabled:l}};
LZg=function(l){var e=l.data;var O=l.actionType;l=l.disabled;return{text:r9x,iconType:"OFFLINE_PIN",onTap:qRT(e,O.ACTION_REMOVE_WITH_PROMPT),disabled:l}};
hAA=function(l){var e=l.data;var O=l.actionType;l=l.disabled;return{text:Dqd,iconType:"OFFLINE_DOWNLOAD",onTap:qRT(e,O.ACTION_RETRY),disabled:l}};
lN2=function(l){var e=SRL;QNd.push(l);xqq||(e(function(){for(var O=_.b(QNd),E=O.next();!E.done;E=O.next())E=E.value,E();QNd.length=0;xqq=!1}),xqq=!0)};
SRL=function(l){Promise.resolve().then(l)};
aK=function(l){l=_.b(bd8(l));var e=l.next().value,O=l.next().value,E=!1;_.sC(function(){return function(){E=!0}});
return[e,function(J){lN2(function(){E&&!_.a("cow_prevent_state_setter_after_cleanup_killswitch")||O(J)})}]};
evL=function(){var l=_.b(aK(!1)),e=l.next().value,O=l.next().value;return function(){O(!e)}};
O98=function(l){return GQ(function(){return{value:l}})};
Ejx=function(l,e){var O=O98(l),E=O98(e);TQ(function(){O.value=l},[l]);
TQ(function(){E.value=e},e&&e.length>=1?e:[void 0]);
var J=GQ(function(){return{value:void 0}});
if(l!==O.value||E.value!==e||J.value===void 0)J.value=eb(l,e);var z=evL();_.sC(function(){function M(){var u=eb(O.value,e);u!==J.value&&(J.value=u,z())}
var Z=_.ls().subscribe(M);M();return Z});
return J.value};
_.kD=function(l,e){var O=QWt();return _.mF(function(){O();return eb(l,[_.UB(e)||""])},void 0,"HaeHEc")};
Jvx=function(l){var e=_.kD(_.Yp,function(){return l().videoId}),O=_.kD(_.hY,function(){return l().playlistId});
return function(){return l().videoId?e:l().playlistId?O:_.b(_.AF("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
XOg=function(l){var e=_.kD(LO,function(){return l().videoId}),O=_.kD(_.kWW,function(){return l().playlistId});
return function(){return l().videoId?e:l().playlistId?O:_.b(_.AF(0,void 0,"K4tgOc")).next().value}};
zvV=function(l){var e=_.kD(_.cKt,function(){return l().videoId});
return function(){return l().videoId?e:_.b(_.AF(!1,void 0,"Oaxwcf")).next().value}};
b9V=function(l){var e=_.kD(yKd,function(){return l().videoId});
return function(){return l().videoId?e:_.b(_.AF("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
MeM=function(){return{}};
Vep=function(){var l,e;return(e=(l=_.V2().resolve(_.MG(_.lp)))==null?void 0:l())!=null?e:!1};
u9M=function(l,e){l=l===void 0?Z9x:l;switch(e.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},l,{isOpen:e.payload});default:return l}};
ojp=function(l,e){l=l===void 0?C5T:l;switch(e.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},l,{isAllowed:e.payload});default:return l}};
Wap=function(l,e){l=l===void 0?$Mg:l;switch(e.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},l,{errorMessage:e.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},l,{title:e.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},l,{privacy:e.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},l,{isDisabled:e.payload});default:return l}};
gjW=function(l,e){l=l===void 0?dML:l;switch(e.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},l,{isOpen:e.payload});default:return l}};
wOx=function(l,e){l=l===void 0?i92:l;switch(e.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},l,{isFullscreen:e.payload});case "SET_NAVIGATION_BUTTON":var O=e.payload.targetId,E=Object.assign({},l.navigationButtons);E[O]=e.payload.button;return Object.assign({},l,{navigationButtons:E});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},l,{topPanelId:e.payload});case "SET_SECONDARY_HEADER":return O=e.payload.panelId,E=Object.assign({},l.secondaryHeader),E[O]=e.payload.secondaryHeader,
Object.assign({},l,{secondaryHeader:E});default:return l}};
ktM=function(){return n_(Object.assign({},{entities:JHT,voiceSearch:gwM,engagementPanel:wOx,bottomSheet:u9M,cinematicSetting:ojp,shorts:mgu,drawerLayout:gjW,createPlaylist:Wap,locationCollection:Av8,reportChannel:njW,reportForm:aNx},y7q))};
INx=function(l,e){_.UD.addLowPriorityJob(function(){var O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return _.b1(z,2),_.C(z,ya8(),4);case 4:return _.C(z,fetch(l),5);case 5:return O=z.yieldResult,_.C(z,O.json(),6);case 6:E=z.yieldResult;nd.set(l,E);requestAnimationFrame(function(){e(E)});
_.Q2(z,0);break;case 2:J=_.u1(z),_.hG(J),_.Cl(z)}})})};
mMq=function(l){var e={animationConfig:{},listeners:{}},O=function(){l(!0)};
e.listeners.data_failed=O;e.listeners.error=O;e.listeners.data_ready=function(){l(!1)};
return e};
KaV=function(l){var e=l.model;var O=l.subscribed;var E=l.isOverlay;var J=l.element;var z=l.commandController;var M=l.notificationState;if(O){var Z,u;var d=(e==null?void 0:(Z=e.buttonStyle)==null?void 0:Z.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:e==null?void 0:(u=e.unsubscribeButtonContent)==null?void 0:u.buttonText}else{var g;d=e==null?void 0:(g=e.subscribeButtonContent)==null?void 0:g.buttonText}a:{var w;switch(e==null?void 0:(w=e.buttonStyle)==
null?void 0:w.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":Z="S";break a;default:Z="M"}}a:if(E)E="overlay";else switch(e.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":E="overlay";break a;default:E="mono"}a:if(O)var n="tonal";else switch((n=e.buttonStyle)==
null?void 0:n.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":n="tonal";break a;default:n="filled"}return{style:E,type:n,state:e.disableSubscribeButton?"disabled":"active",size:Z,focused:l.focused,toggled:O,accessibilityLabel:yvx(e,O,M),buttonText:d,iconPosition:e.disableNotificationBell?"none":"leading-trailing",onTap:pOA(e,O,J,z),disableTextEllipsis:!!l.disableTextEllipsis}};
pOA=function(l,e,O,E){return function(J){if(e){var z;var M=l.disableNotificationBell?_.t3(l==null?void 0:(z=l.unsubscribeButtonContent)==null?void 0:z.onTapCommand):_.t3(l==null?void 0:l.onShowSubscriptionOptions)}else{var Z;M=_.t3(l==null?void 0:(Z=l.subscribeButtonContent)==null?void 0:Z.onTapCommand)}M&&Tk(M,{form:{element:O==null?void 0:O.value},commandController:E});J.stopPropagation()}};
yvx=function(l,e,O){if(e){if(l==null?0:l.disableNotificationBell){var E;return l==null?void 0:(E=l.unsubscribeButtonContent)==null?void 0:E.accessibilityText}switch(O){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var J;return l==null?void 0:(J=l.bellAccessibilityData)==null?void 0:J.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var z;return l==null?void 0:(z=l.bellAccessibilityData)==null?void 0:z.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var M;return l==null?void 0:(M=
l.bellAccessibilityData)==null?void 0:M.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var Z;return l==null?void 0:(Z=l.bellAccessibilityData)==null?void 0:Z.disabledLabel;default:var u;return l==null?void 0:(u=l.unsubscribeButtonContent)==null?void 0:u.accessibilityText}}else{var d;return l==null?void 0:(d=l.subscribeButtonContent)==null?void 0:d.accessibilityText}};
j1q=function(l){if(l){switch(l){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":l="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":l="NOTIFICATIONS_OFF";break;default:l="NOTIFICATIONS_NONE"}return l}};
H9d=function(l,e,O){O.subscribed!==e&&((O=O.key)&&_.Ot(_.IK("subscriptionStateEntity",O,{key:O,subscribed:e})),l.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:e})),e||_.Wb(l,"yt-unsubscribe-action"))};
Fat=function(l){l=_.I(_.t3(l),_.mM);var e,O,E,J;return(J=_.I(l==null?void 0:(e=l.panelLoadingStrategy)==null?void 0:(O=e.inlineContent)==null?void 0:(E=O.sheetViewModel)==null?void 0:E.content,cvu))==null?void 0:J.listItems};
fNV=function(l,e){if(l.onShowSubscriptionOptions&&e&&(l=Fat(l.onShowSubscriptionOptions),l!=null&&l.length)){var O=j1q(e);l.forEach(function(E){E=_.I(E,_.yz);var J,z,M,Z,u=E==null?void 0:(J=E.leadingImage)==null?void 0:(z=J.sources)==null?void 0:(M=z[0])==null?void 0:(Z=M.clientResource)==null?void 0:Z.imageName;E&&u&&(E.isSelected=u===O)})}};
Rvx=function(l,e,O,E){e&&O?l.style.width=O+"px":!e&&E&&(l.style.width=E+"px")};
Tlq=function(l,e,O){var E;(E=l.lottieEl)==null||E.goToAndPlay(0);var J;(J=e.lottieEl)==null||J.goToAndPlay(0);_.pT(_.UD,function(){var z;(z=O.lottieEl)==null||z.goToAndPlay(0)},300)};
KT=function(){return _.V2().resolve(_.MG(s1T))||{}};
GtA=function(l){return typeof l==="function"};
_.jp=function(l){Object.keys(l);var e=function(O,E){var J=e.mapping||l;if(!O)return _.W(_.ZB,null);if(Array.isArray(O)&&(O=BlW(J,e,O),Array.isArray(O))){if(!O.length)return _.W(_.ZB,null);if(O.length>1){for(var z=!1,M=!1,Z=[],u={},d=0;d<O.length;u={data$jscomp$1846:void 0},d++)if(u.data$jscomp$1846=O[d],u.data$jscomp$1846){var g=P52(u.data$jscomp$1846,J),w=g.mappingEntry;g=g.rendererName;w&&g&&(w&&(!GtA(w)&&UMp(w)&&(M=!0),!GtA(w)&&w.asyncId||(z=!0)),Z.push(YaM(u.data$jscomp$1846,w,g,e,E)))}return M&&
!z?_.W(_.ZB,null,hvT()):_.W(_.ZB,null,Z)}O=O[0]}if(!O)return _.W(_.ZB,null);O=BlW(J,e,[O])[0];if(!O)return _.W(_.ZB,null);z=P52(O,J);J=z.mappingEntry;z=z.rendererName;return J&&z?_.W(_.ZB,null,YaM(O,J,z,e,E)):_.W(_.ZB,null)};
e.mapping=l;return e};
_.La2=function(l){var e=void 0,O;for(O in l)if(l.hasOwnProperty(O)){e=O;break}return e};
BlW=function(l,e,O){var E,J=(E=KT().preProcessOptions)==null?void 0:E.idomOptions;if(!J)return O;KT();return J.preProcessPropsIdom(l,O,e.triggerRerender)};
P52=function(l,e){return(l=_.La2(l))?{mappingEntry:e[l],rendererName:l}:{mappingEntry:void 0,rendererName:void 0}};
YaM=function(l,e,O,E,J){if(!e)return _.W(_.ZB,null);var z={};J&&J[O]&&(z=Object.assign({},J[O]));l[O]!==void 0&&(z.data=l[O]);if(GtA(e))return e.debugName||(e.debugName=O),_.W(e,z);e.asyncId&&(E.pendingIdsMap=E.pendingIdsMap||{},E.pendingIdsMap[O]=e.asyncId);return e.templateFn?e.templateFn(z):UMp(e)?hvT():_.W(_.ZB,null)};
UMp=function(l){var e;return(e=l.showPlaceholder)!=null?e:KT().defaultShowPlaceholder};
hvT=function(){var l=KT().placeholder;return l()};
tex=function(l){l=_.I(l,_.Hi);return(l==null?void 0:l.iconName)&&!(l==null?0:l.title)};
Nlu=function(l,e,O){var E;return _.W(_.ZB,null,l==null?void 0:(E=l.actions)==null?void 0:E.map(function(J){return _.W("div",{class:function(){var z={"yt-flexible-actions-view-model-wiz__action":!0};z["yt-flexible-actions-view-model-wiz__action--row-action"]=e;z["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(tex(J))var M=!0;else if(M=_.I(J,_.ci),(M==null?0:M.isToggled)&&tex(M==null?void 0:M.toggledButtonViewModel)||(M==null||!M.isToggled)&&tex(M==null?void 0:M.defaultButtonViewModel))M=
!0;else{var Z;M=((Z=_.I(J,qaM))==null?0:Z.playlistId)?!0:!1}z=(z["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=M,z["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=O,z);return _.Ix(z)}},vjp([J],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!e}}))}))};
rvu=function(l){var e=l.layout===1,O,E=((O=l.data)==null?void 0:O.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";O={};E=(O["yt-flexible-actions-view-model-wiz"]=!0,O["yt-flexible-actions-view-model-wiz--inline"]=!e,O["yt-flexible-actions-view-model-wiz--scrollable"]=E,O);var J,z;return _.W("yt-flexible-actions-view-model",{class:_.Ix(l.className,E)},(J=l.data)==null?void 0:(z=J.actionsRows)==null?void 0:z.map(function(M){if(e){var Z;return _.W("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Nlu(M,e,!((Z=l.data)==null||!Z.respectActionIntrinsicWidth)))}return Nlu(M,e,!1)}))};
DMT=function(l,e){e=e===void 0?{shouldPersist:!0}:e;return{useUpdatableData:function(O,E){var J=[],z=_.b(_.jN(function(){var d=O();if(E!=null&&E.length&&J){var g=J.length>0;for(var w=!1,n=0;n<E.length;n++){var k=E[n]();g&&k!==J[n]&&(w=!0);J[n]=k}g=w}else g=!1;if(g)_.FZ.remove(u());else if(g=_.FZ.get(u()))return g;return d})),M=z.next().value,Z=z.next().value,u=_.mF(function(){return l(O())},void 0,"VFraLb");
_.Gh(function(){if(u()!=null){fT.set(u(),[M,Z,!1]);var d=u();_.B3(function(){fT.delete(d)})}},"Fdafud");
return[M,function(d){Z(d);e.shouldPersist&&_.FZ.set(u(),d)}]},
getData:function(O){var E;return(E=fT.get(l(O)))==null?void 0:E[0]()},
updateData:function(O,E){O=l(O);var J=fT.get(O);if(!J)return!1;var z=_.b(J);J=z.next().value;z=z.next().value;E=E(J());z(E);e.shouldPersist&&_.FZ.set(O,E);return!0},
useUpdatableDataIdom:function(O,E){var J=l(O),z=_.FZ.get(J),M=_.b(aK(z!=null?z:O)),Z=M.next().value,u=M.next().value,d=BK(z!=null?z:O);TQ(function(){if(J!=null)return fT.set(J,[function(){return d.value},
function(g){u(g);d.value=g},
fT.has(J)]),_.UD.addJob(function(){_.RK(_.UD,function(){var g=fT.get(J);g&&(g[2]=!1)},0)},8),function(){var g;
((g=fT.get(J))==null?0:g[2])||fT.delete(J)}},[J]);
TQ(function(){Z!==O&&(u(O),d.value=O)},E?[].concat(_.kA(E),[J]):[J]);
return[Z,u]}}};
Sat=function(l){var e=_.b(_.AF(!0,void 0,"bKtO6d")),O=e.next().value;e.next();return function(){var E=AT(l.children());return _.W(_.A,{cond:O,then:function(){return E},
else:l.fallback})}()};
_.Tn=function(l){var e=Q1p(l),O=e.data,E=e.mapping,J=e.wrapper;e=e.pendingFallback;var z=function(){return xMM(_.UB(O))},M=function(){var Z=z(),u=[];
Z=_.b(Z);for(var d=Z.next();!d.done;d=Z.next()){var g=void 0;d=d.value;var w=void 0;for(g in d)if(!(!d).hasOwnProperty(g)){w=g;break}(g=w)&&u.push(g)}return u};
return l.data?_.W(Sat,{fallback:e},function(){return _.W(_.KH,{each:M},function(Z,u){var d=J?function(w){return J(function(){return E[Z](w,u)},g,u)}:function(w){return E[Z](w,u)};
d.debugName||(d.debugName=String(Z));if(!E[String(Z)])return document.createComment("");var g=lx8(z,Z,u);return _.W(d,{data:g})})}):_.W(_.ZB,null)};
Q1p=function(l){var e=l.targetId||e8p(l.children);if(!l.data||!e||_.a("mweb_new_replaceables_killswitch"))return Object.assign({},l,{mapping:l.children,wrapper:void 0});var O="stamper-"+OfL++,E=function(){var Z;return(Z=_.UB(l.targetId))!=null?Z:O};
e=_.b(EYW(function(){var Z=xMM(l.data());Z.targetId=E;return Z})).next().value;
var J=Object.assign({},KT().replaceableMapping,l.children);if(l.replacementWrapper){var z=J.notificationTextRenderer,M=J.notificationMultiActionRenderer;z&&(J.notificationTextRenderer=function(Z,u){return l.replacementWrapper(z({data:Z.data},u))});
M&&(J.notificationMultiActionRenderer=function(Z,u){return l.replacementWrapper(M({data:Z.data},u))})}return Object.assign({},l,{data:e,
mapping:J,wrapper:function(Z,u,d){return i8M({targetId:E,stamperIndex:d},Z)}})};
lx8=function(l,e,O){var E;return _.mF(function(){var J=l()[O()];if(J)E=J[e];else return _.hG(new _.Hk("Stamper failed to find "+String(e)+" at index "+O()+" of data array of length "+(l().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),E;return J[e]},void 0,"Mp2Qkf")};
e8p=function(l){l=_.b(Object.keys(l));for(var e=l.next();!e.done;e=l.next())if(e=e.value,JEg.includes(e)||Xrd.includes(e)||z8V.includes(e))return!0;return!1};
xMM=function(l){return l?Array.isArray(l)?l:[l]:[]};
bf2=function(l){return!(l==null||!l.iconName||(l==null?0:l.title))};
Mwu=function(l){var e=_.I(l.data.toggleButtonViewModel,_.ci),O,E=(O=l.data.dislikeEntityKey)!=null?O:"",J=Ejx(tm,[E]);e=Object.assign({},e,{isToggled:J?J.likeStatus==="DISLIKE":e.isToggled});return _.W("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.W(_.sh,{data:e,buttonShapeOverrides:l.buttonShapeOverrideables,onToggle:function(z){J&&z!==(J.likeStatus==="DISLIKE")&&J.key&&_.Ot(_.Gn("likeStatusEntity",J.key,{likeStatus:z?"DISLIKE":"INDIFFERENT",hadUserInteraction:z}))}}))};
Zfp=function(l){var e=_.a("web_supports_animations_api"),O=_.I(l.data.toggleButtonViewModel,_.ci),E,J,z,M,Z=_.b(aK({numberText:(M=(E=l.likeCountEntity)==null?void 0:(J=E.likeCountIfIndifferent)==null?void 0:J.content)!=null?M:"",numberValue:Number((z=l.likeCountEntity)==null?void 0:z.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),u=Z.next().value,d=Z.next().value,g,w,n,k;E=_.b(aK({numberText:(k=(g=l.likeCountEntity)==null?void 0:(w=g.likeCountIfLiked)==null?void 0:w.content)!=null?
k:"",numberValue:Number((n=l.likeCountEntity)==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));g=E.next().value;var y=E.next().value;w=_.b(aK());var c=w.next().value,f=w.next().value,P;w=(P=l.data.likeStatusEntityKey)!=null?P:"";var h,N;P=(N=(h=l.likeCountEntity)==null?void 0:h.key)!=null?N:"";var t=Ejx(tm,[w]),r=Ejx(SZp,[P]);h=brt(function(){return(t==null?void 0:t.likeStatus)==="LIKE"},[t]);
TQ(function(){var D,b2=r&&((D=r.likeCountIfIndifferent)==null?void 0:D.content)!==u.numberText;if(!c&&b2){var $V,gT;d({numberText:(gT=r==null?void 0:($V=r.likeCountIfIndifferent)==null?void 0:$V.content)!=null?gT:"",numberValue:Number(r==null?void 0:r.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var mx,jM;y({numberText:(jM=r==null?void 0:(mx=r.likeCountIfLiked)==null?void 0:mx.content)!=null?jM:"",numberValue:Number(r==null?void 0:r.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[r]);
O=Object.assign({},O,{isToggled:h});e=e&&l.likeCountEntity;return _.W("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.W(_.sh,{data:O,buttonShapeOverrides:l.buttonShapeOverrideables,animatedTextPropsDefault:e?u:void 0,animatedTextPropsToggled:e?g:void 0,onToggle:function(D){Vwt(D,t,c,f)},
style:function(){return l.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
Vwt=function(l,e,O,E){O&&_.UD.cancelJob(O);O=_.UD.addLowPriorityJob(function(){E(void 0)},5E3);
E(O);e&&l!==(e.likeStatus==="LIKE")&&e.key&&_.Ot(_.IK("likeStatusEntity",e.key,{key:e.key,likeStatus:l?"LIKE":"INDIFFERENT",hadUserInteraction:l}))};
uyA=function(l,e,O,E){O&&_.UD.cancelJob(O);O=_.UD.addLowPriorityJob(function(){E(void 0)},5E3);
E(O);e&&l!==(e.likeStatus==="LIKE")&&e.key&&_.Ot(_.IK("likeStatusEntity",e.key,{key:e.key,likeStatus:l?"LIKE":"INDIFFERENT",hadUserInteraction:l}))};
$Q2=function(l){var e,O=_.I((e=l.data)==null?void 0:e.likeButtonViewModel,_.Bi),E;e=_.I((E=l.data)==null?void 0:E.dislikeButtonViewModel,_.Pi);var J,z=(J=Ejx(tm,[(O==null?void 0:O.likeStatusEntityKey)||""]))!=null?J:O==null?void 0:O.likeStatusEntity;E=brt(function(){var M=l.data,Z;M=(M==null?void 0:(Z=M.timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:"like-dislike",timings:M,enabled:(z==null?void 0:z.likeStatus)==="INDIFFERENT"&&M.length>0,experimentEnabled:M.length>0}},[l.data,
z]);return _.W("segmented-like-dislike-button-view-model",{class:_.Ix(l.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.W(Uh,{settings:E},_.W("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},O?_.W(C92,{data:O,likeCountEntity:l.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,e?_.W(oYt,{data:e,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Wp2=function(l,e){var O=X$.get(l)||{layerNode:e};O.layerNode=e;jFt(l,O);l.getScreenLayer=function(){return YD(O.layerNode)}};
dQx=function(l){var e;l=l.parentNode;for(var O;l&&((e=X$.get(l))==null||!e.isRenderer)&&!((O=l.polymerController)!=null?O:l).isRenderer_;)l=l.parentNode||l.host;if(e=l)return X$.get(e)};
gYx=function(l){if(l){X$.delete(l);var e=_.V2().resolve(MY);pNL(l,e)}};
wrx=function(l,e,O){if(O===void 0?0:O){if(O=l.getAttribute("client-ve-type"),e.data&&!e.disableReactiveLogging||O)_.Yo(function(){ifd(l,_.UB(e.data))}),_.B3(function(){return void gYx(l)})}else typeof e.data!=="function"&&ifd(l,e.data)};
ifd=function(l,e){AEA++;nYd(l,e)&&_.UD.addJob(function(){_.RK(_.UD,function(){if(nYd(l,e)&&l.ownerDocument.documentElement===document.documentElement&&l){var O;if(l.getAttribute("layer")){var E=O=Number(l.getAttribute("layer")),J=X$.get(l);J?J.layerNode.layer=E:Wp2(l,new ax8(E));(E=dQx(l))&&(J=X$.get(l))!=null&&(J.layerNode.parent=E.layerNode)}else if(O=X$.get(l))O=YD(O.layerNode);else{O=YD;E=new ax8;if(J=dQx(l))E.parent=J.layerNode;Wp2(l,E);O=O(E)}O!=null||(O=0);E=l.getAttribute("client-ve-type");
J=Number(E);var z=!1;E=!1;var M=X$.get(l),Z;if((Z=M)&&!(Z=M[koT]!==e)&&(Z=J)){var u;Z=((u=X$.get(l))==null?void 0:u.clientVeType)===void 0}Z&&(M[koT]=e,z=E=M.isRenderer=!0);X$.has(l)&&(X$.get(l).clientVeType=J);l.visualElement&&(E=!0);if(_.a("wiz_next_ld_fix_client_ve_spec")){var d;u=((d=_.I(e==null?void 0:e.rendererContext,_.p4))==null?void 0:d.loggingDirectives)||(e==null?void 0:e.loggingDirectives)}else u=e==null?void 0:e.loggingDirectives;u&&u.clientVeSpec&&(d=IxV(_.IX(),l),d=_.mQx(_.yN(),u,d||
void 0,O))&&(l.visualElement=d);!l.visualElement&&J&&z&&(l.veType=J,d=void 0,_.a("wiz_next_client_ve_parent_fix")&&(d=IxV(_.IX(),l)),d=_.mX(_.yN(),l,d,O),l.visualElement=d);E&&(d=_.V2().resolve(MY),cUg(l,{data:e,observer:d,layer:O,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
nYd=function(l,e){return(e==null?0:e.trackingParams)||(e==null?0:e.loggingDirectives)||_.I(e==null?void 0:e.rendererContext,_.p4)||l.getAttribute("client-ve-type")?!0:!1};
prM=function(l){return _.a("cow_logging_in_component_wrapper")?function(e){wrx(e,l,!0)}:yEV};
yEV=function(){};
_.Kpq=function(l,e){return _.wV(l.entities,"accountLinkStatusEntity",e)};
jbV=function(l,e){return _.wV(l.entities,"hatsSurveyEntity",e)};
Hf2=function(l,e){return _.wV(l.entities,"hatsSurveyStateEntity",e)};
cET=function(l,e){return _.wV(l.entities,"quantityIncrementerEntity",e)};
sbT=function(l){var e=l.data;var O=l.className===void 0?"":l.className;var E=l.setMinWidth;l=l.forceIconOnly;var J=_.e4("account-link-button-view-model",prM({data:e}));E=E?"ytwAccountLinkButtonViewModelHostMinWidth":"";var z=_.kD(_.Kpq,function(){var w;return(w=_.UB(e).accountLinkStatusEntityKey)!=null?w:""}),M=_.kD(_.Kpq,function(){var w;
return(w=_.UB(e).accountLinkStatusSecondaryEntityKey)!=null?w:""}),Z=function(){if(!_.a("web_account_link_secondary_killswitch")){var w,n;
return((w=z())==null?void 0:w.linked)||((n=M())==null?void 0:n.linked)}var k;return(k=z())==null?void 0:k.linked};
_.Gh(function(){var w=z();if(w){var n=Fpu(new fxu,R8d(new TwA,!!w.linked));_.dC().then(function(k){k&&(k.setAccountLinkState(_.x4(n.JSC$10108_serializeBinary(),4)),k.updateAccountLinkingConfig(!!w.linked))})}},"lLLHt");
var u=function(){return _.I(_.UB(e).toggleButtonViewModel,_.ci)};
_.lg("yt-signal-action-show-account-link-dialog",function(){if(u()){var w=Z()?u().toggledButtonViewModel:u().defaultButtonViewModel;w=_.I(w,_.Hi);var n;if((n=z())==null?0:n.isWarning){n=_.I(_.UB(e).warningButtonViewModel,_.Hi);if(!n){_.Nz(Error("Ah"));return}w=n}var k;(n=_.t3((k=w)==null?void 0:k.onTap))&&_.ap([n],J.value)}else _.Nz(Error("Bh"))});
var d=function(){var w=u();return Object.assign({},w,{isToggled:Z()})},g=l?{iconPosition:"icon-only"}:{};
return _.W("account-link-button-view-model",{class:_.ax("ytwAccountLinkButtonViewModelHost",function(){return _.UB(O)},E),
el:J,"button-renderer":!0},_.W("div",null,_.W(_.A,{cond:function(){var w;if((w=z())==null?0:w.isWarning)return(w=_.I(_.UB(e).warningButtonViewModel,_.Hi))||_.Nz(Error("Ah")),w},
then:function(w){return _.W(_.hM,{data:w,buttonOverrides:g})},
else:function(){return _.W(_.sh,{data:d,buttonShapeOverrides:g})}})))};
Got=function(l){switch(l){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
Bwd=function(l){switch(l){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}};
P9M=function(l){switch(l){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.YXt=function(l){var e=_.Cv("web_generic_client_event_wait_period ",0);e||(e=3E5);var O=UQA.get(l);!_.a("enable_web_client_experiment_event_timeout_killswitch")&&O&&(0,_.VZ)()-O<e||(UQA.set(l,(0,_.VZ)()),_.Bm("genericClientExperimentEvent",{eventType:l}))};
h8t=function(l){switch(l){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
Lp8=function(l){if(!l)return"";var e,O=(e=_.V2().resolve(_.MG(_.lp)))==null?void 0:e(),E;if(!O&&((E=l.vibrantColorPalette)==null?0:E.iconInactiveColor))return vc(l.vibrantColorPalette.iconInactiveColor,"1");var J;return O&&((J=l.darkColorPalette)==null?0:J.iconInactiveColor)?vc(l.darkColorPalette.iconInactiveColor,"1"):l.color?vc(l.color,"1"):l.sampledThumbnailColor?(l=l.sampledThumbnailColor,"rgba("+l.red+","+l.green+","+l.blue+");"):""};
_.LT=function(l,e){if(!l.includes("DATE_PLACEHOLDER"))return l;var O=new Date(0);O.setUTCSeconds(e);return l.replace("DATE_PLACEHOLDER",twt(O))};
_.tM=function(l){return l!=null&&l.watch?l.watch.isTheaterMode:!1};
_.qc=function(l){return l!=null&&l.watch?l.watch.isWatchFullscreen:!1};
_.vi=function(l){l=_.qXx(l);return _.a("web_watch_enable_single_column_grid_view")?l:!1};
_.qXx=function(l){return l.watch.isWatchNarrowWidth};
vY8=function(l,e,O){return function(E){var J=l.command;J&&(Tk(J,{form:{element:O}}),e([J],E))}};
rEx=function(l,e,O,E,J){return function(z){var M=Nw8(l,O);M&&Tk(M,{form:{element:E},commandController:J});e&&e.stopPropagation&&z.stopPropagation()}};
Nw8=function(l,e){if(l.signInEndpoint&&!_.a("web_subscribe_sign_in_endpoint_killswitch"))return l.signInEndpoint;if(e){if(l.serviceEndpoints)return l.serviceEndpoints[1];if(l.onUnsubscribeEndpoints)return l.onUnsubscribeEndpoints[0]}else{if(l.serviceEndpoints)return l.serviceEndpoints[0];if(l.onSubscribeEndpoints)return l.onSubscribeEndpoints[0]}};
DQt=function(l,e){var O,E,J,z;e=e&&((O=l.unsubscribeAccessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label)||((J=l.subscribeAccessibility)==null?void 0:(z=J.accessibilityData)==null?void 0:z.label);return l.longSubscriberCountText?[e,_.lG(l.longSubscriberCountText)].filter(function(M){return M}).join(" "):e};
Nc=function(l,e){return e||(l==null?0:l.isChannelDelegate)?"disabled":"active"};
SXp=function(l,e){var O;switch((O=l.style)==null?void 0:O.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Nc(l)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Nc(l)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Nc(l,!0)};case "OVERLAY":return e?{style:"overlay",type:"tonal",state:Nc(l)}:{style:"overlay",type:"filled",state:Nc(l)};default:return e?{style:"mono",type:"tonal",state:Nc(l)}:{style:"mono",type:"filled",state:Nc(l)}}};
Qbp=function(l){switch(l){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
xQp=function(l){switch(l){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
lvp=function(l,e){var O=l.map(function(E){return E.toString()});
return _.pd(function(E){if(O.includes(E.key)){e&&E.preventDefault();var J;(J=E.currentTarget)==null||J.click()}})};
_.erW=function(){return lvp(["Enter"])};
_.OtA=function(){return lvp(["Enter"," "],!0)};
_.rC=function(l){if(l.composedPath)return l.composedPath();if(!l.__composedPath){for(var e=[],O=l.target;O;)e.push(O),O=O.parentNode;e.push(window);l.__composedPath=e}return l.__composedPath};
_.DP=function(l,e,O){l=_.b(l);for(var E=l.next();!E.done;E=l.next()){E=E.value;if(E===e)break;for(var J=_.b(O),z=J.next();!z.done;z=J.next())if(z=z.value,E.tagName===z||E.role==="button"&&z==="BUTTON")return!0}return!1};
JjV=function(l,e){var O,E=(O=e.observer)!=null?O:_.V2().resolve(MY);if(l){O=E9g(l);var J=[];e.showOption&&J.push(E.observe(l,function(){e.visibilityCallback(!0)},e.showOption));
e.hideOption&&J.push(E.observe(l,function(){e.visibilityCallback(!1)},e.hideOption));
e.prescanOption&&e.prescanCallback&&J.push(E.observe(l,function(){e.prescanCallback()},e.prescanOption));
var z;O.visibilityMonitorKeys=((z=O.visibilityMonitorKeys)!=null?z:[]).concat(J)}};
E9g=function(l){var e;return(e=l.polymerController)!=null?e:l};
_.Qz=function(l){return!!_.Sp(l)};
_.btx=function(l,e){var O=wjt();TQ(function(){var E=l.value;if(E)return X_x(E,e),zru(E,e,void 0,void 0,void 0,O)},[e])};
_.xD=function(l,e,O,E,J,z){var M=wjt();_.Gh(function(){var Z=l.value;Z&&(X_x(Z,e(),z),Z=zru(Z,e(),O,E,J,M),_.B3(Z))},"GXtnHd")};
X_x=function(l,e,O){var E=MXx(e),J=VXV(e);e=E&&Ztx;var z=J&&ugt;(E||J)&&JjV(l,{visibilityCallback:function(M){var Z=_.V2().resolve(_.Zh);M&&E?Z.resolveCommand(E,{form:{element:O?l:void 0},disableClickTracking:!0}):!M&&J&&Z.resolveCommand(J,{form:{element:O?l:void 0},disableClickTracking:!0})},
showOption:e,hideOption:z})};
zru=function(l,e,O,E,J,z){var M=new Map;if(e=_.Sp(e)){var Z;l=(E==null?void 0:(Z=E.onTap)==null?void 0:Z.value)||l;O=CUV(e,l,O==null?void 0:O.onTap,J,z);l.addEventListener("click",O);M.set("click",O)}return function(){for(var u=_.b(M),d=u.next();!d.done;d=u.next()){var g=_.b(d.value);d=g.next().value;g=g.next().value;l.removeEventListener(d,g)}}};
_.Sp=function(l){var e;return(l=(e=_.I(l,o98))==null?void 0:e.onTap)&&_.t3(l)};
MXx=function(l){var e;return(l=(e=_.I(l,o98))==null?void 0:e.onVisible)&&_.t3(l)};
VXV=function(l){var e;return(l=(e=_.I(l,o98))==null?void 0:e.onHidden)&&_.t3(l)};
CUV=function(l,e,O,E,J){var z=function(Z){_.V2().resolve(_.Zh).resolveCommand(l,Z)},M=function(Z){E&&_.DP(_.rC(Z),e,E)||z(Z.target?{form:{element:Z.target,
sourceData:l,mutationContext:J}}:void 0)};
O&&(M=function(Z){O(Z,z)});
return M};
$XW=function(l){switch(l){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}};
Wjx=function(l){var e=l.numAvatarsInCluster;switch(l.clusterSize){case "small":return e===2?22:18;case "40":return e===2?24:22;default:return e===2?24:20}};
dXt=function(l,e){return function(O){var E=Object.keys(e);_.Gh(function(){if(l()){for(var J=_.b(E),z=J.next();!z.done;z=J.next())z=z.value,O.addEventListener(z,e[z]);_.B3(function(){for(var M=_.b(E),Z=M.next();!Z.done;Z=M.next())Z=Z.value,O.removeEventListener(Z,e[Z])})}},"bXZGfe")}};
g9q=function(l){switch(Wjx(l)){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""}};
it2=function(l){switch(l){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""}};
w_t=function(l){switch(Wjx(l)){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""}};
Ajt=function(l){switch(l){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""}};
n9p=function(l){switch(l){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}};
avx=function(l){return l==="medium"||l==="48"||l==="large"||l==="extra-large"||l==="extra-extra-large"||l==="giant"};
kfp=function(l){return!!((l==null?0:l.includes(3))||(l==null?0:l.includes(5)))};
mXg=function(l){return{size:Ivu(l.data.avatarImageSize),onTap:l.onTap,decorations:l.decorations||[],badgeText:l.badgeText,accessibilityText:l.accessibilityText,avatarButtonCustomClassName:l.avatarButtonCustomClassName,clusterLayoutConfig:l.clusterLayoutConfig}};
Ivu=function(l){switch(l){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"}};
yj8=function(l){switch(l){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}};
p_T=function(l){switch(l){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
KjA=function(l){var e=l.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",O,E=l.avatars&&l.avatars.length>0?(O=_.I(l.avatars[0],_.l3))==null?void 0:O.avatarImageSize:"AVATAR_SIZE_UNKNOWN";O=yj8(E)||0;if(e){var J,z=(J=l.avatarClusterSize)!=null?J:"AVATAR_SIZE_M";e=yj8(z);var M,Z,u=Math.min((Z=(M=l.avatars)==null?void 0:M.length)!=null?Z:0,4),d;return{avatars:((d=l.avatars)==null?void 0:d.slice(0,4))||[],avatarSizeInPx:O,avatarStackStyle:{width:e+"px",height:e+"px",position:"relative"},avatarStyle:function(w){var n=
Wjx({clusterSize:Ivu(z),numAvatarsInCluster:u,avatarIndex:w});var k=yj8(z);u===3&&w===2?(k=(k-n)/2,k=(_.hT("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*k):k=void 0;return{position:"absolute",top:u===2&&w===1||u===3&&w===2||u===4&&w>=2?"0":void 0,bottom:u===2&&w===0||u>2&&w<2?"0":void 0,left:u===2&&w===1||u>2&&(w===1||w===3)?"0":void 0,right:u<=3&&w===0||u===4&&(w===0||w===2)?"0":void 0,transform:k?"translateX("+k+"px)":void 0,width:n+"px",height:n+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(w){return{clusterSize:Ivu(l.avatarClusterSize),numAvatarsInCluster:u,avatarIndex:w}},
avatarButtonCustomClassName:void 0}}var g;return{avatars:((g=l.avatars)==null?void 0:g.slice())||[],avatarSizeInPx:O,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:p_T(E),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
jht=function(l,e,O){return function(){Tk(l,{form:{element:e},commandController:O})}};
HtM=function(l){switch(l){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
cj2=function(l){switch(l){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
Fj8=function(l){var e=l.data;l=l.hidden===void 0?!1:l.hidden;var O={};l={class:_.Ix("yt-page-indicator-view-model",(O["yt-page-indicator-view-model__indicator--hidden"]=!e.indicatorCount,O)),hidden:l};if(e.indicatorCount){O=[];for(var E=0;E<e.indicatorCount;E++){var J={};J=_.Ix("yt-page-indicator-view-model__indicator",(J["yt-page-indicator-view-model__indicator--selected"]=e.selectedIndex===E,J));O.push(_.W("div",{class:J}))}e=_.W(_.ZB,null,O)}else e=_.W(_.ZB,null);return _.W("yt-page-indicator-view-model",
l,e)};
Rrq=function(l){l&&(fvq(l)?delete l.inlinePlayerData:"inlinePlaybackEndpoint"in l&&delete l.inlinePlaybackEndpoint)};
Tjd=function(l){if("accessibilityText"in l)return l.accessibilityText||"";if("title"in l){var e,O,E;return((e=l.title)==null?void 0:(O=e.accessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label)||""}if("accessibility"in l){var J,z;return((J=l.accessibility)==null?void 0:(z=J.accessibilityData)==null?void 0:z.label)||""}return""};
fvq=function(l){return"inlinePlayerData"in l};
eA=function(l){return new shx(l)};
_.GfM=function(l,e,O,E,J,z){var M=function(d){d.preventDefault()},Z=function(){var d=l.value;
if(d)return(d._data=e)?(d.addEventListener("touchstart",nyp,{passive:!0}),d.addEventListener("click",k$g),e.clickTrackingParams&&(d.params={itct:e.clickTrackingParams}),Ijq(d,e),yS(d,mp8(e)||"")):d.addEventListener("click",M),function(){e?(d.removeEventListener("touchstart",nyp,{passive:!0}),d.removeEventListener("click",k$g)):d.removeEventListener("click",M)}},u=function(){var d=l.value;
if(d){var g=_.vf({innertubeCommand:e,elementsCommand:O,forceNewState:E,stopPropagation:z});if(g)return d._data=g._data,g["aria-haspopup$"]&&d.setAttribute("aria-haspopup",g["aria-haspopup$"].toString()),g["force-new-state$"]&&d.setAttribute("force-new-state",g["force-new-state$"].toString()),g.href$&&yS(d,g.href$),g.rel$&&(d.rel=g.rel$),g.role$&&d.setAttribute("role",g.role$),g.target$&&(d.target=g.target$),d.params=g.params,g.onclick&&d.addEventListener("click",g.onclick),g.onpointerdown&&d.addEventListener("onpointerdown",
g.onpointerdown),function(){g.onclick&&d.removeEventListener("click",g.onclick);g.onpointerdown&&d.removeEventListener("onpointerdown",g.onpointerdown)}}};
TQ(J?u:Z,[e,O])};
BjM=function(l){var e=l.children;var O=l.className;var E=l.dir;var J=l.style;var z=l.role;var M=l.ariaSelected;var Z=l.ariaLabel;var u=l.ariaHidden;var d=l.ariaLabelledby;var g=l.ariaDescribedby;var w=l.command;var n=l.elementsCommand;var k=l.forceNewState;var y=l.isPlaceholder;var c=l.tabIdentifier;var f=l.target;var P=l.tabIndex;var h=l.useATagConfig;var N=l.stopPropagation;l=_.e4("a");_.GfM(l,w,n,k,h,N);return _.W("a",{el:l,"on:click":_.pd(function(){return N===!1}),
class:O,style:J,dir:E,role:z?z:w?void 0:"group","aria-hidden":u?!0:void 0,"aria-label":Z,"aria-labelledby":d,"aria-describedby":g,"aria-selected":M,tabindex:P!==void 0?P:void 0,target:f,"tab-identifier":c,"force-new-state":k?!0:void 0,"is-placeholder":y?!0:void 0},e)};
PUq=function(l){var e=l.data;l=_.pd(function(){var J=_.I(e.onTap,_.L4);J&&_.V2().resolve(_.Zh).resolveCommand(J);return!1});
var O={sources:[{url:e.thumbnailUrl,width:120,height:90}]},E=e.rating&&e.ratingA11yLabel&&e.reviewsCount&&e.reviewsCountA11yLabel;return _.W("place-data-view-model",null,e.placeName&&e.placeCategory?_.W("div",{class:"yt-spec-place-data-view-model-shape","on:click":l},_.W(_.Jm,{data:O,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.W(BjM,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.I(e.onTap,_.L4),forceNewState:!0,useATagConfig:!0},
_.W("h3",{class:"yt-spec-place-data-view-model-shape__name",title:e.placeName},e.placeName)),_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata"},E?_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.W("span",{class:"score",title:e.ratingA11yLabel},e.rating),_.W("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.W(_.cF,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.W("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:e.reviewsCountA11yLabel},e.reviewsCount)):_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.W("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.W("span",{class:"category",title:e.placeCategory},e.placeCategory)))):null)};
UXx=function(l){return function(e){l&&(l.thumbnailElRef=e.thumbnailElRef,l.thumbnail=e.thumbnail,l.thumbnailOverlays=e.thumbnailOverlays,l.thumbnailSize=e.thumbnailSize)}};
YJg=function(l){var e;return(e=l.sharedUi)==null?void 0:e.animatedThumbnailEnabled};
hrV=function(l){var e;return(e=l.sharedUi)==null?void 0:e.inlinePreviewEnabled};
_.LjM=function(l){var e;return(e=l.sharedUi)==null?void 0:e.currentPageSubType};
tXM=function(l){switch(l){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
NjL=function(l){var e=_.b(_.AF(!1,void 0,"RIOonf")),O=e.next().value,E=e.next().value;_.sC(function(){var J=l==null?void 0:l();if(J){var z=_.V2().resolve(_.MG(qJV));if(z){var M={triggeringElement:J,onDwellTriggeredFn:function(){E(!0)},
onDwellEndFn:function(){E(!1)}};
z.registerElement(M);_.B3(function(){v9V(z,M)})}}});
return O};
rj8=function(l,e,O){O?O(e):_.r6(e,l.target?{form:{element:l.target}}:void 0)};
_.O6=function(l,e,O,E){_.Gh(function(){var J=l.value;if(J){var z=new Map,M,Z=(M=e())==null?void 0:M.onTap;Z&&(M=function(u){a:{var d=u.composedPath();d=_.b(d);for(var g=d.next();!g.done;g=d.next()){g=g.value;if(g===J)break;if(g.className.indexOf("HostIsClickableAdComponent")>=0||g.tagName==="A".toString()||g.tagName==="BUTTON".toString()){d=!0;break a}}d=!1}d||rj8(u,Z,O)},(E==null?0:E())||_.a("enable_web_home_top_landscape_image_layout_level_click")?(J.addEventListener("tap",M),z.set("tap",M)):(J.addEventListener("click",
M),z.set("click",M)));
_.B3(function(){for(var u=_.b(z),d=u.next();!d.done;d=u.next()){var g=_.b(d.value);d=g.next().value;g=g.next().value;J.removeEventListener(d,g)}})}},"g9MHN")};
DXV=function(l,e){var O,E=(O=l.interaction)==null?void 0:O.onTap;if(l=_.vf({elementsCommand:E,forceNewState:!0,skipOnClick:!0}))return l.onclick=function(J){gyW(J)&&(J.preventDefault(),E&&rj8(J,E,e))},NT(l)?l:void 0};
SJx=function(l){switch(l){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Qhp=function(l){switch(l){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"}};
xXd=function(l){switch(l){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"}};
_.lQu=function(l){return _.a("rich_grid_enable_dynamic_offset")&&l?Math.max(Math.round((l-_.Cv("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Cv("rich_grid_dynamic_offset_offset_per_100",10)),_.Cv("rich_grid_dynamic_offset_lower_bound",-60)):0};
eYA=function(l,e){switch(e){case 4:return 16;case 1:return l<528?16:l<1024?32:48;case 2:return(l>=528?16:8)/2;case 3:return(l<528?16:l<1024?32:48)+(l>=528?16:8)/2;default:return 0}};
Ojq=function(l){var e=l.originalContainerWidth;var O=l.sizing;var E=l.standardUnit;if(l.isCompactList&&e<528)return 1;switch(O){case "STANDARD":return E;case "COMPACT":return E+1;case "EXTRA_COMPACT":return _.a("web_responsive_extra_compact_2x")?E*2:_.a("web_responsive_current")?E===1?2:E%2===0?E/2*3:E+2:E<4?E*2:Math.ceil(E*3/2);case "MINI":return E>1?E*2:3;default:return E}};
Jt8=function(l){var e=l.containerWidth;var O=l.peek;var E=l.gutter;var J=l.numItems;l=l.ignoreMaxWidthLimit;e=O?Math.max((e-O-E*J)/J,0):Math.max((e-E*(J-1))/J,0);return l?e:Math.min(e,Erq)};
_.E6=function(l){var e=l.containerWidth;var O=l.hasPeek;var E=l.sizing;var J=l.marginSettings;var z=l.isCompactList;var M=l.enableFullBleedForSingleCol;var Z=l.standardUnitMinWidth;E=E||"STANDARD";O=!!O;l=e>=528?16:8;var u=O?e>=528?48:24:0;J=eYA(e,J);var d=Math.max(e-J*2,0);Z=_.a("kevlar_disable_min_width_override")?void 0:Z;Z=Math.min(Math.max(Math.floor((d-u+l)/((Z!=null?Z:XUx)+_.lQu(e)+l)),1),6);var g=(M=!!M&&Z===1)||Z===1&&E!=="STANDARD";O=O||g?d:Math.min(d,(Erq+l)*Z-l);E=Ojq({originalContainerWidth:e,
sizing:E,standardUnit:Z,isCompactList:z});return{itemWidth:Jt8({containerWidth:O,peek:u,gutter:l,numItems:E,ignoreMaxWidthLimit:g}),gutter:l,maxContainerWidth:O,numItems:E,margin:M?0:J,contentMargin:eYA(e,1),typographyBump:Jt8({containerWidth:O,peek:u,gutter:l,numItems:Z,ignoreMaxWidthLimit:g})>400&&!(z&&e<528),standardUnit:Z}};
zYq=function(l){switch(l){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.bjT=function(l){if(l){var e;if((e=l.responsiveContainerConfiguration)==null?0:e.responsiveSize)return zYq(l.responsiveContainerConfiguration.responsiveSize);if(l.layoutSizing)switch(l.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"}}};
MI2=function(l){if(l.fullbleed)return 1;switch(l.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
C7t=function(l,e,O,E,J,z,M,Z){a:switch(l){case 4:z=!!(z&&z<100);break a;default:z=!1}a:switch(l){case 3:case 4:var u=E==="LOCKUP_CONTENT_TYPE_CHANNEL"||E==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:u=!1}a:switch(l){case 5:var d=!0;break a;case 4:d=!1;break a;default:d=!1}a:if(l===4&&E==="LOCKUP_CONTENT_TYPE_SOURCE")var g=1;else switch(l){case 3:g=1;break a;default:g=0}return{isOverlay:d,isCard:VI8(E,M),sizing:e!=null?e:"STANDARD",typographyBump:O!=null?O:!1,isTiny:z,isCentered:u,isCollection:Zju(E),
arrangement:g,addMarginForFullbleed:l===1&&E!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:l===1&&E==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:uAL(E,J,Z),disableRounding:l===5||VI8(E,M)||l===1&&E==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Zju(E)?2:0,useLegacyTypography:!(Z==null||!Z.useLegacyTypography),useRichGridLegacyTypography:!(Z==null||!Z.useRichGridLegacyTypography)&&!_.a("web_enable_typography_bump")}};
Zju=function(l){switch(l){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
VI8=function(l,e){if(e&&l==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(l){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
uAL=function(l,e,O){if(e&&(O==null||!O.alwaysRespectPodcastShowAspectRatio||l!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(l){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}};
orT=function(l){switch(l){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"}};
dP2=function(l,e,O){a:switch(l.badgeStyle){case "BADGE_OVERLAY":var E=!0;break a;default:E=!1}return{type:e?16:$PT(l.badgeStyle),brNzRatingBadgeType:WEA(l.badgeStyle),text:l.badgeText,icon:l.iconName,isOverlay:E,modern:O||_.a("web_modern_badge_view_model"),accessibilityText:l.accessibilityLabel}};
$PT=function(l){switch(l){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
WEA=function(l){switch(l){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}};
ijd=function(l){var e=l.data?dP2(l.data,!!l.workaroundShortsIsThumbnailBadge,l.modern):void 0;return _.W("yt-badge-view-model",{class:_.Ix("yt-badge-view-model-wiz",l.class)},OB(e==null?void 0:e.brNzRatingBadgeType,function(){return _.W(grd,{data:e})}),OB(e&&!e.brNzRatingBadgeType,function(){return _.W(_.Je,{data:e})}))};
_.XL=function(l){if(l){var e;return((e=_.V2().resolve(_.MG(_.lp)))==null?0:e())?l.darkThemeImage:l.image}};
nrd=function(l,e,O,E,J,z){if(J&&z&&e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:J,height:z};if(!O)return{};J=O.size;O=O.allowFullWidth;if(e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&O)return{fullWidth:!0};if(J===void 0)return{};switch(l){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:J,height:J};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:J,height:1/wUt*J};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:J*
Att,height:J};default:return(E==null?0:E.height)&&(E==null?0:E.width)?E.width/E.height>1?{maxWidth:J*Att}:{maxWidth:J}:{maxWidth:J}}};
aQx=function(l){var e;return l&&((e=_.XL(l.themedImage))!=null?e:l.image)};
kFp=function(l){var e;return l==null?void 0:(e=l.sources)==null?void 0:e[0]};
mPV=function(l,e){var O,E;return!!((l==null?0:(O=l.byline)==null?0:O.hideAvatar)&&((E=_.I(e,IQW))==null?void 0:E.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
ytu=function(l,e){var O,E;return!!((l==null?0:(O=l.byline)==null?0:O.addPadding)&&((E=_.I(e,IQW))==null?void 0:E.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
pU8=function(l,e,O,E){var J={},z=(J["yt-content-metadata-view-model-wiz__delimiter"]=!0,J["yt-content-metadata-view-model-wiz__delimiter--standalone"]=E,J);return OB(e-1>O,function(){return _.W("span",{class:_.Ix(z),"aria-hidden":!0},l)})};
jSx=function(l,e){return _.W(_.zK,{text:l.text,linkInheritColor:!0,className:KEu(e),userInput:!0})};
ctx=function(l){var e=l.metadataPart;var O=l.isOverlay;var E=l.useMediumText;var J=l.hideAvatar;var z=1;e.maxLines!==void 0&&(z=e.maxLines);return _.W(_.ZB,null,OB(e.avatarStack,function(){return Hjq(e.avatarStack,{avatarStackViewModel:{isOverlay:O,useMediumText:E,hideAvatar:J}})}),OB(e.text,function(){var M=z;
return _.W(_.ZB,null,e.tooltip?_.W("span",{title:e.tooltip,role:"tooltip"},jSx(e,M)):jSx(e,M))}))};
KEu=function(l){switch(l){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
FEx=function(l){var e=l.metadataRow;var O=l.isInline;var E=l.delimiter;var J=l.isOverlay;var z=l.useMediumText;var M=l.extensions;var Z=mPV(M==null?void 0:M.lockupMetadata,e);l=ytu(M==null?void 0:M.lockupMetadata,e);M=!(!((M==null?0:M.lockupMetadata)&&e.badges)||e.metadataParts);var u={};l=(u["yt-content-metadata-view-model-wiz__metadata-row"]=!0,u["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=O,u["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
l,u["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=M,u);var d,g;return _.W("div",{class:_.Ix(l)},(d=e.badges)==null?void 0:d.map(function(w){return _.W("div",{class:"yt-content-metadata-view-model-wiz__badge"},Hjq(w))}),(g=e.metadataParts)==null?void 0:g.map(function(w,n){return _.W(_.ZB,null,ctx({metadataPart:w,
isOverlay:J,useMediumText:z,hideAvatar:Z}),pU8(E,e.metadataParts.length,n,!1))}),OB(e.isSpacerRow&&!O,function(){return _.W("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
fQu=function(l){var e=l.className;var O=l.data;var E=l.layout===void 0?0:l.layout;var J=l.isOverlay===void 0?!1:l.isOverlay;var z=l.useMediumText;var M=l.extensions;l=_.e4("yt-content-metadata-view-model");var Z=E===0;E={};E=(E["yt-content-metadata-view-model-wiz"]=!0,E["yt-content-metadata-view-model-wiz--inline"]=Z,E["yt-content-metadata-view-model-wiz--tappable"]=_.Qz(O.rendererContext),E["yt-content-metadata-view-model-wiz--medium-text"]=z,E);_.btx(l,O.rendererContext);return _.W("yt-content-metadata-view-model",
{class:_.Ix(e,E),el:l},OB(O.metadataRows,function(){return O.metadataRows.map(function(u,d){return _.W(_.ZB,null,FEx({metadataRow:u,isInline:Z,delimiter:O.delimiter,isOverlay:J,useMediumText:z,extensions:M}),OB(Z&&!u.isSpacerRow,function(){return pU8(O.delimiter,O.metadataRows.length,d,!0)}))})}))};
RYp=function(l){switch(l){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
TB2=function(l){switch(l.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"}}};
sSp=function(l){var e=_.LjM(_.ls().getState())||"";return l?l+e:""};
GFd=function(l){switch(l){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
P7p=function(l){var e=_.b(_.AF(void 0,void 0,"BIquNb")),O=e.next().value,E=e.next().value,J=_.b(_.AF(void 0,void 0,"eR0GH"));e=J.next().value;var z=J.next().value;J=_.b(_.AF(void 0,void 0,"UmkP0"));var M=J.next().value,Z=J.next().value;return{touchFeedbackEvents:{pointerUpEvent:O,pointerDownEvent:e,pointerLeaveEvent:M},touchFeedbackOnPointerUp:_.pd(function(u){if(BBL(_.rC(u)))return!1;E(u);z(void 0);Z(void 0);return!0}),
touchFeedbackOnPointerDown:_.pd(function(u){l==null||l(u);if(BBL(_.rC(u)))return!1;z(u);E(void 0);Z(void 0);return!0}),
touchFeedbackOnPointerLeave:_.pd(function(u){BBL(_.rC(u))||(Z(u),z(void 0),E(void 0))})}};
BBL=function(l){var e=["BUTTON".toString()];l=_.b(l);for(var O=l.next();!O.done;O=l.next()){O=O.value;for(var E=_.b(e),J=E.next();!J.done;J=E.next())if(O.tagName===J.value)return!0}return!1};
UPx=function(l){switch(l){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"}};
Y4d=function(l){return l.scrollHeight-l.offsetHeight>1};
hYx=function(l,e){var O;return x0(l,((O=l.content)==null?void 0:O.length)||0,!e)};
LET=function(l,e){e=hYx(l,e);var O,E;return(((O=l.content)==null?void 0:O.length)||0)>(((E=e.content)==null?void 0:E.length)||0)};
vrx=function(l,e,O,E,J,z){if(!e||tIL){var M;return x0(l,((M=l.content)==null?void 0:M.length)||0,!0)}e=E.value;if(!O.value||!e||!l.content)return l;O=0;E=l.content.length;M=0;q4T||(q4T=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var Z=q4T;for(J=J*z*Z;O<=E;)z=Math.floor(O+(E-O)/2),Z=x0(l,z)||l,e.firstChild&&(e.firstChild.textContent=Z.content),e.scrollHeight>J?E=z-1:(M=z,O=z+1);return x0(l,M)};
NBu=function(l,e){var O,E;return(((O=l.content)==null?void 0:O.length)||0)>(((E=e.content)==null?void 0:E.length)||0)};
rtM=function(l){var e=l.isTruncated;var O=l.isAbsoluteButton;var E=l.lineHeight;var J=l.contentRef.value,z=l.placeholderTruncationTextRef.value,M=l.truncationTextRef.value;l=l.appDirection==="rtl";if(J&&z){var Z=z.offsetLeft;l&&(Z=J.offsetWidth-z.offsetWidth-z.offsetLeft);if(e){e=z.offsetWidth;z=J.offsetWidth;var u=O?z-e-70:Z-70;E="linear-gradient(\n      to top, transparent 0%,\n      transparent "+E+"rem,\n      #000 "+E+"rem,\n      #000 100%), linear-gradient(\n      to "+((l?"left":"right")+
",\n      #000 0px,\n      #000 "+u+"px,\n      transparent "+(O?z-e:u+70)+"px)");J.style.setProperty("-webkit-mask-image",E);J.style.setProperty("mask-image",E)}else J.style.setProperty("-webkit-mask-image",""),J.style.setProperty("mask-image","");O?l?(M.style.setProperty("left","0"),M.style.setProperty("right","unset")):(M.style.setProperty("left",""),M.style.setProperty("right","0")):l?(M.style.setProperty("left","unset"),M.style.setProperty("right",Z+"px")):(M.style.setProperty("left",Z+"px"),
M.style.setProperty("right","unset"))}};
DPW=function(l,e,O,E,J,z,M){var Z=_.e4("truncated-text-content"),u=_.e4("truncated-text-content"),d=_.e4("button"),g=_.e4("button"),w=_.e4("button"),n=_.V2().resolve(_.OL),k=_.b(aK(hYx(l,J))),y=k.next().value,c=k.next().value;k=_.b(aK(_.a("enable_truncated_text_max_lines")?NBu(l,y):LET(l,J)));var f=k.next().value,P=k.next().value,h=BK(null);TQ(function(){function N(){if(Z.value&&d.value&&w.value)if(_.a("enable_truncated_text_max_lines")){var D=vrx(l,J,Z,u,e,O);c(D);E||requestAnimationFrame(function(){if(Z.value&&
d.value&&w.value){var b2=Y4d(Z.value)||NBu(l,D);P(b2);rtM({isTruncated:b2,isAbsoluteButton:Y4d(Z.value),lineHeight:O,contentRef:Z,placeholderTruncationTextRef:d,truncationTextRef:w,appDirection:n})}})}else c(hYx(l,J)),requestAnimationFrame(function(){if(Z.value&&d.value&&w.value)if(Y4d(Z.value))P(!0),E||rtM({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:O,contentRef:Z,placeholderTruncationTextRef:d,truncationTextRef:w,appDirection:n});else{var b2=LET(l,J);P(b2);E||rtM({isTruncated:b2,isAbsoluteButton:!1,lineHeight:O,contentRef:Z,placeholderTruncationTextRef:d,truncationTextRef:w,appDirection:n})}})}
var t,r;(t=h.value)==null||(r=t.stop)==null||r.call(t);t=new _.b3(N,17);N();h.value=t},[l.content,
e,O,n,E,z,M,J]);_.sC(function(){var N=function(){q4T=void 0;var r,D;(r=h.value)==null||(D=r.fire)==null||D.call(r)};
if(window.ResizeObserver){var t=new ResizeObserver(N);t.observe(Z.value);return function(){var r,D;(r=h.value)==null||(D=r.stop)==null||D.call(r);t.disconnect()}}window.addEventListener("resize",N);
return function(){var r,D;(r=h.value)==null||(D=r.stop)==null||D.call(r);window.removeEventListener("resize",N)}});
return{isTruncated:f,displayText:y,contentRef:Z,hiddenRef:u,placeholderTruncationTextRef:d,hiddenTruncationTextRef:g,truncationTextRef:w}};
S4d=function(l){return _.W("button",{"aria-disabled":!0,disabled:!0,class:l.className,el:l.elRef,style:"line-height: "+l.lineHeight+"rem;"},_.W(_.zK,{text:l.text}))};
QS2=function(l){var e=l.text;var O=l.alwaysShowTruncationText;var E=l.truncationText;var J=l.onExpandClick;var z=l.maxLines===void 0?2:l.maxLines;var M=l.disableTextMask===void 0?!1:l.disableTextMask;var Z=l.textStyle===void 0?"default":l.textStyle;var u=l.accessibilityLabel===void 0?"":l.accessibilityLabel;var d=l.textSize===void 0?"small":l.textSize;var g=_.pd(function(){return void(J==null?void 0:J())});
a:switch(d){case "medium":var w=2;break a;case "large":w=2.2;break a;default:w=1.8}var n=DPW(e,z,w,M,l.alwaysTruncateAtMaxLines===void 0?!1:l.alwaysTruncateAtMaxLines,d,Z),k=n.isTruncated;l=n.displayText;e=n.contentRef;var y=n.hiddenRef,c=n.placeholderTruncationTextRef,f=n.hiddenTruncationTextRef;n=n.truncationTextRef;var P={};O=_.Ix((P["truncated-text-wiz__absolute-button"]=!M,P["truncated-text-wiz__bottom-button"]=M,P["truncated-text-wiz--hidden"]=!(O||k),P));M={};Z=_.Ix((M["truncated-text-wiz"]=
!0,M["truncated-text-wiz--overlay"]=Z==="overlay",M["truncated-text-wiz--medium-text"]=d==="medium",M["truncated-text-wiz--large-text"]=d==="large",M["truncated-text-wiz--primary-text"]=Z==="primary-text",M));d={};d=_.Ix((d["truncated-text-wiz__truncated-text-content"]=!0,d["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,d));return _.W("truncated-text",{class:Z,"on:click":g,style:"line-height: "+w+"rem;"},_.W("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:e,style:"max-height: "+z*w+"rem;"},_.W(_.zK,{text:l}),_.W(S4d,{text:E,lineHeight:w,elRef:c,className:"truncated-text-wiz__inline-button"})),_.W("truncated-text-content",{class:d,el:y,style:"max-height: "+z*w+"rem;","aria-hidden":"true"},_.W(_.zK,{text:l}),_.W(S4d,{text:E,lineHeight:w,elRef:f,className:"truncated-text-wiz__inline-button"})),_.W("button",{"aria-label":u,class:O,el:n,style:"line-height: "+w+"rem;"},_.W(_.zK,{text:E})))};
xPV=function(l){return{content:l!=null?l:""}};
Oyx=function(l){var e=l.data;var O;l={class:l.className};a:switch(e.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var E="yt-video-attribute-view-model--vertical";break a;default:E="yt-video-attribute-view-model--horizontal"}a:switch(e.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var J="yt-video-attribute-view-model--image-small";break a;default:J="yt-video-attribute-view-model--image-large"}a:switch(e.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var z="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":z="yt-video-attribute-view-model--image-avatar";break a;default:z=""}a:switch(e.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(e.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var Z="yt-video-attribute-view-model--container-card";break a;default:Z=""}var u=_.t3(e.onTap)||_.Sp(e.rendererContext)?"yt-video-attribute-view-model--clickable":"";
E=["yt-video-attribute-view-model",E,J,z,M,Z,u].join(" ");if(e.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var d="";else J=e.lightColorPalette,z=e.darkColorPalette,M=((d=_.V2().resolve(_.MG(_.lp)))==null?0:d())&&z?z:J,d=(d=M==null?void 0:M.section2Color)?_.qv(d):"";return _.W("yt-video-attribute-view-model",l,_.W("div",{class:E,style:_.HF({"background-color":d})},_.W(BjM,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(O=_.t3(e.onTap))!=
null?O:_.Sp(e.rendererContext),role:"group",ariaLabel:e.title,forceNewState:!0},e.heroText||e.image?_.W(lzg,{data:e}):null,_.W(eXx,{data:e,sizeSmall:e.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
EIp=function(l){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:l.overflowMenuA11yLabel,onTap:function(e){e.preventDefault();e.stopPropagation();if(l.overflowMenuOnTap){var O=_.vf({elementsCommand:l.overflowMenuOnTap,forceNewState:!0});if(O==null?0:O.onclick)O.onclick(e)}}}};
lzg=function(l){l=l.data;var e,O=((e=_.V2().resolve(_.MG(_.lp)))==null?0:e())&&l.darkThemeImage?l.darkThemeImage:l.image;e=EIp(l);return _.W("div",{class:"yt-video-attribute-view-model__hero-section"},O?_.W(_.Jm,{data:O,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):l.heroText?_.W("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.W("span",{class:"yt-video-attribute-view-model__hero-text"},l.heroText)):null,l.overflowMenuOnTap?
_.W("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.W(Ms,{data:e,iconName:"MORE_VERT"})):null)};
eXx=function(l){var e=l.data;l=l.sizeSmall;var O=e.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",E=_.t3(e.onTap)||_.Sp(e.rendererContext);E=_.vf({innertubeCommand:E});E=NT(E);var J={};l={class:_.Ix("yt-video-attribute-view-model__metadata",(J["yt-video-attribute-view-model--small-font"]=l,J)),role:E?"link":"group"};E=_.W("h1",{class:"yt-video-attribute-view-model__title"},e.title);O=e.subtitle?_.W("h4",{class:"yt-video-attribute-view-model__subtitle"},O?_.W(QS2,{text:xPV(e.subtitle),truncationText:xPV(e.subtitleTruncationText),
maxLines:2}):_.W("span",null,e.subtitle)):null;if(e.secondarySubtitle){J=e.secondarySubtitle;if(J!=null&&J.attachmentRuns){for(var z=[],M=_.b(J.attachmentRuns),Z=M.next();!Z.done;Z=M.next())Z=Z.value,Z.element&&z.push(Object.assign({},Z,{element:Object.assign({},Z.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));J=Object.assign({},J,{attachmentRuns:z})}J=_.W("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.W(_.zK,{text:J}))}else J=null;return _.W("div",l,E,O,J,e.buttonViewModel?JVp(e.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.VP=function(l,e,O,E,J){E=E===void 0?{}:E;if(!J||Math.random()<5E-4){e=e||null;O=O||null;l=l instanceof Error?l:new _.Hk(l);if(l.args)for(var z=_.b(l.args),M=z.next();!M.done;M=z.next())M=M.value,M instanceof Object&&(E=Object.assign({},M,E));E.category="H5 Ads Control Flow";e&&(E.slot=e?"slot:  "+e.slotType:"");O&&(E.layout=O?"layout:  "+O.layoutType:"",E.layoutId=O.layoutId);J&&(E.known_error_aggressively_sampled=!0);l.args=[E];_.hG(l)}};
_.XAt=function(l,e){_.Wb(l,"yt-open-popup-action",[_.J$(e),l])};
_.Zs=function(l,e){_.XAt(l,_.xp(e))};
byx=function(l){if(!l)return"";if(zXu[l])return zXu[l];u3||(u3=_.i$("A"));u3.href!==l&&yS(u3,l);var e=u3.pathname;zXu[l]=e.startsWith("/")?e:"/"+e;return zXu[l]};
M5A=function(){var l=byx(window.location.href);if(l==="/")return"home";if(l.startsWith("/results"))return"search";if(l.startsWith("/watch"))return"watch";if(l.startsWith("/shorts"))return"shorts";if(l.startsWith("/hashtag"))return"hashtag";if(l.startsWith("/create_channel"))return"create_channel";if(l.startsWith("/@")||l.startsWith("/user/")||l.startsWith("/channel/"))return"channel";if(l.startsWith("/experiments"))return"experiments";if(l.startsWith("/sponsor_channel"))return"sponsorship";if(l.startsWith("/select_site"))return"settings";
if(l.startsWith("/locate"))return"locate";if(l.startsWith("/redeem"))return"redeem";if(l.startsWith("/musicpremium")||l.startsWith("/premium")||l.startsWith("/red"))return"premium";if(l.startsWith("/paid_memberships"))return"paid_memberships";if(l.startsWith("/oops"))return"oops";if(l.startsWith("/clip"))return"clip";var e;return(Ck==null?void 0:(e=Ck.response)==null?void 0:e.page)==="404"?"404":l.startsWith("/feed/history")?"history":l.startsWith("/feed/library")?"library":l.startsWith("/feed/subscriptions")?
"subscriptions":l.startsWith("/feed/trending")?"trending":l.startsWith("/feed/news_destination")?"news":l.startsWith("/playlist")?"playlist":l.startsWith("/minor_moment")?"minor_moment":l.startsWith("/playable/")||l.match("^/playables/(?!saved).")?"mini_app":l.startsWith("/playables")?"playables":l.startsWith("/create/live/join")?"open_in_app":l.startsWith("/feed/explore")?"explore":"browse"};
_.CDT=function(){var l=Ck==null?void 0:Ck.response,e=l==null?void 0:l.endpoint;if(!e)return(l==null?void 0:l.page)==="watch"?"watch":M5A();var O;l=(O=_.I(e==null?void 0:e.commandMetadata,_.V4))==null?void 0:O.webPageType;O=!1;if(l&&!V5u.includes(l))switch(l){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 E;return((E=_.I(e==null?void 0:e.commandMetadata,_.V4))==null?0:E.url)&&byx(_.I(e.commandMetadata,_.V4).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var J;return(e=(J=_.I(e,_.ms))==null?void 0:J.browseId)?Zyx[e]||"browse":"browse";default:O=!0}if(_.I(e,_.o9)||_.I(e,uTq))return"sponsorship";J=byx(window.location.href);if(J.startsWith("/experiments"))return"experiments";if(J.startsWith("/create_channel"))return"create_channel";
if(_.I(e,_.Db)&&J.startsWith("/shorts"))return"shorts";if(_.I(e,_.Db)&&J.startsWith("/watch"))return"watch";O&&(e=new _.Hk("Unsupported mWeb page type",{pathname:J,webPageType:l}),_.UW(e));return"browse"};
g$=function(l,e,O,E){return l&&e?l!==O||e!==E?(_.VP(Error("Hh"),void 0,void 0,{"stored-slot":l,"stored-layout":e,"latest-slot":O,"latest-layout":E}),!1):!0:!1};
oI2=function(l,e,O){return l({targetId:e},function(E){return O.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},E,{header:O.continuationItems?O.continuationItems[0]:void 0}):Object.assign({},E,{contents:O.continuationItems?O.continuationItems:[]})})};
$EL=function(l,e,O,E){if(e=e.trackingParams){var J,z=(J=O.getScreenLayer)==null?void 0:J.call(O);O=_.P9(z);J=_.B9(z);if(O&&J){var M=_.cf(e);_.a("combine_ve_grafts")?l.graftServerVe(e,J,z):_.DG(O,J,M);E==null||E(M)}}};
dEV=function(l){var e;return((e=WTu.get(l))==null?void 0:e.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
wAA=function(l,e){var O={type:e.slotType,controlFlowManagerLayer:gIV.get(e.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e.slotEntryTrigger&&(O.entryTriggerType=e.slotEntryTrigger.triggerType);e.slotPhysicalPosition!==1&&(O.slotPhysicalPosition=e.slotPhysicalPosition);if(l){O.debugData={slotId:e.slotId};if(l=e.slotEntryTrigger)O.debugData.slotEntryTriggerData=iyA(l);l=e.slotFulfillmentTriggers;O.debugData.fulfillmentTriggerData=[];l=_.b(l);for(var E=l.next();!E.done;E=l.next())O.debugData.fulfillmentTriggerData.push(iyA(E.value));
e=e.slotExpirationTriggers;O.debugData.expirationTriggerData=[];e=_.b(e);for(l=e.next();!l.done;l=e.next())O.debugData.expirationTriggerData.push(iyA(l.value))}return O};
iyA=function(l,e){var O={type:l.triggerType};e!=null&&(O.category=e);l.triggeringSlotId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedSlotId=l.triggeringSlotId);l.triggeringLayoutId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedLayoutId=l.triggeringLayoutId);return O};
AVg=function(l,e,O,E){e={opportunityType:e};l&&(E||O)&&(E=_.pF(E||[],function(J){return wAA(l,J)}),e.debugData=Object.assign({},O&&O.length>0?{associatedSlotId:O}:{},E.length>0?{slots:E}:{}));
return e};
nIM=function(l){return i3(l.opportunityAdapterMap).concat(i3(l.triggerAdapterMap)).concat(i3(l.fulfillmentAdapterFactoryMap)).concat(i3(l.slotAdapterFactoryMap)).concat(i3(l.layoutRenderingAdapterFactoryMap))};
i3=function(l){var e=[];l=_.b(l.values());for(var O=l.next();!O.done;O=l.next())O=O.value,O.isAdsControlFlowEventListener&&e.push(O);return e};
Ae=function(l){var e=l.slotId,O=l.slotType,E=l.slotPhysicalPosition;return e===void 0?new w$("Cannot construct a slot due to the missing id.",{adSlotMetadata:l}):O===void 0?new w$("Cannot construct a slot due to the missing type.",{adSlotMetadata:l}):E===void 0?new w$("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:l}):{slotId:e,slotType:O,slotPhysicalPosition:E,managerLayer:"external",adSlotLoggingData:l.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new azd}};
kIL=function(l){var e=l.layoutId,O=l.layoutType;return e===void 0?new nk("Cannot construct a layout due to the missing id.",{adLayoutMetadata:l}):O===void 0?new nk("Cannot construct a layout due to the missing type.",{adLayoutMetadata:l}):{layoutId:e,layoutType:O,managerLayer:"external",adLayoutLoggingData:l.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new azd,interactionLoggingAdsClientData:{}}};
Izg=function(l){if((l=l.value)&&l.querySelector("img")){var e=l.querySelector("img");e.addEventListener("error",function(){bEW(e.src).then(function(O){(O=_.aH(O).toString())?e.src=O:e.removeAttribute("src")}).catch(function(){e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
kJ=function(l,e){if(e&&(mEp(e.viewableCommand)||mEp(e.endOfSessionCommand))){l=l.value;var O=yVL(e==null?void 0:e.viewableCommand);e=yVL(e==null?void 0:e.endOfSessionCommand);if(!a9){var E=_.Cv("custom_active_view_tos_timeout_ms");a9=E>0&&E!==36E5?new pAL(KTA(),E):new pAL(KTA())}jRx(a9,l);HyM(a9,l,O,e)}};
I9=function(l){a9&&jRx(a9,l.value)};
KTA=function(){var l=_.hT("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(l==null?void 0:l.length)===2?l[1]:null};
mEp=function(l){l=_.t3(l);return!(l==null||!l.loggingUrls)&&l.loggingUrls.length>0};
yVL=function(l){if(!l)return[];var e=[],O,E;((E=(O=_.t3(l))==null?void 0:O.loggingUrls)!=null?E:[]).forEach(function(J){J.baseUrl&&e.push(J.baseUrl)});
return e};
cVT=function(l){return l.shorts.isDesktopSmallWidth};
_.FTL=function(l){return l.shorts.isWatchWhileMode};
_.mI=function(l){return l.shorts.isFullscreen};
_.yP=function(l){return l.shorts.isShortsPipActive};
RXT=function(l){var e,O;if(l=(e=_.I(l.reelsAdCardButtoned,fzd))==null?void 0:(O=e.animatedRenderingConfig)==null?void 0:O.easeOutSeconds)return l+"s"};
sRM=function(l,e,O){return _.V(function(E){return E.return(new Promise(function(J){var z=new Image;z.onload=function(){J(new TWV(l,e,O,z.naturalWidth,z.naturalHeight))};
z.src=O.toString()}))})};
GId=function(l,e){return Math.round(l/1E-5)===Math.round(e/1E-5)};
BW8=function(l,e){return Math.round(l/1E-5)===Math.round(e/1E-5)};
PDA=function(l,e){return l.year===e.year&&l.month===e.month&&l.day===e.day};
UEp=function(l,e){return l.year!==e.year?l.year<e.year:l.month!==e.month?l.month<e.month:l.day<e.day};
hXp=function(l){return l.day===Yi8(l.year,l.month)?l.month===11?{year:l.year+1,month:0,day:1}:{year:l.year,month:l.month+1,day:1}:{year:l.year,month:l.month,day:l.day+1}};
LTg=function(){var l=new Date,e={year:l.getFullYear(),month:l.getMonth(),day:l.getDate()};return{start:e,end:{year:l.getFullYear()+2,month:l.getMonth(),day:l.getDate()},selectedDate:hXp(e)}};
t5A=function(l){return(new So(2)).format(new Date(l.year,l.month,l.day))};
qi2=function(l){return{year:l.getFullYear(),month:l.getMonth(),day:l.getDate()}};
vIg=function(l,e){l=(l+(Number(e.utcOffsetSec)+(new Date(l*1E3)).getTimezoneOffset()*60))*1E3;e=qi2(new Date(l));return{date:e,secondsSinceMidnight:Math.floor((l-(new Date(e.year,e.month,e.day)).getTime())/1E3)}};
NWu=function(l,e){e=e.months.findIndex(function(O){return O.year===l.year&&O.month===l.month});
return e>=0?e:void 0};
rVp=function(l){if(!l)return!1;try{if(l.host&&l.host.tagName==="YT-FORMATTED-STRING"&&l.host.id==="contenteditable-textarea"||l.nodeType===Node.ELEMENT_NODE&&l.tagName==="YTD-COMMENTBOX")return!0}catch(e){return!1}return rVp(l.parentNode)};
pk=function(l){return l?!(l.tagName!=="A"||!l.href||!l.classList.contains("yt-simple-endpoint")):!1};
DE2=function(l){return l?l.tagName==="IMG"&&l.classList.contains("emoji"):!1};
Siu=function(l,e,O){if(!l)return null;var E=pk(l);if(E&&O)return e=l.pathname.substring(l.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(E&&!O)return document.createTextNode("");if(DE2(l))return O=l.alt,l=l.dataset.emojiId,!l&&e&&(e=_.Kk(e,O))&&e.isCustomEmoji&&(l=e.emojiId),l?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+l+">"):document.createTextNode(O);E=l.cloneNode(!1);for(var J=0;J<l.childNodes.length;++J){var z=Siu(l.childNodes[J],e,O);z&&E.appendChild(z)}return E};
jA=function(l){return l?pk(l)?l:jA(l.lastChild):null};
QRt=function(l){return l?pk(l)?l:QRt(l.firstChild):null};
xEp=function(l){if(!l)return null;for(var e=l.previousSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.previousSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.previousSibling;else break;(e=jA(e))?l=e:l=(l=l.parentNode)?jA(l.previousElementSibling):null;return l};
lo8=function(l){if(!l)return null;for(var e=l.nextSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.nextSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.nextSibling;else break;return(e=QRt(e))?e:lo8(l.parentNode)};
eCM=function(l){var e=_.H1(),O=e.JSC$9287_getStartNode();if(!rVp(O.parentNode))return null;e=e.JSC$9287_getStartOffset();if(O.nodeType===Node.TEXT_NODE){var E=_.R7(O,pk);if(E){if(l&&e===0||!l&&e===O.length)return E}else{if(l&&e===O.length)return!O||O.nodeName==="BR"||O.nextElementSibling&&_.c1(O.nextElementSibling,"display")==="block"?null:QRt(O.nextElementSibling);if(!l&&e===0)return O?jA(O.previousElementSibling):null}}if(O.nodeType===Node.ELEMENT_NODE)if(l){if(0<=e&&e<O.childNodes.length)return QRt(O.childNodes[e])}else if(0<
e&&e<=O.childNodes.length)return jA(O.childNodes[e-1]);return null};
OV2=function(l,e,O){if(!l)return null;if(l.nodeType===Node.TEXT_NODE)if(O){var E=xEp(l);if(E&&!/^\s+\S/.test(l.wholeText.substr(0,e)))return E}else if((E=lo8(l))&&!/\S\s+/.test(l.wholeText.substr(e,l.wholeText.length)))return E;return l.nodeType===Node.ELEMENT_NODE?O?xEp(l.childNodes[e]):lo8(l.childNodes[e]):OV2(l.parentNode,e,O)};
E2M=function(l){if(l.hasChildNodes())switch(l.tagName){case "DIV":case "A":case "SPAN":var e="";for(l=l.firstChild;l;l=l.nextSibling)e+=E2M(l);return e;default:return""}else switch(l.nodeType){case 3:return l.textContent;default:return""}};
FL=function(l,e){return l.year===e.year&&l.month===e.month&&l.day===e.day};
fk=function(l,e){return l.year!==e.year?l.year<e.year:l.month!==e.month?l.month<e.month:l.day<e.day};
Js8=function(l){return{year:l.getFullYear(),month:l.getMonth(),day:l.getDate()}};
X$V=function(l){var e=USu;e=e===void 0?USu:e;e(new Date(l.year,l.month,l.day))};
R9=function(l){return Js8(new Date(Number(l.seconds)*1E3))};
zCp=function(l){return l.year!==void 0&&l.month!==void 0&&l.day!==void 0};
bVA=function(l){return l.start!==void 0&&l.end!==void 0};
MPp=function(l){return bVA(l)?l.start:l};
VPM=function(l){return bVA(l)?l.end:void 0};
uhu=function(l,e){for(var O=[],E=new Date(l.start.year,l.start.month);E.getFullYear()<l.end.year||E.getFullYear()===l.end.year&&E.getMonth()<=l.end.month;){var J=O,z=J.push,M=E.getFullYear(),Z=E.getMonth(),u=l,d=e,g=void 0,w=[],n=Object.freeze({extraCssClass:"invisible"}),k=new Date(M,Z),y=Js8(k);k=k.getDay();for(var c=Js8(new Date);y.month===Z;){k!==ZVq&&g||(g=Array.from({length:7}).fill(n),w.push(g));var f={date:{year:M,month:Z,day:y.day},extraCssClass:"",debugClass:""};f.extraCssClass=d(f.date,
y,c,u).trim();g[(k-ZVq+7)%7]=f;y=y.day===Yi8(y.year,y.month)?y.month===11?{year:y.year+1,month:0,day:1}:{year:y.year,month:y.month+1,day:1}:{year:y.year,month:y.month,day:y.day+1};k=(k+1)%7}z.call(J,{weeks:w,monthLabel:TK.SHORTMONTHS[Z]+" "+M,year:M,month:Z,monthLabelExtraCssClass:w[0][2]===n?"shift-down-label":""});E.setMonth(E.getMonth()+1)}return O};
ChW=function(l,e){e=e.months.findIndex(function(O){return O.year===l.year&&O.month===l.month});
return e>=0?e:void 0};
$WW=function(l,e){a:{var O=O===void 0?[2,3]:O;O=_.b(O);for(var E=O.next();!E.done;E=O.next()){var J=new Date;if((new o28(E.value)).parse(e,J,{validate:!0})){J.setHours(0,0,0,0);e=J;break a}}e=null}if(!e)return{isValid:!1,value:void 0};e=Js8(e);O=l.end;return fk(e,l.start)||fk(O,e)?{isValid:!1,value:void 0}:{isValid:!0,value:e}};
w$g=function(l){var e=Wdq;e=e===void 0?dWt:e;var O=l.columnsToShow||[],E=g28(l.columnDimensions,l.columnsToShow,l.leftFloatingColumns,e);return O.map(function(J,z){var M=l.columns[J];if(M===void 0)throw Error("Nh");var Z=E?E[z]:"";var u=l.getCustomTooltip?l.getCustomTooltip(J,M.headerTooltipParagraphs):M.headerTooltipParagraphs;var d=iVV(l,J);return{type:J,index:z,style:Z,classes:d,headerName:M.headerName||"",headerIcon:M.headerIcon,headerTooltipParagraphs:u||[],headerTooltipHelpContext:M.headerTooltipHelpContext,
sortOrders:M.sortOrders||[],selectionState:M.isSelectionCheckbox?l.selectionState:void 0}})};
iVV=function(l,e){var O=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],E=l.columns[e];if(E===void 0)return"";var J=O.includes("DEFAULTS")&&E.cssClass?[E.cssClass]:[];if(O.includes("SORTING")){E.sortOrders&&E.sortOrders.length&&J.push("sortable");if(l.sorting&&l.sorting.columnType===e)a:switch(l.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var z="column-sorted";break a;default:z=""}else z="";z&&J.push(z)}O.includes("FLOATING")&&(e=l.columnsToShow.indexOf(e),l.leftFloatingColumns&&e<l.leftFloatingColumns&&
J.push("floating-column"),l.leftFloatingColumns&&e===l.leftFloatingColumns-1&&J.push("last-floating-column"));O.includes("RIGHT_ALIGN")&&E.rightAlignHeader&&J.push("right-align");return J.filter(function(M){return M}).join(" ")};
g28=function(l,e,O,E){O=O===void 0?0:O;E=E===void 0?dWt:E;if(l){var J=[],z=0;AsM(l,e,E).forEach(function(M,Z){var u="min-width:"+M.minWidth+"px;padding-left:"+M.paddingLeft+"px;padding-right:"+M.paddingRight+"px;flex:"+M.flexGrow+" 0 "+M.minWidth+"px;";M.maxWidth!==Infinity&&(u=[u,"max-width:"+M.maxWidth+"px;"].join(""));z>0&&Z<O&&(u=[u,"left:"+z+"px;"].join(""));J.push(u);z+=M.minWidth+M.paddingLeft+M.paddingRight});
return J}};
AsM=function(l,e,O){O=O===void 0?dWt:O;return e.map(function(E,J){E=l&&l[E]||{};var z=J===0?O.paddingLeftFirstColumn:O.padding;E.paddingLeft!==void 0&&(z=E.paddingLeft);J=J===e.length-1?O.paddingRightLastColumn:O.padding;E.paddingRight!==void 0&&(J=E.paddingRight);return{paddingLeft:z,paddingRight:J,minWidth:E.minWidth!==void 0?E.minWidth:O.minWidth,maxWidth:E.maxWidth!==void 0?E.maxWidth:O.maxWidth,flexGrow:E.flexGrow!==void 0?E.flexGrow:O.flexGrow}})};
n2p=function(l){var e=l.reduce(function(E,J){var z=J.columnId,M={};J.headerText&&(M.headerName=_.lG(J.headerText));J.rightAlignHeader&&(M.rightAlignHeader=J.rightAlignHeader);var Z;if((Z=J.headerIcon)==null?0:Z.iconType)M.headerIcon=_.w6(J.headerIcon.iconType);E[z]=M;return E},{}),O=l.filter(function(E){return!E.hideColumn}).map(function(E){return E.columnId});
l=l.filter(function(E){return!!E.dimensions}).reduce(function(E,J){E[J.columnId]=J.dimensions;
return E},{});
return{columns:e,columnsToShow:O,columnDimensions:l}};
_.aoM=function(l){return l?l.simpleText?l.simpleText:l.runs?l.runs.map(function(e){return e.text}).join(""):"":""};
p$M=function(l){var e=l.data;var O=l.onTap;var E=l.isSelected;var J=l.onFocusIn;if(!e)return{};l=kdM(e);E===void 0&&(E=e==null?void 0:e.isSelected);var z;return{text:Iog(e,l),startIcon:(z=e.icon)==null?void 0:z.iconType,state:E?0:2,type:0,onTap:mW8(e,O),accessibilityLabel:ys2(e,l),onFocusIn:function(){return J==null?void 0:J()}}};
Iog=function(l,e){if(!e)return l.text?_.aoM(l.text):void 0};
mW8=function(l,e){return function(O){e==null||e(O,l)}};
kdM=function(l){l=l.style&&l.style.styleType;return!tIL&&l==="STYLE_EXPLORE_LAUNCHER_CHIP"};
ys2=function(l,e){if(e){var O,E,J;return(J=(O=l.accessibilityData)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label)!=null?J:Iog(l,!1)}};
s6=function(l){return{signalAction:{signal:l}}};
HV2=function(){return _.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?KdV:_.jGx};
csT=function(l,e){l=l===void 0?"SOFT_RELOAD_PAGE":l;e=e===void 0?49504:e;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Zr(_.ml("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:e}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:l}}]}}}};
Fdx=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Zr(_.ml("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:HV2()}};
foq=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Zr(_.ml("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:HV2()}};
RCM=function(l,e){var O=_.Zr(_.ml("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),E=_.Zr(_.ml("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),J={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Zr(_.ml("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};J.serviceEndpoint=l?l:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[s6("SOFT_RELOAD_PAGE")]}};return{title:O,bodyText:E,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:J},
style:{value:e!=null?e:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
sGq=function(l){l=l===void 0?{}:l;return{title:_.Zr(l.localizedZeroStateTitleText===void 0?"":l.localizedZeroStateTitleText),bodyText:_.Zr(l.localizedZeroStateMessage===void 0?"":l.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zr(l.localizedZeroStateButtonText===void 0?"":l.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[TzT]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.Ph8=function(l,e,O,E,J,z,M,Z){E=E===void 0?!1:E;J=J===void 0?!1:J;z=z===void 0?0:z;M=M===void 0?-Infinity:M;Z=Z===void 0?!1:Z;var u=[],d=_.Zr(_.ml("SMART_DOWNLOADS",void 0,"Smart downloads"));M=_.Zr(Gdx(z,M,l.length));z=void 0;E?l.length>0?z=Bzq(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.a("kevlar_manual_downloads_above"),d,M):Z?z={alertBannerViewModel:{heading:{content:O.localizedOptInBannerTitleText===void 0?"":O.localizedOptInBannerTitleText},body:{content:O.localizedPromptMessage===
void 0?"":O.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.ml("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.ml("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:_.EUx}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:J&&(z={backgroundPromoRenderer:{bodyText:_.Zr(_.ml("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"}}}):J&&(z={alertBannerViewModel:{heading:{content:O.localizedOptInBannerTitleText===void 0?"":O.localizedOptInBannerTitleText},
body:{content:O.localizedOptInMessage===void 0?"":O.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.ml("TURN_ON",void 0,"Turn on"),accessibilityText:_.ml("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}}}}}});O=_.Zr(_.ml("YOUR_DOWNLOADS",void 0,"Your downloads"));J=void 0;e.length>0?(J=void 0,_.a("kevlar_display_downloads_numbers")&&(J=_.Zr(_.y4("VIDEO_COUNT",e.length))),J=Bzq(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,O,J)):E||l.length||(J={backgroundPromoRenderer:{bodyText:_.Zr(_.ml("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},
style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});z&&!_.a("kevlar_manual_downloads_above")&&u.push({richSectionRenderer:{content:z,loggingDirectives:{clientVeSpec:{uiType:139572}}}});J&&u.push({richSectionRenderer:{content:J,loggingDirectives:{clientVeSpec:{uiType:51721}}}});z&&_.a("kevlar_manual_downloads_above")&&u.push({richSectionRenderer:{content:z,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(e.length>0||E&&l.length>0)&&u.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Zr(_.ml("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:u}};
_.Y2x=function(l){return UWu(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.hC2=function(l){return UWu(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
UWu=function(l,e){var O=[];l=Bzq(l,e,!0);O.push({richSectionRenderer:{content:l}});return{contents:O}};
Bzq=function(l,e,O,E,J){O=O===void 0?!1:O;var z="RESPONSIVE_SIZE_STANDARD";_.a("kevlar_modern_downloads_compact")?z="RESPONSIVE_SIZE_COMPACT":_.a("kevlar_modern_downloads_extra_compact")&&(z="RESPONSIVE_SIZE_EXTRA_COMPACT");l={isExpanded:O,contents:GK(l),entitySelectorType:e,responsiveContainerConfiguration:{responsiveSize:z}};E&&(l.title=E);J&&(l.subtitle=J);O||(_.a("kevlar_smart_downloads_show_more_button")?(l.showMoreButton={buttonRenderer:{accessibility:{label:_.ml("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Zr(_.ml("SHOW_MORE",void 0,"Show more"))}},l.showLessButton={buttonRenderer:{accessibility:{label:_.ml("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Zr(_.ml("SHOW_LESS",void 0,"Show less"))}}):(l.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.ml("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}}}},l.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.ml("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}}}},l.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.ml("VIEW_ALL",void 0,"View all"),accessibilityText:_.ml("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:Mu("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:l}};
GK=function(l){var e=[];l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,B08(O)){var E=e,J=E.push;var z=void 0;if(O==null?0:(z=O.videoEntity)==null?0:z.videoId){z=tY(_.Om().getState(),O.videoEntity.videoId);var M=_.Om().getState();var Z=_.iH(O.videoEntity.videoId,"mainVideoEntity");M=!!_.fO(M.entities)[Z];M={videoId:O.videoEntity.videoId,title:uH(O.videoEntity.title),shortBylineText:uH(O.channelEntity.title),thumbnail:O.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:M&&_.a("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:B9g(O.videoEntity.videoId,z,O.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.ml("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};O.videoEntity.lengthSeconds&&(M.thumbnailOverlays=zIA(O.videoEntity.lengthSeconds,z));M.isWatched=z>0;_.a("kevlar_modern_downloads_page")&&(M.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:O.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.ml("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},M.badges=void 0);O=M}else O={};J.call(E,{richItemRenderer:{content:{videoRenderer:O},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(GaM(O)){E=e;J=E.push;var u=Z=z=void 0,d=void 0,g=void 0,w=void 0,n=void 0,k=void 0,y=void 0,c=void 0,f=void 0,P=void 0;M=O.mainPlaylistEntity.playlistId;var h=O==null?void 0:(P=O.mainPlaylistEntity)==null?void 0:(f=P.thumbnailStyleData)==null?void 0:(c=f[0])==null?void 0:(y=c.value)==null?void 0:(k=y.collageThumbnail)==
null?void 0:k.coverThumbnail;if(M&&h){k=P_q(M);!_.a("enable_offline_playlist_page")&&(O==null?0:(n=O.mainPlaylistEntity)==null?0:n.videos)&&(n=O==null?void 0:(w=O.mainPlaylistEntity)==null?void 0:(g=w.videos)==null?void 0:g[0],g=_.Wt(n).entityId,g=JSON.parse(g).videoId,g!==void 0&&(w=tY(_.Om().getState(),g),k=_.Vy(g,M,void 0,void 0,w)));g=[];if(O==null?0:(d=O.mainPlaylistEntity)==null?0:(u=d.videos)==null?0:u.length)g=[PSV(),Object.assign({},(Z=BtA(O==null?void 0:O.mainPlaylistEntity.videos.length))!=
null?Z:{})];O={playlistId:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:h}},navigationEndpoint:k,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:g,title:uH(O.mainPlaylistEntity.title),shortBylineText:uH(O==null?void 0:(z=O.channelEntity)==null?void 0:z.title),badges:[{metadataBadgeRenderer:{label:_.ml("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.a("kevlar_modern_downloads_page")&&(O.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Ld2,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.ml("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},O.badges=void 0)}else O=void 0;J.call(E,{richItemRenderer:{content:{playlistRenderer:O},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return e};
Gdx=function(l,e,O){l=l?tPM(l):"";e!==void 0&&isFinite(e)?e===0?e=_.ml("UPDATING",void 0,"Updating..."):(e=XJq(new Date(e),new Date),e=_.ml("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var E="";l&&e&&(E=" \u2022 ");if(O&&_.a("kevlar_display_downloads_numbers")){O=_.y4("VIDEO_COUNT",O);if(l||e)E=" \u2022 ";return O+E+l+E+e}return l+E+e};
q2d=function(l){return jTx(l.entities).length};
_.v2d=function(l,e){var O=zYq(l.responsiveSize),E;l=!((E=l.responsiveMap)==null||!E.some(function(J){return J.containerSize==="CONTAINER_SIZE_NARROW"&&J.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:e,sizing:O,enableFullBleedForSingleCol:!1,isCompactList:O==="COMPACT"&&l}};
NzT=function(l,e){return _.wV(l.entities,"votingEntity",e)};
rsp=function(l){if(l){var e;return((e=_.V2().resolve(_.MG(_.lp)))==null?0:e())?l.darkTheme:l.lightTheme}};
DWg=function(l,e){if(l.simpleText)return Object.assign({},l,{simpleText:Sb(l.simpleText,e)});if(!l.runs)return l;for(var O=Object.assign({},l,{runs:[]}),E=0,J=_.b(l.runs),z=J.next();!z.done;z=J.next())if(z=z.value,z.text)if(E+z.text.length<=e)O.runs.push(z),E+=z.text.length;else return O.runs.push(Object.assign({},z,{text:Sb(z.text,e-E)})),O;return l};
S2g=function(l,e){return _.wV(l.entities,"chipBarStateEntity",e)};
QGx=function(l,e){return _.wV(l.entities,"chipEntity",e)};
ldg=function(l,e,O,E){return function(){var J=xWA.has(l.displayType)&&l.selected,z=J&&l.deselectCommand?l.deselectCommand:l.tapCommand;!z||J&&E||_.r6(z,{form:{element:e==null?void 0:e.value}});O==null||O()}};
eKt=function(l){switch(l){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
OaL=function(l,e){return{triggeringElement:l,onDwellTriggeredFn:function(){var O={triggeringElement:l,loadVideoPreviewEventData:e},E=document.querySelector(".video-preview");E&&E.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:O}))},
onDwellEndFn:function(){var O=document.querySelector(".video-preview");O&&O.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Et8=function(l,e){var O=_.V2().resolve(_.MG(qJV)),E=function(){var J=e();return O&&J?OaL(l.value,J):null};
_.Gh(function(){var J=E();O&&J&&Promise.resolve().then(function(){O.registerElement(J)});
_.B3(function(){O&&J&&Promise.resolve().then(function(){v9V(O,J)})})},"csPUge")};
XVW=function(l){var e=l.dataset.resizeObserverId;if(e)return e;e=""+J4T++;return l.dataset.resizeObserverId=e};
zKg=function(l,e){var O=XVW(l);B1.has(O)||B1.set(O,new Set);B1.get(O).add(e);P1.has(O)&&e(Object.assign({},{target:l},P1.get(O)))};
bax=function(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;var O=XVW(e.target),E=Object.assign({},{target:e.target},P1.get(O));if(E!=null&&E.contentRect?E.contentRect.width!==e.contentRect.width||E.contentRect.height!==e.contentRect.height:1)for(P1.set(O,{borderBoxSize:e.borderBoxSize,contentBoxSize:e.contentBoxSize,contentRect:e.contentRect,devicePixelContentBoxSize:e.devicePixelContentBoxSize}),O=_.b(B1.get(O)||[]),E=O.next();!E.done;E=O.next())E=E.value,E(e)}};
VmL=function(){return U6?U6:U6=new Mmd(bax)};
ZaT=function(l,e){var O=XVW(l);B1.has(O)&&(B1.get(O).delete(e),B1.get(O).size===0&&(B1.delete(O),P1.delete(O),U6.unobserve(l),delete l.dataset.resizeObserverId));B1.size===0&&U6&&(U6.disconnect(),U6=void 0)};
C6M=function(l,e){var O=_.V2().resolve(MY);return ubq.map(function(E){return O.observe(l,e,E)})};
otL=function(l){var e=_.V2().resolve(MY);l.forEach(function(O){e.unobserveByKey(O)})};
_.d_t=function(l,e){var O=Object.assign({},$_t,e);e=_.b(jyg());var E=e.next().value,J=e.next().value,z=function(M){var Z=M.contentRect.height;if((M=M.contentRect.width)||Z||O.canHaveZeroSize)E.width()===M&&E.height()===Z||J(E,{height:Z,width:M})};
_.sC(function(){var M=l instanceof HTMLElement?l:l.value,Z=W_d(z,O.throttleMs),u=[];O.useVisibilityObserver&&(u=C6M(M,function(d,g){requestAnimationFrame(function(){g==="visible"?(zKg(M,Z),VmL().observe(M)):ZaT(M,Z)})}));
u.length||(zKg(M,Z),VmL().observe(M));_.B3(function(){u.length&&(otL(u),u.length=0);ZaT(M,Z)})});
return E};
iaT=function(l){var e=l.data;var O=l.callback;var E=l.enableSingleChipSelection;var J=l.disableChipsScrollAnimation;var z=_.O0("div"),M=BK(!1),Z=BK(0);l={};l=_.b(aK(e.autoselectedChipIndex!=null?(l[e.autoselectedChipIndex]=!0,l):{}));var u=l.next().value,d=l.next().value,g=function(){var $V=z.value;return $V==null||$V.scrollLeft-1<=0},w=function(){var $V=z.value;
return $V==null?!1:$V.scrollLeft+1>=($V==null?NaN:$V.scrollWidth)-($V==null?NaN:$V.clientWidth)};
l=_.b(aK(g()));var n=l.next().value,k=l.next().value;l=_.b(aK(w()));var y=l.next().value,c=l.next().value;l=e.isHorizontallyScrollable;var f=function($V){z.value!=null&&(_.hT("HTML_DIR")==="rtl"&&($V=-$V),z.value.scrollBy({left:$V,behavior:J?"instant":"smooth"}))},P=function(){f(-320)},h=function(){f(320)},N=_.pd(function($V){M.value=!0;
Z.value=$V.clientX}),t=_.pd(function($V){if(M.value){$V=$V.clientX;
var gT=$V-Z.value;Z.value=$V;var mx;(mx=z.value)==null||mx.scrollBy({left:-gT})}}),r=_.pd(function(){var $V=g(),gT=w();
$V!==n&&k($V);gT!==y&&c(gT)});
bg("pointerup",function(){M.value&&(M.value=!1)});
var D={},b2={};return _.W("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},OB(e.title,function(){return _.W("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.W("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},e.title),gt8(e.overflowButton))}),_.W("div",{class:"ytChipsShelfViewModelChipsShelfContent"},OB(e.previousButton!=null,function(){var $V={};
return _.W("div",{class:_.Ix("ytChipsShelfViewModelLeftArrowContainer",($V.ytChipsShelfViewModelLeftArrowContainerIsHidden=n,$V))},gt8(e.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:P}}))}),_.W("div",{el:z,
"on:pointerdown":N,"on:pointermove":t,"on:scroll":r,class:_.Ix("ytChipsShelfViewModelChipsScrollContainer",(D.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!l,D))},_.W("div",{class:_.Ix("ytChipsShelfViewModelChipsContainer",(b2.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!l,b2.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!l&&!1,b2))},(e.contents||[]).map(function($V,gT){return _.W("div",{class:"ytChipsShelfViewModelChipWrapper"},gt8($V,
{chipViewModel:{callback:function(mx,jM){if(E){var cx={};d((cx[gT]=jM,cx))}else cx={},d(Object.assign({},u,(cx[gT]=jM,cx)));O==null||O(mx,jM,gT)},
disableDeselection:E,selected:!!u[gT]}}))}))),OB(e.nextButton!=null,function(){var $V={};
return _.W("div",{class:_.Ix("ytChipsShelfViewModelRightArrowContainer",($V.ytChipsShelfViewModelRightArrowContainerIsHidden=y,$V))},gt8(e.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:h}}))})))};
A42=function(l,e,O,E,J){l=e?l.switchOffCommand:l.switchOnCommand;if(E&&J)wVx(l,O,J);else{var z,M;(z=_.vf({elementsCommand:l}))==null||(M=z.onclick)==null||M.call(z,O)}};
wVx=function(l,e,O){l=_.vf({elementsCommand:l,additionalCommandArgs:{commandController:{onSuccess:function(){O(!1)},
onServerError:function(){O(!1)}}}});
if(l==null?0:l.onclick)l.onclick(e),O(!0)};
adW=function(l){if(l)return _.I(l,ntV)};
pVt=function(l,e,O){if(e)return[kOA];switch(l){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[YJ];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return O?[YJ]:[IdV,YJ];case "TRANSFER_STATE_PAUSED_BY_USER":return[m_q,YJ];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[y4V,YJ];default:return[kOA]}};
K_V=function(l,e,O,E){return pVt(l,e,E).map(function(J){var z=J.text,M=J.iconType,Z=J.videoAction;J=J.playlistAction;z=z?{content:z}:void 0;M=M&&{sources:[{clientResource:{imageName:M}}]};var u=(0,_.mm.unsafeClone)(O);if(u){var d=_.I(u,_.AM),g=_.I(u,_.nT);d&&Z?d.action=Z:g&&J&&(g.action=J)}return{title:z,leadingImage:M,rendererContext:u&&{commandContext:{onTap:{innertubeCommand:u}}}}})};
jYW=function(l){l=_.Sp(l.rendererContext);var e;return(e=_.I(l,_.nT))==null?void 0:e.playlistId};
Ha2=function(l){var e;return(e=l.listItems)==null?void 0:e.some(function(O){var E;return _.Qz((E=_.I(O,_.yz))==null?void 0:E.rendererContext)})};
F_M=function(l){var e;return(e=l.listItems)==null?void 0:e.some(function(O){O=_.I(O,_.yz);return!!_.I(O==null?void 0:O.leadingAccessory,c4M)})};
he=function(l){var e=_.V2().resolve(_.MG(_.lp));return e!=null&&e()?l.darkThemeColorPalette:l.lightThemeColorPalette};
te=function(l){return{primaryTextColor:Lk(l,0),secondaryTextColor:Lk(l,1),optionColor:Lk(l,2),backgroundColor:Lk(l,3),videoBackgroundColor:Lk(l,4)}};
Lk=function(l,e){if(l){switch(e){case 0:l=l.primaryTitleColor;break;case 1:l=l.secondaryTitleColor;break;case 2:l=l.surgeColor;break;case 3:l=l.section2Color;break;case 4:l=l.section3Color;break;default:return}if(l)return _.t$(l)}};
fdg=function(l){return l?_.qv(l):""};
RKp=function(l){return(l==null?void 0:l.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
TOp=function(l,e){var O;return"linear-gradient(to bottom, "+((O=e==null?void 0:e.map(function(E){var J=l?E.darkThemeColor:E.lightThemeColor;return J?_.qv(J)+" "+((E==null?void 0:E.startLocation)||0)*100+"%":"transparent"}))==null?void 0:O.join(", "))+")"};
sYM=function(l,e,O,E,J){if(!((E==null?0:E.height)&&(E==null?0:E.width)))return{size:0};var z=E.width;E=E.height;if(J)return e==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&z>E?{size:312/Att}:e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(O!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||l!==1&&l!==2||e!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&e!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&e!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(e==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||E===z)switch(l){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||E>z)switch(l){case 1:case 3:return{size:240*wUt};default:return{size:360*wUt}}switch(l){case 1:case 2:return{size:1/Att*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.GOg=function(l){if(!("matchMedia"in window))return _.Nz(Error("Oh")),function(){return!1};
var e=window.matchMedia(l);l=_.b(_.AF(e.matches,void 0,"jLJc8e"));var O=l.next().value,E=l.next().value,J=function(z){E(z.matches)};
e.addEventListener?(e.addEventListener("change",J),_.B3(function(){e.removeEventListener("change",J)})):e.addListener&&(e.addListener(J),_.B3(function(){e.removeListener(J)}));
return O};
BOT=function(l){return l==="IMAGE_BANNER_STYLE_INSET"||l==="IMAGE_BANNER_STYLE_UNKNOWN"};
P6x=function(){if(!("matchMedia"in window))return _.Nz(Error("Oh")),function(){return 0};
var l=GQ(function(){return window.matchMedia("(max-width: 527.9px)")}),e=GQ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),O=GQ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),E=GQ(function(){return window.matchMedia("(min-width: 1024px)")}),J=_.b(_.AF(l.matches,void 0,"og9kEc")),z=J.next().value,M=J.next().value;
J=_.b(_.AF(e.matches,void 0,"ybDWCb"));var Z=J.next().value,u=J.next().value;J=_.b(_.AF(O.matches,void 0,"o0Gfh"));var d=J.next().value,g=J.next().value;J=_.b(_.AF(E.matches,void 0,"yqUUgd"));var w=J.next().value,n=J.next().value,k=GQ(function(){return function(P){M(P.matches)}}),y=GQ(function(){return function(P){u(P.matches)}}),c=GQ(function(){return function(P){g(P.matches)}}),f=GQ(function(){return function(P){n(P.matches)}});
_.sC(function(){l.addEventListener?(l.addEventListener("change",k),e.addEventListener("change",y),O.addEventListener("change",c),E.addEventListener("change",f)):l.addListener&&(l.addListener(k),e.addListener(y),O.addListener(c),E.addListener(f));_.B3(function(){l.removeEventListener?(l.removeEventListener("change",k),e.removeEventListener("change",y),O.removeEventListener("change",c),E.removeEventListener("change",f)):l.removeListener&&(l.removeListener(k),e.removeListener(y),O.removeListener(c),
E.removeListener(f))})});
return function(){return z()?1:Z()?2:d()?3:w()?4:0}};
U_2=function(l){var e=0;l=_.b([l.title,l.metadata,l.actions,l.description,l.attribution]);for(var O=l.next();!O.done;O=l.next())O.value&&e++;return e};
YyA=function(l){return l===1||l===2?1:0};
L_A=function(l){var e,O=((e=_.V2().resolve(_.MG(_.lp)))==null?0:e())&&l.data.darkThemeImage?l.data.darkThemeImage:l.data.image;e=_.W("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.W("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},O?_.W(_.Jm,{data:O,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),hKT(l.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));O=_.W(_.zK,{text:l.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var E=l.data;if(E.bodyText){var J=[];E=_.b(E.bodyText);for(var z=E.next();!z.done;z=E.next())J.push(_.W(_.zK,{text:z.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else J=_.W(_.ZB,null);return _.W("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},e,O,J,hKT(l.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.W(_.zK,{text:l.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.W(_.zK,{text:l.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
qy8=function(l){l=(new tmt).parse(l);return(new wv).render(l).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(e){var O=e.split(":").map(Number),E=0,J=0;if(O.length===3)O=_.b(O),E=O.next().value,J=O.next().value,O=O.next().value;else if(O.length===2)O=_.b(O),J=O.next().value,O=O.next().value;else if(O.length===1)O=_.b(O).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(E*3600+J*60+O)+'" role="button">'+e+"</span>"})};
vtd=function(l){l=_.b(l.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var e=l.next(),O={};!e.done;O={clickHandler$jscomp$4:void 0},e=l.next()){e=e.value;O.clickHandler$jscomp$4=function(J){J=Number(J.target.getAttribute("data-time"));if(isNaN(J))throw Error("Qh");var z;(z=_.gC())==null||z.seekTo(J,!0)};
var E=function(J){return function(z){z.key!=="Enter"&&z.key!=="Space"||(0,J.clickHandler$jscomp$4)(z)}}(O);
e.setAttribute("tabindex","0");e.removeEventListener("click",O.clickHandler$jscomp$4);e.removeEventListener("keydown",E);e.addEventListener("click",O.clickHandler$jscomp$4);e.addEventListener("keydown",E)}};
NOV=function(){return _.W("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.W(qs,{percentWidth:100}),_.W(qs,{animationDelay:200}),_.W(qs,{animationDelay:400}),_.W(qs,{animationDelay:600}),_.W(qs,{animationDelay:800,percentWidth:60}),_.W("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.W(qs,{percentWidth:100}),_.W(qs,{animationDelay:200}),_.W(qs,{animationDelay:400}),_.W(qs,{animationDelay:600,percentWidth:50}))};
qs=function(l){return _.W("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(l.percentWidth===void 0?100:l.percentWidth)+"%"},_.W("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(l.animationDelay===void 0?0:l.animationDelay)+"ms"}))};
r4V=function(){var l=_.b(_.AF(function(){return""},void 0,"v2wS5e")),e=l.next().value;
return[function(){return e()()},
l.next().value]};
SyT=function(l){l=l===void 0?{}:l;return{title:_.Zr(l.localizedOptInBannerTitleText===void 0?"":l.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Zr(l.localizedOptInMessage===void 0?"":l.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zr(_.ml("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:_.Zr(_.ml("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:[D_p]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
QYt=function(l,e){l=l?tPM(l):"";e!==void 0&&isFinite(e)?e===0?e=_.ml("UPDATING",void 0,"Updating..."):(e=XJq(new Date(e),new Date),e=_.ml("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var O="";l&&e&&(O=" \u2022 ");return _.Zr(l+O+e)};
eZL=function(l,e,O,E,J,z){e=e===void 0?0:e;var M=x_d[e],Z=M.title,u=M.iconType,d=M.topButtonRenderer,g=M.sectionClientVE;M=M.videoClientVE;var w;if(e!==1||l.length){O=[];l=_.b(l);for(E=l.next();!E.done;E=l.next()){var n=E.value;if(B08(n))O.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:n.videoEntity.videoId,title:uH(n.videoEntity.title),shortBylineText:uH(n.channelEntity.title),thumbnail:n.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:n.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.ml("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}}}});else if(GaM(n)){E=O;var k=E.push;var y=void 0,c=void 0,f=void 0,P=void 0,h=void 0,N=void 0,t=void 0,r=void 0,D=n.mainPlaylistEntity.playlistId,b2=n==null?void 0:(r=n.mainPlaylistEntity)==null?void 0:(t=r.thumbnailStyleData)==null?void 0:(N=t[0])==null?void 0:(h=N.value)==null?void 0:(P=h.collageThumbnail)==null?void 0:P.coverThumbnail;P=P_q(D);if(!_.a("enable_offline_playlist_page")&&
(n==null?0:(f=n.mainPlaylistEntity)==null?0:f.videos)){b:{f=n==null?void 0:(c=n.mainPlaylistEntity)==null?void 0:c.videos;c=_.Om().getState().entities;if(f!=null&&f.length&&c)for(f=_.b(f),h=f.next();!h.done;h=f.next())if(h=_.Wt(h.value).entityId,(h=JSON.parse(h).videoId)&&pyL(c,h)==="TRANSFER_STATE_COMPLETE"){c=h;break b}c=""}c!==void 0&&(P=tY(_.Om().getState(),c),P=_.Vy(c,D,void 0,void 0,P))}c=YSg(_.ml("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),P_q(D));n=D&&b2&&c?{playlistId:D,navigationEndpoint:P,
viewPlaylistText:c,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:b2}},title:uH(n.mainPlaylistEntity.title),shortBylineText:uH(n==null?void 0:(y=n.channelEntity)==null?void 0:y.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:l5M,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:D,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.ml("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}:
void 0;k.call(E,{gridPlaylistRenderer:n})}}M={gridRenderer:{items:O}};e===1&&(w=QYt(J,z))}else if(E){var $V=_.Zr((k=O==null?void 0:O.localizedPromptMessage)!=null?k:"");M={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zr(_.ml("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.EUx}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zr(_.ml("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};w=QYt(J,z)}else $V=_.Zr(_.ml("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
M={};return{contents:[{shelfRenderer:{title:Z,titleAnnotation:w,icon:{iconType:u},subtitle:$V,content:M,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:d}]}}}}],loggingDirectives:{clientVeSpec:{uiType:g}}}};
Osq=function(l,e,O,E,J,z,M,Z){O=O===void 0?{}:O;E=E===void 0?!1:E;J=J===void 0?!1:J;z=z===void 0?!1:z;M=M===void 0?0:M;Z=Z===void 0?-Infinity:Z;if(!e.length&&!l.length&&!E)return J?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:sGq(O)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Zr(_.ml("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 u=[];l.length&&u.push(eZL(l,0));E?u.push(eZL(e,1,O,z,M,Z)):J&&u.push({contents:[{statementBannerRenderer:SyT(O)}]});(E&&e.length||l.length)&&u.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Zr(_.ml("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 u.map(function(d){return{itemSectionRenderer:d}})};
v1=function(l,e){if(typeof l!=="object")return null;l=_.b(Object.entries(l));for(var O=l.next();!O.done;O=l.next()){var E=_.b(O.value);O=E.next().value;E=E.next().value;if(O===e)return O;if(E=v1(E,e))return O+"."+E}return null};
Ns=function(l){var e=l.content;return(l=l.styleRuns)&&e?{runs:l.map(function(O){var E={text:e.slice(O.startIndex,O.startIndex+O.length)};O.fontColor&&(E.textColor=O.fontColor);return E})}:{simpleText:e}};
XMq=function(l,e,O,E){var J=Eix;E&&(l.quantity=E);if(!l.quantity||!l.maxQuantity)return{};E=l.minusButton;var z=l.plusButton,M,Z,u,d;return{value:l.quantity,maxValue:l.maxQuantity,onChangeCallback:function(g){J(l,g)},
minusLabel:(M=_.I(E,J2p))==null?void 0:M.label,minimumReachedLabel:(Z=_.I(E,J2p))==null?void 0:Z.limitReachedLabel,plusLabel:(u=_.I(z,J2p))==null?void 0:u.label,maximumReachedLabel:(d=_.I(z,J2p))==null?void 0:d.limitReachedLabel,disabled:e,onRemoveCommand:O}};
Eix=function(l,e){var O=l.quantityIncrementerEntityKey;if(O){var E={};E.quantity=e;_.Ot(_.Gn("quantityIncrementerEntity",O,E));l.onChangeCommand&&_.r6(l.onChangeCommand)}};
zZ8=function(l){return _.a("kevlar_comments_clone_data_killswitch")?l:_.mm.unsafeClone(l)};
VhM=function(l,e){(l=bsL(l))&&(e?Mhd.push({command:l,sourceData:{},commandContext:void 0}):_.V2().resolve(_.Zh).resolveCommand(l))};
bsL=function(l){return _.I(l,_.L4)};
ZsT=function(){var l=window.performance.timeOrigin+window.performance.now(),e=(new _.r$).setSeconds(l/1E9);return _.mb(e,2,_.k4(l%1E9),0)};
Ds=function(l,e){var O=_.I(_.I(l,_.L4),uIu);O&&(e&&(O.serializedAdditionalMetadata=_.x4(e)),VhM(l,!0))};
CRq=function(l){switch(l){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"}};
oi2=function(){return!!_.hT("ID_TOKEN")};
dnx=function(l){return l instanceof Error&&l.cause instanceof $ng&&l.cause.rpcErrorCode!==void 0?!WNM.includes(l.cause.rpcErrorCode):!0};
isx=function(){return _.e7(giL,{authuser:""+(_.hT("SESSION_INDEX")||0)})};
SA=function(l,e,O,E){O=O===void 0?"MINI_APP_SDK_API_UNSPECIFIED":O;E=E===void 0?"":E;var J=new _.Hk;O={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:E,sdkApi:O};l instanceof Error&&(J.message=l.message,J.name=l.name,l.cause instanceof $ng&&l.cause.rpcErrorCode!==void 0&&(O.rpcErrorCode=l.cause.rpcErrorCode));var z;(z=e.onError)==null||z.call(e,{loggingError:J,metadata:O})};
A2T=function(l,e,O,E){switch(l){case "MINI_APP_SOURCE_GAMESNACKS":return new QP(e,O,E);default:return new wMx(e,O,E)}};
niL=function(l){switch(l){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"}};
a5T=function(l){switch(l){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"}};
kXx=function(l){switch(l){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
I5V=function(){return Math.floor(Math.random()*4)+1};
mnu=function(l,e,O,E){l=_.b(Object.entries(l));for(var J=l.next(),z={};!J.done;z={message$jscomp$957:void 0},J=l.next()){var M=_.b(J.value);J=M.next().value;M=M.next().value;z.message$jscomp$957=M;e.push(setTimeout(function(Z){return function(){E(!1);O(Z.message$jscomp$957.text)}}(z),z.message$jscomp$957.delayMs));
Number(J)>0&&e.push(setTimeout(function(){E(!0)},z.message$jscomp$957.delayMs-400))}};
y2g=function(l,e){var O=O===void 0?G$8:O;_.a("mweb_fix_monitor_visibility_after_render")?l&&st(function(){Upx(l,e,O)}):st(function(){Upx(l,e,O)})};
KNL=function(l){var e=l.data;var O=l.uniqueId;l=l.overrides;var E,J=((E=e.timedAnimationData)==null?void 0:E.animationTiming)||[];return _.W("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.W(Uh,{settings:{uniqueId:O,timings:J,experimentEnabled:J.length>0,enabled:J.length>0}},pM2(e.buttonRenderer,{buttonRenderer:{buttonOverrides:l}})))};
FN2=function(l){jEL||(jEL=Hsu(new _.vt(1,void 0,void 0,c2M),0));var e=jEL.format(Math.floor(l));e=_.qu==="be"||_.qu==="bg"||_.qu==="es"||_.qu==="et"||_.qu==="hu"||_.qu==="ka"||_.qu==="lv"||_.qu==="pl"||_.qu==="pt-PT"||_.qu==="sq"?e.replace(new RegExp("^(\\d)"+c2M.GROUP_SEP.replace(".","\\.")+"(\\d+("+c2M.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):e;return l>=1E3&&l<=9999&&e[1]==="."&&(_.qu==="sl"||_.qu==="it")?e.replace(".",""):e};
f52=function(l,e){Bf("ytd-button-renderer",{data:l,className:e?e.className:"",overrides:e==null?void 0:e.buttonOverrides},lP)};
sEx=function(l,e,O,E){if(l)return E=E||l.likeStatus,e?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:E==="LIKE",isDisabled:!l.likesAllowed,defaultIcon:{iconType:O},defaultText:E==="LIKE"?l.likeCountWithUnlikeText:l.likeCountText,toggledText:E==="LIKE"?l.likeCountText:l.likeCountWithLikeText,defaultNavigationEndpoint:RZu(l,"LIKE"),defaultServiceEndpoint:TmT(l,"LIKE"),toggledServiceEndpoint:TmT(l,"INDIFFERENT"),defaultTooltip:_.lG(l.likeCountTooltipText),toggledTooltip:_.lG(l.likeCountTooltipText),
targetId:l.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:E==="DISLIKE",isDisabled:!l.likesAllowed,defaultIcon:{iconType:O},defaultText:E==="DISLIKE"?l.dislikeCountWithUndislikeText:l.dislikeCountText,toggledText:E==="DISLIKE"?l.dislikeCountText:l.dislikeCountWithDislikeText,defaultNavigationEndpoint:RZu(l,"DISLIKE"),defaultServiceEndpoint:TmT(l,"DISLIKE"),toggledServiceEndpoint:TmT(l,"INDIFFERENT"),defaultTooltip:_.lG(l.dislikeCountTooltipText),
toggledTooltip:_.lG(l.dislikeCountTooltipText)}};
RZu=function(l,e){if(e==="LIKE")return l.likeCommand;if(e==="DISLIKE")return l.dislikeNavigationEndpoint};
TmT=function(l,e){var O;return(O=l.serviceEndpoints)==null?void 0:O.find(function(E){var J;return((J=_.I(E,_.xJ))==null?void 0:J.status)===e})};
_.PRg=function(l,e,O){return window.spf&&!_.a("web_disable_spfjs_client")?GXM(l,e,O):Bm8(l,e)};
GXM=function(l,e,O){var E=null,J=(new _.kE(function(z,M){var Z={};if(e){Z.method=e.method;var u=e.postParams||{};Y0M(l,e)&&(u[_.hT("XSRF_FIELD_NAME")]=_.hT("XSRF_TOKEN"));Z.postData=_.ay(u);e.type&&(Z.type=e.type);u=e.headers}Z.headers=T4V(l,u);_.a("debug_forward_web_query_parameters")&&(l=_.Pg2(l,window.location.search));Z.experimental_headers=Z.headers;Z.onError=function(d){d.err&&d.xhr&&(d.err.params={url:d.xhr.responseURL,response:d.xhr.responseText.substr(0,64)});M(d.err)};
Z.onPartDone=function(d){O&&O.call(null,d.part)};
Z.onDone=function(d){var g=Unu(d.response,"xsrf_token");J5(window.location.href,l)&&g&&_.Yd("XSRF_TOKEN",g);if(g=Unu(d.response,"service_worker_killswitch"))_.Yd("SERVICE_WORKER_KILLSWITCH",g),w8d();z(d.response)};
E=spf.request(l,Z)})).then(YQ8);
J.thenCatch(function(z){var M=z instanceof _.lY,Z=z&&z.hasOwnProperty("params")&&z.params.response?z.params.response:"";z instanceof Error&&(Z?M?y3T(z):Z===')]}\'\n{"reload":"now"}'?y3T(z):(hZT(z,l,Z),LNd(z,Z)?_.hG(z):_.UW(z)):y3T(z));E&&E.abort()});
return J};
YQ8=function(l){if(l.type==="multipart"){var e=l.timing;l=l.parts.reduce(function(O,E){Object.assign(O,E);return O},{});
l.timing=l.timing||{};Object.assign(l.timing,e);l.type="reduced"}return l};
Bm8=function(l,e){e=e===void 0?{}:e;var O=null,E=new _.kE(function(J,z){e.onFinish=function(M){if(M.readyState===XMLHttpRequest.DONE)if(M.status===200){if(M.responseType!=="json"){var Z=M.response;Z.substring(0,5)===")]}'\n"&&(Z=Z.substring(5));try{var u=JSON.parse(Z)}catch(d){u=d}}else u=M.response;u instanceof Error?z(u):(Z=Unu(u,"xsrf_token"),J5(window.location.href,l)&&Z&&_.Yd("XSRF_TOKEN",Z),M=M.responseURL,window.performance&&window.performance.getEntriesByName?(Z=window.performance.getEntriesByName(M).pop())?
M={responseStart:(0,_.VZ)()-(Z.responseEnd-Z.responseStart)}:(Math.random()<.01&&(Z=Error("bi"),Z.params=M,_.hG(Z)),M={responseStart:-1}):M={responseStart:0},u.timing=u.timing||{},Object.assign(u.timing,M),J(u))}else z(Error("ai`"+M.status))};
(O=_.nv(l,e))||z(Error("ai`"+O.status))});
E.thenCatch(function(J){J instanceof Error&&(hZT(J,l),LNd(J)&&(J.level="WARNING"))});
_.a("cancel_pending_navs")&&E.thenCatch(function(){O.abort()});
return E};
Unu=function(l,e){var O=l[e],E=l.parts;l.type==="multipart"&&E&&(O=(l=E.find(function(J){return e in J}))&&l[e]);
return O};
hZT=function(l,e,O){var E=l.message||"";e={original:E,url:e};if(O)if(E=E.match(/position:?\s*(\d+)/)){E=E&&Number(E[1])?Number(E[1]):0;var J=Math.max(E-25,0);e.position=E;e.response=O.substring(J,E+25)}else e.response=O.substring(0,50);_.LZ(l,e);try{l.message="JSON parse error"}catch(z){}};
LNd=function(l,e){l=l.message||"";l=!!(l.indexOf("<")>=0||l.indexOf("end of ")>=0||l.indexOf("Unterminated string")>=0||l.indexOf("Unexpected EOF"));if(!l&&e)for(var O=e.length,E=!1,J=0;J<O;J++)if(E&&e[J]==="\\")J++;else if(e[J]==='"')E=!E;else if(e[J]==="<"&&!E){l=!0;break}return l};
tht=function(){return document.documentElement.hasAttribute("dark")};
_.qQ8=function(l,e){if(l!=="GFEEDBACK"&&l!=="GUIDED_HELP")_.tT(Error("ci`"+l));else{var O=_.V2().resolve(_.MG(_.XZ));if(O&&(O=O.getCurrentPage())&&O.getServiceTrackingParams&&(O=O.getServiceTrackingParams()))for(var E=0,J;J=O[E++];)if(J.service===l){if(l=J.params)for(O=0;E=l[O++];)e[E.key]=E.value;break}}};
_.viT=function(l){var e=_.bV();e&&(e=e.getPlayer())&&(e.pauseVideo(),l.playback_id=e.getVideoData().cpn,l.eid=e.getVideoData().eventId,Object.assign(l,e.getFeedbackProductData()))};
NmL=function(){var l={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.hT("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(l.enableAnonymousFeedback=!0);_.hT("SESSION_INDEX")&&(l.authuser=String(_.hT("SESSION_INDEX")));_.a("enable_pageid_for_feedback")&&_.hT("DELEGATED_SESSION_ID")&&(l.pageId=String(_.hT("DELEGATED_SESSION_ID")));return l};
_.ed=function(l){_.a("enable_ypc_spinners")&&_.Wb(l,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},l])};
_.OU=function(l){_.a("enable_ypc_spinners")&&_.Wb(l,"yt-close-popup-action",["yt-loading-renderer"])};
r22=function(l){return new Promise(function(e,O){_.qT({verifyCommand:{recaptchaToken:l.recaptchaResponse}},{commandController:{onSuccess:function(E,J){J||O("ChallengeService did not return a response.");var z;e({challengeCompleted:(z=J.verified)!=null?z:!1})},
onServerError:function(E,J){O(J)}}})})};
Dnt=function(l,e,O,E){e({recaptchaResponse:E}).then(function(J){J.challengeCompleted?_.pv()?(O(3),_.V2().resolve(_.Zh).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:l}})):O(2):O(4)},function(){O(4)})};
SQt=function(l,e,O){_.Nd("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.hT("HL"),function(){var E;(E=window.grecaptcha)==null||E.ready(function(){var J=window.grecaptcha;J?(O(J.render(l,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Dnt.bind(null,l,r22,e)})),e(1)):e(4)})})};
QEp=function(l,e){return function(){switch(e()){case 0:return l().captchaLoadingMessage;case 1:return l().challengeReason;case 3:return l().captchaSuccessfulMessage;case 2:return l().captchaCookieSetFailureMessage;case 4:return l().captchaFailedMessage;default:return l().challengeReason}}()};
_.EU=function(){if(!xn8){var l=document.querySelector("#player.skeleton");l&&(_.wk(l),xn8=!0)}};
_.ezp=function(){return lIg=wax()};
J1x=function(){return _.V(function(l){return O7W!==void 0?l.return():_.C(l,Ect(),0)})};
Ect=function(){return _.V(function(l){if(l.nextAddress==1)return _.C(l,n58(),2);lIg=l.yieldResult;O7W=_.UD.addLowPriorityJob(Ect,5E3);_.Cl(l)})};
Z7M=function(l){var e=e===void 0?XLx:e;var O,E,J=(O=l.responseContext)==null?void 0:(E=O.mainAppWebResponseContext)==null?void 0:E.trackingParam;if(!J){e.increment("MISSING");var z,M,Z,u,d,g;_.hG(new _.Hk("282054944_a",{sW3:!!((z=l.responseContext)==null?0:(M=z.mainAppWebResponseContext)==null?0:M.loggedOut),v9i:((Z=l.responseContext)==null?void 0:Z.mainAppWebResponseContext)===void 0,cKS:l.responseContext===void 0,iWv:(u=l.playabilityStatus)==null?void 0:u.contextParams,hTv:(((d=l.streamingData)==
null?void 0:d.formats)||[]).length>0,ujh:(((g=l.streamingData)==null?void 0:g.adaptiveFormats)||[]).length>0,os:!!l.offlineState,cotn:l.cotn}));return 2}O="";try{O=zzq(J)}catch(k){return e.increment("C_ERROR"),_.UW(k),2}try{var w=_.b7A(O);var n=MLg(w)}catch(k){return e.increment("P_ERROR"),_.UW(k),2}n=_.e$(n,VLt,1,_.Oo());J=[];n=_.b(n);for(w=n.next();!w.done;w=n.next())E=w.value,w=E.getPath(),O=(0,_.mm.getValueByKeys)(l,w.split(".")),O=String(O===void 0||O===null?"":O),E=E.getValue()||"",z=/[+\-\/_]/g,
O.replace(z,"")!==E.replace(z,"")&&(e.increment("MISMATCH"),_.a("ab_mis_log_err")&&(O=new _.Hk("282054944_p",{n4v:w,g:String(O),e:String(E)}),_.UW(O)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(w)||(w.match(/enforcementMessageViewModel/i)?J.push(3):J.push(2)));if(J.length>0)return Math.max.apply(Math,_.kA(J));e.increment("SUCCESS");return 1};
ocM=function(l){var e=new Jc;if(l.interpreterJavascript){var O=_.iOW(l.interpreterJavascript);O=B2(O).toString();var E=new u2x;_.da(E,6,O);_.EN(e,1,E,B6)}else l.interpreterUrl&&(O=_.YP(l.interpreterUrl),O=_.Z9(O).toString(),E=new _.Ccu,_.da(E,4,O),_.EN(e,2,E,B6));l.interpreterHash&&_.Xi(e,3,l.interpreterHash,B6);l.program&&_.Xi(e,4,l.program,B6);l.globalName&&_.Xi(e,5,l.globalName,B6);l.clientExperimentsStateBlob&&_.Xi(e,7,l.clientExperimentsStateBlob,B6);return e};
zi=function(l){var e={};l=_.b(l.split("&"));for(var O=l.next();!O.done;O=l.next())O=O.value.split("="),O.length===2&&(e[O[0]]=O[1]);return e};
$bx=function(l){return Number(l.t)||7200};
K3M=function(){if(_.a("bg_st_hr"))return"havuokmhhs-0";var l,e=((l=performance)==null?void 0:l.timeOrigin)||0;return"havuokmhhs-"+Math.floor(e)};
Wix=function(){return new Promise(function(l){var e=window.top;e.ntpevasrs!==void 0?l(new bY(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(function(O){l(new bY(O))}))})};
dbx=function(l){var e=l.qf6.bind(l);_.zJ("yt.aba.att",e);l=l.eT1.bind(l);_.zJ("yt.aba.att2",l)};
i7d=function(l){switch(_.A5(l.input)){case _.Em(gcL):var e={};return e.encryptedVideoId=l.innerTubeRequest.externalVideoId,e}return{}};
A1W=function(l){switch(_.A5(l.input)){case _.Em(gcL):if(_.a("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Em(MJ):if(_.a("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&l.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Em(wLM):var e,O;if(_.a("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((O=_.I((e=l.config)==null?void 0:e.command,
a_8))==null?0:O.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.aIx=function(l){var e;if(l.playlistVideoRenderer&&((e=l.playlistVideoRenderer)==null?0:e.engagementBar))return nc8(l.playlistVideoRenderer.engagementBar);if(_.I(l,VQ)){var O;if(l=(O=_.I(l,VQ))==null?void 0:O.engagementBar)return nc8(l)}return""};
nc8=function(l){if(!l)return"";l=_.I(l,_.kAT);if(l==null||!l.actions)return"";l=_.b(l.actions);for(l=l.next();!l.done;l=l.next()){l=_.I(l.value,_.IIg);var e=void 0;if((e=l)==null||!e.itemId)break;return l.itemId}return""};
_.mbt=function(l){var e;if(l.playlistVideoRenderer&&((e=l.playlistVideoRenderer)==null?0:e.videoId))return l.playlistVideoRenderer.videoId;if(_.I(l,VQ)){var O,E;if(l=(O=_.I(l,VQ))==null?void 0:(E=O.playlistItemData)==null?void 0:E.videoId)return l}return""};
_.y1u=function(l){var e;if(l.playlistVideoRenderer&&((e=l.playlistVideoRenderer)==null?0:e.voteCount))return l.playlistVideoRenderer.voteCount;if(_.I(l,VQ)){var O,E;if(l=(O=_.I(l,VQ))==null?void 0:(E=O.playlistItemData)==null?void 0:E.voteCount)return l}return 0};
_.ZL=function(l,e){return _.wV(l.entities,"flowStateEntity",e)};
Ki8=function(l,e,O,E){var J=void 0;l=_.b(l[e.iconName]||[]);for(var z=l.next();!z.done;z=l.next()){z=z.value;var M=e.iconSize;var Z=e.iconStyle;M=!M||M===z[2];var u=pL8[z[0]];E&&E!==z[1]||!M||Z&&Z!==u?Z=!1:J?(Z=pL8[z[0]],Z=!!e.iconStyle||Z==="youtube_outline",M=J.version<=z[1],Z=(!!e.iconSize||z[2]===24)&&Z&&M):Z=!0;Z&&(J={name:e.iconName,style:pL8[z[0]],size:z[2],version:z[1],allowMirroring:!!z[3],url:O(e.iconName,z)})}return J};
jJx=function(l,e,O,E){return l+(""+pL8[O[0]]+((E===void 0?0:E)?"_experimental":"")+"/"+e+"/v"+O[1]+"/")+(O[2]+"px.svg")};
uY=function(l){return _.a("web_bookmark_playlist_save_icon")?"bookmark":l};
H78=function(l,e){return jJx("https://fonts.gstatic.com/s/i/",l,e)};
c1d=function(l,e){return jJx("https://fonts.gstatic.com/s/i/",l,e,!0)};
Fi8=function(l,e){return jJx("https://www.gstatic.com/youtube/img/icons/web/",l,e)};
Rzp=function(l){var e=l.enabled;var O=l.itemPlaybackModel;var E=l.thumbnailElRef;var J=l.containerElRef;var z=l.options;var M;_.Gh(function(){var Z=J==null?void 0:J.value;var u,d=(u=E())==null?void 0:u.value;u=O();var g=z();if(e&&u&&Z&&d&&(g==null?0:g.thumbnail)){var w={data:u,hostElement:Z},n,k,y=_.a("web_explore_hub_on_hover")||_.a("web_client_explore_hub_on_hover")?[].concat(_.kA((n=g.thumbnailOverlays)!=null?n:[]),_.kA((k=u.overlays)!=null?k:[])):g.thumbnailOverlays||[],c,f;Z={mediaRenderer:w,
lockupElement:Z,thumbnailElement:d,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.t3((c=u.inlinePlayerData)==null?void 0:c.onVisible),navigationEndpoint:_.t3((f=u.inlinePlayerData)==null?void 0:f.onSelect),thumbnail:g.thumbnail,thumbnailOverlays:y,accessibilityText:g.accessibilityText||""},thumbnailSize:g.thumbnailSize,enableRounding:g.enableRounding}}}else Z=void 0;if(c=Z){var P;(P=M)==null||CN(P);M=eA(c);var h,N;((h=O())==null?0:(N=h.inlinePlayerData)==null?0:N.forceImpAutoplay)&&
fIL(M)}},"B33dEc");
_.B3(function(){var Z;(Z=M)==null||CN(Z)})};
TKp=function(l){l=atob(l);for(var e=[],O=0;O<l.length;O++)e.push(l.charCodeAt(O));return new Blob([new Uint8Array(e)],{type:"image/png"})};
GAx=function(l,e,O,E){E=E===void 0?"INSERTION_POSITION_UNSPECIFIED":E;return l({targetId:e},function(J){var z,M=(z=J.contents)!=null?z:[];z=O!=null?O:[];var Z=sJu(M);switch(E){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},J,{contents:[].concat(_.kA(M.slice(0,Z)),_.kA(z),_.kA(M.slice(Z+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},J,{contents:[].concat(_.kA(z),_.kA(M))});case "INSERTION_POSITION_LAST":return Object.assign({},J,{contents:[].concat(_.kA(M),_.kA(z))});
default:return J}})};
PcT=function(l,e,O,E,J){J=J===void 0?"RELATIVE_INSERTION_POSITION_AFTER":J;return l({targetId:e},function(z){var M,Z=(M=z.contents)!=null?M:[];M=BKd(Z,O);if(M<0)return z;M=J==="RELATIVE_INSERTION_POSITION_BEFORE"?M:M+1;return Object.assign({},z,{contents:[].concat(_.kA(Z.slice(0,M)),_.kA(E),_.kA(Z.slice(M)))})})};
sJu=function(l){var e=l.findIndex(function(O){return _.I(O,_.o2)});
return e>=0?e:l.length};
BKd=function(l,e){return l.findIndex(function(O){a:{O=_.b(Object.values(O));for(var E=O.next();!E.done;E=O.next())if((E=E.value)&&E.targetId){O=E.targetId;break a}O=""}return O===e})};
YFM=function(l,e,O){return l({targetId:e},function(E){var J,z=(J=E.contents)!=null?J:[];return Object.assign({},E,{contents:Ubx(z,O)})})};
Ubx=function(l,e){return l.filter(function(O){var E=e.includes;a:{O=_.b(Object.values(O));for(var J=O.next();!J.done;J=O.next())if((J=J.value)&&J.targetId){O=J.targetId;break a}O=""}return!E.call(e,O||"")})};
_.hz8=function(l,e){return{engagementPanelSectionListRenderer:{panelIdentifier:l,identifier:e,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.tL2=function(l){var e,O=(e=l.getOption("captions","tracklist",{includeAsr:!0}))!=null?e:[];return O=LiM(O,l)};
qFA=function(l){return l.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
LiM=function(l,e){e=qFA(e);if(e==null||!e.length)return l;var O=e.filter(function(M){return M});
e=l.filter(function(M){return M.languageCode.startsWith("en")});
O=_.b(O);for(var E=O.next();!E.done;E=O.next())if(E=E.value,e.length){var J=e[0],z=Object.assign({},J);J.languageCode!==E.languageCode&&(z.displayName=J.languageName+" >> "+E.languageName,z.translationLanguage=E,l.push(z))}return l};
vcx=function(l,e,O){l=_.tL2(l);if(l.length)return O?l.find(function(E){if(typeof(E==null?void 0:E.translationLanguage)==="object"){var J;return((J=E.translationLanguage)==null?void 0:J.languageCode)===e}return!1}):l==null?void 0:l.find(function(E){return E.languageCode===e})};
NK2=function(l){return l.getOption("captions","tracklist",{includeAsr:!0})};
r1T=function(l){return l.getOption("captions","tracklist",{includeAsr:!0})};
Db8=function(l){var e=r1T(l);if(e==null?0:e.length)return e;l.loadModule("captions");return r1T(l)};
SFW=function(l){var e=l.getOption("captions","track");if(e)return e;l.loadModule("captions");return l.getOption("captions","track")};
xb8=function(l){var e=Db8(l);if(e!=null&&e.length){var O=SFW(l),E;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.ml("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(O==null?0:O.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.kA(e.map(function(J){return{listItemViewModel:{title:{content:J.displayName},
isSelected:J.displayName===(O==null?void 0:O.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:J.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.ml("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!O.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!O.translationLanguage&&{selectionText:{content:(O==null?void 0:(E=O.translationLanguage)==null?void 0:E.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[QJp(l)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
QJp=function(l){var e=qFA(l);if(e==null||!e.length)throw Error("Ai");var O=SFW(l);l=e.filter(function(E){return!E.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.kA(l.map(function(E){var J;return{listItemViewModel:{title:{content:E.languageName},isSelected:E.languageName===(O==null?void 0:(J=O.translationLanguage)==null?void 0:J.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:E.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
ELu=function(l){return new Promise(function(e,O){if(l===void 0)_.UW(Error("Ei"),"ERROR"),O(Error("Ei"));else{O=new _.l48;var E=_.eQ8();O=O.init();var J=_.OhT(_.hT("YPC_MB_URL"),!0);Promise.all([O,J]).then(function(){var z=payments.business.integration.ClientTokenFactory.createClientToken(l,E);e(z)})}})};
zQx=function(l,e,O,E,J,z,M){var Z=_.x7();O=O.replace(/-/g,"+").replace(/_/g,"/");var u=_.Kz().get("hl"),d=_.$x(_.ld),g=e==null?void 0:e.element;g&&_.ed(g);JST(e,!0);_.XPq(d,O,Z.resolve,function(){g&&_.OU(g)},function(w){g&&_.OU(g);
Z.reject(w)},u,E?function(w){E&&_.Qh(l,E,{backend_analytics:w})}:void 0,Z.resolve,J,z,M);
return Z.promise};
JST=function(l,e){!(l=l==null?void 0:l.element)||l.tagName!=="YT-BUTTON-RENDERER"&&l.tagName!=="YTD-BUTTON-RENDERER"||(l.disabled=e)};
bhW=function(){var l=_.ml("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Zr(l),actionButton:{buttonRenderer:foq()}}},popupType:"TOAST"}};
Mud=function(){var l=_.ml("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Zr(l),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Vug=function(l){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:l}]}}};
Wn=function(l,e,O,E){var J;return _.V(function(z){if(z.nextAddress==1)return _.b1(z,2),_.C(z,l,4);if(z.nextAddress!=2)return(J=_.Ht(e.getState().entities).length>0)?z.return({title:_.Zr(_.ml("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Zr(_.ml("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Fdx()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
z.return(RCM(O,E));_.u1(z);return z.return(RCM(O,E))})};
ZhL=function(l,e){return e?e==="PPSV"||Hox(l,e):!1};
uHt=function(l){l.responseContext||(l.responseContext={});l.responseContext.maxAgeSeconds=0;return l};
gd=function(l){var e;return _.V(function(O){return O.nextAddress==1?_.C(O,CTp(l,"service:topbar:fallback"),2):(e=O.yieldResult)&&_.dd(e)?O.return(uHt(_.dd(e))):O.return()})};
oLd=function(l){var e;return _.V(function(O){return O.nextAddress==1?_.C(O,CTp(l,"service:downloads_settings:fallback"),2):(e=O.yieldResult)&&_.dd(e)?O.return(e):O.return()})};
CTp=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1)return l?_.C(E,l.get(e),2):E.return();O=E.yieldResult;return!O||!_.dd(O)||!isNaN(Number(O.data.expireTimestampMs))&&O.isExpired()?E.return():E.return(O)})};
$2q=function(l){var e=_.V2().resolve(iY).getState().entities;return l.playlistId?ZhL(e,l.playlistId):!1};
W9x=function(l,e){var O;if(e==null?0:(O=e.requestTemplate)==null?0:O.panelId)l.panelId=e.requestTemplate.panelId;var E;if(e==null?0:(E=e.requestTemplate)==null?0:E.params)l.params=e.requestTemplate.params};
gLx=function(){if(d2u)return d2u();var l=!_.a("idb_response_store_auth_killswitch"),e={};d2u=Mx("yt-it-response-store",{objectStores:(e.ResponseStore={addedAtVersion:1},e),shared:!l,upgrade:function(O,E){E(1)&&(O=Nx(O,"ResponseStore",{keyPath:["key","clientName"]}),r3(O,"byExpiration","expireTimestampMs"),r3(O,"byInterface","clientName"))},
version:1});return d2u()};
ihd=function(l){return _.lL(gLx(),l)};
AS2=function(l,e){var O;return _.V(function(E){return E.nextAddress==1?_.C(E,_.bL(),2):(O=E.yieldResult)?E.return(new wPW(l,e,O)):E.return()})};
nLq=function(l){var e=Object.keys(l)[0];if(e)return l.screenExit&&(e=e+";"+l.screenExit.screen),e};
a48=function(l){var e=new Map;l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,O!=null&&(e.has(O.taskType)||e.set(O.taskType,[]),e.get(O.taskType).push(O));return e};
kbL=function(l){return!isNaN(l)&&l>0};
I4x=function(l){l=[].concat(_.kA(l)).sort(function(O,E){return O-E});
var e=Math.floor(l.length/2);return l.length%2?l[e]:(l[e-1]+l[e])/2};
pP8=function(l,e){l=l===void 0?uOV:l;e=e===void 0?{}:e;_.zJ("yt.logging.errors.log",_.UW);Vbu();m2A(dT2(),e);window.onerror=l;ySu=Z42;window.addEventListener("unhandledrejection",function(O){if(O.reason instanceof Error){var E=O.reason;_.LZ(E,{source:"unhandledrejection"});E.name==="AbortError"&&(E.level="WARNING")}Z42(O.reason);O.preventDefault()})};
_.K9T=function(l){return l.a11y.ephemeralAction||null};
_.jrV=function(l){var e,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2,$V,gT,mx,jM,cx,tq,Px,S0,QH,pR,oq,ZS,Ou,uq,ZV,jO,V8;return _.V(function(AC){if(AC.nextAddress==1)return _.C(AC,_.mc(l,{mode:"readonly",enableRetries:!0},function(Fk){return yy(Fk,"playbackData").then(function(tu){var kq=tu.map(function(Xk){return Xk.transfer}).filter(function(Xk){return!!Xk}),Ni=tu.map(function(Xk){return Xk.offlineVideoPolicy}).filter(function(Xk){return!!Xk}),YA=tu.filter(function(Xk){return!!Xk.key}).map(function(Xk){return _.iH(_.Wt(Xk.key).entityId,
"downloadStatusEntity")});
kq=yy(Fk,"transfer",kq);Ni=yy(Fk,"offlineVideoPolicy",Ni);YA=yy(Fk,"downloadStatusEntity",YA);var v6=kq.then(function(Xk){Xk=Xk.reduce(function(P6,wf){(wf==null?0:wf.offlineVideoStreams)&&P6.push.apply(P6,_.kA(wf.offlineVideoStreams));return P6},[]).filter(function(P6){return!!P6});
return yy(Fk,"offlineVideoStreams",Xk)});
return qG.all([kq,Ni,v6,YA]).then(function(Xk){var P6=_.b(Xk);Xk=P6.next().value;var wf=P6.next().value;var w1=P6.next().value;P6=P6.next().value;return[tu,Xk,wf,w1,P6]})})}),2);
if(AC.nextAddress!=3)return e=AC.yieldResult,_.C(AC,_.mc(l,{mode:"readonly",enableRetries:!0},function(Fk){return yy(Fk,"mainDownloadsListEntity").then(function(tu){var kq,Ni;return(Ni=(kq=tu[0])==null?void 0:kq.downloads)!=null?Ni:[]})}),3);
O=AC.yieldResult;E=_.b(e);J=E.next().value;z=E.next().value;M=E.next().value;Z=E.next().value;u=E.next().value;d=J;g=z;w=M;n=Z;k=u;y={};c={};f={};P={};h={};N=[];t=_.b(g);for(r=t.next();!r.done;r=t.next())(D=r.value)&&(y[D.key]=D);b2=_.b(w);for($V=b2.next();!$V.done;$V=b2.next())(gT=$V.value)&&(c[gT.key]=gT);mx=_.b(k);for(jM=mx.next();!jM.done;jM=mx.next())(cx=jM.value)&&(f[cx.key]=cx);tq=_.b(n);for(Px=tq.next();!Px.done;Px=tq.next())(S0=Px.value)&&(P[S0.key]=S0);QH=_.b(O);for(pR=QH.next();!pR.done;pR=
QH.next())oq=pR.value,ZS=void 0,h[(ZS=oq.videoItem)!=null?ZS:""]=!0,oq.videoItem&&(uq=Ou=void 0,ZV=(uq=(Ou=_.Wt(oq.videoItem))==null?void 0:Ou.entityId)!=null?uq:"",N.push({externalVideoId:ZV}));jO=d.filter(function(Fk){if(!Fk||!Fk.key||!Fk.offlineVideoPolicy)return!1;Fk=_.Wt(Fk.key).entityId;Fk=_.iH(Fk,"downloadStatusEntity");var tu;return!(Fk&&((tu=f[Fk])==null?void 0:tu.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
V8=jO.map(function(Fk){var tu=y[Fk.transfer],kq=[];if(tu==null?0:tu.offlineVideoStreams)for(var Ni=_.b(tu.offlineVideoStreams),YA=Ni.next();!YA.done;YA=Ni.next())(YA=P[YA.value])&&kq.push(YA);Ni=c[Fk.offlineVideoPolicy];YA=h;var v6=Fk==null?void 0:Fk.playerResponseTimestamp,Xk=_.Wt(Ni.key).entityId;Fk=_.iH(Xk,"mainVideoEntity");if(Ni.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var P6="OFFLINE_VIDEO_STATE_DISABLED";Ni.expirationTimestamp&&Number(Ni.expirationTimestamp)<Date.now()/1E3&&(P6="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Ni.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")P6="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(tu==null?void 0:tu.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":P6="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":P6="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":P6="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":P6="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":P6="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":P6="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:P6="OFFLINE_VIDEO_STATE_UNKNOWN"}if(P6==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(tu==null?void 0:tu.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":P6="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":P6="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":P6=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Xk={id:Xk,videoState:P6};if(tu==null?0:tu.cotn)Xk.cotn=tu.cotn;if(tu==null?0:tu.maximumDownloadQuality)Xk.selectedVideoQuality=tu==null?void 0:tu.maximumDownloadQuality;if(tu==null?0:tu.lastProgressTimeMs)Xk.lastProgressTimeMs=tu.lastProgressTimeMs;v6&&(Xk.playerResponseSavedTimeMs=String(Number(v6)*1E3));tu=String;v6=0;kq=_.b(kq);for(P6=kq.next();!P6.done;P6=kq.next())if(P6=P6.value,P6.streamsProgress){P6=_.b(P6.streamsProgress);for(var wf=P6.next();!wf.done;wf=
P6.next()){var w1=void 0;v6+=Number((w1=wf.value.numBytesDownloaded)!=null?w1:0)}}Xk.downloadedBytes=tu(v6);Xk.selectedOfflineMode=YA[Fk]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Ni.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Xk.offlinePlaybackDisabledReason=Ni.offlinePlaybackDisabledReason);return Xk});
return AC.return({offlineVideos:V8,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:N}}})})};
Hhp=function(){var l;return _.V(function(e){return e.nextAddress==1?_.C(e,_.aM(),2):(l=e.yieldResult)?e.return(_.jrV(l)):e.return({state:"PES Unavailable"})})};
f4V=function(){var l,e,O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,_.aM(),2);if(J.nextAddress!=3)return(l=J.yieldResult)?_.C(J,cSV(l),3):J.return({state:"PES Unavailable"});e=J.yieldResult;O={};E=e.reduce(function(z,M){z[M.key]=M;return z},O);
return J.return(F9M(E))})};
F9M=function(l){for(var e={},O=[],E=_.b(Object.keys(l)),J=E.next();!J.done;J=E.next()){var z=J.value;J=l[z];var M=void 0;if(((M=J)==null?void 0:M.entityType)==="mainVideoEntity"){delete l[z];var Z=J.data;J={};if(Z){var u=void 0;M=(u=Z.videoId)!=null?u:"vid-"+z;z=l;J.video=Z;delete J.video.formattedDescription;delete J.video.thumbnail;Z.owner&&(u=z[Z.owner],u==null?0:u.data)&&(delete z[u.key],J.video.owner=u.data,delete J.video.owner.avatar);if(Z=Z.downloadState)if(u=z[Z],u==null?0:u.data)if(delete z[Z],
Z=u.data.playbackData)if(u=z[Z],u!=null&&u.data){delete z[Z];Z=u.data;delete Z.playerResponseJson;J.playbackData=Z;if(Z.transfer&&(u=z[Z.transfer],u==null?0:u.data)){delete z[u.key];var d=u.data;J.transfer=d;u=[];d=_.b(d.offlineVideoStreams||[]);for(var g=d.next();!g.done;g=d.next())if(g=z[g.value])delete z[g.key],u.push(g.data);u&&(J.streams=u)}(Z=Z.offlineVideoPolicy)&&(Z=z[Z])&&Z.data&&(delete z[Z.key],J.offlineVideoPolicy=Z.data)}e[M]=J}}else J&&J.entityType==="offlineOrchestrationActionWrapperEntity"&&
J.data&&(delete l[J.key],M=J.data,z=void 0,O.push({id:M.rootActionId,type:((z=M.actionProto)==null?void 0:z.actionType)||"",entity:J}))}e.wrapperEntities=O;Object.keys(l).length>0&&(e.unknownKeys=l);return e};
RQM=function(){var l,e,O,E,J,z,M,Z,u;return _.V(function(d){if(d.nextAddress==1)return l=!!(new _.qx("")).expiringStorage_,E=!!((e=_.Op.crypto)==null?0:(O=e.subtle)==null?0:O.importKey),J=!!_.Op.BroadcastChannel,z=!!_.Op.navigator.locks,_.C(d,YK8(),2);M=d.yieldResult;Z=l&&E&&J&&z&&M;u={isSupported:Z};if(Z)return d.return(u);u.missingBrowserFeatures=[];M||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");l||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
E||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");J||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");z||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return d.return(u)})};
TJg=function(){var l;return!((l=wd?wd:null)==null||!l.window)};
_.Gbq=function(l){if(_.Hx()&&_.uug("Chromium")>=120){var e=_.srV().mediaSession;try{e.setActionHandler("enterpictureinpicture",function(){l()})}catch(O){}}};
BJL=function(l){for(var e=[],O=_.b(document.styleSheets),E=O.next(),J={};!E.done;J={node$jscomp$730:void 0},E=O.next())J.node$jscomp$730=E.value.ownerNode,J.node$jscomp$730&&(J.node$jscomp$730 instanceof HTMLStyleElement||J.node$jscomp$730 instanceof HTMLLinkElement)&&e.push(new Promise(function(z){return function(M){var Z=z.node$jscomp$730.cloneNode(!0);Z.onload=function(){M()};
Z.onerror=function(){_.hG(Error("gj"));M()};
l.document.head.appendChild(Z)}}(J)));
return Promise.all(e)};
rSu=function(l){var e=[_.lX(PT2),_.lX(U2A),_.lX(YcW)];hQ2(window.document.documentElement,l.document.documentElement,[_.lX(L92),_.lX(tuW),_.lX(qcM),_.lX(vLx),_.lX(NJq)]);hQ2(window.document.body,l.document.body,e)};
hQ2=function(l,e,O){l=_.b(l.attributes);for(var E=l.next();!E.done;E=l.next())if(E=E.value)try{_.hz(O,e,E.name,E.value)}catch(J){}};
ScL=function(l,e){l=new _.Ac(l.document.documentElement);l.start(D2x,e);return l};
Qru=function(l){var e=l.document.documentElement;e.addEventListener("click",function(O){ffM(e,O)});
e.addEventListener("touchstart",function(O){BHu(O)});
e.addEventListener("mousedown",function(O){BHu(O)})};
lXT=function(l,e,O,E){E=E===void 0?!1:E;e=new x2p(e||l,O||l);return{x:l.x+((E===void 0?0:E)?e.lengthX*-1:e.lengthX)*.2,y:l.y+((E===void 0?0:E)?e.lengthY*-1:e.lengthY)*.2}};
eVM=function(l){if(!l)return!1;var e=l.status==="OK"||l.status==="LIVE_STREAM_OFFLINE",O,E,J,z=(J=(O=l.errorScreen)==null?void 0:O.playerLegacyDesktopYpcTrailerRenderer)!=null?J:(E=l.errorScreen)==null?void 0:E.ypcTrailerRenderer;return!!e||!!z};
_.O$A=function(l,e){if(!l)return!1;var O,E=(O=l.errorScreen)==null?void 0:O.playerLegacyDesktopYpcOfferRenderer,J;e=!!(e==null?0:(J=e.playerOverlayRenderer)==null?0:J.gatedActionsOverlayRenderer);return!!eVM(l)||!!E||!!e};
Xzu=function(l){return EQt(l,0,"gclid",l.search(J_V))>=0||EQt(l,0,"gad_source",l.search(J_V))>=0};
M_p=function(l){var e=[],O=0;return{clear:function(){O=e.length=0},
push:function(E){e[O]=E;O=(O+1)%l},
iterate:function(){return function J(){var z,M,Z,u;return _.zVA(J,function(d){switch(d.nextAddress){case 1:_.VE(d,2),z=e.length,M=0;case 4:if(!(M<z)){d.jumpTo(2);break}Z=O+M;u=_.b$d;return _.C(d,e[Z%z],7);case 7:u(d.yieldResult);M++;d.jumpTo(4);break;case 2:_.MR(d),_.ZU(d,0)}})}()}}};
V_V=function(l){l.eventsToIgnore||(l.eventsToIgnore=[]);var e=l.eventsToIgnore.map(S3W),O=new Set(e),E=M_p(l.bufferSize);return{flush:function(){var J=Array.from(E.iterate());E.clear();J=J.map(function(z){return{name:z.name,timestamp:z.startTime,attributes:z.attributes}});
return JSON.stringify(J)},
onSpanStart:function(J){J.name==="event"&&O.has(J.attributes.type)||E.push(J)}}};
Z$q=function(l){l=V_V(l);var e=l.flush;cfd({onSpanStart:l.onSpanStart});n02.subscribe("handleError",function(O){try{O.params.breadcrumbs=e()}catch(E){_.UW(E,"WARNING")}})};
uox=function(l,e,O){var E=l.endTime;if(E==null)throw Error("ij");O=_.qz(vNL)(l.name,E-l.startTime,l.startTime,{webTracing:l.attributes},O,e);if(l.children)for(l=_.b(l.children),E=l.next();!E.done;E=l.next())uox(E.value,e,O)};
WUx=function(){var l=l===void 0?CCt:l;for(var e={},O=_.b(l.enabledSpansArray),E=O.next();!E.done;E=O.next())e[E.value]=!0;if(l.exportToCsi||l.exportBreadcrumbs)e={enabledSpans:e},z4={sessionId:e.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:e.enabledSpans};l.exportBreadcrumbs&&Z$q({eventsToIgnore:oQV,bufferSize:l.bufferSize});l.exportToCsi&&cfd($yx)};
dyA=function(l){return new Promise(function(e){window.setTimeout(e,l)})};
gQp=function(l){var e={bicf:function(z){l.ckr=z},
blc:function(){return l.getLatestChallengeResponse()},
bcr:function(z){l.kWq.push(z)}},O=window.top;
O.ntpevasrs=e;if(O.ntpqfbel!==void 0)for(var E=_.b(O.ntpqfbel),J=E.next();!J.done;J=E.next())J=J.value,J(e);O.ntpqfbel=void 0};
i$x=function(l){return _.V(function(e){if(e.nextAddress==1)return _.b1(e,2),_.C(e,l.tll(),4);if(e.nextAddress!=2)return _.Q2(e,0);_.u1(e);_.Cl(e)})};
wzT=function(l){var e,O;(e=l.ytcsi)==null||(O=e.tick)==null||O.call(e,"pot_ist")};
A_T=function(l){if(l instanceof Error){var e=_.vK("yt.logging.errors.log");e&&e(l,"WARNING")}};
nQp=function(l){try{var e=JSON.parse(l);if(e.bgChallenge)return e}catch(O){}};
kUq=function(){var l=window,e={networkStatusManagerPromise:_.V2().resolve(new I88(_.xP)),initialChallengeSli:_.a("wpo_att_sli")?new _.FhA("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};l=l===void 0?window:l;var O=l.ytAtR,E;e==null||(E=e.initialChallengeSli)==null||_.nN(E);if(O){if(O=nQp(O)){var J;e==null||(J=e.initialChallengeSli)==null||_.a2(J,"SUCCESS");aXd(O,e)}l.ytAtR=void 0}else l.ytAtRC=function(z){if(z=nQp(z)){var M;e==null||(M=e.initialChallengeSli)==null||
_.a2(M,"SUCCESS");aXd(z,e);l.ytAtRC=void 0}}};
y_T=function(){if(IXW)return IXW;try{var l=_.i$("IFRAME");_.H2(l,_.OP(myt));l.sandbox.add("allow-same-origin");l.style.display="none";document.body.appendChild(l);return IXW=l}catch(e){l=new _.Hk("Failed to create sandbox iframe"),_.UW(l)}};
pzu=function(l){var e,O;return(O=l==null?void 0:(e=l.contentWindow)==null?void 0:e.fetch)!=null?O:window.fetch};
KUd=function(l){var e,O;return(O=l==null?void 0:(e=l.contentWindow)==null?void 0:e.JSON.parse)!=null?O:JSON.parse};
jj2=function(l){var e,O;return(O=l==null?void 0:(e=l.contentWindow)==null?void 0:e.Request)!=null?O:window.Request};
FU8=function(){if(fCp()==="hidden")var l="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else fCp()==="visible"&&(l="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",H$u=null);l&&c_x(l)};
c_x=function(l){if(l==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||l==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(fXV===l)return;fXV=l}var e=9E4+Math.random()*2E3;if(l!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.uN()>e)&&fCp()==="visible"){e=-1;H$u&&(e=Math.round((0,_.VZ)()-H$u));var O=String;var E=_.vK("_fact",window);E=E==null||E==-1?-1:Math.max(Date.now()-E,0);_.Bm("foregroundHeartbeat",{firstActivityMs:O(E),clientDocumentNonce:$82,index:String(RVx),lastEventDeltaMs:String(e),trigger:l});
_.zJ("_fact",-1,window);RVx++;H$u=(0,_.VZ)()}};
_.TRL=function(){try{return!!self.sessionStorage}catch(l){return!1}};
sjx=function(){var l=navigator;return new Promise(function(e,O){var E;(E=l.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?l.webkitTemporaryStorage.queryUsageAndQuota(function(J,z){e({usage:J,quota:z})},function(J){O(J)}):O(Error("qj"))})};
GUW=function(l,e){var O={errorSeverity:e.errorSeverity.toString(),wizFeatureFlags:Object.entries(e.featureFlags).join("\n")};MbM(e,O);e=e.errorSeverity;e===3?_.UW(l,"ERROR",void 0,void 0,void 0,O):e===2&&_.UW(l,"WARNING",void 0,void 0,void 0,O);_.a("cow_if_errors_in_popup")&&e===3&&l.message.indexOf("<If>")!==-1&&window.alert(l.message)};
BRA=function(l,e,O){l.componentType!==c3&&O instanceof HTMLElement&&e&&!_.a("cow_logging_in_component_wrapper")&&wrx(O,e,!0)};
LUT=function(){if(!PCV){PCV=!0;var l=Object.assign({},{enableLazyTsx:_.a("mweb_enable_wiz_lazy_tsx")||_.a("kevlar_enable_wiz_lazy_tsx")||_.a("creator_enable_wiz_lazy_tsx")||Uyg,flushRenderEffectsDuringRender:!0},{handleError:GUW,enableComponentStacksInErrorMessages:!1});Object.assign(_.Zc,l);HZu=YbV;wmT=BRA;TAW=DNW;FBM=S_x;_.a("ytwiz_enable_debug_component_props")&&(l=document.body.firstElementChild,window.ng||l.__ngContext__||(l.__ngContext__={},l.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
hVd))}};
t_u=function(l,e,O){e=e===void 0?{}:e;var E,J=(E=_.I(l.commandMetadata,_.V4))==null?void 0:E.url;E=e.form||{};!O||E.element||E.skipDefaultElement||(e.form=e.form||{},e.form.element=O);if(J&&J!=="/service_ajax")return{type:0,command:l,form:e.form};if(_.a("kevlar_service_command_check")){if(_.SN(_.V2().resolve(_.Um),l))return Object.assign({},{type:1,command:l},e)}else{var z;if((z=_.I(l.commandMetadata,_.V4))==null?0:z.apiUrl)return Object.assign({},{type:1,command:l},e)}return{type:2,command:l,form:e.form}};
qbd=function(l){if(l.form){var e=l.form,O=Object.assign({},e);e=e.element;O=(delete O.element,O);if(e)return[_.ii(e,[l.command,O,l.commandController])]}return[]};
vQd=function(l){if(l.form){var e=l.form,O=Object.assign({},e);e=e.element;O=(delete O.element,O);e&&_.wQ(e,[l.command],e,O)}};
r_8=function(l,e,O){var E=new NRW(l,e),J=new kx(l,e,O);l={"/youtubei/v1/browse":new I2(l,e,O),"/youtubei/v1/player":E,"/youtubei/v1/navigation/resolve_url":new mC,"/youtubei/v1/next":J,"/youtubei/v1/guide":new yQ(O),"/youtubei/v1/search":new pN(l,e,O),"/youtubei/v1/reel/reel_item_watch":new KN(l,e,O),"/youtubei/v1/get_watch":new jd(E,J)};l["/youtubei/v1/account/account_menu"]=new Hn;l["/youtubei/v1/notification/get_notification_menu"]=new fN;return l};
Ti=function(){var l=_.V2().resolve(R2);return Promise.resolve(Dyq(l,_.Op.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
SbW=function(l){return l&&(l=_.sU(_.J9g(l)))?(new URLSearchParams(l)).get("service"):null};
Pn=function(l,e){_.WF(_.Gi(),function(){_.Yu("adl")});
_.V2().resolve(Qjx)(e);l=l.root;l.loadData&&l.loadData(e);(e==null?0:e.response)?_.a2(TEV(),"SUCCESS"):_.hG(new _.Hk("Lifecycle: No response in data",_.LH("IS_SHELL_LOAD"),e?e.page:"NO_PAGE",e?e.endpoint:"NO_ENDPOINT"));l.polymerController.$["page-manager"].lazyPrepareCriticalPages((e==null?void 0:e.page)||"",e.endpoint);var O,E;((E=_.I(e==null?void 0:(O=e.endpoint)==null?void 0:O.commandMetadata,_.V4))==null?0:E.webPageType)&&_.Om().dispatch(_.Bn(_.I(e.endpoint.commandMetadata,_.V4).webPageType))};
xyd=function(){var l,e;return _.V(function(O){switch(O.nextAddress){case 1:l=window;if(!l.getDataPromise){O.jumpTo(2);break}_.b1(O,3);return _.C(O,l.getDataPromise(),5);case 5:return O.return(O.yieldResult);case 3:return _.u1(O),_.C(O,Ti(),6);case 6:return O.return(O.yieldResult);case 2:if(l.getInitialData)return e=l.getInitialData(),l.getInitialData=void 0,O.return(e);throw Error("sj`"+_.Op.location.href);}})};
eOT=function(){_.Yd("CSI_SERVICE_NAME","youtube");_.Pb({loadType:"cold"});_.a("kevlar_log_lcp")&&lyV(function(l){_.Yu("lcp",l.value)})};
OM8=function(){var l=_.vD(document.location.href,"enable");l&&l.indexOf("scraper")>-1&&_.Yd("ADD_SCRAPER_ATTRIBUTES",!0)};
bMT=function(l){var e=l.root;l=[Efp,JRW,_.UU];_.a("web_feedback_endpoint_autolog_allowlist_killswitch")&&l.push(_.Yx,XEg);zOp(function(O,E){return t_u(O,E,e)},function(O){if(!O.command)return[];
var E;((E=O.form)==null?0:E.element)?O.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},O.form,{endpoint:O.command})})):e.handleNavigate(O);return[]},l);
_.V2().addProvider({provide:_.Zh,useValue:_.n4.instance})};
Vzx=function(){var l={},e={},O;for(O in Mzq){var E=_.b(_.AF(Mzq[O],void 0,"NBH2te"));l[O]=E.next().value;e[O]=E.next().value}return[l,function(J){for(var z in J){var M=void 0;(M=e[z])==null||M(J[z])}}]};
_.CmA=function(l,e){var O=_.mm.getValueByKeys(l,"contents","twoColumnWatchNextResults","results","results","contents"),E=_.mm.getValueByKeys(l,"contents","twoColumnWatchNextResults","playlist","playlist")||null,J=null,z=null;if(E)J=_.mm.getValueByKeys(E,"titleText"),z=_.mm.unsafeClone(_.mm.getValueByKeys(E,"longBylineText")),O="",z&&(O=_.lG(z)),z=_.xp(O);else if(O){O=_.b(O);for(var M=O.next();!M.done;M=O.next())M=M.value,M.videoPrimaryInfoRenderer&&(J=_.mm.getValueByKeys.apply(_.mm,[M].concat(_.kA(ZM8)))),
M.videoSecondaryInfoRenderer&&(z=_.mm.getValueByKeys.apply(_.mm,[M].concat(_.kA(uld))))}else _.Nz(Error("xj"));var Z;l.currentVideoEndpoint?Z=l.currentVideoEndpoint:_.Nz(Error("yj"));var u;e&&(u=_.mm.getValueByKeys(e,"playabilityStatus","miniplayer","miniplayerRenderer"));l={miniplayerTitle:J,miniplayerSubtitle:z,watchEndpoint:Z,playlistData:E};u&&(l.miniplayerRenderer=u);return l};
ofx=function(l){if(l)return _.Ut(l)};
_.$6u=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
WDd=function(l){return l.videoDuration?l.numTaps>1&&l.tapDirection!==0?_.hc(l.draggedTime/l.videoDuration,0,1):_.hc((l.playedTime||0)/l.videoDuration,0,1):0};
d6T=function(l){return l.videoDuration?l.isDragging||l.numTaps>1&&l.tapDirection!==0?_.hc(l.draggedTime/l.videoDuration,0,1):_.hc((l.playedTime||0)/l.videoDuration,0,1):0};
iM2=function(l){var e,O,E;return _.I(l==null?void 0:(e=l.markersMap)==null?void 0:(O=e.find(function(J){return J.key==="HEATSEEKER"}))==null?void 0:(E=O.value)==null?void 0:E.heatmap,gfx)};
wEt=function(l){var e,O;return(O=(e=iM2(l))==null?void 0:e.heatMarkersDecorations)!=null?O:[]};
ARt=function(l){if(_.a("mweb_supported_chapters_killswitch"))return!0;var e;return!!(l==null?0:(e=l.markersMap)==null?0:e.find(function(O){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(O.key)}))};
_.nf2=function(l){var e=Object,O=e.assign,E;l={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(E=l==null?void 0:l.getPlayerState())!=null?E:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return O.call(e,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},l,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
ayx=function(l){return function(e){var O=l(),E,J=(E=O.playerApi)==null?void 0:E.getPlayerState();e&&e!==O.playerState&&(e===1||e===2)&&O.setState({playerState:J})}};
Iyp=function(l){return function(e){var O=l(),E=O.playerApi;E&&(e==null?void 0:e.type)==="newdata"&&(kTg&&(clearTimeout(kTg),kTg=void 0),_.a("web_shorts_use_progress_state_for_gapless")?(e=E==null?void 0:E.getProgressState(e==null?void 0:e.playertype),e=e.seekableEnd-e.seekableStart):e=E==null?void 0:E.getDuration(e==null?void 0:e.playertype),O.setState({playedTime:0,videoDuration:e}))}};
m6p=function(l){return function(e){var O=l(),E=O.playerApi;if(E){var J=E.getPresentingPlayerType();_.a("web_shorts_use_progress_state_for_gapless")?(E=E.getProgressState(J),E=E.seekableEnd-E.seekableStart):E=E.getDuration(J);O.setState({playedTime:e,videoDuration:E})}}};
KDW=function(l){var e=l.element;var O=l.veType;var E=l.storedVisualElement===void 0?null:l.storedVisualElement;var J=l.elementIndex===void 0?0:l.elementIndex;l=l.clientYouTubeData;var z=_.P9();z!==yRW&&(pEd.clear(),yRW=z);if(e.visualElement&&pEd.has(e.visualElement))return null;if(E&&pEd.has(E))return e.visualElement=E,null;O=_.mX(_.yN(),{veType:O,elementIndex:J,clientYouTubeData:l});if(!O)return null;e.visualElement=O;pEd.add(O);return O};
_.LN=function(l,e,O,E){O=O===void 0?null:O;E=E===void 0?G$8:E;var J=J===void 0?null:J;st(function(){if(e){O instanceof Function&&(O=O());var z=KDW({element:e,veType:l,storedVisualElement:O,clientYouTubeData:void 0});z&&(Upx(e,J),E(z))}})};
HML=function(l){_.LN(112394,l,function(){return jVW},function(e){jVW=e})};
fyM=function(l,e){if(!l)return[];var O,E,J;l=((O=l.markersMap)==null?void 0:(E=O.find(function(z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(z.key)}))==null?void 0:(J=E.value)==null?void 0:J.chapters)||[];
!cRg(l)||(e==null?0:e.ignoreStub)||(l=[FDg()].concat(_.kA(l)));return l};
FDg=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
cRg=function(l){if(l.length===0)return!1;var e;return((e=_.I(l[0],tc))==null?void 0:e.timeRangeStartMillis)!==0};
qJ=function(l){return l?l.timeRangeStartMillis||0:0};
TNd=function(l,e){if(l.isDragging&&e)return l=ROW(l,e),l===-1?FDg():fyM(e)[l]};
ROW=function(l,e){return l.isDragging&&e?fyM(e,{ignoreStub:!0}).findIndex(function(O,E,J){O=sVx(l);return GTx(O,J,E).scrubberHovering}):-1};
sVx=function(l){return Object.assign({},l,{videoDuration:l.videoDuration*1E3,playedTime:l.playedTime*1E3,draggedTime:l.draggedTime*1E3})};
GTx=function(l,e,O){var E=qJ(_.I(e[O],tc));e=qJ(_.I(e[O+1],tc))||l.videoDuration;O=l.isDragging;var J;if(J=l.isDragging)J=l.draggedTime,J=J!==null&&J>=E&&J<e;var z=l.playedTime;return z!==null&&z>=E&&z<e?{videoPosition:"active",isScrubbing:O,scrubberHovering:J}:l.playedTime<E?{videoPosition:"pending",isScrubbing:O,scrubberHovering:J}:{videoPosition:"seen",isScrubbing:O,scrubberHovering:J}};
BNg=function(l,e){return l.videoPosition==="seen"||(e===void 0?0:e)>0};
PmM=function(l,e,O){e=l/e.storyboardInterval;var E=fyM(O);if(!E.length)return-e*72;O=0;E=_.b(E);for(var J=E.next();!J.done;J=E.next())if(qJ(_.I(J.value,tc))/1E3<l)O++;else break;return-(e*72)-O*56};
U6d=function(l){return l?l.width/l.columns:0};
YrT=function(l){return l.isHovering?l.hoveredTime:l.draggedTime};
hOL=function(l,e){l=l.draggedTime*1E3;return l>=e.visibleTimeRangeStartMillis&&l<=e.visibleTimeRangeEndMillis};
_.LDx=function(l){if(l===void 0||Number.isNaN(l))return"--:--";var e=Math.abs(Math.floor(l)),O=Math.floor(e/86400),E=Math.floor(e%86400/3600),J=Math.floor(e%3600/60);e=Math.floor(e%60);var z="";O>0&&(z+=O+":",E<10&&(z+="0"));if(O>0||E>0)z+=E+":",J<10&&(z+="0");z+=J+":";e<10&&(z+="0");z+=e;return l>=0?z:"-"+z};
tzL=function(l,e){return function(){var O=YrT(l());var E=e();var J=l().playerApi;if(J&&J.getNumberOfStoryboardLevels()!==0){var z=J.getStoryboardFrameIndex(O,1);z!==-1?E=J.getStoryboardFrame(z,1):(O=J.getStoryboardFrameIndex(O,0),J=J.getStoryboardFrame(O,0),E&&J&&(J.height*=3,J.width*=3),E=J)}else E=null;if(!E)return null;e()&&(E.width=90*E.columns,E.height=160*E.rows);return E}};
_.vn=function(l){if(!l||l.getVideoData)return l};
qrp=function(){var l;return{playerApi:(l=_.gC())!=null?l:void 0}};
vfL=function(l){var e;_.V(function(O){if(O.nextAddress==1)return _.C(O,_.dC(),2);if(e=O.yieldResult)e.unMute(!0),e.setVolume(l,!0);_.Cl(O)})};
NNp=function(l,e){l&&(l.value=""+e,l.style.setProperty("--gradient-percent",e+"%"))};
rRq=function(l){var e;return(e=l==null?void 0:l.value)!=null?e:0};
D62=function(){var l;_.V(function(e){if(e.nextAddress==1)return _.C(e,_.dC(),2);l=e.yieldResult;if(!l)return e.return();l.isMuted()?l.unMute(!0):l.mute(!0);_.Cl(e)})};
Srx=function(l){var e=_.V2().resolve(_.NJ).getPlayerElement();e&&l&&(l===1?e.pause():e.play())};
QVu=function(l){_.dQ(l,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
x6p=function(l){_.dQ(l,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
eiL=function(l){return _.fH(l.document.body,function(){return _.W(l6d,null)})};
O5L=function(){var l=window.performance.getEntriesByType("navigation");return l?l.map(function(e){return e.type}).includes("reload"):!1};
Z5d=function(){rd(rd(rd(rd(rd(rd(rd(_.V2().resolve(_.DL),_.Esx),_.JyA),_.XGM),_.zid),_.b5L),_.MCg),_.VCV)};
udx=function(l,e){e=e===void 0?!1:e;var O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return e||!_.a("kevlar_shorts_seedless_retry_initial_load")||(O=window,E=!(!O.getDataPromise&&!O.getInitialData),E)?_.C(M,xyd(),2):(setTimeout(udx.bind(window,l,!0),1E3),M.return());if(M.nextAddress!=3)return J=M.yieldResult,_.C(M,CWq(J),3);z=M.yieldResult;Pn(l,z);_.Cl(M)})};
CWq=function(l){var e;if((e=l.response)==null||!e.replacementEndpoint)return _.Ag(l);e=_.V2().resolve(R2);l=l.response;_.I(l.replacementEndpoint,_.jT)&&l.sequenceContinuation&&(_.I(l.replacementEndpoint,_.jT).sequenceParams=l.sequenceContinuation);return Sd(e,l.replacementEndpoint,{},_.Op.location.href,"shorts",function(){},function(){return!1})};
osq=function(l){var e=_.Om(),O,E=_.I((O=l.response)==null?void 0:O.frameworkUpdates,ep),J;O=_.I((J=l.playerResponse)==null?void 0:J.frameworkUpdates,ep);var z;l=_.I((z=l.reelWatchSequenceResponse)==null?void 0:z.frameworkUpdates,ep);E&&_.IM(E,e);O&&_.IM(O,e);l&&_.IM(l,e)};
$FV=function(l){var e;_.a("enable_redirect_linking_for_desktop_web_client")&&((e=window.location.hash)==null?0:e.includes("redirect_state"))&&l.url&&(l.url=l.url.toString()+window.location.hash)};
gsx=function(l){var e=_.V2(),O=e.resolve(R2);e=e.resolve(_.WvT);l.endpoint&&(O=dF8(O,l.endpoint),O.content&&l.response&&_.xx(e,l.response,O.content),O.player&&l.playerResponse&&_.xx(e,l.playerResponse,O.player),O.reelSequence&&l.reelWatchSequenceResponse&&_.xx(e,l.reelWatchSequenceResponse,O.reelSequence))};
lv=function(l,e){osq(e);var O;(e==null?0:e.url)&&((O=window.location.hash)==null?0:O.includes("redirect_state"))&&($FV(e),(O=SbW(e.url))&&_.Wb(l.root,"yt-initialize-third-party",[O,e]));gsx(e);O=_.V2();var E=O.resolve(i5u);e.playerResponse&&O.resolve(wGW).handleResponse(e.playerResponse);if(e.playerResponse){O=void 0;if(_.a("ab_v_vid_sig")&&e.endpoint){var J,z=(J=_.I(e.endpoint,_.ej))!=null?J:_.I(e.endpoint,_.jT);z&&(O=z.videoId)}Ayx(E,e.playerResponse,O)}e.playerResponse&&NSt(e.playerResponse)&&
_.a("web_enable_ab_rsp_cl")?J1x().then(function(){nsg(E,e.playerResponse);Pn(l,e)}):Pn(l,e)};
kcu=function(l){if(l=l.root.data){var e=_.V2().resolve(a6p);l.endpoint&&(l.response&&e.handleResponse(l.response,void 0,document.querySelector("ytd-app")),l.playerResponse&&e.handleResponse(l.playerResponse),l.reelWatchSequenceResponse&&e.handleResponse(l.reelWatchSequenceResponse))}};
I6x=function(l){var e,O,E,J,z,M;return _.V(function(Z){switch(Z.nextAddress){case 1:e=window;if(!e.getDataPromise){Z.jumpTo(2);break}_.b1(Z,3);return _.C(Z,e.getDataPromise(),5);case 5:O=Z.yieldResult;lv(l,O);_.Q2(Z,4);break;case 3:return _.u1(Z),_.C(Z,Ti(),6);case 6:E=Z.yieldResult,Pn(l,E);case 4:return Z.return();case 2:if(!_.a("sw_nav_preload_pbj")){Z.jumpTo(7);break}e.fetchInitialData=function(){var u;return _.V(function(d){if(d.nextAddress==1)return _.C(d,Ti(),2);u=d.yieldResult;Pn(l,u);_.Cl(d)})};
if(e.getInitialData){e.loadInitialData=function(u){lv(l,u)};
J=e.getInitialData();e.getInitialData=void 0;lv(l,J);Z.jumpTo(8);break}e.fetchInitialData=void 0;return _.C(Z,Ti(),9);case 9:z=Z.yieldResult,Pn(l,z);case 8:return Z.return();case 7:e.getInitialData?(M=e.getInitialData(),e.getInitialData=void 0,lv(l,M)):e.loadInitialData=function(u){lv(l,u)},_.Cl(Z)}})};
mFT=function(l){var e=0;return function(){return e<l.length?{done:!1,value:l[e++]}:{done:!0}}};
yy2=typeof Object.defineProperties=="function"?Object.defineProperty:function(l,e,O){if(l==Array.prototype||l==Object.prototype)return l;l[e]=O.value;return l};
pGW=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<l.length;++e){var O=l[e];if(O&&O.Math==Math)return O}throw Error("a");};
_.Ji=pGW(this);eR=function(l,e){if(e)a:{var O=_.Ji;l=l.split(".");for(var E=0;E<l.length-1;E++){var J=l[E];if(!(J in O))break a;O=O[J]}l=l[l.length-1];E=O[l];e=e(E);e!=E&&e!=null&&yy2(O,l,{configurable:!0,writable:!0,value:e})}};
eR("Symbol",function(l){if(l)return l;var e=function(z,M){this.$jscomp$symbol$id_=z;yy2(this,"description",{configurable:!0,writable:!0,value:M})};
e.prototype.toString=function(){return this.$jscomp$symbol$id_};
var O="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",E=0,J=function(z){if(this instanceof J)throw new TypeError("b");return new e(O+(z||"")+"_"+E++,z)};
return J});
eR("Symbol.iterator",function(l){if(l)return l;l=Symbol("c");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),O=0;O<e.length;O++){var E=_.Ji[e[O]];typeof E==="function"&&typeof E.prototype[l]!="function"&&yy2(E.prototype,l,{configurable:!0,writable:!0,value:function(){return Kv2(mFT(this))}})}return l});
eR("Symbol.asyncIterator",function(l){return l?l:Symbol("d")});
var Kv2=function(l){l={next:l};l[Symbol.iterator]=function(){return this};
return l},j02=typeof Object.create=="function"?Object.create:function(l){var e=function(){};
e.prototype=l;return new e},H52=function(){function l(){function O(){}
new O;Reflect.construct(O,[],function(){});
return new O instanceof O}
if(typeof Reflect!="undefined"&&Reflect.construct){if(l())return Reflect.construct;var e=Reflect.construct;return function(O,E,J){O=e(O,E);J&&Reflect.setPrototypeOf(O,J.prototype);return O}}return function(O,E,J){J===void 0&&(J=O);
J=j02(J.prototype||Object.prototype);return Function.prototype.apply.call(O,J,E)||J}}(),cyx;
if(typeof Object.setPrototypeOf=="function")cyx=Object.setPrototypeOf;else{var Fv2;a:{var f6u={a:!0},RiM={};try{RiM.__proto__=f6u;Fv2=RiM.a;break a}catch(l){}Fv2=!1}cyx=Fv2?function(l,e){l.__proto__=e;if(l.__proto__!==e)throw new TypeError("e`"+l);return l}:null}O9=cyx;
_.m=function(l,e){l.prototype=j02(e.prototype);l.prototype.constructor=l;if(O9)O9(l,e);else for(var O in e)if(O!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(e,O);E&&Object.defineProperty(l,O,E)}else l[O]=e[O];l.superClass_=e.prototype};
_.b=function(l){var e=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(e)return e.call(l);if(typeof l.length=="number")return{next:mFT(l)};throw Error("f`"+String(l));};
lJ=function(l){for(var e,O=[];!(e=l.next()).done;)O.push(e.value);return O};
_.kA=function(l){return l instanceof Array?l:lJ(_.b(l))};
_.E9=function(l){return Typ(l,l)};
Typ=function(l,e){l.raw=e;Object.freeze&&(Object.freeze(l),Object.freeze(e));return l};
JZ=function(l,e){return Object.prototype.hasOwnProperty.call(l,e)};
s0T=typeof Object.assign=="function"?Object.assign:function(l,e){for(var O=1;O<arguments.length;O++){var E=arguments[O];if(E)for(var J in E)JZ(E,J)&&(l[J]=E[J])}return l};
eR("Object.assign",function(l){return l||s0T});
var Gcd=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Byq=function(l){if(l.isRunning_)throw new TypeError("h");
l.isRunning_=!0};
Gcd.prototype.JSC$6776_next_=function(l){this.yieldResult=l};
var PWW=function(l,e){l.abruptCompletion_={exception:e,isException:!0};l.nextAddress=l.catchAddress_||l.finallyAddress_};
Gcd.prototype.return=function(l){this.abruptCompletion_={return:l};this.nextAddress=this.finallyAddress_};
_.C=function(l,e,O){l.nextAddress=O;return{value:e}};
Gcd.prototype.jumpTo=function(l){this.nextAddress=l};
_.Cl=function(l){l.nextAddress=0};
_.b1=function(l,e,O){l.catchAddress_=e;O!=void 0&&(l.finallyAddress_=O)};
_.VE=function(l,e){l.catchAddress_=0;l.finallyAddress_=e||0};
_.Q2=function(l,e,O){l.nextAddress=e;l.catchAddress_=O||0};
_.u1=function(l,e){l.catchAddress_=e||0;e=l.abruptCompletion_.exception;l.abruptCompletion_=null;return e};
_.MR=function(l,e,O,E){E?l.finallyContexts_[E]=l.abruptCompletion_:l.finallyContexts_=[l.abruptCompletion_];l.catchAddress_=e||0;l.finallyAddress_=O||0};
_.ZU=function(l,e,O){O=l.finallyContexts_.splice(O||0)[0];(O=l.abruptCompletion_=l.abruptCompletion_||O)?O.isException?l.nextAddress=l.catchAddress_||l.finallyAddress_:O.jumpTo!=void 0&&l.finallyAddress_<O.jumpTo?(l.nextAddress=O.jumpTo,l.abruptCompletion_=null):l.nextAddress=l.finallyAddress_:l.nextAddress=e};
UFu=function(l){this.JSC$6781_context_=new Gcd;this.program_=l};
hiT=function(l,e){Byq(l.JSC$6781_context_);var O=l.JSC$6781_context_.yieldAllIterator_;if(O)return YE8(l,"return"in O?O["return"]:function(E){return{value:E,done:!0}},e,l.JSC$6781_context_.return);
l.JSC$6781_context_.return(e);return X4(l)};
YE8=function(l,e,O,E){try{var J=e.call(l.JSC$6781_context_.yieldAllIterator_,O);if(!(J instanceof Object))throw new TypeError("g`"+J);if(!J.done)return l.JSC$6781_context_.isRunning_=!1,J;var z=J.value}catch(M){return l.JSC$6781_context_.yieldAllIterator_=null,PWW(l.JSC$6781_context_,M),X4(l)}l.JSC$6781_context_.yieldAllIterator_=null;E.call(l.JSC$6781_context_,z);return X4(l)};
X4=function(l){for(;l.JSC$6781_context_.nextAddress;)try{var e=l.program_(l.JSC$6781_context_);if(e)return l.JSC$6781_context_.isRunning_=!1,{value:e.value,done:!1}}catch(O){l.JSC$6781_context_.yieldResult=void 0,PWW(l.JSC$6781_context_,O)}l.JSC$6781_context_.isRunning_=!1;if(l.JSC$6781_context_.abruptCompletion_){e=l.JSC$6781_context_.abruptCompletion_;l.JSC$6781_context_.abruptCompletion_=null;if(e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};
Lvt=function(l){this.next=function(e){Byq(l.JSC$6781_context_);l.JSC$6781_context_.yieldAllIterator_?e=YE8(l,l.JSC$6781_context_.yieldAllIterator_.next,e,l.JSC$6781_context_.JSC$6776_next_):(l.JSC$6781_context_.JSC$6776_next_(e),e=X4(l));return e};
this.throw=function(e){Byq(l.JSC$6781_context_);l.JSC$6781_context_.yieldAllIterator_?e=YE8(l,l.JSC$6781_context_.yieldAllIterator_["throw"],e,l.JSC$6781_context_.JSC$6776_next_):(PWW(l.JSC$6781_context_,e),e=X4(l));return e};
this.return=function(e){return hiT(l,e)};
this[Symbol.iterator]=function(){return this}};
_.zVA=function(l,e){e=new Lvt(new UFu(e));O9&&l.prototype&&O9(e,l.prototype);return e};
tCu=function(l){function e(E){return l.next(E)}
function O(E){return l.throw(E)}
return new Promise(function(E,J){function z(M){M.done?E(M.value):Promise.resolve(M.value).then(e,O).then(z,J)}
z(l.next())})};
_.V=function(l){return tCu(new Lvt(new UFu(l)))};
tOx=function(l){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return l};
this.next=function(e){return Promise.resolve(l.next(e))};
this["throw"]=function(e){return new Promise(function(O,E){var J=l["throw"];J!==void 0?O(J.call(l,e)):(O=l["return"],O!==void 0&&O.call(l),E(new TypeError("i")))})};
l["return"]!==void 0&&(this["return"]=function(e){return Promise.resolve(l["return"](e))})};
_.ke=function(){for(var l=Number(this),e=[],O=l;O<arguments.length;O++)e[O-l]=arguments[O];return e};
_.b$d=function(l){return l};
eR("globalThis",function(l){return l||_.Ji});
eR("Reflect",function(l){return l?l:{}});
eR("Reflect.construct",function(){return H52});
eR("Reflect.setPrototypeOf",function(l){return l?l:O9?function(e,O){try{return O9(e,O),!0}catch(E){return!1}}:null});
eR("Promise",function(l){function e(){this.batch_=null}
function O(M){return M instanceof J?M:new J(function(Z){Z(M)})}
if(l&&(typeof _.Ji.PromiseRejectionEvent!=="undefined"||!_.Ji.Promise||_.Ji.Promise.toString().indexOf("[native code]")===-1))return l;e.prototype.asyncExecute=function(M){if(this.batch_==null){this.batch_=[];var Z=this;this.asyncExecuteFunction(function(){Z.executeBatch_()})}this.batch_.push(M)};
var E=_.Ji.setTimeout;e.prototype.asyncExecuteFunction=function(M){E(M,0)};
e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var M=this.batch_;this.batch_=[];for(var Z=0;Z<M.length;++Z){var u=M[Z];M[Z]=null;try{u()}catch(d){this.asyncThrow_(d)}}}this.batch_=null};
e.prototype.asyncThrow_=function(M){this.asyncExecuteFunction(function(){throw M;})};
var J=function(M){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var Z=this.createResolveAndReject_();try{M(Z.resolve,Z.reject)}catch(u){Z.reject(u)}};
J.prototype.createResolveAndReject_=function(){function M(d){return function(g){u||(u=!0,d.call(Z,g))}}
var Z=this,u=!1;return{resolve:M(this.resolveTo_),reject:M(this.JSC$6797_reject_)}};
J.prototype.resolveTo_=function(M){if(M===this)this.JSC$6797_reject_(new TypeError("j"));else if(M instanceof J)this.settleSameAsPromise_(M);else{a:switch(typeof M){case "object":var Z=M!=null;break a;case "function":Z=!0;break a;default:Z=!1}Z?this.resolveToNonPromiseObj_(M):this.fulfill_(M)}};
J.prototype.resolveToNonPromiseObj_=function(M){var Z=void 0;try{Z=M.then}catch(u){this.JSC$6797_reject_(u);return}typeof Z=="function"?this.settleSameAsThenable_(Z,M):this.fulfill_(M)};
J.prototype.JSC$6797_reject_=function(M){this.settle_(2,M)};
J.prototype.fulfill_=function(M){this.settle_(1,M)};
J.prototype.settle_=function(M,Z){if(this.state_!=0)throw Error("k`"+M+"`"+Z+"`"+this.state_);this.state_=M;this.result_=Z;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
J.prototype.scheduleUnhandledRejectionCheck_=function(){var M=this;E(function(){if(M.notifyUnhandledRejection_()){var Z=_.Ji.console;typeof Z!=="undefined"&&Z.error(M.result_)}},1)};
J.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var M=_.Ji.CustomEvent,Z=_.Ji.Event,u=_.Ji.dispatchEvent;if(typeof u==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof Z==="function"?M=new Z("unhandledrejection",{cancelable:!0}):(M=_.Ji.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.result_;return u(M)};
J.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var M=0;M<this.onSettledCallbacks_.length;++M)z.asyncExecute(this.onSettledCallbacks_[M]);this.onSettledCallbacks_=null}};
var z=new e;J.prototype.settleSameAsPromise_=function(M){var Z=this.createResolveAndReject_();M.callWhenSettled_(Z.resolve,Z.reject)};
J.prototype.settleSameAsThenable_=function(M,Z){var u=this.createResolveAndReject_();try{M.call(Z,u.resolve,u.reject)}catch(d){u.reject(d)}};
J.prototype.then=function(M,Z){function u(n,k){return typeof n=="function"?function(y){try{d(n(y))}catch(c){g(c)}}:k}
var d,g,w=new J(function(n,k){d=n;g=k});
this.callWhenSettled_(u(M,d),u(Z,g));return w};
J.prototype.catch=function(M){return this.then(void 0,M)};
J.prototype.callWhenSettled_=function(M,Z){function u(){switch(d.state_){case 1:M(d.result_);break;case 2:Z(d.result_);break;default:throw Error("l`"+d.state_);}}
var d=this;this.onSettledCallbacks_==null?z.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};
J.resolve=O;J.reject=function(M){return new J(function(Z,u){u(M)})};
J.race=function(M){return new J(function(Z,u){for(var d=_.b(M),g=d.next();!g.done;g=d.next())O(g.value).callWhenSettled_(Z,u)})};
J.all=function(M){var Z=_.b(M),u=Z.next();return u.done?O([]):new J(function(d,g){function w(y){return function(c){n[y]=c;k--;k==0&&d(n)}}
var n=[],k=0;do n.push(void 0),k++,O(u.value).callWhenSettled_(w(n.length-1),g),u=Z.next();while(!u.done)})};
return J});
var z8=function(l,e,O){if(l==null)throw new TypeError("m`"+O);if(e instanceof RegExp)throw new TypeError("n`"+O);return l+""};
eR("String.prototype.startsWith",function(l){return l?l:function(e,O){var E=z8(this,e,"startsWith"),J=E.length,z=e.length;O=Math.max(0,Math.min(O|0,E.length));for(var M=0;M<z&&O<J;)if(E[O++]!=e[M++])return!1;return M>=z}});
eR("Object.setPrototypeOf",function(l){return l||O9});
eR("Symbol.dispose",function(l){return l?l:Symbol("o")});
eR("SuppressedError",function(l){function e(O,E,J){if(!(this instanceof e))return new e(O,E,J);J=Error(J);"stack"in J&&(this.stack=J.stack);this.message=J.message;this.error=O;this.suppressed=E}
if(l)return l;_.m(e,Error);e.prototype.name="SuppressedError";return e});
var qE2=function(l,e,O){l instanceof String&&(l=String(l));for(var E=l.length,J=0;J<E;J++){var z=l[J];if(e.call(O,z,J,l))return{i:J,v:z}}return{i:-1,v:void 0}};
eR("Array.prototype.find",function(l){return l?l:function(e,O){return qE2(this,e,O).v}});
eR("WeakMap",function(l){function e(){}
function O(u){var d=typeof u;return d==="object"&&u!==null||d==="function"}
function E(u){if(!JZ(u,z)){var d=new e;yy2(u,z,{value:d})}}
function J(u){var d=Object[u];d&&(Object[u]=function(g){if(g instanceof e)return g;Object.isExtensible(g)&&E(g);return d(g)})}
if(function(){if(!l||!Object.seal)return!1;try{var u=Object.seal({}),d=Object.seal({}),g=new l([[u,2],[d,3]]);if(g.get(u)!=2||g.get(d)!=3)return!1;g.delete(u);g.set(d,4);return!g.has(u)&&g.get(d)==4}catch(w){return!1}}())return l;
var z="$jscomp_hidden_"+Math.random();J("freeze");J("preventExtensions");J("seal");var M=0,Z=function(u){this.JSC$6804_id_=(M+=Math.random()+1).toString();if(u){u=_.b(u);for(var d;!(d=u.next()).done;)d=d.value,this.set(d[0],d[1])}};
Z.prototype.set=function(u,d){if(!O(u))throw Error("p");E(u);if(!JZ(u,z))throw Error("q`"+u);u[z][this.JSC$6804_id_]=d;return this};
Z.prototype.get=function(u){return O(u)&&JZ(u,z)?u[z][this.JSC$6804_id_]:void 0};
Z.prototype.has=function(u){return O(u)&&JZ(u,z)&&JZ(u[z],this.JSC$6804_id_)};
Z.prototype.delete=function(u){return O(u)&&JZ(u,z)&&JZ(u[z],this.JSC$6804_id_)?delete u[z][this.JSC$6804_id_]:!1};
return Z});
eR("Map",function(l){if(function(){if(!l||typeof l!="function"||!l.prototype.entries||typeof Object.seal!="function")return!1;try{var Z=Object.seal({x:4}),u=new l(_.b([[Z,"s"]]));if(u.get(Z)!="s"||u.size!=1||u.get({x:4})||u.set({x:4},"t")!=u||u.size!=2)return!1;var d=u.entries(),g=d.next();if(g.done||g.value[0]!=Z||g.value[1]!="s")return!1;g=d.next();return g.done||g.value[0].x!=4||g.value[1]!="t"||!d.next().done?!1:!0}catch(w){return!1}}())return l;
var e=new WeakMap,O=function(Z){this[0]={};this[1]=z();this.size=0;if(Z){Z=_.b(Z);for(var u;!(u=Z.next()).done;)u=u.value,this.set(u[0],u[1])}};
O.prototype.set=function(Z,u){Z=Z===0?0:Z;var d=E(this,Z);d.list||(d.list=this[0][d.id]=[]);d.entry?d.entry.value=u:(d.entry={next:this[1],previous:this[1].previous,head:this[1],key:Z,value:u},d.list.push(d.entry),this[1].previous.next=d.entry,this[1].previous=d.entry,this.size++);return this};
O.prototype.delete=function(Z){Z=E(this,Z);return Z.entry&&Z.list?(Z.list.splice(Z.index,1),Z.list.length||delete this[0][Z.id],Z.entry.previous.next=Z.entry.next,Z.entry.next.previous=Z.entry.previous,Z.entry.head=null,this.size--,!0):!1};
O.prototype.clear=function(){this[0]={};this[1]=this[1].previous=z();this.size=0};
O.prototype.has=function(Z){return!!E(this,Z).entry};
O.prototype.get=function(Z){return(Z=E(this,Z).entry)&&Z.value};
O.prototype.entries=function(){return J(this,function(Z){return[Z.key,Z.value]})};
O.prototype.keys=function(){return J(this,function(Z){return Z.key})};
O.prototype.values=function(){return J(this,function(Z){return Z.value})};
O.prototype.forEach=function(Z,u){for(var d=this.entries(),g;!(g=d.next()).done;)g=g.value,Z.call(u,g[1],g[0],this)};
O.prototype[Symbol.iterator]=O.prototype.entries;var E=function(Z,u){var d=u&&typeof u;d=="object"||d=="function"?e.has(u)?d=e.get(u):(d=""+ ++M,e.set(u,d)):d="p_"+u;var g=Z[0][d];if(g&&JZ(Z[0],d))for(Z=0;Z<g.length;Z++){var w=g[Z];if(u!==u&&w.key!==w.key||u===w.key)return{id:d,list:g,index:Z,entry:w}}return{id:d,list:g,index:-1,entry:void 0}},J=function(Z,u){var d=Z[1];
return Kv2(function(){if(d){for(;d.head!=Z[1];)d=d.previous;for(;d.next!=d.head;)return d=d.next,{done:!1,value:u(d)};d=null}return{done:!0,value:void 0}})},z=function(){var Z={};
return Z.previous=Z.next=Z.head=Z},M=0;
return O});
eR("Set",function(l){if(function(){if(!l||typeof l!="function"||!l.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),E=new l(_.b([O]));if(!E.has(O)||E.size!=1||E.add(O)!=E||E.size!=1||E.add({x:4})!=E||E.size!=2)return!1;var J=E.entries(),z=J.next();if(z.done||z.value[0]!=O||z.value[1]!=O)return!1;z=J.next();return z.done||z.value[0]==O||z.value[0].x!=4||z.value[1]!=z.value[0]?!1:J.next().done}catch(M){return!1}}())return l;
var e=function(O){this.JSC$6818_map_=new Map;if(O){O=_.b(O);for(var E;!(E=O.next()).done;)this.add(E.value)}this.size=this.JSC$6818_map_.size};
e.prototype.add=function(O){O=O===0?0:O;this.JSC$6818_map_.set(O,O);this.size=this.JSC$6818_map_.size;return this};
e.prototype.delete=function(O){O=this.JSC$6818_map_.delete(O);this.size=this.JSC$6818_map_.size;return O};
e.prototype.clear=function(){this.JSC$6818_map_.clear();this.size=0};
e.prototype.has=function(O){return this.JSC$6818_map_.has(O)};
e.prototype.entries=function(){return this.JSC$6818_map_.entries()};
e.prototype.values=function(){return this.JSC$6818_map_.values()};
e.prototype.keys=e.prototype.values;e.prototype[Symbol.iterator]=e.prototype.values;e.prototype.forEach=function(O,E){var J=this;this.JSC$6818_map_.forEach(function(z){return O.call(E,z,z,J)})};
return e});
eR("Math.log2",function(l){return l?l:function(e){return Math.log(e)/Math.LN2}});
eR("Object.values",function(l){return l?l:function(e){var O=[],E;for(E in e)JZ(e,E)&&O.push(e[E]);return O}});
eR("Object.is",function(l){return l?l:function(e,O){return e===O?e!==0||1/e===1/O:e!==e&&O!==O}});
eR("Array.prototype.includes",function(l){return l?l:function(e,O){var E=this;E instanceof String&&(E=String(E));var J=E.length;O=O||0;for(O<0&&(O=Math.max(O+J,0));O<J;O++){var z=E[O];if(z===e||Object.is(z,e))return!0}return!1}});
eR("String.prototype.includes",function(l){return l?l:function(e,O){return z8(this,e,"includes").indexOf(e,O||0)!==-1}});
eR("Array.from",function(l){return l?l:function(e,O,E){O=O!=null?O:function(Z){return Z};
var J=[],z=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(typeof z=="function"){e=z.call(e);for(var M=0;!(z=e.next()).done;)J.push(O.call(E,z.value,M++))}else for(z=e.length,M=0;M<z;M++)J.push(O.call(E,e[M],M));return J}});
eR("Object.entries",function(l){return l?l:function(e){var O=[],E;for(E in e)JZ(e,E)&&O.push([E,e[E]]);return O}});
eR("Number.isFinite",function(l){return l?l:function(e){return typeof e!=="number"?!1:!isNaN(e)&&e!==Infinity&&e!==-Infinity}});
eR("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
eR("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
eR("Number.isInteger",function(l){return l?l:function(e){return Number.isFinite(e)?e===Math.floor(e):!1}});
eR("Number.isSafeInteger",function(l){return l?l:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER}});
eR("String.prototype.endsWith",function(l){return l?l:function(e,O){var E=z8(this,e,"endsWith");O===void 0&&(O=E.length);O=Math.max(0,Math.min(O|0,E.length));for(var J=e.length;J>0&&O>0;)if(E[--O]!=e[--J])return!1;return J<=0}});
var vs8=function(l,e){l instanceof String&&(l+="");var O=0,E=!1,J={next:function(){if(!E&&O<l.length){var z=O++;return{value:e(z,l[z]),done:!1}}E=!0;return{done:!0,value:void 0}}};
J[Symbol.iterator]=function(){return J};
return J};
eR("Array.prototype.entries",function(l){return l?l:function(){return vs8(this,function(e,O){return[e,O]})}});
eR("Math.trunc",function(l){return l?l:function(e){e=Number(e);if(isNaN(e)||e===Infinity||e===-Infinity||e===0)return e;var O=Math.floor(Math.abs(e));return e<0?-O:O}});
eR("Number.isNaN",function(l){return l?l:function(e){return typeof e==="number"&&isNaN(e)}});
eR("Array.prototype.keys",function(l){return l?l:function(){return vs8(this,function(e){return e})}});
eR("Array.prototype.values",function(l){return l?l:function(){return vs8(this,function(e,O){return O})}});
eR("Array.prototype.fill",function(l){return l?l:function(e,O,E){var J=this.length||0;O<0&&(O=Math.max(0,J+O));if(E==null||E>J)E=J;E=Number(E);E<0&&(E=Math.max(0,J+E));for(O=Number(O||0);O<E;O++)this[O]=e;return this}});
var bv=function(l){return l?l:Array.prototype.fill};
eR("Int8Array.prototype.fill",bv);eR("Uint8Array.prototype.fill",bv);eR("Uint8ClampedArray.prototype.fill",bv);eR("Int16Array.prototype.fill",bv);eR("Uint16Array.prototype.fill",bv);eR("Int32Array.prototype.fill",bv);eR("Uint32Array.prototype.fill",bv);eR("Float32Array.prototype.fill",bv);eR("Float64Array.prototype.fill",bv);
eR("Object.fromEntries",function(l){return l?l:function(e){var O={};if(!(Symbol.iterator in e))throw new TypeError("r`"+e);e=e[Symbol.iterator].call(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;if(Object(E)!==E)throw new TypeError("s");O[E[0]]=E[1]}return O}});
eR("String.prototype.replaceAll",function(l){return l?l:function(e,O){if(e instanceof RegExp&&!e.global)throw new TypeError("t");return e instanceof RegExp?this.replace(e,O):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),O)}});
eR("Object.getOwnPropertySymbols",function(l){return l?l:function(){return[]}});
eR("String.prototype.repeat",function(l){return l?l:function(e){var O=z8(this,null,"repeat");if(e<0||e>1342177279)throw new RangeError("u");e|=0;for(var E="";e;)if(e&1&&(E+=O),e>>>=1)O+=O;return E}});
eR("Array.prototype.findIndex",function(l){return l?l:function(e,O){return qE2(this,e,O).i}});
eR("Array.prototype.flatMap",function(l){return l?l:function(e,O){var E=[];Array.prototype.forEach.call(this,function(J,z){J=e.call(O,J,z,this);Array.isArray(J)?E.push.apply(E,J):E.push(J)});
return E}});
eR("String.prototype.codePointAt",function(l){return l?l:function(e){var O=z8(this,null,"codePointAt"),E=O.length;e=Number(e)||0;if(e>=0&&e<E){e|=0;var J=O.charCodeAt(e);if(J<55296||J>56319||e+1===E)return J;e=O.charCodeAt(e+1);return e<56320||e>57343?J:(J-55296)*1024+e+9216}}});
eR("String.fromCodePoint",function(l){return l?l:function(e){for(var O="",E=0;E<arguments.length;E++){var J=Number(arguments[E]);if(J<0||J>1114111||J!==Math.floor(J))throw new RangeError("v`"+J);J<=65535?O+=String.fromCharCode(J):(J-=65536,O+=String.fromCharCode(J>>>10&1023|55296),O+=String.fromCharCode(J&1023|56320))}return O}});
eR("String.prototype.padStart",function(l){return l?l:function(e,O){var E=z8(this,null,"padStart");e-=E.length;O=O!==void 0?String(O):" ";return(e>0&&O?O.repeat(Math.ceil(e/O.length)).substring(0,e):"")+E}});
eR("Promise.prototype.finally",function(l){return l?l:function(e){return this.then(function(O){return Promise.resolve(e()).then(function(){return O})},function(O){return Promise.resolve(e()).then(function(){throw O;
})})}});
eR("Math.imul",function(l){return l?l:function(e,O){e=Number(e);O=Number(O);var E=e&65535,J=O&65535;return E*J+((e>>>16&65535)*J+E*(O>>>16&65535)<<16>>>0)|0}});
eR("Object.hasOwn",function(l){return l?l:function(e,O){return Object.prototype.hasOwnProperty.call(e,O)}});
eR("Math.sign",function(l){return l?l:function(e){e=Number(e);return e===0||isNaN(e)?e:e>0?1:-1}});
eR("Array.prototype.flat",function(l){return l?l:function(e){e=e===void 0?1:e;var O=[];Array.prototype.forEach.call(this,function(E){Array.isArray(E)&&e>0?(E=Array.prototype.flat.call(E,e-1),O.push.apply(O,E)):O.push(E)});
return O}});
eR("String.raw",function(l){return l?l:function(e,O){if(e==null)throw new TypeError("w");for(var E=e.raw,J=E.length,z="",M=0;M<J;++M)z+=E[M],M+1<J&&M+1<arguments.length&&(z+=String(arguments[M+1]));return z}});
eR("Reflect.ownKeys",function(l){return l?l:function(e){var O=[],E=Object.getOwnPropertyNames(e);e=Object.getOwnPropertySymbols(e);for(var J=0;J<E.length;J++)(E[J].substring(0,14)=="jscomp_symbol_"?e:O).push(E[J]);return O.concat(e)}});
eR("Object.getOwnPropertyDescriptors",function(l){return l?l:function(e){for(var O={},E=Reflect.ownKeys(e),J=0;J<E.length;J++)O[E[J]]=Object.getOwnPropertyDescriptor(e,E[J]);return O}});
eR("WeakSet",function(l){if(function(){if(!l||!Object.seal)return!1;try{var O=Object.seal({}),E=Object.seal({}),J=new l([O]);if(!J.has(O)||J.has(E))return!1;J.delete(O);J.add(E);return!J.has(O)&&J.has(E)}catch(z){return!1}}())return l;
var e=function(O){this.JSC$6825_map_=new WeakMap;if(O){O=_.b(O);for(var E;!(E=O.next()).done;)this.add(E.value)}};
e.prototype.add=function(O){this.JSC$6825_map_.set(O,!0);return this};
e.prototype.has=function(O){return this.JSC$6825_map_.has(O)};
e.prototype.delete=function(O){return this.JSC$6825_map_.delete(O)};
return e});
eR("Promise.allSettled",function(l){function e(E){return{status:"fulfilled",value:E}}
function O(E){return{status:"rejected",reason:E}}
return l?l:function(E){var J=this;E=Array.from(E,function(z){return J.resolve(z).then(e,O)});
return J.all(E)}});
eR("Number.parseInt",function(l){return l||parseInt});
_._DumpException=window._DumpException||function(l){throw l;};
window._DumpException=_._DumpException;var NyW,M3,VK,ZZ,ryd,DF2,SEp,Q0x,vh,xF2;NyW=NyW||{};_.Op=this||self;_.zJ=function(l,e,O){l=l.split(".");O=O||_.Op;for(var E;l.length&&(E=l.shift());)l.length||e===void 0?O[E]&&O[E]!==Object.prototype[E]?O=O[E]:O=O[E]={}:O[E]=e};
M3=function(l){var e=_.vK("WIZ_global_data.oxN3nb");l=e&&e[l];return l!=null?l:!1};
VK=_.Op._F_toggles_default_kevlar_base||[];ZZ=function(){};
ZZ.get=function(){return null};
_.vK=function(l,e){l=l.split(".");e=e||_.Op;for(var O=0;O<l.length;O++)if(e=e[l[O]],e==null)return null;return e};
_.uv=function(l){l.instance_=void 0;l.getInstance=function(){return l.instance_?l.instance_:l.instance_=new l}};
_.Wh=function(l){var e=typeof l;return e!="object"?e:l?Array.isArray(l)?"array":e:"null"};
_.SM=function(l){var e=_.Wh(l);return e=="array"||e=="object"&&typeof l.length=="number"};
_.e0=function(l){var e=typeof l;return e=="object"&&l!=null||e=="function"};
_.Ox=function(l){return Object.prototype.hasOwnProperty.call(l,ryd)&&l[ryd]||(l[ryd]=++DF2)};
ryd="closure_uid_"+(Math.random()*1E9>>>0);DF2=0;SEp=function(l,e,O){return l.call.apply(l.bind,arguments)};
Q0x=function(l,e,O){if(!l)throw Error();if(arguments.length>2){var E=Array.prototype.slice.call(arguments,2);return function(){var J=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(J,E);return l.apply(e,J)}}return function(){return l.apply(e,arguments)}};
_.pb=function(l,e,O){_.pb=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?SEp:Q0x;return _.pb.apply(null,arguments)};
_.pz=function(l,e){var O=Array.prototype.slice.call(arguments,1);return function(){var E=O.slice();E.push.apply(E,arguments);return l.apply(this,E)}};
_.C2=function(){return Date.now()};
vh=function(l){return l};
_.o_=function(l,e){function O(){}
O.prototype=e.prototype;l.superClass_=e.prototype;l.prototype=new O;l.prototype.constructor=l;l.base=function(E,J,z){for(var M=Array(arguments.length-2),Z=2;Z<arguments.length;Z++)M[Z-2]=arguments[Z];return e.prototype[J].apply(E,M)}};
xF2=function(l){return l};var ltg,e3T;_.L=function(l,e,O,E){var J=arguments.length,z=J<3?e:E===null?E=Object.getOwnPropertyDescriptor(e,O):E,M;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")z=Reflect.decorate(l,e,O,E);else for(var Z=l.length-1;Z>=0;Z--)if(M=l[Z])z=(J<3?M(z):J>3?M(e,O,z):M(e,O))||z;J>3&&z&&Object.defineProperty(e,O,z)};
_.q=function(l,e){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(l,e)};
ltg=function(l,e){if(e!==null&&e!==void 0){if(typeof e!=="object"&&typeof e!=="function")throw new TypeError("x");if(O===void 0){if(!Symbol.dispose)throw new TypeError("z");var O=e[Symbol.dispose]}if(typeof O!=="function")throw new TypeError("A");l.stack.push({value:e,dispose:O,async:!1})}return e};
e3T=function(l){function e(z){l.error=l.hasError?new SuppressedError(z,l.error,"An error was suppressed during disposal."):z;l.hasError=!0}
function O(){for(;E=l.stack.pop();)try{if(!E.async&&J===1)return J=0,l.stack.push(E),Promise.resolve().then(O);if(E.dispose){var z=E.dispose.call(E.value);if(E.async)return J|=2,Promise.resolve(z).then(O,function(M){e(M);return O()})}else J|=1}catch(M){e(M)}if(J===1)return l.hasError?Promise.reject(l.error):Promise.resolve();
if(l.hasError)throw l.error;}
var E,J=0;O()};_.o_(_.l2,Error);_.l2.prototype.name="CustomError";var OKL;var EFg=void 0,JN2,XBp=typeof TextDecoder!=="undefined",EVg,OLL=typeof String.prototype.isWellFormed==="function",etV=typeof TextEncoder!=="undefined";var z3L;_.IQ=function(l){for(var e=[],O=0,E=0;E<l.length;E++){var J=l.charCodeAt(E);J<128?e[O++]=J:(J<2048?e[O++]=J>>6|192:((J&64512)==55296&&E+1<l.length&&(l.charCodeAt(E+1)&64512)==56320?(J=65536+((J&1023)<<10)+(l.charCodeAt(++E)&1023),e[O++]=J>>18|240,e[O++]=J>>12&63|128):e[O++]=J>>12|224,e[O++]=J>>6&63|128),e[O++]=J&63|128)}return e};
z3L=function(l){for(var e=[],O=0,E=0;O<l.length;){var J=l[O++];if(J<128)e[E++]=String.fromCharCode(J);else if(J>191&&J<224){var z=l[O++];e[E++]=String.fromCharCode((J&31)<<6|z&63)}else if(J>239&&J<365){z=l[O++];var M=l[O++],Z=l[O++];J=((J&7)<<18|(z&63)<<12|(M&63)<<6|Z&63)-65536;e[E++]=String.fromCharCode(55296+(J>>10));e[E++]=String.fromCharCode(56320+(J&1023))}else z=l[O++],M=l[O++],e[E++]=String.fromCharCode((J&15)<<12|(z&63)<<6|M&63)}return e.join("")};var CL=String.prototype.trim?function(l){return l.trim()}:function(l){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(l)[1]},bKx=/&/g,M8p=/</g,V8x=/>/g,ZKx=/"/g,uGg=/'/g,Cup=/\x00/g,oFx=/[\x00&<>"']/;var $h=!!(VK[0]>>15&1),$Vt=!!(VK[0]>>16&1),W5W=!!(VK[0]&8),dVx=!!(VK[0]&2),gFW=!!(VK[0]&4),iKM=!!(VK[0]&32);var i2=$h?$Vt:M3(610401301),wB2=$h?W5W:M3(772657768),ANd=$h?dVx:M3(513659523),nFx=$h?gFW:M3(568333945),CbL=$h?iKM:M3(1331761403);var wT,atL=_.Op.navigator;wT=atL?atL.userAgentData||null:null;var eU;_.Up=function(l,e){return Array.prototype.indexOf.call(l,e,void 0)};
_.DB=function(l,e,O){Array.prototype.forEach.call(l,e,O)};
_.WW=function(l,e,O){return Array.prototype.filter.call(l,e,O)};
_.pF=function(l,e,O){return Array.prototype.map.call(l,e,O)};
eU=function(l,e,O){return Array.prototype.some.call(l,e,O)};
_.SdT=function(l,e,O){return Array.prototype.every.call(l,e,O)};var ds=function(l){ds[" "](l);return l};
ds[" "]=function(){};
var cR=function(l,e){try{return ds(l[e]),!0}catch(O){}return!1},iHq=function(l,e,O,E){E=E?E(e):e;
return Object.prototype.hasOwnProperty.call(l,E)?l[E]:l[E]=O(e)};var ke2,JW,ItA,mVx,pB2,K5M,x88,jAx,HKq,cNg,tIL,ftx,R3g,BMx,Pud,UVd;_.srV=function(){return _.Op.navigator||null};
ke2=y8();_.gs=zt2();JW=kV("Edge");ItA=JW||_.gs;_.iv=kV("Gecko")&&!(_.u2(_.dT(),"WebKit")&&!kV("Edge"))&&!(kV("Trident")||kV("MSIE"))&&!kV("Edge");_.ws=_.u2(_.dT(),"WebKit")&&!kV("Edge");mVx=_.ws&&kV("Mobile");_.yNM=_.$AL();pB2=_.Wxu();K5M=(fL()?wT.platform==="Linux":kV("Linux"))||_.dAu();x88=_.C2W();jAx=oVV();HKq=kV("iPad");cNg=kV("iPod");_.F5q=_.Rd();tIL=_.u2(_.dT(),"KaiOS");ftx=function(){var l=_.Op.document;return l?l.documentMode:void 0};
a:{var TMd="",sAW=function(){var l=_.dT();if(_.iv)return/rv:([^\);]+)(\)|;)/.exec(l);if(JW)return/Edge\/([\d\.]+)/.exec(l);if(_.gs)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(l);if(_.ws)return/WebKit\/(\S+)/.exec(l);if(ke2)return/(?:Version)[ \/]?(\S+)/.exec(l)}();
sAW&&(TMd=sAW?sAW[1]:"");if(_.gs){var GeV=ftx();if(GeV!=null&&GeV>parseFloat(TMd)){R3g=String(GeV);break a}}R3g=TMd}BMx=R3g;Pud={};_.AZ=function(l){return iHq(Pud,l,function(){return _.Wx(BMx,l)>=0})};
if(_.Op.document&&_.gs){var YHA=ftx();UVd=YHA?YHA:parseInt(BMx,10)||void 0}else UVd=void 0;_.h38=UVd;var w98,AiT,L5x;_.n2=pL();w98=oVV()||kV("iPod");AiT=kV("iPad");L5x=_.MMT();_.a_=_.Hx();_.Lv=_.Fu()&&!_.Rd();var t8u,kh,NGp,llT,vFt,qHW;t8u={};kh=null;NGp=_.iv||_.ws||typeof _.Op.btoa=="function";_.x4=function(l,e){e===void 0&&(e=0);qHW();e=t8u[e];for(var O=Array(Math.floor(l.length/3)),E=e[64]||"",J=0,z=0;J<l.length-2;J+=3){var M=l[J],Z=l[J+1],u=l[J+2],d=e[M>>2];M=e[(M&3)<<4|Z>>4];Z=e[(Z&15)<<2|u>>6];u=e[u&63];O[z++]=d+M+Z+u}d=0;u=E;switch(l.length-J){case 2:d=l[J+1],u=e[(d&15)<<2]||E;case 1:l=l[J],O[z]=e[l>>2]+e[(l&3)<<4|d>>4]+u+E}return O.join("")};
llT=function(l){var e="";vFt(l,function(O){e+=String.fromCharCode(O)});
return e};
_.b7A=function(l){var e=[];vFt(l,function(O){e.push(O)});
return e};
_.VH=function(l){var e=l.length,O=e*3/4;O%3?O=Math.floor(O):_.ZW("=.",l[e-1])&&(O=_.ZW("=.",l[e-2])?O-2:O-1);var E=new Uint8Array(O),J=0;vFt(l,function(z){E[J++]=z});
return J!==O?E.subarray(0,J):E};
vFt=function(l,e){function O(u){for(;E<l.length;){var d=l.charAt(E++),g=kh[d];if(g!=null)return g;if(!_.MA(d))throw Error("E`"+d);}return u}
qHW();for(var E=0;;){var J=O(-1),z=O(0),M=O(64),Z=O(64);if(Z===64&&J===-1)break;e(J<<2|z>>4);M!=64&&(e(z<<4&240|M>>2),Z!=64&&e(M<<6&192|Z))}};
qHW=function(){if(!kh){kh={};for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],O=0;O<5;O++){var E=l.concat(e[O].split(""));t8u[O]=E;for(var J=0;J<E.length;J++){var z=E[J];kh[z]===void 0&&(kh[z]=J)}}}};var TTT=typeof Uint8Array!=="undefined",yqW=!_.gs&&typeof btoa==="function",pxA=/[-_.]/g,IWW={"-":"+",_:"/",".":"="},Rq={};var fR,rN2;fR=function(l,e){if(e!==Rq)throw Error("G");this.JSC$6856_value_=l;if(l!=null&&l.length===0)throw Error("F");};
_.TS=function(){return NMM||(NMM=new fR(null,Rq))};
rN2=function(l){return new Uint8Array(FS(l)||0)};
fR.prototype.isEmpty=function(){return this.JSC$6856_value_==null};
fR.prototype.sizeBytes=function(){var l=FS(this);return l?l.length:0};
var FS=function(l){if(Rq!==Rq)throw Error("G");var e=l.JSC$6856_value_;e=e==null||TTT&&e!=null&&e instanceof Uint8Array?e:typeof e==="string"?KxM(e):null;return e==null?e:l.JSC$6856_value_=e},NMM;var HLp=void 0;var nR=typeof Symbol==="function"&&typeof Symbol()==="symbol",DVA=g1("jas",void 0,!0),LP=g1(void 0,"0di"),pJ=g1(void 0,"1oa"),No=g1(void 0,Symbol()),HRT=g1(void 0,"0ub"),F1p=g1(void 0,"0ubs"),siT=g1(void 0,"0ubsb"),vqL=g1(void 0,"0actk"),Y4=g1("m_m","messagePrototypeMarker",!0),Uip=g1(void 0,"vps"),p6t=g1();var FxW,cq2,ik,SHA;FxW={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};cq2=Object.defineProperties;_.aq=nR?DVA:"internalArrayState";SHA=[];m1(SHA,7);ik=Object.freeze(SHA);var hu={},H6={},QAM=function(l,e,O){this.iterable=l;this.mapper=e;this.thisArg=O};
QAM.prototype.next=function(){var l=this.iterable.next();l.done||(l.value=this.mapper.call(this.thisArg,l.value));return l};
QAM.prototype[Symbol.iterator]=function(){return this};
var xVq=Object.freeze({}),B6={};_.lRd=hC(function(l){return l!==null&&l!==void 0});var UAu=hC(function(l){return typeof l==="number"}),P2L=hC(function(l){return typeof l==="string"}),Ypp=hC(function(l){return typeof l==="boolean"}),eDg=hC(function(l){return l!=null&&typeof l==="object"&&typeof l.then==="function"}),DaT=hC(function(l){return typeof l==="function"}),uJ=hC(function(l){return!!l&&(typeof l==="object"||typeof l==="function")});var tC=typeof _.Op.BigInt==="function"&&typeof _.Op.BigInt(0)==="bigint";var su=hC(function(l){return tC?l>=OXV&&l<=EXu:l[0]==="-"?htq(l,J88):htq(l,Xgu)}),J88=Number.MIN_SAFE_INTEGER.toString(),OXV=tC?BigInt(Number.MIN_SAFE_INTEGER):void 0,Xgu=Number.MAX_SAFE_INTEGER.toString(),EXu=tC?BigInt(Number.MAX_SAFE_INTEGER):void 0;var zDx=typeof Uint8Array.prototype.slice==="function",r1=0,DS=0,rc;var Hh,fP,df,Ri,DAW;Hh=typeof BigInt==="function"?BigInt.asIntN:void 0;_.T0=typeof BigInt==="function"?BigInt.asUintN:void 0;fP=Number.isSafeInteger;df=Number.isFinite;Ri=Math.trunc;DAW=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var YxT={};var miW={},bXL=function(){try{var l=function(){return H52(Map,[],this.constructor)};
_.m(l,Map);ds(new l);return!1}catch(e){return!0}}(),I_=function(){this.JSC$6876_map_=new Map};
_.X=I_.prototype;_.X.get=function(l){return this.JSC$6876_map_.get(l)};
_.X.set=function(l,e){this.JSC$6876_map_.set(l,e);this.size=this.JSC$6876_map_.size;return this};
_.X.delete=function(l){l=this.JSC$6876_map_.delete(l);this.size=this.JSC$6876_map_.size;return l};
_.X.clear=function(){this.JSC$6876_map_.clear();this.size=this.JSC$6876_map_.size};
_.X.has=function(l){return this.JSC$6876_map_.has(l)};
_.X.entries=function(){return this.JSC$6876_map_.entries()};
_.X.keys=function(){return this.JSC$6876_map_.keys()};
_.X.values=function(){return this.JSC$6876_map_.values()};
_.X.forEach=function(l,e){return this.JSC$6876_map_.forEach(l,e)};
I_.prototype[Symbol.iterator]=function(){return this.entries()};
var lk=function(){if(bXL)return Object.setPrototypeOf(I_.prototype,Map.prototype),Object.defineProperties(I_.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),I_;var l=function(){return H52(Map,[],this.constructor)};
_.m(l,Map);return l}(),qo=function(l,e,O,E){O=O===void 0?ACM:O;
E=E===void 0?ACM:E;var J=lk.call(this)||this;J.arrayState=l[_.aq]|0;J.valueCtor=e;J.keyToApi=O;J.valueToApi=J.valueCtor?aSt:E;for(var z=0;z<l.length;z++){var M=l[z],Z=O(M[0],!1,!0),u=M[1];e?u===void 0&&(u=null):u=E(M[1],!1,!0,void 0,void 0,J.arrayState);lk.prototype.set.call(J,Z,u)}return J};
_.m(qo,lk);var M2x=function(l){if(l.arrayState&2)throw Error("K");};
_.X=qo.prototype;_.X.clear=function(){M2x(this);lk.prototype.clear.call(this)};
_.X.delete=function(l){M2x(this);return lk.prototype.delete.call(this,this.keyToApi(l,!0,!1))};
_.X.entries=function(){if(this.valueCtor){var l=lk.prototype.keys.call(this);l=new QAM(l,kS8,this)}else l=lk.prototype.entries.call(this);return l};
_.X.values=function(){if(this.valueCtor){var l=lk.prototype.keys.call(this);l=new QAM(l,qo.prototype.get,this)}else l=lk.prototype.values.call(this);return l};
_.X.forEach=function(l,e){this.valueCtor?lk.prototype.forEach.call(this,function(O,E,J){l.call(e,J.get(E),E,J)}):lk.prototype.forEach.call(this,l,e)};
_.X.set=function(l,e){M2x(this);l=this.keyToApi(l,!0,!1);return l==null?this:e==null?(lk.prototype.delete.call(this,l),this):lk.prototype.set.call(this,l,this.valueToApi(e,!0,!0,this.valueCtor,!1,this.arrayState))};
_.X.has=function(l){return lk.prototype.has.call(this,this.keyToApi(l,!1,!1))};
_.X.get=function(l){l=this.keyToApi(l,!1,!1);var e=lk.prototype.get.call(this,l);if(e!==void 0){var O=this.valueCtor;return O?(O=this.valueToApi(e,!1,!0,O,this.callToMutableOnAccess,this.arrayState),O!==e&&lk.prototype.set.call(this,l,O),O):e}};
qo.prototype[Symbol.iterator]=function(){return this.entries()};
qo.prototype.toJSON=void 0;var ISV;var T1x=function(){},DO=function(l,e){for(var O in l)!isNaN(O)&&e(l,+O,l[O])},sqM=function(l){var e=new T1x;
DO(l,function(O,E,J){e[E]=XF(J)});
e.reviveUnknownFields=l.reviveUnknownFields;return e},K1M={reviveIntoImmutable:!0};var RFt;var hF8,L1g;var V22,kH,ID,jU,ZXu,F4,pZ,upV,CjV,s9,oXu,G8,U9,Yh;V22=_.qi(0);_.my={};_.yK=function(l,e,O,E,J){e=kH(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e,O,J);if(e!==null||E&&l.noLegacyNull!==H6)return e};
kH=function(l,e,O,E){if(e===-1)return null;var J=e+(O?0:-1),z=l.length-1;if(!(z<1+(O?0:-1))){if(J>=z){var M=l[z];if(M!=null&&typeof M==="object"&&M.constructor===Object){O=M[e];var Z=!0}else if(J===z)O=M;else return}else O=l[J];if(E&&O!=null){E=E(O);if(E==null)return E;if(!Object.is(E,O))return Z?M[e]=E:l[J]=E,E}return O}};
_.$P=function(l,e,O,E){o5(l);var J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;dc(J,J[_.aq]|0,e,O,E);return l};
_.p2=function(l,e,O){l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return KJ(l,l[_.aq]|0,e,O)!==void 0};
_.K2=function(l,e,O,E){var J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return KJ(J,J[_.aq]|0,e,jU(l,E,O))!==void 0};
_.Oo=function(l){return l===xVq?2:4};
_.jR=function(l,e){l=_.yK(l,e,void 0,void 0,e4p);return l==null?_.TS():l};
ID=function(l,e,O,E){o5(l);var J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=J[_.aq]|0;if(E==null){var M=E4g(J);if(Ju2(M,J,z,O)===e)M.set(O,0);else return l}else z=Xhx(J,z,O,e);dc(J,z,e,E);return l};
_.HW=function(l,e,O,E){var J=l[_.aq]|0,z=Ux(J);J=Xhx(l,J,O,e,z);dc(l,J,e,E,z)};
jU=function(l,e,O){return _.cW(l,e)===O?O:-1};
_.cW=function(l,e){l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ju2(E4g(l),l,void 0,e,void 0)};
ZXu=function(l,e,O){var E=l[_.aq]|0,J=Ux(E),z=kH(l,O,J);if(z!=null&&z[Y4]===hu){if(!c6(z))return VI(z),z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var M=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(z)&&(M=z);if(M){var Z=M[_.aq]|0;Z&2&&(M=XS(M,Z))}M=Jp(M,e,!0);M!==z&&dc(l,E,O,M,J);return M};
_.Cu=function(l,e,O,E){var J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=J[_.aq]|0;e=KJ(J,z,e,O,E);if(e==null)return e;z=J[_.aq]|0;if(!c6(l,z)){var M=nqt(e);M!==e&&(VI(l)&&(J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=J[_.aq]|0),e=M,z=dc(J,z,O,e,E),$H(J,z))}return e};
_.e$=function(l,e,O,E){var J=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return z4p(l,J,J[_.aq]|0,e,O,E,!1,!0)};
_.EN=function(l,e,O,E){O=bPx(O);_.$P(l,e,O,E);O&&!c6(O)&&$H(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return l};
_.Jz=function(l,e,O,E){E=bPx(E);ID(l,e,O,E);E&&!c6(E)&&$H(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return l};
F4=function(l,e,O){o5(l);var E=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=E[_.aq]|0;if(O==null)return dc(E,J,e),l;for(var z=O===ik?7:O[_.aq]|0,M=z,Z=a5(z),u=Z||Object.isFrozen(O),d=!0,g=!0,w=0;w<O.length;w++){var n=O[w];Z||(n=c6(n),d&&(d=!n),g&&(g=n))}Z||(z=d?13:5,z=g?z&-4097:z|4096);u&&z===M||(O=XF(O),M=0,z=wc(z,J));z!==M&&m1(O,z);J=dc(E,J,e,O);2&z||!(4096&z||16&z)||$H(E,J);return l};
pZ=function(l,e,O,E){V38(l,e,O,E);return l};
upV=function(l,e,O){V38(l,e,f2,void 0,O,1,!0);return l};
_.R_=function(l,e,O){l=_.yK(l,e,void 0,O);e=typeof l;l=l==null?l:e==="bigint"?_.qi((0,_.T0)(64,l)):_.iz(l)?e==="string"?_.uku(l):_.V0M(l):void 0;return l};
_.T8=function(l,e){var O=O===void 0?!1:O;var E;return(E=_.rqx(_.yK(l,e)))!=null?E:O};
_.Eo=function(l,e,O){O=O===void 0?0:O;var E;return(E=_.Ii(_.yK(l,e)))!=null?E:O};
CjV=function(l,e){var O=O===void 0?0:O;l=_.yC(_.yK(l,e));return l!=null?l:O};
s9=function(l,e,O){O=O===void 0?V22:O;var E;return(E=_.$i2(_.yK(l,e)))!=null?E:O};
oXu=function(l){var e=e===void 0?V22:e;var O;return(O=_.R_(l,23))!=null?O:e};
G8=function(l,e){var O=O===void 0?0:O;var E;return(E=_.yK(l,e,void 0,void 0,_.uz))!=null?E:O};
_.BW=function(l,e,O,E){O=O===void 0?"":O;var J;return(J=_.Uu(_.yK(l,e,E)))!=null?J:O};
_.PW=function(l,e){var O=O===void 0?0:O;var E;return(E=_.ai(_.yK(l,e)))!=null?E:O};
U9=function(l,e){var O=O===void 0?"0":O;l=oqW(_.yK(l,e),!0);return l!=null?l:O};
Yh=function(l,e,O){return _.BW(l,jU(l,O,e))};
_.hZ=function(l,e,O,E){return _.Cu(l,e,jU(l,E,O),void 0)};
_.gk=function(l,e){return _.Uu(_.yK(l,e,void 0,_.my))};
_.b$=function(l,e,O){return _.$P(l,e,NTL(O))};
_.Tz=function(l,e,O){return _.mb(l,e,NTL(O),!1)};
_.L2=function(l,e,O){return _.$P(l,e,_.k4(O))};
_.cm=function(l,e,O){return _.$P(l,e,FF(O))};
_.da=function(l,e,O){return _.$P(l,e,Ph(O))};
_.Xi=function(l,e,O,E){return _.mb(l,e,Ph(O),"",E)};
_.oC=function(l,e,O){return _.$P(l,e,O==null?O:_.nP(O))};
_.tZ=function(l,e,O){return _.mb(l,e,O==null?O:_.nP(O),0)};var cv=function(l,e,O){this.buffer=l;if(O&&!e)throw Error();this.JSC$6888_isImmutable=e};var $It=function(l,e,O,E){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6891_start_=0;this.init(l,e,O,E)},q3,dI2,gXM,wgt,KHx,Wzg;
_.X=$It.prototype;_.X.init=function(l,e,O,E){var J=E===void 0?{}:E;E=J.aliasBytesFields===void 0?!1:J.aliasBytesFields;J=J.treatNewDataAsImmutable===void 0?!1:J.treatNewDataAsImmutable;this.aliasBytesFields=E;this.treatNewDataAsImmutable=J;l&&(l=ZP8(l,this.treatNewDataAsImmutable),this.bytes_=l.buffer,this.bytesAreImmutable_=l.JSC$6888_isImmutable,this.JSC$6891_start_=e||0,this.end_=O!==void 0?this.JSC$6891_start_+O:this.bytes_.length,this.cursor_=this.JSC$6891_start_)};
_.X.free=function(){this.clear();Wzg.length<100&&Wzg.push(this)};
_.X.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6891_start_=0;this.aliasBytesFields=!1};
_.X.reset=function(){this.cursor_=this.JSC$6891_start_};
_.X.atEnd=function(){return this.cursor_==this.end_};
_.vW=function(l,e){var O=0,E=0,J=0,z=l.bytes_,M=l.cursor_;do{var Z=z[M++];O|=(Z&127)<<J;J+=7}while(J<32&&Z&128);J>32&&(E|=(Z&127)>>4);for(J=3;J<32&&Z&128;J+=7)Z=z[M++],E|=(Z&127)<<J;q3(l,M);if(Z<128)return e(O>>>0,E>>>0);throw Error("X");};
q3=function(l,e){l.cursor_=e;if(e>l.end_)throw Error("Y`"+e+"`"+l.end_);};
_.N3=function(l){var e=l.bytes_,O=l.cursor_,E=e[O++],J=E&127;if(E&128&&(E=e[O++],J|=(E&127)<<7,E&128&&(E=e[O++],J|=(E&127)<<14,E&128&&(E=e[O++],J|=(E&127)<<21,E&128&&(E=e[O++],J|=E<<28,E&128&&e[O++]&128&&e[O++]&128&&e[O++]&128&&e[O++]&128&&e[O++]&128)))))throw Error("X");q3(l,O);return J};
_.rs=function(l){var e=l.bytes_,O=l.cursor_,E=e[O],J=e[O+1],z=e[O+2];e=e[O+3];q3(l,l.cursor_+4);return(E<<0|J<<8|z<<16|e<<24)>>>0};
dI2=function(l){var e=_.rs(l);l=_.rs(l);return qpd(e,l)};
gXM=function(l){var e=_.rs(l),O=_.rs(l);l=(O>>31)*2+1;var E=O>>>20&2047;e=4294967296*(O&1048575)+e;return E==2047?e?NaN:l*Infinity:E==0?l*4.9E-324*e:l*Math.pow(2,E-1075)*(e+4503599627370496)};
_.iXx=function(l){for(var e=0,O=l.cursor_,E=O+10,J=l.bytes_;O<E;){var z=J[O++];e|=z;if((z&128)===0)return q3(l,O),!!(e&127)}throw Error("X");};
wgt=function(l,e){if(e<0)throw Error("Z`"+e);var O=l.cursor_,E=O+e;if(E>l.end_)throw Error("Y`"+(l.end_-O)+"`"+e);l.cursor_=E;return O};
KHx=function(l,e){if(e==0)return _.TS();var O=wgt(l,e);l.aliasBytesFields&&l.bytesAreImmutable_?O=l.bytes_.subarray(O,O+e):(l=l.bytes_,e=O+e,O=O===e?new Uint8Array(0):zDx?l.slice(O,e):new Uint8Array(l.subarray(O,e)));return O.length==0?_.TS():new fR(O,Rq)};
Wzg=[];var nXd=function(l,e,O,E){if(Wzg.length){var J=Wzg.pop();J.init(l,e,O,E);l=J}else l=new $It(l,e,O,E);this.decoder_=l;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;A8M(this,E)},A8M=function(l,e){e=e===void 0?{}:e;
l.discardUnknownFields=e.discardUnknownFields===void 0?!1:e.discardUnknownFields},cu2=function(l,e,O,E){if(aRx.length){var J=aRx.pop();
A8M(J,E);J.decoder_.init(l,e,O,E);return J}return new nXd(l,e,O,E)},yuq,Pv,kwp,aRx;
nXd.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;aRx.length<100&&aRx.push(this)};
nXd.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
yuq=function(l){if(l.decoder_.atEnd())return!1;l.fieldCursor_=l.decoder_.cursor_;var e=_.N3(l.decoder_)>>>0,O=e>>>3;e&=7;if(!(e>=0&&e<=5))throw Error("T`"+e+"`"+l.fieldCursor_);if(O<1)throw Error("U`"+O+"`"+l.fieldCursor_);l.nextField_=O;l.nextWireType_=e;return!0};
Pv=function(l){switch(l.nextWireType_){case 0:l.nextWireType_!=0?Pv(l):_.iXx(l.decoder_);break;case 1:l=l.decoder_;q3(l,l.cursor_+8);break;case 2:if(l.nextWireType_!=2)Pv(l);else{var e=_.N3(l.decoder_)>>>0;l=l.decoder_;q3(l,l.cursor_+e)}break;case 5:l=l.decoder_;q3(l,l.cursor_+4);break;case 3:e=l.nextField_;do{if(!yuq(l))throw Error("V");if(l.nextWireType_==4){if(l.nextField_!=e)throw Error("W");break}Pv(l)}while(1);break;default:throw Error("T`"+l.nextWireType_+"`"+l.fieldCursor_);}};
kwp=function(l,e,O){var E=l.decoder_.end_,J=_.N3(l.decoder_)>>>0,z=l.decoder_.cursor_+J,M=z-E;M<=0&&(l.decoder_.end_=z,O(e,l,void 0,void 0,void 0),M=z-l.decoder_.cursor_);if(M)throw Error("S`"+J+"`"+(J-M));l.decoder_.cursor_=z;l.decoder_.end_=E};
_.IRW=function(l){var e=_.N3(l.decoder_)>>>0;l=l.decoder_;var O=wgt(l,e);l=l.bytes_;if(XBp){var E=l,J;(J=JN2)||(J=JN2=new TextDecoder("utf-8",{fatal:!0}));e=O+e;E=O===0&&e===E.length?E:E.subarray(O,e);try{var z=J.decode(E)}catch(d){if(EFg===void 0){try{J.decode(new Uint8Array([128]))}catch(g){}try{J.decode(new Uint8Array([97])),EFg=!0}catch(g){EFg=!1}}!EFg&&(JN2=void 0);throw d;}}else{z=O;e=z+e;O=[];for(var M=null,Z,u;z<e;)Z=l[z++],Z<128?O.push(Z):Z<224?z>=e?eM():(u=l[z++],Z<194||(u&192)!==128?(z--,
eM()):O.push((Z&31)<<6|u&63)):Z<240?z>=e-1?eM():(u=l[z++],(u&192)!==128||Z===224&&u<160||Z===237&&u>=160||((J=l[z++])&192)!==128?(z--,eM()):O.push((Z&15)<<12|(u&63)<<6|J&63)):Z<=244?z>=e-2?eM():(u=l[z++],(u&192)!==128||(Z<<28)+(u-144)>>30!==0||((J=l[z++])&192)!==128||((E=l[z++])&192)!==128?(z--,eM()):(Z=(Z&7)<<18|(u&63)<<12|(J&63)<<6|E&63,Z-=65536,O.push((Z>>10&1023)+55296,(Z&1023)+56320))):eM(),O.length>=8192&&(M=lWL(M,O),O.length=0);z=lWL(M,O)}return z};
_.mIg=function(l){var e=_.N3(l.decoder_)>>>0;return KHx(l.decoder_,e)};
_.y8p=function(l,e,O){var E=_.N3(l.decoder_)>>>0;for(E=l.decoder_.cursor_+E;l.decoder_.cursor_<E;)O.push(e(l.decoder_))};
aRx=[];var pgd=function(l,e){this.JSC$6898_lo=l>>>0;this.JSC$6898_hi=e>>>0},j8V=function(l){if(!l)return Kzd||(Kzd=new pgd(0,0));
if(!/^\d+$/.test(l))return null;Ju(l);return new pgd(r1,DS)},Kzd,LHT=function(l,e){this.JSC$6900_lo=l>>>0;
this.JSC$6900_hi=e>>>0},UoA=function(l){if(!l)return HXV||(HXV=new LHT(0,0));
if(!/^-?\d+$/.test(l))return null;Ju(l);return new LHT(r1,DS)},HXV;var c8x=function(){this.JSC$6902_buffer_=[]},Yuu,FzT;
c8x.prototype.length=function(){return this.JSC$6902_buffer_.length};
c8x.prototype.end=function(){var l=this.JSC$6902_buffer_;this.JSC$6902_buffer_=[];return l};
Yuu=function(l,e,O){for(;O>0||e>127;)l.JSC$6902_buffer_.push(e&127|128),e=(e>>>7|O<<25)>>>0,O>>>=7;l.JSC$6902_buffer_.push(e)};
FzT=function(l,e){for(;e>127;)l.JSC$6902_buffer_.push(e&127|128),e>>>=7;l.JSC$6902_buffer_.push(e)};
_.t3d=function(l,e){if(e>=0)FzT(l,e);else{for(var O=0;O<9;O++)l.JSC$6902_buffer_.push(e&127|128),e>>=7;l.JSC$6902_buffer_.push(1)}};
_.DV=function(l,e){l.JSC$6902_buffer_.push(e>>>0&255);l.JSC$6902_buffer_.push(e>>>8&255);l.JSC$6902_buffer_.push(e>>>16&255);l.JSC$6902_buffer_.push(e>>>24&255)};var fRV,LJ,v42,DoV;fRV=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new c8x};
LJ=function(l,e){e.length!==0&&(l.blocks_.push(e),l.totalLength_+=e.length)};
_.$oL=function(l,e){_.NH(l,e,2);e=l.encoder_.end();LJ(l,e);e.push(l.totalLength_);return e};
_.WHx=function(l,e){var O=e.pop();for(O=l.totalLength_+l.encoder_.length()-O;O>127;)e.push(O&127|128),O>>>=7,l.totalLength_++;e.push(O);l.totalLength_++};
_.NH=function(l,e,O){FzT(l.encoder_,e*8+O)};
v42=function(l,e,O){if(O!=null){switch(typeof O){case "string":j8V(O)}_.NH(l,e,1);switch(typeof O){case "number":l=l.encoder_;LxA(O);_.DV(l,r1);_.DV(l,DS);break;case "bigint":O=BigInt.asUintN(64,O);O=new pgd(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));l=l.encoder_;e=O.JSC$6898_hi;_.DV(l,O.JSC$6898_lo);_.DV(l,e);break;default:O=j8V(O),l=l.encoder_,e=O.JSC$6898_hi,_.DV(l,O.JSC$6898_lo),_.DV(l,e)}}};
DoV=function(l,e,O){_.NH(l,e,2);FzT(l.encoder_,O.length);LJ(l,l.encoder_.end());LJ(l,O)};var uFV,s8T,GwM,UIx,YAW;uFV=fJ();_.RD8=fJ();_.T7g=fJ();s8T=fJ();GwM=fJ();_.B7g=fJ();_.DZ=fJ();_.PjM=fJ();UIx=fJ();YAW=fJ();_.hDW=fJ();_.LzA=fJ();_.Gu=function(l,e,O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,e,O)};
_.Gu.prototype.toJSON=function(){return eO(this)};
_.Gu.prototype.serialize=function(l){return JSON.stringify(eO(this,l))};
var EHu=function(l,e){if(e==null||e=="")return new l;e=JSON.parse(e);if(!Array.isArray(e))throw Error("$");return new l(Rtu(e))};
_.Gu.prototype.getExtension=function(l){cCx(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l.fieldIndex);jqx(this,l.fieldIndex);return l.ctor?l.isRepeated?l.getExtensionFn(this,l.ctor,l.fieldIndex,_.Oo(),l.JSC$6913_hasMessageId):l.getExtensionFn(this,l.ctor,l.fieldIndex,l.JSC$6913_hasMessageId):l.isRepeated?l.getExtensionFn(this,l.fieldIndex,_.Oo(),l.JSC$6913_hasMessageId):l.getExtensionFn(this,l.fieldIndex,l.defaultValue,l.JSC$6913_hasMessageId)};
_.Gu.prototype.clone=function(){var l=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=l[_.aq]|0;return bk(this,l,e)?zu(this,l,!0):new this.constructor(XS(l,e,!1))};
_.Gu.prototype[Y4]=hu;_.Gu.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var R5=function(l,e,O){this.$$binaryReaderFn=l;this.$$binaryWriterFn=e;l=vh(uFV);this.$$isMsg=!!l&&O===l||!1},whM=Czx(function(l,e,O,E,J){if(l.nextWireType_!==2)return!1;
kwp(l,ZXu(e,E,O),J);return!0},dog),Aux=Czx(function(l,e,O,E,J){if(l.nextWireType_!==2)return!1;
kwp(l,ZXu(e,E,O),J);return!0},dog),YH=Symbol(),Bv=Symbol(),mod=Symbol(),fOV=Symbol(),jiM=Symbol(),g48,iPx;var eS8,t2u,qAL,vX8,N7x,r8L,DIW,SAW,Q82,xIx,lMM,OBt,EBd,XZ2,zlT;eS8=function(l,e){var O=new fRV;R4A(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O,sj(YH,Uj,hp,e));LJ(O,O.encoder_.end());l=new Uint8Array(O.totalLength_);e=O.blocks_;for(var E=e.length,J=0,z=0;z<E;z++){var M=e[z];l.set(M,J);J+=M.length}O.blocks_=[l];return l};
t2u=_.tp(function(l,e,O){if(l.nextWireType_!==1)return!1;_.qH(e,O,gXM(l.decoder_));return!0},Pzx,YAW);
qAL=_.tp(function(l,e,O,E){if(l.nextWireType_!==1)return!1;_.HW(e,O,E,gXM(l.decoder_));return!0},Pzx,YAW);
vX8=_.tp(function(l,e,O,E){if(l.nextWireType_!==5)return!1;var J=_.rs(l.decoder_);l=(J>>31)*2+1;var z=J>>>23&255;J&=8388607;_.HW(e,O,E,z==255?J?NaN:l*Infinity:z==0?l*1.401298464324817E-45*J:l*Math.pow(2,z-150)*(J+8388608));return!0},function(l,e,O){e=_.uz(e);
e!=null&&(_.NH(l,O,5),l=l.encoder_,O=rc||(rc=new DataView(new ArrayBuffer(8))),O.setFloat32(0,+e,!0),DS=0,r1=O.getUint32(0,!0),_.DV(l,r1))},UIx);
_.SR=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;_.qH(e,O,_.vW(l.decoder_,e3));return!0},_.SO,_.DZ);
N7x=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;l=_.vW(l.decoder_,e3);_.qH(e,O,l===0?void 0:l);return!0},_.SO,_.DZ);
r8L=_.tp(function(l,e,O,E){if(l.nextWireType_!==0)return!1;_.HW(e,O,E,_.vW(l.decoder_,e3));return!0},_.SO,_.DZ);
_.QK=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;_.qH(e,O,_.N3(l.decoder_));return!0},qu8,s8T);
DIW=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;l=_.N3(l.decoder_);_.qH(e,O,l===0?void 0:l);return!0},qu8,s8T);
SAW=_.tp(function(l,e,O,E){if(l.nextWireType_!==0)return!1;_.HW(e,O,E,_.N3(l.decoder_));return!0},qu8,s8T);
Q82=_.tp(function(l,e,O){if(l.nextWireType_!==1)return!1;_.qH(e,O,dI2(l.decoder_));return!0},_.Nfq,_.PjM);
xIx=_.BfV(function(l,e,O){if(l.nextWireType_!==1&&l.nextWireType_!==2)return!1;e=_.yI(e,e[_.aq]|0,O);l.nextWireType_==2?_.y8p(l,dI2,e):e.push(dI2(l.decoder_));return!0},function(l,e,O){e=_.G08(diM,e,!1);
if(e!=null)for(var E=0;E<e.length;E++)v42(l,O,e[E])},_.PjM);
_.xh=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;_.qH(e,O,_.iXx(l.decoder_));return!0},_.ruA,_.RD8);
lMM=_.tp(function(l,e,O,E){if(l.nextWireType_!==0)return!1;_.HW(e,O,E,_.iXx(l.decoder_));return!0},_.ruA,_.RD8);
_.lQ=_.tp(function(l,e,O){if(l.nextWireType_!==2)return!1;_.qH(e,O,_.IRW(l));return!0},_.Su2,_.T7g);
_.el8=_.tp(function(l,e,O,E){if(l.nextWireType_!==2)return!1;_.HW(e,O,E,_.IRW(l));return!0},_.Su2,_.T7g);
OBt=_.BfV(function(l,e,O){if(l.nextWireType_!==2)return!1;l=_.IRW(l);_.yI(e,e[_.aq]|0,O).push(l);return!0},function(l,e,O){e=_.G08(_.Uu,e,!0);
if(e!=null)for(var E=0;E<e.length;E++){var J=l,z=O,M=e[E];M!=null&&DoV(J,z,Jqx(M))}},_.T7g);
EBd=void 0;EBd=EBd===void 0?uFV:EBd;_.ea=new R5(function(l,e,O,E,J){if(l.nextWireType_!==2)return!1;E=Jp(void 0,E,!0);_.yI(e,e[_.aq]|0,O).push(E);kwp(l,E,J);return!0},function(l,e,O,E,J){if(Array.isArray(e))for(var z=0;z<e.length;z++)QiV(l,e[z],O,E,J)},EBd);
_.O8=Czx(function(l,e,O,E,J,z){if(l.nextWireType_!==2)return!1;var M=e[_.aq]|0;Xhx(e,M,z,O,Ux(M));e=ZXu(e,E,O);kwp(l,e,J);return!0},QiV);
_.JXx=_.tp(function(l,e,O){if(l.nextWireType_!==2)return!1;_.qH(e,O,_.mIg(l));return!0},_.xox,_.hDW);
XZ2=_.tp(function(l,e,O,E){if(l.nextWireType_!==2)return!1;_.HW(e,O,E,_.mIg(l));return!0},_.xox,_.hDW);
zlT=_.tp(function(l,e,O,E){if(l.nextWireType_!==0)return!1;_.HW(e,O,E,_.N3(l.decoder_)>>>0);return!0},function(l,e,O){e=_.yC(e);
e!=null&&e!=null&&(_.NH(l,O,0),FzT(l.encoder_,e))},GwM);
_.E8=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;_.qH(e,O,_.N3(l.decoder_));return!0},_.lVp,_.LzA);var V6T=function(){var l=bB2,e=M6M;this.fieldIndex=175237375;this.ctor=e;this.isRepeated=0;this.getExtensionFn=_.Cu;this.defaultValue=void 0;this.JSC$6913_hasMessageId=l.messageId!=null?B6:void 0};
V6T.prototype.register=function(){ds(this)};var ZB8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ZB8,_.Gu);var uEp=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(uEp,_.Gu);var zSV=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(zSV,_.Gu);var CKM=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(CKM,_.Gu);var oBT=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(oBT,_.Gu);var $KV=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m($KV,_.Gu);var WQW=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(WQW,_.Gu);WQW.prototype.getData=function(){return _.jR(this,2)};var dKg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(dKg,_.Gu);var gBT=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(gBT,_.Gu);gBT.prototype.getStyle=function(){return _.Cu(this,ZB8,1)};var ON=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ON,_.Gu);ON.prototype.getPayloadCase=function(){return _.cW(this,XC)};
ON.prototype.getStyle=function(){return _.hZ(this,gBT,6,XC)};
var iBx=function(){var l=new ON,e=new oBT;return _.Jz(l,7,XC,e)},wZd=function(){var l=new ON,e=new $KV;
return _.Jz(l,8,XC,e)},XC=[1,
2,3,4,5,6,7,8];var AX2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(AX2,_.Gu);var nBd=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(nBd,_.Gu);var aMM=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(aMM,_.Gu);var k2p=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(k2p,_.Gu);var IMV=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(IMV,_.Gu);var mKt=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(mKt,_.Gu);var yXt=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(yXt,_.Gu);var pZp=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(pZp,_.Gu);pZp.prototype.getData=function(){return _.jR(this,2)};var KQV=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(KQV,_.Gu);var Xvt=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Xvt,_.Gu);Xvt.prototype.getPayloadCase=function(){return _.cW(this,Jr)};
var Jr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var XD=function(l,e){l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=e===void 0?2:e};
_.m(XD,Error);var jux=Promise;var HBp=function(l){this.channelPromise=l};
HBp.prototype.send=function(l,e,O){this.channelPromise.then(function(E){E.send(l,e,O)})};var cXd=function(l,e){this.data=l;this.channel=e};
cXd.prototype.reply=function(l,e,O){this.channel.send(l,e,O)};var FQg=function(l){this.JSC$6979_port_=l};
FQg.prototype.send=function(l,e,O){O=O===void 0?[]:O;var E=new MessageChannel;fMW(E.port1,e);this.JSC$6979_port_.postMessage(l,[E.port2].concat(O))};
var Rlq=function(l,e){fMW(l,e);return new FQg(l)},fMW=function(l,e){e&&(l.onmessage=function(O){e(new cXd(O.data,Rlq(O.ports[0])))})};var TDW=function(l){this.verifier_=l},sud=function(l){var e=Object.create(null);
(typeof l==="string"?[l]:l).forEach(function(O){if(O==="null")throw Error("ba");e[O]=!0});
return function(O){return e[O]===!0}};_.G2W=function(){if(!_.Op.addEventListener||!Object.defineProperty)return!1;var l=!1,e=Object.defineProperty({},"passive",{get:function(){l=!0}});
try{var O=function(){};
_.Op.addEventListener("test",O,e);_.Op.removeEventListener("test",O,e)}catch(E){}return l}();var BD8;_.zP=function(l){var e=l.destination;var O=l.iframe;var E=l.origin;var J=l.channelName===void 0?"ZNWN1d":l.channelName;var z=l.onMessage===void 0?void 0:l.onMessage;l=l.onEstablished===void 0?void 0:l.onEstablished;return BD8({destination:e,getSource:function(){return O.contentWindow},
originVerifier:E instanceof TDW?E:typeof E==="function"?new TDW(E):new TDW(sud(E)),channelName:J,onMessage:z,onEstablished:l})};
BD8=function(l){var e=l.destination;var O=l.getSource;var E=l.originVerifier;var J=l.token===void 0?void 0:l.token;var z=l.channelName;var M=l.onMessage===void 0?void 0:l.onMessage;var Z=l.onEstablished===void 0?void 0:l.onEstablished;return new HBp(new jux(function(u,d){var g=function(w){w.source&&w.source===O()&&E.verifier_(w.origin)&&(w.data.n||w.data)===z&&(e.removeEventListener("message",g,!1),J&&w.data.t!==J?d(Error("ca`"+z+"`"+J+"`"+w.data.t)):(u(Rlq(w.ports[0],M)),Z&&Z(w)))};
e.addEventListener("message",g,!1)}))};var PKV=function(l){try{l()}catch(e){Ep(e)}};var YTM=function(l){var e=this;var O=l.getMessageType;var E=l.onUnregisteredMessage===void 0?function(){}:l.onUnregisteredMessage;
var J=l.onBeforeRegisteredMessage===void 0?function(){}:l.onBeforeRegisteredMessage;
l=l.onAfterRegisteredMessage===void 0?function(){}:l.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=O;this.onUnregisteredMessage_=E;this.onBeforeRegisteredMessage_=J;this.onAfterRegisteredMessage_=l;this.onMessage=function(z){return UK2(e,z)}};
YTM.prototype.register=function(l,e){this.registry_.set(l,e);return this};
var UK2=function(l,e){var O=l.getMessageType_(e.data),E=l.registry_.get(O);E?(PKV(function(){return l.onBeforeRegisteredMessage_(e,O)}),PKV(function(){return E(e)}),PKV(function(){return l.onAfterRegisteredMessage_(e,O)})):PKV(function(){return l.onUnregisteredMessage_(e,O)})};var hlq=function(l){this.JSC$6996_channel_=l},t6d,qTx;
hlq.prototype.send=function(l,e,O){this.JSC$6996_channel_.send(eO(l),e,O)};
_.LQV=function(l,e){return function(O){var E=new l(O.data);return e(new cXd(E,O.channel))}};
t6d=function(l){return function(e){return l(new cXd(e.data,new hlq(e.channel)))}};
qTx=function(l,e){return t6d(_.LQV(l,e))};var vBV=function(l,e,O,E){this.registry=l;this.delegate=e;this.receiveMessageConstructor=O;this.createInitMessage=E;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},JpM=function(l){var e=new YTM({getMessageType:l.getPayloadCase});
return new vBV(e,new hlq(_.zP({iframe:l.child,destination:window,origin:l.origin,channelName:l.channelName,onMessage:qTx(l.receiveMessageConstructor,e.onMessage)})),l.receiveMessageConstructor,l.createInitMessage)},NDx=function(l,e){l.createInitMessage=e};
vBV.prototype.send=function(l){if(!this.initialised)throw new XD("Attempted to send a message before initialisation.");this.delegate.send(l)};
var rXd=function(l,e){return _.V(function(O){if(!l.initialised)throw new XD("Attempted to send a message before initialisation.");return O.return(new Promise(function(E){l.delegate.send(e,qTx(l.receiveMessageConstructor,E))}))})};
vBV.prototype.init=function(){var l=this;return _.V(function(e){if(l.initialised)throw new XD("Attempted to initialise twice. The SDK can only be initialised once.");if(l.createInitMessage!==void 0){var O=l.delegate,E=O.send,J=l.createInitMessage;var z=new uEp;var M=[].concat(_.kA(l.features));z=_.I5(z,1,M,_.nP);E.call(O,J.call(l,z))}l.initialised=!0;_.Cl(e)})};
var bQ=function(l,e){if(l.initialised)throw new XD('Attempted to set up API "'+e+'" after initialisation. All APIs must be set up before initialising the SDK.');l.features.add(e);return l.registry};
_.Ji.Object.defineProperties(vBV.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var DK8=function(l){this.channel=l;this.registered=!1};
DK8.prototype.update=function(l){if(this.channel.isInitialised){if(!this.registered)throw new XD("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var e=new ON;var O=new CKM;O=_.b$(O,1,l);e=_.Jz(e,2,XC,O);this.channel.send(e)}else this.register();this.JSC$7010_audioEnabled=l};
DK8.prototype.register=function(){bQ(this.channel,1);this.registered=!0};
DK8.prototype.isAudioEnabled=function(){return this.JSC$7010_audioEnabled};var STT=function(l){this.channel=l};
_.X=STT.prototype;_.X.onFirstFrameReady=function(l){bQ(this.channel,2).register(11,function(e){e=_.hZ(e.data,AX2,11,Jr);if(!e)throw new XD("Unexpectedly nonexistent GameFirstFrameReadyEvent");l(_.BW(e,1))})};
_.X.onReady=function(l){bQ(this.channel,2).register(4,function(e){e=_.hZ(e.data,aMM,4,Jr);if(!e)throw new XD("Unexpectedly nonexistent GameReadyEvent");l(_.BW(e,1))})};
_.X.onLevelComplete=function(l){bQ(this.channel,2).register(5,function(e){e=_.hZ(e.data,k2p,5,Jr);if(!e)throw new XD("Unexpectedly nonexistent LevelCompleteEvent");l(_.BW(e,1),_.Eo(e,2))})};
_.X.onGameOver=function(l){bQ(this.channel,2).register(6,function(e){e=_.hZ(e.data,nBd,6,Jr);if(!e)throw new XD("Unexpectedly nonexistent GameOverEvent");l(_.BW(e,1))})};
_.X.pause=function(){var l=this;if(!this.channel.isInitialised)return bQ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new XD("Using unregistered Game Feature: pause.");var e=iBx();return new Promise(function(O){return _.V(function(E){if(E.nextAddress==1)return _.C(E,rXd(l.channel,e),2);O();_.Cl(E)})})};
_.X.resume=function(){var l=this;if(!this.channel.isInitialised)return bQ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new XD("Using unregistered Game Feature: resume.");var e=wZd();return new Promise(function(O){return _.V(function(E){if(E.nextAddress==1)return _.C(E,rXd(l.channel,e),2);O();_.Cl(E)})})};var Qu8=function(l){this.channel=l};
Qu8.prototype.onReady=function(l){bQ(this.channel,5).register(8,function(e){if(!_.hZ(e.data,IMV,8,Jr))throw new XD("Unexpectedly nonexistent PageReadyEvent");l()})};var xKW=function(l){this.channel=l};
xKW.prototype.onChange=function(l){bQ(this.channel,3).register(7,function(e){e=_.hZ(e.data,mKt,7,Jr);if(!e)throw new XD("Unexpectedly nonexistent ScoreEvent");l(_.BW(e,1),_.Eo(e,2))})};var l0u={load:function(){throw new XD("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new XD("Storage used, but storage.onSave() listener not set!");}},ePA=function(l){this.channel=l;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},OD2=function(l){bQ(l.channel,4).register(2,l0u.load).register(3,l0u.save);
l.initialSetupDone=!0};
ePA.prototype.onLoad=function(l){this.initialSetupDone||OD2(this);this.loadRegistered||(this.loadRegistered=!0,bQ(this.channel,4).register(2,function(e){var O,E,J;return _.V(function(z){if(z.nextAddress==1){O=_.hZ(e.data,yXt,2,Jr);if(!O)throw new XD("Unexpectedly nonexistent StorageLoad");E=_.BW(O,1);return _.C(z,l(E),2)}J=z.yieldResult;var M=e.reply,Z=new ON;var u=new WQW;u=_.da(u,1,E);u=_.$P(u,2,_.sx(J,!1));Z=_.Jz(Z,3,XC,u);M.call(e,Z);_.Cl(z)})}))};
ePA.prototype.onSave=function(l){this.initialSetupDone||OD2(this);this.saveRegistered||(this.saveRegistered=!0,bQ(this.channel,4).register(3,function(e){var O,E,J;return _.V(function(z){if(z.nextAddress==1){O=_.hZ(e.data,pZp,3,Jr);if(!O)throw new XD("Unexpectedly nonexistent StorageSave");E=_.BW(O,1);J=rN2(O.getData());return _.C(z,l(E,J),2)}var M=e.reply,Z=new ON;var u=new dKg;u=_.da(u,1,E);Z=_.Jz(Z,4,XC,u);M.call(e,Z);_.Cl(z)})}))};var EbV=function(l){this.channel=l};
EbV.prototype.update=function(l){if(!this.channel.features.has(6))throw new XD("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var e=new ON,O=new gBT;l=_.EN(O,1,l);e=_.Jz(e,6,XC,l);this.channel.send(e)};
EbV.prototype.register=function(){bQ(this.channel,6)};var JOp=function(l){this.channel=l;this.userActivityLoggingIntervalMs=0};
JOp.prototype.onUserActivity=function(l,e){this.userActivityLoggingIntervalMs=e;bQ(this.channel,7).register(9,function(O){if(!_.hZ(O.data,KQV,9,Jr))throw new XD("Unexpectedly nonexistent ClickEvent");l()})};var X7x=function(l){var e=this;this.channel=l;this.init=this.channel.init.bind(this.channel);this.page=new Qu8(this.channel);this.game=new STT(this.channel);this.audio=new DK8(this.channel);this.score=new xKW(this.channel);this.storage=new ePA(this.channel);this.style=new EbV(this.channel);this.userActivity=new JOp(this.channel);NDx(this.channel,function(O){var E=new zSV;O=_.EN(E,1,O);O=_.L2(O,3,e.userActivity.userActivityLoggingIntervalMs);E=e.audio.isAudioEnabled();E!==void 0&&_.b$(O,2,E);E=new ON;
return _.Jz(E,5,XC,O)})};var zPM=function(){this.timedFunctionContext=0};
zPM.prototype.timeExecution=function(l,e){var O=this;return function(){var E=_.ke.apply(0,arguments);O.timedFunctionContext=l;return e.apply(null,_.kA(E))}};var bDd=function(){var l={};this.priorityTasks=(l[3]=[],l[2]=[],l[1]=[],l);this.isFlushing=!1},M4=function(l,e,O){var E=Mlu(l,O);
l.priorityTasks[O].push(e);E&&l.priorityTasks[O].length===1&&l.flush()},Mlu=function(l,e){return Object.keys(l.priorityTasks).map(function(O){return Number(O)}).filter(function(O){return!isNaN(O)&&O>e}).every(function(O){return l.priorityTasks[O].length===0})};
bDd.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(l){return l.length>0});)VlM(this,3),VlM(this,2),VlM(this,1)}catch(l){throw Object.values(this.priorityTasks).forEach(function(e){return void e.splice(0,e.length)}),l;
}finally{this.isFlushing=!1}}};
var VlM=function(l,e){for(;Mlu(l,e)&&l.priorityTasks[e].length>0;)l.priorityTasks[e][0](),l.priorityTasks[e].shift()};
_.Ji.Object.defineProperties(bDd.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(l){return l.length>0})}}});var Ck2={};var ZDt=globalThis.trustedTypes,MOA=ZDt,ZJA;var Mm=function(l){this.privateDoNotAccessOrElseWrappedResourceUrl=l};
Mm.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var uXg=_.E9([""]),CfW=Typ(["\x00"],["\\0"]),ob2=Typ(["\n"],["\\n"]),$Ld=Typ(["\x00"],["\\u0000"]);ur(function(l){return l(uXg)})||ur(function(l){return l(CfW)})||ur(function(l){return l(ob2)})||ur(function(l){return l($Ld)});var wG;_.CU=function(l,e){this.privateDoNotAccessOrElseWrappedUrl=e};
_.CU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.WtT=oH("about:blank");wG=oH("about:invalid#zClosurez");var oHx=function(l){this.isValid=l},dLq=new oHx(function(l){return/^[^:]*([/?#]|$)/.test(l)}),gbM=dG("data"),iDx=dG("http"),w7T=dG("https"),AOt=dG("ftp"),nb2=dG("mailto"),a0p=dG("intent"),kpA=dG("vnd.youtube"),$HL=[gbM,
iDx,w7T,nb2,AOt,dLq],Wbt=br(function(){return typeof URL==="function"}),I0M=["data:",
"http:","https:","mailto:","ftp:"],gHL=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var pU=function(l){this.privateDoNotAccessOrElseWrappedHtml=l};
pU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var WGq=br(function(){return new pU(ZDt?ZDt.emptyHTML:"")});var mLV={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"},c2=function(l,e){var O=Error.call(this,l+" cannot be used with intent "+mLV[e]);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.type=l;this.intent=e;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.m(c2,Error);_.T1=function(l){this.privateDoNotAccessOrElseWrappedScript=l};
_.T1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var nH2=function(l){this.privateDoNotAccessOrElseWrappedAttributePrefix=l};
nH2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var aVt="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var WXu=function(l){var e=_.vK("window.location.href");l==null&&(l='Unknown Error of type "null/undefined"');if(typeof l==="string")return{message:l,name:"Unknown error",lineNumber:"Not available",fileName:e,stack:"Not available"};var O=!1;try{var E=l.lineNumber||l.line||"Not available"}catch(M){E="Not available",O=!0}try{var J=l.fileName||l.filename||l.sourceURL||_.Op.$googDebugFname||e}catch(M){J="Not available",O=!0}e=yOx(l);if(!(!O&&l.lineNumber&&l.fileName&&l.stack&&l.message&&l.name)){O=l.message;
if(O==null){if(l.constructor&&l.constructor instanceof Function){if(l.constructor.name)O=l.constructor.name;else if(O=l.constructor,MC[O])O=MC[O];else{O=String(O);if(!MC[O]){var z=/function\s+([^\(]+)/m.exec(O);MC[O]=z?z[1]:"[Anonymous]"}O=MC[O]}O='Unknown Error of type "'+O+'"'}else O="Unknown Error of unknown type";typeof l.toString==="function"&&Object.prototype.toString!==l.toString&&(O+=": "+l.toString())}return{message:O,name:l.name||"UnknownError",lineNumber:E,fileName:J,stack:e||"Not available"}}return{message:l.message,
name:l.name,lineNumber:l.lineNumber,fileName:l.fileName,stack:e}},yOx=function(l,e){e||(e={});
e[p7V(l)]=!0;var O=l.stack||"",E=l.cause;E&&!e[p7V(E)]&&(O+="\nCaused by: ",E.stack&&E.stack.indexOf(E.toString())==0||(O+=typeof E==="string"?E:E.message+"\n"),O+=yOx(E,e));l=l.errors;if(Array.isArray(l)){E=1;var J;for(J=0;J<l.length&&!(E>4);J++)e[p7V(l[J])]||(O+="\nInner error "+E++ +": ",l[J].stack&&l[J].stack.indexOf(l[J].toString())==0||(O+=typeof l[J]==="string"?l[J]:l[J].message+"\n"),O+=yOx(l[J],e));J<l.length&&(O+="\n... "+(l.length-J)+" more inner errors")}return O},p7V=function(l){var e=
"";
typeof l.toString==="function"&&(e=""+l);return e+l.stack},MC={};var Kt2,bt,Wi,HDu,cOp,jw8,Nh,rv,f0t;Kt2=function(l,e){for(var O=l.split("%s"),E="",J=Array.prototype.slice.call(arguments,1);J.length&&O.length>1;)E+=O.shift()+J.shift();return E+O.join("%s")};
_.r5=function(l){return encodeURIComponent(String(l))};
bt=function(l){return decodeURIComponent(l.replace(/\+/g," "))};
Wi=function(l){oFx.test(l)&&(l.indexOf("&")!=-1&&(l=l.replace(bKx,"&amp;")),l.indexOf("<")!=-1&&(l=l.replace(M8p,"&lt;")),l.indexOf(">")!=-1&&(l=l.replace(V8x,"&gt;")),l.indexOf('"')!=-1&&(l=l.replace(ZKx,"&quot;")),l.indexOf("'")!=-1&&(l=l.replace(uGg,"&#39;")),l.indexOf("\x00")!=-1&&(l=l.replace(Cup,"&#0;")));return l};
HDu=function(l){var e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var O=_.Op.document.createElement("div");return l.replace(jw8,function(E,J){var z=e[E];if(z)return z;J.charAt(0)=="#"&&(J=Number("0"+J.slice(1)),isNaN(J)||(z=String.fromCharCode(J)));z||(_.Ye(O,KU(E+" ")),z=O.firstChild.nodeValue.slice(0,-1));return e[E]=z})};
cOp=function(l){return l.replace(/&([^;]+);/g,function(e,O){switch(O){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return O.charAt(0)!="#"||(O=Number("0"+O.slice(1)),isNaN(O))?e:String.fromCharCode(O)}})};
jw8=/&([^;\s<&]+);?/g;_.G8u=function(l){return String(l).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Ftu=String.prototype.repeat?function(l,e){return l.repeat(e)}:function(l,e){return Array(e+1).join(l)};
_.Vl=function(l,e){if(!Number.isFinite(l))return String(l);l=String(l);var O=l.indexOf(".");O===-1&&(O=l.length);var E=l[0]==="-"?"-":"";E&&(l=l.substring(1));return E+(0,_.Ftu)("0",Math.max(0,e-O))+l};
Nh=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.C2()).toString(36)};
rv=function(l){for(var e=0,O=0;O<l.length;++O)e=31*e+l.charCodeAt(O)>>>0;return e};
_.Ic=function(l){return String(l).replace(/\-([a-z])/g,function(e,O){return O.toUpperCase()})};
_.kv=function(l){return String(l).replace(/([A-Z])/g,"-$1").toLowerCase()};
f0t=function(l){return l.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,O,E){return O+E.toUpperCase()})};var RPq=function(){this.names=new Map};
RPq.prototype.getName=function(l){var e=this.names.get(l);if(e)return e;var O;e=(O=l.description)!=null?O:Nh();this.names.set(l,e);return e};var Toq=function(l){var e=Error.call(this,l?l.length+" errors occurred during unsubscription:\n"+l.map(function(O,E){return E+1+") "+O.toString()}).join("\n  "):"");
this.message=e.message;"stack"in e&&(this.stack=e.stack);this.errors=l;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.m(Toq,Error);var rG=function(l){this.initialTeardown=l;this.closed=!1;this._teardowns=this._parentage=null};
_.X=rG.prototype;
_.X.unsubscribe=function(){if(!this.closed){this.closed=!0;var l=this._parentage;if(Array.isArray(l))for(var e=_.b(l),O=e.next();!O.done;O=e.next())O.value.remove(this);else l==null||l.remove(this);e=this.initialTeardown;if(Nm(e))try{e()}catch(z){var E=z instanceof Toq?z.errors:[z]}var J=this._teardowns;if(J)for(this._teardowns=null,e=_.b(J),O=e.next();!O.done;O=e.next()){O=O.value;try{Nm(O)?O():O.unsubscribe()}catch(z){O=void 0,E=(O=E)!=null?O:[],z instanceof Toq?E=[].concat(_.kA(E),_.kA(z.errors)):
E.push(z)}}if(E)throw new Toq(E);}};
_.X.add=function(l){if(l&&l!==this)if(this.closed)Nm(l)?l():l.unsubscribe();else{if(l instanceof rG){if(l.closed||l._hasParent(this))return;l._addParent(this)}var e;(this._teardowns=(e=this._teardowns)!=null?e:[]).push(l)}};
_.X._hasParent=function(l){var e=this._parentage;return e===l||Array.isArray(e)&&e.includes(l)};
_.X._addParent=function(l){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(l),e):e?[e,l]:l};
_.X._removeParent=function(l){var e=this._parentage;e===l?this._parentage=null:Array.isArray(e)&&v2(e,l)};
_.X.remove=function(l){var e=this._teardowns;e&&v2(e,l);l instanceof rG&&l._removeParent(this)};
var swA=new rG;swA.closed=!0;rG.JSC$7106_EMPTY=swA;var ypg=function(){setTimeout.apply(null,_.kA(_.ke.apply(0,arguments)))};var Zm=function(l){rG.call(this);this.JSC$7111_isStopped=!1;this.destination=l instanceof Zm?l:new uQ(!l||Nm(l)?{next:l!=null?l:void 0}:l);mHW(l)&&l.add(this)};
_.m(Zm,rG);Zm.JSC$7106_EMPTY=rG.JSC$7106_EMPTY;Zm.create=function(l,e,O){return new C3(l,e,O)};
_.X=Zm.prototype;_.X.next=function(l){this.JSC$7111_isStopped||this._next(l)};
_.X.error=function(l){this.JSC$7111_isStopped||(this.JSC$7111_isStopped=!0,this._error(l))};
_.X.complete=function(){this.JSC$7111_isStopped||(this.JSC$7111_isStopped=!0,this._complete())};
_.X.unsubscribe=function(){this.closed||(this.JSC$7111_isStopped=!0,rG.prototype.unsubscribe.call(this))};
_.X._next=function(l){this.destination.next(l)};
_.X._error=function(l){this.destination.error(l);this.unsubscribe()};
_.X._complete=function(){this.destination.complete();this.unsubscribe()};
var uQ=function(l){this.partialObserver=l};
uQ.prototype.next=function(l){var e=this.partialObserver;if(e.next)try{e.next(l)}catch(O){Sv(O)}};
uQ.prototype.error=function(l){var e=this.partialObserver;if(e.error)try{e.error(l)}catch(O){Sv(O)}else Sv(l)};
uQ.prototype.complete=function(){var l=this.partialObserver;if(l.complete)try{l.complete()}catch(e){Sv(e)}};
var C3=function(l,e,O){Zm.call(this);var E;Nm(l)||!l?E={next:l!=null?l:void 0,error:e!=null?e:void 0,complete:O!=null?O:void 0}:E=l;this.destination=new uQ(E)};
_.m(C3,Zm);C3.JSC$7106_EMPTY=Zm.JSC$7106_EMPTY;C3.create=Zm.create;var E$=typeof Symbol==="function"&&Symbol.observable||"@@observable";var eS=function(l){l&&(this._subscribe=l)};
_.X=eS.prototype;_.X.lift=function(l){var e=new eS;e.source=this;e.operator=l;return e};
_.X.subscribe=function(l,e,O){l=l&&l instanceof Zm||l&&Nm(l.next)&&Nm(l.error)&&Nm(l.complete)&&mHW(l)?l:new C3(l,e,O);e=this.operator;O=this.source;l.add(e?e.call(l,O):O?this._subscribe(l):this._trySubscribe(l));return l};
_.X._trySubscribe=function(l){try{return this._subscribe(l)}catch(e){l.error(e)}};
_.X.forEach=function(l,e){var O=this;e=Kbp(e);return new e(function(E,J){var z=O.subscribe(function(M){try{l(M)}catch(Z){J(Z),z==null||z.unsubscribe()}},J,E)})};
_.X._subscribe=function(l){var e;return(e=this.source)==null?void 0:e.subscribe(l)};
eS.prototype[E$]=function(){return this};
eS.prototype.pipe=function(){var l=_.ke.apply(0,arguments);return l.length?pvA(l)(this):this};
eS.create=function(l){return new eS(l)};var Gpg=function(){var l=Error.call(this,"object unsubscribed");this.message=l.message;"stack"in l&&(this.stack=l.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.m(Gpg,Error);var Xe=function(){this.observers=[];this.hasError=this.JSC$7127_isStopped=this.closed=!1;this.thrownError=null};
_.m(Xe,eS);_.X=Xe.prototype;_.X.lift=function(l){var e=new oI(this,this);e.operator=l;return e};
_.X._throwIfClosed=function(){if(this.closed)throw new Gpg;};
_.X.next=function(l){this._throwIfClosed();if(!this.JSC$7127_isStopped){var e=this.observers.slice();e=_.b(e);for(var O=e.next();!O.done;O=e.next())O.value.next(l)}};
_.X.error=function(l){this._throwIfClosed();if(!this.JSC$7127_isStopped){this.hasError=this.JSC$7127_isStopped=!0;this.thrownError=l;for(var e=this.observers;e.length;)e.shift().error(l)}};
_.X.complete=function(){this._throwIfClosed();if(!this.JSC$7127_isStopped){this.JSC$7127_isStopped=!0;for(var l=this.observers;l.length;)l.shift().complete()}};
_.X.unsubscribe=function(){this.JSC$7127_isStopped=this.closed=!0;this.observers=null};
_.X._trySubscribe=function(l){this._throwIfClosed();return eS.prototype._trySubscribe.call(this,l)};
_.X._subscribe=function(l){this._throwIfClosed();this._checkFinalizedStatuses(l);return this._innerSubscribe(l)};
_.X._innerSubscribe=function(l){var e=this,O=this.JSC$7127_isStopped,E=this.observers;return this.hasError||O?rG.JSC$7106_EMPTY:(E.push(l),new rG(function(){return v2(e.observers,l)}))};
_.X._checkFinalizedStatuses=function(l){var e=this.thrownError,O=this.JSC$7127_isStopped;this.hasError?l.error(e):O&&l.complete()};
Xe.create=function(l,e){return new oI(l,e)};
var oI=function(l,e){Xe.call(this);this.destination=l;this.source=e};
_.m(oI,Xe);oI.create=Xe.create;oI.prototype.next=function(l){var e,O;(e=this.destination)==null||(O=e.next)==null||O.call(e,l)};
oI.prototype.error=function(l){var e,O;(e=this.destination)==null||(O=e.error)==null||O.call(e,l)};
oI.prototype.complete=function(){var l,e;(l=this.destination)==null||(e=l.complete)==null||e.call(l)};
oI.prototype._subscribe=function(l){var e,O;return(O=(e=this.source)==null?void 0:e.subscribe(l))!=null?O:rG.JSC$7106_EMPTY};var BR=function(l){Xe.call(this);this._value=l};
_.m(BR,Xe);BR.create=Xe.create;BR.prototype._subscribe=function(l){var e=Xe.prototype._subscribe.call(this,l);!e.closed&&l.next(this._value);return e};
BR.prototype.getValue=function(){var l=this.thrownError,e=this._value;if(this.hasError)throw l;this._throwIfClosed();return e};
BR.prototype.next=function(l){Xe.prototype.next.call(this,this._value=l)};
_.Ji.Object.defineProperties(BR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var HI=new eS(function(l){return l.complete()});var O$=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var s5M=function(l){return l&&typeof l.length==="number"&&typeof l!=="function"};var BoL={now:function(){return(BoL.delegate||Date).now()},
delegate:void 0};var vI=function(l,e,O){l=l===void 0?Infinity:l;e=e===void 0?Infinity:e;O=O===void 0?BoL:O;Xe.call(this);this.bufferSize=l;this.windowTime=e;this.timestampProvider=O;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=e===Infinity;this.bufferSize=Math.max(1,l);this.windowTime=Math.max(1,e)};
_.m(vI,Xe);vI.create=Xe.create;vI.prototype.next=function(l){var e=this.buffer,O=this.infiniteTimeWindow,E=this.timestampProvider,J=this.windowTime;this.JSC$7127_isStopped||(e.push(l),!O&&e.push(E.now()+J));PfV(this);Xe.prototype.next.call(this,l)};
vI.prototype._subscribe=function(l){this._throwIfClosed();PfV(this);for(var e=this._innerSubscribe(l),O=this.infiniteTimeWindow,E=this.buffer.slice(),J=0;J<E.length&&!l.closed;J+=O?1:2)l.next(E[J]);this._checkFinalizedStatuses(l);return e};
var PfV=function(l){var e=l.bufferSize,O=l.timestampProvider,E=l.buffer;l=l.infiniteTimeWindow;var J=(l?1:2)*e;e<Infinity&&J<E.length&&E.splice(0,E.length-J);if(!l){e=O.now();O=0;for(l=1;l<E.length&&E[l]<=e;l+=2)O=l;O&&E.splice(0,O+1)}};var YIW=function(l,e){e=e===void 0?ULV:e;this.schedulerActionCtor=l;this.now=e};
YIW.prototype.schedule=function(l,e,O){e=e===void 0?0:e;return(new this.schedulerActionCtor(this,l)).schedule(O,e)};
var ULV=BoL.now;var p28=function(){var l=Error.call(this,"no elements in sequence");this.message=l.message;"stack"in l&&(this.stack=l.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.m(p28,Error);var i1=function(l,e,O,E,J){Zm.call(this,l);this.onUnsubscribe=J;e&&(this._next=function(z){try{e(z)}catch(M){this.destination.error(M)}});
O&&(this._error=function(z){try{O(z)}catch(M){this.destination.error(M)}this.unsubscribe()});
E&&(this._complete=function(){try{E()}catch(z){this.destination.error(z)}this.unsubscribe()})};
_.m(i1,Zm);i1.JSC$7106_EMPTY=Zm.JSC$7106_EMPTY;i1.create=Zm.create;i1.prototype.unsubscribe=function(){var l;this.closed||(l=this.onUnsubscribe)!=null&&l.call(this);Zm.prototype.unsubscribe.call(this)};var tD=function(l,e){this.source=l;this.subjectFactory=e;this._subject=null;this._refCount=0;this._connection=null};
_.m(tD,eS);tD.create=eS.create;tD.prototype._subscribe=function(l){return hP8(this).subscribe(l)};
var hP8=function(l){var e=l._subject;if(!e||e.JSC$7127_isStopped)l._subject=l.subjectFactory();return l._subject};
tD.prototype._teardown=function(){this._refCount=0;var l=this._connection;this._subject=this._connection=null;l==null||l.unsubscribe()};
tD.prototype.connect=function(){var l=this,e=this._connection;if(!e){e=this._connection=new rG;var O=hP8(this);e.add(this.source.subscribe(new i1(O,void 0,function(E){l._teardown();O.error(E)},function(){l._teardown();
O.complete()},function(){return l._teardown()})));
e.closed&&(this._connection=null,e=rG.JSC$7106_EMPTY)}return e};var rpL=Array.isArray;var SjM=Array.isArray,Ltp=Object,Q5T=Ltp.getPrototypeOf,xHt=Ltp.prototype,l9A=Ltp.keys;var yE=function(l,e,O){Zm.call(this,l);this._next=e;this.shouldComplete=O};
_.m(yE,Zm);yE.JSC$7106_EMPTY=Zm.JSC$7106_EMPTY;yE.create=Zm.create;yE.prototype._complete=function(){this.shouldComplete()?Zm.prototype._complete.call(this):this.unsubscribe()};var Mvx=["addListener","removeListener"],bUM=["addEventListener","removeEventListener"],ZUT=["on","off"];var $M=function(){rG.call(this)};
_.m($M,rG);$M.JSC$7106_EMPTY=rG.JSC$7106_EMPTY;$M.prototype.schedule=function(){return this};var tlW=function(l,e){return setInterval.apply(null,[l,e].concat(_.kA(_.ke.apply(2,arguments))))};var WY=function(l,e){rG.call(this);this.scheduler=l;this.work=e;this.pending=!1};
_.m(WY,$M);WY.JSC$7106_EMPTY=$M.JSC$7106_EMPTY;WY.prototype.schedule=function(l,e){e=e===void 0?0:e;if(this.closed)return this;this.state=l;l=this.id;var O=this.scheduler;l!=null&&(this.id=qIp(this,l,e));this.pending=!0;this.delay=e;this.id=this.id||this.requestAsyncId(O,this.id,e);return this};
WY.prototype.requestAsyncId=function(l,e,O){O=O===void 0?0:O;return tlW(l.flush.bind(l,this),O)};
var qIp=function(l,e,O){O=O===void 0?0:O;if(O!=null&&l.delay===O&&l.pending===!1)return e;clearInterval(e)};
WY.prototype.execute=function(l,e){if(this.closed)return Error("la");this.pending=!1;if(l=this._execute(l,e))return l;this.pending===!1&&this.id!=null&&(this.id=qIp(this,this.id,null))};
WY.prototype._execute=function(l){var e=!1;try{this.work(l)}catch(E){e=!0;var O=!!E&&E||Error(E)}if(e)return this.unsubscribe(),O};
WY.prototype.unsubscribe=function(){if(!this.closed){var l=this.id,e=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;v2(e,this);l!=null&&(this.id=qIp(this,l,null));this.delay=null;$M.prototype.unsubscribe.call(this)}};var vbq=function(l,e){e=e===void 0?ULV:e;YIW.call(this,l,e);this.actions=[];this.active=!1;this.scheduled=void 0};
_.m(vbq,YIW);vbq.prototype.flush=function(l){var e=this.actions;if(this.active)e.push(l);else{var O;this.active=!0;do if(O=l.execute(l.state,l.delay))break;while(l=e.shift());this.active=!1;if(O){for(;l=e.shift();)l.unsubscribe();throw O;}}};var a7=new eS(D9);var uCx=Array.isArray;var dY=function(l,e){WY.call(this,l,e);this.scheduler=l;this.work=e};
_.m(dY,WY);dY.JSC$7106_EMPTY=WY.JSC$7106_EMPTY;dY.prototype.schedule=function(l,e){e=e===void 0?0:e;if(e>0)return WY.prototype.schedule.call(this,l,e);this.delay=e;this.state=l;this.scheduler.flush(this);return this};
dY.prototype.execute=function(l,e){return e>0||this.closed?WY.prototype.execute.call(this,l,e):this._execute(l,e)};
dY.prototype.requestAsyncId=function(l,e,O){O=O===void 0?0:O;return O!=null&&O>0||O==null&&this.delay>0?WY.prototype.requestAsyncId.call(this,l,e,O):l.flush(this)};var Nod=function(){vbq.apply(this,arguments)};
_.m(Nod,vbq);var vHg=new Nod(dY);var rOu=function(){this.performanceMonitor=new zPM;this.queue=new bDd;this.internalSymbol=Symbol();this.debugNames=new RPq};
rOu.prototype.getOnBackgrounded=function(){return a7};
_.Ji.Object.defineProperties(rOu.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var gY=function(l,e){e=Error.call(this,e?l+": "+e:String(l));this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=l;this.__proto__=gY.prototype;this.name=String(l)};
_.m(gY,Error);var kS=function(l){gY.call(this,1E3,'sfr:"'+l+'"');this.measurementStrategyFailureReason=l;this.__proto__=kS.prototype};
_.m(kS,gY);var I7=function(){gY.call(this,1003);this.__proto__=I7.prototype};
_.m(I7,gY);var iQ=function(){gY.call(this,1009);this.__proto__=iQ.prototype};
_.m(iQ,gY);var DLg=function(){gY.call(this,1011);this.__proto__=DLg.prototype};
_.m(DLg,gY);var SIx=function(){gY.call(this,1007);this.__proto__=I7.prototype};
_.m(SIx,gY);var iX=function(l){gY.call(this,1004,String(l));this.inputObservableIndex=l;this.__proto__=iX.prototype};
_.m(iX,gY);var BpL=function(l){gY.call(this,1010,l);this.__proto__=wa.prototype};
_.m(BpL,gY);var wa=function(l){gY.call(this,1005,l);this.__proto__=wa.prototype};
_.m(wa,gY);var QwA=function(l){var e=_.ke.apply(1,arguments),O=this;this.orderedFactories=[];this.orderedFactories.push(l);e.forEach(function(E){O.orderedFactories.push(E)})};
QwA.prototype.isSupported=function(l){return this.orderedFactories.some(function(e){return e.isSupported(l)})};
QwA.prototype.makeBeacon=function(l,e){for(var O=0;O<this.orderedFactories.length;O++)if(this.orderedFactories[O].isSupported(e))return this.orderedFactories[O].makeBeacon(l,e);throw new iQ;};var k5x=Symbol("ma"),xLL=Symbol("na"),Rz=function(l,e){this.value=l;this.timeline=e},fl=function(l,e){if(e.timeline!==l.timeline)throw new SIx;
return l.value-e.value};
_.X=Rz.prototype;_.X.equals=function(l){return fl(this,l)===0};
_.X.maximum=function(l){if(l.timeline!==this.timeline)throw new SIx;return this.value>=l.value?this:l};
_.X.round=function(){return new Rz(Math.round(this.value),this.timeline)};
_.X.add=function(l){return new Rz(this.value+l,this.timeline)};
_.X.toString=function(){return String(this.value)};var wY=function(l,e){this.context=l;this.JSC$7233_pinger=e};
wY.prototype.isSupported=function(l){return this.JSC$7233_pinger.isSupported(l)};
wY.prototype.makeBeacon=function(l,e){if(!this.isSupported(e))throw new iQ;return new Ar(this.context,this.JSC$7233_pinger,e!=null?e:void 0,l)};
var Ar=function(l,e,O,E){var J=this;this.JSC$7239_pinger=e;this.properties=O;this.url=E;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var z;this.method=(z=O==null?void 0:O.beaconMethod)!=null?z:"GET";this.backgroundedSubscription=l.getOnBackgrounded().subscribe(function(){J.sendNow()})};
Ar.prototype.deactivate=function(){this.internalIsPending=!1};
Ar.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7239_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var l,e;this.JSC$7239_pinger.pingWithHeadersAndBody((l=this.properties)!=null?l:{},this.customHeaders,(e=this.body)!=null?e:"",this.url)}else this.JSC$7239_pinger.ping(this.url);this.internalIsPending=!1}catch(O){}else this.internalIsPending=!1};
Ar.prototype.setHeader=function(l){this.customHeaders.set(l,void 0)};
_.Ji.Object.defineProperties(Ar.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var etq=function(){for(var l=_.b(_.ke.apply(0,arguments)),e=l.next();!e.done;e=l.next())if(e=e.value,e.available()){this.timeProvider=e;return}this.timeProvider=new lWR};
_.X=etq.prototype;_.X.available=function(){return this.timeProvider.available()};
_.X.now=function(){return this.timeProvider.now()};
_.X.setTimeout=function(l,e){return this.timeProvider.setTimeout(l,e)};
_.X.clearTimeout=function(l){this.timeProvider.clearTimeout(l)};
_.X.interval=function(l,e){var O=this.intervalObservable(l).subscribe(e);return function(){return void O.unsubscribe()}};
_.X.intervalObservable=function(l){return this.timeProvider.intervalObservable(l)};
_.Ji.Object.defineProperties(etq.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var lWR=function(){this.timeline=Symbol()};
_.X=lWR.prototype;_.X.available=function(){return!1};
_.X.now=function(){return new Rz(0,this.timeline)};
_.X.setTimeout=function(){return 0};
_.X.clearTimeout=function(){};
_.X.interval=function(){return function(){}};
_.X.intervalObservable=function(){return a7};var n3=function(l,e){this.intrinsicFunctionNamespace=l;this.performanceMonitor=e};
_.X=n3.prototype;_.X.setTimeout=function(l,e){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,l),e)};
_.X.clearTimeout=function(l){this.intrinsicFunctionNamespace.clearTimeout(l)};
_.X.interval=function(l,e){var O=this.intervalObservable(l).subscribe(e);return function(){return void O.unsubscribe()}};
_.X.intervalObservable=function(l){var e=this;return new eS(function(O){var E=0,J=e.intrinsicFunctionNamespace.setInterval(function(){O.next(E++)},l);
return function(){e.intrinsicFunctionNamespace.clearInterval(J)}})};
_.X.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var OLR=function(l,e){n3.call(this,l,e);this.timeline=xLL};
_.m(OLR,n3);OLR.prototype.now=function(){return new Rz(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
OLR.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&n3.prototype.available.call(this)};var EVS=function(l,e){n3.call(this,l,e);this.timeline=k5x};
_.m(EVS,n3);EVS.prototype.now=function(){return new Rz(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
EVS.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&n3.prototype.available.call(this)};var XxR=function(l){this.context=l;if(Jq6===void 0)a:{var e,O,E=(e=l.global)==null?void 0:(O=e.document)==null?void 0:O.createElement("meta");if(E)try{E.httpEquiv="origin-trial";E.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";l.global.document.head.append(E);Jq6=E;break a}catch(J){}Jq6=void 0}},
Jq6;
XxR.prototype.isSupported=function(l){return nex(this.context)!==void 0&&!(l==null||!l.endOfSession)&&!aI(this.context)&&!(l==null?0:l.attributionEnabled)&&!(l==null?0:l.customHeaders)&&!(l==null?0:l.customBody)};
XxR.prototype.makeBeacon=function(l,e){if(!this.isSupported(e))throw new iQ;return new kM(this.context,l,e)};
var kM=function(l,e,O){this.context=l;this.properties=O;this.JSC$7266_urlWithoutToken=e;var E;this.beaconMethod=(E=O==null?void 0:O.beaconMethod)!=null?E:"GET";l=nex(this.context);if(l===void 0)throw Error();this.fetchLater=l;ztq(this,bL1(this))},ztq=function(l,e){l.beaconResult&&l.beaconResult.activated||(l.beaconAbort=new AbortController,l.beaconResult=l.fetchLater(e,{method:l.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:l.beaconAbort.signal,activateAfter:96E4}))},bL1=function(l){l=l.JSC$7266_urlWithoutToken;
return(l.slice(-1)[0]==="&"?l:l+"&")+"flapi=1"};
kM.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
kM.prototype.sendNow=function(){};
kM.prototype.setHeader=function(){};
_.Ji.Object.defineProperties(kM.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7266_urlWithoutToken},
set:function(l){this.JSC$7266_urlWithoutToken=l;l=bL1(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);ztq(this,l)}},
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 MM1=function(l){this.context=l};
MM1.prototype.isSupported=function(){return!aI(this.context)&&!!this.context.global.fetch};
MM1.prototype.ping=function(){var l=this;return cI.apply(null,_.kA(_.ke.apply(0,arguments).map(function(e){return zq(l.context.global.fetch(e,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(az(function(O){return O.status===200}))}))).pipe(K7A(function(e){return e}),HUq())};
MM1.prototype.pingWithHeadersAndBody=function(l,e,O){for(var E=_.ke.apply(3,arguments),J=this,z=new Headers,M=_.b(e.entries()),Z=M.next();!Z.done;Z=M.next()){var u=_.b(Z.value);Z=u.next().value;u=u.next().value;z.set(Z,u)}var d,g=(d=l.keepAlive)!=null?d:!1;cI.apply(null,_.kA(E.map(function(w){return zq(J.context.global.fetch(w,Object.assign({},{method:String(l.beaconMethod),cache:"no-cache"},g?{keepalive:!0}:{},{mode:"no-cors",headers:z,body:O}))).pipe(az(function(n){return n.status===200}))}))).pipe(K7A(function(w){return w}),
HUq())};var VMq,W_d;_.II=function(){};
_.Bx=function(l){return l};
VMq=function(l){var e=e||0;return function(){return l.apply(this,Array.prototype.slice.call(arguments,0,e))}};
_.m4=function(l){var e=!1,O;return function(){e||(O=l(),e=!0);return O}};
_.yl=function(l,e){var O=0;return function(E){_.Op.clearTimeout(O);var J=arguments;O=_.Op.setTimeout(function(){l.apply(void 0,J)},e)}};
W_d=function(l,e){var O=0,E=!1,J=[],z=function(){O=0;E&&(E=!1,M())},M=function(){O=_.Op.setTimeout(z,e);
var Z=J;J=[];l.apply(void 0,Z)};
return function(Z){J=arguments;O?E=!0:M()}};var uuS=function(){return i2&&wT?wT.mobile:!ZL1()&&(kV("iPod")||kV("iPhone")||kV("Android")||kV("IEMobile"))},ZL1=function(){return i2&&wT?!wT.mobile&&(kV("iPad")||kV("Android")||kV("Silk")):kV("iPad")||kV("Android")&&!kV("Mobile")||kV("Silk")};var C2S;_.mm={};C2S="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.mm.add=function(l,e,O){if(l!==null&&e in l)throw Error("pa`"+e);l[e]=O};
_.mm.clear=function(l){for(var e in l)delete l[e]};
_.mm.clone=function(l){var e={},O;for(O in l)e[O]=l[O];return e};
_.mm.contains=function(l,e){return f9q(l,e)};
_.mm.containsKey=function(l,e){return l!==null&&e in l};
_.mm.containsValue=f9q;_.mm.create=sHu;_.mm.createImmutableView=function(l){var e=l;Object.isFrozen&&!Object.isFrozen(l)&&(e=Object.create(l),Object.freeze(e));return e};
_.mm.createSet=G1x;_.mm.equals=function(l,e){for(var O in l)if(!(O in e)||l[O]!==e[O])return!1;for(var E in e)if(!(E in l))return!1;return!0};
_.mm.every=function(l,e,O){for(var E in l)if(!e.call(O,l[E],E,l))return!1;return!0};
_.mm.extend=function(l,e){for(var O,E,J=1;J<arguments.length;J++){E=arguments[J];for(O in E)l[O]=E[O];for(var z=0;z<C2S.length;z++)O=C2S[z],Object.prototype.hasOwnProperty.call(E,O)&&(l[O]=E[O])}};
_.mm.filter=function(l,e,O){var E={},J;for(J in l)e.call(O,l[J],J,l)&&(E[J]=l[J]);return E};
_.mm.findKey=R58;_.mm.findValue=function(l,e,O){return(e=R58(l,e,O))&&l[e]};
_.mm.forEach=function(l,e,O){for(var E in l)e.call(O,l[E],E,l)};
_.mm.get=function(l,e,O){return l!==null&&e in l?l[e]:O};
_.mm.getAllPropertyNames=function(l,e,O){if(!l)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return F7A(l);for(var E={};l&&(l!==Object.prototype||e)&&(l!==Function.prototype||O);){for(var J=Object.getOwnPropertyNames(l),z=0;z<J.length;z++)E[J[z]]=!0;l=Object.getPrototypeOf(l)}return F7A(E)};
_.mm.getAnyKey=function(l){for(var e in l)return e};
_.mm.getAnyValue=function(l){for(var e in l)return l[e]};
_.mm.getCount=function(l){var e=0,O;for(O in l)e++;return e};
_.mm.getKeys=F7A;_.mm.getSuperClass=function(l){return(l=Object.getPrototypeOf(l.prototype))&&l.constructor};
_.mm.getValueByKeys=function(l,e){var O=_.SM(e),E=O?e:arguments;for(O=O?0:1;O<E.length;O++){if(l==null)return;l=l[E[O]]}return l};
_.mm.getValues=function(l){var e=[],O=0,E;for(E in l)e[O++]=l[E];return e};
_.mm.isEmpty=function(l){for(var e in l)return!1;return!0};
_.mm.isImmutableView=function(l){return!!Object.isFrozen&&Object.isFrozen(l)};
_.mm.map=function(l,e,O){var E={},J;for(J in l)E[J]=e.call(O,l[J],J,l);return E};
_.mm.remove=function(l,e){var O;(O=e in l)&&delete l[e];return O};
_.mm.set=function(l,e,O){l[e]=O};
_.mm.setIfUndefined=function(l,e,O){return e in l?l[e]:l[e]=O};
_.mm.setWithReturnValueIfNotSet=function(l,e,O){if(e in l)return l[e];O=O();return l[e]=O};
_.mm.some=function(l,e,O){for(var E in l)if(e.call(O,l[E],E,l))return!0;return!1};
_.mm.transpose=function(l){var e={},O;for(O in l)e[l[O]]=O;return e};
_.mm.unsafeClone=TGu;var p3=function(l,e,O,E,J){this.allowedElements=l;this.elementPolicies=e;this.allowedGlobalAttributes=O;this.globalAttributePolicies=E;this.globallyAllowedAttributePrefixes=J},oVq=function(l,e,O){O=l.elementPolicies.get(O);
return(O==null?0:O.has(e))?O.get(e):l.allowedGlobalAttributes.has(e)?{policyAction:1}:(O=l.globalAttributePolicies.get(e))?O:l.globallyAllowedAttributePrefixes&&[].concat(_.kA(l.globallyAllowedAttributePrefixes)).some(function(E){return e.indexOf(E)===0})?{policyAction:1}:{policyAction:0}};var $AR="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(" "),
Wxk=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],dAk="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(" "),
gVk=[["dir",{policyAction:3,conditions:br(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:br(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:br(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:br(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],iLq=new p3(new Set($AR),new Map(Wxk),new Set(dAk),new Map(gVk)),wx6=new p3(new Set($AR.concat(["BUTTON",
"INPUT"])),new Map(Wxk),new Set(br(function(){return dAk.concat(["class","id","name"])})),new Map(br(function(){return gVk.concat([["style",
{policyAction:1}]])})));var AqS,nV1,kgS;AqS=function(l,e,O,E){this.JSC$7326_sanitizerTable=l;this.styleElementSanitizer=e;this.styleAttributeSanitizer=O;this.JSC$7326_resourceUrlPolicy=E;this.changes=[]};
_.aW1=function(l,e){var O=document.implementation.createHTMLDocument("");l=nV1(l,e,O);O=O.body;O.appendChild(l);O=(new XMLSerializer).serializeToString(O);O=O.slice(O.indexOf(">")+1,O.lastIndexOf("</"));return KU(O)};
nV1=function(l,e,O){e=Prq(e,O);e=document.createTreeWalker(e,5,function(Z){if(Z.nodeType===3)Z=1;else if(YNx(Z))if(Z=Um2(Z),Z===null)Z=2;else{var u=l.JSC$7326_sanitizerTable;Z=Z!=="FORM"&&(u.allowedElements.has(Z)||u.elementPolicies.has(Z))?1:2}else Z=2;return Z});
for(var E=e.nextNode(),J=O.createDocumentFragment(),z=J;E!==null;){var M=void 0;if(E.nodeType===3)l.styleElementSanitizer&&z.nodeName==="STYLE"?(E=l.styleElementSanitizer(E.data),M=l.createTextNode(E)):M=l.createTextNode(E.data);else if(YNx(E))M=kgS(l,E,O);else throw Error("da");z.appendChild(M);if(E=e.firstChild())z=M;else for(;!(E=e.nextSibling())&&(E=e.parentNode());)z=z.parentNode}return J};
AqS.prototype.createTextNode=function(l){return document.createTextNode(l)};
kgS=function(l,e,O){var E,J=Um2(e);O=O.createElement(J);e=e.attributes;for(var z=_.b(e),M=z.next();!M.done;M=z.next()){var Z=M.value;M=Z.name;Z=Z.value;var u=oVq(l.JSC$7326_sanitizerTable,M,J);a:{if(E=u.conditions){E=_.b(E);for(var d=E.next();!d.done;d=E.next()){var g=_.b(d.value);d=g.next().value;g=g.next().value;var w=void 0;if((d=(w=e.getNamedItem(d))==null?void 0:w.value)&&!g.has(d)){E=!1;break a}}}E=!0}if(E)switch(u.policyAction){case 1:eB(O,M,Z);break;case 2:u=_.dH8(Z);Z=u!==void 0&&I0M.indexOf(u.toLowerCase())!==
-1?Z:"about:invalid#zClosurez";eB(O,M,Z);break;case 3:eB(O,M,Z.toLowerCase());break;case 4:l.styleAttributeSanitizer?(Z=l.styleAttributeSanitizer(Z),eB(O,M,Z)):eB(O,M,Z);break;case 5:l.JSC$7326_resourceUrlPolicy?(u={type:2,attributeName:M,elementName:J},Z=BGt(Z),(Z=l.JSC$7326_resourceUrlPolicy(Z,u))&&eB(O,M,Z.toString())):eB(O,M,Z);break;case 6:if(l.JSC$7326_resourceUrlPolicy){u={type:2,attributeName:M,elementName:J};E=[];Z=_.b(Z.split(","));for(d=Z.next();!d.done;d=Z.next())g=_.b(d.value.trim().split(/\s+/,
2)),d=g.next().value,g=g.next().value,E.push({url:d,descriptor:g});Z={parts:[]};E=_.b(E);for(d=E.next();!d.done;d=E.next())d=d.value,g=BGt(d.url),(g=l.JSC$7326_resourceUrlPolicy(g,u))&&Z.parts.push({url:g.toString(),descriptor:d.descriptor});eB(O,M,h58(Z))}else eB(O,M,Z)}}return O};
_.IWS=br(function(){return new AqS(iLq)});
_.mA1=br(function(){return new AqS(wx6)});var yqS=function(){this.calledBuild=!1;this.JSC$7338_sanitizerTable=iLq},pxi=function(){yqS.apply(this,arguments)};
_.m(pxi,yqS);pxi.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new AqS(this.JSC$7338_sanitizerTable,void 0,void 0,this.JSC$7338_resourceUrlPolicy)};var Kx0=/[^#]*/;var N4=function(l){try{return!!l&&l.location.href!=null&&cR(l,"foo")}catch(e){return!1}},HLx=function(l){var e=jdq;
if(e)for(var O in e)Object.prototype.hasOwnProperty.call(e,O)&&l(e[O],O,e)},cqq=function(){var l=[];
HLx(function(e){l.push(e)});
return l},jdq={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"},FxS=_.m4(function(){return cqq()}),Rtk=function(){var l=fWF("IFRAME"),
e={};
_.DB(FxS(),function(O){l.sandbox&&l.sandbox.supports&&l.sandbox.supports(O)&&(e[O]=!0)});
return e},fWF=function(l,e){e=e===void 0?document:e;
return e.createElement(String(l).toLowerCase())};var K3;_.hc=function(l,e,O){return Math.min(Math.max(l,e),O)};
K3=function(l,e,O){return l+O*(e-l)};_.KF=function(l,e){this.x=l!==void 0?l:0;this.y=e!==void 0?e:0};
_.X=_.KF.prototype;_.X.clone=function(){return new _.KF(this.x,this.y)};
_.X.equals=function(l){return l instanceof _.KF&&(this==l?!0:this&&l?this.x==l.x&&this.y==l.y:!1)};
_.X.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.X.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.X.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.X.translate=function(l,e){l instanceof _.KF?(this.x+=l.x,this.y+=l.y):(this.x+=Number(l),typeof e==="number"&&(this.y+=e));return this};
_.X.scale=function(l,e){this.x*=l;this.y*=typeof e==="number"?e:l;return this};_.uX=function(l,e){this.width=l;this.height=e};
_.X=_.uX.prototype;_.X.clone=function(){return new _.uX(this.width,this.height)};
_.X.area=function(){return this.width*this.height};
_.X.aspectRatio=function(){return this.width/this.height};
_.X.isEmpty=function(){return!this.area()};
_.X.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.X.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.X.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.X.scale=function(l,e){this.width*=l;this.height*=typeof e==="number"?e:l;return this};var tG=function(l,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=l===i4M&&e||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=TT1};
tG.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var sdC=function(l){return l instanceof tG&&l.constructor===tG&&l.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===TT1?l.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},TT1={},i4M={};
new tG(i4M,"");var WR,nb,HY,GgF,UAk,P2R,jB,htC,tMk,Lxi,RI,qpq,xAC,Qd1,SpH,lSC,eF0,OR0,Eqk,s4L,JCk,zFC,bRx,X6F,ja;WR=function(l){return l?new ja(_.HR(l)):OKL||(OKL=new ja)};
_.Vz=function(l,e){return typeof e==="string"?l.getElementById(e):e};
nb=function(l,e){return(e||document).getElementsByTagName(String(l))};
_.BTR=function(l){return GgF("yt-formatted-string","paper-input-input",l)};
HY=function(l,e,O,E){l=E||l;return(e=e&&e!="*"?String(e).toUpperCase():"")||O?l.querySelectorAll(e+(O?"."+O:"")):l.getElementsByTagName("*")};
GgF=function(l,e,O){var E=document,J=l&&l!="*"?String(l).toUpperCase():"";return J||e?(O||E).querySelector(J+(e?"."+e:"")):HY(E,l,e,O)[0]||null};
UAk=function(l,e){_.mm.forEach(e,function(O,E){E=="style"?l.style.cssText=O:E=="class"?l.className=O:E=="for"?l.htmlFor=O:P2R.hasOwnProperty(E)?l.setAttribute(P2R[E],O):_.Jq(E,"aria-")||_.Jq(E,"data-")?l.setAttribute(E,O):l[E]=O})};
P2R={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"};_.CF=function(l){l=(l||window).document;l=l.compatMode=="CSS1Compat"?l.documentElement:l.body;return new _.uX(l.clientWidth,l.clientHeight)};
_.Ypx=function(l){var e=_.cY(l);l=l.defaultView;return new _.KF(l.pageXOffset||e.scrollLeft,l.pageYOffset||e.scrollTop)};
_.cY=function(l){return l.scrollingElement?l.scrollingElement:_.ws||l.compatMode!="CSS1Compat"?l.body||l.documentElement:l.documentElement};
jB=function(l){return l?l.defaultView:window};
_.FD=function(l,e,O){return htC(document,arguments)};
htC=function(l,e){var O=e[1],E=Lxi(l,String(e[0]));O&&(typeof O==="string"?E.className=O:Array.isArray(O)?E.className=O.join(" "):UAk(E,O));e.length>2&&tMk(l,E,e,2);return E};
tMk=function(l,e,O,E){function J(Z){Z&&e.appendChild(typeof Z==="string"?l.createTextNode(Z):Z)}
for(;E<O.length;E++){var z=O[E];if(!_.SM(z)||_.e0(z)&&z.nodeType>0)J(z);else{a:{if(z&&typeof z.length=="number"){if(_.e0(z)){var M=typeof z.item=="function"||typeof z.item=="string";break a}if(typeof z==="function"){M=typeof z.item=="function";break a}}M=!1}_.DB(M?_.rT(z):z,J)}}};
_.i$=function(l){return Lxi(document,l)};
Lxi=function(l,e){e=String(e);l.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return l.createElement(e)};
_.f3=function(){return document.createTextNode("\n")};
RI=function(l){if(l.nodeType!=1)return!1;switch(l.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};
qpq=function(l,e){tMk(_.HR(l),l,arguments,1)};
_.TP=function(l){for(var e;e=l.firstChild;)l.removeChild(e)};
_.s8=function(l,e){e.parentNode&&e.parentNode.insertBefore(l,e)};
_.GP=function(l,e){e.parentNode&&e.parentNode.insertBefore(l,e.nextSibling)};
_.wk=function(l){return l&&l.parentNode?l.parentNode.removeChild(l):null};
_.vVq=function(l,e){var O=e.parentNode;O&&O.replaceChild(l,e)};
_.NTR=function(l){var e,O=l.parentNode;if(O&&O.nodeType!=11)if(l.removeNode)l.removeNode(!1);else{for(;e=l.firstChild;)O.insertBefore(e,l);_.wk(l)}};
_.BY=function(l){return l.children!=void 0?l.children:Array.prototype.filter.call(l.childNodes,function(e){return e.nodeType==1})};
_.DAS=function(l){return l.nextElementSibling!==void 0?l.nextElementSibling:_.rq6(l.nextSibling,!0)};
_.rq6=function(l,e){for(;l&&l.nodeType!=1;)l=e?l.nextSibling:l.previousSibling;return l};
_.JG=function(l){return _.e0(l)&&l.nodeType==1};
_.qh=function(l,e){if(!l||!e)return!1;if(l.contains&&e.nodeType==1)return l==e||l.contains(e);if(typeof l.compareDocumentPosition!="undefined")return l==e||!!(l.compareDocumentPosition(e)&16);for(;e&&l!=e;)e=e.parentNode;return e==l};
xAC=function(l,e){if(l==e)return 0;if(l.compareDocumentPosition)return l.compareDocumentPosition(e)&2?1:-1;if("sourceIndex"in l||l.parentNode&&"sourceIndex"in l.parentNode){var O=l.nodeType==1,E=e.nodeType==1;if(O&&E)return l.sourceIndex-e.sourceIndex;var J=l.parentNode,z=e.parentNode;return J==z?SpH(l,e):!O&&_.qh(J,e)?-1*Qd1(l,e):!E&&_.qh(z,l)?Qd1(e,l):(O?l.sourceIndex:J.sourceIndex)-(E?e.sourceIndex:z.sourceIndex)}E=_.HR(l);O=E.createRange();O.selectNode(l);O.collapse(!0);l=E.createRange();l.selectNode(e);
l.collapse(!0);return O.compareBoundaryPoints(_.Op.Range.START_TO_END,l)};
Qd1=function(l,e){var O=l.parentNode;if(O==e)return-1;for(;e.parentNode!=O;)e=e.parentNode;return SpH(e,l)};
SpH=function(l,e){for(;e=e.previousSibling;)if(e==l)return-1;return 1};
lSC=function(l){var e,O=arguments.length;if(!O)return null;if(O==1)return arguments[0];var E=[],J=Infinity;for(e=0;e<O;e++){for(var z=[],M=arguments[e];M;)z.unshift(M),M=M.parentNode;E.push(z);J=Math.min(J,z.length)}z=null;for(e=0;e<J;e++){M=E[0][e];for(var Z=1;Z<O;Z++)if(M!=E[Z][e])return z;z=M}return z};
_.HR=function(l){return l.nodeType==9?l:l.ownerDocument||l.document};
eF0=function(l){return l.contentDocument||l.contentWindow.document};
_.PY=function(l,e){if("textContent"in l)l.textContent=e;else if(l.nodeType==3)l.data=String(e);else if(l.firstChild&&l.firstChild.nodeType==3){for(;l.lastChild!=l.firstChild;)l.removeChild(l.lastChild);l.firstChild.data=String(e)}else _.TP(l),l.appendChild(_.HR(l).createTextNode(String(e)))};
OR0={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Eqk={IMG:" ",BR:"\n"};s4L=function(l){var e;l.tagName=="A"&&l.hasAttribute("href")||l.tagName=="INPUT"||l.tagName=="TEXTAREA"||l.tagName=="SELECT"||l.tagName=="BUTTON"?e=!l.disabled&&(!l.hasAttribute("tabindex")||JCk(l)):e=l.hasAttribute("tabindex")&&JCk(l);return e};
JCk=function(l){l=l.tabIndex;return typeof l==="number"&&l>=0&&l<32768};
zFC=function(l){var e=[];X6F(l,e,!0);l=e.join("");l=l.replace(/ \xAD /g," ").replace(/\xAD/g,"");l=l.replace(/\u200B/g,"");l=l.replace(/ +/g," ");l!=" "&&(l=l.replace(/^\s*/,""));return l};
bRx=function(l){var e=[];X6F(l,e,!1);return e.join("")};
X6F=function(l,e,O){if(!(l.nodeName in OR0))if(l.nodeType==3)O?e.push(String(l.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(l.nodeValue);else if(l.nodeName in Eqk)e.push(Eqk[l.nodeName]);else for(l=l.firstChild;l;)X6F(l,e,O),l=l.nextSibling};
_.M0S=function(l,e,O){if(!e&&!O)return null;var E=e?String(e).toUpperCase():null;return _.R7(l,function(J){return(!E||J.nodeName==E)&&(!O||typeof J.className==="string"&&_.hq(J.className.split(/\s+/),O))},!0)};
_.R7=function(l,e,O){l&&!O&&(l=l.parentNode);for(O=0;l;){if(e(l))return l;l=l.parentNode;O++}return null};
ja=function(l){this.JSC$7363_document_=l||_.Op.document||document};
_.X=ja.prototype;_.X.getElement=function(l){return _.Vz(this.JSC$7363_document_,l)};
_.X.$=ja.prototype.getElement;_.X.getElementsByTagName=function(l,e){return(e||this.JSC$7363_document_).getElementsByTagName(String(l))};
_.X.getElementsByTagNameAndClass=function(l,e,O){return HY(this.JSC$7363_document_,l,e,O)};
_.X.$$=ja.prototype.getElementsByTagNameAndClass;_.X.setProperties=UAk;_.X.JSC$7365_createDom=function(l,e,O){return htC(this.JSC$7363_document_,arguments)};
_.X.createElement=function(l){return Lxi(this.JSC$7363_document_,l)};
_.X.createTextNode=function(l){return this.JSC$7363_document_.createTextNode(String(l))};
_.X.getWindow=function(){return this.JSC$7363_document_.defaultView};
var $S=function(l){return _.Ypx(l.JSC$7363_document_)};
_.X=ja.prototype;_.X.appendChild=function(l,e){l.appendChild(e)};
_.X.append=qpq;_.X.canHaveChildren=RI;_.X.removeNode=_.wk;_.X.getChildren=_.BY;_.X.contains=_.qh;_.X=Jn.prototype;_.X.getWidth=function(){return this.right-this.left};
_.X.getHeight=function(){return this.bottom-this.top};
_.X.clone=function(){return new Jn(this.top,this.right,this.bottom,this.left)};
_.X.contains=function(l){return this&&l?l instanceof Jn?l.left>=this.left&&l.right<=this.right&&l.top>=this.top&&l.bottom<=this.bottom:l.x>=this.left&&l.x<=this.right&&l.y>=this.top&&l.y<=this.bottom:!1};
_.X.expand=function(l,e,O,E){_.e0(l)?(this.top-=l.top,this.right+=l.right,this.bottom+=l.bottom,this.left-=l.left):(this.top-=l,this.right+=Number(e),this.bottom+=Number(O),this.left-=Number(E));return this};
_.X.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};
_.X.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};
_.X.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};
_.X.translate=function(l,e){l instanceof _.KF?(this.left+=l.x,this.right+=l.x,this.top+=l.y,this.bottom+=l.y):(this.left+=l,this.right+=l,typeof e==="number"&&(this.top+=e,this.bottom+=e));return this};
_.X.scale=function(l,e){e=typeof e==="number"?e:l;this.left*=l;this.right*=l;this.top*=e;this.bottom*=e;return this};var U8=function(l,e,O,E){this.left=l;this.top=e;this.width=O;this.height=E};
_.X=U8.prototype;_.X.clone=function(){return new U8(this.left,this.top,this.width,this.height)};
_.X.boundingRect=function(l){var e=Math.max(this.left+this.width,l.left+l.width),O=Math.max(this.top+this.height,l.top+l.height);this.left=Math.min(this.left,l.left);this.top=Math.min(this.top,l.top);this.width=e-this.left;this.height=O-this.top};
_.X.contains=function(l){return l instanceof _.KF?l.x>=this.left&&l.x<=this.left+this.width&&l.y>=this.top&&l.y<=this.top+this.height:this.left<=l.left&&this.left+this.width>=l.left+l.width&&this.top<=l.top&&this.top+this.height>=l.top+l.height};
_.X.distance=function(l){var e=l.x<this.left?this.left-l.x:Math.max(l.x-(this.left+this.width),0);l=l.y<this.top?this.top-l.y:Math.max(l.y-(this.top+this.height),0);return Math.sqrt(e*e+l*l)};
_.X.getSize=function(){return new _.uX(this.width,this.height)};
_.X.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};
_.X.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};
_.X.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};
_.X.translate=function(l,e){l instanceof _.KF?(this.left+=l.x,this.top+=l.y):(this.left+=l,typeof e==="number"&&(this.top+=e));return this};
_.X.scale=function(l,e){e=typeof e==="number"?e:l;this.left*=l;this.width*=l;this.top*=e;this.height*=e;return this};var ZRq,L3,CXu,hr,$iq,oqS,W1C,j2x,di0,iR6;_.YM=function(l,e,O){if(typeof e==="string")(e=_.V00(l,e))&&(l.style[e]=O);else for(var E in e){O=l;var J=e[E],z=_.V00(O,E);z&&(O.style[z]=J)}};
ZRq={};_.V00=function(l,e){var O=ZRq[e];if(!O){var E=_.Ic(e);O=E;l.style[E]===void 0&&(E=(_.ws?"Webkit":_.iv?"Moz":null)+f0t(E),l.style[E]!==void 0&&(O=E));ZRq[e]=O}return O};
_.c1=function(l,e){var O=_.HR(l);return O.defaultView&&O.defaultView.getComputedStyle&&(l=O.defaultView.getComputedStyle(l,null))?l[e]||l.getPropertyValue(e)||"":""};
_.tl=function(l,e){return _.c1(l,e)||(l.currentStyle?l.currentStyle[e]:null)||l.style&&l.style[e]};
_.ukk=function(l){return _.tl(l,"position")};
L3=function(l,e,O){if(e instanceof _.KF){var E=e.x;e=e.y}else E=e,e=O;l.style.left=hr(E,!1);l.style.top=hr(e,!1)};
CXu=function(l){try{return l.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}};
_.Fe=function(l){var e=_.HR(l),O=new _.KF(0,0);if(l==(e?_.HR(e):document).documentElement)return O;l=CXu(l);e=$S(WR(e));O.x=l.left+e.x;O.y=l.top+e.y;return O};
_.Cqk=function(l,e,O){if(e instanceof _.uX)O=e.height,e=e.width;else if(O==void 0)throw Error("sa");l.style.width=hr(e,!0);l.style.height=hr(O,!0)};
hr=function(l,e){typeof l=="number"&&(l=(e?Math.round(l):l)+"px");return l};
$iq=function(l){return oqS(l)};
oqS=function(l){var e=W1C;if(_.tl(l,"display")!="none")return e(l);var O=l.style,E=O.display,J=O.visibility,z=O.position;O.visibility="hidden";O.position="absolute";O.display="inline";l=e(l);O.display=E;O.position=z;O.visibility=J;return l};
W1C=function(l){var e=l.offsetWidth,O=l.offsetHeight,E=_.ws&&!e&&!O;return(e===void 0||E)&&l.getBoundingClientRect?(l=CXu(l),new _.uX(l.right-l.left,l.bottom-l.top)):new _.uX(e,O)};
j2x=function(l){var e=_.Fe(l);l=oqS(l);return new U8(e.x,e.y,l.width,l.height)};
di0=function(l,e){l=l.style;"opacity"in l?l.opacity=e:"MozOpacity"in l?l.MozOpacity=e:"filter"in l&&(l.filter=e===""?"":"alpha(opacity="+Number(e)*100+")")};
_.Q6=function(l,e){l.style.display=e?"":"none"};
_.gq6=function(l){return"rtl"==_.tl(l,"direction")};
iR6=function(l){var e=_.c1(l,"marginLeft"),O=_.c1(l,"marginRight"),E=_.c1(l,"marginTop");l=_.c1(l,"marginBottom");return new Jn(parseFloat(E),parseFloat(O),parseFloat(l),parseFloat(e))};
_.w6R=function(l){var e=_.c1(l,"borderLeftWidth"),O=_.c1(l,"borderRightWidth"),E=_.c1(l,"borderTopWidth");l=_.c1(l,"borderBottomWidth");return new Jn(parseFloat(E),parseFloat(O),parseFloat(l),parseFloat(e))};var tr=function(l){this.context=l};
tr.prototype.isSupported=function(l){return(l==null?0:l.attributionEnabled)||(l==null?void 0:l.beaconMethod)==="POST"||(l==null?0:l.customHeaders)||(l==null?0:l.customBody)||(l==null?0:l.keepAlive)?!1:!aI(this.context)};
tr.prototype.ping=function(){var l=this;return WI(_.ke.apply(0,arguments).map(function(e){try{var O=l.context.global,E=!1;E=E===void 0?!1:E;O.google_image_requests||(O.google_image_requests=[]);var J=fWF("IMG",O.document);E&&(J.attributionSrc="");J.src=e;O.google_image_requests.push(J);return!0}catch(z){return!1}}).every(function(e){return e}))};
tr.prototype.pingWithHeadersAndBody=function(l,e,O){this.ping.apply(this,_.kA(_.ke.apply(3,arguments)))};var AC0=function(l){this.context=l};
AC0.prototype.isSupported=function(l){return nqF&&!aI(this.context)&&tvq(this.context)!==void 0&&!(l==null?0:l.attributionEnabled)&&(l==null?void 0:l.beaconMethod)!=="POST"&&!(l==null?0:l.customHeaders)&&!(l==null?0:l.customBody)};
AC0.prototype.makeBeacon=function(l,e){if(!this.isSupported(e))throw new iQ;return new qC(this.context,l)};
var nqF=!1,qC=function(l,e){this.context=l;this.JSC$7384_urlWithoutToken=e;l=tvq(this.context);if(l===void 0)throw Error();this.wrappedBeacon=new l(aSF(this),{})},aSF=function(l){l=l.JSC$7384_urlWithoutToken;
return(l.slice(-1)[0]==="&"?l:l+"&")+"pbapi=1"};
qC.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
qC.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
qC.prototype.setHeader=function(){};
_.Ji.Object.defineProperties(qC.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7384_urlWithoutToken},
set:function(l){this.JSC$7384_urlWithoutToken=l;this.wrappedBeacon.setURL(aSF(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(l){if(l!=="GET")throw new iQ;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var kSH=function(l){this.context=l};
kSH.prototype.isSupported=function(l){if((l==null?0:l.attributionEnabled)||(l==null?void 0:l.beaconMethod)==="GET"||(l==null?0:l.customHeaders)||(l==null?0:l.customBody)||(l==null?0:l.keepAlive))return!1;var e;return!aI(this.context)&&((e=this.context.global.navigator)==null?void 0:e.sendBeacon)!==void 0};
kSH.prototype.ping=function(){var l=this;return WI(_.ke.apply(0,arguments).map(function(e){var O;return(O=l.context.global.navigator)==null?void 0:O.sendBeacon(e)}).every(function(e){return e}))};
kSH.prototype.pingWithHeadersAndBody=function(l,e,O){this.ping.apply(this,_.kA(_.ke.apply(3,arguments)))};var V9=function(l){this.value=l},tn=function(l,e){return WI(l.value).pipe(bX(e))},D7=new V9(!1),nzg=new V9(!0);var T5=function(l){this.value=l;this.releasedSubject=new Xe};
T5.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Ji.Object.defineProperties(T5.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7397_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var JDM=["FRAME","IMG","IFRAME"],QHu=/^[01](px)?$/,EAd=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Olt=function(){var l=new EAd;
l.crossDomainLoadedDefault=!0;l.pendingImagesBlockLoad=!0;return l};var ISq=function(l,e){var O=uQu(l);if(O)if(O.onCreativeLoad)O.onCreativeLoad(e);else{var E=e?[e]:[],J=function(z){for(var M=0;M<E.length;++M)try{E[M](1,z)}catch(Z){}E={push:function(Z){Z(1,z)}}};
O.onCreativeLoad=function(z){E.push(z)};
O.setAttribute("data-creative-load-listener","");O.addEventListener("creativeLoad",function(z){J(z.detail)});
_.Op.addEventListener("message",function(z){Zlq(O,J,z)})}};var vY=function(l,e){var O=this;this.global=l;this.parentContext=e;this.JSC$7408_onVisibilityChange=this.document?cI(WI(!0),jS(this.document,"visibilitychange")).pipe(s$(this.parentContext.performanceMonitor,748),az(function(){return O.getVisibilityState()}),hD()):WI("visible");
this.document?jS(this.document,"DOMContentLoaded").pipe(s$(this.parentContext.performanceMonitor,739),U$(1)):WI(Dmd("DOMContentLoaded"))},Alx=function(l){return l.document!==null&&l.document.visibilityState!==void 0};
vY.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
vY.prototype.querySelector=function(l){return this.document?this.document.querySelector(l):null};
vY.prototype.querySelectorAll=function(l){return this.document?_.rT(this.document.querySelectorAll(l)):[]};
vY.prototype.elementFromPoint=function(l,e){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;l=this.document.elementFromPoint(l,e);return l===null?null:new T5(l)};
var V$8=function(l,e,O){O=O===void 0?!1:O;if(e.ref===void 0||!l.document)return WI(e).pipe(s$(l.parentContext.performanceMonitor,749));var E=new vI(1),J=function(){E.next(e)};
O||ISq(e.ref,J);XIx(e.ref,J);return E.pipe(s$(l.parentContext.performanceMonitor,749),U$(1))};
_.Ji.Object.defineProperties(vY.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return cR(this.global,"document")?this.global.document||null:null}}});var C1x=_.E9(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),oAL=_.E9(["./reach_worklet.js"]),$Rq=_.E9(["./reach_worklet.js"]),miS=_.E9(["./reach_worklet.html"]),yCk=_.E9(["./reach_worklet.js"]),p6F=_.E9(["./reach_worklet.js"]);_.OP(miS);_.OP(yCk);_.OP(p6F);var PR={left:0,top:0,width:0,height:0};var K10,jq6,HR1,cC1,J5,fSS,RFF,T16,EQt,J_V,B1q,Pqk;K10=function(l,e,O,E,J,z,M){var Z="";l&&(Z+=l+":");O&&(Z+="//",e&&(Z+=e+"@"),Z+=O,E&&(Z+=":"+E));J&&(Z+=J);z&&(Z+="?"+z);M&&(Z+="#"+M);return Z};
jq6=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Os=function(l){return l.match(jq6)};
_.sU=function(l,e){return l?e?decodeURI(l):decodeURIComponent(l):l};
HR1=function(l){l=_.Os(l)[1]||null;!l&&_.Op.self&&_.Op.self.location&&(l=_.Op.self.location.protocol.slice(0,-1));return l?l.toLowerCase():""};
_.Es=function(l){return _.sU(_.Os(l)[3]||null,!0)};
_.A5=function(l){return _.sU(_.Os(l)[5]||null,!0)};
_.J9g=function(l){var e=l.indexOf("#");return e<0?null:l.slice(e+1)};
cC1=function(l){l=_.Os(l);return K10(l[1],l[2],l[3],l[4])};
_.F1x=function(l){l=_.Os(l);return K10(l[1],null,l[3],l[4])};
_.Dp=function(l){l=_.Os(l);return K10(null,null,null,null,l[5],l[6],l[7])};
_.z9=function(l){var e=l.indexOf("#");return e<0?l:l.slice(0,e)};
J5=function(l,e){l=_.Os(l);e=_.Os(e);return l[3]==e[3]&&l[1]==e[1]&&l[4]==e[4]};
fSS=function(l,e){if(l){l=l.split("&");for(var O=0;O<l.length;O++){var E=l[O].indexOf("="),J=null;if(E>=0){var z=l[O].substring(0,E);J=l[O].substring(E+1)}else z=l[O];e(z,J?bt(J):"")}}};
RFF=function(l){var e=l.indexOf("#");e<0&&(e=l.length);var O=l.indexOf("?");if(O<0||O>e){O=e;var E=""}else E=l.substring(O+1,e);return[l.slice(0,O),E,l.slice(e)]};
T16=function(l,e){return e?l?l+"&"+e:e:l};
_.sq0=function(l,e){if(!e)return l;l=RFF(l);l[1]=T16(l[1],e);return l[0]+(l[1]?"?"+l[1]:"")+l[2]};
_.GSx=function(l,e,O){if(Array.isArray(e))for(var E=0;E<e.length;E++)_.GSx(l,String(e[E]),O);else e!=null&&O.push(l+(e===""?"":"="+_.r5(e)))};
_.ay=function(l){var e=[],O;for(O in l)_.GSx(O,l[O],e);return e.join("&")};
_.e7=function(l,e){e=_.ay(e);return _.sq0(l,e)};
_.NC=function(l,e,O){O=O!=null?"="+_.r5(O):"";return _.sq0(l,e+O)};
EQt=function(l,e,O,E){for(var J=O.length;(e=l.indexOf(O,e))>=0&&e<E;){var z=l.charCodeAt(e-1);if(z==38||z==63)if(z=l.charCodeAt(e+J),!z||z==61||z==38||z==35)return e;e+=J+1}return-1};
J_V=/#|$/;_.vD=function(l,e){var O=l.search(J_V),E=EQt(l,0,e,O);if(E<0)return null;var J=l.indexOf("&",E);if(J<0||J>O)J=O;E+=e.length+1;return bt(l.slice(E,J!==-1?J:0))};
B1q=/[?&]($|#)/;_.M9=function(l,e){for(var O=l.search(J_V),E=0,J,z=[];(J=EQt(l,E,e,O))>=0;)z.push(l.substring(E,J)),E=Math.min(l.indexOf("&",J)+1||O,O);z.push(l.slice(E));return z.join("").replace(B1q,"$1")};
_.qr=function(l,e,O){return _.NC(_.M9(l,e),e,O)};
Pqk=function(l){var e=RFF(window.location.href),O=e[1],E=[];O&&O.split("&").forEach(function(J){var z=J.indexOf("=");z=z>=0?J.slice(0,z):J;l.hasOwnProperty(z)||E.push(J)});
e[1]=T16(E.join("&"),_.ay(l));return e[0]+(e[1]?"?"+e[1]:"")+e[2]};var RuL=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(RuL,_.Gu);RuL.prototype.getVersion=function(){return _.BW(this,2)};var fUg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(fUg,_.Gu);var pIV=function(l,e){return _.da(l,2,e)},FAp=function(l,e){return _.da(l,3,e)};
fUg.prototype.getModel=function(){return _.BW(this,4)};
var jzx=function(l,e){return _.da(l,4,e)},yDL=function(l,e){return _.da(l,5,e)},cDp=function(l,e){return _.da(l,9,e)},mRT=function(l,e){return F4(l,10,e)},IUp=function(l,e){return _.b$(l,11,e)},KAA=function(l,e){return _.da(l,1,e)},Hld=function(l,e){return _.b$(l,7,e)};var aUt="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var ra=function(l,e,O,E){l=l===void 0?window:l;e=e===void 0?null:e;O=O===void 0?new zPM:O;E=E===void 0?WAg():E;rOu.call(this);var J=this;this.global=l;this.debugChannel=e;this.performanceMonitor=O;this.onPageHide=Kl(function(){return jS(J.global,"pagehide")}).pipe(s$(this.performanceMonitor,941));
this.onLoad=Kl(function(){return jS(J.global,"load")}).pipe(s$(this.performanceMonitor,738),U$(1));
this.onResize=Kl(function(){return jS(J.global,"resize")}).pipe(s$(this.performanceMonitor,741));
this.onMessage=Kl(function(){return jS(J.global,"message")}).pipe(s$(this.performanceMonitor,740));
this.document=new vY(this.global,this);this.timeProvider=new etq(new EVS(this.intrinsicFunctionNamespace,this.performanceMonitor),new OLR(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new QwA(new XxR(this),new AC0(this),new wY(this,new MM1(this)),new wY(this,new kSH(this)),new wY(this,new tr(this)))};
_.m(ra,rOu);var aI=function(l){var e=l.global;return!!l.global.HTMLFencedFrameElement&&!!e.fence&&typeof e.fence.reportEvent==="function"};
_.X=ra.prototype;_.X.reportFencedFrameEvent=function(l){aI(this)&&this.global.fence.reportEvent(l)};
_.X.getOnBackgrounded=function(){return this.onPageHide.pipe(s$(this.performanceMonitor,942),bX(this.queue),az(function(){}))};
_.X.postMessage=function(l,e,O){O=O===void 0?[]:O;this.global.postMessage(l,e,O)};
_.X.getWidth=function(){return N4(this.global)?this.global.width:0};
_.X.getHeight=function(){return N4(this.global)?this.global.height:0};
_.X.isMobile=function(){return ZL1()||uuS()};
var sP=function(l,e){try{var O=wIW(e,l.global,l.isMobile());return{left:O.left,top:O.top,width:O.getWidth(),height:O.getHeight()}}catch(E){return PR}};
ra.prototype.validate=function(){var l=this.beaconFactory.isSupported()||aI(this);return this.global&&this.timeProvider.available()&&l};
var veA=function(l){return(l=szx(l.global))?zq(l):null};
_.Ji.Object.defineProperties(ra.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(l){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!N4(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}}});_.Uix=!_.gs&&!_.Fu();var aFg=function(l){return l};var IFp=function(l){return l.pipe(FQ(function(e){var O=e.endOfSessionReason;var E;return((E=e.viewable)==null?void 0:E.extrapolateToNow().value)||O!=void 0}),U$(1),BI())};var hup=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},LAx=function(l){var e=l.sequenceNumber.toString(10).padStart(2,"0");
e=""+l.startTime+e;l.sequenceNumber<99&&l.sequenceNumber++;return e};var wDA=l1(QE(function(l){return l.endOfSessionReason===void 0}),az(function(l){return Object.assign({},l,{timestamps:An(l)})}),FQ(function(l){var e=l.viewable;
l=l.timestamps;var O;return(O=e==null?void 0:e.extrapolateUsingTimestampMap(l).value)!=null?O:!1}),az(function(l){var e=l.beaconFactory;
var O=l.timestampedExposureHistory;var E=l.timeOnScreen;var J=l.binaryContext;l=l.timestamps;if(e===void 0||O===void 0||E===void 0||J===void 0)return!1;if(E.extrapolateUsingTimestampMap(l).value.every(function(z){return z>=0}))return!0;
O=O.map(function(z){return z.timestamp+":"+z.value}).join(",");
E=nF({bin:J,tos:E},l);e.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+E+("&eh="+O)).sendNow();return!0}),QE(function(l){return!l}),BI());var q$V=function(l){return{id:l.pingId,mcvt:l.maxConsecutiveViewTime,p:l.creativePosition,asp:l.adSpeedPosition,tm:l.totalMeasurementTime,tu:l.totalUnviewedTime,mtos:l.maxTimeOnScreen,tos:l.timeOnScreen,v:l.binaryVersion,bin:l.binaryContext,avms:l.measurementStrategy,bs:l.browserSize,mc:l.maximumExposure,"if":l.crossDomainIframeState,vu:l.delayedImpressionJsState,app:l.inApp,mse:l.mraidError,mtop:l.mraidSituation,itpl:l.injectedTemplateId,adk:l.adKey,exk:l.awbidKey,rs:l.requestSource,la:l.isLargeAd,
cr:l.isContentRecommendationAd,uach:l.userAgentClientHints,vs:l.viewState,r:l.reasonCode,pay:l.hasCpmavUrl,co:l.clientPingOrderCounter,rst:l.adRenderStartTime,rpt:l.adRenderPeriodTime,isd:l.initialScrollDepth,lsd:l.loadedScrollDepth,context:l.errorContext,msg:l.errorMessage,stack:l.errorStack,name:l.errorName,ec:l.hasElementChanged,sfr:l.strategyFailureReasons,met:l.creativeSearchResult,wmsd:l.webMeasurementStartDiagnostic,pv:l.pageVisible,epv:l.eosPageVisible,pbe:l.inStatefulBeaconExperiment,fle:l.inFetchLaterBeaconExperiment,
vae:l.inViewableAttributionExperiment,spb:l.supportsPendingBeacon,sfl:l.supportsFetchLater,ffslot:l.isFencedFrameSlotTurtlex,reach:l.sharedStorageReachMode,io2:l.v2VisibilityBitVector,rxdbg:l.rxDebugger,omida:l.omidAppId,omidp:l.omidPartner,omidpv:l.omidPartnerVersion,omidor:l.omidOcclusionReasons,omidv:l.omidVersion,omids:l.omidSessionType,omidam:l.omidAccessMode,omidct:l.omidCreativeType,omidia:l.omidInApp,omiddc:l.omidDeviceCategory,omidlat:l.omidLastActivity,omiddit:l.omidDeviceIdleTime,qid:l.errorEscapedQueryId}};var kjt=function(l){var e=[];return l.pipe(az(function(O){var E=O.beaconFactory,J=O.fetchBeaconFactory,z=O.timeOnScreen,M=O.timeOnScreenUrlPrefixes,Z=O.payloadMapper,u=O.timeOnScreenPingId,d=O.timeOnScreenReason,g=O.urlSerializer,w=O.viewable,n=O.hasImpressionFired,k=O.inStatefulBeaconExperiment,y=O.supportsPendingBeacon,c=O.supportsFetchLater,f=O.turtlexReportEventData;if(!O.geometryMeasurable||!n||O.maxTimeOnScreen===void 0||z===void 0||M===void 0||Z===void 0||u===void 0||g===void 0||E===void 0)return!1;
if(O.isTurtlex){if(d===void 0)return!1;M=O.reportFencedFrameEvent;if(!M)return!1;M({eventType:"active-view-time-on-screen",eventData:f!=null?f:"",destination:["buyer"]});return!0}if(!(k||c||d))return!1;f=An(O);var P;w=(P=w==null?void 0:w.extrapolateUsingTimestampMap(f).value)!=null?P:!1;P=g(Object.assign({},O,{pingId:u,viewState:w?4:3,reasonCode:d!=null?d:"u",payloadMapper:Z,urlPrefixes:M}),f);if(k){for(;e.length>M.length;)O=void 0,(O=e.shift())==null||O.deactivate();P.forEach(function(N,t){t>=e.length?
e.push(E.makeBeacon(N)):e[t].url=N});
return y&&J&&d!==void 0?(P.forEach(function(N){J.makeBeacon(N).sendNow()}),!0):d!==void 0}if(y&&J&&d!==void 0)return P.forEach(function(N){J.makeBeacon(N).sendNow()}),!0;
if(c&&J){for(;e.length>M.length;)y=void 0,(y=e.shift())==null||y.deactivate();var h=g(Object.assign({},O,{pingId:u,viewState:w?4:3,reasonCode:d!=null?d:"u",payloadMapper:Z,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),f)[0];P.forEach(function(N,t){t>=e.length?e.push(E.makeBeacon(h,{endOfSession:!0})):e[t].url=h});
return d!==void 0?(P.forEach(function(N){J.makeBeacon(N).sendNow()}),!0):d!==void 0}return d!==void 0?(P.forEach(function(N){E.makeBeacon(N).sendNow()}),!0):!1}),QE(function(O){return!O}),BI())};var mhp=l1(FQ(function(l){return l.immediateUrlPrefixes!==void 0&&l.payloadMapper!==void 0&&l.urlSerializer!==void 0&&l.inferredPingId!==void 0&&l.beaconFactory!==void 0}),FQ(function(l){return l7T(l)!==null}),QzW(function(l){return l.activeViewUnmeasurableEvent},function(l){return l.emit}),az(function(l){if(l.isTurtlex){var e=l.reportFencedFrameEvent;
if(e){var O;e({eventType:"active-view-unmeasurable",eventData:(O=l.turtlexReportEventData)!=null?O:"",destination:["buyer"]})}}else{O=void 0;var E=l7T(l);if(E==="x"){var J,z=(J=l.geometricMeasurementErrors)!=null?J:l.contextValidationErrors;z&&(e=z.stack,O=z.message)}l.urlSerializer(Object.assign({},l,{urlPrefixes:l.immediateUrlPrefixes,payloadMapper:l.payloadMapper,pingId:l.inferredPingId,viewState:2,reasonCode:E,errorMessage:O,errorStack:e}),An(l)).forEach(function(M){l.beaconFactory.makeBeacon(M).sendNow()})}}),
U$(1),BI());var ewL=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ibM=l1(FQ(function(l){return l.payloadMapper!==void 0&&l.immediateUrlPrefixes!==void 0&&l.urlSerializer!==void 0&&l.inferredPingId!==void 0&&l.beaconFactory!==void 0}),az(function(l){return Object.assign({},l,{timestamps:An(l)})}),FQ(function(l){var e=l.viewable;
var O=l.hasImpressionFired;l=l.timestamps;var E;return!!O&&((E=e==null?void 0:e.extrapolateUsingTimestampMap(l).value)!=null?E:!1)}),QzW(function(l){return l.activeViewViewableEvent},function(l){return l.emit}),az(function(l){var e=l.beaconFactory,O=l.turtlexReportEventData;
if(l.isTurtlex){var E=l.reportFencedFrameEvent;if(!E)return!1;E({eventType:"active-view-viewable",eventData:O!=null?O:"",destination:["buyer"]});return!0}O=l.urlSerializer(Object.assign({},l,{urlPrefixes:l.immediateUrlPrefixes,payloadMapper:l.payloadMapper,pingId:l.inferredPingId,viewState:4,reasonCode:"v"}),l.timestamps);(E=l.cpmavUrls)&&E.length>0&&l.viewUrlSerializer&&l.viewUrlSerializer(E,l).forEach(function(J){e.makeBeacon(J).sendNow()});
(E=l.viewableRelayUrls)&&E.length>0&&l.viewUrlSerializer&&l.viewUrlSerializer(E,l).forEach(function(J){e.makeBeacon(J).sendNow()});
O.forEach(function(J){e.makeBeacon(J,{attributionEnabled:l.isViewableAttributionEnabled}).sendNow()});
return!0}),QE(function(l){return!l}),BI());var Lmt=az(function(l){return[l.value.topWindowViewportExternalGeometry.width,l.value.topWindowViewportExternalGeometry.height]});var G5=function(l,e){this.callback=l;this.options=e;this.intersectionObserverV2=this.intersectionObserverV1=null},m4x=function(l,e){e?l.intersectionObserverV2||(e=Object.assign({},l.options,{delay:100,
trackVisibility:!0}),l.intersectionObserverV2=new IntersectionObserver(l.callback,e)):l.intersectionObserverV1||(l.intersectionObserverV1=new IntersectionObserver(l.callback,l.options))},Yx1=function(l,e){l=e?l.intersectionObserverV2:l.intersectionObserverV1;
if(!l)throw new DLg;return l};
G5.prototype.observe=function(l,e){Yx1(this,l).observe(e)};
G5.prototype.unobserve=function(l,e){Yx1(this,l).unobserve(e)};
G5.prototype.disconnect=function(l){Yx1(this,l).disconnect()};
G5.prototype.takeRecords=function(l){return Yx1(this,l).takeRecords()};var fF={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:PR,topWindowViewportExternalGeometry:PR,measurementRequests:new Xe,elementGeometrySourceName:"ns",elementGeometry:PR,intersectionGeometry:PR,viewportLocalAppOffset:{x:0,y:0}};var Fmx=UP(l1(az(function(l){var e;return(e=l.exposureOverride)!=null?e:pRL(l)}),az(function(l){return isFinite(l)?l:0}))),PXp=UP(l1(az(function(l){var e;
return(e=l.exposureOverride)!=null?e:pRL(l)}),az(function(l){return isFinite(l)?l:-1})));var rY=function(l,e){this.a=l;this.b=e;if(l.clock.timeline!==e.clock.timeline)throw Error();};
rY.prototype.equivalentTo=function(l){return l instanceof rY?this.a.equivalentTo(l.a)&&this.b.equivalentTo(l.b):!1};
rY.prototype.extrapolateToTime=function(l){var e=this.a.extrapolateToTime(l).value,O=this.b.extrapolateToTime(l).value;return{timestamp:l,value:[e,O]}};
_.Ji.Object.defineProperties(rY.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 l=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),e=this.a.lastMeasurement.timestamp.equals(l)?this.a.lastMeasurement.value:this.a.extrapolateToTime(l).value,O=this.b.lastMeasurement.timestamp.equals(l)?this.b.lastMeasurement.value:this.b.extrapolateToTime(l).value;return{timestamp:l,value:[e,O]}}}});var Dm=function(l,e){this.input=l;this.mapFunction=e;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Dm.prototype.equivalentTo=function(l){return l instanceof Dm?this.input.equivalentTo(l.input)&&this.mapFunction===l.mapFunction:!1};
Dm.prototype.extrapolateToTime=function(l){l=this.input.extrapolateToTime(l);return{timestamp:l.timestamp,value:this.mapFunction(l.value)}};
_.Ji.Object.defineProperties(Dm.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Sa=function(){};
Sa.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Sa.prototype.extrapolateUsingTimestampMap=function(l){var e=this.clock.timeline,O,E=(O=l.get(e))!=null?O:this.clock.now();l.set(e,E);return this.extrapolateToTime(E)};
Sa.prototype.map=function(l){return new hFH(this,l)};
Sa.prototype.joinWith=function(l){return new L1S(this,l)};
var L1S=function(){rY.apply(this,arguments);this.map=Sa.prototype.map;this.joinWith=Sa.prototype.joinWith;this.extrapolateToNow=Sa.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Sa.prototype.extrapolateUsingTimestampMap};
_.m(L1S,rY);var hFH=function(){Dm.apply(this,arguments);this.map=Sa.prototype.map;this.joinWith=Sa.prototype.joinWith;this.extrapolateToNow=Sa.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Sa.prototype.extrapolateUsingTimestampMap};
_.m(hFH,Dm);var hn=function(l,e){this.lastMeasurement=e;this.extrapolateToNow=Sa.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Sa.prototype.extrapolateUsingTimestampMap;this.map=Sa.prototype.map;this.joinWith=Sa.prototype.joinWith;this.clock=l};
hn.prototype.equivalentTo=function(l){return l.active};
hn.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Ji.Object.defineProperties(hn.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var hwp=az(function(l){if(l.value.viewportGeometrySourceName==="omid"){if(l.value.elementGeometrySourceName==="nio")return"omio";if(l.value.elementGeometrySourceName==="geo")return"omgeo"}return l.value.elementGeometrySourceName==="geo"||l.value.elementGeometrySourceName==="nio"?l.value.viewportGeometrySourceName:l.value.elementGeometrySourceName});var j78=l1(FQ(function(l){return!isNaN(l)}),rp(function(l,e){return isNaN(l)?e:Math.min(l,e)},NaN),hD());var f72=UP(l1(az(function(l){return l.intersectionGeometry.width*l.intersectionGeometry.height/(l.exposedViewportLocalGeometry.width*l.exposedViewportLocalGeometry.height)}),az(function(l){return isFinite(l)?Math.min(1,l):0})));var YPt=l1(UP(az(function(l){l=l.exposureOverride?l.elementGeometry.width*l.elementGeometry.height*l.exposureOverride/(l.topWindowViewportExternalGeometry.width*l.topWindowViewportExternalGeometry.height):l.intersectionGeometry.width*l.intersectionGeometry.height/(l.topWindowViewportExternalGeometry.width*l.topWindowViewportExternalGeometry.height);return isFinite(l)?l:0})));var qPA=function(l,e){var O=this;this.timeProvider=l;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=e.pipe(hD()).subscribe(function(E){vR(O);O.measurementRequestObserver=E})},Nag=function(l,e){vR(l);
l.lastMeasurementRequest=l.timeProvider.setTimeout(function(){var O;return void((O=l.measurementRequestObserver)==null?void 0:O.next())},e)},vR=function(l){l.lastMeasurementRequest!==null&&l.timeProvider.clearTimeout(l.lastMeasurementRequest);
l.lastMeasurementRequest=null};
qPA.prototype.dispose=function(){vR(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var t01=function(){};var W3x=function(l,e){this.context=l;this.strategies=e};
_.m(W3x,t01);W3x.prototype.buildGeometrySource=function(l,e){var O=this.strategies.map(function(z){return z.buildGeometrySource(l,e)}),E=x48(O.map(function(z){return z.geometrySource})),J=E.capturedErrors.pipe(qxk());
return{geometrySource:E.chain.pipe(bX(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:J,strategyErrors:E.capturedErrors}].concat(_.kA(O.map(function(z){return z.additionalOutputs}))))}};
var qxk=function(){return rp(function(l,e){e instanceof kS?l.push(e.measurementStrategyFailureReason):l.push(-1);return l},[])};var gzt=function(l,e){this.context=l;this.poller=e};
_.m(gzt,t01);gzt.prototype.buildGeometrySource=function(l,e){var O=lF8(ObW(this.context,this.poller),$4A(this.context,e.requestSource));return{geometrySource:Q7V(l.measurableCreative.pipe(O),e.inApp),additionalOutputs:{}}};var dhx=function(l,e,O){O=O===void 0?An8(l,e):O;this.context=l;this.intersectionObserverStrategy=O};
_.m(dhx,t01);dhx.prototype.buildGeometrySource=function(l,e){var O=this.intersectionObserverStrategy(e.useV2);return{geometrySource:Q7V(l.measurableCreative.pipe(O,nST(this.context)),e.inApp),additionalOutputs:{}}};var vqR=function(l,e,O){var E=E===void 0?Symbol():E;this.element=l;this.immediateUrls=e;this.timeOnScreenUrls=O;this.symbol=E};var q4=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),bbx=Object.freeze([1,.75,q4.exposureThreshold,q4.largeAdExposureThreshold,0]);var pAL=function(l,e){e=e===void 0?36E5:e;var O=O===void 0?!0:O;this.creatives=new Xe;this.elementsToUnregister=new Xe;this.elementMap=new Map;var E=new ra(window,null);E.beaconFactory=new wY(E,new tr(E));$hu(E,this.creatives,this.elementsToUnregister,l,e,O).subscribe()},HyM=function(l,e,O,E){if(!l.elementMap.has(e)){var J=new T5(e);
l.elementMap.set(e,J);l.creatives.next(new vqR(J,O,E))}},jRx=function(l,e){l.elementsToUnregister.next(e);
var O=l.elementMap.get(e);O!==void 0&&(O.release(),l.elementMap.delete(e))};var CGg=function(l){var e=l.url;l=l.uaDataValues;this.JSC$7513_url_=e;this.uaDataValues_=l;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var O=/[?&]([^&=]+)=([^&]*)/g;l=O.exec(e);)this.urlParamValues_[l[1]]=l[2]},o18=function(l){l=l.uaDataValues_;
if(!l)return"";var e=SB("uap",l.platform)+SB("uapv",l.platformVersion)+SB("uafv",l.uaFullVersion)+SB("uaa",l.architecture)+SB("uam",l.model)+SB("uab",l.bitness);l.fullVersionList&&(e+="&uafvl="+encodeURIComponent(l.fullVersionList.map(function(O){return encodeURIComponent(O.brand)+";"+encodeURIComponent(O.version)}).join("|")));
l.wow64!=null&&(e+="&uaw="+Number(l.wow64));return e.slice(1)};var Ql=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Ql,_.Gu);Ql.prototype.getId=function(){return _.BW(this,1)};
Ql.prototype.setId=function(l){return _.Xi(this,1,l)};var xM=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(xM,_.Gu);xM.prototype.getSeconds=function(){return s9(this,1)};
xM.prototype.setSeconds=function(l){return _.mb(this,1,FF(l),"0")};_.r$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(_.r$,_.Gu);_.r$.prototype.getSeconds=function(){return s9(this,1)};
_.r$.prototype.setSeconds=function(l){return _.mb(this,1,FF(l),"0")};
_.N1S=function(l){var e=Number(U9(l,1));l=_.Eo(l,2);return new Date(e*1E3+l/1E6)};var lZ=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(lZ,_.Gu);lZ.prototype.getUrl=function(){return _.BW(this,1)};
lZ.prototype.setUrl=function(l){return _.Xi(this,1,l)};
lZ.prototype.getHeight=function(){return _.Eo(this,2)};
lZ.prototype.getWidth=function(){return _.Eo(this,3)};var e1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(e1,_.Gu);e1.prototype.getAspectRatio=function(){return G8(this,1)};
e1.prototype.setAspectRatio=function(l){return _.mb(this,1,_.ZO(l),0)};
e1.prototype.getDuration=function(){return _.Cu(this,xM,2)};var rC1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(rC1,_.Gu);var Diq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Diq,_.Gu);var Sxi=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Sxi,_.Gu);var QqF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(QqF,_.Gu);var xiF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(xiF,_.Gu);var lOF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(lOF,_.Gu);var e4x=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(e4x,_.Gu);var OPq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(OPq,_.Gu);var E4S=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(E4S,_.Gu);var Ok=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Ok,_.Gu);var JI=[2,4,5,6,7];var Juq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Juq,_.Gu);var f2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(f2,_.Gu);_.X=f2.prototype;_.X.getId=function(){return _.Cu(this,Ql,1)};
_.X.setId=function(l){return _.EN(this,1,l)};
_.X.getName=function(){return _.BW(this,2)};
_.X.setDescription=function(l){return _.Xi(this,3,l)};
_.X.getUrl=function(){return _.BW(this,8)};
_.X.setUrl=function(l){return _.Xi(this,8,l)};
var XV=function(l){return _.e$(l,lZ,10,_.Oo())};
f2.prototype.getOwner=function(l){var e=_.nJ(this,40,_.Uu,3,!0);GS(e,l);return e[l]};
f2.prototype.getVersion=function(){return s9(this,45)};
var zv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(zv,_.Gu);_.Xh1=[0,N7x,DIW];_.z4x=[0,N7x,DIW];var bP1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(bP1,_.Gu);var bZ=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(bZ,_.Gu);bZ.prototype.getStatus=function(){return _.PW(this,1)};
bZ.prototype.removeItem=function(l){return upV(this,2,l)};var M3q=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(M3q,_.Gu);M3q.prototype.getName=function(){return _.BW(this,8)};var M8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(M8,_.Gu);M8.prototype.getCommand=function(){return _.PW(this,1)};
M8.prototype.getSource=function(){return _.Cu(this,M3q,2)};
M8.prototype.setVisible=function(l){return _.Tz(this,5,l)};
M8.prototype.removeItem=function(l){return upV(this,7,l)};var V3H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(V3H,_.Gu);V3H.prototype.getCommand=function(){return _.PW(this,1)};
V3H.prototype.removeItem=function(l){return upV(this,4,l)};
var ZPH=_.ev(V3H);var Vw=function(l,e,O){O=O===void 0?Error():O;var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=l;e+=":";O instanceof Error?(this.message=e+O.message,this.stack=O.stack||""):(this.message=e+String(O),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(Vw,Error);_.y6=function(){this.JSC$7571_disposed_=this.JSC$7571_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.y6.prototype.JSC$7571_disposed_=!1;_.y6.prototype.isDisposed=function(){return this.JSC$7571_disposed_};
_.y6.prototype.dispose=function(){this.JSC$7571_disposed_||(this.JSC$7571_disposed_=!0,this.disposeInternal())};
_.y6.prototype[Symbol.dispose]=function(){this.dispose()};
_.oQ=function(l,e){l.addOnDisposeCallback(_.pz(_.Q9,e))};
_.y6.prototype.addOnDisposeCallback=function(l,e){this.JSC$7571_disposed_?e!==void 0?l.call(e):l():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),e&&(l=l.bind(e)),this.onDisposeCallbacks_.push(l))};
_.y6.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Zg=function(l){_.y6.call(this);this.wpc=l};
_.m(Zg,_.y6);Zg.prototype.tll=function(){return this.wpc.f()};
Zg.prototype.nIv=function(l){return this.wpc.c(l)};
Zg.prototype.kA=function(l){return this.wpc.m(Hbx(l))};
Zg.prototype.uq=function(l){return this.wpc.mws(Hbx(l))};
var l$=function(l){_.y6.call(this);var e=this;this.pJ=l;this.cWk="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.bz1=void 0;this.qIW=this.pJ.p;this.pRJ=this.nZB.bind(this);this.addOnDisposeCallback(function(){return void uFq(e)})};
_.m(l$,_.y6);var Cz6=function(l){var e;return _.V(function(O){if(O.nextAddress==1){if(!l.pJ.wpc)throw new Vw(30,"NWA");return l.y2O?O.return(l.y2O):_.C(O,l.pJ.wpc(),2)}e=O.yieldResult;l.y2O=new Zg(e);return O.return(l.y2O)})};
l$.prototype.snapshot=function(l){return this.pJ.s(Object.assign({},l.fZ&&{c:l.fZ},l.qUY&&{s:l.qUY},l.pl8!==void 0&&{p:l.pl8}))};
l$.prototype.nZB=function(l){this.pJ.e(l)};
l$.prototype.caq=function(l,e){return this.pJ.c(l,e,!1)};
var uFq=function(l){l.bz1!==void 0&&(l.cWk.forEach(function(e){var O;(O=l.bz1)==null||O.removeEventListener(e,l.pRJ)}),l.bz1=void 0)};
l$.prototype.vL6=function(){return this.pJ.l()};var o41,uZ=function(){_.y6.apply(this,arguments);this.p5I=1;this[o41]=this.dispose};
_.m(uZ,_.y6);uZ.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.p5I++;return this};
uZ.prototype.dispose=function(){--this.p5I||_.y6.prototype.dispose.call(this)};
o41=Symbol.dispose;var Sox=function(l){this.y3V=l;l.addNewEventMetric("/client_streamz/bg/frs",_.zj("mk"))};
Sox.prototype.record=function(l,e){this.y3V.record("/client_streamz/bg/frs",l,e)};
var e_p=function(l){this.sPO=l;l.addNewEventMetric("/client_streamz/bg/wrl",_.zj("mn"),X8("ac"),X8("sc"),_.zj("rk"),_.zj("mk"))};
e_p.prototype.record=function(l,e,O,E,J,z){this.sPO.record("/client_streamz/bg/wrl",l,e,O,E,J,z)};
var xhg=function(l){this.ePA=l;l.addNewCounter("/client_streamz/bg/ec",_.zj("en"),_.zj("mk"))};
xhg.prototype.increment=function(l,e){this.ePA.JSC$7824_incrementCounter("/client_streamz/bg/ec",l,e)};
var lcT=function(l){this.rFJ=l;l.addNewEventMetric("/client_streamz/bg/el",_.zj("en"),_.zj("mk"))};
lcT.prototype.record=function(l,e,O){this.rFJ.record("/client_streamz/bg/el",l,e,O)};
var QQq=function(l){this.iZB=l;l.addNewCounter("/client_streamz/bg/cec",X8("ec"),_.zj("mk"))};
QQq.prototype.increment=function(l,e){this.iZB.JSC$7824_incrementCounter("/client_streamz/bg/cec",l,e)};
var OSp=function(l){this.plA=l;l.addNewCounter("/client_streamz/bg/po/csc",X8("cs"),_.zj("mk"))};
OSp.prototype.increment=function(l,e){this.plA.JSC$7824_incrementCounter("/client_streamz/bg/po/csc",l,e)};
var EoA=function(l){this.gcJ=l;l.addNewCounter("/client_streamz/bg/po/ctav",_.zj("av"),_.zj("mk"))};
EoA.prototype.increment=function(l,e){this.gcJ.JSC$7824_incrementCounter("/client_streamz/bg/po/ctav",l,e)};
var JFx=function(l){this.kfI=l;l.addNewCounter("/client_streamz/bg/po/cwsc",_.zj("su"),_.zj("mk"))};
JFx.prototype.increment=function(l,e){this.kfI.JSC$7824_incrementCounter("/client_streamz/bg/po/cwsc",l,e)};var jL8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(jL8,_.Gu);var KFT=function(l,e){return _.I5(l,3,e,Sp8)};var $oR=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m($oR,_.Gu);var WH1=[1,2,3];var doS=[0,WH1,_.el8,SAW,lMM];var g4H=[0,_.ea,[0,t2u,_.SR]];var iP1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(iP1,_.Gu);var wh0=[1,2,3];var Au1=[0,wh0,r8L,qAL,_.O8,g4H];var n4R=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(n4R,_.Gu);var aOS=[0,_.ea,doS,Au1];var k0H=[0,_.lQ];var IOx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(IOx,_.Gu);var moq=[0,_.lQ,-1,_.xh];var yuC=[0,_.lQ,-1,_.QK,_.xh];var phR=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(phR,_.Gu);var KH1=[1,2,3];var ji0=[0,KH1,_.O8,moq,_.O8,yuC,_.O8,k0H];var HPS=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(HPS,_.Gu);HPS.prototype.JSC$7644_serializeBinary=OJV([0,_.lQ,ji0,OBt,_.ea,aOS,Q82,xIx]);var cuq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(cuq,_.Gu);var R4i=function(l){var e=new HPS;e=_.da(e,1,l.JSC$7760_metricName);var O=FHx(l);e=_.I5(e,3,O,_.G0);O=[];for(var E=[],J=_.b(l.cellMap.keys()),z=J.next();!z.done;z=J.next())E.push(z.value.split(","));for(J=0;J<E.length;J++){z=E[J];for(var M=l.cellType,Z=l.getCells(z)||[],u=[],d=0;d<Z.length;d++){var g=Z[d],w=g&&g.cellValue;g=new iP1;switch(M){case 3:w=Number(w);Number.isFinite(w)&&ID(g,1,wh0,FF(w));break;case 2:ID(g,2,wh0,_.ZO(Number(w)))}u.push(g)}M=u;for(Z=0;Z<M.length;Z++){u=M[Z];d=new n4R;u=_.EN(d,
2,u);d=[];g=fOq(l);for(w=0;w<g.length;w++){var n=g[w],k=z[w],y=new $oR;switch(n){case 3:ID(y,1,WH1,Ph(String(k)));break;case 2:n=Number(k);Number.isFinite(n)&&ID(y,2,WH1,_.k4(n));break;case 1:ID(y,3,WH1,NTL(k==="true"))}d.push(y)}F4(u,1,d);O.push(u)}}F4(e,4,O);return e};var Tfq=function(l){if(!l)return"";if(/^about:(?:blank|srcdoc)$/.test(l))return window.origin||"";l.indexOf("blob:")===0&&(l=l.substring(5));l=l.split("#")[0].split("?")[0];l=l.toLowerCase();l.indexOf("//")==0&&(l=window.location.protocol+l);/^[\w\-]*:\/\//.test(l)||(l=window.location.href);var e=l.substring(l.indexOf("://")+3),O=e.indexOf("/");O!=-1&&(e=e.substring(0,O));O=l.substring(0,l.indexOf("://"));if(!O)throw Error("ua`"+l);if(O!=="http"&&O!=="https"&&O!=="chrome-extension"&&O!=="moz-extension"&&
O!=="file"&&O!=="android-app"&&O!=="chrome-search"&&O!=="chrome-untrusted"&&O!=="chrome"&&O!=="app"&&O!=="devtools")throw Error("va`"+O);l="";var E=e.indexOf(":");if(E!=-1){var J=e.substring(E+1);e=e.substring(0,E);if(O==="http"&&J!=="80"||O==="https"&&J!=="443")l=":"+J}return O+"://"+e+l};var G0H=function(l,e,O){var E=String(_.Op.location.href);return E&&l&&e?[e,si1(Tfq(E),l,O||null)].join(" "):null},si1=function(l,e,O){var E=[],J=[];
if((Array.isArray(O)?2:1)==1)return J=[e,l],_.DB(E,function(Z){J.push(Z)}),Bfq(J.join(" "));
var z=[],M=[];_.DB(O,function(Z){M.push(Z.key);z.push(Z.value)});
O=Math.floor((new Date).getTime()/1E3);J=z.length==0?[O,e,l]:[z.join(":"),O,e,l];_.DB(E,function(Z){J.push(Z)});
l=Bfq(J.join(" "));l=[O,l];M.length==0||l.push(M.join(""));return l.join("_")},Bfq=function(l){var e=Bkp();
e.update(l);return e.digestString().toLowerCase()};var Cx=function(l){this.JSC$7655_document_=l||{cookie:""}},Pz1;
_.X=Cx.prototype;_.X.isEnabled=function(){if(!_.Op.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};
_.X.set=function(l,e,O){var E=!1;if(typeof O==="object"){var J=O.sameSite;E=O.secure||!1;var z=O.domain||void 0;var M=O.path||void 0;var Z=O.maxAge}if(/[;=\s]/.test(l))throw Error("wa`"+l);if(/[;\r\n]/.test(e))throw Error("xa`"+e);Z===void 0&&(Z=-1);O=z?";domain="+z:"";M=M?";path="+M:"";E=E?";secure":"";Z=Z<0?"":Z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Z*1E3)).toUTCString();this.JSC$7655_document_.cookie=l+"="+e+O+M+Z+E+(J!=null?";samesite="+J:"")};
_.X.get=function(l,e){for(var O=l+"=",E=(this.JSC$7655_document_.cookie||"").split(";"),J=0,z;J<E.length;J++){z=CL(E[J]);if(z.lastIndexOf(O,0)==0)return z.slice(O.length);if(z==l)return""}return e};
_.X.remove=function(l,e,O){var E=this.containsKey(l);this.set(l,"",{maxAge:0,path:e,domain:O});return E};
_.X.getKeys=function(){return Pz1(this).keys};
_.X.getValues=function(){return Pz1(this).values};
_.X.isEmpty=function(){return!this.JSC$7655_document_.cookie};
_.X.getCount=function(){return this.JSC$7655_document_.cookie?(this.JSC$7655_document_.cookie||"").split(";").length:0};
_.X.containsKey=function(l){return this.get(l)!==void 0};
_.X.containsValue=function(l){for(var e=Pz1(this).values,O=0;O<e.length;O++)if(e[O]==l)return!0;return!1};
_.X.clear=function(){for(var l=Pz1(this).keys,e=l.length-1;e>=0;e--)this.remove(l[e])};
Pz1=function(l){l=(l.JSC$7655_document_.cookie||"").split(";");for(var e=[],O=[],E,J,z=0;z<l.length;z++)J=CL(l[z]),E=J.indexOf("="),E==-1?(e.push(""),O.push(J)):(e.push(J.substring(0,E)),O.push(J.substring(E+1)));return{keys:e,values:O}};
_.mW=new Cx(typeof document=="undefined"?null:document);var Qa2,Uoi;Qa2=function(){var l=_.Op.__SAPISID||_.Op.__APISID||_.Op.__3PSAPISID||_.Op.__1PSAPISID||_.Op.__OVERRIDE_SID;if(l)return!0;typeof document!=="undefined"&&(l=new Cx(document),l=l.get("SAPISID")||l.get("APISID")||l.get("__Secure-3PAPISID")||l.get("__Secure-1PAPISID"));return!!l};
Uoi=function(l,e,O,E){(l=_.Op[l])||typeof document==="undefined"||(l=(new Cx(document)).get(e));return l?G0H(l,O,E):null};
_.Ynt=function(l){var e=Tfq(_.Op==null?void 0:_.Op.location.href),O=[];if(Qa2()){e=e.indexOf("https:")==0||e.indexOf("chrome-extension:")==0||e.indexOf("chrome-untrusted://new-tab-page")==0||e.indexOf("moz-extension:")==0;var E=e?_.Op.__SAPISID:_.Op.__APISID;E||typeof document==="undefined"||(E=new Cx(document),E=E.get(e?"SAPISID":"APISID")||E.get("__Secure-3PAPISID"));(E=E?G0H(E,e?"SAPISIDHASH":"APISIDHASH",l):null)&&O.push(E);e&&((e=Uoi("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",l))&&O.push(e),
(l=Uoi("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",l))&&O.push(l))}return O.length==0?null:O.join(" ")};var Yuk=function(){this.minSize=1024};
Yuk.prototype.compress=function(l){var e,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return e=new CompressionStream("gzip"),O=(new Response(e.readable)).arrayBuffer(),E=e.writable.getWriter(),_.C(z,E.write((new TextEncoder).encode(l)),2);case 2:return _.C(z,E.close(),3);case 3:return J=Uint8Array,_.C(z,O,4);case 4:return z.return(new J(z.yieldResult))}})};
Yuk.prototype.isSupported=function(l){return l<this.minSize?!1:typeof CompressionStream!=="undefined"};var h4H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(h4H,_.Gu);var oa=function(l,e){this.intervalMs=l;this.callback=e;this.enabled=!1;this.nowFn=function(){return _.C2()};
this.lastTimeMs=this.nowFn()};
oa.prototype.setInterval=function(l){this.intervalMs=l;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
oa.prototype.start=function(){var l=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){l.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
oa.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
oa.prototype.tick=function(){var l=this;if(this.enabled){var e=Math.max(this.nowFn()-this.lastTimeMs,0);e<this.intervalMs*.8?this.timer=setTimeout(function(){l.tick()},this.intervalMs-e):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var LH1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(LH1,_.Gu);var t3q=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(t3q,_.Gu);var quH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(quH,_.Gu);quH.prototype.getTransmissionType=function(){return _.PW(this,1)};var hJL=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(hJL,_.Gu);hJL.prototype.getVersion=function(){return _.BW(this,2)};var $$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m($$,_.Gu);var Yod=function(l){F4(Mh,1,l)};
$$.prototype.getModel=function(){return _.BW(this,6)};
var v4q=_.ev($$);var NfC=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(NfC,_.Gu);var P$d=["platform","platformVersion","architecture","model","uaFullVersion"],Mh=new $$,Uh8=null;var Wo=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Wo,_.Gu);var rui=function(l){return _.oC(l,1,1)};var Doq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,4)};
_.m(Doq,_.Gu);_.dE=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,36)};
_.m(_.dE,_.Gu);_.dE.prototype.getExperimentIds=function(){return _.Cu(this,h4H,16)};var Suq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,19)};
_.m(Suq,_.Gu);Suq.prototype.setLogSource=function(l){return _.oC(this,2,l)};
Suq.prototype.setScheduler=function(l){return _.oC(this,10,l)};var xo1=function(l,e){this.isServiceWorkerScope=e=e===void 0?!1:e;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Suq;Number.isInteger(l)&&this.logRequest.setLogSource(l);e||(this.locale=document.documentElement.getAttribute("lang"));Qiq(this,new Wo)};
xo1.prototype.setLogSource=function(l){this.logRequest.setLogSource(l);return this};
var Qiq=function(l,e){_.EN(l.logRequest,1,e);_.PW(e,1)||rui(e);l.isServiceWorkerScope||(e=gE(l),_.BW(e,5)||_.da(e,5,l.locale));l.uach&&(e=gE(l),_.Cu(e,$$,9)||_.EN(e,9,l.uach))},lVx=function(l,e){l.transmissionType=e},eSH=function(l){var e=e===void 0?P$d:e;
var O=l.isServiceWorkerScope?void 0:jB();O?L32(O,e).then(function(E){l.uach=v4q(E!=null?E:"[]");E=gE(l);_.EN(E,9,l.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},gE=function(l){var e=_.Cu(l.logRequest,Wo,1);
e||(e=new Wo,Qiq(l,e));l=e;e=_.Cu(l,NfC,11);e||(e=new NfC,_.EN(l,11,e));return e};
xo1.prototype.build=function(l,e,O,E,J,z){e=e===void 0?0:e;O=O===void 0?0:O;E=E===void 0?null:E;J=J===void 0?0:J;z=z===void 0?0:z;if(!this.isServiceWorkerScope){var M=gE(this);var Z=new quH;Z=_.oC(Z,1,this.transmissionType);Z=_.b$(Z,2,this.isFinal);O=_.L2(Z,3,O>0?O:void 0);O=_.L2(O,4,J>0?J:void 0);O=_.L2(O,5,z>0?z:void 0);J=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=J[_.aq]|0;O=c6(O,z)?O:bk(O,J,z)?zu(O,J):new O.constructor(XS(J,z,!0));_.EN(M,10,O)}M=this.logRequest.clone();O=Date.now().toString();
M=_.$P(M,4,FF(O));l=l.slice();l=F4(M,3,l);E&&(M=new LH1,E=_.L2(M,13,E),M=new t3q,E=_.EN(M,2,E),M=new Doq,E=_.EN(M,1,E),E=_.oC(E,2,9),_.EN(l,18,E));e&&_.cm(l,14,e);return l};V6.prototype.currBackoffCount_=0;V6.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
V6.prototype.getValue=function(){return this.currValue_};
var OJq=function(l){l.currBaseValue_=Math.min(l.maxValue_,l.currBaseValue_*l.backoffFactor_);l.currValue_=Math.min(l.maxValue_,l.currBaseValue_+(l.randomFactor_?Math.round(l.randomFactor_*(Math.random()-.5)*2*l.currBaseValue_):0));l.currBackoffCount_++};var bB2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,8)};
_.m(bB2,_.Gu);var EHk=_.ev(bB2);var M6M=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(M6M,_.Gu);var iZ;iZ=new V6T;var wE=function(l){_.y6.call(this);var e=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7733_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$7733_sendBeaconApiEnabled=!1;this.logSource=l.logSource;this.getAuthHeaderValue=
l.getAuthHeaderValue||function(){};
this.logRequestBuilder=new xo1(l.logSource,l.isServiceWorkerScope);this.network=l.network||null;this.productID=l.productID||null;this.bufferSize=1E3;this.clearcutUrl=l.urlOverride||null;this.sessionIndex=l.sessionIndex||null;this.disableAutomaticFlush=l.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!l.disableWithCredentials;this.isServiceWorkerScope=l.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!jB()&&!!jB().navigator&&jB().navigator.sendBeacon!==
void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(Jp0())).searchParams&&!!(new URL(Jp0())).searchParams.set;var O=rui(new Wo);Qiq(this.logRequestBuilder,O);this.flushBackoff=new V6(1E4,3E5,.1);l=XvF(this,l.backgroundJobDeferrer);this.JSC$7733_flushTimer=new oa(this.flushBackoff.getValue(),l);this.backupTimer=new oa(6E5,l);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState===
"hidden"){zSq(e);var E;(E=e.metalogService)==null||E.flush()}}),document.addEventListener("pagehide",function(){zSq(e);
var E;(E=e.metalogService)==null||E.flush()}))};
_.m(wE,_.y6);var XvF=function(l,e){return l.isBrowserSupported?e?function(){e().then(function(){l.flush()})}:function(){l.flush()}:function(){}};
wE.prototype.disposeInternal=function(){zSq(this);this.JSC$7733_flushTimer.stop();this.backupTimer.stop();_.y6.prototype.disposeInternal.call(this)};
var bJH=function(l){l.clearcutUrl||(l.clearcutUrl=Jp0());try{return(new URL(l.clearcutUrl)).toString()}catch(e){return(new URL(l.clearcutUrl,jB().location.origin)).toString()}};
wE.prototype.dispatch=function(l){if(l instanceof _.dE)this.log(l);else try{var e=new _.dE,O=l.serialize();var E=_.da(e,8,O);this.log(E)}catch(J){AI(this,4,1)}};
var AI=function(l,e,O){l.metalogService&&l.metalogService.increment(e,O)};
wE.prototype.log=function(l){AI(this,2,1);if(this.isBrowserSupported){l=l.clone();var e=this.sequencePosition++;l=_.cm(l,21,e);this.componentId&&_.da(l,26,this.componentId);e=l;if(oqW(_.yK(e,1))==null){var O=Date.now();O=Number.isFinite(O)?O.toString():"0";_.$P(e,1,FF(O))}_.Cqu(_.yK(e,15))!=null||_.cm(e,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(O=this.experimentIds.clone(),_.EN(e,16,O));AI(this,1,1);e=this.pendingEvents.length-this.bufferSize+1;e>0&&(this.pendingEvents.splice(0,e),
this.numLogsDroppedSinceLastFlush+=e,AI(this,3,e));this.pendingEvents.push(l);this.disableAutomaticFlush||this.JSC$7733_flushTimer.enabled||this.JSC$7733_flushTimer.start()}};
wE.prototype.flush=function(l,e){var O=this;if(this.pendingEvents.length===0)l&&l();else if(this.JSC$7733_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,MOi(this);else{var E=Date.now();if(this.noFlushUntilMs>E&&this.startWaitingMs<E)e&&e("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?lVx(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var J=this.pendingEvents.length,
z=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),M=this.getAuthHeaderValue();if(M&&this.lastFailedAuth===M)e&&e("stale-auth-token");else{this.pendingEvents=[];this.JSC$7733_flushTimer.enabled&&this.JSC$7733_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;E=z.serialize();var Z;this.JSC$7733_compressor&&this.JSC$7733_compressor.isSupported(E.length)&&
(Z=this.JSC$7733_compressor.compress(E));var u=VO1(this,E,M),d=function(n){O.flushBackoff.reset();O.JSC$7733_flushTimer.setInterval(O.flushBackoff.getValue());if(n){var k=null;try{var y=JSON.stringify(JSON.parse(n.replace(")]}'\n","")));k=EHk(y)}catch(c){}k&&(n=Number(s9(k,1,_.qi("-1"))),n>0&&(O.startWaitingMs=Date.now(),O.noFlushUntilMs=O.startWaitingMs+n),cCx(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,iZ.fieldIndex),jqx(k,iZ.fieldIndex),k=iZ.ctor?iZ.getExtensionFn(k,iZ.ctor,iZ.fieldIndex,
iZ.JSC$6913_hasMessageId):iZ.getExtensionFn(k,iZ.fieldIndex,null,iZ.JSC$6913_hasMessageId),k=k===null?void 0:k)&&(k=_.Eo(k,1,-1),k!==-1&&(O.flushBackoff=new V6(k<1?1:k,3E5,.1),O.JSC$7733_flushTimer.setInterval(O.flushBackoff.getValue())))}l&&l();O.numRetriesSinceLastSuccessfulFlush=0},g=function(n,k){var y=_.e$(z,_.dE,3,_.Oo());
var c=Number(s9(z,14));OJq(O.flushBackoff);O.JSC$7733_flushTimer.setInterval(O.flushBackoff.getValue());n===401&&M&&(O.lastFailedAuth=M);c&&(O.numLogsDroppedSinceLastFlush+=c);k===void 0&&(k=O.isRetryable(n));k&&(O.pendingEvents=y.concat(O.pendingEvents),O.disableAutomaticFlush||O.JSC$7733_flushTimer.enabled||O.JSC$7733_flushTimer.start());AI(O,7,1);e&&e("net-send-failed",n);++O.numRetriesSinceLastSuccessfulFlush},w=function(){O.network&&O.network.send(u,d,g)};
Z?Z.then(function(n){AI(O,5,J);u.requestHeaders["Content-Encoding"]="gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=n;u.bodyType=2;w()},function(){AI(O,6,J);
w()}):w()}}}};
var VO1=function(l,e,O){O=O===void 0?null:O;var E=E===void 0?l.withCredentials:E;var J={},z=new URL(bJH(l));O&&(J.Authorization=O);l.sessionIndex&&(J["X-Goog-AuthUser"]=l.sessionIndex,z.searchParams.set("authuser",l.sessionIndex));l.pageId&&(Object.defineProperty(J,"X-Goog-PageId",{value:l.pageId}),z.searchParams.set("pageId",l.pageId));return{url:z.toString(),body:e,bodyType:1,requestHeaders:J,requestType:"POST",withCredentials:E,timeoutMillis:l.timeoutMillis}},zSq=function(l){l.logRequestBuilder.isFinal=
!0;
l.flush();l.logRequestBuilder.isFinal=!1},MOi=function(l){ZJi(l,function(e,O){e=new URL(e);
e.searchParams.set("format","json");var E=!1;try{E=jB().navigator.sendBeacon(e.toString(),O.serialize())}catch(J){}E||(l.isSendBeaconSupported=!1);return E})},ZJi=function(l,e){if(l.pendingEvents.length!==0){var O=new URL(bJH(l));
O.searchParams.delete("format");var E=l.getAuthHeaderValue();E&&O.searchParams.set("auth",E);O.searchParams.set("authuser",l.sessionIndex||"0");for(E=0;E<10&&l.pendingEvents.length;++E){var J=l.pendingEvents.slice(0,32),z=l.logRequestBuilder.build(J,l.numLogsDroppedSinceLastFlush,l.numRetriesSinceLastSuccessfulFlush,l.productID,l.persistedLogRecoveredCount,l.persistedLogExpiredCount);if(!e(O.toString(),z)){++l.numRetriesSinceLastSuccessfulFlush;break}l.numLogsDroppedSinceLastFlush=0;l.numRetriesSinceLastSuccessfulFlush=
0;l.persistedLogRecoveredCount=0;l.persistedLogExpiredCount=0;l.pendingEvents=l.pendingEvents.slice(J.length)}l.JSC$7733_flushTimer.enabled&&l.JSC$7733_flushTimer.stop()}};
wE.prototype.isRetryable=function(l){return 500<=l&&l<600||l===401||l===0};
var Jp0=function(){return"https://play.google.com/log?format=json&hasfast=true"};var uSR=function(){this.abortSupported=typeof AbortController!=="undefined"};
uSR.prototype.send=function(l,e,O){var E=this,J,z,M,Z,u,d,g,w,n,k;return _.V(function(y){switch(y.nextAddress){case 1:return z=(J=E.abortSupported?new AbortController:void 0)?setTimeout(function(){J.abort()},l.timeoutMillis):void 0,_.b1(y,2,3),M=Object.assign({},{method:l.requestType,
headers:Object.assign({},l.requestHeaders)},l.body&&{body:l.body},l.withCredentials&&{credentials:"include"},{signal:l.timeoutMillis&&J?J.signal:null}),_.C(y,fetch(l.url,M),5);case 5:Z=y.yieldResult;if(Z.status!==200){(u=O)==null||u(Z.status);y.jumpTo(3);break}if((d=e)==null){y.jumpTo(7);break}return _.C(y,Z.text(),8);case 8:d(y.yieldResult);case 7:case 3:_.MR(y);clearTimeout(z);_.ZU(y,0);break;case 2:g=_.u1(y);switch((w=g)==null?void 0:w.name){case "AbortError":(n=O)==null||n(408);break;default:(k=
O)==null||k(400)}y.jumpTo(3)}})};
uSR.prototype.getTransmissionType=function(){return 4};_.Cb=function(l,e){e=e===void 0?"0":e;_.y6.call(this);this.logSource=l;this.sessionIndex=e;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7751_clearExperimentIds=this.productID=null;this.JSC$7751_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.m(_.Cb,_.y6);var Msd=function(l,e){l.buildLabel=e;return l},bSx=function(l,e){l.network=e;
return l},p3t=function(l,e){l.JSC$7751_clearExperimentIds=e},z_L=function(l){l.JSC$7751_sendBeaconApiEnabled=!0;
return l};
_.Cb.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Cb.prototype.build=function(){this.network||(this.network=new uSR);var l=new wE({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Ynt,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.oQ(this,l);if(this.buildLabel){var e=this.buildLabel,O=
gE(l.logRequestBuilder);_.da(O,7,e)}l.JSC$7733_compressor=new Yuk;this.componentId&&(l.componentId=this.componentId);this.productID&&(l.productID=this.productID);this.pageId&&(l.pageId=this.pageId);this.JSC$7751_clearExperimentIds&&((O=this.JSC$7751_clearExperimentIds)?(l.experimentIds||(l.experimentIds=new h4H),e=l.experimentIds,O=O.serialize(),_.da(e,4,O)):l.experimentIds&&_.$P(l.experimentIds,4));this.JSC$7751_sendBeaconApiEnabled&&(l.JSC$7733_sendBeaconApiEnabled=l.isSendBeaconSupported);eSH(l.logRequestBuilder);
this.bufferSize&&(l.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(l);return l};var HSd=function(l,e,O,E,J,z,M){l=l===void 0?-1:l;e=e===void 0?"":e;O=O===void 0?"":O;E=E===void 0?!1:E;J=J===void 0?"":J;_.y6.call(this);this.logSource=l;this.componentId=e;z?e=z:(l=new _.Cb(l,"0"),l.componentId=e,_.oQ(this,l),O!==""&&(l.destinationUrl=O),E&&(l.serviceWorkerScopeEnabled=!0),J&&Msd(l,J),M&&bSx(l,M),e=l.build());this.JSC$7755_transport=e};
_.m(HSd,_.y6);HSd.prototype.flush=function(l){l=l||[];if(l.length){for(var e=new cuq,O=[],E=0;E<l.length;E++){var J=l[E],z=R4i(J);O.push(z);J.clear()}F4(e,1,O);this.JSC$7755_transport.dispatch(e);this.JSC$7755_transport.flush()}};var Ckq=function(l){this.cellValue=l};var nx=function(l,e,O){this.JSC$7760_metricName=l;this.cellType=e;this.fields=O||[];this.cellMap=new Map},fOq=function(l){return l.fields.map(function(e){return e.fieldType})},FHx=function(l){return l.fields.map(function(e){return e.fieldName})};
_.X=nx.prototype;_.X.addCell=function(l){var e=_.ke.apply(1,arguments),O=this.getCells(e);O?O.push(new Ckq(l)):this.JSC$7760_setCell(l,e)};
_.X.JSC$7760_setCell=function(l){var e=this.JSC$7760_getKey(_.ke.apply(1,arguments));this.cellMap.set(e,[new Ckq(l)])};
_.X.getCells=function(){var l=this.JSC$7760_getKey(_.ke.apply(0,arguments));return this.cellMap.has(l)?this.cellMap.get(l):void 0};
_.X.getCell=function(){var l=this.getCells(_.ke.apply(0,arguments));return l&&l.length?l[0]:void 0};
_.X.clear=function(){this.cellMap.clear()};
_.X.JSC$7760_getKey=function(){var l=_.ke.apply(0,arguments);return l?l.join(","):"key"};var oH6=function(l,e){nx.call(this,l,3,e)};
_.m(oH6,nx);oH6.prototype.JSC$7763_incrementCounterBy=function(l){var e=_.ke.apply(1,arguments),O=0,E=this.getCell(e);E&&(O=E.cellValue);this.JSC$7760_setCell(O+l,e)};var $HR=function(l,e){nx.call(this,l,2,e)};
_.m($HR,nx);$HR.prototype.record=function(l){this.addCell(l,_.ke.apply(1,arguments))};_.aa=function(l){this.id=l};
_.aa.prototype.toString=function(){return this.id};_.k$=function(l,e){this.type=l instanceof _.aa?String(l):l;this.currentTarget=this.target=e;this.defaultPrevented=this.propagationStopped_=!1};
_.k$.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.k$.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Ia=function(l,e){_.k$.call(this,l?l.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;l&&this.init(l,e)};
_.o_(_.Ia,_.k$);
_.Ia.prototype.init=function(l,e){var O=this.type=l.type,E=l.changedTouches&&l.changedTouches.length?l.changedTouches[0]:null;this.target=l.target||l.srcElement;this.currentTarget=e;e=l.relatedTarget;e||(O=="mouseover"?e=l.fromElement:O=="mouseout"&&(e=l.toElement));this.relatedTarget=e;E?(this.clientX=E.clientX!==void 0?E.clientX:E.pageX,this.clientY=E.clientY!==void 0?E.clientY:E.pageY,this.screenX=E.screenX||0,this.screenY=E.screenY||0):(this.offsetX=_.ws||l.offsetX!==void 0?l.offsetX:l.layerX,
this.offsetY=_.ws||l.offsetY!==void 0?l.offsetY:l.layerY,this.clientX=l.clientX!==void 0?l.clientX:l.pageX,this.clientY=l.clientY!==void 0?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0);this.button=l.button;this.keyCode=l.keyCode||0;this.key=l.key||"";this.charCode=l.charCode||(O=="keypress"?l.keyCode:0);this.ctrlKey=l.ctrlKey;this.altKey=l.altKey;this.shiftKey=l.shiftKey;this.metaKey=l.metaKey;this.pointerId=l.pointerId||0;this.pointerType=l.pointerType;this.state=l.state;
this.timeStamp=l.timeStamp;this.event_=l;l.defaultPrevented&&_.Ia.superClass_.preventDefault.call(this)};
_.Ia.prototype.stopPropagation=function(){_.Ia.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Ia.prototype.preventDefault=function(){_.Ia.superClass_.preventDefault.call(this);var l=this.event_;l.preventDefault?l.preventDefault():l.returnValue=!1};var WbF="closure_listenable_"+(Math.random()*1E6|0),mh=function(l){return!(!l||!l[WbF])};var dHH=0;var gHR=function(l,e,O,E,J){this.listener=l;this.proxy=null;this.src=e;this.type=O;this.capture=!!E;this.handler=J;this.key=++dHH;this.removed=this.callOnce=!1},iJq=function(l){l.removed=!0;
l.listener=null;l.proxy=null;l.src=null;l.handler=null};ZF.prototype.add=function(l,e,O,E,J){var z=l.toString();l=this.listeners[z];l||(l=this.listeners[z]=[],this.typeCount_++);var M=wvk(l,e,E,J);M>-1?(e=l[M],O||(e.callOnce=!1)):(e=new gHR(e,this.src,z,!!E,J),e.callOnce=O,l.push(e));return e};
ZF.prototype.remove=function(l,e,O,E){l=l.toString();if(!(l in this.listeners))return!1;var J=this.listeners[l];e=wvk(J,e,O,E);return e>-1?(iJq(J[e]),_.vx(J,e),J.length==0&&(delete this.listeners[l],this.typeCount_--),!0):!1};
var ApH=function(l,e){var O=e.type;if(!(O in l.listeners))return!1;var E=_.NA(l.listeners[O],e);E&&(iJq(e),l.listeners[O].length==0&&(delete l.listeners[O],l.typeCount_--));return E};
ZF.prototype.removeAll=function(l){l=l&&l.toString();var e=0,O;for(O in this.listeners)if(!l||O==l){for(var E=this.listeners[O],J=0;J<E.length;J++)++e,iJq(E[J]);delete this.listeners[O];this.typeCount_--}return e};
ZF.prototype.getListener=function(l,e,O,E){l=this.listeners[l.toString()];var J=-1;l&&(J=wvk(l,e,O,E));return J>-1?l[J]:null};
ZF.prototype.hasListener=function(l,e){var O=l!==void 0,E=O?l.toString():"",J=e!==void 0;return _.mm.some(this.listeners,function(z){for(var M=0;M<z.length;++M)if(!(O&&z[M].type!=E||J&&z[M].capture!=e))return!0;return!1})};
var wvk=function(l,e,O,E){for(var J=0;J<l.length;++J){var z=l[J];if(!z.removed&&z.listener==e&&z.capture==!!O&&z.handler==E)return J}return-1};var nHq,aVF,kuq,mHS,ypS,jb,Hf,j5i,pvi,Kbx,yw,HJ6,IVx;nHq="closure_lm_"+(Math.random()*1E6|0);aVF={};kuq=0;_.f4=function(l,e,O,E,J){if(E&&E.once)return jb(l,e,O,E,J);if(Array.isArray(e)){for(var z=0;z<e.length;z++)_.f4(l,e[z],O,E,J);return null}O=IVx(O);return mh(l)?l.listen(e,O,_.e0(E)?!!E.capture:!!E,J):mHS(l,e,O,!1,E,J)};
mHS=function(l,e,O,E,J,z){if(!e)throw Error("za");var M=_.e0(J)?!!J.capture:!!J,Z=yw(l);Z||(l[nHq]=Z=new ZF(l));O=Z.add(e,O,E,M,z);if(O.proxy)return O;E=ypS();O.proxy=E;E.src=l;E.listener=O;if(l.addEventListener)_.G2W||(J=M),J===void 0&&(J=!1),l.addEventListener(e.toString(),E,J);else if(l.attachEvent)l.attachEvent(pvi(e.toString()),E);else if(l.addListener&&l.removeListener)l.addListener(E);else throw Error("Aa");kuq++;return O};
ypS=function(){var l=Kbx,e=function(O){return l.call(e.src,e.listener,O)};
return e};
jb=function(l,e,O,E,J){if(Array.isArray(e)){for(var z=0;z<e.length;z++)jb(l,e[z],O,E,J);return null}O=IVx(O);return mh(l)?l.listenOnce(e,O,_.e0(E)?!!E.capture:!!E,J):mHS(l,e,O,!0,E,J)};
_.px=function(l,e,O,E,J){if(Array.isArray(e))for(var z=0;z<e.length;z++)_.px(l,e[z],O,E,J);else E=_.e0(E)?!!E.capture:!!E,O=IVx(O),mh(l)?l.unlisten(e,O,E,J):l&&(l=yw(l))&&(e=l.getListener(e,O,E,J))&&Hf(e)};
Hf=function(l){if(typeof l==="number"||!l||l.removed)return!1;var e=l.src;if(mh(e))return ApH(e.eventTargetListeners_,l);var O=l.type,E=l.proxy;e.removeEventListener?e.removeEventListener(O,E,l.capture):e.detachEvent?e.detachEvent(pvi(O),E):e.addListener&&e.removeListener&&e.removeListener(E);kuq--;(O=yw(e))?(ApH(O,l),O.typeCount_==0&&(O.src=null,e[nHq]=null)):iJq(l);return!0};
j5i=function(l,e,O,E,J){O=IVx(O);E=!!E;return mh(l)?l.getListener(e,O,E,J):l?(l=yw(l))?l.getListener(e,O,E,J):null:null};
pvi=function(l){return l in aVF?aVF[l]:aVF[l]="on"+l};
Kbx=function(l,e){if(l.removed)l=!0;else{e=new _.Ia(e,this);var O=l.listener,E=l.handler||l.src;l.callOnce&&Hf(l);l=O.call(E,e)}return l};
yw=function(l){l=l[nHq];return l instanceof ZF?l:null};
HJ6="__closure_events_fn_"+(Math.random()*1E9>>>0);IVx=function(l){if(typeof l==="function")return l;l[HJ6]||(l[HJ6]=function(e){return l.handleEvent(e)});
return l[HJ6]};_.Kx=function(){_.y6.call(this);this.eventTargetListeners_=new ZF(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.o_(_.Kx,_.y6);_.Kx.prototype[WbF]=!0;_.X=_.Kx.prototype;_.X.setParentEventTarget=function(l){this.parentEventTarget_=l};
_.X.addEventListener=function(l,e,O,E){_.f4(this,l,e,O,E)};
_.X.removeEventListener=function(l,e,O,E){_.px(this,l,e,O,E)};
_.X.dispatchEvent=function(l){var e,O=this.parentEventTarget_;if(O)for(e=[];O;O=O.parentEventTarget_)e.push(O);O=this.actualEventTarget_;var E=l.type||l;if(typeof l==="string")l=new _.k$(l,O);else if(l instanceof _.k$)l.target=l.target||O;else{var J=l;l=new _.k$(E,O);_.mm.extend(l,J)}J=!0;var z;if(e)for(z=e.length-1;!l.propagationStopped_&&z>=0;z--){var M=l.currentTarget=e[z];J=cpR(M,E,!0,l)&&J}l.propagationStopped_||(M=l.currentTarget=O,J=cpR(M,E,!0,l)&&J,l.propagationStopped_||(J=cpR(M,E,!1,l)&&
J));if(e)for(z=0;!l.propagationStopped_&&z<e.length;z++)M=l.currentTarget=e[z],J=cpR(M,E,!1,l)&&J;return J};
_.X.disposeInternal=function(){_.Kx.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.X.listen=function(l,e,O,E){return this.eventTargetListeners_.add(String(l),e,!1,O,E)};
_.X.listenOnce=function(l,e,O,E){return this.eventTargetListeners_.add(String(l),e,!0,O,E)};
_.X.unlisten=function(l,e,O,E){return this.eventTargetListeners_.remove(String(l),e,O,E)};
_.X.removeAllListeners=function(l){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(l):0};
var cpR=function(l,e,O,E){e=l.eventTargetListeners_.listeners[String(e)];if(!e)return!0;e=e.concat();for(var J=!0,z=0;z<e.length;++z){var M=e[z];if(M&&!M.removed&&M.capture==O){var Z=M.listener,u=M.handler||M.src;M.callOnce&&ApH(l.eventTargetListeners_,M);J=Z.call(u,E)!==!1&&J}}return J&&!E.defaultPrevented};
_.Kx.prototype.getListener=function(l,e,O,E){return this.eventTargetListeners_.getListener(String(l),e,O,E)};
_.Kx.prototype.hasListener=function(l,e){return this.eventTargetListeners_.hasListener(l!==void 0?String(l):void 0,e)};var j1=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(l){return l&&AsyncContext.Snapshot.wrap(l)}:function(l){return l};var FbS=function(l,e){this.create_=l;this.reset_=e;this.occupants_=0;this.JSC$7795_head_=null};
FbS.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var l=this.JSC$7795_head_;this.JSC$7795_head_=l.next;l.next=null}else l=this.create_();return l};
FbS.prototype.put=function(l){this.reset_(l);this.occupants_<100&&(this.occupants_++,l.next=this.JSC$7795_head_,this.JSC$7795_head_=l)};var fVF=function(){this.workTail_=this.workHead_=null};
fVF.prototype.add=function(l,e){var O=qoV.get();O.set(l,e);this.workTail_?this.workTail_.next=O:this.workHead_=O;this.workTail_=O};
fVF.prototype.remove=function(){var l=null;this.workHead_&&(l=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),l.next=null);return l};
var qoV=new FbS(function(){return new RSq},function(l){return l.reset()}),RSq=function(){this.next=this.scope=this.fn=null};
RSq.prototype.set=function(l,e){this.fn=l;this.scope=e;this.next=null};
RSq.prototype.reset=function(){this.next=this.scope=this.fn=null};var TcC,vz2,t$g,s50;vz2=!1;t$g=new fVF;_.Ho=function(l,e){TcC||s50();vz2||(TcC(),vz2=!0);t$g.add(l,e)};
s50=function(){var l=Promise.resolve(void 0);TcC=function(){l.then(Nkx)}};var Gu6=function(l){l.prototype.$goog_Thenable=!0},BcS=function(l){if(!l)return!1;
try{return!!l.$goog_Thenable}catch(e){return!1}};var Pkq,UHF,Yj6,Lbx,tO6,qjk,DHR,xHF,EeC,e5q,ySu;_.kE=function(l,e){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(l!=_.II)try{var O=this;l.call(e,function(E){O.resolve_(2,E)},function(E){O.resolve_(3,E)})}catch(E){this.resolve_(3,E)}};
Pkq=function(){this.next=this.context=this.JSC$7806_onRejected=this.JSC$7806_onFulfilled=this.child=null;this.always=!1};
Pkq.prototype.reset=function(){this.context=this.JSC$7806_onRejected=this.JSC$7806_onFulfilled=this.child=null;this.always=!1};
UHF=new FbS(function(){return new Pkq},function(l){l.reset()});
Yj6=function(l,e,O){var E=UHF.get();E.JSC$7806_onFulfilled=l;E.JSC$7806_onRejected=e;E.context=O;return E};
_.Ag=function(l){if(l instanceof _.kE)return l;var e=new _.kE(_.II);e.resolve_(2,l);return e};
_.Tr=function(l){return new _.kE(function(e,O){O(l)})};
Lbx=function(l,e,O){hSS(l,e,O,null)||_.Ho(_.pz(e,l))};
_.co=function(l){return new _.kE(function(e,O){var E=l.length,J=[];if(E)for(var z=function(d,g){E--;J[d]=g;E==0&&e(J)},M=function(d){O(d)},Z,u=0;u<l.length;u++)Z=l[u],Lbx(Z,_.pz(z,u),M);
else e(J)})};
tO6=function(l){return new _.kE(function(e){var O=l.length,E=[];if(O)for(var J=function(Z,u,d){O--;E[Z]=u?{fulfilled:!0,value:d}:{fulfilled:!1,reason:d};O==0&&e(E)},z,M=0;M<l.length;M++)z=l[M],Lbx(z,_.pz(J,M,!0),_.pz(J,M,!1));
else e(E)})};
qjk=function(l){return new _.kE(function(e,O){var E=l.length,J=[];if(E)for(var z=function(d){e(d)},M=function(d,g){E--;
J[d]=g;E==0&&O(J)},Z,u=0;u<l.length;u++)Z=l[u],Lbx(Z,z,_.pz(M,u));
else e(void 0)})};
_.x7=function(){var l,e,O=new _.kE(function(E,J){l=E;e=J});
return new vHS(O,l,e)};
_.kE.prototype.then=function(l,e,O){return NcF(this,j1(typeof l==="function"?l:null),j1(typeof e==="function"?e:null),O)};
Gu6(_.kE);DHR=function(l,e,O,E){rpR(l,Yj6(e||_.II,O||null,E))};
_.FV=function(l,e){e=j1(e);e=Yj6(e,e);e.always=!0;rpR(l,e);return l};
_.kE.prototype.finally=function(l){var e=this;l=j1(l);return new Promise(function(O,E){DHR(e,function(J){l();O(J)},function(J){l();
E(J)})})};
_.kE.prototype.thenCatch=function(l,e){return NcF(this,null,j1(l),e)};
_.kE.prototype.catch=_.kE.prototype.thenCatch;_.kE.prototype.cancel=function(l){if(this.state_==0){var e=new _.lY(l);_.Ho(function(){Sj0(this,e)},this)}};
var Sj0=function(l,e){if(l.state_==0)if(l.parent_){var O=l.parent_;if(O.callbackEntries_){for(var E=0,J=null,z=null,M=O.callbackEntries_;M&&(M.always||(E++,M.child==l&&(J=M),!(J&&E>1)));M=M.next)J||(z=M);J&&(O.state_==0&&E==1?Sj0(O,e):(z?(E=z,E.next==O.callbackEntriesTail_&&(O.callbackEntriesTail_=E),E.next=E.next.next):Q51(O),xHF(O,J,3,e)))}l.parent_=null}else l.resolve_(3,e)},rpR=function(l,e){l.callbackEntries_||l.state_!=2&&l.state_!=3||l9i(l);
l.callbackEntriesTail_?l.callbackEntriesTail_.next=e:l.callbackEntries_=e;l.callbackEntriesTail_=e},NcF=function(l,e,O,E){var J=Yj6(null,null,null);
J.child=new _.kE(function(z,M){J.JSC$7806_onFulfilled=e?function(Z){try{var u=e.call(E,Z);z(u)}catch(d){M(d)}}:z;
J.JSC$7806_onRejected=O?function(Z){try{var u=O.call(E,Z);u===void 0&&Z instanceof _.lY?M(Z):z(u)}catch(d){M(d)}}:M});
J.child.parent_=l;rpR(l,J);return J.child};
_.kE.prototype.unblockAndFulfill_=function(l){this.state_=0;this.resolve_(2,l)};
_.kE.prototype.unblockAndReject_=function(l){this.state_=0;this.resolve_(3,l)};
_.kE.prototype.resolve_=function(l,e){this.state_==0&&(this===e&&(l=3,e=new TypeError("Ba")),this.state_=1,hSS(e,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=e,this.state_=l,this.parent_=null,l9i(this),l!=3||e instanceof _.lY||e5q(this,e)))};
var hSS=function(l,e,O,E){if(l instanceof _.kE)return DHR(l,e,O,E),!0;if(BcS(l))return l.then(e,O,E),!0;if(_.e0(l))try{var J=l.then;if(typeof J==="function")return OUk(l,J,e,O,E),!0}catch(z){return O.call(E,z),!0}return!1},OUk=function(l,e,O,E,J){var z=!1,M=function(u){z||(z=!0,O.call(J,u))},Z=function(u){z||(z=!0,E.call(J,u))};
try{e.call(l,M,Z)}catch(u){Z(u)}},l9i=function(l){l.executing_||(l.executing_=!0,_.Ho(l.executeCallbacks_,l))},Q51=function(l){var e=null;
l.callbackEntries_&&(e=l.callbackEntries_,l.callbackEntries_=e.next,e.next=null);l.callbackEntries_||(l.callbackEntriesTail_=null);return e};
_.kE.prototype.executeCallbacks_=function(){for(var l;l=Q51(this);)xHF(this,l,this.state_,this.result_);this.executing_=!1};
xHF=function(l,e,O,E){if(O==3&&e.JSC$7806_onRejected&&!e.always)for(;l&&l.hadUnhandledRejection_;l=l.parent_)l.hadUnhandledRejection_=!1;if(e.child)e.child.parent_=null,EeC(e,O,E);else try{e.always?e.JSC$7806_onFulfilled.call(e.context):EeC(e,O,E)}catch(J){ySu.call(null,J)}UHF.put(e)};
EeC=function(l,e,O){e==2?l.JSC$7806_onFulfilled.call(l.context,O):l.JSC$7806_onRejected&&l.JSC$7806_onRejected.call(l.context,O)};
e5q=function(l,e){l.hadUnhandledRejection_=!0;_.Ho(function(){l.hadUnhandledRejection_&&ySu.call(null,e)})};
ySu=Ep;_.lY=function(l){_.l2.call(this,l)};
_.o_(_.lY,_.l2);_.lY.prototype.name="cancel";var vHS=function(l,e,O){this.promise=l;this.resolve=e;this.reject=O};var fx;_.Zp=function(l,e){_.Kx.call(this);this.JSC$7818_interval_=l||1;this.timerObject_=e||_.Op;this.boundTick_=(0,_.pb)(this.tick_,this);this.last_=_.C2()};
_.o_(_.Zp,_.Kx);_.X=_.Zp.prototype;_.X.enabled=!1;_.X.JSC$7820_timer_=null;_.X.setInterval=function(l){this.JSC$7818_interval_=l;this.JSC$7820_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7820_timer_&&this.stop()};
_.X.tick_=function(){if(this.enabled){var l=_.C2()-this.last_;l>0&&l<this.JSC$7818_interval_*.8?this.JSC$7820_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7818_interval_-l):(this.JSC$7820_timer_&&(this.timerObject_.clearTimeout(this.JSC$7820_timer_),this.JSC$7820_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.X.start=function(){this.enabled=!0;this.JSC$7820_timer_||(this.JSC$7820_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7818_interval_),this.last_=_.C2())};
_.X.stop=function(){this.enabled=!1;this.JSC$7820_timer_&&(this.timerObject_.clearTimeout(this.JSC$7820_timer_),this.JSC$7820_timer_=null)};
_.X.disposeInternal=function(){_.Zp.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
fx=function(l,e,O){if(typeof l==="function")O&&(l=(0,_.pb)(l,O));else if(l&&typeof l.handleEvent=="function")l=(0,_.pb)(l.handleEvent,l);else throw Error("Ca");return Number(e)>2147483647?-1:_.Op.setTimeout(l,e||0)};
_.Jzq=function(l){var e=null;return(new _.kE(function(O,E){e=fx(function(){O(void 0)},l);
e==-1&&E(Error("Da"))})).thenCatch(function(O){_.Op.clearTimeout(e);
throw O;})};var $z=function(l){_.y6.call(this);this.streamzLogger=l;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7824_flushTimer=new _.Zp(this.flushInterval);this.JSC$7824_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.oQ(this,this.JSC$7824_flushTimer)};
_.m($z,_.y6);$z.prototype.sendIsolatedPayload=function(l){this.shouldSendIsolatedPayload=l;this.invocationLimit=1};
var X21=function(l){l.JSC$7824_flushTimer.enabled||l.JSC$7824_flushTimer.start();l.invocationCount++;l.invocationCount>=l.invocationLimit&&l.snapshotAndFlush()};
$z.prototype.snapshotAndFlush=function(){var l=this.metricMap.values();l=[].concat(_.kA(l)).filter(function(e){return e.cellMap.size});
l.length&&this.streamzLogger.flush(l,this.shouldSendIsolatedPayload);z5q(l);this.invocationCount=0;this.JSC$7824_flushTimer.enabled&&this.JSC$7824_flushTimer.stop()};
$z.prototype.addNewCounter=function(l){var e=_.ke.apply(1,arguments);this.metricMap.has(l)||this.metricMap.set(l,new oH6(l,e))};
$z.prototype.addNewEventMetric=function(l){var e=_.ke.apply(1,arguments);this.metricMap.has(l)||this.metricMap.set(l,new $HR(l,e))};
var bU0=function(l,e){return l.disabledMetrics.has(e)?void 0:l.metricMap.get(e)};
$z.prototype.JSC$7824_incrementCounter=function(l){this.JSC$7824_incrementCounterBy(l,1,_.ke.apply(1,arguments))};
$z.prototype.JSC$7824_incrementCounterBy=function(l,e){var O=_.ke.apply(2,arguments),E=bU0(this,l);E&&E instanceof oH6&&(E.JSC$7763_incrementCounterBy(e,O),X21(this))};
$z.prototype.record=function(l,e){var O=_.ke.apply(2,arguments),E=bU0(this,l);E&&E instanceof $HR&&(E.record(e,O),X21(this))};
var z5q=function(l){for(var e=0;e<l.length;e++)l[e].clear()};_.Ra=function(l,e,O){O=O===void 0?{}:O;e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=l;this.metadata=O;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.Ra,Error);_.Ra.prototype.toString=function(){var l="RpcError("+(rlV(this.code)||String(this.code))+")";this.message&&(l+=": "+this.message);return l};_.Mv1=_.Op.JSON.parse;_.Tv=_.Op.JSON.stringify;_.Rc=_.Op.JSON.parse;_.VvR=function(l){switch(l){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 ZU1=function(l){switch(l){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var uC1,CrS=function(){};
_.o_(CrS,_.Dh2);CrS.prototype.createInstance=function(){return new XMLHttpRequest};
uC1=new CrS;_.sk=function(l){_.Kx.call(this);this.headers=new Map;this.JSC$7833_xmlHttpFactory_=l||null;this.JSC$7833_active_=!1;this.JSC$7833_xhr_=null;this.JSC$7833_lastUri_="";this.JSC$7833_lastErrorCode_=0;this.JSC$7833_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7833_timeoutId_=null;this.responseType_="";this.JSC$7833_withCredentials_=!1};
_.o_(_.sk,_.Kx);var oeR=/^https?$/i,$mS=["POST","PUT"],W70=[],E$t=function(l,e,O,E,J,z,M){var Z=new _.sk;W70.push(Z);e&&Z.listen("complete",e);Z.listenOnce("ready",Z.cleanupSend_);z&&(Z.timeoutInterval_=Math.max(0,z));M&&(Z.JSC$7833_withCredentials_=M);Z.send(l,O,E,J)};
_.sk.prototype.cleanupSend_=function(){this.dispose();_.NA(W70,this)};
_.sk.prototype.send=function(l,e,O,E){if(this.JSC$7833_xhr_)throw Error("Ea`"+this.JSC$7833_lastUri_+"`"+l);e=e?e.toUpperCase():"GET";this.JSC$7833_lastUri_=l;this.JSC$7833_lastError_="";this.JSC$7833_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7833_active_=!0;this.JSC$7833_xhr_=this.createXhr();this.JSC$7833_xhr_.onreadystatechange=j1((0,_.pb)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7833_xhr_.open(e,String(l),!0),this.inOpen_=!1}catch(M){dmk(this,M);return}l=O||"";O=new Map(this.headers);
if(E)if(Object.getPrototypeOf(E)===Object.prototype)for(var J in E)O.set(J,E[J]);else if(typeof E.keys==="function"&&typeof E.get==="function"){J=_.b(E.keys());for(var z=J.next();!z.done;z=J.next())z=z.value,O.set(z,E.get(z))}else throw Error("Fa`"+String(E));E=Array.from(O.keys()).find(function(M){return"content-type"==M.toLowerCase()});
J=_.Op.FormData&&l instanceof _.Op.FormData;!_.hq($mS,e)||E||J||O.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e=_.b(O);for(E=e.next();!E.done;E=e.next())O=_.b(E.value),E=O.next().value,O=O.next().value,this.JSC$7833_xhr_.setRequestHeader(E,O);this.responseType_&&(this.JSC$7833_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7833_xhr_&&this.JSC$7833_xhr_.withCredentials!==this.JSC$7833_withCredentials_&&(this.JSC$7833_xhr_.withCredentials=this.JSC$7833_withCredentials_);
try{this.JSC$7833_timeoutId_&&(clearTimeout(this.JSC$7833_timeoutId_),this.JSC$7833_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7833_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7833_xhr_.send(l),this.inSend_=!1}catch(M){dmk(this,M)}};
_.sk.prototype.createXhr=function(){return this.JSC$7833_xmlHttpFactory_?this.JSC$7833_xmlHttpFactory_.createInstance():uC1.createInstance()};
_.sk.prototype.timeout_=function(){typeof NyW!="undefined"&&this.JSC$7833_xhr_&&(this.JSC$7833_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7833_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var dmk=function(l,e){l.JSC$7833_active_=!1;l.JSC$7833_xhr_&&(l.inAbort_=!0,l.JSC$7833_xhr_.abort(),l.inAbort_=!1);l.JSC$7833_lastError_=e;l.JSC$7833_lastErrorCode_=5;gek(l);iUR(l)},gek=function(l){l.errorDispatched_||(l.errorDispatched_=!0,l.dispatchEvent("complete"),l.dispatchEvent("error"))};
_.sk.prototype.abort=function(l){this.JSC$7833_xhr_&&this.JSC$7833_active_&&(this.JSC$7833_active_=!1,this.inAbort_=!0,this.JSC$7833_xhr_.abort(),this.inAbort_=!1,this.JSC$7833_lastErrorCode_=l||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),iUR(this))};
_.sk.prototype.disposeInternal=function(){this.JSC$7833_xhr_&&(this.JSC$7833_active_&&(this.JSC$7833_active_=!1,this.inAbort_=!0,this.JSC$7833_xhr_.abort(),this.inAbort_=!1),iUR(this,!0));_.sk.superClass_.disposeInternal.call(this)};
_.sk.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)w2q(this);else this.onReadyStateChangeEntryPoint_()};
_.sk.prototype.onReadyStateChangeEntryPoint_=function(){w2q(this)};
var w2q=function(l){if(l.JSC$7833_active_&&typeof NyW!="undefined")if(l.inSend_&&_.Gv(l)==4)setTimeout(l.onReadyStateChange_.bind(l),0);else if(l.dispatchEvent("readystatechange"),l.isComplete()){l.JSC$7833_active_=!1;try{if(l.isSuccess())l.dispatchEvent("complete"),l.dispatchEvent("success");else{l.JSC$7833_lastErrorCode_=6;try{var e=_.Gv(l)>2?l.JSC$7833_xhr_.statusText:""}catch(O){e=""}l.JSC$7833_lastError_=e+" ["+l.getStatus()+"]";gek(l)}}finally{iUR(l)}}},iUR=function(l,e){if(l.JSC$7833_xhr_){l.JSC$7833_timeoutId_&&
(clearTimeout(l.JSC$7833_timeoutId_),l.JSC$7833_timeoutId_=null);
var O=l.JSC$7833_xhr_;l.JSC$7833_xhr_=null;e||l.dispatchEvent("ready");try{O.onreadystatechange=null}catch(E){}}};
_.sk.prototype.isActive=function(){return!!this.JSC$7833_xhr_};
_.sk.prototype.isComplete=function(){return _.Gv(this)==4};
_.sk.prototype.isSuccess=function(){var l=this.getStatus(),e;if(!(e=ZU1(l))){if(l=l===0)l=HR1(String(this.JSC$7833_lastUri_)),l=!oeR.test(l);e=l}return e};
_.Gv=function(l){return l.JSC$7833_xhr_?l.JSC$7833_xhr_.readyState:0};
_.X=_.sk.prototype;_.X.getStatus=function(){try{return _.Gv(this)>2?this.JSC$7833_xhr_.status:-1}catch(l){return-1}};
_.X.getResponseText=function(){try{return this.JSC$7833_xhr_?this.JSC$7833_xhr_.responseText:""}catch(l){return""}};
_.X.getResponse=function(){try{if(!this.JSC$7833_xhr_)return null;if("response"in this.JSC$7833_xhr_)return this.JSC$7833_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7833_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7833_xhr_)return this.JSC$7833_xhr_.mozResponseArrayBuffer}return null}catch(l){return null}};
_.X.getAllResponseHeaders=function(){return this.JSC$7833_xhr_&&_.Gv(this)>=2?this.JSC$7833_xhr_.getAllResponseHeaders()||"":""};
_.X.getLastError=function(){return typeof this.JSC$7833_lastError_==="string"?this.JSC$7833_lastError_:String(this.JSC$7833_lastError_)};var Vsd=function(){};
Vsd.prototype.send=function(l,e,O){e=e===void 0?function(){}:e;
O=O===void 0?function(){}:O;
E$t(l.url,function(E){E=E.target;E.isSuccess()?e(E.getResponseText()):O(E.getStatus())},l.requestType,l.body,l.requestHeaders,l.timeoutMillis,l.withCredentials)};
Vsd.prototype.getTransmissionType=function(){return 1};var Az1=function(l,e){this.logger=l;this.event=e;this.startTime=WD()};
Az1.prototype.done=function(){this.logger.mO(this.event,WD()-this.startTime)};
var Bo=function(){uZ.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.m(Bo,uZ);var Po=function(l,e,O){var E=WD();e=e();l.mO(O,WD()-E);return e},FFA=function(){Bo.apply(this,arguments)};
_.m(FFA,Bo);_.X=FFA.prototype;_.X.owQ=function(){};
_.X.q7=function(){};
_.X.mO=function(){};
_.X.logError=function(){};
_.X.uO=function(){};
_.X.ktE=function(){};
_.X.iW6=function(){};
_.X.gXE=function(){};
_.X.eKp=function(){};
var ne1=function(l){Bo.call(this);var e=this;this.logger=l;this.TEST_ONLY={pGg:function(){return e.logger},
getExperimentIds:function(){return e.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void e.logger.dispose()})};
_.m(ne1,Bo);_.X=ne1.prototype;_.X.update=function(l){this.logger.dispose();this.logger=l};
_.X.q7=function(l){this.logger.q7(l)};
_.X.mO=function(l,e){this.logger.mO(l,e)};
_.X.logError=function(l){this.logger.logError(l)};
_.X.uO=function(){this.logger.uO()};
_.X.ktE=function(l){this.logger.ktE(l)};
_.X.iW6=function(l){this.logger.iW6(l)};
_.X.gXE=function(l){this.logger.gXE(l)};
_.X.eKp=function(l){this.logger.eKp(l)};
_.X.owQ=function(l){this.logger.owQ(l)};
var a91=function(l,e){_.y6.call(this);var O=this;this.callback=l;this.kzp=e;this.cY8=-e;this.addOnDisposeCallback(function(){return void clearTimeout(O.timer)})};
_.m(a91,_.y6);var k1C=function(l){if(l.timer===void 0){var e=Math.max(0,l.cY8+l.kzp-WD());l.timer=setTimeout(function(){try{l.callback()}finally{l.cY8=WD(),l.timer=void 0}},e)}},I9q=function(l,e){Bo.call(this);
this.metrics=l;this.w7=e};
_.m(I9q,Bo);_.X=I9q.prototype;_.X.owQ=function(l){this.metrics.vts.record(l,this.w7)};
_.X.q7=function(l){this.metrics.eventCount.increment(l,this.w7)};
_.X.mO=function(l,e){this.metrics.gDB.record(e,l,this.w7)};
_.X.logError=function(l){this.metrics.errorCount.increment(l,this.w7)};
_.X.ktE=function(l){this.metrics.hbt.increment(l,this.w7)};
_.X.iW6=function(l){this.metrics.lTk.increment(l,this.w7)};
_.X.gXE=function(l){this.metrics.uKk.increment(l,this.w7)};
var dk=function(l,e){e=e===void 0?[]:e;var O={w7:l.w7||"_",xxQ:l.xxQ||[],pFH:l.pFH|0,destinationUrl:l.destinationUrl,v4Y:l.v4Y||function(){},
vz:l.vz||function(z,M){return cFx(z,M,O.v4Y,O.destinationUrl)}},E=O.vz("49",O.xxQ.concat(e));
I9q.call(this,X3x(E),O.w7);var J=this;this.TEST_ONLY={getExperimentIds:function(){return J.options.xxQ.concat(J.tdr).sort(function(z,M){return z-M})}};
this.options=O;this.service=E;this.zrx=!l.vz;this.flushDebouncer=new a91(function(){return void J.service.snapshotAndFlush()},O.pFH);
this.addOnDisposeCallback(function(){J.flushDebouncer.dispose();J.zrx&&J.service.dispose()});
(this.tdr=e.slice()).sort(_.JC)};
_.m(dk,I9q);dk.prototype.eKp=function(l){var e=this;l=l.slice();l.sort(_.JC);_.bq(l,this.tdr)||(this.flushDebouncer.dispose(),this.zrx&&this.service.dispose(),this.service=this.options.vz("49",this.options.xxQ.concat(l)),this.flushDebouncer=new a91(function(){return void e.service.snapshotAndFlush()},this.options.pFH),this.metrics=X3x(this.service),this.tdr=l)};
dk.prototype.uO=function(){k1C(this.flushDebouncer)};var u2x=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(u2x,_.Gu);_.Ccu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(_.Ccu,_.Gu);var Jc=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,0,Jc.messageId)};
_.m(Jc,_.Gu);var mm0=_.lr(Jc);Jc.messageId="bfkj";var RJd=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(RJd,_.Gu);var yzS=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(yzS,_.Gu);var p2H=_.ev(yzS);_.d8=function(){var l=this;this.promise=new Promise(function(e,O){l.resolve=e;l.reject=O})};_.Uk=function(l){_.y6.call(this);var e=this;this.yiq=Math.floor(Math.random()*200);this.nKY=new yzS;if("challenge"in l&&mm0(l.challenge)){var O=_.BW(l.challenge,4,void 0,B6);var E=_.BW(l.challenge,5,void 0,B6);_.BW(l.challenge,7,void 0,B6)&&(this.nKY=p2H(_.BW(l.challenge,7,void 0,B6)))}else O=l.program,E=l.globalName;this.addOnDisposeCallback(function(){var y,c,f;return _.V(function(P){if(P.nextAddress==1)return _.C(P,e.yAl,2);y=P.yieldResult;c=y.yMv;(f=c)==null||f();_.Cl(P)})});
this.logger=fcL(l.dZ||{},this.nKY,l.khv);_.oQ(this,this.logger);var J=new _.d8;this.yAl=J.promise;this.logger.q7("t");var z=this.logger.share(),M=new Az1(z,"t"),Z=function(y,c,f,P){if(!e.logger.isDisposed()){var h="k";c?h="h":f&&(h="u");h!=="k"?P!==0&&(e.logger.q7(h),e.logger.mO(h,y)):e.yiq<=0?(e.logger.q7(h),e.logger.mO(h,y),e.yiq=Math.floor(Math.random()*200)):e.yiq--}},u=function(y,c,f,P){Promise.resolve().then(function(){M.done();
z.uO();z.dispose();J.resolve({auZ:y,yMv:c,aDZ:f,fVk:P})})};
if(!_.Op[E])throw this.logger.logError(25),Error("Ga");if(!_.Op[E].a)throw this.logger.logError(26),Error("Ha");try{var d=_.Op[E].a;E=[];for(var g=[],w=Tkp(this.nKY),n=0;n<w.length;n++)E.push(w[n]),g.push(1);var k=sQt(this.nKY);for(w=0;w<k.length;w++)E.push(k[w]),g.push(2);this.nHh=_.b(d(O,u,!0,l.kqk,Z,[E,g],_.BW(this.nKY,5))).next().value;this.qIW=J.promise.then(function(){})}catch(y){throw this.logger.logError(28),y;
}};
_.m(_.Uk,_.y6);_.Uk.prototype.snapshot=function(l){if(this.isDisposed())throw Error("Ia");this.logger.q7("n");var e=this.logger.share();return this.yAl.then(function(O){var E=O.auZ;return new Promise(function(J){var z=new Az1(e,"n");E(function(M){z.done();e.owQ(M.length);e.uO();e.dispose();J(M)},[l.fZ,
l.qUY,l.hiV,l.pl8])})})};
_.K7i=function(l,e){if(l.isDisposed())throw Error("Ia");l.logger.q7("n");var O=Po(l.logger,function(){return l.nHh([e.fZ,e.qUY,e.hiV,e.pl8])},"n");
l.logger.owQ(O.length);l.logger.uO();return O};
_.Uk.prototype.nZB=function(l){this.yAl.then(function(e){var O;(O=e.aDZ)==null||O(l)})};
_.Uk.prototype.caq=function(l,e){return this.yAl.then(function(O){var E;return(E=O.fVk)==null?void 0:E(l,e,!1)})};
_.Uk.prototype.vL6=function(){return this.logger.share()};var jHC=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(jHC,_.Gu);var SDx=_.lr(jHC);var HUC=function(){this.wEo={};this.asB=null},czq=function(){HUC.instance||(HUC.instance=new HUC);
return HUC.instance},f9C=function(l,e){return F7i(l,_.Cu(e,u2x,1,B6),_.Cu(e,_.Ccu,2,B6),_.BW(e,3,void 0,B6))},F7i=function(l,e,O,E){if(!e&&!O)return Promise.resolve();
if(!E)return BXL(e,O);var J;(J=l.wEo)[E]||(J[E]=new Promise(function(z,M){BXL(e,O).then(function(){l.asB=E;z()},function(Z){delete l.wEo[E];
M(Z)})}));
return l.wEo[E]};var R5H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(R5H,_.Gu);var TGk=function(l,e){return _.Xi(l,1,e)},sHk=function(l,e){return _.Xi(l,2,e)};var Y$=function(l){_.y6.call(this);var e=this;this.options=l;this.oW6=new _.d8;this.qIW=this.oW6.promise;this.suC=new _.d8;this.aCr=1;this.mDB=new _.d8;this.b2H=[];this.wjp=l.wjp||function(){};
this.logger=new ne1(fcL(l.dZ||{}));G11(this,l.cT,l.uaZ,l.aLv,l.jUd,Object.assign({},BGF,l.zyl||{}));this.addOnDisposeCallback(function(){return void PrC(e)})};
_.m(Y$,_.y6);Y$.prototype.snapshot=function(l){var e=this;return _.V(function(O){switch(O.nextAddress){case 1:if(e.isDisposed())throw Error("Ia");if(e.tG||e.mPu){O.jumpTo(2);break}return _.C(O,e.suC.promise,2);case 2:if(!e.tG){O.jumpTo(4);break}return _.C(O,e.tG.snapshot(l),5);case 5:return O.return(O.yieldResult);case 4:throw e.mPu;}})};
var Umq=function(l){var e;return _.V(function(O){if(l.isDisposed())throw Error("Ia");(e=l.rz)!=null&&(e.endTimeMs=0,e.resolver(1));return _.C(O,l.mDB.promise,0)})},PrC=function(l){l.mPu=Error("Ka");
l.suC.resolve();GjW(l.oW6.promise);l.oW6.reject(Error("Ka"));l.logger.dispose();Promise.all(l.b2H).then(function(){var O;return _.V(function(E){(O=l.tG)==null||O.dispose();l.tG=void 0;_.Cl(E)})});
l.b2H=[];var e;(e=l.rz)!=null&&(e.endTimeMs=0,e.resolver(1));GjW(l.mDB.promise);l.mDB.reject(Error("Ka"))};
Y$.prototype.nZB=function(l){var e,O;(e=this.tG)==null||(O=e.nZB)==null||O.call(e,l)};
Y$.prototype.caq=function(l,e){var O,E,J;return(J=(O=this.tG)==null?void 0:(E=O.caq)==null?void 0:E.call(O,l,e))!=null?J:Promise.resolve()};
var YN6=function(l,e){var O=l.wjp;l.wjp=function(){O();e()}},h5H=function(l,e){l.isDisposed()||(l.tG=e,l.logger.update(e.vL6()),l.suC.resolve(),l.oW6.resolve(void 0),l.wjp())};
Y$.prototype.handleError=function(l){if(!this.isDisposed()){this.mPu=l;this.suC.resolve();var e,O;(O=(e=this.options).noV)==null||O.call(e,l)}};
var L7C=function(l,e){e&&(Promise.all(l.b2H).then(function(){return void e.dispose()}),l.b2H=[])},hI=function(l,e){l.aCr=e;
var O,E;(E=(O=l.options).thS)==null||E.call(O,e)},tvC=function(l){l.isDisposed()||(l.mDB.resolve(),l.mDB=new _.d8)},G11=function(l,e,O,E,J,z){E=E===void 0?czq():E;
J=J===void 0?Promise.resolve(void 0):J;var M,Z,u,d,g,w,n,k,y,c,f,P;_.V(function(h){switch(h.nextAddress){case 1:return _.C(h,0,3);case 3:Z=null;if(!M){h.jumpTo(6);break}hI(l,7);_.b1(h,7);return _.C(h,aQ(M.snapshot({}),z.oTk,function(){return Promise.resolve("E:CTO")}),9);
case 9:Z=h.yieldResult;_.Q2(h,6);break;case 7:_.u1(h),Z="E:UCE";case 6:u=void 0,d=M?z.oX1:z.yDJ,g=new V6(d,z.sJ1,z.e3V,z.h6B),w=1;case 10:if(!(w<=z.maxAttempts)){h.jumpTo(12);break}if(w===1){h.jumpTo(13);break}hI(l,0);l.rz=new qN6(g.getValue(),z.ruA,z.zGc);return _.C(h,l.rz.promise,14);case 14:n=h.yieldResult,l.rz=void 0,n===1?(w=1,g.reset()):OJq(g);case 13:_.b1(h,15);k=void 0;if(O){k=O;h.jumpTo(17);break}hI(l,5);y=E.asB;return _.C(h,aQ(vei(e,y,Z),z.s4J,function(){return Promise.reject(Error("La"))}),
18);
case 18:k=h.yieldResult;case 17:return hI(l,3),_.C(h,aQ(f9C(E,k),z.r2B,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return hI(l,8),_.C(h,J,20);case 20:return c=new _.Uk({challenge:k,dZ:l.options.dZ,kqk:l.options.kqk}),_.C(h,aQ(c.qIW,z.hwH,function(){return Promise.reject(Error("Na"))}),21);
case 21:u=c;h.jumpTo(12);break;case 15:f=_.u1(h),l.handleError(f),tvC(l);case 11:w++;h.jumpTo(10);break;case 12:if(l.isDisposed()){h.jumpTo(5);break}u&&(O=void 0,L7C(l,M),M=u,h5H(l,u),tvC(l));hI(l,2);l.rz=new qN6(z.g6Z,z.ruA,z.zGc);return _.C(h,l.rz.promise,22);case 22:l.rz=void 0;if(l.isDisposed()){h.jumpTo(5);break}h.jumpTo(3);break;case 5:(P=M)==null||P.dispose(),_.Cl(h)}})};
Y$.prototype.vL6=function(){return this.logger.share()};
var BGF={g6Z:432E5,ruA:3E5,zGc:10,oTk:1E4,s4J:3E4,r2B:3E4,hwH:6E4,yDJ:1E3,oX1:6E4,sJ1:6E5,e3V:.25,h6B:2,maxAttempts:10},qN6=function(l,e,O){var E=this;this.endTimeMs=Date.now()+l;this.promise=new Promise(function(z){E.resolver=z});
var J=function(){var z=E.endTimeMs-Date.now();z<=O?E.resolver(0):setTimeout(J,Math.min(z,e))};
J()};var NGx,YBA=(NGx=Math.imul)!=null?NGx:function(l,e){return l*e|0},kz=[196,
200,224,18],Lx=function(l,e,O){O=O===void 0?[]:O;this.maxItems=l;this.aK=e===void 0?0:e;this.bj=O},rzx=function(l){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!e)return new Lx(l);var O=e.split(",");if(O.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Lx(l);e=O.slice(1);e.length===1&&e[0]===""&&(e=[]);O=Number(O[0]);return isNaN(O)||O<0||O>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Lx(l)):new Lx(l,O,e)};
Lx.prototype.serialize=function(){return String(this.aK)+","+this.bj.join()};
Lx.prototype.insert=function(l,e){var O=void 0;if(this.bj[this.aK]!==l){var E=this.bj.indexOf(l);E!==-1?(this.bj.splice(E,1),E<this.aK&&this.aK--,this.bj.splice(this.aK,0,l)):(O=this.bj[this.aK],this.bj[this.aK]=l)}this.aK=(this.aK+1)%this.maxItems;l=PJt("iU5q-!O9@$",this.serialize());O&&l&&e(O);return l};
var Dmq=function(l,e){this.logger=e;try{var O=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(E){O=!1}O&&(this.index=rzx(l))},SNq=function(l,e,O,E,J){var z=l.index?Po(l.logger,function(){return qBq(l.index,LFA(e),O,E,J)},"W"):"u";
l.logger.gXE(z)},QHk=function(l,e,O){var E=_.b(l.index?Po(l.logger,function(){return vo8(LFA(e),O)},"R"):["u"]),J=E.next().value;
E=E.next().value;l.logger.iW6(J);return E};var xmq={toString:function(l){var e=[],O=0;l-=-2147483648;e[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(l%52);for(l=Math.floor(l/52);l>0;)e[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(l%62),l=Math.floor(l/62);return e.join("")}};var OlF=function(l){l=lU1(l);for(var e=2654435769,O=2654435769,E=314159265,J=l.length,z=J,M=0,Z=function(){e-=O;e-=E;e^=E>>>13;O-=E;O-=e;O^=e<<8;E-=e;E-=O;E^=O>>>13;e-=O;e-=E;e^=E>>>12;O-=E;O-=e;O^=e<<16;E-=e;E-=O;E^=O>>>5;e-=O;e-=E;e^=E>>>3;O-=E;O-=e;O^=e<<10;E-=e;E-=O;E^=O>>>15};z>=12;z-=12,M+=12)e+=euq(l,M),O+=euq(l,M+4),E+=euq(l,M+8),Z();
E+=J;switch(z){case 11:E+=l[M+10]<<24;case 10:E+=l[M+9]<<16;case 9:E+=l[M+8]<<8;case 8:O+=l[M+7]<<24;case 7:O+=l[M+6]<<16;case 6:O+=l[M+5]<<8;case 5:O+=l[M+4];case 4:e+=l[M+3]<<24;case 3:e+=l[M+2]<<16;case 2:e+=l[M+1]<<8;case 1:e+=l[M]}Z();return xmq.toString(E)},lU1=function(l){for(var e=[],O=0;O<l.length;O++)e.push(l.charCodeAt(O));
return e},euq=function(l,e){return l[e]+(l[e+1]<<8)+(l[e+2]<<16)+(l[e+3]<<24)};var EAq,tI=function(l){_.y6.call(this);this.logger=l;this.nw8=new _.d8;this[EAq]=this.dispose};
_.m(tI,_.y6);var JD0=function(l,e){var O=setTimeout(function(){l.nw8.resolve()},e);
l.addOnDisposeCallback(function(){return void clearTimeout(O)})};
tI.prototype.uq=function(l,e){var O=this.kA(l);e==null||e(O);return Po(this.logger,function(){return _.x4(O,2)},this.qAq)};
var XI6=function(l,e,O,E){return Po(l.logger,function(){return O?l.uq(e,E):l.kA(e,E)},l.hQ)};
EAq=Symbol.dispose;var zuq=function(l,e,O,E){tI.call(this,l);this.qQk=e;this.zZk=O;this.hQ="m";this.qAq="x";this.c4Z=0;JD0(this,E)};
_.m(zuq,tI);zuq.prototype.kA=function(l,e){var O=this;this.logger.q7(this.hQ);++this.c4Z>=this.zZk&&this.nw8.resolve();var E=l();l=Po(this.logger,function(){return O.qQk(E)},"C");
if(l===void 0)throw new Vw(17,"YNJ:Undefined");if(!(l instanceof Uint8Array))throw new Vw(18,"ODM:Invalid");e==null||e(l);return l};
var bl6=function(l,e,O){tI.call(this,l);this.h3k=e;this.hQ="f";this.qAq="z";JD0(this,O)};
_.m(bl6,tI);bl6.prototype.kA=function(){return this.h3k};
var MSF=function(l,e,O){tI.call(this,l);this.ox1=e;this.hQ="w";this.qAq="z";JD0(this,O)};
_.m(MSF,tI);MSF.prototype.kA=function(){var l=this;return Po(this.logger,function(){return _.VH(l.ox1)},"d")};
MSF.prototype.uq=function(){return this.ox1};
var VSk=function(l,e){tI.call(this,l);this.error=e;this.hQ="e";this.qAq="y"};
_.m(VSk,tI);var ZlC=function(l,e){var O=(e(l.error.message)+":"+e(l.error.stack)).substring(0,2048);e=O.length+1;O=NXu(O);var E=new Uint8Array(4+O.length);E.set([42,e&127|128,e>>7,l.error.code]);E.set(O,4);return E};
VSk.prototype.kA=function(){if(this.cxo)return this.cxo;this.cxo=ZlC(this,function(l){return"_"+OlF(l)});
return ZlC(this,function(l){return l})};
var uQk=function(l,e,O){tI.call(this,l);this.eMV=e;this.clientState=O;this.hQ="S";this.qAq="q"};
_.m(uQk,tI);uQk.prototype.kA=function(){var l=Math.floor(Date.now()/1E3),e=[Math.random()*255,Math.random()*255],O=e.concat([this.eMV&255,this.clientState],[l>>24&255,l>>16&255,l>>8&255,l&255]);l=new Uint8Array(2+O.length);l[0]=34;l[1]=O.length;l.set(O,2);O=l.subarray(2);for(var E=e=e.length;E<O.length;++E)O[E]^=O[E%e];this.logger.ktE(this.clientState);return l};var C16={rbA:3E4,q5g:2E4},q8=function(l){_.y6.call(this);var e=this;this.nul=new _.d8;this.deY=0;this.zp=void 0;this.state=2;this.pJ=l.pJ;this.cT=l.cT;this.zyl=Object.assign({},C16,l.zyl||{});this.logger=l.pJ.vL6();var O;this.onError=(O=l.onError)!=null?O:function(){};
this.l2r=l.l2r||!1;if(oAR(l)){var E=this.pJ;this.vl8=function(){return Umq(E).catch(function(M){M=e.reportError(new Vw(e.tF?20:32,"TRG:Disposed",M));e.zp=M;var Z;(Z=e.tF)==null||Z.dispose();e.tF=void 0;e.nul.reject(M)})};
YN6(E,function(){return void $RC(e)});
E.aCr===2&&$RC(this)}else this.vl8=l.cAd,$RC(this);var J=this.logger.share();J.q7("o");var z=new Az1(J,"o");this.nul.promise.then(function(){z.done();J.uO();J.dispose()},function(){return void J.dispose()});
this.addOnDisposeCallback(function(){e.tF?(e.tF.dispose(),e.tF=void 0):e.zp?e.logger.uO():(e.zp=e.reportError(new Vw(32,"TNP:Disposed")),e.logger.uO(),e.nul.reject(e.zp))});
_.oQ(this,this.logger)};
_.m(q8,_.y6);q8.prototype.tll=function(){return this.nul.promise};
var WAS=function(l,e){if(!(e instanceof Vw))if(e instanceof _.Ra){var O=Error(e.toString());O.stack=e.stack;e=new Vw(11,"EBH:Error",O)}else e=new Vw(12,"BSO:Unknown",e);return l.reportError(e)},$RC=function(l){var e,O,E,J,z,M,Z,u,d,g,w,n,k,y,c;
return _.V(function(f){switch(f.nextAddress){case 1:e=void 0;l.deY++;O=new _.d8;l.pJ instanceof Y$&&l.pJ.b2H.push(O.promise);if(!l.l2r){f.jumpTo(2);break}E=new _.d8;setTimeout(function(){return void E.resolve()});
return _.C(f,E.promise,2);case 2:return J=l.logger.share(),_.b1(f,4,5),l.state=5,z={},M=[],_.C(f,aQ(l.pJ.snapshot({fZ:z,hiV:M}),l.zyl.q5g,function(){return Promise.reject(new Vw(15,"MDA:Timeout"))}),7);
case 7:Z=f.yieldResult;if(l.isDisposed())throw new Vw(l.tF?20:32,"MDA:Disposed");u=M[0];l.state=6;return _.C(f,aQ(dRH(l.cT,Z),l.zyl.rbA,function(){return Promise.reject(new Vw(10,"BWB:Timeout"))}),8);
case 8:d=f.yieldResult;if(l.isDisposed())throw new Vw(l.tF?20:32,"BWB:Disposed");l.state=7;e=Po(J,function(){var h=gAi(l,d,O,u);h.nw8.promise.then(function(){return void l.vl8()});
return h},"i");
case 5:_.MR(f);J.dispose();_.ZU(f,6);break;case 4:g=_.u1(f);(w=e)==null||w.dispose();if(!l.zp){n=WAS(l,g);O.resolve();var P;if(P=l.pJ instanceof Y$&&l.deY<2)a:if(g instanceof Vw)P=g.code!==32&&g.code!==20&&g.code!==10;else{if(g instanceof _.Ra)switch(g.code){case 2:case 13:case 14:case 4:break;default:P=!1;break a}P=!0}if(P)return k=(1+Math.random()*.25)*(l.tF?6E4:1E3),y=setTimeout(function(){return void l.vl8()},k),l.addOnDisposeCallback(function(){return void clearTimeout(y)}),f.return();
l.zp=n}J.logError(l.tF?13:14);l.nul.reject(l.zp);return f.return();case 6:l.state=8,l.deY=0,(c=l.tF)==null||c.dispose(),l.tF=e,l.nul.resolve(),_.Cl(f)}})},gAi=function(l,e,O,E){var J=CjV(e,2)*1E3;
if(J<=0)throw new Vw(31,"TTM:Invalid");if(_.BW(e,4))return new MSF(l.logger,_.BW(e,4),J);if(!CjV(e,3))return new bl6(l.logger,rN2(_.jR(e,1)),J);if(!E)throw new Vw(4,"PMD:Undefined");E=E(rN2(_.jR(e,1)));if(!(E instanceof Function))throw new Vw(16,"APF:Failed");l.jLk=Math.floor((Date.now()+J)/1E3);l=new zuq(l.logger,E,CjV(e,3),J);l.addOnDisposeCallback(function(){return void O.resolve()});
return l};
q8.prototype.kA=function(l){return ilC(this,Object.assign({},l),!1)};
q8.prototype.uq=function(l){return ilC(this,Object.assign({},l),!0)};
q8.prototype.nIv=function(l){if(l>150)return!1;try{return this.cache=new Dmq(l,this.logger),!0}catch(e){return this.reportError(new Vw(22,"GBJ:init",e)),!1}};
q8.prototype.reportError=function(l){this.logger.logError(l.code);this.onError(l);return l};
var wIS=function(l,e){e=e instanceof Vw?e:new Vw(5,"TVD:error",e);return l.reportError(e)},ilC=function(l,e,O){try{if(l.isDisposed())throw new Vw(21,"BNT:disposed");
if(!l.tF&&l.zp)throw l.zp;var E,J;return(J=(E=ADq(l,e,O))!=null?E:nAq(l,e,O))!=null?J:aUF(l,e,O)}catch(z){if(!e.yI8)throw wIS(l,z);return kqF(l,O,z)}},ADq=function(l,e,O){var E;
return(E=l.tF)==null?void 0:XI6(E,function(){return IUx(l,e)},O,function(J){var z;
if(l.tF instanceof zuq&&((z=e.gB)==null?0:z.dfO))try{var M;(M=l.cache)==null||SNq(M,IUx(l,e),J,e.gB.veY,l.jLk-120)}catch(Z){l.reportError(new Vw(24,"ELX:write",Z))}})},nAq=function(l,e,O){var E;
if((E=e.gB)!=null&&E.ia8)try{var J,z=(J=l.cache)==null?void 0:QHk(J,IUx(l,e),e.gB.veY);return z?O?Po(l.logger,function(){return _.x4(z,2)},"a"):z:void 0}catch(M){l.reportError(new Vw(23,"RXO:read",M))}},aUF=function(l,e,O){var E={stack:[],
error:void 0,hasError:!1};try{if(!e.oHB)throw new Vw(29,"SDF:notready");return XI6(ltg(E,new uQk(l.logger,0,l.state)),function(){return IUx(l,e)},O)}catch(J){E.error=J,E.hasError=!0}finally{e3T(E)}},kqF=function(l,e,O){var E={stack:[],
error:void 0,hasError:!1};try{var J=wIS(l,O);return XI6(ltg(E,new VSk(l.logger,J)),function(){return[]},e)}catch(z){E.error=z,E.hasError=!0}finally{e3T(E)}},IUx=function(l,e){return e.qq5?e.qq5:e.fZ?Po(l.logger,function(){return e.qq5=NXu(e.fZ)},"c"):[]},oAR=function(l){return hC(function(e){if(!uJ(e))return!1;
for(var O=_.b(Object.entries(l)),E=O.next();!E.done;E=O.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;if(!(E in e)){if(J.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!J(e[E]))return!1}return!0})}({pJ:function(l){return hC(function(e){return e instanceof l})}(Y$)},"");var mR1=function(){var l=_.C0();this.JSC$7951_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Jl("cookie_enabled"),Jl("cookie_3p_enabled"),_.zj("browser"))};
mR1.prototype.increment=function(l,e,O){this.JSC$7951_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",l,e,O)};
var C8g=function(){var l=_.C0();this.JSC$7975_streamzService=l;l.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",X8("tick"),Jl("from_st_cookie"))};
C8g.prototype.increment=function(l,e){this.JSC$7975_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",l,e)};
var yDR=function(){var l=_.C0();this.JSC$7981_streamzService=l;l.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.zj("status"))};
yDR.prototype.increment=function(l){this.JSC$7981_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",l)};
var pIq=function(){var l=_.C0();this.JSC$7984_streamzService=l;l.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.zj("stage"),Jl("is_using_ytd_player"),Jl("has_expandable_tiles"))};
pIq.prototype.increment=function(l,e,O){this.JSC$7984_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",l,e,O)};
var KAi=function(){var l=_.C0();this.JSC$7987_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/response_signature",_.zj("check_status"))};
KAi.prototype.increment=function(l){this.JSC$7987_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/response_signature",l)};
var jz6=function(){var l=_.C0();this.JSC$7990_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.zj("sig"),X8("de"))};
jz6.prototype.increment=function(l,e){this.JSC$7990_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/e_sig_log",l,e)};
var Hlq=function(){var l=_.C0();this.JSC$7993_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.zj("sig"),X8("de"))};
Hlq.prototype.increment=function(l,e){this.JSC$7993_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/e_sig_en",l,e)};
_.cDx=function(){var l=_.C0();this.JSC$7996_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.zj("action"))};
_.cDx.prototype.increment=function(l){this.JSC$7996_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/enforcement_intent",l)};var vo=window;var FAx=(new Date).getTime();var fUS=function(l){this.servicePromise_=l;l.then((0,_.pb)(function(){},this),function(){},this)},RuR=function(l,e,O){l.servicePromise_.then(function(E){var J=E[e];
if(!J)throw Error("Oa`"+e);return J.apply(E,O)})},GqF=function(l,e,O){for(var E=Array(arguments.length-2),J=2;J<arguments.length;J++)E[J-2]=arguments[J];
J=TpS(l,e).then(function(z){return z.apply(null,E)},function(z){z=Error("Pa`"+e+"`"+l,{cause:z});
delete sz1[e];return _.Tr(z)});
return new fUS(J)},sz1={},TpS=function(l,e){var O=sz1[e];
if(O)return O;O=(O=_.vK(e))?_.Ag(O):(new _.kE(function(E,J){var z=(new ja(document)).createElement("SCRIPT");z.async=!0;_.UN(z,_.VS(sdC(l)));z.onload=z.onreadystatechange=function(){z.readyState&&z.readyState!="loaded"&&z.readyState!="complete"||E()};
z.onerror=function(M){J(Error("Qa`"+e+"`"+l,{cause:M}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(z)})).then(function(){var E=_.vK(e);
if(!E)throw Error("Ra`"+e+"`"+l);return E});
return sz1[e]=O};var BpR={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},UR6=function(){var l=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=rFL(function(){return _.V(function(e){if(e.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?e.return(Promise.resolve()):_.C(e,P1q(l),2);l.rsaForList.length>
0&&document.addEventListener("click",l.requestAccessForHelpPanel);_.Cl(e)})});
this.requestAccessForHelpPanel=function(){if(!(l.rsaForPromises.length>0)){for(var e=_.b(l.rsaForList),O=e.next();!O.done;O=e.next()){O=O.value;try{l.rsaForPromises.push(document.requestStorageAccessFor(O))}catch(E){}}Promise.all(l.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){l.reset()})}}};
UR6.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var P1q=function(l){var e,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:e=_.b(Object.values(BpR)),O=e.next();case 2:if(O.done){z.jumpTo(0);break}E=O.value;_.b1(z,5);return _.C(z,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:E}),7);case 7:J=z.yieldResult;J.state!=="granted"&&l.rsaForList.push(E);_.Q2(z,3);break;case 5:_.u1(z);z.jumpTo(0);break;case 3:O=e.next(),z.jumpTo(2)}})};(new UR6).initialize();var Y$q=function(l){this.JSC$8010_loader_=l};
Y$q.prototype.startHelp=function(l){RuR(this.JSC$8010_loader_,"startHelp",arguments)};
Y$q.prototype.JSC$8012_loadChatSupport=function(l){RuR(this.JSC$8010_loader_,"loadChatSupport",arguments)};
var LA6=function(l,e){e=e||{};l=GqF(hux,"help.service.Lazy.create",l,{apiKey:e.apiKey||e.apiKey,asxUiUri:e.asxUiUri||e.asxUiUri,environment:e.environment||e.environment,flow:e.flow||e.flow,frdProductData:e.frdProductData||e.frdProductData,frdProductDataSerializedJspb:e.frdProductDataSerializedJspb||e.frdProductDataSerializedJspb,helpCenterPath:e.helpCenterPath||e.helpCenterPath,locale:e.locale||e.locale||"en-US".replace(/-/g,"_"),nonce:e.nonce||e.nonce,productData:e.productData||e.productData,receiverUri:e.receiverUri||
e.receiverUri,renderApiUri:e.renderApiUri||e.renderApiUri,theme:e.theme||e.theme,window:e.window||e.window});return new Y$q(l)},hux=new tG(i4M,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var tSq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(tSq,_.Gu);var q$q=_.ev(tSq);_.vAH=new function(l,e,O,E){this.configType=l;this.flagName=O;this.defaultValue=E;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 rD6=function(){this.retriever=_.V2().resolve(NpH)};m3(Node);m3(Element);var DR6=m3(HTMLElement);m3(SVGElement);var S$k,QzS,Dg,xR1;S$k=function(l){return typeof l.className=="string"?l.className:l.getAttribute&&l.getAttribute("class")||""};
QzS=function(l){return l.classList?l.classList:S$k(l).match(/\S+/g)||[]};
_.N8=function(l,e){typeof l.className=="string"?l.className=e:l.setAttribute&&l.setAttribute("class",e)};
_.rE=function(l,e){return l.classList?l.classList.contains(e):_.hq(QzS(l),e)};
_.XY=function(l,e){if(l.classList)l.classList.add(e);else if(!_.rE(l,e)){var O=S$k(l);_.N8(l,O+(O.length>0?" "+e:e))}};
Dg=function(l,e){if(l.classList)Array.prototype.forEach.call(e,function(J){_.XY(l,J)});
else{var O={};Array.prototype.forEach.call(QzS(l),function(J){O[J]=!0});
Array.prototype.forEach.call(e,function(J){O[J]=!0});
e="";for(var E in O)e+=e.length>0?" "+E:E;_.N8(l,e)}};
_.EL=function(l,e){l.classList?l.classList.remove(e):_.rE(l,e)&&_.N8(l,Array.prototype.filter.call(QzS(l),function(O){return O!=e}).join(" "))};
xR1=function(l,e){l.classList?Array.prototype.forEach.call(e,function(O){_.EL(l,O)}):_.N8(l,Array.prototype.filter.call(QzS(l),function(O){return!_.hq(e,O)}).join(" "))};var l71=function(l){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=l.document},ESH=function(l,e){ewR(l);
var O=document.createElement("div"),E;(E=e.parentNode)==null||E.insertBefore(O,e);O.tabIndex=0;O.id="fc-focus-trap-pre-div";O=document.createElement("div");var J;(J=e.parentNode)==null||J.insertBefore(O,e.nextSibling);O.tabIndex=0;O.id="fc-focus-trap-post-div";var z=OFq(l,e),M=OFq(l,e,!0);z&&M&&(l.focusChangeHandler=function(){var Z=l.document.activeElement;if(Z)if(_.qh(e,Z))l.previouslyFocusedElement=Z;else if(Z===l.document.activeElement)switch(l.previouslyFocusedElement){case z:M.focus();l.previouslyFocusedElement=
M;break;default:z.focus(),l.previouslyFocusedElement=z}},l.document.addEventListener("focus",l.focusChangeHandler,!0),l.document.addEventListener("focusin",l.focusChangeHandler))},ewR=function(l){l.focusChangeHandler&&(document.removeEventListener("focus",l.focusChangeHandler,!0),document.removeEventListener("focusin",l.focusChangeHandler),l.focusChangeHandler=null);
var e;(e=document.getElementById("fc-focus-trap-pre-div"))==null||e.remove();var O;(O=document.getElementById("fc-focus-trap-post-div"))==null||O.remove()},Jn1=function(l,e,O,E,J){O=O===void 0?!0:O;
var z;J=(z=J===void 0?null:J)!=null?z:OFq(l,e,E===void 0?!1:E);J!==null&&(J.focus(),O&&ESH(l,e))};
l71.prototype.disableButton=function(l,e){e=e===void 0?null:e;l.disabled=!0;e&&_.XY(l,e)};
var OFq=function(l,e,O){O=O===void 0?!1:O;if(s4L(e)&&!O)return e;var E=O?[].slice.call(e.children,0).reverse():e.children;E=_.b(E);for(var J=E.next();!J.done;J=E.next())if(J=J.value,DR6(J)&&(J=OFq(l,J,O)))return J;return s4L(e)&&O?e:null};var XR1=function(l){this.originalBodyOverflow="";this.JSC$8036_domHelper=WR(l)};_.o_(_.Kb,_.y6);_.X=_.Kb.prototype;_.X.JSC$8039_id_=0;_.X.disposeInternal=function(){_.Kb.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8037_listener_;delete this.handler_};
_.X.start=function(l){this.stop();this.JSC$8039_id_=fx(this.callback_,l!==void 0?l:this.JSC$8037_interval_)};
_.X.stop=function(){this.isActive()&&_.Op.clearTimeout(this.JSC$8039_id_);this.JSC$8039_id_=0};
_.X.fire=function(){this.stop();this.JSC$8039_doAction_()};
_.X.isActive=function(){return this.JSC$8039_id_!=0};
_.X.JSC$8039_doAction_=function(){this.JSC$8039_id_=0;this.JSC$8037_listener_&&this.JSC$8037_listener_.call(this.handler_)};_.ue=function(l){_.y6.call(this);this.handler_=l;this.JSC$8040_keys_={}};
_.o_(_.ue,_.y6);var zwF=[];_.ue.prototype.listen=function(l,e,O,E){Array.isArray(e)||(e&&(zwF[0]=e.toString()),e=zwF);for(var J=0;J<e.length;J++){var z=_.f4(l,e[J],O||this.handleEvent,E||!1,this.handler_||this);if(!z)break;this.JSC$8040_keys_[z.key]=z}return this};
_.ue.prototype.listenOnce=function(l,e,O,E){return bFH(this,l,e,O,E)};
var bFH=function(l,e,O,E,J,z){if(Array.isArray(O))for(var M=0;M<O.length;M++)bFH(l,e,O[M],E,J,z);else{e=jb(e,O,E||l.handleEvent,J,z||l.handler_||l);if(!e)return l;l.JSC$8040_keys_[e.key]=e}return l};
_.ue.prototype.unlisten=function(l,e,O,E,J){if(Array.isArray(e))for(var z=0;z<e.length;z++)this.unlisten(l,e[z],O,E,J);else if(l=j5i(l,e,O||this.handleEvent,_.e0(E)?!!E.capture:!!E,J||this.handler_||this))Hf(l),delete this.JSC$8040_keys_[l.key];return this};
_.ue.prototype.removeAll=function(){_.mm.forEach(this.JSC$8040_keys_,function(l,e){this.JSC$8040_keys_.hasOwnProperty(e)&&Hf(l)},this);
this.JSC$8040_keys_={}};
_.ue.prototype.disposeInternal=function(){_.ue.superClass_.disposeInternal.call(this);this.removeAll()};
_.ue.prototype.handleEvent=function(){throw Error("Sa");};var S1=function(){_.y6.call(this);this.services_={}};
_.o_(S1,_.y6);_.X=S1.prototype;_.X.logger=null;_.X.connect=function(l){l&&l()};
_.X.isConnected=function(){return!0};
_.X.registerService=function(l,e,O){this.services_[l]={callback:e,objectPayload:!!O}};
_.X.getService=function(l,e){var O=this.services_[l];return O?O:this.defaultService_?{callback:_.pz(this.defaultService_,l),objectPayload:_.e0(e)}:null};
var MBx=function(l,e){if(e&&typeof l==="string")try{return JSON.parse(l)}catch(O){return null}else if(!e&&typeof l!=="string")return(0,_.Tv)(l);return l};
S1.prototype.disposeInternal=function(){S1.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 Qw=function(l,e){this.sequence_=[];this.onCancelFunction_=l;this.defaultScope_=e||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
Qw.prototype.cancel=function(l){if(this.fired_)this.result_ instanceof Qw&&this.result_.cancel();else{if(this.parent_){var e=this.parent_;delete this.parent_;l?e.cancel(l):(e.branches_--,e.branches_<=0&&e.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new x$(this))}};
Qw.prototype.continue_=function(l,e){this.blocked_=!1;VBH(this,l,e)};
var VBH=function(l,e,O){l.fired_=!0;l.result_=O;l.hadError_=!e;ZFR(l)},CXk=function(l){if(l.fired_){if(!l.silentlyCanceled_)throw new ueq(l);
l.silentlyCanceled_=!1}};
Qw.prototype.callback=function(l){CXk(this);VBH(this,!0,l)};
Qw.prototype.errback=function(l){CXk(this);VBH(this,!1,l)};
var oSk=function(l,e,O){lO(l,e,null,O)};
Qw.prototype.finally=function(l){var e=this;return new Promise(function(O,E){lO(e,function(J){l();O(J)},function(J){l();
E(J)})})};
var lO=function(l,e,O,E){var J=l.fired_;J||(e===O?e=O=j1(e):(e=j1(e),O=j1(O)));l.sequence_.push([e,O,E]);J&&ZFR(l)};
Qw.prototype.then=function(l,e,O){var E,J,z=new _.kE(function(M,Z){J=M;E=Z});
lO(this,J,function(M){M instanceof x$?z.cancel():E(M);return $4i},this);
return z.then(l,e,O)};
Gu6(Qw);var Wm1=function(l,e){e instanceof Qw?oSk(l,(0,_.pb)(e.branch,e)):oSk(l,function(){return e})};
Qw.prototype.branch=function(l){var e=new Qw;lO(this,e.callback,e.errback,e);l&&(e.parent_=this,this.branches_++);return e};
Qw.prototype.isError=function(l){return l instanceof Error};
var d4k=function(l){return eU(l.sequence_,function(e){return typeof e[1]==="function"})},$4i={},ZFR=function(l){if(l.unhandledErrorId_&&l.fired_&&d4k(l)){var e=l.unhandledErrorId_,O=gSx[e];
O&&(_.Op.clearTimeout(O.JSC$8057_id_),delete gSx[e]);l.unhandledErrorId_=0}l.parent_&&(l.parent_.branches_--,delete l.parent_);e=l.result_;for(var E=O=!1;l.sequence_.length&&!l.blocked_;){var J=l.sequence_.shift(),z=J[0],M=J[1];J=J[2];if(z=l.hadError_?M:z)try{var Z=z.call(J||l.defaultScope_,e);Z===$4i&&(Z=void 0);Z!==void 0&&(l.hadError_=l.hadError_&&(Z==e||l.isError(Z)),l.result_=e=Z);if(BcS(e)||typeof _.Op.Promise==="function"&&e instanceof _.Op.Promise)E=!0,l.blocked_=!0}catch(u){e=u,l.hadError_=
!0,d4k(l)||(O=!0)}}l.result_=e;E&&(Z=(0,_.pb)(l.continue_,l,!0),E=(0,_.pb)(l.continue_,l,!1),e instanceof Qw?(lO(e,Z,E),e.blocking_=!0):e.then(Z,E));O&&(e=new iF0(e),gSx[e.JSC$8057_id_]=e,l.unhandledErrorId_=e.JSC$8057_id_)},ueq=function(){_.l2.call(this)};
_.o_(ueq,_.l2);ueq.prototype.message="Deferred has already fired";ueq.prototype.name="AlreadyCalledError";var x$=function(){_.l2.call(this)};
_.o_(x$,_.l2);x$.prototype.message="Deferred was canceled";x$.prototype.name="CanceledError";var iF0=function(l){this.JSC$8057_id_=_.Op.setTimeout((0,_.pb)(this.throwError,this),0);this.JSC$8057_error_=l};
iF0.prototype.throwError=function(){delete gSx[this.JSC$8057_id_];throw this.JSC$8057_error_;};
var gSx={};var wRF={1:"NativeMessagingTransport"},AnH=["pu","lru","pru","lpu","ppu"],a7R=function(){for(var l=10,e=nS1,O=e.length,E="";l-- >0;)E+=e.charAt(Math.floor(Math.random()*O));return E},nS1="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var eV=function(l){_.y6.call(this);this.JSC$8060_domHelper_=l||WR()};
_.o_(eV,_.y6);eV.prototype.transportType=0;eV.prototype.getWindow=function(){return this.JSC$8060_domHelper_.getWindow()};
eV.prototype.getName=function(){return wRF[String(this.transportType)]||""};var O7=function(l,e,O,E,J){eV.call(this,O);this.JSC$8063_channel_=l;this.protocolVersion_=J||2;this.peerHostname_=e||"*";this.JSC$8063_eventHandler_=new _.ue(this);this.maybeAttemptToConnectTimer_=new _.Zp(100,this.getWindow());this.oneSidedHandshake_=!!E;this.setupAckReceived_=new Qw;this.setupAckSent_=new Qw;this.JSC$8063_connected_=new Qw;this.endpointId_=a7R();this.peerEndpointId_=null;this.oneSidedHandshake_?k56(this.JSC$8063_channel_)==1?Wm1(this.JSC$8063_connected_,this.setupAckReceived_):
Wm1(this.JSC$8063_connected_,this.setupAckSent_):(Wm1(this.JSC$8063_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Wm1(this.JSC$8063_connected_,this.setupAckSent_));oSk(this.JSC$8063_connected_,this.notifyConnected_,this);this.JSC$8063_connected_.callback(!0);this.JSC$8063_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.o_(O7,eV);O7.prototype.peerProtocolVersion_=null;O7.prototype.initialized_=!1;O7.prototype.transportType=1;var I7q={};O7.prototype.sendTimerId_=0;
var pRR=function(l){var e=l.event_.data;if(typeof e!=="string")return!1;var O=e.indexOf("|"),E=e.indexOf(":");if(O==-1||E==-1)return!1;var J=e.substring(0,O);O=e.substring(O+1,E);e=e.substring(E+1);if(E=E7[J])return E.xpcDeliver(O,e,l.event_.origin),!0;E=m46(e)[0];for(var z in E7){var M=E7[z];if(k56(M)==1&&!M.isConnected()&&O=="tp"&&(E=="SETUP"||E=="SETUP_NTPV2")&&yn1(M,l.event_.origin))return delete E7[M.name],M.name=J,E7[J]=M,M.xpcDeliver(O,e),!0}return!1},KmS=function(l){l.protocolVersion_!=2||
l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=2||l.send("tp","SETUP_NTPV2,"+l.endpointId_);
l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=1||l.send("tp","SETUP")},j7H=function(l,e){if(l.protocolVersion_!=2||l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=2||e!=2){if(l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=1||e!=1)return;
l.send("tp","SETUP_ACK")}else l.send("tp","SETUP_ACK_NTPV2");l.setupAckSent_.fired_||l.setupAckSent_.callback(!0)},HF6=function(l,e){e>l.peerProtocolVersion_&&(l.peerProtocolVersion_=e);
l.peerProtocolVersion_==1&&(l.setupAckSent_.fired_||l.oneSidedHandshake_||l.setupAckSent_.callback(!0),l.peerEndpointId_=null)};
_.X=O7.prototype;_.X.connect=function(){var l=this.getWindow(),e=_.Ox(l),O=I7q[e];typeof O!=="number"&&(O=0);O==0&&_.f4(l.postMessage?l:l.document,"message",pRR,!1,O7);I7q[e]=O+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.X.maybeAttemptToConnect_=function(){var l=k56(this.JSC$8063_channel_)==0;this.oneSidedHandshake_&&l||this.JSC$8063_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),KmS(this))};
_.X.send=function(l,e){var O=this.JSC$8063_channel_.peerWindowObject_;O&&(this.send=function(E,J){var z=this,M=this.JSC$8063_channel_.name;this.sendTimerId_=fx(function(){z.sendTimerId_=0;try{var Z=O.postMessage?O:O.document;Z.postMessage&&Z.postMessage(M+"|"+E+":"+J,z.peerHostname_)}catch(u){}},0)},this.send(l,e))};
_.X.notifyConnected_=function(){var l=this.JSC$8063_channel_,e=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;l.isConnected()||l.connectionDelay_&&l.connectionDelay_.isActive()||(l.state_=2,_.Q9(l.connectionDelay_),e!==void 0?(l.connectionDelay_=new _.Kb(l.connectCb_,e),l.connectionDelay_.start()):(l.connectionDelay_=null,l.connectCb_()))};
_.X.disposeInternal=function(){if(this.initialized_){var l=this.getWindow(),e=_.Ox(l),O=I7q[e];I7q[e]=O-1;O==1&&_.px(l.postMessage?l:l.document,"message",pRR,!1,O7)}this.sendTimerId_&&(_.Op.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Q9(this.JSC$8063_eventHandler_);delete this.JSC$8063_eventHandler_;_.Q9(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8063_connected_.cancel();delete this.JSC$8063_connected_;delete this.send;O7.superClass_.disposeInternal.call(this)};
var m46=function(l){l=l.split(",");l[1]=l[1]||null;return l};_.J6=function(l){if(l.getValues&&typeof l.getValues=="function")return l.getValues();if(typeof Map!=="undefined"&&l instanceof Map||typeof Set!=="undefined"&&l instanceof Set)return Array.from(l.values());if(typeof l==="string")return l.split("");if(_.SM(l)){for(var e=[],O=l.length,E=0;E<O;E++)e.push(l[E]);return e}return _.mm.getValues(l)};
_.cnq=function(l){if(l.getKeys&&typeof l.getKeys=="function")return l.getKeys();if(!l.getValues||typeof l.getValues!="function"){if(typeof Map!=="undefined"&&l instanceof Map)return Array.from(l.keys());if(!(typeof Set!=="undefined"&&l instanceof Set)){if(_.SM(l)||typeof l==="string"){var e=[];l=l.length;for(var O=0;O<l;O++)e.push(O);return e}return _.mm.getKeys(l)}}};
_.Fm1=function(l,e,O){if(l.forEach&&typeof l.forEach=="function")l.forEach(e,O);else if(_.SM(l)||typeof l==="string")Array.prototype.forEach.call(l,e,O);else for(var E=_.cnq(l),J=_.J6(l),z=J.length,M=0;M<z;M++)e.call(O,J[M],E&&E[M],l)};var de2,uO,os,PXx,f7q,Taq,Rwi,Bai,s71;
_.Jg=function(l,e){this.JSC$8068_domain_=this.userInfo_=this.scheme_="";this.JSC$8068_port_=null;this.fragment_=this.JSC$8068_path_="";this.JSC$8068_ignoreCase_=!1;var O;l instanceof _.Jg?(this.JSC$8068_ignoreCase_=e!==void 0?e:l.JSC$8068_ignoreCase_,_.XB(this,l.scheme_),this.userInfo_=l.userInfo_,_.zG(this,l.JSC$8068_domain_),_.bO(this,l.JSC$8068_port_),_.MD(this,l.getPath()),_.Vi(this,l.JSC$8068_queryData_.clone()),_.Zq(this,l.fragment_)):l&&(O=_.Os(String(l)))?(this.JSC$8068_ignoreCase_=!!e,_.XB(this,
O[1]||"",!0),this.userInfo_=uO(O[2]||""),_.zG(this,O[3]||"",!0),_.bO(this,O[4]),_.MD(this,O[5]||"",!0),_.Vi(this,O[6]||"",!0),_.Zq(this,O[7]||"",!0)):(this.JSC$8068_ignoreCase_=!!e,this.JSC$8068_queryData_=new _.Cn(null,this.JSC$8068_ignoreCase_))};
_.Jg.prototype.toString=function(){var l=[],e=this.scheme_;e&&l.push(os(e,f7q,!0),":");var O=this.JSC$8068_domain_;if(O||e=="file")l.push("//"),(e=this.userInfo_)&&l.push(os(e,f7q,!0),"@"),l.push(_.r5(O).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O=this.JSC$8068_port_,O!=null&&l.push(":",String(O));if(O=this.getPath())this.JSC$8068_domain_&&O.charAt(0)!="/"&&l.push("/"),l.push(os(O,O.charAt(0)=="/"?Rwi:Taq,!0));(O=this.JSC$8068_queryData_.toString())&&l.push("?",O);(O=this.fragment_)&&l.push("#",os(O,
s71));return l.join("")};
_.Jg.prototype.resolve=function(l){var e=this.clone(),O=!!l.scheme_;O?_.XB(e,l.scheme_):O=!!l.userInfo_;O?e.userInfo_=l.userInfo_:O=!!l.JSC$8068_domain_;O?_.zG(e,l.JSC$8068_domain_):O=l.JSC$8068_port_!=null;var E=l.getPath();if(O)_.bO(e,l.JSC$8068_port_);else if(O=!!l.JSC$8068_path_){if(E.charAt(0)!="/")if(this.JSC$8068_domain_&&!this.JSC$8068_path_)E="/"+E;else{var J=e.getPath().lastIndexOf("/");J!=-1&&(E=e.getPath().slice(0,J+1)+E)}J=E;if(J==".."||J==".")E="";else if(_.ZW(J,"./")||_.ZW(J,"/.")){E=
_.Jq(J,"/");J=J.split("/");for(var z=[],M=0;M<J.length;){var Z=J[M++];Z=="."?E&&M==J.length&&z.push(""):Z==".."?((z.length>1||z.length==1&&z[0]!="")&&z.pop(),E&&M==J.length&&z.push("")):(z.push(Z),E=!0)}E=z.join("/")}else E=J}O?_.MD(e,E):O=l.JSC$8068_queryData_.toString()!=="";O?_.Vi(e,l.JSC$8068_queryData_.clone()):O=!!l.fragment_;O&&_.Zq(e,l.fragment_);return e};
_.Jg.prototype.clone=function(){return new _.Jg(this)};
_.XB=function(l,e,O){l.scheme_=O?uO(e,!0):e;l.scheme_&&(l.scheme_=l.scheme_.replace(/:$/,""));return l};
_.zG=function(l,e,O){l.JSC$8068_domain_=O?uO(e,!0):e;return l};
_.bO=function(l,e){if(e){e=Number(e);if(isNaN(e)||e<0)throw Error("Ta`"+e);l.JSC$8068_port_=e}else l.JSC$8068_port_=null;return l};
_.Jg.prototype.getPath=function(){return this.JSC$8068_path_};
_.MD=function(l,e,O){l.JSC$8068_path_=O?uO(e,!0):e;return l};
_.Vi=function(l,e,O){e instanceof _.Cn?(l.JSC$8068_queryData_=e,G5k(l.JSC$8068_queryData_,l.JSC$8068_ignoreCase_)):(O||(e=os(e,Bai)),l.JSC$8068_queryData_=new _.Cn(e,l.JSC$8068_ignoreCase_));return l};
_.S$=function(l,e,O){l.JSC$8068_queryData_.set(e,O);return l};
_.DF=function(l,e){return l.JSC$8068_queryData_.get(e)};
_.Zq=function(l,e,O){l.fragment_=O?uO(e):e;return l};
_.$N=function(l){_.S$(l,"zx",Nh());return l};
_.rk=function(l,e){return l instanceof _.Jg?l.clone():new _.Jg(l,e)};
de2=function(l,e){l instanceof _.Jg||(l=_.rk(l));e instanceof _.Jg||(e=_.rk(e));return l.resolve(e)};
uO=function(l,e){return l?e?decodeURI(l.replace(/%25/g,"%2525")):decodeURIComponent(l):""};
os=function(l,e,O){return typeof l==="string"?(l=encodeURI(l).replace(e,PXx),O&&(l=l.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l):null};
PXx=function(l){l=l.charCodeAt(0);return"%"+(l>>4&15).toString(16)+(l&15).toString(16)};
f7q=/[#\/\?@]/g;Taq=/[#\?:]/g;Rwi=/[#\?]/g;Bai=/[#\?@]/g;s71=/#/g;_.Cn=function(l,e){this.count_=this.keyMap_=null;this.encodedQuery_=l||null;this.JSC$8069_ignoreCase_=!!e};
_.We=function(l){l.keyMap_||(l.keyMap_=new Map,l.count_=0,l.encodedQuery_&&fSS(l.encodedQuery_,function(e,O){l.add(bt(e),O)}))};
_.X=_.Cn.prototype;_.X.getCount=function(){_.We(this);return this.count_};
_.X.add=function(l,e){_.We(this);this.encodedQuery_=null;l=dU(this,l);var O=this.keyMap_.get(l);O||this.keyMap_.set(l,O=[]);O.push(e);this.count_+=1;return this};
_.X.remove=function(l){_.We(this);l=dU(this,l);return this.keyMap_.has(l)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(l).length,this.keyMap_.delete(l)):!1};
_.X.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.X.isEmpty=function(){_.We(this);return this.count_==0};
_.X.containsKey=function(l){_.We(this);l=dU(this,l);return this.keyMap_.has(l)};
_.X.containsValue=function(l){var e=this.getValues();return _.hq(e,l)};
_.X.forEach=function(l,e){_.We(this);this.keyMap_.forEach(function(O,E){O.forEach(function(J){l.call(e,J,E,this)},this)},this)};
_.X.getKeys=function(){_.We(this);for(var l=Array.from(this.keyMap_.values()),e=Array.from(this.keyMap_.keys()),O=[],E=0;E<e.length;E++)for(var J=l[E],z=0;z<J.length;z++)O.push(e[E]);return O};
_.X.getValues=function(l){_.We(this);var e=[];if(typeof l==="string")this.containsKey(l)&&(e=e.concat(this.keyMap_.get(dU(this,l))));else{l=Array.from(this.keyMap_.values());for(var O=0;O<l.length;O++)e=e.concat(l[O])}return e};
_.X.set=function(l,e){_.We(this);this.encodedQuery_=null;l=dU(this,l);this.containsKey(l)&&(this.count_-=this.keyMap_.get(l).length);this.keyMap_.set(l,[e]);this.count_+=1;return this};
_.X.get=function(l,e){if(!l)return e;l=this.getValues(l);return l.length>0?String(l[0]):e};
_.U4q=function(l,e,O){l.remove(e);O.length>0&&(l.encodedQuery_=null,l.keyMap_.set(dU(l,e),_.rT(O)),l.count_+=O.length)};
_.Cn.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var l=[],e=Array.from(this.keyMap_.keys()),O=0;O<e.length;O++){var E=e[O],J=_.r5(E);E=this.getValues(E);for(var z=0;z<E.length;z++){var M=J;E[z]!==""&&(M+="="+_.r5(E[z]));l.push(M)}}return this.encodedQuery_=l.join("&")};
_.Cn.prototype.clone=function(){var l=new _.Cn;l.encodedQuery_=this.encodedQuery_;this.keyMap_&&(l.keyMap_=new Map(this.keyMap_),l.count_=this.count_);return l};
var dU=function(l,e){e=String(e);l.JSC$8069_ignoreCase_&&(e=e.toLowerCase());return e},G5k=function(l,e){e&&!l.JSC$8069_ignoreCase_&&(_.We(l),l.encodedQuery_=null,l.keyMap_.forEach(function(O,E){var J=E.toLowerCase();
E!=J&&(this.remove(E),_.U4q(this,J,O))},l));
l.JSC$8069_ignoreCase_=e};
_.Cn.prototype.extend=function(l){for(var e=0;e<arguments.length;e++)_.Fm1(arguments[e],function(O,E){this.add(E,O)},this)};var gU=function(l,e){S1.call(this);for(var O=0,E;E=AnH[O];O++)if(E in l&&!/^https?:\/\//.test(l[E]))throw Error("Va`"+l[E]+"`"+E);this.cfg_=l;this.name=this.cfg_.cn||a7R();this.JSC$8064_domHelper_=e||WR();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ue(this);l.lpu=l.lpu||cC1(this.JSC$8064_domHelper_.getWindow().location.href)+"/robots.txt";l.ppu=l.ppu||cC1(l.pu||"")+"/robots.txt";E7[this.name]=this;j5i(window,"unload",YPF)||jb(window,"unload",YPF)};
_.o_(gU,S1);var hwx=RegExp("^%*tp$"),LmF=RegExp("^%+tp$");_.X=gU.prototype;_.X.connectionDelay_=null;_.X.peerWindowDeferred_=null;_.X.transport_=null;_.X.state_=1;_.X.isConnected=function(){return this.state_==2};
_.X.peerWindowObject_=null;_.X.iframeElement_=null;_.X.connect=function(l){this.connectCb_=l||_.II;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?oSk(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.X.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8064_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var l=this.iframeElement_.contentWindow;l||(l=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=l}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$8064_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new O7(this,this.cfg_.ph,this.JSC$8064_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.X.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Q9(this.transport_);this.connectCb_=this.transport_=null;_.Q9(this.connectionDelay_);this.connectionDelay_=null};
_.X.send=function(l,e){if(this.isConnected()){try{var O=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(J){O=!1}if(O){_.e0(e)&&(e=(0,_.Tv)(e));O=this.transport_;var E=O.send;hwx.test(l)&&(l="%"+l);l=l.replace(/[%:|]/g,encodeURIComponent);E.call(O,l,e)}else this.close()}};
_.X.xpcDeliver=function(l,e,O){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.pb)(this.xpcDeliver,this,l,e,O));else if(yn1(this,O)&&!this.isDisposed()&&this.state_!=3)if(l&&l!="tp")this.isConnected()&&(l=l.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),l=LmF.test(l)?l.substring(1):l,l=this.getService(l,e))&&(e=MBx(e,l.objectPayload),e!=null&&l.callback(e));else switch(l=this.transport_,O=m46(e),e=O[1],O[0]){case "SETUP_ACK":HF6(l,1);l.setupAckReceived_.fired_||l.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":l.protocolVersion_==2&&(HF6(l,2),l.setupAckReceived_.fired_||l.setupAckReceived_.callback(!0));break;case "SETUP":HF6(l,1);j7H(l,1);break;case "SETUP_NTPV2":l.protocolVersion_==2&&(O=l.peerProtocolVersion_,HF6(l,2),j7H(l,2),O!=1&&l.peerEndpointId_==null||l.peerEndpointId_==e||KmS(l),l.peerEndpointId_=e)}};
var k56=function(l){var e=l.cfg_.role;return typeof e==="number"?e:window.parent==l.peerWindowObject_?1:0},yn1=function(l,e){var O=l.cfg_.ph;
return _.MA(e==null?"":String(e))||_.MA(O==null?"":String(O))||e==l.cfg_.ph};
gU.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete E7[this.name];_.Q9(this.peerLoadHandler_);delete this.peerLoadHandler_;gU.superClass_.disposeInternal.call(this)};
var YPF=function(){for(var l in E7)_.Q9(E7[l])},E7={};var qPi=function(l,e){this.JSC$8078_win=l;this.allowAdsHttpEndpoint=e;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8078_domHelper=WR(l);this.scrollManager=new XR1(l);this.accessibilityManager=new l71(l);tB1(this)},tB1=function(l){var e=function(){l.allowAdsPopup&&l.allowAdsPopup.style.setProperty("display","none","important");
l.wallElement.style.setProperty("display","","important");ewR(l.accessibilityManager);Jn1(l.accessibilityManager,l.wallElement.querySelector(".fc-dialog-container"),!1,!1,l.wallElement.querySelector(".fc-button-whitelist"));var J=l.scrollManager;J.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow=J.originalBodyOverflow};
l.allowAdsPopup=l.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-whitelist-root"});l.allowAdsPopup.style.setProperty("display","none","important");l.JSC$8078_domHelper.appendChild(l.JSC$8078_domHelper.JSC$7363_document_.body,l.allowAdsPopup);var O=l.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-dialog-overlay"});l.JSC$8078_domHelper.appendChild(l.allowAdsPopup,O);var E=l.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:e});l.JSC$8078_domHelper.appendChild(l.allowAdsPopup,
E);O=l.JSC$8078_domHelper.JSC$7365_createDom("IFRAME");O.className="fc-whitelist-dialog";O.frameBorder="0";O.id="fc-whitelist-iframe";O.tabIndex="0";_.H2(O,l.allowAdsHttpEndpoint);l.JSC$8078_domHelper.appendChild(E,O);E={};E.pu=_.Z9(l.allowAdsHttpEndpoint).toString();E.tp=1;E.cn="fc-whitelist-channel";E.ifrid=O.id;E.osh=!0;l.allowAdsCrossPageChannel=new gU(E);l.allowAdsCrossPageChannel.registerService("close",e);l.allowAdsCrossPageChannel.registerService("refresh",function(){l.JSC$8078_win.location.reload()});
l.allowAdsCrossPageChannel.registerService("resize",function(J){if(J){var z=l.allowAdsPopup.querySelector(".fc-whitelist-dialog");J.width&&z.style.setProperty("width",J.width,"important");J.height&&z.style.setProperty("height",J.height,"important")}},!0);
l.allowAdsCrossPageChannel.connect()};
qPi.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8078_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var iO=window,wU=document,vSR=iO.location,NaS=function(){},rnx=/\[native code\]/,A6=function(l,e,O){return l[e]=l[e]||O},D4C=function(l){l=l.sort();
for(var e=[],O=void 0,E=0;E<l.length;E++){var J=l[E];J!=O&&e.push(J);O=J}return e},nn=function(){var l;
if((l=Object.create)&&rnx.test(l))l=l(null);else{l={};for(var e in l)l[e]=void 0}return l},as=A6(iO,"gapi",{});var kN={};kN=A6(iO,"___jsl",nn());A6(kN,"I",0);A6(kN,"hel",10);var SPF=function(){var l=vSR.href;if(kN.dpo)var e=kN.h;else{e=kN.h;var O=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),E=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(l=l&&(O.exec(l)||E.exec(l)))try{e=decodeURIComponent(l[2])}catch(J){}}return e},Q7q=function(l){var e=A6(kN,"PQ",[]);
kN.PQ=[];var O=e.length;if(O===0)l();else for(var E=0,J=function(){++E===O&&l()},z=0;z<O;z++)e[z](J)},x4H=function(l){return A6(A6(kN,"H",nn()),l,nn())};var Is=function(l){this.JSC$8080_obj_=l};
Is.prototype.value=function(){return this.JSC$8080_obj_};
Is.prototype.getWidth=function(){return this.JSC$8080_obj_.width};
Is.prototype.getHeight=function(){return this.JSC$8080_obj_.height};
Is.prototype.getStyle=function(){return this.JSC$8080_obj_.style};var lFH=function(l){this.JSC$8083_obj_=l||{}};
_.X=lFH.prototype;_.X.value=function(){return this.JSC$8083_obj_};
_.X.setUrl=function(l){this.JSC$8083_obj_.url=l;return this};
_.X.getUrl=function(){return this.JSC$8083_obj_.url};
_.X.getStyle=function(){return this.JSC$8083_obj_.style};
_.X.setId=function(l){this.JSC$8083_obj_.id=l;return this};
_.X.getId=function(){return this.JSC$8083_obj_.id};
_.X.getContext=function(){return this.JSC$8083_obj_.context};
var eJk=function(l){l.JSC$8083_obj_.attributes=l.JSC$8083_obj_.attributes||{};return new Is(l.JSC$8083_obj_.attributes)};var ObS=function(){lFH.apply(this,arguments)};
_.m(ObS,lFH);var EzC=A6(kN,"perf",nn());A6(EzC,"g",nn());var Jlq=A6(EzC,"i",nn());A6(EzC,"r",[]);nn();nn();var zJS=function(l,e,O){e&&e.length>0&&(e=XDi(e),O&&O.length>0&&(e+="___"+XDi(O)),e.length>28&&(e=e.substr(0,28)+(e.length-28)),O=e,e=A6(Jlq,"_p",nn()),A6(e,O,nn())[l]=(new Date).getTime(),e=EzC.r,typeof e==="function"?e(l,"_p",O):e.push([l,"_p",O]))},XDi=function(l){return l.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var bb6=nn(),M$6=[],m2=function(l){throw Error("Ya`"+l);};
M$6.push(["jsl",function(l){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)){var O=l[e];typeof O=="object"?kN[e]=A6(kN,e,[]).concat(O):A6(kN,e,O)}if(e=l.u)l=A6(kN,"us",[]),l.push(e),(e=/^https:(.*)$/.exec(e))&&l.push("http:"+e[1])}]);
var V$H=/^(\/[a-zA-Z0-9_\-]+)+$/,Zbk=[/\/amp\//,/\/amp$/,/^\/amp$/],u8S=/^[a-zA-Z0-9\-_\.,!]+$/,C$x=/^gapi\.loaded_[0-9]+$/,ozF=/^[a-zA-Z0-9,._-]+$/,gzF=function(l,e,O,E,J){var z=l.split(";"),M=z.shift(),Z=bb6[M],u=null;Z?u=Z(z,e,O,E):m2("no hint processor for: "+M);u||m2("failed to generate load url");e=u;O=e.match($hk);(E=e.match(W36))&&E.length===1&&dh6.test(e)&&O&&O.length===1||m2("failed sanity: "+l);try{l="?";if(J&&J.length>0){Ex(J);var d=J.join(",");u=u+"?le="+d;l="&"}if(kN.rol){var g=kN.ol;
g&&g.length&&(u=""+u+l+"ol="+g.length)}}catch(w){}return u},Al6=function(l,e,O,E){l=ib0(l);
C$x.test(O)||m2("invalid_callback");e=wDi(e);E=E&&E.length?wDi(E):null;var J=function(z){return encodeURIComponent(z).replace(/%2C/g,",")};
return[encodeURIComponent(l.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",J(l.version),"/m=",J(e),E?"/exm="+J(E):"","/rt=j/sv=1/d=1/ed=1",l.activeMods?"/am="+J(l.activeMods):"",l.resourceSig?"/rs="+J(l.resourceSig):"",l.zcms?"/t="+J(l.zcms):"","/cb=",J(O)].join("")},ib0=function(l){l.charAt(0)!=="/"&&m2("relative path");
for(var e=l.substring(1).split("/"),O=[];e.length;){l=e.shift();if(!l.length||l.indexOf(".")==0)m2("empty/relative directory");else if(l.indexOf("=")>0){e.unshift(l);break}O.push(l)}l={};for(var E=0,J=e.length;E<J;++E){var z=e[E].split("="),M=decodeURIComponent(z[0]),Z=decodeURIComponent(z[1]);z.length==2&&M&&Z&&(l[M]=l[M]||Z)}e="/"+O.join("/");V$H.test(e)||m2("invalid_prefix");O=0;for(E=Zbk.length;O<E;++O)Zbk[O].test(e)&&m2("invalid_prefix");O=nzS(l,"k",!0);E=nzS(l,"am");J=nzS(l,"rs");l=nzS(l,"t");
return{pathPrefix:e,version:O,activeMods:E,resourceSig:J,zcms:l}},wDi=function(l){for(var e=[],O=0,E=l.length;O<E;++O){var J=l[O].replace(/\./g,"_").replace(/-/g,"_");
ozF.test(J)&&e.push(J)}return e.join(",")},nzS=function(l,e,O){l=l[e];
!l&&O&&m2("missing: "+e);if(l){if(u8S.test(l))return l;m2("invalid: "+e)}return null},dh6=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,W36=/\/cb=/g,$hk=/\/\//g;
bb6.m=function(l,e,O,E){(l=l[0])||m2("missing_hint");return"https://apis.google.com"+Al6(l,e,O,E)};
var aFS=decodeURI("%73cript"),kjF=/^[-+_0-9\/A-Za-z]+={0,2}$/,IFx=function(l,e){for(var O=[],E=0;E<l.length;++E){var J=l[E],z;if(z=J){a:{for(z=0;z<e.length;z++)if(e[z]===J)break a;z=-1}z=z<0}z&&O.push(J)}return O},mhx=function(){var l=kN.nonce;
return l!==void 0?l&&l===String(l)&&l.match(kjF)?l:kN.nonce=null:wU.querySelector?(l=wU.querySelector("script[nonce]"))?(l=l.nonce||l.getAttribute("nonce")||"",l&&l===String(l)&&l.match(kjF)?kN.nonce=l:kN.nonce=null):null:null},K30=function(l){if(wU.readyState!="loading")ylC(l);
else{var e=mhx(),O="";e!==null&&(O=' nonce="'+e+'"');l="<"+aFS+' src="'+encodeURI(l)+'"'+O+"></"+aFS+">";wU.write(pDH?pDH.createHTML(l):l)}},ylC=function(l){var e=wU.createElement(aFS);
e.setAttribute("src",pDH?pDH.createScriptURL(l):l);l=mhx();l!==null&&e.setAttribute("nonce",l);e.async="true";(l=wU.getElementsByTagName(aFS)[0])?l.parentNode.insertBefore(e,l):(wU.head||wU.body||wU.documentElement).appendChild(e)},Hb1=function(l,e,O){jQS(function(){var E=e===SPF()?A6(as,"_",nn()):nn();
E=A6(x4H(e),"_",E);l(E)},O)},CO8=function(l,e){var O=e||{};
typeof e=="function"&&(O={},O.callback=e);var E=(e=O)&&e._c;if(E)for(var J=0;J<M$6.length;J++){var z=M$6[J][0],M=M$6[J][1];M&&Object.prototype.hasOwnProperty.call(E,z)&&M(E[z],l,e)}e=[];l?e=l.split(":"):O.features&&(e=O.features);if(!(l=O.h)&&(l=SPF(),!l))throw Error("Za");clH(e||[],O,l)},clH=function(l,e,O){l=D4C(l)||[];
var E=e.callback,J=e.config,z=e.timeout,M=e.ontimeout,Z=e.onerror,u=void 0;typeof Z=="function"&&(u=Z);var d=null,g=!1;if(z&&!M||!z&&M)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";Z=A6(x4H(O),"r",[]).sort();var w=A6(x4H(O),"L",[]).sort(),n=kN.le||[],k=[].concat(Z),y=function(N,t){if(g)return 0;iO.clearTimeout(d);w.push.apply(w,c);var r=((as||{}).config||{}).update;r?r(J):J&&A6(kN,"cu",[]).push(J);if(t){zJS("me0",N,k);try{Hb1(t,O,u)}finally{zJS("me1",N,k)}}return 1};
z>0&&(d=iO.setTimeout(function(){g=!0;M()},z));
var c=IFx(l,w);if(c.length){c=IFx(l,Z);var f=A6(kN,"CP",[]),P=f.length;f[P]=function(N){if(!N)return 0;zJS("ml1",c,k);var t=function(D){f[P]=null;y(c,N)&&Q7q(function(){E&&E();D()})},r=function(){var D=f[P+1];
D&&D()};
P>0&&f[P-1]?f[P]=function(){t(r)}:t(r)};
if(c.length){var h="loaded_"+kN.I++;as[h]=function(N){f[P](N);as[h]=null};
l=gzF(O,c,"gapi."+h,Z,n);Z.push.apply(Z,c);zJS("ml0",c,k);e.sync||iO.___gapisync?K30(l):ylC(l)}else f[P](NaS)}else y(c)&&E&&E()},F3S;
var fFi=null,RJq=_.Op.trustedTypes;if(RJq&&RJq.createPolicy){try{fFi=RJq.createPolicy("goog#gapi",{createHTML:xF2,createScript:xF2,createScriptURL:xF2})}catch(l){_.Op.console&&_.Op.console.error(l.message)}F3S=fFi}else F3S=fFi;var pDH=F3S,jQS=function(l,e){if(kN.hee&&kN.hel>0)try{return l()}catch(O){e&&e(O),kN.hel--,CO8("debug_error",function(){try{window.___jsl.hefn(O)}catch(E){throw O;}})}else try{return l()}catch(O){throw e&&e(O),O;
}},Tkx=as.load;
Tkx&&A6(kN,"ol",[]).push(Tkx);as.load=function(l,e){return jQS(function(){return CO8(l,e)})};var cD;var sQF=function(l,e){this.serviceId_=l;this.moduleId_=e||null};
sQF.prototype.toString=function(){return this.serviceId_};
sQF.prototype.getModuleId=function(){return this.moduleId_};var XmL=new sQF("MpJwZc","MpJwZc");var bZp=new _.aa("a"),zBL=function(l,e,O){_.k$.call(this,l,e);this.node=e;this.kind=O};
_.m(zBL,_.k$);var GjS=function(){this.JSC$8096_keys_={};this.urlPrefix_="";this.JSC$8096_queryData_={}};
GjS.prototype.toString=function(){var l=this.urlPrefix_+Bkx(this),e=_.ay(this.JSC$8096_queryData_),O="";e!=""&&(O="?"+e);return l+O};
var P$q=function(l){l=yi(l,"md");return!!l&&l!=="0"},Bkx=function(l){var e=[],O=(0,_.pb)(function(E){this.JSC$8096_keys_[E]!==void 0&&e.push(E+"="+this.JSC$8096_keys_[E])},l);
P$q(l)?(O("md"),O("k"),O("ck"),O("am"),O("rs"),O("gssmodulesetproto"),O("slk"),O("dti")):(O("sdch"),O("k"),O("ck"),O("am"),O("rt"),"d"in l.JSC$8096_keys_||pn(l,"d","0"),O("d"),O("exm"),O("excm"),(l.JSC$8096_keys_.excm||l.JSC$8096_keys_.exm)&&e.push("ed=1"),O("im"),O("dg"),O("sm"),yi(l,"br")!="1"&&yi(l,"br")!="0"||O("br"),O("br-d"),yi(l,"rb")=="1"&&O("rb"),yi(l,"zs")!=="0"&&O("zs"),UhH(l)!==""&&O("wt"),O("gssmodulesetproto"),O("ujg"),O("sp"),O("rs"),O("cb"),O("ee"),O("slk"),O("dti"),O("m"));return e.join("/")},
yi=function(l,e){return l.JSC$8096_keys_[e]?l.JSC$8096_keys_[e]:null},pn=function(l,e,O){O?l.JSC$8096_keys_[e]=O:delete l.JSC$8096_keys_[e]},Yoq=function(l,e){l.urlPrefix_=e},hJR=function(l,e){e&&e.length>0?(e.sort(),pn(l,"exm",e.join(","))):pn(l,"exm",null)},L3q=function(l,e){e&&e.length>0?(e.sort(),pn(l,"excm",e.join(","))):pn(l,"excm",null)},t$S=function(l){return(l=yi(l,"m"))?l.split(","):[]},UhH=function(l){switch(yi(l,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},qoq=function(l,e){var O=Object.keys(e).filter(function(E){return!!Object.keys(e[E]).length}).map(function(E){var J=Object.keys(e[E]);
J.length>1&&J.sort();return E+":"+J.join(",")});
O.sort();pn(l,"ee",O.join(";"))},hTx=function(l){var e=yi(l,"ee");
if(!e)return{};l={};e=_.b(e.split(";"));for(var O=e.next();!O.done;O=e.next()){var E=_.b(O.value.split(":"));O=E.next().value;E=E.next().value;l[O]={};E=_.b(E.split(","));for(var J=E.next();!J.done;J=E.next())l[O][J.value]=!0}return l},vzq=function(l){delete l.JSC$8096_keys_.m;
delete l.JSC$8096_keys_.exm;delete l.JSC$8096_keys_.ed};
GjS.prototype.clone=function(){var l=new GjS;l.JSC$8096_keys_=Object.assign({},this.JSC$8096_keys_);l.urlPrefix_=this.urlPrefix_;l.JSC$8096_queryData_=Object.assign({},this.JSC$8096_queryData_);return l};
var LGW=function(l,e){e=e===void 0?!0:e;var O=Nk1(l),E=new GjS,J=_.Os(O)[5];_.mm.forEach(rlq,function(M){var Z=J.match("/"+M+"=([^/]+)");Z&&pn(E,M,Z[1])});
var z="";z=l.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Yoq(E,l.substr(0,l.indexOf(z)+z.length));if(!e)return E;(l=_.Os(O)[6]||null)&&fSS(l,function(M,Z){E.JSC$8096_queryData_[M]=Z});
return E},PPW=function(l){l=_.A5(Nk1(l));
return l===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(l)?/\/k=/.test(l):!1},Nk1=function(l){return l.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?l.substr(65):l},rlq={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},Dhq=RegExp("^loaded_(g|h)?[_\\d]+$");_.Kn=function(l){this.JSC$8108_id_=l;this.opts={}};
_.Kn.prototype.JSC$8110_setLabel=function(l){this.label_=l||void 0;return this};
_.Kn.prototype.addUploadMetadata=function(l,e){var O=this.opts.data||{};O[l]=e;this.opts.data=O;return this};
var So1=function(l){var e=_.mm.filter(l.opts,function(O){return O!==null});
e=_.mm.isEmpty(e)?null:e;l=[l.JSC$8108_id_,l.label_,e];e=iL2(l);return l=l.slice(0,e+1)};
_.Kn.prototype.toString=function(){var l=So1(this);return"("+_.pF(l,function(e){return JSON.stringify(e)}).join(",")+")"};
_.Kn.prototype.getId=function(){return this.JSC$8108_id_};
_.Kn.prototype.getOptions=function(){return _.mm.clone(this.opts)};var jV=function(){_.Kn.call(this,"image-search")};
_.m(jV,_.Kn);jV.prototype.setSize=function(l){this.opts.imgsz=l;return this};
jV.prototype.JSC$8110_setLabel=function(l){_.Kn.prototype.JSC$8110_setLabel.call(this,l);return this};
jV.prototype.addUploadMetadata=function(l,e){_.Kn.prototype.addUploadMetadata.call(this,l,e);return this};var He=function(){_.Kn.call(this,"maps")};
_.m(He,_.Kn);He.prototype.setZoom=function(l){this.opts.zoom=l;return this};
He.prototype.JSC$8110_setLabel=function(l){_.Kn.prototype.JSC$8110_setLabel.call(this,l);return this};
He.prototype.addUploadMetadata=function(l,e){_.Kn.prototype.addUploadMetadata.call(this,l,e);return this};_.ce=function(){_.Kn.call(this,"photos")};
_.m(_.ce,_.Kn);_.ce.prototype.JSC$8110_setLabel=function(l){_.Kn.prototype.JSC$8110_setLabel.call(this,l);return this};
_.ce.prototype.addUploadMetadata=function(l,e){_.Kn.prototype.addUploadMetadata.call(this,l,e);return this};var FB=function(){_.Kn.call(this,"url")};
_.m(FB,_.Kn);var QQC=function(){var l=new FB;l.opts.type="video";l.opts.site="youtube.com";return l};
FB.prototype.JSC$8110_setLabel=function(l){_.Kn.prototype.JSC$8110_setLabel.call(this,l);return this};
FB.prototype.addUploadMetadata=function(l,e){_.Kn.prototype.addUploadMetadata.call(this,l,e);return this};var fn=function(){_.Kn.call(this,"video-search")};
_.m(fn,_.Kn);var xhS=function(){var l=new fn;l.opts.site="youtube.com";return l};
fn.prototype.JSC$8110_setLabel=function(l){_.Kn.prototype.JSC$8110_setLabel.call(this,l);return this};
fn.prototype.addUploadMetadata=function(l,e){_.Kn.prototype.addUploadMetadata.call(this,l,e);return this};var lc1=function(){_.Kn.call(this,"web")};
_.m(lc1,_.Kn);lc1.prototype.JSC$8110_setLabel=function(l){_.Kn.prototype.JSC$8110_setLabel.call(this,l);return this};
lc1.prototype.addUploadMetadata=function(l,e){_.Kn.prototype.addUploadMetadata.call(this,l,e);return this};var Rs=function(){this.items_=[];this.opts={}},e_x=function(l){switch(l){case "image-search":return new jV;
case "maps":return new He;case "photos":return new _.ce;case "url":return new FB;case "video-search":return new fn;case "web":return new lc1}return new _.Kn(l)};
Rs.prototype.addView=function(l){this.items_.push(typeof l==="string"?e_x(l):l);return this};
var OSx=function(l){return"("+_.pF(l.items_,function(e){return e.toString()}).join(",")+")"};
Rs.prototype.toString=function(){return OSx(this)};
Rs.prototype.getViews=function(l,e){e=e===void 0?[]:e;for(var O=this.items_,E=0;E<O.length;E++){var J=O[E];J instanceof Rs?J.getViews(l,e):J.getId()==l&&e.push(J)}return e};
Rs.prototype.getOptions=function(){return _.mm.clone(this.opts)};var Yz=function(l){this.basePickerUrl_=l||"https://docs.google.com/picker";this.nav_=new Rs};
Yz.prototype.nav_=null;Yz.prototype.addView=function(l){this.nav_.addView(l);return this};
Yz.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Yz.prototype.getViews=function(l){return this.nav_.getViews(l)};
_.Eoi=function(l,e){l.callback_=e;return l};var JF6=new Map;JF6.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");JF6.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");JF6.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var X31=new Set;X31.add("application/vnd.google-apps.kix");X31.add("application/vnd.google-apps.ritz");X31.add("application/vnd.google-apps.punch");var gok=function(l,e,O){var E=O&&_.BW(O,1);O=z_R(O);var J=l[0].getId();switch(_.PW(J,2)){case 13:return bS1(l,e,E,O);case 3:return Msq(l,e,E,O);case 10:return Vsq(l,e,E,O);case 27:return Vsq(l,e,E,O);case 12:return ZSS(l,e);case 2:return u7R(l,e,E,O);case 5:return CJC(l,e,E,O);case 9:return ooq(l,e,E,O);case 6:return $a1(l,e,E,O);case 25:return WF1(l,e,E,O);case 1:return _.p2(l[0],rC1,26)?daR(l,e,E,O):Vsq(l,e,E,O);default:return{}}},$a1=function(l,e,O,E){l=l.map(function(J){return{id:J.getId().getId(),
serviceId:"youtube",name:J.getName(),description:_.BW(J,3),type:TG(J),lastEditedUtc:_.N1S(_.Cu(J,_.r$,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:_.BW(J,13),thumbnails:s7(XV(J))}});
return{action:e,docs:l,viewToken:E,view:O||"youtube",v2Translated:!0}},u7R=function(l,e,O,E){var J=l.map(function(z){var M=z.getId().getId(),Z=_.BW(z,7),u=z.getName(),d=TG(z),g=_.N1S(_.Cu(z,_.r$,12)).getTime(),w=z.getUrl(),n=Number(oXu(z)),k=_.BW(z,3),y=_.BW(z,11),c=s7(XV(z));
var f=_.Cu(z,zv,21);f=_.T8(f,1);var P=_.Cu(z,zv,21);P=_.BW(P,10);var h=_.BW(z,13);var N=_.Cu(z,zv,21);N=_.T8(N,9);var t=_.Cu(z,zv,21);t=_.BW(t,11);M={id:M,serviceId:"docs",mimeType:Z,name:u,type:d,lastEditedUtc:g,url:w,sizeBytes:n,description:k,iconUrl:y,thumbnails:c,isShared:f,downloadUrl:P,embedUrl:h,copyable:N,resourceKey:t};Z=_.Cu(z,zv,21);_.T8(Z,12)&&(M.uploadState="success",M.isNew=!0);Z=_.Cu(z,zv,21);_.p2(Z,e1,3)&&(z=_.Cu(z,zv,21),z=_.Cu(z,e1,3),_.p2(z,xM,2)&&(Z=so(z.getDuration().getSeconds()),
u=z.getDuration(),u=_.Eo(u,2),M.duration=Z+u/1E9),M.aspectRatio=z.getAspectRatio());return M});
return{action:e,docs:J,viewToken:E,view:O||"all",extraUserInputs:iSC(l),v2Translated:!0}},CJC=function(l,e,O,E){l=l.map(function(J){var z=_.Cu(J,Juq,15);
z=_.Cu(z,lZ,1);pZ(J,10,lZ,z);return{id:J.getId().getId(),serviceId:"web",mimeType:_.BW(J,7),name:J.getName(),type:TG(J),url:J.getUrl(),description:_.BW(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s7(XV(J))}});
return{action:e,docs:l,viewToken:E,view:O||"image-search",v2Translated:!0}},ooq=function(l,e,O,E){l=l.map(function(J){return{serviceId:"url",
name:XV(J)[0].getUrl().split("/").pop(),type:TG(J),mimeType:_.BW(J,7),url:J.getUrl(),description:_.BW(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s7(XV(J))}});
return{action:e,docs:l,viewToken:E,view:O||"url",v2Translated:!0}},daR=function(l,e,O,E){l=l.map(function(J){return{id:J.getId().getId(),
serviceId:"picasa",name:J.getName(),type:TG(J),description:_.BW(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s7(XV(J))}});
return{action:e,docs:l,viewToken:E,view:O||"webcam",v2Translated:!0}},Vsq=function(l,e,O,E){return{action:e,
docs:l.map(w3i),viewToken:E,view:AF6(O||"upload",l),extraUserInputs:iSC(l),v2Translated:!0}},AF6=function(l,e){return e.some(function(O){var E;
return((E=_.Cu(O,Ok,30))==null?void 0:_.PW(E,3))===9})?l+"/gmailphotos":l},Msq=function(l,e,O,E){var J=l.map(function(z){var M={id:z.getId().getId(),
serviceId:"picasa",mimeType:_.BW(z,7),name:z.getName(),type:TG(z),lastEditedUtc:_.N1S(_.Cu(z,_.r$,12)).getTime(),url:z.getUrl(),sizeBytes:Number(oXu(z)),description:_.BW(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s7(XV(z)),mediaKey:z.getId().getId(),parentId:_.BW(z,4)},Z,u=(Z=_.Cu(z,QqF,18))==null?void 0:_.Cu(Z,Sxi,3);u&&(M.latitude=G8(u,1),M.longitude=G8(u,2));var d;z=(d=_.Cu(z,QqF,18))==null?void 0:s9(d,6);d=z!=null?so(z):void 0;d&&(M.version=
d);return M});
return{action:e,docs:J,viewToken:E,view:O||"photos",extraUserInputs:iSC(l),v2Translated:!0}},bS1=function(l,e,O,E){l=l.map(function(J){return{id:J.getId().getId(),
serviceId:"et",name:XV(J)[0].getUrl().split("/").pop(),description:_.BW(J,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s7(XV(J),"etjpg")}});
return{action:e,docs:l,viewToken:E,view:O||"et",v2Translated:!0}},WF1=function(l,e,O,E){l=l.map(function(J){var z=J.getId().getId(),M=E["2"];
return{id:z,serviceId:M.type!=="gmail_themes"&&M.parent==="6226252643674576769"?"picasa":"static_themes",name:J.getName(),mimeType:_.BW(J,7),type:TG(J),description:_.BW(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:J.getUrl(),thumbnails:s7(XV(J))}});
return{action:e,docs:l,viewToken:E,view:O||"photos",v2Translated:!0}},ZSS=function(l,e){l=l.map(function(O){var E=_.Cu(O,Diq,27);
E=_.nJ(E,1,_.Uu,_.Oo())[0];return{id:O.getId().getId(),serviceId:"contacts",mimeType:_.BW(O,7),name:O.getName(),description:_.BW(O,3),url:"mailto:"+E,thumbnail:[{url:_.BW(O,11)}],email:E}});
return{action:e,docs:l,view:"contacts",v2Translated:!0}},z_R=function(l){if(!l)return{};
var e=_.BW(l,3);e=e&&JSON.parse(e)||{};return{0:_.BW(l,1),1:_.BW(l,2),2:e}},s7=function(l,e){e=e===void 0?"":e;
if(!l.length)return null;e=="etjpg"&&(l=l.filter(function(O){return O.getUrl().includes("w1200-h300")}));
return l.map(function(O){return{url:O.getUrl(),height:O.getHeight(),width:O.getWidth(),type:e}})},iSC=function(l){return{isAttachment:l.some(function(e){return _.T8(e,31)})}},w3i=function(l){var e,O={id:(e=l.getId())==null?void 0:e.getId(),
serviceId:no1(l),mimeType:_.BW(l,7),name:l.getName(),type:TG(l),sizeBytes:Number(oXu(l)),description:_.BW(l,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s7(XV(l)),isNew:!0};if(e=_.Cu(l,Ok,30)){O.dataUrl=_.BW(e,1)||null;a:{var E=_.Cu(l,Ok,30);switch(_.PW(E,3)){case 9:E=_.hZ(E,OPq,2,JI);E={remoteRefs:E&&_.BW(E,1)};break a;case 10:case 15:E=_.hZ(E,e4x,4,JI);var J=XV(l);E={photo_id:E&&_.BW(E,1),media_key:l.getId().getId(),media_type:_.PW(l,6)===1?1:2,image_url:J&&
J[0].getUrl(),width:J&&String(J[0].getWidth()),height:J&&String(J[0].getHeight())};break a}E=null}O.uploadMetadata=E;O.uploadId=_.BW(e,9)||null;O.uploadState=acq(e)||null}(E=e&&_.hZ(e,e4x,4,JI))&&(O.id=_.BW(E,1));(E=e&&_.hZ(e,E4S,5,JI))&&(O.contentId=_.BW(E,1));(E=e&&_.hZ(e,xiF,7,JI))&&(O.contentId=_.BW(E,1));(E=e&&_.hZ(e,lOF,6,JI))&&(O.contentId=_.BW(E,1));(e==null?void 0:_.PW(e,3))===1&&(O.mediaKey=l.getId().getId());return O},no1=function(l){var e;
switch(((e=_.Cu(l,Ok,30))==null?void 0:_.PW(e,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},TG=function(l){switch(_.PW(l,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 _.BW(l,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},acq=function(l){switch(l==null?void 0:_.PW(l,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 yF6,kh1,IcC,ma0;_.p3F=function(l,e){var O=e||{};e=O.document||document;var E=_.Z9(l).toString(),J=(new ja(e)).createElement("SCRIPT"),z={script_:J,timeout_:void 0},M=new Qw(kh1,z),Z=null,u=O.timeout!=null?O.timeout:5E3;u>0&&(Z=window.setTimeout(function(){IcC(J,!0);M.errback(new ma0(1,"Timeout reached for loading script "+E))},u),z.timeout_=Z);
J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||(IcC(J,O.cleanupWhenDone||!1,Z),M.callback(null))};
J.onerror=function(){IcC(J,!0,Z);M.errback(new ma0(0,"Error while loading script "+E))};
z=O.attributes||{};_.mm.extend(z,{type:"text/javascript",charset:"UTF-8"});UAk(J,z);_.UN(J,l);yF6(e).appendChild(J);return M};
yF6=function(l){var e=nb("HEAD",l);return e&&e.length!==0?e[0]:l.documentElement};
kh1=function(){if(this&&this.script_){var l=this.script_;l&&l.tagName=="SCRIPT"&&IcC(l,!0,this.timeout_)}};
IcC=function(l,e,O){O!=null&&_.Op.clearTimeout(O);l.onload=function(){};
l.onerror=function(){};
l.onreadystatechange=function(){};
e&&window.setTimeout(function(){_.wk(l)},0)};
ma0=function(l,e){var O="Jsloader error (code #"+l+")";e&&(O+=": "+e);_.l2.call(this,O);this.code=l};
_.o_(ma0,_.l2);var KF1=_.E9(["https://apis.google.com/js/api.js"]),jLH=_.OP(KF1),fcR=function(l,e){var O=!1,E=HSq(l,e).then(function(z){O=!0;return z}),J=_.Jzq(5E3).then(function(){return O?HSq(l,e):cF6(e).then(function(z){return FFi(z,l)})});
return qjk([E,J])},HSq=function(l,e){return R_F(e).then(function(O){return FFi(O,l)})},FFi=function(l,e){var O=_.Jq(e,"gapi.")?e.slice(5):e;
return l[O]?_.Ag(l[O]):new _.kE(function(E,J){var z=fx(function(){J(Error("bb"))},3E4);
l.load(e,{callback:function(){_.Op.clearTimeout(z);E(l[O])},
onerror:function(M){_.Op.clearTimeout(z);J(M)}})})},R_F=function(l){return l.gapi&&l.gapi.load?_.Ag(l.gapi):cF6(l)},cF6=function(l){return _.p3F(jLH,{document:l.document}).then(function(){return l.gapi})},TXF=function(){};
TXF.prototype.load=function(l,e){e=e===void 0?window:e;var O=Date.now();return fcR(l,e).then(function(E){var J=Date.now();return{library:E,loadStartMs:O,loadEndMs:J}},function(E){throw E instanceof Error?E:Error(String(E));
})};var umL=function(){_.y6.call(this);this.gapiLoader_=new TXF;this.origin_=null;this.gapiPickerIframeResolver_=_.x7();this.gapiIframesResolver_=_.x7();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.m(umL,_.y6);var sLS=function(l,e){var O=_.vK("gapi.iframes",e);return O?(l=Date.now(),_.Ag({library:O,loadStartMs:l,loadEndMs:l})):l.gapiLoader_.load("gapi.iframes",e)},Ghi=function(l,e,O,E,J,z){var M=!1;
M=M===void 0?!1:M;sLS(l,jB(e.ownerDocument)).then(function(Z){var u=Z.library;l.gapiIframesResolver_.resolve(u);Z=l.gapiPickerIframeResolver_;var d=Z.resolve,g=M;g=g===void 0?!1:g;var w={};w["host-message-handler"]=O;l.hostMessageHandlerInternal_=w;var n=_.rk(E);n=_.rk(n);n=_.bO(_.zG(_.XB(new _.Jg,n.scheme_),n.JSC$8068_domain_),n.JSC$8068_port_).toString();l.origin_=n;n=(new ObS).setUrl(E);n.JSC$8083_obj_.where=e;n.JSC$8083_obj_.allowPost=g;n.JSC$8083_obj_.messageHandlers=w;g=_.vK("makeWhiteListIframesFilter",
u)([l.origin_]);n.JSC$8083_obj_.messageHandlersFilter=g;J!=null&&n.setId(J);z!=null&&(n.JSC$8083_obj_.rpctoken=z);g=eJk(n);g.JSC$8080_obj_.style={display:"block","min-width":"100%",width:"1px"};g.JSC$8080_obj_.height="100%";eJk(n).value().allow="camera 'src' "+l.origin_;u=u.getContext().openChild(n.value());d.call(Z,u)},function(Z){l.gapiIframesResolver_.reject(Z);
l.gapiPickerIframeResolver_.reject(Z)});
return l.gapiPickerIframeResolver_.promise},BXR=function(l,e){return _.co([l.gapiIframesResolver_.promise,
l.gapiPickerIframeResolver_.promise]).then(function(O){var E=_.b(O);O=E.next().value;return(E=E.next().value)?E.send("picker-message-handler",e,void 0,_.vK("makeWhiteListIframesFilter",O)([l.origin_])):_.Tr(Error("cb"))})};
umL.prototype.disposeInternal=function(){PJF(this);_.y6.prototype.disposeInternal.call(this)};
var PJF=function(l){l.gapiPickerIframeResolver_.promise.then(function(e){e&&(e.unregister("host-message-handler"),delete l.hostMessageHandlerInternal_["host-message-handler"])})};var Uak=function(){this.nextId=0};var h_q=function(l,e){switch(l.action){case "select-contacts":l=YBi(l.contacts);break;case "visibility":l=l.visible;var O=new M8;l=_.tZ(O,1,7).setVisible(l);O={};O["iframe-command"]=l.serialize();l=O;break;default:l=null}return l?BXR(e,l):_.Ag()},YBi=function(l){if(!l||l.length==0)return null;
var e=new M8;_.tZ(e,1,11);var O=new Uak;l.forEach(function(E){if(E.email){var J=new f2;J=_.Xi(J,2,E.name?E.name:E.email);var z=new Diq;E=_.M32(z,1,_.G0,E.email,_.Uu);E=_.EN(J,27,E);J=E.setId;z=(new Ql).setId(":"+(O.nextId++).toString(36));z=_.tZ(z,2,12);E=J.call(E,z)}else E=null;E&&pZ(e,7,f2,E)});
l={};l["iframe-command"]=e.serialize();return l};_.LFi=function(){if(pB2){var l=/Windows NT ([0-9.]+)/;return(l=l.exec(_.dT()))?l[1]:"0"}return _.yNM?(l=/1[0|1][_.][0-9_.]+/,(l=l.exec(_.dT()))?l[0].replace(/_/g,"."):"10"):x88?(l=/Android\s+([^\);]+)(\)|;)/,(l=l.exec(_.dT()))?l[1]:""):jAx||HKq||cNg?(l=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(l=l.exec(_.dT()))?l[1].replace(/_/g,"."):""):""}();var GG;GG=function(l){return(l=l.exec(_.dT()))?l[1]:""};
_.tsF=function(){if(_.n2)return GG(/Firefox\/([0-9.]+)/);if(_.gs||JW||ke2)return BMx;if(_.a_){if(_.Rd()||_.$AL()){var l=GG(/CriOS\/([0-9.]+)/);if(l)return l}return GG(/Chrome\/([0-9.]+)/)}if(_.Lv&&!_.Rd())return GG(/Version\/([0-9.]+)/);if(w98||AiT){if(l=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.dT()))return l[1]+"."+l[2]}else if(L5x)return(l=GG(/Android\s+([0-9.]+)/))?l:GG(/Version\/([0-9.]+)/);return""}();var qBC=function(){};
_.uv(qBC);qBC.prototype.nextId_=0;_.Be=function(l){return":"+(l.nextId_++).toString(36)};var Pe=function(l){_.Kx.call(this);this.JSC$8178_dom_=l||WR();this.JSC$8178_id_=null;this.inDocument_=!1;this.JSC$8178_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.o_(Pe,_.Kx);Pe.prototype.idGenerator_=qBC.getInstance();Pe.prototype.getId=function(){return this.JSC$8178_id_||(this.JSC$8178_id_=_.Be(this.idGenerator_))};
Pe.prototype.setId=function(l){this.parent_&&this.parent_.childIndex_&&(_.mm.remove(this.parent_.childIndex_,this.JSC$8178_id_),_.mm.add(this.parent_.childIndex_,l,this));this.JSC$8178_id_=l};
Pe.prototype.getElement=function(){return this.JSC$8178_element_};
var U7=function(l){l.googUiComponentHandler_||(l.googUiComponentHandler_=new _.ue(l));return l.googUiComponentHandler_},voH=function(l,e){if(l==e)throw Error("db");
var O;if(O=e&&l.parent_&&l.JSC$8178_id_){O=l.parent_;var E=l.JSC$8178_id_;O=O.childIndex_&&E?_.mm.get(O.childIndex_,E)||null:null}if(O&&l.parent_!=e)throw Error("db");l.parent_=e;Pe.superClass_.setParentEventTarget.call(l,e)};
Pe.prototype.setParentEventTarget=function(l){if(this.parent_&&this.parent_!=l)throw Error("eb");Pe.superClass_.setParentEventTarget.call(this,l)};
Pe.prototype.JSC$8180_createDom=function(){this.JSC$8178_element_=this.JSC$8178_dom_.createElement("DIV")};
Pe.prototype.render=function(l){NXk(this,l)};
var NXk=function(l,e,O){if(l.inDocument_)throw Error("fb");l.JSC$8178_element_||l.JSC$8180_createDom();e?e.insertBefore(l.JSC$8178_element_,O||null):l.JSC$8178_dom_.JSC$7363_document_.body.appendChild(l.JSC$8178_element_);l.parent_&&!l.parent_.inDocument_||l.enterDocument()};
_.X=Pe.prototype;_.X.decorate=function(l){if(this.inDocument_)throw Error("fb");if(l&&this.canDecorate(l)){this.wasDecorated_=!0;var e=_.HR(l);this.JSC$8178_dom_&&this.JSC$8178_dom_.JSC$7363_document_==e||(this.JSC$8178_dom_=WR(l));this.decorateInternal(l);this.enterDocument()}else throw Error("gb");};
_.X.canDecorate=function(){return!0};
_.X.decorateInternal=function(l){this.JSC$8178_element_=l};
_.X.enterDocument=function(){this.inDocument_=!0;rFR(this,function(l){!l.inDocument_&&l.getElement()&&l.enterDocument()})};
_.X.exitDocument=function(){rFR(this,function(l){l.inDocument_&&l.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.X.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);rFR(this,function(l){l.dispose()});
!this.wasDecorated_&&this.JSC$8178_element_&&_.wk(this.JSC$8178_element_);this.parent_=this.model_=this.JSC$8178_element_=this.childIndex_=this.children_=null;Pe.superClass_.disposeInternal.call(this)};
_.X.getModel=function(){return this.model_};
_.X.addChild=function(l,e){var O=this.children_?this.children_.length:0;if(l.inDocument_&&(e||!this.inDocument_))throw Error("fb");if(O<0||O>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);l.parent_==this?(_.mm.set(this.childIndex_,l.getId(),l),_.NA(this.children_,l)):_.mm.add(this.childIndex_,l.getId(),l);voH(l,this);_.AqW(this.children_,O,0,l);l.inDocument_&&this.inDocument_&&l.parent_==this?(e=this.getContentElement(),
(e.childNodes[O]||null)!=l.getElement()&&(l.getElement().parentElement==e&&e.removeChild(l.getElement()),O=e.childNodes[O]||null,e.insertBefore(l.getElement(),O))):e?(this.JSC$8178_element_||this.JSC$8180_createDom(),O=this.children_?this.children_[O+1]||null:null,NXk(l,this.getContentElement(),O?O.JSC$8178_element_:null)):this.inDocument_&&!l.inDocument_&&l.JSC$8178_element_&&l.JSC$8178_element_.parentNode&&l.JSC$8178_element_.parentNode.nodeType==1&&l.enterDocument()};
_.X.getContentElement=function(){return this.JSC$8178_element_};
var rFR=function(l,e){l.children_&&l.children_.forEach(e,void 0)};
Pe.prototype.removeChild=function(l,e){if(l){var O=typeof l==="string"?l:l.getId();l=this.childIndex_&&O?_.mm.get(this.childIndex_,O)||null:null;O&&l&&(_.mm.remove(this.childIndex_,O),_.NA(this.children_,l),e&&(l.exitDocument(),l.JSC$8178_element_&&_.wk(l.JSC$8178_element_)),voH(l,null))}if(!l)throw Error("ib");return l};_.o_(Edq,Gj);_.o_(JT2,Gj);var Da1;var SBq=function(l,e){e?l.setAttribute("role",e):l.removeAttribute("role")},YN=function(l,e,O){Array.isArray(O)&&(O=O.join(" "));
var E="aria-"+e;O===""||O==void 0?(Da1||(O={},Da1=(O.atomic=!1,O.autocomplete="none",O.dropeffect="none",O.haspopup=!1,O.live="off",O.multiline=!1,O.multiselectable=!1,O.orientation="vertical",O.readonly=!1,O.relevant="additions text",O.required=!1,O.sort="none",O.busy=!1,O.disabled=!1,O.hidden=!1,O.invalid="false",O)),O=Da1,e in O?l.setAttribute(E,O[e]):l.removeAttribute(E)):l.setAttribute(E,O)};var QLC;_.h6=function(l,e,O){_.Kx.call(this);this.target=l;this.handle=e||l;this.limits=O||new U8(NaN,NaN,NaN,NaN);this.JSC$8183_document_=_.HR(l);this.JSC$8183_eventHandler_=new _.ue(this);_.oQ(this,this.JSC$8183_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.f4(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=QLC};
_.o_(_.h6,_.Kx);QLC=_.Op.document&&_.Op.document.documentElement&&!!_.Op.document.documentElement.setCapture&&!!_.Op.document.releaseCapture;_.xaC=function(l,e){l.hysteresisDistanceSquared_=Math.pow(e,2)};
_.X=_.h6.prototype;_.X.setEnabled=function(l){this.enabled_=l};
_.X.disposeInternal=function(){_.h6.superClass_.disposeInternal.call(this);_.px(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8183_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8183_document_.releaseCapture();this.handle=this.target=null};
_.X.startDrag=function(l){var e=l.type=="mousedown";if(!this.enabled_||this.dragging_||e&&(l.event_.button!=0||_.yNM&&l.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Ln("start",this,l.clientX,l.clientY,l)))this.dragging_=!0,e&&l.preventDefault();else return;else e&&l.preventDefault();e=this.JSC$8183_document_;var O=e.documentElement,E=!this.useSetCapture_;this.JSC$8183_eventHandler_.listen(e,["touchmove","mousemove"],this.handleMove_,
{capture:E,passive:!1});this.JSC$8183_eventHandler_.listen(e,["touchend","mouseup"],this.endDrag,E);this.useSetCapture_?(O.setCapture(!1),this.JSC$8183_eventHandler_.listen(O,"losecapture",this.endDrag)):this.JSC$8183_eventHandler_.listen(jB(e),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8183_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,E);this.clientX=this.startX=l.clientX;this.clientY=this.startY=l.clientY;this.screenX=l.screenX;this.screenY=l.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=$S(WR(this.JSC$8183_document_))}};
_.X.endDrag=function(l,e){this.JSC$8183_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8183_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Ln("end",this,l.clientX,l.clientY,l,lB1(this,this.deltaX),eTk(this,this.deltaY),e||l.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.X.handleMove_=function(l){if(this.enabled_){var e=l.clientX-this.clientX,O=l.clientY-this.clientY;this.clientX=l.clientX;this.clientY=l.clientY;this.screenX=l.screenX;this.screenY=l.screenY;if(!this.dragging_){var E=this.startX-this.clientX,J=this.startY-this.clientY;if(E*E+J*J>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Ln("start",this,l.clientX,l.clientY,l)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(l);return}}O=OHx(this,e,O);e=O.x;O=O.y;this.dragging_&&this.dispatchEvent(new Ln("beforedrag",
this,l.clientX,l.clientY,l,e,O))&&(EdC(this,l,e,O),l.preventDefault())}};
var OHx=function(l,e,O){var E=$S(WR(l.JSC$8183_document_));e+=E.x-l.pageScroll.x;O+=E.y-l.pageScroll.y;l.pageScroll=E;l.deltaX+=e;l.deltaY+=O;return new _.KF(lB1(l,l.deltaX),eTk(l,l.deltaY))};
_.h6.prototype.onScroll_=function(l){var e=OHx(this,0,0);l.clientX=this.clientX;l.clientY=this.clientY;EdC(this,l,e.x,e.y)};
var EdC=function(l,e,O,E){l.target.style.left=O+"px";l.target.style.top=E+"px";l.dispatchEvent(new Ln("drag",l,e.clientX,e.clientY,e,O,E))},lB1=function(l,e){var O=l.limits;
l=isNaN(O.left)?null:O.left;O=isNaN(O.width)?0:O.width;return Math.min(l!=null?l+O:Infinity,Math.max(l!=null?l:-Infinity,e))},eTk=function(l,e){var O=l.limits;
l=isNaN(O.top)?null:O.top;O=isNaN(O.height)?0:O.height;return Math.min(l!=null?l+O:Infinity,Math.max(l!=null?l:-Infinity,e))};
_.h6.prototype.isDragging=function(){return this.dragging_};
var Ln=function(l,e,O,E,J,z,M){_.k$.call(this,l);this.clientX=O;this.clientY=E;this.browserEvent=J;this.left=z!==void 0?z:e.deltaX;this.top=M!==void 0?M:e.deltaY};
_.o_(Ln,_.k$);var t6=function(l){this.JSC$8190_map_=new Map;var e=arguments.length;if(e>1){if(e%2)throw Error("oa");for(var O=0;O<e;O+=2)this.set(arguments[O],arguments[O+1])}else l&&this.addAll(l)};
_.X=t6.prototype;_.X.getCount=function(){return this.JSC$8190_map_.size};
_.X.getValues=function(){return Array.from(this.JSC$8190_map_.values())};
_.X.getKeys=function(){return Array.from(this.JSC$8190_map_.keys())};
_.X.containsKey=function(l){return this.JSC$8190_map_.has(l)};
_.X.containsValue=function(l){return this.getValues().some(function(e){return e==l})};
_.X.equals=function(l,e){var O=this;e=e===void 0?function(E,J){return E===J}:e;
return this===l?!0:this.JSC$8190_map_.size!=l.getCount()?!1:this.getKeys().every(function(E){return e(O.JSC$8190_map_.get(E),l.get(E))})};
_.X.isEmpty=function(){return this.JSC$8190_map_.size==0};
_.X.clear=function(){this.JSC$8190_map_.clear()};
_.X.remove=function(l){return this.JSC$8190_map_.delete(l)};
_.X.get=function(l,e){return this.JSC$8190_map_.has(l)?this.JSC$8190_map_.get(l):e};
_.X.set=function(l,e){this.JSC$8190_map_.set(l,e);return this};
_.X.addAll=function(l){if(l instanceof t6){l=_.b(l.JSC$8190_map_);for(var e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;this.JSC$8190_map_.set(e,O)}}else if(l)for(l=_.b(Object.entries(l)),e=l.next();!e.done;e=l.next())O=_.b(e.value),e=O.next().value,O=O.next().value,this.JSC$8190_map_.set(e,O)};
_.X.forEach=function(l,e){var O=this;e=e===void 0?this:e;this.JSC$8190_map_.forEach(function(E,J){return l.call(e,E,J,O)})};
_.X.clone=function(){return new t6(this)};(function(){for(var l=["ms","moz","webkit","o"],e,O=0;e=l[O]&&!_.Op.requestAnimationFrame;++O)_.Op.requestAnimationFrame=_.Op[e+"RequestAnimationFrame"],_.Op.cancelAnimationFrame=_.Op[e+"CancelAnimationFrame"]||_.Op[e+"CancelRequestAnimationFrame"];if(!_.Op.requestAnimationFrame){var E=0;_.Op.requestAnimationFrame=function(J){var z=(new Date).getTime(),M=Math.max(0,16-(z-E));E=z+M;return _.Op.setTimeout(function(){J(z+M)},M)};
_.Op.cancelAnimationFrame||(_.Op.cancelAnimationFrame=function(J){clearTimeout(J)})}})();
var JTq=[[],[]],XKq=0,zTH=!1,bHC=0,VDF=function(l,e){var O=bHC++,E={measureTask:{id:O,fn:l.measure,context:e},mutateTask:{id:O,fn:l.mutate,context:e},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(E.args||(E.args=[]),E.args.length=0,E.args.push.apply(E.args,arguments),E.args.push(E.state)):E.args&&E.args.length!=0?(E.args[0]=E.state,E.args.length=1):E.args=[E.state];E.isScheduled||(E.isScheduled=!0,JTq[XKq].push(E));zTH||(zTH=!0,window.requestAnimationFrame(MDH))}},MDH=
function(){zTH=!1;
var l=JTq[XKq],e=l.length;XKq=(XKq+1)%2;for(var O,E=0;E<e;++E){O=l[E];var J=O.measureTask;O.isScheduled=!1;J.fn&&J.fn.apply(J.context,O.args)}for(E=0;E<e;++E)O=l[E],J=O.mutateTask,O.isScheduled=!1,J.fn&&J.fn.apply(J.context,O.args),O.state={};l.length=0};var ZHS=_.E9(["about:blank"]),umR=_.E9(["javascript:undefined"]),CPx=_.OP(ZHS);_.Z9(CPx);var od6=_.OP(umR);_.Z9(od6);var qD=function(l){_.Kx.call(this);this.JSC$8196_element_=l;this.listenKeyIn_=_.f4(this.JSC$8196_element_,"focus",this,!0);this.listenKeyOut_=_.f4(this.JSC$8196_element_,"blur",this,!0)};
_.o_(qD,_.Kx);qD.prototype.handleEvent=function(l){var e=new _.Ia(l.event_);e.type=l.type=="focusin"||l.type=="focus"?"focusin":"focusout";this.dispatchEvent(e)};
qD.prototype.disposeInternal=function(){qD.superClass_.disposeInternal.call(this);Hf(this.listenKeyIn_);Hf(this.listenKeyOut_);delete this.JSC$8196_element_};var $zq=function(l,e){this.JSC$8199_element_=l;this.JSC$8199_dom_=e};var ve=function(l,e){Pe.call(this,e);this.useIframeMask_=!!l;this.lastFocus_=null;this.resizeBackgroundTask_=VDF({mutate:this.resizeBackground_},this);VDF({mutate:this.updateModalAndBackground_},this)};
_.o_(ve,Pe);_.X=ve.prototype;_.X.focusHandler_=null;_.X.visible_=!1;_.X.bgEl_=null;_.X.bgIframeEl_=null;_.X.tabCatcherElement_=null;_.X.backwardTabWrapInProgress_=!1;_.X.getCssClass=function(){return"goog-modalpopup"};
_.X.getBackgroundElement=function(){return this.bgEl_};
_.X.JSC$8180_createDom=function(){ve.superClass_.JSC$8180_createDom.call(this);var l=this.getElement(),e=CL(this.getCssClass()).split(" ");Dg(l,e);l.tabIndex=0;_.Q6(l,!1);WGC(this);dzC(this)};
var WGC=function(l){if(l.useIframeMask_&&!l.bgIframeEl_){var e=l.JSC$8178_dom_.JSC$7365_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.H2(e,CPx);l.bgIframeEl_=e;l.bgIframeEl_.className=l.getCssClass()+"-bg";_.Q6(l.bgIframeEl_,!1);di0(l.bgIframeEl_,0)}l.bgEl_||(l.bgEl_=l.JSC$8178_dom_.JSC$7365_createDom("DIV",l.getCssClass()+"-bg"),_.Q6(l.bgEl_,!1))},dzC=function(l){l.tabCatcherElement_||(l.tabCatcherElement_=l.JSC$8178_dom_.createElement("SPAN"),_.Q6(l.tabCatcherElement_,
!1),l.tabCatcherElement_.tabIndex=0,l.tabCatcherElement_.style.position="absolute")};
_.X=ve.prototype;_.X.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.X.canDecorate=function(l){return!!l&&l.tagName=="DIV"};
_.X.decorateInternal=function(l){ve.superClass_.decorateInternal.call(this,l);l=CL(this.getCssClass()).split(" ");Dg(this.getElement(),l);WGC(this);dzC(this);this.getElement().tabIndex=0;_.Q6(this.getElement(),!1)};
_.X.enterDocument=function(){this.bgIframeEl_&&_.s8(this.bgIframeEl_,this.getElement());_.s8(this.bgEl_,this.getElement());ve.superClass_.enterDocument.call(this);_.GP(this.tabCatcherElement_,this.getElement());this.focusHandler_=new qD(this.JSC$8178_dom_.JSC$7363_document_);U7(this).listen(this.focusHandler_,"focusin",this.onFocus);gdR(this,!1)};
_.X.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Q9(this.focusHandler_);ve.superClass_.exitDocument.call(this);_.wk(this.bgIframeEl_);_.wk(this.bgEl_);_.wk(this.tabCatcherElement_)};
_.X.setVisible=function(l){if(l!=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_&&gdR(this,l),l){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8178_dom_.JSC$7363_document_.activeElement}catch(J){}this.updateModalAndBackground_();U7(this).listen(this.JSC$8178_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8178_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);iHC(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)jb(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){U7(this).unlisten(this.JSC$8178_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8178_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)jb(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var e=this.JSC$8178_dom_,O=e.JSC$7363_document_.body,E=e.JSC$7363_document_.activeElement||O;if(!this.lastFocus_||this.lastFocus_==O){this.lastFocus_=null;break a}(E==O||e.contains(this.getElement(),E))&&this.lastFocus_.focus()}catch(J){}this.lastFocus_=
null}}};
var gdR=function(l,e){l.modalAriaVisibilityHelper_||(l.modalAriaVisibilityHelper_=new $zq(l.JSC$8178_element_,l.JSC$8178_dom_));l=l.modalAriaVisibilityHelper_;if(e){l.hiddenElements_||(l.hiddenElements_=[]);e=l.JSC$8199_dom_.getChildren(l.JSC$8199_dom_.JSC$7363_document_.body);for(var O=0;O<e.length;O++){var E=e[O],J;if(J=E!=l.JSC$8199_element_)J=E.getAttribute("aria-hidden"),J=!(J==null||J==void 0?0:String(J));J&&(YN(E,"hidden",!0),l.hiddenElements_.push(E))}}else if(l.hiddenElements_){for(e=0;e<
l.hiddenElements_.length;e++)l.hiddenElements_[e].removeAttribute("aria-hidden");l.hiddenElements_=null}};
ve.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var iHC=function(l,e){l.bgIframeEl_&&_.Q6(l.bgIframeEl_,e);l.bgEl_&&_.Q6(l.bgEl_,e);_.Q6(l.getElement(),e);_.Q6(l.tabCatcherElement_,e)};
_.X=ve.prototype;_.X.onShow=function(){this.dispatchEvent("show")};
_.X.onHide=function(){iHC(this,!1);this.dispatchEvent("hide")};
_.X.isVisible=function(){return this.visible_};
_.X.focus=function(){this.focusElement_()};
_.X.resizeBackground_=function(){this.bgIframeEl_&&_.Q6(this.bgIframeEl_,!1);this.bgEl_&&_.Q6(this.bgEl_,!1);var l=this.JSC$8178_dom_.JSC$7363_document_;var e=_.CF(jB(this.JSC$8178_dom_.JSC$7363_document_)||window);var O=Math.max(e.width,Math.max(l.body.scrollWidth,l.documentElement.scrollWidth));l=Math.max(e.height,Math.max(l.body.scrollHeight,l.documentElement.scrollHeight));this.bgIframeEl_&&(_.Q6(this.bgIframeEl_,!0),_.Cqk(this.bgIframeEl_,O,l));this.bgEl_&&(_.Q6(this.bgEl_,!0),_.Cqk(this.bgEl_,
O,l))};
_.X.reposition=function(){var l;if(_.ukk(this.getElement())=="fixed")var e=l=0;else e=$S(this.JSC$8178_dom_),l=e.x,e=e.y;var O=$iq(this.getElement());var E=_.CF(jB(this.JSC$8178_dom_.JSC$7363_document_)||window);l=Math.max(l+E.width/2-O.width/2,0);e=Math.max(e+E.height/2-O.height/2,0);L3(this.getElement(),l,e);L3(this.tabCatcherElement_,l,e)};
_.X.onFocus=function(l){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():l.target==this.tabCatcherElement_&&fx(this.focusElement_,0,this)};
_.X.focusElement_=function(){try{this.getElement().focus()}catch(l){}};
_.X.disposeInternal=function(){_.Q9(this.popupShowTransition_);this.popupShowTransition_=null;_.Q9(this.popupHideTransition_);this.popupHideTransition_=null;_.Q9(this.bgShowTransition_);this.bgShowTransition_=null;_.Q9(this.bgHideTransition_);this.bgHideTransition_=null;ve.superClass_.disposeInternal.call(this)};var Uo=function(l,e,O){ve.call(this,e,O);this.JSC$8209_class_=l||"modal-dialog";this.buttons_=(new ND).addButton(wKH,!0).addButton(AT6,!1,!0)};
_.o_(Uo,ve);_.X=Uo.prototype;_.X.escapeToCancel_=!0;_.X.hasTitleCloseButton_=!0;_.X.modal_=!0;_.X.draggable_=!0;_.X.backgroundElementOpacity_=.5;_.X.title_="";_.X.JSC$8211_dragger_=null;_.X.JSC$8211_disposeOnHide_=!1;_.X.titleEl_=null;_.X.titleTextEl_=null;_.X.titleTextId_=null;_.X.titleCloseEl_=null;_.X.contentEl_=null;_.X.buttonEl_=null;_.X.getCssClass=function(){return this.JSC$8209_class_};
_.X.setTitle=function(l){this.title_=l;this.titleTextEl_&&_.PY(this.titleTextEl_,l)};
_.X.getTitle=function(){return this.title_};
_.X.getContent=function(){return""};
_.X.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var ndF=function(l){l.getElement()||l.render();return l.getElement()};
Uo.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Uo.superClass_.getBackgroundElement.call(this)};
var aB1=function(l,e){l.backgroundElementOpacity_=e;l.getElement()&&(e=l.getBackgroundElement())&&di0(e,l.backgroundElementOpacity_)};
Uo.prototype.setDraggable=function(l){this.draggable_=l;kQx(this,l&&this.inDocument_)};
Uo.prototype.JSC$8211_handleDrag=function(){};
var kQx=function(l,e){var O=CL(l.JSC$8209_class_+"-title-draggable").split(" ");l.getElement()&&(e?Dg(l.titleEl_,O):xR1(l.titleEl_,O));e&&!l.JSC$8211_dragger_?(e=new _.h6(l.getElement(),l.titleEl_),l.JSC$8211_dragger_=e,Dg(l.titleEl_,O),_.f4(l.JSC$8211_dragger_,"start",l.setDraggerLimits_,!1,l),_.f4(l.JSC$8211_dragger_,"drag",l.JSC$8211_handleDrag,!1,l)):!e&&l.JSC$8211_dragger_&&(l.JSC$8211_dragger_.dispose(),l.JSC$8211_dragger_=null)};
_.X=Uo.prototype;
_.X.JSC$8180_createDom=function(){Uo.superClass_.JSC$8180_createDom.call(this);var l=this.getElement(),e=this.JSC$8178_dom_;this.titleTextId_=this.getId();var O=this.getId()+".contentEl";this.titleEl_=e.JSC$7365_createDom("DIV",this.JSC$8209_class_+"-title",this.titleTextEl_=e.JSC$7365_createDom("SPAN",{className:this.JSC$8209_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=e.JSC$7365_createDom("SPAN",this.JSC$8209_class_+"-title-close"));qpq(l,this.titleEl_,this.contentEl_=
e.JSC$7365_createDom("DIV",{className:this.JSC$8209_class_+"-content",id:O}),this.buttonEl_=e.JSC$7365_createDom("DIV",this.JSC$8209_class_+"-buttons"));SBq(this.titleTextEl_,"heading");SBq(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;YN(this.titleCloseEl_,"label","Close");SBq(l,"dialog");YN(l,"labelledby",this.titleTextId_||"");_.Q6(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(l=this.buttons_,l.JSC$8212_element_=this.buttonEl_,l.render());_.Q6(this.buttonEl_,!!this.buttons_);
aB1(this,this.backgroundElementOpacity_)};
_.X.decorateInternal=function(l){Uo.superClass_.decorateInternal.call(this,l);l=this.getElement();var e=this.JSC$8209_class_+"-content";this.contentEl_=HY(document,null,e,l)[0];this.contentEl_||(this.contentEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",e),l.appendChild(this.contentEl_));e=this.JSC$8209_class_+"-title";var O=this.JSC$8209_class_+"-title-text",E=this.JSC$8209_class_+"-title-close";(this.titleEl_=HY(document,null,e,l)[0])?(this.titleTextEl_=HY(document,null,O,this.titleEl_)[0],this.titleCloseEl_=
HY(document,null,E,this.titleEl_)[0]):(this.titleEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",e),l.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=zFC(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.FD("SPAN",{className:O,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;YN(l,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8178_dom_.JSC$7365_createDom("SPAN",
E),this.titleEl_.appendChild(this.titleCloseEl_));_.Q6(this.titleCloseEl_,this.hasTitleCloseButton_);e=this.JSC$8209_class_+"-buttons";(this.buttonEl_=HY(document,null,e,l)[0])?(this.buttons_=new ND(this.JSC$8178_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",e),l.appendChild(this.buttonEl_),this.buttons_&&(l=this.buttons_,l.JSC$8212_element_=this.buttonEl_,l.render()),_.Q6(this.buttonEl_,!!this.buttons_));aB1(this,this.backgroundElementOpacity_)};
_.X.enterDocument=function(){Uo.superClass_.enterDocument.call(this);U7(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);U7(this).listen(this.buttonEl_,"click",this.onButtonClick_);kQx(this,this.draggable_);U7(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var l=this.getElement();SBq(l,"dialog");this.titleTextEl_.id!==""&&YN(l,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){l=this.JSC$8178_dom_;
var e=this.getBackgroundElement();l.removeNode(this.bgIframeEl_);l.removeNode(e)}this.isVisible()&&gdR(this,!1)}};
_.X.exitDocument=function(){this.isVisible()&&this.setVisible(!1);kQx(this,!1);Uo.superClass_.exitDocument.call(this)};
_.X.setVisible=function(l){l!=this.isVisible()&&(this.inDocument_||this.render(),Uo.superClass_.setVisible.call(this,l))};
_.X.onShow=function(){Uo.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.X.onHide=function(){Uo.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8211_disposeOnHide_&&this.dispose()};
_.X.setDraggerLimits_=function(){var l=this.JSC$8178_dom_.JSC$7363_document_,e=_.CF(jB(l)||window),O=Math.max(l.body.scrollWidth,e.width);l=Math.max(l.body.scrollHeight,e.height);var E=$iq(this.getElement());_.ukk(this.getElement())=="fixed"?this.JSC$8211_dragger_.limits=new U8(0,0,Math.max(0,e.width-E.width),Math.max(0,e.height-E.height)):this.JSC$8211_dragger_.limits=new U8(0,0,O-E.width,l-E.height)};
_.X.onTitleCloseClick_=function(){IBi(this)};
var IBi=function(l){if(l.hasTitleCloseButton_){var e=l.buttons_,O=e&&e.cancelButton_;O?(e=e.get(O),l.dispatchEvent(new rU(O,e))&&l.setVisible(!1)):l.setVisible(!1)}},mzS=function(l){l.hasTitleCloseButton_=!1;
l.titleCloseEl_&&_.Q6(l.titleCloseEl_,l.hasTitleCloseButton_)};
Uo.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Uo.superClass_.disposeInternal.call(this)};
Uo.prototype.onButtonClick_=function(l){a:{for(l=l.target;l!=null&&l!=this.buttonEl_;){if(l.tagName=="BUTTON")break a;l=l.parentNode}l=null}if(l&&!l.disabled){l=l.name;var e=this.buttons_.get(l);this.dispatchEvent(new rU(l,e))&&this.setVisible(!1)}};
Uo.prototype.onKey_=function(l){var e=!1,O=!1,E=this.buttons_,J=l.target;if(l.type=="keydown")if(this.escapeToCancel_&&l.keyCode==27){var z=E&&E.cancelButton_;J=J.tagName=="SELECT"&&!J.disabled;z&&!J?(O=!0,e=E.get(z),e=this.dispatchEvent(new rU(z,e))):J||(e=!0)}else{if(l.keyCode==9&&l.shiftKey&&J==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(g){}fx(this.resetBackwardTabWrap_,0,this)}}else if(l.keyCode==13){if(J.tagName=="BUTTON"&&!J.disabled)z=J.name;
else if(J==this.titleCloseEl_)IBi(this);else if(E){var M=E.defaultButton_,Z;if(Z=M)a:{Z=nb("BUTTON",E.JSC$8212_element_);for(var u,d=0;u=Z[d];d++)if(u.name==M||u.id==M){Z=u;break a}Z=null}J=(J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="A")&&!J.disabled;!Z||Z.disabled||J||(z=M)}z&&E&&(O=!0,e=this.dispatchEvent(new rU(z,String(E.get(z)))))}else J!=this.titleCloseEl_||l.keyCode!=32&&l.key!=" "||IBi(this);if(e||O)l.stopPropagation(),l.preventDefault();e&&this.setVisible(!1)};
var rU=function(l,e){this.type="dialogselect";this.key=l;this.caption=e};
_.o_(rU,_.k$);var ND=function(l){t6.call(this);l||WR();this.cancelButton_=this.JSC$8212_element_=this.defaultButton_=null};
_.o_(ND,t6);_.X=ND.prototype;_.X.clear=function(){t6.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.X.set=function(l,e,O,E){t6.prototype.set.call(this,l,e);O&&(this.defaultButton_=l);E&&(this.cancelButton_=l);return this};
_.X.addButton=function(l,e,O){return this.set(l.key,l.caption,e,O)};
_.X.render=function(){if(this.JSC$8212_element_){_.Ye(this.JSC$8212_element_,WGq);var l=WR(this.JSC$8212_element_);this.forEach(function(e,O){e=l.JSC$7365_createDom("BUTTON",{name:O},e);O==this.defaultButton_&&(e.className="goog-buttonset-default");this.JSC$8212_element_.appendChild(e)},this)}};
_.X.decorate=function(l){if(l&&l.nodeType==1){this.JSC$8212_element_=l;l=nb("BUTTON",this.JSC$8212_element_);for(var e,O,E,J=0;e=l[J];J++)if(O=e.name||e.id,E=zFC(e)||e.value,O){var z=J==0;this.set(O,E,z,e.name=="cancel");z&&_.XY(e,"goog-buttonset-default")}}};
_.X.getElement=function(){return this.JSC$8212_element_};
var wKH={key:"ok",caption:"OK"},AT6={key:"cancel",caption:"Cancel"},yTq={key:"yes",caption:"Yes"},pK1={key:"no",caption:"No"},KGR={key:"save",caption:"Save"},jU0={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new ND).addButton(wKH,!0,!0),(new ND).addButton(wKH,!0).addButton(AT6,!1,!0),(new ND).addButton(yTq,!0).addButton(pK1,!1,!0),(new ND).addButton(yTq).addButton(pK1,!0).addButton(AT6,!1,!0),(new ND).addButton(jU0).addButton(KGR).addButton(AT6,!0,!0));_.o_(XKV,Uo);_.o_(zT8,Yz);var HHS=_.E9(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),cTq=_.E9(["//apis.google.com/js/rpc.js"]),$zV=_.OP(HHS),odx=_.OP(cTq),hl=null;var Lb=function(l,e){_.Kx.call(this);this.JSC$8221_element_=l;l=_.JG(this.JSC$8221_element_)?this.JSC$8221_element_:this.JSC$8221_element_?this.JSC$8221_element_.body:null;this.isRtl_=!!l&&_.gq6(l);this.listenKey_=_.f4(this.JSC$8221_element_,_.iv?"DOMMouseScroll":"mousewheel",this,e)};
_.o_(Lb,_.Kx);Lb.prototype.handleEvent=function(l){var e=0,O=0,E=l.event_;E.type=="mousewheel"?(l=FGq(-E.wheelDelta),E.wheelDeltaX!==void 0?(e=FGq(-E.wheelDeltaX),O=FGq(-E.wheelDeltaY)):O=l):(l=E.detail,l>100?l=3:l<-100&&(l=-3),E.axis!==void 0&&E.axis===E.HORIZONTAL_AXIS?e=l:O=l);typeof this.maxDeltaX_==="number"&&(e=_.hc(e,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(O=_.hc(O,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(e=-e);e=new fB0(l,E,e,O);this.dispatchEvent(e)};
var FGq=function(l){return _.ws&&(_.yNM||K5M)&&l%40!=0?l:l/40};
Lb.prototype.disposeInternal=function(){Lb.superClass_.disposeInternal.call(this);Hf(this.listenKey_);this.listenKey_=null};
var fB0=function(l,e,O,E){_.Ia.call(this,e);this.type="mousewheel";this.detail=l;this.deltaX=O;this.deltaY=E};
_.o_(fB0,_.Ia);_.$x=function(l){var e="instance_";if(l.instance_&&l.hasOwnProperty(e))return l.instance_;e=new l;return l.instance_=e};var CPp;var RTk=_.E9(["https://about:blank"]),T5H=_.E9(['javascript:""']),sU1=_.E9(["about:blank"]);_.o_(xz,XKV);_.X=xz.prototype;_.X.JSC$8229_url_="";_.X.JSC$8229_iframe_=null;_.X.iframeLoaded_=!1;_.X.loadedFired_=!1;_.X.callback_=function(){};
_.X.enterDocument=function(){xz.superClass_.enterDocument.call(this);ZHg(this.getBackgroundElement(),U7(this))};
_.X.render=function(l){var e=this;xz.superClass_.render.call(this,l);this.useGapi_?sLS(this.iframeManager_,window).then(function(){return GQS(e)}).then(null,function(){e.callback_({action:"error"})}):B51(this)};
var GQS=function(l){var e=l.JSC$8178_dom_.JSC$7365_createDom("div",["picker-dialog-content","picker-frame"]);_.Q6(e,!1);l.getContentElement().appendChild(e);return Ghi(l.iframeManager_,e,function(O){var E=ZPH(O["iframe-command"]);switch(E.getCommand()){case 1:O=l.callback_;E=_.Cu(E,bZ,2);var J="";switch(E.getStatus()){case 2:J="cancel";break;case 1:J="picked";break;case 3:J="error"}var z=_.e$(E,f2,2,_.Oo(xVq));E=z.length===0?{action:J}:gok(z,J,_.Cu(E,bP1,7));O.call(l,E);l.setVisible(!1);break;case 4:mzS(l);
l.callback_({action:"loaded"});break;case 7:case 8:O=l.callback_;a:{J=E.getCommand();z=_.Cu(E,bZ,2);switch(J){case 7:J="uploadScheduled";break;case 8:J="uploadStateChange";break;default:E={};break a}E=_.e$(z,f2,2,_.Oo(xVq));if(E.length===0)E={action:J};else{var M=_.Cu(z,bP1,7);z=M&&_.BW(M,1);M=z_R(M);E=Vsq(E,J,z,M)}}O.call(l,E)}},l.JSC$8229_url_,l.targetId_,l.rpcToken_).then(function(O){l.JSC$8229_iframe_=O.getIframeEl();
PPS(l);_.Q6(l.JSC$8229_iframe_.parentElement,!0);_.XY(l.getElement(),"picker-dialog");Uzq(l);return O})},B51=function(l){l.JSC$8229_iframe_=l.JSC$8178_dom_.JSC$7365_createDom("IFRAME",{id:l.targetId_,
name:l.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.H2(l.JSC$8229_iframe_,YCx(l));_.XY(l.getElement(),"picker-dialog");l.getContentElement().appendChild(l.JSC$8229_iframe_);U7(l).listen(l.JSC$8229_iframe_,"load",function(){return void PPS(l)});
l.JSC$8229_iframe_.src=l.JSC$8229_url_;Uzq(l)},LGS=function(l){hT1(l,(0,_.pb)(function(e){e.setAuthToken(this.targetId_,this.rpcToken_)},l))},Uzq=function(l){var e=_.DF(_.rk(l.JSC$8229_url_),"title");
e&&l.setTitle(e)},YCx=function(l){return _.uug("Internet Explorer")>=7&&_.Jq(l.JSC$8229_url_,"https")?_.OP(RTk):_.gs?_.OP(T5H):_.OP(sU1)},PPS=function(l){LGS(l);
l.iframeLoaded_=!0;l.JSC$8229_iframe_.tabIndex=0;l.isVisible()&&l.focus()};
xz.prototype.handleKeydown_=function(l){l.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),l.stopPropagation(),l.preventDefault())};
var hT1=function(l,e){var O=l.JSC$8227_gadgetsDomHelper_;MD8(function(){e(O.getWindow().gadgets.rpc)},O)};
xz.prototype.setUrl=function(l){l=_.S$(new _.Jg(l),"rpcService",this.targetId_);_.S$(l,"rpctoken",this.rpcToken_);_.Zq(l,"rpctoken="+this.rpcToken_);_.XB(l,"https");this.JSC$8229_url_=l.toString();this.JSC$8229_iframe_&&(this.JSC$8229_iframe_.src=this.JSC$8229_url_)};
var tDF=function(l,e){l.callback_=e;hT1(l,(0,_.pb)(function(O){O.register(this.targetId_,(0,_.pb)(this.handlePickerAction_,this))},l))};
xz.prototype.handlePickerAction_=function(l){var e=l.action;e=="loaded"&&(this.loadedFired_=!0,qC1(this,new JT2(this.isVisible())),vdS(this),mzS(this),U7(this).unlisten(this.JSC$8178_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8229_iframe_.tabIndex=0);e!="picked"&&e!="cancel"||this.setVisible(!1);this.callback_(l)};
var vdS=function(l){l.JSC$8229_appId_&&qC1(l,new Edq(l.JSC$8229_appId_,window.location.protocol+"//"+window.location.host))};
xz.prototype.setRelayUrl=function(l){hT1(this,(0,_.pb)(function(e){e.setRelayUrl(this.targetId_,l)},this))};
var qC1=function(l,e){l.useGapi_&&h_q(e,l.iframeManager_).then(null,function(){l.callback_({action:"error"})});
hT1(l,(0,_.pb)(function(O){O.call(this.targetId_,"picker",null,e)},l))};
xz.prototype.resizePicker_=function(){var l=jB(this.JSC$8178_dom_.JSC$7363_document_)||window;if(_.DF(_.rk(this.JSC$8229_url_),"ignoreLimits")=="true")l=new _.uX(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.DF(_.rk(this.JSC$8229_url_),"shadeDialog")=="true"){var e=ndF(this);e=iR6(e);var O=_.CF(l);l=O.width-80;O=O.height-40;e&&(l-=e.left?e.left:0,l-=e.right?e.right:0,O-=e.top?e.top:0,O-=e.bottom?e.bottom:0);l=new _.uX(l>0?l:0,O>0?O:0)}else(e=this.preferredDialogWidth_)?(e=Math.max(320,
Math.min(1051,e)),(O=this.preferredDialogHeight_)||(O=_.CF(l).height*.85),O=Math.max(480,Math.min(650,O))):(e=_.CF(l),O=e.width*.618,O=O<e.height?Math.round(Math.max(480,Math.min(650,O*.85))):Math.round(Math.max(480,Math.min(650,e.height*.85))),e=Math.round(O/.618)),l=_.CF(l),e=Math.min(e,Math.max(l.width,320)),O=Math.min(O,Math.max(l.height,480)),l=new _.uX(e,O);_.Cqk(this.getContentElement(),l);this.reposition()};
xz.prototype.reposition=function(){if(_.DF(_.rk(this.JSC$8229_url_),"shadeDialog")=="true"){var l=$iq(this.getElement()),e=_.CF(this.JSC$8178_dom_.getWindow());l=Math.floor(e.width/2-l.width/2);e=ndF(this);if(e=iR6(e)){var O=e.left?e.left:0;O+=e.right?e.right:0;l=Math.floor(l-O/2)}l=l>0?l:0;e=$S(this.JSC$8178_dom_).y;L3(this.getElement(),l,e)}else xz.superClass_.reposition.call(this)};
xz.prototype.setVisible=function(l){if(l!=this.isVisible()&&this.autoSizeDialog_){var e=this.JSC$8178_dom_.getWindow();l?(this.resizePicker_(),U7(this).listen(e,"resize",this.resizePicker_),this.iframeLoaded_||U7(this).listen(e,"keydown",this.handleKeydown_)):(U7(this).unlisten(e,"resize",this.resizePicker_),this.iframeLoaded_||U7(this).unlisten(e,"keydown",this.handleKeydown_))}xz.superClass_.setVisible.call(this,l);qC1(this,new JT2(l))};
xz.prototype.focus=function(){xz.superClass_.focus.call(this);if(this.JSC$8229_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8229_iframe_.focus()}catch(l){}};var Bc=function(l,e){e=e===void 0?xz:e;Yz.call(this,l);this.pickerConstructor=e;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(l=window.location.origin)||(l=window.location.protocol+"//"+window.location.host);l&&this.urlParamMap_.set("origin",l);this.postProcessors_=[]};
_.m(Bc,zT8);Bc.prototype.JSC$8234_disposeOnHide_=!1;
Bc.prototype.build=function(){this.JSC$8135_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8135_appId_);this.getRelayUrl()||this.setRelayUrl(_.MD(_.Zq(_.Vi(_.rk(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var l=new this.pickerConstructor(N5q(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);l.JSC$8211_disposeOnHide_=this.JSC$8234_disposeOnHide_;
l.JSC$8229_appId_=this.JSC$8135_appId_;l.loadedFired_&&vdS(l);tDF(l,this.callback_);return l};
var rTH=function(l){l.urlParamMap_.set("multiselectEnabled","true");return l};
Bc.prototype.getHeight=function(){return this.dialogHeight_};
Bc.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
Bc.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
Bc.prototype.getWidth=function(){return this.dialogWidth_};
var DzS=function(l){l.JSC$8234_disposeOnHide_=void 0;return l};
Bc.prototype.setRelayUrl=function(l){this.urlParamMap_.set("parent",l);return this};
var SC0=function(l,e){l.urlParamMap_.set("selectButtonLabel",e);return l};
Bc.prototype.setSize=function(l,e){this.dialogWidth_=l;this.dialogHeight_=e;return this};
Bc.prototype.setTitle=function(l){this.urlParamMap_.set("title",l);return this};
var N5q=function(l){l.postProcessors_.length&&l.urlParamMap_.set("pp",JSON.stringify(l.postProcessors_));l.urlParamMap_.set("nav",OSx(l.nav_));var e=new _.Jg(l.getBaseUrl());l.urlParamMap_.forEach(function(O,E){_.S$(e,E,O)});
return e};var lh1=function(l,e){l.name!==void 0?(this.name=l.name,this.code=QU6[l.name]):(this.code=l=l.code,this.name=xz1(l));_.l2.call(this,Kt2("%s %s",this.name,e))};
_.o_(lh1,_.l2);var xz1=function(l){var e=_.mm.findKey(QU6,function(O){return l==O});
if(e===void 0)throw Error("lb`"+l);return e},Dq={},QU6=(Dq.AbortError=3,Dq.EncodingError=5,Dq.InvalidModificationError=9,Dq.InvalidStateError=7,Dq.NotFoundError=1,Dq.NotReadableError=4,Dq.NoModificationAllowedError=6,Dq.PathExistsError=12,Dq.QuotaExceededError=10,Dq.SecurityError=2,Dq.SyntaxError=8,Dq.TypeMismatchError=11,Dq);var ed1=function(l,e){_.k$.call(this,l.type,e);this.event_=l};
_.o_(ed1,_.k$);var OvH=function(l,e,O){O===void 0&&(O=l.size);return l.slice?l.slice(e,O):null};var gdL=new WeakMap,dzq=function(l,e){l=[l];for(var O=e.length-1;O>=0;--O)l.push(typeof e[O],e[O]);return l.join("\v")};_.wK8(function(){if(!_.Op.Blob)return!1;var l=new Uint8Array(100);try{var e=new Blob([l])}catch(O){return!1}return e.size!=100?!1:!0});
var E6C=_.wK8(function(){if(!_.Op.Blob)return!1;var l=new Uint8Array(100);try{var e=new Blob([l])}catch(O){return!1}return OvH(e,0,1)===null?!1:!0});_.Op.U3bHHf!=null||(_.Op.U3bHHf=0);_.Op.U3bHHf++;var ATx={};var EB=Symbol("tb");var JF=void 0;var RTu=bJ("WizInjectionContext_Dispatcher");var Vt=Symbol("ub");var w5=function(){},QDx=Symbol("vb"),mG=function(l){this.props=l;
this.__unmounted=!1};
mG.prototype.didPatch=function(){};
mG.prototype.didMount=function(){};
mG.prototype.didUnmount=function(){};
mG.prototype.didUpdate=function(){};var jUM=bJ("WizInjectionContext_RootElement");var cTV=bJ("WizInjectionContext_AppContext"),HHg=bJ("WizInjectionContext_ModelRootElement"),FG2=bJ("WizInjectionContext_RendererData"),fBM=bJ("WizInjectionContext_InjectingConstructor"),KGL=bJ("WizInjectionContext_AsyncDeps"),T58={};var YCp=!1;var qCT={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:ANd,enableLazyTsx:nFx,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:wB2,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};_.Zc=Object.assign({},{attributes:{},handleError:function(l){throw l;}},qCT);var J5S=Symbol("zb"),Rdg=Symbol("Ab"),BLx=Symbol("Bb"),syT=Symbol("Cb"),qsM=hC(function(l){return uJ(l)&&J5S in l});var xzT=Symbol("Db"),SV={},SCM=(SV[xzT]=!0,SV.debugName="[component]",SV.getComponentStack=function(){for(var l=[],e=this;e;)lhT(e)&&l.push(e.debugName),e=e.parent;return l},SV.registerSignal=function(){},SV.registerEffect=function(){},SV);var CS=null,W3=!1,zdM=1,iJ=Symbol("Eb"),IL={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Qi=Symbol("Fb"),xN=Symbol("Gb"),gX=Symbol("Hb"),$GW=Object.assign({},IL,{value:Qi,dirty:!0,error:null,equal:edx,kind:"computed",producerMustRecompute:function(l){return l.value===Qi||l.value===xN},
producerRecomputeValue:function(l){if(l.value===xN)throw Error("da");var e=l.value;l.value=xN;var O=uRT(l),E=!1;try{var J=l.computation();oL(null);E=e!==Qi&&e!==gX&&J!==gX&&l.equal(e,J)}catch(z){J=gX,l.error=z}finally{Ct8(l,O)}E?l.value=e:(l.value=J,l.version++)}});var ivW=function(){throw Error();};var A52=null,dGL=Object.assign({},IL,{equal:edx,value:void 0,kind:"signal"});Object.assign({},IL,{value:Qi,dirty:!0,error:null,equal:edx,kind:"linkedSignal",producerMustRecompute:function(l){return l.value===Qi||l.value===xN},
producerRecomputeValue:function(l){if(l.value===xN)throw Error("da");var e=l.value;l.value=xN;var O=uRT(l);try{var E=l.source();var J=l.computation(E,e===Qi||e===gX?void 0:{source:l.sourceValue,value:e});l.sourceValue=E}catch(z){J=gX,l.error=z}finally{Ct8(l,O)}e!==Qi&&J!==gX&&l.equal(e,J)?l.value=e:(l.value=J,l.version++)}});Object.assign({},IL,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(l){l.schedule!==null&&l.schedule(l.ref)},
hasRun:!1,cleanupFn:function(){}});var ahV=Symbol("Ib"),nS=Symbol("Jb");var aL=Array.isArray;var c5x;var XkS={},fhx=HvW(Object.assign({},{consumerAllowSignalWrites:!0},XkS)),nH=HvW(Object.assign({},{consumerAllowSignalWrites:!0},XkS));var pS=0,KS=!1,l_=function(){this.queue=new Set};
l_.prototype.remove=function(l){this.queue.delete(l)};
l_.prototype.clear=function(){this.queue.clear()};
var zd0=function(){l_.apply(this,arguments)};
_.m(zd0,l_);zd0.prototype.schedule=function(l){this.queue.add(l)};
zd0.prototype.flush=function(){if(this.queue.size){KS=!0;try{for(var l=_.b(this.queue),e=l.next();!e.done;e=l.next()){var O=e.value;this.queue.delete(O);try{O.run()}catch(E){bvH(E)}}}finally{KS=!1}}};
var M7R=new zd0,eq=function(){l_.apply(this,arguments)};
_.m(eq,l_);var V71=function(){eq.apply(this,arguments)};
_.m(V71,eq);V71.prototype.schedule=function(l){l.hasRun?this.queue.add(l):l.run()};
V71.prototype.flush=function(){if(this.queue.size)if(_.Zc.flushRenderEffectsDuringRender){var l=this.queue;this.queue=new Set;v6x(l)}else v6x(this.queue)};
var TLp=new V71,Zvk=function(){eq.apply(this,arguments)};
_.m(Zvk,eq);Zvk.prototype.schedule=function(l){var e=this;return _.V(function(O){if(O.nextAddress==1)return l.hasRun?O.jumpTo(2):_.C(O,Promise.resolve(),3);if(O.nextAddress!=2)return l.run(),O.return();e.queue.add(l);_.Cl(O)})};
Zvk.prototype.flush=function(){var l=this;return _.V(function(e){if(e.nextAddress==1)return l.queue.size?_.C(e,Promise.resolve(),2):e.return();v6x(l.queue);_.Cl(e)})};
var Ptx=new Zvk,uR1=function(){eq.apply(this,arguments)};
_.m(uR1,eq);uR1.prototype.schedule=function(l){this.queue.add(l)};
uR1.prototype.flush=function(){this.queue.size&&v6x(this.queue)};
var GRd=new uR1,LWV=[TLp,M7R,GRd,Ptx],CtH=[TLp,GRd,Ptx],Yst=[];A52=function(){t7x();for(var l=_.b(Yst),e=l.next();!e.done;e=l.next())e=e.value,e()};
var bvH=Ep;var c3=Symbol("Ob");var H3=null,DGx,Ssx=null,QyM;var OS={},o6x=Object.assign({},IL,(OS[J5S]=!0,OS.effectType=Rdg,OS.isResettableContext=!0,OS.producerNode=void 0,OS.hasRun=!1,OS.effectFn=null,OS.consumerIsAlwaysLive=!0,OS.consumerAllowSignalWrites=!0,OS.consumerMarkedDirty=UGd,OS.kind="effect",OS.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(W3)throw Error("Pb");this.dirty=!1;if(!this.hasRun||bv8(this)){this.hasRun=!0;pKT(this);var l=_.X7(this),e=uRT(this);N5d("effectRun",this.debugName);try{RL(this.effectFn,this.componentStack)}catch(O){throw _.Zc.enableContextBasedComponentStacks&&
fS(O),O;}finally{rT8("effectRun",this.debugName),Ct8(this,e),_.X7(l)}}}},OS.componentStack=void 0,OS.debugName="[effect]",OS[Symbol.dispose]=function(){Ov8(this);
if(dX(this))for(var l=0;l<this.producerNode.length;l++)E6q(this.producerNode[l],this.producerIndexOfThis[l]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);l=_.b(CtH);for(var e=l.next();!e.done;e=l.next())e.value.remove(this);yTV(this)},OS));var epx=Object.assign({},o6x,{effectType:BLx});var OuT=Symbol("Qb");var EPd=Object.assign({},o6x,{effectType:Rdg});var B32=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 zpq={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},XwM=
{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}]}},j_M={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},VtA=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],MtW={"*":{async:1,dir:0,loading:2,target:3}};var $GS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ES={},u_L=(ES[1]=null,ES[2]=function(l,e){return e instanceof pU?jv(e):wG.toString()},ES[3]=function(l,e){return $e(e)?_.W2(e):$GS.test(String(e))?String(e):wG.toString()},ES[4]=function(l,e){return e instanceof Mm?_.Z9(e):wG.toString()},ES[5]=function(l,e){return String(e)},ES[7]=null,ES[8]=null,ES[10]=null,ES);var QXx=Symbol("Sb");var tPM=function(l){var e=WW1,O=l,E="",J="",z=1;l<0&&(l=-l);if(l===Infinity)l=(Infinity*Math.sign(O)).toString();else{for(var M=0;M<dGR.length;M++){var Z=dGR[M];z=e[Z];if(l>=z||z<=1&&l>.1*z){E=Z;break}}E?(E+="B",J=" "):z=1;l=Math.round(O/z*10)/10+J+E}return l},dGR="Y Z E P T G M K  m u n".split(" "),WW1={"":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};_.g60=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 xx8={};RegExp.prototype.hasOwnProperty("sticky");var YDx=function(l){l=String(l);for(var e=function(E,J,z){for(var M=Math.min(J.length-z,E.length),Z=0;Z<M;Z++){var u=J[z+Z];if(E[Z]!==("A"<=u&&u<="Z"?u.toLowerCase():u))return!1}return!0},O=0;(O=l.indexOf("<",O))!=-1;){if(e("\x3c/script",l,O)||e("\x3c!--",l,O))return"zSoyz";
O+=1}return l},QCA=function(l){return l!=null&&l.contentKind===xx8};var qa={default:"__default"};var iug=Object.prototype.hasOwnProperty;$xu.prototype=Object.create(null);var zL=nPM();var JT=null;var FwM=function(l){this.created=[];this.deleted=[];this.node=l};var fAL=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var l=this,e=l;l;)e=l,l=l.parentNode;return e};var kJA=function(l,e){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=l;this.key=e;this.text=void 0};var Dc=null,Ss=null,Na=null,xo=null,Kwp=[],pwd=mx8,OC=[],EC=[],Stt=function(l){return RpM(function(e,O,E){Na=Ss=e;Ss=null;O(E);yWt(null);Ss=Na;Na=Na.parentNode;return e},l)}(),DTV=function(l){return RpM(function(e,O,E){var J={nextSibling:e};
Ss=J;O(E);Na&&yWt(e.nextSibling);return J===Ss?null:Ss},l)}();var Xm=[],sCu=0;var zQ=new $xu;var Gr=new $xu;var ivS=nPM(),Ux8=ivS[qa.default],hpx=ivS.style,PLT=["focusin","focusout"];var HZu=function(){},wmT=function(){},TAW=function(){},FBM=function(){};var Mz=Symbol("Zb");var Dxx,rWx=N3d;var d5=Symbol("$b");var $rt={};var RBg=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(" ")),
fbp=new Set(["a","font","script","style","title"]);var aU={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var kd=null,IU=function(l,e){mG.call(this,l);var O=this;this.functionComponent=e;this.hooks=[];this.hookCounter=0;this.disposeEffects=P3(function(E){O.effectContext=E;_.B3(function(){kMt(O,O.el)})},_.Zc.alwaysTrackContexts||!!JF)};
_.m(IU,mG);IU.prototype.render=function(l){var e=kd;kd=this;this.hookCounter=0;var O=oL(nH),E=_.X7(this.effectContext);try{return N5d("render",this.componentName),this.functionComponent(l)}finally{rT8("render",this.componentName),_.X7(E),oL(O),kd=e}};
_.Ji.Object.defineProperties(IU.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return NLL(this.functionComponent)}}});var sDq=Symbol("nc"),KBt=function(l,e,O){this.kind=l;this.props=e;this.children=O};
_.m(KBt,w5);KBt.prototype.render=function(){return pmu(this.kind,this.props,this.children)};
KBt.prototype.getChildren=function(){return this.children};var BAM=[];ivW=function(l){throw Error("sb`"+l.debugName);};
(function(){var l=JT;JT=function(e){l==null||l(e);PNM(e)}})();var wkR=new WeakMap,A5q=0;var n6k=void 0,ahq={},kR1=new WeakMap,hVd={getComponent:function(l){if(l.hasAttribute("ng-version"))return ahq;if(!l.__wizComponent)return null;l=l.__wizComponent;kR1.set(l.propsAndState,l);return l.propsAndState},
getDirectiveMetadata:function(l){if(l===ahq)return{framework:"wiz",name:"<Root>",props:{}};l=kR1.get(l);if(!l)throw Error("oc");return{framework:"wiz",name:l.name,props:Object.fromEntries(Object.keys(l.props).map(function(e){return[e,e]}))}},
"\u0275setProfiler":function(l){var e;(e=n6k)==null||e();n6k=hdW(function(){l(2)})},
getInjector:function(l){return l.__wizComponent},
"\u0275getSignalGraph":function(l){var e;l=(e=l.effects)!=null?e:[];var O=Urp(l),E=Array.from(O.keys());e=[];l=[];for(var J=new Map,z=0;z<E.length;z++)J.set(E[z],z);O=_.b(O.entries());for(E=O.next();!E.done;E=O.next()){z=_.b(E.value);E=z.next().value;var M=z.next().value;z=E;E=J.get(z);var Z=wkR.get(z);Z||(Z=A5q.toString(),wkR.set(z,Z),A5q++);var u=void 0,d=(u=z.debugName)!=null?u:"";u=d.startsWith("[signal]")?d:d.replace(/@.+/,"");z.kind==="computed"?e.push({label:u,value:z.value,kind:z.kind,epoch:z.version,
debuggableFn:z.computation,id:Z}):z.kind==="signal"?e.push({label:u,value:z.value,kind:z.kind,epoch:z.version,id:Z}):z.kind==="effect"?(d=void 0,e.push({label:u,kind:z.kind,epoch:z.version,debuggableFn:(d=z.effectFn)!=null?d:void 0,id:Z})):e.push({label:u,kind:z.kind,epoch:z.version,id:Z});z=_.b(M);for(M=z.next();!M.done;M=z.next())l.push({consumer:E,producer:J.get(M.value)})}return{nodes:e,edges:l}},
isSignal:function(l){return typeof l==="function"&&l[iJ]!==void 0}};_.A.debugName="RlDudd";var YWd={nonNullableCondIsNull:function(){return Error("sc")}};var NAV=function(){this.map=new Map};
NAV.prototype.push=function(l,e){var O=this.map;O.has(l)&&(this.multi||(this.multi=new Map),this.multi.set(e,O.get(l)));O.set(l,e)};
NAV.prototype.pop=function(l){var e=this.map,O=e.get(l),E;O!==void 0&&((E=this.multi)==null?0:E.has(O))?(e.set(l,this.multi.get(O)),this.multi.delete(O)):e.delete(l);return O};_.KH.debugName="nsTGHd";_.jD.debugName="tbhMcf";_.HK.debugName="zyMFzb";_.cK.debugName="vI1rtf";_.Fm={OUT_OF_ORDER_HOOK_CALL:function(l){return Error("tc`"+l)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(l,e){return Error("xc`"+((e===void 0?0:e)?"IDOM":"Reactive")+"`"+l)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(l,e){return Error("yc`"+l+"`"+e)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(l){return Error("zc`"+l)},
USE_ELEMENT_NOT_ASSIGNED:function(l){return Error("Ac`"+String(l))}};Dxx=jDV;var EZ8=Symbol("Bc");nEp({beforeRender:function(l){var e=_.X7(l.effectContext);try{var O;((O=l.__syncEffects)==null?0:O.length)&&XQ2(l.__syncEffects)}finally{_.X7(e)}},
didPatch:function(l){var e=_.X7(l.effectContext);try{var O;((O=l.__syncEffects)==null?0:O.length)&&XQ2(l.__syncEffects)}finally{_.X7(e)}},
didUnmount:function(l){var e;((e=l.hooks)==null?0:e.length)&&l.hooks.forEach(JPt)}});var Ih1,mG6,y5R;Ih1=_.Op.window;_.UC=(Ih1==null?void 0:(mG6=Ih1.yt)==null?void 0:mG6.config_)||(Ih1==null?void 0:(y5R=Ih1.ytcfg)==null?void 0:y5R.data_)||{};_.zJ("yt.config_",_.UC);var pkk={},V4A=[];_.Hk=function(l){var e=_.ke.apply(1,arguments);var O=Error.call(this,l);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.args=[].concat(_.kA(e));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(_.Hk,Error);var uBq=function(l,e,O){this.actionName=l;this.optionalAction=e===void 0?!1:e;this.args=O===void 0?null:O;this.returnValue=[]};_.v=function(l){this.name=l};_.Nr=new _.v("signalAction");var APV=/^[\w.]*$/,$Y8={q:!0,search_query:!0},oZu=String(CgL);var Jf;Jf=Symbol("Cc");_.Xa=function(l){this.name=l};
_.Xa.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var nZu=function(l){this.key=l},I88=function(l){this.deferredKey=l},kLd=function(){var l=this;
this.providers=new Map;this.JSC$8449_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(l.providers)}}};
kLd.prototype.addProvider=function(l){this.providers.set(l.provide,l);var e=this.JSC$8449_deferred.get(l.provide);if(e)try{e.resolver(this.resolve(l.provide))}catch(O){e.rejector(O)}};
kLd.prototype.resolve=function(l){return l instanceof I88?KW0(this,l):l instanceof nZu?jyS(this,l.key,[],!0):jyS(this,l,[])};
var KW0=function(l,e){e=e.deferredKey;if(l.JSC$8449_deferred.has(e))return l.JSC$8449_deferred.get(e).promise;var O={};O.promise=new Promise(function(E,J){O.resolver=E;O.rejector=J});
l.JSC$8449_deferred.set(e,O);return O.promise},jyS=function(l,e,O,E){E=E===void 0?!1:E;
if(O.indexOf(e)>-1)throw Error("Dc`"+e);if(l.cachedValues.has(e))return l.cachedValues.get(e);if(!l.providers.has(e)){if(E)return;throw Error("Ec`"+e);}E=l.providers.get(e);O.push(e);if(E.useValue!==void 0)var J=E.useValue;else if(E.useFactory)J=E[Jf]?HvS(l,E[Jf],O):[],J=E.useFactory.apply(E,_.kA(J));else if(E.useClass){J=E.useClass;var z=J[Jf]?HvS(l,J[Jf],O):[];J=new (Function.prototype.bind.apply(J,[null].concat(_.kA(z))))}else throw Error("Fc`"+e);O.pop();E.skipCache||l.cachedValues.set(e,J);return J},
HvS=function(l,e,O){return e?e.map(function(E){return E instanceof nZu?jyS(l,E.key,O,!0):jyS(l,E,O)}):[]};var a8V;var rA=new _.Xa("ENDPOINT_HANDLER_TOKEN");_.Db=new _.v("urlEndpoint");var c56=function(){this.data=[];this.cachedPackedInt52=-1};
c56.prototype.set=function(l,e){e=e===void 0?!0:e;0<=l&&l<52&&Number.isInteger(l)&&this.data[l]!==e&&(this.data[l]=e,this.cachedPackedInt52=-1)};
c56.prototype.get=function(l){return!!this.data[l]};
var FW6=function(l){l.cachedPackedInt52===-1&&(l.cachedPackedInt52=l.data.reduce(function(e,O,E){return e+(O?Math.pow(2,E):0)},0));
return l.cachedPackedInt52};var B4M=function(l){var e=fh6;l=l===void 0?_.vK("yt.ads.biscotti.lastId_")||"":l;var O=Object,E=O.assign,J={};J.dt=FAx;J.flash="0";a:{try{var z=e.JSC$8455_win_.top.location.href}catch($V){z=2;break a}z=z?z===e.doc_.location.href?0:1:2}J=(J.frm=z,J);try{J.u_tz=-(new Date).getTimezoneOffset();var M=M===void 0?vo:M;try{var Z=M.history.length}catch($V){Z=0}J.u_his=Z;var u;J.u_h=(u=vo.screen)==null?void 0:u.height;var d;J.u_w=(d=vo.screen)==null?void 0:d.width;var g;J.u_ah=(g=vo.screen)==null?void 0:g.availHeight;
var w;J.u_aw=(w=vo.screen)==null?void 0:w.availWidth;var n;J.u_cd=(n=vo.screen)==null?void 0:n.colorDepth}catch($V){}Z=e.JSC$8455_win_;try{var k=Z.screenX;var y=Z.screenY}catch($V){}try{var c=Z.outerWidth;var f=Z.outerHeight}catch($V){}try{var P=Z.innerWidth;var h=Z.innerHeight}catch($V){}try{var N=Z.screenLeft;var t=Z.screenTop}catch($V){}try{P=Z.innerWidth,h=Z.innerHeight}catch($V){}try{var r=Z.screen.availWidth;var D=Z.screen.availTop}catch($V){}k=[N,t,k,y,r,D,c,f,P,h];y=ilq(!1,e.JSC$8455_win_.top);
c={};var b2=b2===void 0?_.Op:b2;f=new c56;"SVGElement"in b2&&"createElementNS"in b2.document&&f.set(0);P=Rtk();P["allow-top-navigation-by-user-activation"]&&f.set(1);P["allow-popups-to-escape-sandbox"]&&f.set(2);b2.crypto&&b2.crypto.subtle&&f.set(3);"TextDecoder"in b2&&"TextEncoder"in b2&&f.set(4);b2=FW6(f);e=(c.bc=b2,c.bih=y.height,c.biw=y.width,c.brdim=k.join(),c.vis=Ezq(e.doc_),c.wgl=!!vo.WebGLRenderingContext,c);O=E.call(O,J,e);O.ca_type="image";l&&(O.bid=l);return O},fh6=new function(){var l=
window.document;
this.JSC$8455_win_=window;this.doc_=l};
_.zJ("yt.ads_.signals_.getAdSignalsString",function(l){return WPd(B4M(l))});_.C2();navigator.userAgent.indexOf(" (CrKey ");var jmu="XMLHttpRequest"in _.Op?function(){return new XMLHttpRequest}:null;var RdS="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),TLx=[].concat(_.kA(RdS),["client_dev_set_cookie"]);var GLL={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"},FPx="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(_.kA(RdS)),N4u=!1,Rax=_.Pg2,t4t=sm2;var g0u=[{messageFn:function(l){return"Cannot read property '"+l.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(l){return"Cannot call '"+l.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(l){return l.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var sy1={messageWeights:[],callbackWeights:[{callback:Qmt,weight:500},{callback:xYg,weight:500}]};var GRq=function(){this.callbackWeights=[];this.messageWeights=[]},BL6,dT2=function(){if(!BL6){var l=BL6=new GRq;
l.messageWeights.length=0;l.callbackWeights.length=0;m2A(l,sy1)}return BL6},m2A=function(l,e){e.messageWeights&&l.messageWeights.push.apply(l.messageWeights,e.messageWeights);
e.callbackWeights&&l.callbackWeights.push.apply(l.callbackWeights,e.callbackWeights)};_.o_(_.k6,_.y6);_.k6.prototype.subscribe=function(l,e,O){var E=this.topics_[l];E||(E=this.topics_[l]=[]);var J=this.JSC$8479_key_;this.subscriptions_[J]=l;this.subscriptions_[J+1]=e;this.subscriptions_[J+2]=O;this.JSC$8479_key_=J+3;E.push(J);return J};
var Pt1=function(l){var e=n02,O=!1,E=e.subscribe("handleError",function(J){O||(O=!0,this.unsubscribeByKey(E),l.apply(void 0,arguments))},e)};
_.k6.prototype.unsubscribe=function(l,e,O){if(l=this.topics_[l]){var E=this.subscriptions_;if(l=l.find(function(J){return E[J+1]==e&&E[J+2]==O}))return this.unsubscribeByKey(l)}return!1};
_.k6.prototype.unsubscribeByKey=function(l){var e=this.subscriptions_[l];if(e){var O=this.topics_[e];this.publishDepth_!=0?(this.pendingKeys_.push(l),this.subscriptions_[l+1]=function(){}):(O&&_.NA(O,l),delete this.subscriptions_[l],delete this.subscriptions_[l+1],delete this.subscriptions_[l+2])}return!!e};
_.k6.prototype.publish=function(l,e){var O=this.topics_[l];if(O){var E=Array(arguments.length-1),J=arguments.length,z;for(z=1;z<J;z++)E[z-1]=arguments[z];if(this.async_)for(z=0;z<O.length;z++)J=O[z],UGq(this.subscriptions_[J+1],this.subscriptions_[J+2],E);else{this.publishDepth_++;try{for(z=0,J=O.length;z<J&&!this.isDisposed();z++){var M=O[z];this.subscriptions_[M+1].apply(this.subscriptions_[M+2],E)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;O=this.pendingKeys_.pop();)this.unsubscribeByKey(O)}}return z!=
0}return!1};
var UGq=function(l,e,O){_.Ho(function(){l.apply(e,O)})};
_.k6.prototype.clear=function(l){if(l){var e=this.topics_[l];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics_[l])}else this.subscriptions_.length=0,this.topics_={}};
_.k6.prototype.getCount=function(l){if(l){var e=this.topics_[l];return e?e.length:0}l=0;for(e in this.topics_)l+=this.getCount(e);return l};
_.k6.prototype.disposeInternal=function(){_.k6.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var n02=new _.k6;var Ww=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Ww,_.Gu);Ww.prototype.getColdHashData=function(){return _.BW(this,3)};
Ww.prototype.getHotHashData=function(){return _.BW(this,5)};
Ww.prototype.setHotHashData=function(l){return _.da(this,5,l)};var ouV=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ouV,_.Gu);var U7x=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(U7x,_.Gu);_.X=U7x.prototype;_.X.getDeviceId=function(){return _.BW(this,6)};
_.X.getExperimentIds=function(l){var e=_.nJ(this,9,_.Ii,3,!0);GS(e,l);return e[l]};
_.X.getPlayerType=function(){return _.PW(this,36)};
_.X.setHomeGroupInfo=function(l){return _.EN(this,81,l)};
_.X.clearLocationPlayabilityToken=function(){return _.$P(this,89)};var yW=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(yW,_.Gu);yW.prototype.setKey=function(l){return _.da(this,1,l)};
yW.prototype.getValue=function(){return Yh(this,2,hed)};
var hed=[2,3,4,5,6];var YsF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(YsF,_.Gu);YsF.prototype.setTrackingParams=function(l){return _.$P(this,1,_.sx(l,!1))};var YVx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(YVx,_.Gu);var d9L=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(d9L,_.Gu);d9L.prototype.getExperimentIds=function(l){var e=_.nJ(this,5,_.yC,3,!0);GS(e,l);return e[l]};var Hm=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Hm,_.Gu);Hm.prototype.getToken=function(){return _.gk(this,2)};
Hm.prototype.setToken=function(l){return _.da(this,2,l)};var KZ=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(KZ,_.Gu);KZ.prototype.setSafetyMode=function(l){return _.oC(this,5,l)};var mB=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(mB,_.Gu);mB.prototype.setClient=function(l){return _.EN(this,1,l)};var WlL={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 $98;_.sm=function(){var l=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Op.addEventListener("beforeinstallprompt",function(e){e.preventDefault();l.deferredInstallPrompt=e});
_.Op.addEventListener("appinstalled",function(){l.appInstalledEventFired=!0},{once:!0})};
$98=function(){if(!_.Op.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Op.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Op.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Op.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Op.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(l){return"WEB_DISPLAY_MODE_UNKNOWN"}};var wbx=function(){this.syncHeaders=!0},Agd=function(l){var e={},O=[];
"USER_SESSION_ID"in _.UC&&O.push({key:"u",value:_.hT("USER_SESSION_ID")});if(O=_.Ynt(O))e.Authorization=O,O=l=l==null?void 0:l.sessionIndex,O===void 0&&(O=Number(_.hT("SESSION_INDEX",0)),O=isNaN(O)?0:O),_.a("voice_search_auth_header_removal")||(e["X-Goog-AuthUser"]=O.toString()),"INNERTUBE_HOST_OVERRIDE"in _.UC||(e["X-Origin"]=window.location.origin),l===void 0&&"DELEGATED_SESSION_ID"in _.UC&&(e["X-Goog-PageId"]=_.hT("DELEGATED_SESSION_ID"));return e};var hdS={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var z7=_.vK("ytglobal.prefsUserPrefsPrefs_")||{},LWq;_.zJ("ytglobal.prefsUserPrefsPrefs_",z7);_.b_=function(){this.cookieName=_.hT("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.hT("ALT_PREF_COOKIE_DOMAIN","youtube.com");var l=_.mW.get(this.cookieName,void 0);l&&this.parse(l)};
_.Kz=function(){LWq||(LWq=new _.b_);return LWq};
_.b_.prototype.get=function(l,e){t71(l);qs0(l);l=z7[l]!==void 0?z7[l].toString():null;return l!=null?l:e?e:""};
_.b_.prototype.set=function(l,e){t71(l);qs0(l);if(e==null)throw Error("Ic");z7[l]=e.toString()};
_.b_.prototype.getFlag=function(l){return!!((v61("f"+(Math.floor(l/31)+1))||0)&1<<l%31)};
_.jj=function(l,e,O){l="f"+(Math.floor(e/31)+1);e=1<<e%31;var E=v61(l)||0;E=O?E|e:E&~e;E===0?delete z7[l]:(O=E.toString(16),z7[l]=O.toString())};
_.b_.prototype.remove=function(l){t71(l);qs0(l);delete z7[l]};
_.b_.prototype.save=function(){var l=!0;_.a("web_secure_pref_cookie_killswitch")&&(l=!1);_.y2(this.cookieName,this.dump(),63072E3,this.cookieDomain,l)};
_.b_.prototype.clear=function(){_.mm.clear(z7)};
_.b_.prototype.dump=function(){var l=[],e;for(e in z7)z7.hasOwnProperty(e)&&l.push(e+"="+encodeURIComponent(String(z7[e])));return l.join("&")};
var qs0=function(l){if(/^f([1-9][0-9]*)$/.test(l))throw Error("Jc`"+l);},t71=function(l){if(!/^\w+$/.test(l))throw Error("Kc`"+l);
},v61=function(l){l=z7[l]!==void 0?z7[l].toString():null;
return l!=null&&/^[A-Fa-f0-9]+$/.test(l)?parseInt(l,16):null};
_.b_.prototype.parse=function(l){l=decodeURIComponent(l).split("&");for(var e=0;e<l.length;e++){var O=l[e].split("="),E=O[0];(O=O[1])&&(z7[E]=O.toString())}};var MHx={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"},gud={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},izx={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},Z_d={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var $7;_.Mk=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.fZ=function(l,e,O){return l.addJob(e,0,O)};
_.Mk.prototype.addLowPriorityJob=function(l,e){return this.addJob(l,1,e)};
_.pT=function(l,e,O){return l.addJob(e,2,O)};
_.RK=function(l,e,O){return l.addJob(e,3,O)};
_.WF=function(l,e,O){return l.addJob(e,4,O)};
$7=function(l){var e=_.vK("yt.scheduler.instance.addImmediateJob");e?e(l):l()};
_.Mk.prototype.debounce=function(l,e,O){var E=this,J=0,z=function(){J&&E.cancelJob(J);J=E.addJob(l,e,O);E.cancelDebouncedJobMap.set(z,J)};
return z};
_.Mk.prototype.cancelThrottle=function(l){(l=this.cancelThrottledJobMap.get(l))&&l()};var V7=function(){_.Mk.apply(this,arguments)};
_.m(V7,_.Mk);_.Gi=function(){V7.instance||(V7.instance=new V7);return V7.instance};
V7.prototype.addJob=function(l,e,O){O!==void 0&&Number.isNaN(Number(O))&&(O=void 0);var E=_.vK("yt.scheduler.instance.addJob");return E?E(l,e,O):O===void 0?(l(),NaN):_.dL(l,O||0)};
V7.prototype.cancelJob=function(l){if(l===void 0||!Number.isNaN(Number(l))){var e=_.vK("yt.scheduler.instance.cancelJob");e?e(l):_.wL(l)}};
V7.prototype.start=function(){var l=_.vK("yt.scheduler.instance.start");l&&l()};
V7.prototype.pause=function(){var l=_.vK("yt.scheduler.instance.pause");l&&l()};
_.UD=_.Gi();_.ck.prototype.set=function(l,e){e===void 0?this.mechanism.remove(l):this.mechanism.set(l,(0,_.Tv)(e))};
_.ck.prototype.get=function(l){try{var e=this.mechanism.get(l)}catch(O){return}if(e!==null)try{return JSON.parse(e)}catch(O){throw"Storage: Invalid value was encountered";}};
_.ck.prototype.remove=function(l){this.mechanism.remove(l)};var ZK=function(l){this.mechanism=l};
_.o_(ZK,_.ck);var NLR=function(l){this.data=l},r5q=function(l){return l===void 0||l instanceof NLR?l:new NLR(l)};
ZK.prototype.set=function(l,e){ZK.superClass_.set.call(this,l,r5q(e))};
ZK.prototype.getWrapper=function(l){l=ZK.superClass_.get.call(this,l);if(l===void 0||l instanceof Object)return l;throw"Storage: Invalid value was encountered";};
ZK.prototype.get=function(l){if(l=this.getWrapper(l)){if(l=l.data,l===void 0)throw"Storage: Invalid value was encountered";}else l=void 0;return l};_.o_(FR,ZK);_.DG1=function(l){var e=l.creation;l=l.expiration;return!!l&&l<_.C2()||!!e&&e>_.C2()};
FR.prototype.set=function(l,e,O){if(e=r5q(e)){if(O){if(O<_.C2()){FR.prototype.remove.call(this,l);return}e.expiration=O}e.creation=_.C2()}FR.superClass_.set.call(this,l,e)};
FR.prototype.getWrapper=function(l,e){var O=FR.superClass_.getWrapper.call(this,l);if(O)if(!e&&_.DG1(O))FR.prototype.remove.call(this,l);else return O};var u_=function(){};
u_.prototype.next=function(){return CI};
var CI={done:!0,value:void 0},oF=function(l){return{value:l,done:!1}};
u_.prototype.__iterator__=function(){return this};
_.Ss6=function(l){if(l instanceof u_)return l;if(typeof l.__iterator__=="function")return l.__iterator__(!1);if(_.SM(l)){var e=0,O=new u_;O.next=function(){for(;;){if(e>=l.length)return CI;if(e in l)return oF(l[e++]);e++}};
return O}throw Error("Lc");};var Qy0=function(l){if(l instanceof $3||l instanceof W0||l instanceof d9)return l;if(typeof l.next=="function")return new $3(function(){return l});
if(typeof l[Symbol.iterator]=="function")return new $3(function(){return l[Symbol.iterator]()});
if(typeof l.__iterator__=="function")return new $3(function(){return l.__iterator__()});
throw Error("Mc");},$3=function(l){this.func_=l};
$3.prototype.__iterator__=function(){return new W0(this.func_())};
$3.prototype[Symbol.iterator]=function(){return new d9(this.func_())};
$3.prototype.toEs6=function(){return new d9(this.func_())};
var W0=function(l){this.JSC$8563_iter_=l};
_.m(W0,u_);W0.prototype.next=function(){return this.JSC$8563_iter_.next()};
W0.prototype[Symbol.iterator]=function(){return new d9(this.JSC$8563_iter_)};
W0.prototype.toEs6=function(){return new d9(this.JSC$8563_iter_)};
var d9=function(l){$3.call(this,function(){return l});
this.JSC$8566_iter_=l};
_.m(d9,$3);d9.prototype.next=function(){return this.JSC$8566_iter_.next()};var xGH=function(){};var g9=function(){};
_.o_(g9,xGH);g9.prototype.getCount=function(){for(var l=0,e=_.b(this),O=e.next();!O.done;O=e.next())l++;return l};
g9.prototype[Symbol.iterator]=function(){return Qy0(this.__iterator__(!0)).toEs6()};
g9.prototype.clear=function(){var l=Array.from(this);l=_.b(l);for(var e=l.next();!e.done;e=l.next())this.remove(e.value)};_.o_(fv,g9);_.X=fv.prototype;_.X.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var l=this.storage_;if(l)try{l.setItem("__sak","1");l.removeItem("__sak");var e=!0}catch(O){e=O instanceof DOMException&&(O.name==="QuotaExceededError"||O.code===22||O.code===1014||O.name==="NS_ERROR_DOM_QUOTA_REACHED")&&l&&l.length!==0}else e=!1;this.cachedIsStorageAvailable_=e}return this.cachedIsStorageAvailable_};
_.X.set=function(l,e){i_(this);try{this.storage_.setItem(l,e)}catch(O){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.X.get=function(l){i_(this);l=this.storage_.getItem(l);if(typeof l!=="string"&&l!==null)throw"Storage mechanism: Invalid value was encountered";return l};
_.X.remove=function(l){i_(this);this.storage_.removeItem(l)};
_.X.getCount=function(){i_(this);return this.storage_.length};
_.X.__iterator__=function(l){i_(this);var e=0,O=this.storage_,E=new u_;E.next=function(){if(e>=O.length)return CI;var J=O.key(e++);if(l)return oF(J);J=O.getItem(J);if(typeof J!=="string")throw"Storage mechanism: Invalid value was encountered";return oF(J)};
return E};
_.X.clear=function(){i_(this);this.storage_.clear()};
_.X.key=function(l){i_(this);return this.storage_.key(l)};
var i_=function(l){if(l.storage_==null)throw Error("Nc");l.isAvailable()||Ep(Error("Nc"))};_.o_(CeM,fv);_.o_(ovL,fv);_.o_(Ry,g9);Ry.prototype.set=function(l,e){this.mechanism_.set(this.JSC$8581_prefix_+l,e)};
Ry.prototype.get=function(l){return this.mechanism_.get(this.JSC$8581_prefix_+l)};
Ry.prototype.remove=function(l){this.mechanism_.remove(this.JSC$8581_prefix_+l)};
Ry.prototype.__iterator__=function(l){var e=this.mechanism_[Symbol.iterator](),O=this,E=new u_;E.next=function(){var J=e.next();if(J.done)return J;for(J=J.value;J.slice(0,O.JSC$8581_prefix_.length)!=O.JSC$8581_prefix_;){J=e.next();if(J.done)return J;J=J.value}return oF(l?J.slice(O.JSC$8581_prefix_.length):O.mechanism_.get(J))};
return E};_.qx=function(l){this.expiringStorage_=(l=_.$dV(l))?new FR(l):null;this.JSC$8585_domain_=document.domain||window.location.hostname};
_.qx.prototype.set=function(l,e,O,E){O=O||31104E3;this.remove(l);if(this.expiringStorage_)try{this.expiringStorage_.set(l,e,Date.now()+O*1E3);return}catch(z){}var J="";if(E)try{J=escape((0,_.Tv)(e))}catch(z){return}else J=escape(e);_.y2(l,J,O,this.JSC$8585_domain_)};
_.qx.prototype.get=function(l,e){var O=void 0,E=!this.expiringStorage_;if(!E)try{O=this.expiringStorage_.get(l)}catch(J){E=!0}if(E&&(O=_.mW.get(l,void 0))&&(O=unescape(O),e))try{O=JSON.parse(O)}catch(J){this.remove(l),O=void 0}return O};
_.qx.prototype.remove=function(l){this.expiringStorage_&&this.expiringStorage_.remove(l);_.X9M(l,"/",this.JSC$8585_domain_)};
_.qx.prototype.getCreationTime=function(l){return this.expiringStorage_&&(l=(this.expiringStorage_.getWrapper(l)||{}).creation,typeof l==="number")?l:null};var ddx=function(){var l;return function(){l||(l=new _.qx("ytidb"));return l}}();var i_g;_.ss=[];i_g=!1;var Gzu=w98||AiT;var w9={},lAR=(w9.AUTH_INVALID="No user identifier specified.",w9.EXPLICIT_ABORT="Transaction was explicitly aborted.",w9.IDB_NOT_SUPPORTED="IndexedDB is not supported.",w9.MISSING_INDEX="Index not created.",w9.MISSING_OBJECT_STORES="Object stores not created.",w9.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",w9.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",w9.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",w9.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",w9.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",w9.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",w9.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",w9),Af={},ep6=(Af.AUTH_INVALID="ERROR",Af.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Af.EXPLICIT_ABORT="IGNORED",
Af.IDB_NOT_SUPPORTED="ERROR",Af.MISSING_INDEX="WARNING",Af.MISSING_OBJECT_STORES="ERROR",Af.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Af.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Af.QUOTA_EXCEEDED="WARNING",Af.QUOTA_MAYBE_EXCEEDED="WARNING",Af.UNKNOWN_ABORT="WARNING",Af.INCOMPATIBLE_DB_VERSION="WARNING",Af),nI={},Ou1=(nI.AUTH_INVALID=!1,nI.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,nI.EXPLICIT_ABORT=!1,nI.IDB_NOT_SUPPORTED=!1,nI.MISSING_INDEX=!1,nI.MISSING_OBJECT_STORES=!1,nI.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,nI.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,nI.QUOTA_EXCEEDED=!1,nI.QUOTA_MAYBE_EXCEEDED=!0,nI.UNKNOWN_ABORT=!0,nI.INCOMPATIBLE_DB_VERSION=!1,nI),h5=function(l,e,O,E,J){e=e===void 0?{}:e;O=O===void 0?lAR[l]:O;E=E===void 0?ep6[l]:E;J=J===void 0?Ou1[l]:J;_.Hk.call(this,O,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:l},e));this.type=l;this.message=O;this.level=E;this.retryable=J;Object.setPrototypeOf(this,h5.prototype)};
_.m(h5,_.Hk);var EPq=function(l,e){h5.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:l},lAR.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,EPq.prototype)};
_.m(EPq,h5);var ap2=function(l,e){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.index=l;this.objectStore=e;Object.setPrototypeOf(this,ap2.prototype)};
_.m(ap2,Error);var kzq=["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 NG=function(l){this.executor=l},qG=function(l){var e=this;
this.state={status:"PENDING"};this.JSC$8613_onFulfilled=[];this.JSC$8613_onRejected=[];l=l.executor;var O=function(J){if(e.state.status==="PENDING"){e.state={status:"FULFILLED",value:J};J=_.b(e.JSC$8613_onFulfilled);for(var z=J.next();!z.done;z=J.next())z=z.value,z()}},E=function(J){if(e.state.status==="PENDING"){e.state={status:"REJECTED",
reason:J};J=_.b(e.JSC$8613_onRejected);for(var z=J.next();!z.done;z=J.next())z=z.value,z()}};
try{l(O,E)}catch(J){E(J)}};
qG.all=function(l){return new qG(new NG(function(e,O){var E=[],J=l.length;J===0&&e(E);for(var z={i$jscomp$462:0};z.i$jscomp$462<l.length;z={i$jscomp$462:z.i$jscomp$462},++z.i$jscomp$462)qG.resolve(l[z.i$jscomp$462]).then(function(M){return function(Z){E[M.i$jscomp$462]=Z;J--;J===0&&e(E)}}(z)).catch(function(M){O(M)})}))};
qG.resolve=function(l){return new qG(new NG(function(e,O){l instanceof qG?l.then(e,O):e(l)}))};
qG.reject=function(l){return new qG(new NG(function(e,O){O(l)}))};
qG.prototype.then=function(l,e){var O=this,E=l!=null?l:yiL,J=e!=null?e:mdp;return new qG(new NG(function(z,M){O.state.status==="PENDING"?(O.JSC$8613_onFulfilled.push(function(){JWi(O,O,E,z,M)}),O.JSC$8613_onRejected.push(function(){Xw0(O,O,J,z,M)})):O.state.status==="FULFILLED"?JWi(O,O,E,z,M):O.state.status==="REJECTED"&&Xw0(O,O,J,z,M)}))};
qG.prototype.catch=function(l){return this.then(void 0,l)};
var JWi=function(l,e,O,E,J){try{if(l.state.status!=="FULFILLED")throw Error("Qc");var z=O(l.state.value);z instanceof qG?zpC(l,e,z,E,J):E(z)}catch(M){J(M)}},Xw0=function(l,e,O,E,J){try{if(l.state.status!=="REJECTED")throw Error("Rc");
var z=O(l.state.reason);z instanceof qG?zpC(l,e,z,E,J):E(z)}catch(M){J(M)}},zpC=function(l,e,O,E,J){e===O?J(new TypeError("Sc")):O.then(function(z){z instanceof qG?zpC(l,e,z,E,J):E(z)},function(z){J(z)})};var aF;aF=window;_.VZ=aF.ytcsi&&aF.ytcsi.now?aF.ytcsi.now:aF.performance&&aF.performance.timing&&aF.performance.now&&aF.performance.timing.navigationStart?function(){return aF.performance.timing.navigationStart+aF.performance.now()}:function(){return(new Date).getTime()};var S7=function(l,e){this.JSC$8625_wrapped=l;this.options=e;this.transactionCount=0;this.startedMs=Math.round((0,_.VZ)());this.hasUnknownAbortedTransaction=!1},Vti,ZuR,mS,oPH;
S7.prototype.add=function(l,e,O){return _.et(this,[l],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(l).add(e,O)})};
S7.prototype.clear=function(l){return _.et(this,[l],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore(l).clear()})};
S7.prototype.close=function(){this.JSC$8625_wrapped.close();var l;((l=this.options)==null?0:l.closed)&&this.options.closed()};
S7.prototype.count=function(l,e){return _.et(this,[l],{mode:"readonly",enableRetries:!0},function(O){return O.objectStore(l).count(e)})};
var Nx=function(l,e,O){l=l.JSC$8625_wrapped.createObjectStore(e,O);return new k3(l)};
S7.prototype.delete=function(l,e){return _.et(this,[l],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore(l).delete(e)})};
var buH=function(l,e){return _.et(l,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore("ResponseStore").index("byInterface").delete(e)})};
S7.prototype.get=function(l,e){return _.et(this,[l],{mode:"readonly",enableRetries:!0},function(O){return O.objectStore(l).get(e)})};
S7.prototype.getAll=function(l,e,O){return _.et(this,[l],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(l).getAll(e,O)})};
S7.prototype.put=function(l,e,O){return _.et(this,[l],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(l).put(e,O)})};
S7.prototype.objectStoreNames=function(){return Array.from(this.JSC$8625_wrapped.objectStoreNames)};
_.et=function(l,e,O,E){var J,z,M,Z,u,d,g,w,n,k,y,c;return _.V(function(f){switch(f.nextAddress){case 1:var P={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof O==="string"?P.mode=O:Object.assign(P,O);J=P;l.transactionCount++;z=J.enableRetries?3:1;M=0;case 2:if(Z){f.jumpTo(4);break}M++;u=Math.round((0,_.VZ)());_.b1(f,5);d=l.JSC$8625_wrapped.transaction(e,J.mode);P=new H_M(d);P=MtS(P,E);return _.C(f,P,7);case 7:return g=f.yieldResult,w=Math.round((0,_.VZ)()),Vti(l,u,w,M,void 0,
e.join(),J),f.return(g);case 5:n=_.u1(f);k=Math.round((0,_.VZ)());y=Ipd(n,l.JSC$8625_wrapped.name,e.join(),l.JSC$8625_wrapped.version);if((c=y instanceof h5&&!y.retryable)||M>=z)Vti(l,u,k,M,y,e.join(),J),Z=y;f.jumpTo(2);break;case 4:return f.return(Promise.reject(Z))}})};
Vti=function(l,e,O,E,J,z,M){e=O-e;J?(J instanceof h5&&(J.type==="QUOTA_EXCEEDED"||J.type==="QUOTA_MAYBE_EXCEEDED")&&Bk("QUOTA_EXCEEDED",{dbName:Us(l.JSC$8625_wrapped.name),objectStoreNames:z,transactionCount:l.transactionCount,transactionMode:M.mode}),J instanceof h5&&J.type==="UNKNOWN_ABORT"&&(O-=l.startedMs,O<0&&O>=2147483648&&(O=0),Bk("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:z,transactionDuration:e,transactionCount:l.transactionCount,dbDuration:O}),l.hasUnknownAbortedTransaction=!0),
ZuR(l,!1,E,z,e,M.tag),_.GR(J)):ZuR(l,!0,E,z,e,M.tag)};
ZuR=function(l,e,O,E,J,z){Bk("TRANSACTION_ENDED",{objectStoreNames:E,connectionHasUnknownAbortedTransaction:l.hasUnknownAbortedTransaction,duration:J,isSuccessful:e,tryCount:O,tag:z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":z})};
S7.prototype.getVersion=function(){return this.JSC$8625_wrapped.version};
S7.prototype.getName=function(){return this.JSC$8625_wrapped.name};
var k3=function(l){this.JSC$8640_wrapped=l};
k3.prototype.add=function(l,e){return Dh(this.JSC$8640_wrapped.add(l,e))};
k3.prototype.autoIncrement=function(){return this.JSC$8640_wrapped.autoIncrement};
k3.prototype.clear=function(){return Dh(this.JSC$8640_wrapped.clear()).then(function(){})};
var r3=function(l,e,O){l.JSC$8640_wrapped.createIndex(e,O,{unique:!1})};
k3.prototype.count=function(l){return Dh(this.JSC$8640_wrapped.count(l))};
var u_R=function(l,e){return ED(l,{query:e},function(O){return O.delete().then(function(){return O.continue()})}).then(function(){})};
k3.prototype.delete=function(l){return l instanceof IDBKeyRange?u_R(this,l):Dh(this.JSC$8640_wrapped.delete(l))};
k3.prototype.get=function(l){return Dh(this.JSC$8640_wrapped.get(l))};
k3.prototype.getAll=function(l,e){return"getAll"in IDBObjectStore.prototype?Dh(this.JSC$8640_wrapped.getAll(l,e)):CLi(this,l,e)};
var CLi=function(l,e,O){var E=[];return ED(l,{query:e},function(J){if(!(O!==void 0&&E.length>=O))return E.push(J.getValue()),J.continue()}).then(function(){return E})};
k3.prototype.index=function(l){try{return new IF(this.JSC$8640_wrapped.index(l))}catch(e){if(e instanceof Error&&e.name==="NotFoundError")throw new ap2(l,this.JSC$8640_wrapped.name);throw e;}};
k3.prototype.getName=function(){return this.JSC$8640_wrapped.name};
k3.prototype.keyPath=function(){return this.JSC$8640_wrapped.keyPath};
k3.prototype.put=function(l,e){return Dh(this.JSC$8640_wrapped.put(l,e))};
var ED=function(l,e,O){l=l.JSC$8640_wrapped.openCursor(e.query,e.direction);return oPH(l).then(function(E){return jcq(E,O)})},H_M=function(l){var e=this;
this.JSC$8648_wrapped=l;this.objectStoreCache=new Map;this.JSC$8648_aborted=!1;this.done=new Promise(function(O,E){e.JSC$8648_wrapped.addEventListener("complete",function(){O()});
e.JSC$8648_wrapped.addEventListener("error",function(J){J.currentTarget===J.target&&E(e.JSC$8648_wrapped.error)});
e.JSC$8648_wrapped.addEventListener("abort",function(){var J=e.JSC$8648_wrapped.error;if(J)E(J);else if(!e.JSC$8648_aborted){J=h5;for(var z=e.JSC$8648_wrapped.objectStoreNames,M=[],Z=0;Z<z.length;Z++){var u=z.item(Z);if(u===null)throw Error("Tc");M.push(u)}J=new J("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:e.JSC$8648_wrapped.db.name,mode:e.JSC$8648_wrapped.mode});E(J)}})})},MtS=function(l,e){var O=new Promise(function(E,J){try{e(l).then(function(z){E(z)}).catch(J)}catch(z){J(z),l.abort()}});
return Promise.all([O,l.done]).then(function(E){return _.b(E).next().value})};
H_M.prototype.abort=function(){this.JSC$8648_wrapped.abort();this.JSC$8648_aborted=!0;throw new h5("EXPLICIT_ABORT");};
H_M.prototype.objectStore=function(l){l=this.JSC$8648_wrapped.objectStore(l);var e=this.objectStoreCache.get(l);e||(e=new k3(l),this.objectStoreCache.set(l,e));return e};
var IF=function(l){this.JSC$8650_wrapped=l};
IF.prototype.count=function(l){return Dh(this.JSC$8650_wrapped.count(l))};
IF.prototype.delete=function(l){return _.ZA(this,{query:l},function(e){return e.delete().then(function(){return e.continue()})})};
IF.prototype.get=function(l){return Dh(this.JSC$8650_wrapped.get(l))};
IF.prototype.getAll=function(l,e){return"getAll"in IDBIndex.prototype?Dh(this.JSC$8650_wrapped.getAll(l,e)):$xk(this,l,e)};
var $xk=function(l,e,O){var E=[];return _.ZA(l,{query:e},function(J){if(!(O!==void 0&&E.length>=O))return E.push(J.getValue()),J.continue()}).then(function(){return E})};
IF.prototype.keyPath=function(){return this.JSC$8650_wrapped.keyPath};
IF.prototype.unique=function(){return this.JSC$8650_wrapped.unique};
_.ZA=function(l,e,O){l=l.JSC$8650_wrapped.openCursor(e.query===void 0?null:e.query,e.direction===void 0?"next":e.direction);return oPH(l).then(function(E){return jcq(E,O)})};
mS=function(l,e){this.request=l;this.cursor=e};
oPH=function(l){return Dh(l).then(function(e){return e?new mS(l,e):null})};
mS.prototype.continue=function(l){this.cursor.continue(l);return oPH(this.request)};
mS.prototype.delete=function(){return Dh(this.cursor.delete()).then(function(){})};
mS.prototype.getValue=function(){return this.cursor.value};
mS.prototype.update=function(l){return Dh(this.cursor.update(l))};var y7=function(l,e){this.name=l;this.options=e;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},WwS;
y7.prototype.openDb=function(l,e,O){O=O===void 0?{}:O;return Fut(l,e,O)};
y7.prototype.delete=function(l){l=l===void 0?{}:l;return _.x6(this.name,l)};
WwS=function(l,e){return new h5("INCOMPATIBLE_DB_VERSION",{dbName:l.name,oldVersion:l.options.version,newVersion:e})};
_.lL=function(l,e){if(!e)throw t5("openWithToken",Us(l.name));return l.open()};
y7.prototype.open=function(){var l=this;if(!this.isCompatible)throw WwS(this);if(this.connectionPromise)return this.connectionPromise;var e,O=function(){l.connectionPromise===e&&(l.connectionPromise=void 0)},E={blocking:function(z){z.close()},
closed:O,terminated:O,upgrade:this.options.upgrade},J=function(){var z,M,Z,u,d,g,w,n,k,y;return _.V(function(c){switch(c.nextAddress){case 1:return M=(z=Error().stack)!=null?z:"",_.b1(c,2),_.C(c,l.openDb(l.name,l.options.version,E),4);case 4:for(var f=Z=c.yieldResult,P=l.options,h=[],N=_.b(Object.keys(P.objectStores)),t=N.next();!t.done;t=N.next()){t=t.value;var r=P.objectStores[t],D=r.removedAtVersion===void 0?Number.MAX_VALUE:r.removedAtVersion;!(f.JSC$8625_wrapped.version>=r.addedAtVersion)||f.JSC$8625_wrapped.version>=
D||f.JSC$8625_wrapped.objectStoreNames.contains(t)||h.push(t)}u=h;if(u.length===0){c.jumpTo(5);break}d=Object.keys(l.options.objectStores);g=Z.objectStoreNames();if(l.timesReopenedToFixMissingObjectStore<_.Cv("ytidb_reopen_db_retries",0))return l.timesReopenedToFixMissingObjectStore++,Z.close(),_.GR(new h5("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:l.name,expectedObjectStores:d,foundObjectStores:g})),c.return(J());if(!(l.timesDeletedToFixMissingObjectStore<_.Cv("ytidb_remake_db_retries",1))){c.jumpTo(6);
break}l.timesDeletedToFixMissingObjectStore++;return _.C(c,l.delete(),7);case 7:return _.GR(new h5("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:l.name,expectedObjectStores:d,foundObjectStores:g})),c.return(J());case 6:throw new EPq(g,d);case 5:return c.return(Z);case 2:w=_.u1(c);if(w instanceof DOMException?w.name!=="VersionError":"DOMError"in self&&w instanceof DOMError?w.name!=="VersionError":!(w instanceof Object&&"message"in w)||w.message!=="An attempt was made to open a database using a lower version than the existing version."){c.jumpTo(8);
break}return _.C(c,l.openDb(l.name,void 0,Object.assign({},E,{upgrade:void 0})),9);case 9:n=c.yieldResult;k=n.getVersion();if(l.options.version!==void 0&&k>l.options.version+1)throw n.close(),l.isCompatible=!1,WwS(l,k);return c.return(n);case 8:throw O(),w instanceof Error&&!_.a("ytidb_async_stack_killswitch")&&(w.stack=w.stack+"\n"+M.substring(M.indexOf("\n")+1)),Ipd(w,l.name,"",(y=l.options.version)!=null?y:-1);}})};
return this.connectionPromise=e=J()};var fpq=new y7("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(l,e){e(1)&&Nx(l,"databases",{keyPath:"actualName"})}});var Udd,BvL=new function(){}(new function(){});new _.d8;var dxi=function(l,e){y7.call(this,l,e);this.options=e;Pk(l)};
_.m(dxi,y7);var SKd=function(l,e){var O;return function(){O||(O=new dxi(l,e));return O}};
dxi.prototype.openDb=function(l,e,O){O=O===void 0?{}:O;return(this.options.shared?qKp:tHu)(l,e,Object.assign({},O))};
dxi.prototype.delete=function(l){l=l===void 0?{}:l;return(this.options.shared?Ddx:vvq)(this.name,l)};var gPq={},Qcg=Mx("ytGcfConfig",{objectStores:(gPq.coldConfigStore={addedAtVersion:1},gPq.hotConfigStore={addedAtVersion:1},gPq),shared:!1,upgrade:function(l,e){e(1)&&(r3(Nx(l,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),r3(Nx(l,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var iuS=function(){_.y6.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var l=_.vK("yt.gcf.config.hotUpdateCallbacks");l?(this.localHotConfigJobQueue=[].concat(_.kA(l)),this.sharedHotConfigJobQueue=l):(this.sharedHotConfigJobQueue=[],_.zJ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.m(iuS,_.y6);iuS.prototype.disposeInternal=function(){for(var l=_.b(this.localHotConfigJobQueue),e=l.next();!e.done;e=l.next()){var O=this.sharedHotConfigJobQueue;e=O.indexOf(e.value);e>=0&&O.splice(e,1)}this.localHotConfigJobQueue.length=0;_.y6.prototype.disposeInternal.call(this)};var RD=function(){var l=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new iuS;this.TEST_ONLY={initializeConfigDb:function(){l.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return l.coldGlobalConfigGroup},
setHotConfigGroup:function(e){ww1(l,e)},
setHotHashData:function(e){l.setHotHashData(e)},
setColdConfigGroup:function(e){AWk(l,e)},
getColdHashData:function(){return l.coldHashData},
getHotHashData:function(){return l.hotHashData},
getHotConfigGroup:function(){return l.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return nP0()},
getExportedHotConfigGroup:function(){return pI()},
getExportedColdHashData:function(){return _.vK("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.vK("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){aAx(l)},
resetInstance:function(){l.setHotHashData(void 0);kJi(l);delete RD.instance},
setDebounceTimer:function(e){l.debounceTimer=e},
getDebounceTimer:function(){return l.debounceTimer}}},IAk=function(){if(!RD.instance){var l=new RD;
RD.instance=l}return RD.instance},pwq=function(l){var e;
_.V(function(O){if(O.nextAddress==1)return _.a("start_client_gcf")||_.a("delete_gcf_config_db")?_.a("start_client_gcf")?_.C(O,_.bL(),3):O.jumpTo(2):O.return();O.nextAddress!=2&&((e=O.yieldResult)&&_.j7()&&!_.a("delete_gcf_config_db")?(l.isConfigDbInitialized=!0,aAx(l)):(mxH(l),yWF(l)));return _.a("delete_gcf_config_db")?_.C(O,Jgp(),0):O.jumpTo(0)})},Xfx=function(){var l;
return(l=pI())!=null?l:_.hT("RAW_HOT_CONFIG_GROUP")},Kwx=function(l){var e,O,E,J,z,M;
return _.V(function(Z){switch(Z.nextAddress){case 1:if(l.hotGlobalConfigGroup)return Z.return(pI());if(!l.isConfigDbInitialized)return e=t5("getHotConfig IDB not initialized"),_.Nz(e),Z.return(Promise.reject(e));O=X_();E=_.hT("TIME_CREATED_MS");if(!O){J=t5("getHotConfig token error");_.Nz(J);Z.jumpTo(2);break}return _.C(Z,EuL(O),3);case 3:if((z=Z.yieldResult)&&z.timestamp>E)return ww1(l,z.config),l.setHotHashData(z.hashData),Z.return(pI());case 2:yWF(l);if(!(O&&l.hotGlobalConfigGroup&&l.hotHashData)){Z.jumpTo(4);
break}return _.C(Z,lGp(l.hotGlobalConfigGroup,l.hotHashData,O,E),4);case 4:return l.hotGlobalConfigGroup?Z.return(pI()):(M=new _.Hk("Config not available in ytConfig"),_.Nz(M),Z.return(Promise.reject(M)))}})},HuS=function(l){var e,O,E,J,z,M;
return _.V(function(Z){switch(Z.nextAddress){case 1:if(l.coldGlobalConfigGroup)return Z.return(nP0());if(!l.isConfigDbInitialized)return e=t5("getColdConfig IDB not initialized"),_.Nz(e),Z.return(Promise.reject(e));O=X_();E=_.hT("TIME_CREATED_MS");if(!O){J=t5("getColdConfig");_.Nz(J);Z.jumpTo(2);break}return _.C(Z,Ozq(O),3);case 3:if((z=Z.yieldResult)&&z.timestamp>E)return AWk(l,z.config),jCk(l,z.configData),kJi(l,z.hashData),Z.return(nP0());case 2:mxH(l);if(!(O&&l.coldGlobalConfigGroup&&l.coldHashData&&
l.configData)){Z.jumpTo(4);break}return _.C(Z,eUM(l.coldGlobalConfigGroup,l.coldHashData,l.configData,O,E),4);case 4:return l.coldGlobalConfigGroup?Z.return(nP0()):(M=new _.Hk("Config not available in ytConfig"),_.Nz(M),Z.return(Promise.reject(M)))}})},aAx=function(l){if(!l.hotGlobalConfigGroup||!l.coldGlobalConfigGroup){if(!X_()){var e=t5("scheduleGetConfigs");
_.Nz(e)}l.initJob||(l.initJob=_.UD.addLowPriorityJob(function(){return _.V(function(O){switch(O.nextAddress){case 1:return _.b1(O,2),_.C(O,Kwx(l),4);case 4:_.Q2(O,3);break;case 2:_.u1(O);case 3:return _.b1(O,5),_.C(O,HuS(l),7);case 7:_.Q2(O,6);break;case 5:_.u1(O);case 6:l.initJob&&(l.initJob=0),_.Cl(O)}})},100))}},luW=function(l,e,O){var E,J,z;
return _.V(function(M){switch(M.nextAddress){case 1:if(!_.a("start_client_gcf")){M.jumpTo(0);break}O&&ww1(l,O);l.setHotHashData(e);E=X_();if(!E){M.jumpTo(3);break}if(O){M.jumpTo(4);break}return _.C(M,EuL(E),5);case 5:J=M.yieldResult,O=(z=J)==null?void 0:z.config;case 4:return _.C(M,lGp(O,e,E),3);case 3:if(O)for(var Z=O,u=_.b(l.configUpdateService.sharedHotConfigJobQueue),d=u.next();!d.done;d=u.next())d=d.value,d(Z);_.Cl(M)}})},ec8=function(l,e,O){var E,J,z,M;
return _.V(function(Z){if(Z.nextAddress==1){if(!_.a("start_client_gcf"))return Z.jumpTo(0);kJi(l,e);return(E=X_())?O?Z.jumpTo(4):_.C(Z,Ozq(E),5):Z.jumpTo(0)}Z.nextAddress!=4&&(J=Z.yieldResult,O=(z=J)==null?void 0:z.config);if(!O)return Z.jumpTo(0);M=O.configData;return _.C(Z,eUM(O,e,M,E),0)})},aGW=function(){var l=IAk(),e=(0,_.VZ)()-l.debounceTimer;
if(!(l.debounceTimer!==0&&e<_.Cv("send_config_hash_timer"))){e=_.vK("yt.gcf.config.coldConfigData");var O=_.vK("yt.gcf.config.hotHashData"),E=_.vK("yt.gcf.config.coldHashData");e&&O&&E&&(l.debounceTimer=(0,_.VZ)());return{coldConfigData:e,hotHashData:O,coldHashData:E}}},mxH=function(l){AWk(l,_.hT("RAW_COLD_CONFIG_GROUP"));
kJi(l,_.hT("SERIALIZED_COLD_HASH_DATA"));var e;jCk(l,(e=l.coldGlobalConfigGroup)==null?void 0:e.configData)},yWF=function(l){ww1(l,_.hT("RAW_HOT_CONFIG_GROUP"));
l.setHotHashData(_.hT("SERIALIZED_HOT_HASH_DATA"))},ww1=function(l,e){l.hotGlobalConfigGroup=e;
_.zJ("yt.gcf.config.hotConfigGroup",l.hotGlobalConfigGroup||null)},AWk=function(l,e){l.coldGlobalConfigGroup=e;
_.zJ("yt.gcf.config.coldConfigGroup",l.coldGlobalConfigGroup||null)};
RD.prototype.setHotHashData=function(l){this.hotHashData=l;_.zJ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var kJi=function(l,e){l.coldHashData=e;_.zJ("yt.gcf.config.coldHashData",l.coldHashData||null)},jCk=function(l,e){l.configData=e;
_.zJ("yt.gcf.config.coldConfigData",l.configData||null)},pI=function(){return _.vK("yt.gcf.config.hotConfigGroup")},nP0=function(){return _.vK("yt.gcf.config.coldConfigGroup")};var AW={},cWH=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";AW.assign=function(l){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var O=e.shift();if(O){if(typeof O!=="object")throw new TypeError("Wc`"+O);for(var E in O)Object.prototype.hasOwnProperty.call(O,E)&&(l[E]=O[E])}}return l};
AW.shrinkBuf=function(l,e){if(l.length===e)return l;if(l.subarray)return l.subarray(0,e);l.length=e;return l};
var Fw0={arraySet:function(l,e,O,E,J){if(e.subarray&&l.subarray)l.set(e.subarray(O,O+E),J);else for(var z=0;z<E;z++)l[J+z]=e[O+z]},
flattenChunks:function(l){var e,O;var E=O=0;for(e=l.length;E<e;E++)O+=l[E].length;var J=new Uint8Array(O);E=O=0;for(e=l.length;E<e;E++){var z=l[E];J.set(z,O);O+=z.length}return J}},fAR={arraySet:function(l,e,O,E,J){for(var z=0;z<E;z++)l[J+z]=e[O+z]},
flattenChunks:function(l){return[].concat.apply([],l)}};
AW.setTyped=function(){cWH?(AW.Buf8=Uint8Array,AW.Buf16=Uint16Array,AW.Buf32=Int32Array,AW.assign(AW,Fw0)):(AW.Buf8=Array,AW.Buf16=Array,AW.Buf32=Array,AW.assign(AW,fAR))};
AW.setTyped();var Rp0=!0;try{new Uint8Array(1)}catch(l){Rp0=!1}
var Ept=function(l){var e,O,E=l.length,J=0;for(e=0;e<E;e++){var z=l.charCodeAt(e);if((z&64512)===55296&&e+1<E){var M=l.charCodeAt(e+1);(M&64512)===56320&&(z=65536+(z-55296<<10)+(M-56320),e++)}J+=z<128?1:z<2048?2:z<65536?3:4}var Z=new AW.Buf8(J);for(e=O=0;O<J;e++)z=l.charCodeAt(e),(z&64512)===55296&&e+1<E&&(M=l.charCodeAt(e+1),(M&64512)===56320&&(z=65536+(z-55296<<10)+(M-56320),e++)),z<128?Z[O++]=z:(z<2048?Z[O++]=192|z>>>6:(z<65536?Z[O++]=224|z>>>12:(Z[O++]=240|z>>>18,Z[O++]=128|z>>>12&63),Z[O++]=
128|z>>>6&63),Z[O++]=128|z&63);return Z};var LlV={};LlV=function(l,e,O,E){var J=l&65535|0;l=l>>>16&65535|0;for(var z;O!==0;){z=O>2E3?2E3:O;O-=z;do J=J+e[E++]|0,l=l+J|0;while(--z);J%=65521;l%=65521}return J|l<<16|0};for(var TJ={},KI,T3k=[],sCk=0;sCk<256;sCk++){KI=sCk;for(var GJi=0;GJi<8;GJi++)KI=KI&1?3988292384^KI>>>1:KI>>>1;T3k[sCk]=KI}TJ=function(l,e,O,E){O=E+O;for(l^=-1;E<O;E++)l=l>>>8^T3k[(l^e[E])&255];return l^-1};var IC={};IC={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 Fl2=[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],RUq=[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],OOL=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],YGV=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Hw=Array(576);d3(Hw);var cw=Array(60);d3(cw);var aC=Array(512);d3(aC);var nu=Array(256);d3(nu);var fGx=Array(29);d3(fGx);var TQt=Array(30);d3(TQt);var x98,lrV,e7g,QpM=!1;var Pw;
Pw=[new Bw(0,0,0,0,function(l,e){var O=65535;for(O>l.pending_buf_size-5&&(O=l.pending_buf_size-5);;){if(l.lookahead<=1){sD(l);if(l.lookahead===0&&e===0)return 1;if(l.lookahead===0)break}l.strstart+=l.lookahead;l.lookahead=0;var E=l.block_start+O;if(l.strstart===0||l.strstart>=E)if(l.lookahead=l.strstart-E,l.strstart=E,F_(l,!1),l.strm.avail_out===0)return 1;if(l.strstart-l.block_start>=l.w_size-262&&(F_(l,!1),l.strm.avail_out===0))return 1}l.insert=0;if(e===4)return F_(l,!0),l.strm.avail_out===0?3:
4;l.strstart>l.block_start&&F_(l,!1);return 1}),
new Bw(4,4,8,4,tjM),new Bw(4,5,16,8,tjM),new Bw(4,6,32,32,tjM),new Bw(4,4,16,16,GJ),new Bw(8,16,32,32,GJ),new Bw(8,16,128,128,GJ),new Bw(8,32,128,256,GJ),new Bw(32,128,258,1024,GJ),new Bw(32,258,258,4096,GJ)];var SGW={};SGW=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 JYg=Object.prototype.toString;
D9p.prototype.push=function(l,e){var O=this.strm,E=this.options.chunkSize;if(this.ended)return!1;var J=e===~~e?e:e===!0?4:0;typeof l==="string"?O.input=Ept(l):JYg.call(l)==="[object ArrayBuffer]"?O.input=new Uint8Array(l):O.input=l;O.next_in=0;O.avail_in=O.input.length;do{O.avail_out===0&&(O.output=new AW.Buf8(E),O.next_out=0,O.avail_out=E);l=rgM(O,J);if(l!==1&&l!==0)return B3q(this,l),this.ended=!0,!1;if(O.avail_out===0||O.avail_in===0&&(J===4||J===2))if(this.options.to==="string"){var z=AW.shrinkBuf(O.output,
O.next_out);e=z;z=z.length;if(z<65537&&(e.subarray&&Rp0||!e.subarray))e=String.fromCharCode.apply(null,AW.shrinkBuf(e,z));else{for(var M="",Z=0;Z<z;Z++)M+=String.fromCharCode(e[Z]);e=M}this.chunks.push(e)}else e=AW.shrinkBuf(O.output,O.next_out),this.chunks.push(e)}while((O.avail_in>0||O.avail_out===0)&&l!==1);if(J===4)return(O=this.strm)&&O.state?(E=O.state.status,E!==42&&E!==69&&E!==73&&E!==91&&E!==103&&E!==113&&E!==666?l=mw(O,-2):(O.state=null,l=E===113?mw(O,-3):0)):l=-2,B3q(this,l),this.ended=
!0,l===0;J===2&&(B3q(this,0),O.avail_out=0);return!0};
var B3q=function(l,e){e===0&&(l.result=l.options.to==="string"?l.chunks.join(""):AW.flattenChunks(l.chunks));l.chunks=[];l.err=e;l.msg=l.strm.msg};var PL1=typeof TextEncoder!=="undefined"?new TextEncoder:null,frd=PL1?function(l){return PL1.encode(l)}:function(l){l=_.IQ(l);
for(var e=new Uint8Array(l.length),O=0;O<e.length;O++)e[O]=l[O];return e};var zoM={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Mqt={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var jq=function(l,e){this.version=l;this.args=e};
jq.prototype.serialize=function(){return{version:this.version,args:this.args}};var Vox=function(l,e){this.topic=l;this.dataClass=e};
Vox.prototype.toString=function(){return this.topic};var UxH=_.vK("ytPubsub2Pubsub2Instance")||new _.k6;_.k6.prototype.subscribe=_.k6.prototype.subscribe;_.k6.prototype.unsubscribeByKey=_.k6.prototype.unsubscribeByKey;_.k6.prototype.publish=_.k6.prototype.publish;_.k6.prototype.clear=_.k6.prototype.clear;_.zJ("ytPubsub2Pubsub2Instance",UxH);var Mot=_.vK("ytPubsub2Pubsub2SubscribedKeys")||{};_.zJ("ytPubsub2Pubsub2SubscribedKeys",Mot);var u$T=_.vK("ytPubsub2Pubsub2TopicToKeys")||{};_.zJ("ytPubsub2Pubsub2TopicToKeys",u$T);
var ZOW=_.vK("ytPubsub2Pubsub2IsAsync")||{};_.zJ("ytPubsub2Pubsub2IsAsync",ZOW);_.zJ("ytPubsub2Pubsub2SkipSubKey",null);var npV=void 0,wtg=void 0;var jMu=_.Cv("max_body_size_to_compress",5E5),HOT=_.Cv("min_body_size_to_compress",500),hW=!0,sMV=0,Lu=0,TVu=_.Cv("compression_performance_threshold_lr",250),G4x=_.Cv("slow_compressions_before_abandon_count",4),Irg=!1,mud=new Map,Fcg=1,cYA=!0;_.o_(tW,Uuu);tW.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 YD6=function(l,e,O){O||(O=0);var E=l.W_;if(typeof e==="string")for(var J=0;J<16;J++)E[J]=e.charCodeAt(O)<<24|e.charCodeAt(O+1)<<16|e.charCodeAt(O+2)<<8|e.charCodeAt(O+3),O+=4;else for(J=0;J<16;J++)E[J]=e[O]<<24|e[O+1]<<16|e[O+2]<<8|e[O+3],O+=4;for(e=16;e<80;e++)O=E[e-3]^E[e-8]^E[e-14]^E[e-16],E[e]=(O<<1|O>>>31)&4294967295;e=l.chain_[0];O=l.chain_[1];J=l.chain_[2];for(var z=l.chain_[3],M=l.chain_[4],Z,u,d=0;d<80;d++)d<40?d<20?(Z=z^O&(J^z),u=1518500249):(Z=O^J^z,u=1859775393):d<60?(Z=O&J|z&(O|J),
u=2400959708):(Z=O^J^z,u=3395469782),Z=(e<<5|e>>>27)+Z+M+u+E[d]&4294967295,M=z,z=J,J=(O<<30|O>>>2)&4294967295,O=e,e=Z;l.chain_[0]=l.chain_[0]+e&4294967295;l.chain_[1]=l.chain_[1]+O&4294967295;l.chain_[2]=l.chain_[2]+J&4294967295;l.chain_[3]=l.chain_[3]+z&4294967295;l.chain_[4]=l.chain_[4]+M&4294967295};
tW.prototype.update=function(l,e){if(l!=null){e===void 0&&(e=l.length);for(var O=e-this.blockSize,E=0,J=this.buf_,z=this.inbuf_;E<e;){if(z==0)for(;E<=O;)YD6(this,l,E),E+=this.blockSize;if(typeof l==="string")for(;E<e;){if(J[z]=l.charCodeAt(E),++z,++E,z==this.blockSize){YD6(this,J);z=0;break}}else for(;E<e;)if(J[z]=l[E],++z,++E,z==this.blockSize){YD6(this,J);z=0;break}}this.inbuf_=z;this.total_+=e}};
tW.prototype.digest=function(){var l=[],e=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var O=this.blockSize-1;O>=56;O--)this.buf_[O]=e&255,e/=256;YD6(this,this.buf_);for(O=e=0;O<5;O++)for(var E=24;E>=0;E-=8)l[e]=this.chain_[O]>>E&255,++e;return l};var LcL;var c0=function(l){var e=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(g){e.databaseToken=g},
triggerThrottle:function(){e.throttledSend()},
cancelThrottle:function(){e.cancelThrottledSend()},
immediateSend:function(g){return _.V(function(w){return _.C(w,e.immediateSend(g),0)})},
requestWithinAgeLimit:function(g,w){return e.requestWithinAgeLimit(g,w)},
retryQueuedRequests:function(){e.retryQueuedRequests()}};
var O;this.throttleTimeout=(O=l.throttleTimeout)!=null?O:100;var E;this.retryMaxAttempts=(E=l.retryMaxAttempts)!=null?E:1;var J;this.requestAgeLimitMs=(J=l.requestAgeLimitMs)!=null?J:2592E6;var z;this.queuedRequestAgeLimitMs=(z=l.queuedRequestAgeLimitMs)!=null?z:12E4;var M;this.retryDelayMs=(M=l.retryDelayMs)!=null?M:5E3;var Z;this.databaseToken=(Z=l.databaseToken)!=null?Z:void 0;this.enableCleaning=!!l.enableCleaning;var u;this.cleaningRate=(u=l.cleaningRate)!=null?u:.1;var d;this.potentialEsfErrorLimit=
(d=l.potentialEsfErrorLimit)!=null?d:10;l.handleError&&(this.handleError=l.handleError);l.handleWarning&&(this.handleWarning=l.handleWarning);l.disableYtIdbTransactions&&(this.disableYtIdbTransactions=l.disableYtIdbTransactions);l.bypassDbTokenDependency&&(this.bypassDbTokenDependency=l.bypassDbTokenDependency);this.getBooleanFlag=l.getBooleanFlag;this.jobManager=l.jobManager;this.logsStore=l.logsStore;this.networkManager=l.networkManager;this.sendFn=l.sendFn;this.onlineEvent=l.onlineEvent;this.offlineEvent=
l.offlineEvent;H0(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&hp1(this)},hp1=function(l){H0(l)&&!l.disableYtIdbTransactions&&(l.initialized=!0,l.enableCleaning&&Math.random()<=l.cleaningRate&&l.logsStore.cleanLogsStore(l.databaseToken),l.retryQueuedRequests(),l.networkManager.isNetworkAvailable()&&l.throttledSend(),l.networkManager.listen(l.onlineEvent,l.throttledSend.bind(l)),l.networkManager.listen(l.offlineEvent,l.cancelThrottledSend.bind(l)))};
_.X=c0.prototype;_.X.writeThenSend=function(l,e){var O=this;e=e===void 0?{}:e;if(H0(this)&&this.initialized){var E={url:l,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(E,this.databaseToken).then(function(J){E.id=J;O.networkManager.isNetworkAvailable()&&O.immediateSend(E)}).catch(function(J){O.immediateSend(E);
Lw6(O,J)})}else this.sendFn(l,e)};
_.X.sendThenWrite=function(l,e,O){var E=this;e=e===void 0?{}:e;if(H0(this)&&this.initialized){var J={url:l,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(J.skipRetry=O);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!J.skipRetry){if(!J.skipRetry){var z=e.onError?e.onError:function(){};
e.onError=function(M,Z){return _.V(function(u){if(u.nextAddress==1)return _.C(u,E.logsStore.set(J,E.databaseToken).catch(function(d){Lw6(E,d)}),2);
z(M,Z);_.Cl(u)})}}this.sendFn(l,e,J.skipRetry)}else this.logsStore.set(J,this.databaseToken).catch(function(M){E.sendFn(l,e,J.skipRetry);
Lw6(E,M)})}else this.sendFn(l,e,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&O)};
_.X.sendAndWrite=function(l,e){var O=this;e=e===void 0?{}:e;if(H0(this)&&this.initialized){var E={url:l,options:e,timestamp:this.now(),status:"NEW",sendCount:0},J=!1,z=e.onSuccess?e.onSuccess:function(){};
E.options.onSuccess=function(M,Z){E.id!==void 0?O.logsStore.deleteRequest(E.id,O.databaseToken):J=!0;O.networkManager.networkStatusHint&&O.getBooleanFlag&&O.getBooleanFlag("vss_network_hint")&&O.networkManager.networkStatusHint(!0);z(M,Z)};
this.sendFn(E.url,E.options,void 0,!0);this.logsStore.set(E,this.databaseToken).then(function(M){E.id=M;J&&O.logsStore.deleteRequest(E.id,O.databaseToken)}).catch(function(M){Lw6(O,M)})}else this.sendFn(l,e,void 0,!0)};
_.X.throttledSend=function(){var l=this;if(!H0(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.logsStore.getMostRecentByStatus("NEW",l.databaseToken),2);if(O.nextAddress!=3)return e=O.yieldResult,e?_.C(O,l.immediateSend(e),3):(l.cancelThrottledSend(),O.return());l.intervalJob&&(l.intervalJob=0,l.throttledSend());_.Cl(O)})},this.throttleTimeout))};
_.X.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.X.immediateSend=function(l){var e=this,O;return _.V(function(E){switch(E.nextAddress){case 1:if(!H0(e))throw Error("$c");if(l.id===void 0){E.jumpTo(2);break}return _.C(E,e.logsStore.markAsQueued(l.id,e.databaseToken),3);case 3:(O=E.yieldResult)||e.handleWarning(Error("ad"));case 2:if(e.requestWithinAgeLimit(l,e.requestAgeLimitMs)){E.jumpTo(4);break}e.handleWarning(Error("bd"));if(l.id===void 0){E.jumpTo(5);break}return _.C(E,e.logsStore.deleteRequest(l.id,e.databaseToken),5);case 5:return E.return();
case 4:l.skipRetry||(l=ttx(e,l));if(!l){E.jumpTo(0);break}if(!l.skipRetry||l.id===void 0){E.jumpTo(8);break}return _.C(E,e.logsStore.deleteRequest(l.id,e.databaseToken),8);case 8:e.sendFn(l.url,l.options,!!l.skipRetry),_.Cl(E)}})};
var ttx=function(l,e){if(!H0(l))throw Error("cd");var O=e.options.onError?e.options.onError:function(){};
e.options.onError=function(J,z){var M,Z,u,d;return _.V(function(g){switch(g.nextAddress){case 1:M=rYT(z);(Z=Duu(z))&&l.getBooleanFlag&&l.getBooleanFlag("web_enable_error_204")&&l.handleError(Error("dd"),e.url,z);if(!(l.getBooleanFlag&&l.getBooleanFlag("nwl_consider_error_code")&&M||l.getBooleanFlag&&!l.getBooleanFlag("nwl_consider_error_code")&&l.potentialEsfErrorCounter<=l.potentialEsfErrorLimit)){g.jumpTo(2);break}if(!l.networkManager.sendNetworkCheckRequest){g.jumpTo(3);break}return _.C(g,l.networkManager.sendNetworkCheckRequest(),
3);case 3:if(l.networkManager.isNetworkAvailable()){g.jumpTo(2);break}O(J,z);if(!l.getBooleanFlag||!l.getBooleanFlag("nwl_consider_error_code")||((u=e)==null?void 0:u.id)===void 0){g.jumpTo(6);break}return _.C(g,l.logsStore.resetRequest(e.id,l.databaseToken,!1),6);case 6:return g.return();case 2:if(l.getBooleanFlag&&l.getBooleanFlag("nwl_consider_error_code")&&!M&&l.potentialEsfErrorCounter>l.potentialEsfErrorLimit)return g.return();l.potentialEsfErrorCounter++;if(((d=e)==null?void 0:d.id)===void 0){g.jumpTo(8);
break}return e.sendCount<l.retryMaxAttempts?_.C(g,l.logsStore.resetRequest(e.id,l.databaseToken,!0,Z?!1:void 0),12):_.C(g,l.logsStore.deleteRequest(e.id,l.databaseToken),8);case 12:l.jobManager.addLowPriorityJob(function(){l.networkManager.isNetworkAvailable()&&l.throttledSend()},l.retryDelayMs);
case 8:O(J,z),_.Cl(g)}})};
var E=e.options.onSuccess?e.options.onSuccess:function(){};
e.options.onSuccess=function(J,z){var M;return _.V(function(Z){if(Z.nextAddress==1)return((M=e)==null?void 0:M.id)===void 0?Z.jumpTo(2):_.C(Z,l.logsStore.deleteRequest(e.id,l.databaseToken),2);l.networkManager.networkStatusHint&&l.getBooleanFlag&&l.getBooleanFlag("vss_network_hint")&&l.networkManager.networkStatusHint(!0);E(J,z);_.Cl(Z)})};
return e};
c0.prototype.requestWithinAgeLimit=function(l,e){l=l.timestamp;return this.now()-l>=e?!1:!0};
c0.prototype.retryQueuedRequests=function(){var l=this;if(!H0(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(e){e&&!l.requestWithinAgeLimit(e,l.queuedRequestAgeLimitMs)?l.jobManager.addLowPriorityJob(function(){return _.V(function(O){if(O.nextAddress==1)return e.id===void 0?O.jumpTo(2):_.C(O,l.logsStore.resetRequest(e.id,l.databaseToken),2);l.retryQueuedRequests();_.Cl(O)})}):l.networkManager.isNetworkAvailable()&&l.throttledSend()})};
var Lw6=function(l,e){l.writeError&&!l.networkManager.isNetworkAvailable()?l.writeError(e):l.handleError(e)},H0=function(l){return!!l.databaseToken||l.bypassDbTokenDependency};var Sn8;var J3q={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521};var qD1={},b02=Mx("ServiceWorkerLogsDatabase",{objectStores:(qD1.SWHealthLog={addedAtVersion:1},qD1),shared:!0,upgrade:function(l,e){e(1)&&r3(Nx(l,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Wsx={},$vW=0;var wcd;var Fa=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},lN=function(){if(!Fa.instance){var l=_.vK("yt.networkRequestMonitor.instance")||new Fa;
_.zJ("yt.networkRequestMonitor.instance",l);Fa.instance=l}return Fa.instance};
Fa.prototype.requestComplete=function(l,e){e&&(this.anyRequestHasSucceeded=!0);l=this.removeParams(l);this.requestMap.get(l)||this.requestMap.set(l,e)};
Fa.prototype.isEndpointCFR=function(l){l=this.removeParams(l);return(l=this.requestMap.get(l))?!1:l===!1&&this.anyRequestHasSucceeded?!0:null};
Fa.prototype.removeParams=function(l){return l.split("?")[0]};
Fa.prototype.removeParams=Fa.prototype.removeParams;Fa.prototype.isEndpointCFR=Fa.prototype.isEndpointCFR;Fa.prototype.requestComplete=Fa.prototype.requestComplete;Fa.getInstance=lN;var fI=function(l){_.Kx.call(this);var e=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=l!=null?l:{addLowPriorityJob:function(J,z){return setTimeout(J,z)},
cancelJob:function(J){clearTimeout(J)}};
var O,E;this.isOnline=(E=(O=window.navigator)==null?void 0:O.onLine)!=null?E:!0;this.onNavigatorChange=function(){return _.V(function(J){return _.C(J,vPH(e),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||N3q(this)};
_.m(fI,_.Kx);fI.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete fI.instance};
fI.prototype.isNetworkAvailable=function(){return this.isOnline};
var N3q=function(l){l.pollingJob=l.jobManager.addLowPriorityJob(function(){var e;return _.V(function(O){if(O.nextAddress==1)return l.isOnline?((e=window.navigator)==null?0:e.onLine)?O.jumpTo(3):_.C(O,vPH(l),3):_.C(O,vPH(l),3);N3q(l);_.Cl(O)})},3E4)},vPH=function(l,e){return l.networkRequestPromise?l.networkRequestPromise:l.networkRequestPromise=new Promise(function(O){var E,J,z,M;
return _.V(function(Z){switch(Z.nextAddress){case 1:return E=window.AbortController?new window.AbortController:void 0,z=(J=E)==null?void 0:J.signal,M=!1,_.b1(Z,2,3),E&&(l.abortTimeoutKey=l.jobManager.addLowPriorityJob(function(){E.abort()},e||2E4)),_.C(Z,fetch("/generate_204",{method:"HEAD",
signal:z}),5);case 5:M=!0;case 3:_.MR(Z);l.networkRequestPromise=void 0;l.abortTimeoutKey&&(l.jobManager.cancelJob(l.abortTimeoutKey),l.abortTimeoutKey=0);M!==l.isOnline&&(l.isOnline=M,l.isOnline?l.dispatchEvent("networkstatus-online"):l.dispatchEvent("networkstatus-offline"));O(M);_.ZU(Z,0);break;case 2:_.u1(Z),M=!1,Z.jumpTo(3)}})})};var RF=function(){_.Kx.call(this);var l=this;this.shouldFlushErrors=!1;fI.instance||(fI.instance=new fI(_.UD));this.sharedNetworkStatusManager=fI.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(l.shouldFlushErrors&&_.a("offline_error_handling")){var e=A$A().get("errors",!0);if(e){for(var O in e)if(e[O]){var E=new _.Hk(O,"sent via offline_errors");E.name=e[O].name;E.stack=e[O].stack;E.level=e[O].level;_.tT(E)}A$A().set("errors",{},2592E3,!0)}}})};
_.m(RF,_.Kx);var rW1=function(){if(!RF.instance){var l=_.vK("yt.networkStatusManager.instance")||new RF;_.zJ("yt.networkStatusManager.instance",l);RF.instance=l}return RF.instance};
_.X=RF.prototype;_.X.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.X.networkStatusHint=function(l){this.sharedNetworkStatusManager.isOnline=l};
_.X.getWindowStatus=function(){var l=window.navigator.onLine;return l===void 0?!0:l};
_.X.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.X.listen=function(l,e){return this.sharedNetworkStatusManager.listen(l,e)};
_.X.sendNetworkCheckRequest=function(l){l=vPH(this.sharedNetworkStatusManager,l);l.then(function(e){_.a("use_cfr_monitor")&&lN().requestComplete("generate_204",e)});
return l};
RF.prototype.sendNetworkCheckRequest=RF.prototype.sendNetworkCheckRequest;RF.prototype.listen=RF.prototype.listen;RF.prototype.enableErrorFlushing=RF.prototype.enableErrorFlushing;RF.prototype.getWindowStatus=RF.prototype.getWindowStatus;RF.prototype.networkStatusHint=RF.prototype.networkStatusHint;RF.prototype.isNetworkAvailable=RF.prototype.isNetworkAvailable;RF.getInstance=rW1;_.xP=function(l){l=l===void 0?{}:l;_.Kx.call(this);var e=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=rW1();var O=_.vK("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);O&&(l.rateLimit?(this.rateLimit=l.rateLimit,O("networkstatus-online",function(){Dx1(e,"publicytnetworkstatus-online")}),O("networkstatus-offline",function(){Dx1(e,"publicytnetworkstatus-offline")})):(O("networkstatus-online",function(){e.dispatchEvent("publicytnetworkstatus-online")}),O("networkstatus-offline",
function(){e.dispatchEvent("publicytnetworkstatus-offline")})))};
_.m(_.xP,_.Kx);_.xP.prototype.isNetworkAvailable=function(){var l=_.vK("yt.networkStatusManager.instance.isNetworkAvailable");return l?l.bind(this.nsmInstance)():!0};
_.xP.prototype.networkStatusHint=function(l){var e=_.vK("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);e&&e(l)};
_.xP.prototype.sendNetworkCheckRequest=function(l){var e=this,O;return _.V(function(E){O=_.vK("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(e.nsmInstance);return _.a("skip_network_check_if_cfr")&&lN().isEndpointCFR("generate_204")?E.return(new Promise(function(J){var z;e.networkStatusHint(((z=window.navigator)==null?void 0:z.onLine)||!0);J(e.isNetworkAvailable())})):O?E.return(O(l)):E.return(!0)})};
var Dx1=function(l,e){l.rateLimit?l.lastJobTime?(_.UD.cancelJob(l.schedulerJob),l.schedulerJob=_.UD.addLowPriorityJob(function(){l.lastPublicSignalSent!==e&&(l.dispatchEvent(e),l.lastPublicSignalSent=e,l.lastJobTime=(0,_.VZ)())},l.rateLimit-((0,_.VZ)()-l.lastJobTime))):(l.dispatchEvent(e),l.lastPublicSignalSent=e,l.lastJobTime=(0,_.VZ)()):l.dispatchEvent(e)};var mv8,T7=function(){c0.call(this,{logsStore:{cleanLogsStore:Xct,deleteRequest:J$M,getMostRecentByStatus:ebT,markAsQueued:O0q,resetRequest:E18,set:lCM},networkManager:_.y$8(),handleError:function(l,e,O){var E,J=O==null?void 0:(E=O.error)==null?void 0:E.code;if(J===400||J===415){var z;l=new _.Hk(l.message,e,O==null?void 0:(z=O.error)==null?void 0:z.code);_.Nz(l,void 0,void 0,void 0,!0)}else _.tT(l)},
handleWarning:_.Nz,sendFn:k_q,now:_.VZ,writeError:n1x,jobManager:_.Gi(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Cv("potential_esf_error_limit",10),getBooleanFlag:_.a,disableYtIdbTransactions:!(_.j7()&&_.pcT())});this.initializationPromise=new _.d8;_.a("networkless_immediately_drop_all_requests")&&zbT();Ddx("LogsDatabaseV2")};
_.m(T7,c0);_.QCi=function(){var l=_.vK("yt.networklessRequestController.instance");l||(l=new T7,_.zJ("yt.networklessRequestController.instance",l),_.a("networkless_logging")&&_.bL().then(function(e){l.databaseToken=e;hp1(l);l.initializationPromise.resolve();l.enableCleaning&&Math.random()<=l.cleaningRate&&l.databaseToken&&VTd(l.databaseToken);_.a("networkless_immediately_drop_sw_health_store")&&SD1(l)}));
return l};
T7.prototype.writeThenSend=function(l,e){e||(e={});e=ICu(l,e);_.j7()||(this.initialized=!1);c0.prototype.writeThenSend.call(this,l,e)};
T7.prototype.sendThenWrite=function(l,e,O){e||(e={});e=ICu(l,e);_.j7()||(this.initialized=!1);c0.prototype.sendThenWrite.call(this,l,e,O)};
T7.prototype.sendAndWrite=function(l,e){e||(e={});e=ICu(l,e);_.j7()||(this.initialized=!1);c0.prototype.sendAndWrite.call(this,l,e)};
T7.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var SD1=function(l){var e;_.V(function(O){if(!l.databaseToken)throw e=t5("clearSWHealthLogsDb"),e;return O.return(Z0p(l.databaseToken).catch(function(E){l.handleError(E)}))})};_.j4x=!1;_.Ksg=_.Op.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.j4x};_.zJ("ytNetworklessLoggingInitializationOptions",_.Ksg);var GM=function(l){var e=this;this.config_=null;l?this.config_=l:Xbu()&&(this.config_=_.uL());_.fZ(_.UD,function(){NVW(e)},5E3)};
GM.prototype.isReady=function(){!this.config_&&Xbu()&&(this.config_=_.uL());return!!this.config_};
var vp8=function(l,e,O,E){!_.hT("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&_.Nz(new _.Hk("Missing VISITOR_DATA when sending innertube request.",e,O,E));if(!l.isReady()){var J=new _.Hk("innertube xhrclient not ready",e,O,E);_.tT(J);throw J;}var z={headers:E.headers||{},method:"POST",postParams:O,postBody:E.postBody,postBodyFormat:E.postBodyFormat||"JSON",onTimeout:function(){E.onTimeout()},
onFetchTimeout:E.onTimeout,onSuccess:function(w,n){if(E.onSuccess)E.onSuccess(n)},
onFetchSuccess:function(w){if(E.onSuccess)E.onSuccess(w)},
onError:function(w,n){if(E.onError)E.onError(n)},
onFetchError:function(w){if(E.onError)E.onError(w)},
timeout:E.timeout,withCredentials:!0,compress:E.compress};z.headers["Content-Type"]||(z.headers["Content-Type"]="application/json");var M="";(J=l.config_.innertubeHostOverride)&&(M=J);var Z=l.config_.innertubeUseThirdPartyAuth||!1,u=_.nuW(Z,M,E);Object.assign(z.headers,u);z.headers.Authorization&&!M&&Z&&(z.headers["x-origin"]=window.location.origin);var d=_.xd(M+("/youtubei/"+l.config_.innertubeApiVersion+"/"+e),{alt:"json"}),g=function(w){w=w===void 0?!1:w;var n;if(E.retry&&M!="www.youtube-nocookie.com"&&
(w||_.a("skip_ls_gel_retry")||z.headers["Content-Type"]!=="application/json"||(n=tox(e,O,u,Z)),n)){var k=z.onSuccess,y=z.onFetchSuccess;z.onSuccess=function(P,h){qnq(n);k(P,h)};
O.onFetchSuccess=function(P,h){qnq(n);y(P,h)}}try{if(w&&E.retry&&!E.networklessOptions.bypassNetworkless)z.method="POST",E.networklessOptions.writeThenSend?_.QCi().writeThenSend(d,z):_.QCi().sendAndWrite(d,z);
else if(E.compress){var c=!E.networklessOptions.writeThenSend;if(z.postBody){var f=z.postBody;typeof f!=="string"&&(f=JSON.stringify(z.postBody));R7M(d,f,z,_.nv,c)}else R7M(d,JSON.stringify(z.postParams),z,UYu,c)}else _.a("web_all_payloads_via_jspb")?_.nv(d,z):UYu(d,z)}catch(P){if(P.name==="InvalidAccessError")n&&(qnq(n),n=0),_.Nz(Error("fd"));else throw P;}n&&_.fZ(_.UD,function(){NVW(l)},5E3)};
_.H0q()?YK8().then(function(w){g(w)}):g(!1)};var fqp=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(fqp,_.Gu);var xxH=0,Fsu=_.ws?"webkit":_.iv?"moz":_.gs?"ms":ke2?"o":"";_.zJ("ytDomDomGetNextId",_.vK("ytDomDomGetNextId")||function(){return++xxH});var lb1={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},zM=function(l){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(l=
l||window.event){this.event=l;for(var e in l)e in lb1||(this[e]=l[e]);this.scale=l.scale;this.rotation=l.rotation;var O=l.target||l.srcElement;O&&O.nodeType==3&&(O=O.parentNode);this.target=O;var E=l.relatedTarget;if(E)try{E=E.nodeName?E:null}catch(J){E=null}else this.type=="mouseover"?E=l.fromElement:this.type=="mouseout"&&(E=l.toElement);this.relatedTarget=E;this.clientX=l.clientX!=void 0?l.clientX:l.pageX;this.clientY=l.clientY!=void 0?l.clientY:l.pageY;this.keyCode=l.keyCode?l.keyCode:l.which;
this.charCode=l.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=l.altKey;this.ctrlKey=l.ctrlKey;this.shiftKey=l.shiftKey;this.metaKey=l.metaKey;this.pageX_=l.pageX;this.pageY_=l.pageY}}catch(J){}},eBR=function(l){if(document.body&&document.documentElement){var e=document.body.scrollTop+document.documentElement.scrollTop;
l.pageX_=l.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);l.pageY_=l.clientY+e}};
zM.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
zM.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
zM.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Xx=_.Op.ytEventsEventsListeners||{};_.zJ("ytEventsEventsListeners",Xx);var B8A=_.Op.ytEventsEventsCounter||{count:0};_.zJ("ytEventsEventsCounter",B8A);var PG2=_.m4(function(){var l=!1;try{var e=Object.defineProperty({},"capture",{get:function(){l=!0}});
window.addEventListener("test",null,e)}catch(O){}return l});_.o_(VW,_.y6);VW.prototype.onMouseMove_=function(l){l.pageX_===void 0&&eBR(l);var e=l.pageX_;l.pageY_===void 0&&eBR(l);this.position_=new _.KF(e,l.pageY_)};
VW.prototype.checkPosition_=function(){if(this.position_){var l=(0,_.VZ)();if(this.previousTime_!=0){var e=this.previousPosition_,O=this.position_,E=e.x-O.x;e=e.y-O.y;E=Math.sqrt(E*E+e*e)/(l-this.previousTime_);this.cycles_[this.index_]=Math.abs((E-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(O=e=0;O<4;O++)e+=this.cycles_[O]||0;e>=3&&this.callback_();this.previousVelocity_=E}this.previousTime_=l;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
VW.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.UvV(this.mouseListenerKey_)};var tTp={};var x7L=new _.v("rawColdConfigGroup");var QBT=new _.v("rawHotConfigGroup");var OZH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(OZH,_.Gu);var F2x=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(F2x,_.Gu);var Fx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l,500)};
_.m(Fx,_.Gu);Fx.prototype.getPayloadCase=function(){return _.cW(this,EE6)};
Fx.prototype.getContext=function(){return _.Cu(this,F2x,33)};
var EE6=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var qVx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(qVx,_.Gu);var nTp=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(nTp,_.Gu);nTp.prototype.setVideoId=function(l){return ID(this,1,aeu,Ph(l))};
nTp.prototype.getPlaylistId=function(){return _.gk(this,jU(this,aeu,2))};
var aeu=[1,2];var Pdx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Pdx,_.Gu);Pdx.prototype.getContext=function(){return _.Cu(this,mB,1)};
Pdx.prototype.getTier=function(){return _.PW(this,7)};var JGq,oD,$E;JGq=_.Op.ytPubsubPubsubInstance||new _.k6;oD=_.Op.ytPubsubPubsubSubscribedKeys||{};$E=_.Op.ytPubsubPubsubTopicToKeys||{};_.qm8=_.Op.ytPubsubPubsubIsSynchronous||{};_.k6.prototype.subscribe=_.k6.prototype.subscribe;_.k6.prototype.unsubscribeByKey=_.k6.prototype.unsubscribeByKey;_.k6.prototype.publish=_.k6.prototype.publish;_.k6.prototype.clear=_.k6.prototype.clear;_.zJ("ytPubsubPubsubInstance",JGq);_.zJ("ytPubsubPubsubTopicToKeys",$E);_.zJ("ytPubsubPubsubIsSynchronous",_.qm8);
_.zJ("ytPubsubPubsubSubscribedKeys",oD);var iN=window;var sS=_.a("web_enable_lifecycle_monitoring")&&Smt()!==0,XmR=_.a("web_enable_lifecycle_monitoring");var bZx=function(l){var e=this;var O=O===void 0?0:O;var E=E===void 0?_.Gi():E;this.JSC$8847_defaultPriority=O;this.scheduler=E;this.completedResolver=new _.d8;this.scheduledPayloads=l;for(l={i$jscomp$486:0};l.i$jscomp$486<this.scheduledPayloads.length;l={payload$jscomp$18:void 0,i$jscomp$486:l.i$jscomp$486},l.i$jscomp$486++)l.payload$jscomp$18=this.scheduledPayloads[l.i$jscomp$486],O=function(J){return function(){J.payload$jscomp$18.job();e.scheduledPayloads[J.i$jscomp$486].processed=!0;e.scheduledPayloads.every(function(z){return z.processed===
!0})&&e.completedResolver.resolve()}}(l),E=this.scheduler.addJob(O,zBR(this,l.payload$jscomp$18)),this.scheduledPayloads[l.i$jscomp$486]=Object.assign({},l.payload$jscomp$18,{job:O,
jobId:E})};
bZx.prototype.flushJobs=function(){var l=this,e=Array.from(this.scheduledPayloads.keys()).sort(function(E,J){return zBR(l,l.scheduledPayloads[J])-zBR(l,l.scheduledPayloads[E])});
e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=this.scheduledPayloads[O.value],O.jobId===void 0||O.processed||(this.scheduler.cancelJob(O.jobId),this.scheduler.addJob(O.job,10))};
bZx.prototype.cancel=function(){for(var l=_.b(this.scheduledPayloads),e=l.next();!e.done;e=l.next())e=e.value,e.jobId===void 0||e.processed||this.scheduler.cancelJob(e.jobId),e.processed=!0;this.completedResolver.resolve()};
var zBR=function(l,e){var O;return(O=e.priority)!=null?O:l.JSC$8847_defaultPriority};var G7=function(l){this.state=l;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};sS&&Q4T(this.state)};
G7.prototype.install=function(l){this.plugins.push(l);return this};
G7.prototype.uninstall=function(){var l=this;_.ke.apply(0,arguments).forEach(function(e){e=l.plugins.indexOf(e);e>-1&&l.plugins.splice(e,1)})};
G7.prototype.transition=function(l,e){var O=this;sS&&xvM(this.state);var E=this.transitions.find(function(z){return Array.isArray(z.from)?z.from.find(function(M){return M===O.state&&z.to===l}):z.from===O.state&&z.to===l});
if(E){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);MUi(this,l,e);this.state=l;sS&&Q4T(this.state);E=E.action.bind(this);var J=this.plugins.filter(function(z){return z[l]}).map(function(z){return z[l]});
E(VU1(this,J),e)}else throw Error("gd`"+this.state+"`"+l);};
var VU1=function(l,e){var O=e.filter(function(J){return ZZ1(l,J)===10}),E=e.filter(function(J){return ZZ1(l,J)!==10});
return l.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var J=_.ke.apply(0,arguments);return _.V(function(z){if(z.nextAddress==1)return _.C(z,l.runImmediateJobsAsync.apply(l,[O].concat(_.kA(J))),2);l.setJobSetWithScheduledJobs.apply(l,[E].concat(_.kA(J)));_.Cl(z)})}:function(){var J=_.ke.apply(0,arguments);
l.runImmediateJobsSync.apply(l,[O].concat(_.kA(J)));l.setJobSetWithScheduledJobs.apply(l,[E].concat(_.kA(J)))}};
G7.prototype.runImmediateJobsSync=function(l){var e=_.ke.apply(1,arguments);_.Gi();for(var O=_.b(l),E=O.next(),J={};!E.done;J={lifecycle$jscomp$2:void 0},E=O.next())J.lifecycle$jscomp$2=E.value,$7(function(z){return function(){uxq(z.lifecycle$jscomp$2.name);eed(function(){return z.lifecycle$jscomp$2.callback.apply(z.lifecycle$jscomp$2,_.kA(e))});
B0(z.lifecycle$jscomp$2.name)}}(J))};
G7.prototype.runImmediateJobsAsync=function(l){var e=_.ke.apply(1,arguments),O,E,J,z;return _.V(function(M){M.nextAddress==1&&(_.Gi(),O=_.b(l),E=O.next(),J={});if(M.nextAddress!=3){if(E.done)return M.jumpTo(0);J.lifecycle$jscomp$3=E.value;J.asyncJobCompletion=void 0;z=function(Z){return function(){uxq(Z.lifecycle$jscomp$3.name);var u=eed(function(){return Z.lifecycle$jscomp$3.callback.apply(Z.lifecycle$jscomp$3,_.kA(e))});
eDg(u)?Z.asyncJobCompletion=_.a("web_lifecycle_error_handling_killswitch")?u.then(function(){B0(Z.lifecycle$jscomp$3.name)}):u.then(function(){B0(Z.lifecycle$jscomp$3.name)},function(d){lex(d);
B0(Z.lifecycle$jscomp$3.name)}):B0(Z.lifecycle$jscomp$3.name)}}(J);
$7(z);return J.asyncJobCompletion?_.C(M,J.asyncJobCompletion,3):M.jumpTo(3)}J={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};E=O.next();return M.jumpTo(2)})};
G7.prototype.setJobSetWithScheduledJobs=function(l){var e=_.ke.apply(1,arguments),O=this,E=l.map(function(J){return{job:function(){uxq(J.name);eed(function(){return J.callback.apply(J,_.kA(e))});
B0(J.name)},
priority:ZZ1(O,J)}});
E.length&&(this.jobSet=new bZx(E))};
var ZZ1=function(l,e){var O,E;return(E=(O=l.overridePriority)!=null?O:e.priority)!=null?E:0},uxq=function(l){sS&&l&&Q4T(l)},B0=function(l){sS&&l&&xvM(l)},MUi=function(l,e,O){XmR&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+l.constructor.name+"] '"+l.state+"' to '"+e+"'"),console.log("with message: ",O),console.groupEnd())};
_.Ji.Object.defineProperties(G7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var CNq=function(l){G7.call(this,l===void 0?"none":l);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(){}}]},oEC;
_.m(CNq,G7);CNq.prototype.runApplicationNavigationBegin=function(l,e){var O=this;this.navigationTimer=_.fZ(_.UD,function(){O.currentState==="application_navigating"&&O.transition("none")},5E3);
l(e==null?void 0:e.event)};
CNq.prototype.runApplicationNavigationEnd=function(l,e){this.navigationTimer&&(_.UD.cancelJob(this.navigationTimer),this.navigationTimer=null);l(e==null?void 0:e.event)};
_.SVW=function(){oEC||(oEC=new CNq);return oEC};var D7A=[];_.zJ("yt.logging.transport.getScrapedGelPayloads",function(){return D7A});var wA=function(){var l=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return l.totalEntries}}};
wA.prototype.storePayload=function(l,e){l=O1q(l);this.store[l]?this.store[l].push(e):(this.memoizedKeySequences={},this.store[l]=[e]);this.totalEntries++;_.a("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return l};
wA.prototype.smartExtractMatchingEntries=function(l){if(!l.keys.length)return[];for(var e=$rF(this,l.keys.splice(0,1)[0]),O=[],E=0;E<e.length;E++)this.store[e[E]]&&l.sizeLimit&&(this.store[e[E]].length<=l.sizeLimit?(O.push.apply(O,_.kA(this.store[e[E]])),delete this.store[e[E]]):O.push.apply(O,_.kA(this.store[e[E]].splice(0,l.sizeLimit))));this.totalEntries-=O.length;(l==null?0:l.sizeLimit)&&O.length<(l==null?void 0:l.sizeLimit)&&(l.sizeLimit-=O.length,O.push.apply(O,_.kA(this.smartExtractMatchingEntries(l))));
return O};
wA.prototype.extractMatchingEntries=function(l){l=$rF(this,l);for(var e=[],O=0;O<l.length;O++)this.store[l[O]]&&(e.push.apply(e,_.kA(this.store[l[O]])),delete this.store[l[O]]);this.totalEntries-=e.length;return e};
wA.prototype.getSequenceCount=function(l){l=$rF(this,l);for(var e=0,O=0;O<l.length;O++){var E=void 0;e+=((E=this.store[l[O]])==null?void 0:E.length)||0}return e};
var $rF=function(l,e){var O=O1q(e);if(l.memoizedKeySequences[O])return l.memoizedKeySequences[O];var E=Object.keys(l.store)||[];if(E.length<=1&&O1q(e)===E[0])return E;for(var J=[],z=0;z<E.length;z++){var M=E[z].split("/");if(WBH(e.auth,M[0])){var Z=e.isJspb;WBH(Z===void 0?"undefined":Z?"true":"false",M[1])&&WBH(e.cttAuthInfo,M[2])&&(Z=e.tier,Z=Z===void 0?"undefined":JSON.stringify(Z),WBH(Z,M[3])&&J.push(E[z]))}}return l.memoizedKeySequences[O]=J},WBH=function(l,e){return l===void 0||l==="undefined"?
!0:l===e};
wA.prototype.getSequenceCount=wA.prototype.getSequenceCount;wA.prototype.extractMatchingEntries=wA.prototype.extractMatchingEntries;wA.prototype.smartExtractMatchingEntries=wA.prototype.smartExtractMatchingEntries;wA.prototype.storePayload=wA.prototype.storePayload;var cAM,jBq,F0t,aD,drF,E0u,O4d,K0T,psT,d72,H1d,NPV,Iep;cAM=_.Cv("initial_gel_batch_timeout",2E3);jBq=_.Cv("gel_queue_timeout_max_ms",6E4);F0t=_.Cv("gel_min_batch_size",5);aD=void 0;drF=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
E0u=new drF;O4d=new drF;K0T=new drF;psT=new drF;H1d=!0;NPV=1;_.vTx=new Map;Iep=_.Op.ytLoggingTransportTokensToCttTargetIds_||{};_.zJ("ytLoggingTransportTokensToCttTargetIds_",Iep);var kVu=_.Op.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.zJ("ytLoggingTransportTokensToJspbCttTargetIds_",kVu);var nZ={};var TM=_.Op.ytLoggingGelSequenceIdObj_||{};_.zJ("ytLoggingGelSequenceIdObj_",TM);var b4L=[];var wfV=new Set,Csd=0,krx=0,auM=0,$Tg=[],o0q=[],Iud=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var GrW=function(){};
GrW.prototype.getUrl=function(l,e){e=e===void 0?!1:e;return l.hasOwnProperty("shareEndpoint")?null:_.KXx(l,null,e)};
var THW=function(l,e,O){l={endpoint:e,actions:[]};O=(O.path?O.path[0]:O.target).icon||"";e=O.indexOf(":");e>0&&(O=O.substr(e+1));O&&l.actions.push(O);return l};var Rcq=/Command$/,fuV=/Endpoint$/,H4L=new Map;var gEx,iZq;gEx=1;_.SU=function(){this.actionRoutingMap=new Map};
_.SU.prototype.triggerAction=function(l){var e=new uBq(l,!1,_.ke.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.SU.prototype.triggerOptionalAction=function(l){var e=new uBq(l,!0,_.ke.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.P0=function(l,e,O){e.forEach(function(E){var J=FXV(E);J&&l.triggerOptionalAction(J,E,O,void 0)})};
_.SU.prototype.handleAction=function(l){var e=this.actionRoutingMap.get(l.actionName);e&&iZq(l,e);l.optionalAction||l.returnValue.length!==0||(l=new _.Hk("Unhandled action",l.actionName),_.Nz(l))};
iZq=function(l,e){e.forEach(function(O){var E=null;O?E=O.apply(null,l.args):(O=Error("hd"),O.params=l.actionName,_.tT(O));l.returnValue.push(E)})};
_.QW=function(l,e,O){O||(O=gEx++);for(var E=_.b(Object.keys(e)),J=E.next();!J.done;J=E.next()){J=J.value;var z=l.actionRoutingMap.get(J);z||(z=new Map,l.actionRoutingMap.set(J,z));l.registerActionHandler(O,J,e[J],z)}return O};
_.SU.prototype.registerActionHandler=function(l,e,O,E){E.set(l,_.qz(O))};
_.xE=function(l,e,O){e=_.b(Object.keys(e));for(var E=e.next();!E.done;E=e.next())(E=l.actionRoutingMap.get(E.value))&&E.delete(O)};
_.uv(_.SU);var UTp=function(l,e){var O=_.SU.getInstance();_.sC(function(){var E={},J=_.QW(O,(E[l]=e,E));_.B3(function(){var z={};_.xE(O,(z[l]="",z),J)})})};_.E0=Symbol("jd");Dxx=jDV;var E7d=new Set(["For","If","Match","Watch"]),wm1={},AGk=(wm1[qa.default]=function(){return Lwx},wm1.style=function(){return Lwx},wm1),nEx;
for(nEx in AGk)_.Zc.attributes[nEx]=AGk[nEx](_.Zc.attributes[nEx]);var MY=new _.Xa("VISIBILITY_OBSERVER");var o7u={retrieve:function(l){return this.id.\u0275prov.token===l.\u0275prov.token?this.contextValue:this?zh(this,this.id):EB}};var YbV=function(l,e,O){if(l!==JP)return!1;l=Stt(document.createElement("div"),function(){var E=uP(!1);try{O[0]()}finally{uP(E)}});
l=Array.from(l.childNodes);l.length===1&&(l=l[0]);return l};var ab1=function(l){l=l.clone();vzq(l);pn(l,"dg",null);pn(l,"d","0");hJR(l,null);L3q(l,null);return l},kMF=!0,IbR=function(l,e,O){var E=O===void 0?{}:O;
O=E.cssRowKey===void 0?void 0:E.cssRowKey;var J=E.combinedSignature===void 0?void 0:E.combinedSignature;var z=E.extraEdges===void 0?void 0:E.extraEdges;E=E.callback===void 0?void 0:E.callback;pn(l,"m",e.join(","));z&&qoq(l,z);O&&(pn(l,"ck",O),J?pn(l,"rs",J):kMF&&(kMF=!1));if(E){if(E!=null&&!Dhq.test(E))throw Error("ab`"+E);pn(l,"cb",E)}l=l.toString();_.Jq(l,"/")&&(l=cC1(document.location.href)+l);return _.VS(l)};var yGq=function(l){return mrH(l).then(function(e){return JSON.parse(e.responseText)})},mrH=function(l){var e={},O=e.xmlHttpFactory?e.xmlHttpFactory.createInstance():uC1.createInstance();
return(new _.kE(function(E,J){var z;try{O.open("GET",l,!0)}catch(u){J(new US("Error opening XHR: "+u.message,l,O))}O.onreadystatechange=function(){if(O.readyState==4){_.Op.clearTimeout(z);var u;!(u=ZU1(O.status))&&(u=O.status===0)&&(u=HR1(l),u=!(u=="http"||u=="https"||u==""));u?E(O):J(new pmk(O.status,l,O))}};
O.onerror=function(){J(new US("Network error",l,O))};
if(e.headers)for(var M in e.headers){var Z=e.headers[M];Z!=null&&O.setRequestHeader(M,Z)}e.withCredentials&&(O.withCredentials=e.withCredentials);e.responseType&&(O.responseType=e.responseType);e.mimeType&&O.overrideMimeType(e.mimeType);e.timeoutMs>0&&(z=_.Op.setTimeout(function(){O.onreadystatechange=function(){};
O.abort();J(new KBF(l,O))},e.timeoutMs));
try{O.send(null)}catch(u){O.onreadystatechange=function(){},_.Op.clearTimeout(z),J(new US("Error sending XHR: "+u.message,l,O))}})).thenCatch(function(E){E instanceof _.lY&&O.abort();
throw E;})},US=function(l,e,O){_.l2.call(this,l+", url="+e);
this.url=e;this.xhr=O};
_.o_(US,_.l2);US.prototype.name="XhrError";var pmk=function(l,e,O){US.call(this,"Request Failed, status="+l,e,O);this.status=l};
_.o_(pmk,US);pmk.prototype.name="XhrHttpError";var KBF=function(l,e){US.call(this,"Request timed out",l,e)};
_.o_(KBF,US);KBF.prototype.name="XhrTimeoutError";ZZ=ZZ||{};var Y3=function(){_.y6.call(this)};
_.o_(Y3,_.y6);Y3.prototype.initialize=function(){};var jDq=function(l,e){this.fn_=l;this.handler_=e};
jDq.prototype.execute=function(l){this.fn_&&(this.fn_.call(this.handler_||null,l),this.fn_=this.handler_=null)};
jDq.prototype.abort=function(){this.handler_=this.fn_=null};var hf=function(l,e){_.y6.call(this);this.deps_=l;this.JSC$8975_id_=e;this.onloadCallbacks_=[];this.JSC$8975_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.o_(hf,_.y6);hf.prototype.moduleConstructor_=Y3;hf.prototype.module_=null;hf.prototype.getId=function(){return this.JSC$8975_id_};
hf.prototype.registerCallback=function(l,e){return HZk(this.onloadCallbacks_,l,e)};
var cGF=function(l,e){HZk(l.JSC$8975_onErrorCallbacks_,e)},HZk=function(l,e,O){e=new jDq(e,O);
l.push(e);return e};
hf.prototype.isLoaded=function(){return!!this.module_};
hf.prototype.onLoad=function(l){var e=new this.moduleConstructor_;e.initialize(l());this.module_=e;e=(e=FB0(this.earlyOnloadCallbacks_,l()))||FB0(this.onloadCallbacks_,l());e||(this.JSC$8975_onErrorCallbacks_.length=0);return e};
hf.prototype.onError=function(l){(l=FB0(this.JSC$8975_onErrorCallbacks_,l))&&Ep(Error("nd`"+l));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var FB0=function(l,e){for(var O=[],E=0;E<l.length;E++)try{l[E].execute(e)}catch(J){Ep(J),O.push(J)}l.length=0;return O.length?O:null};
hf.prototype.disposeInternal=function(){hf.superClass_.disposeInternal.call(this);_.Q9(this.module_)};var fbx,PN0,GMR,BA0,TAS,sDC,tUk,hB1,LB0;
_.tf=function(l,e,O,E,J){E=E===void 0?!1:E;J=J===void 0?!1:J;var z=z===void 0?!0:z;this.scsReferenceUrl_=LGW(_.Z9(l).toString(),z);this.cssRowKey_=e;this.combinedSignature_=O;this.useNegativeLoading_=E;this.requestedModuleMap_={};this.JSC$8978_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(l=yi(this.scsReferenceUrl_,"excm"))?l.split(","):[];this.shouldScanForCss_=J;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;tDt();this.logger=null;_.LI(this,t$S(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
fbx=function(l,e){if(e.href||e.getAttribute("data-href"))if(e=e.href||e.getAttribute("data-href"),PPW(e)&&!LGW(e).urlPrefix_.endsWith("_/js/")){e=t$S(LGW(e));e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,l.loadedCssModuleList_.includes(O)||l.loadedCssModuleList_.push(O)}};
_.tf.prototype.JSC$8980_loadModules=function(l,e,O){var E=O===void 0?{}:O;O=E.extraEdges;var J=E.onError;var z=E.onSuccess;E=E.forceReload;this.JSC$8978_moduleInfoMap_=e;if(!l)throw Error("od");if(this.shouldScanForCss_){e=_.b(document.getElementsByTagName("style"));for(var M=e.next();!M.done;M=e.next())fbx(this,M.value);e=_.b(document.getElementsByTagName("link"));for(M=e.next();!M.done;M=e.next())fbx(this,M.value)}RBS(this,TAS(this,l),O,J,z,E)};
var RBS=function(l,e,O,E,J,z){E=E===void 0?function(){}:E;
J=J===void 0?function(){}:J;
z=z===void 0?!1:z;sDC(l,e,function(M,Z,u){u=u===void 0?Z:u;l.enableFallbackFetch&&z?l.loadWithFetch(M,Z,E,J,u):l.load(M,Z,E,J,u,O)},O)||E(-1)};
_.tf.prototype.loadWithFetch=function(){_.V(function(){throw Error("pd");})};
_.tf.prototype.maybeSetAdditionalFields=function(){};
PN0=function(l,e,O){if(l.useNegativeLoading_){var E=l.scsReferenceUrl_;l={cssRowKey:l.cssRowKey_,combinedSignature:l.combinedSignature_,extraEdges:O,requestedModuleIds:GMR(l),requestedCssModuleIds:BA0(l)};var J=l===void 0?{}:l;l=J.requestedModuleIds===void 0?[]:J.requestedModuleIds;O=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds;var z=J.cssRowKey===void 0?void 0:J.cssRowKey;var M=J.combinedSignature===void 0?void 0:J.combinedSignature;var Z=J.extraEdges===void 0?void 0:J.extraEdges;
J=J.callback===void 0?void 0:J.callback;E=ab1(E);pn(E,"d","1");hJR(E,l);L3q(E,O);e=IbR(E,e,{cssRowKey:z,combinedSignature:M,extraEdges:Z,callback:J})}else E=l.scsReferenceUrl_,l={cssRowKey:l.cssRowKey_,combinedSignature:l.combinedSignature_,requestedModuleIds:GMR(l),requestedCssModuleIds:BA0(l)},Z=l===void 0?{}:l,l=Z.requestedCssModuleIds===void 0?[]:Z.requestedCssModuleIds,O=Z.cssRowKey===void 0?void 0:Z.cssRowKey,z=Z.combinedSignature===void 0?void 0:Z.combinedSignature,M=Z.extraEdges===void 0?
void 0:Z.extraEdges,Z=Z.callback===void 0?void 0:Z.callback,E=ab1(E),L3q(E,l),e=IbR(E,e,{cssRowKey:O,combinedSignature:z,extraEdges:M,callback:Z});return e};
_.LI=function(l,e){for(var O=!1,E=[],J=0;J<e.length;++J){var z=e[J];l.requestedModuleMap_[z]||(l.requestedModuleMap_[z]=!0,l.requestedModuleList_.push(z),O=!0,E.push(z))}O&&(l.requestedModuleListSorted_=!1)};
_.qk=function(l,e){for(var O=[],E=0;E<e.length;++E){var J=e[E];l.requestedModuleMap_[J]&&(delete l.requestedModuleMap_[J],_.NA(l.requestedModuleList_,J),O.push(J))}};
_.tf.prototype.load=function(l,e,O,E,J){J=J===void 0?e:J;_.Z9(l);var z=this.useCors_,M=this.corsMode_,Z=this.fetchPriority,u=_.i$("SCRIPT");_.UN(u,l);z&&(u.crossOrigin=M);u.async=!1;Z&&u.setAttribute("fetchpriority",Z);_.LI(this,e);_.Urx(this,l,u,e,O,E,J)};
_.Urx=function(l,e,O,E,J,z,M){M=M===void 0?E:M;l.lastScript_=O;l.insertPos.insertBefore(O,l.insertPos.firstChild);_.YWq(O,E,function(){O.parentElement.removeChild(O);l.lastScript_==O&&(l.lastScript_=null);var Z=new Set;E.map(function(d){return Z.add(d)});
for(var u in l.JSC$8978_moduleInfoMap_)l.JSC$8978_moduleInfoMap_[u].isLoaded()&&Z.add(u);Array.from(Z);z()},function(Z){O.parentElement.removeChild(O);
l.lastScript_==O&&(l.lastScript_=null);_.qk(l,Z);l.pendingModuleGraphUpdate_?l.pendingModuleGraphUpdate_.then(function(){J(-1,e)}):J(-1,e)},M)};
_.YWq=function(l,e,O,E,J){J=J===void 0?e:J;var z=e.length,M=function(){z=0;l.onload=null;l.onerror=null;Z=function(){}},Z=function(){M();
var d=J.filter(function(g){return!fb().getModuleInfo(g).isLoaded()});
d.length!==0?E(d,"Response was successful but was missing module(s) "+d+"."):O()},u=function(){z--;
z==0&&Z()};
e.forEach(function(d){d=fb().getModuleInfo(d);d.isLoaded()?u():(HZk(d.earlyOnloadCallbacks_,u),cGF(d,u))});
l.onload=function(){return Z()};
l.onerror=function(){M();E(e)}};
GMR=function(l){l.requestedModuleListSorted_||(l.requestedModuleListSorted_=!0,l.requestedModuleList_.sort());return l.requestedModuleList_};
BA0=function(l){l=l.loadedCssModuleList_;l.sort();return l};
TAS=function(l,e){return e.filter(function(O){return!l.requestedModuleMap_[O]})};
sDC=function(l,e,O,E){if(l.pendingModuleGraphUpdate_)return l.pendingModuleGraphUpdate_.then(function(){sDC(l,e,O,E)}),!0;
if(!l.useNegativeLoading_){var J=[],z=Object.assign({},l.requestedModuleMap_);hB1(l,e,function(g){J.push(g.getId())},E,function(g){return!g.isLoaded()},z);
e=J}for(z=0;z<e.length;){for(var M=e.length-z,Z=z==0?e:e.slice(z,e.length),u=PN0(l,Z,E),d=_.Z9(u).toString();d.length>l.urlMaxLength;)if(M>1)M-=Math.ceil((d.length-l.urlMaxLength)/6),M=Math.max(M,1),Z=e.slice(z,z+M),u=PN0(l,Z,E),d=_.Z9(u).toString();else return l.useNegativeLoading_?(l.useNegativeLoading_=!1,l.pendingModuleGraphUpdate_=LB0(l).then(function(g){tUk(l,g,E)}),sDC(l,e.slice(z),O,E)):!1;
z+=M;l.useNegativeLoading_?O(u,Z):O(u,Z,z===e.length?e:[])}return!0};
tUk=function(l,e,O){fb().setAllModuleInfoString((e||{}).moduleGraph);hB1(l,GMR(l),function(E){_.LI(l,[E.getId()])},O);
l.pendingModuleGraphUpdate_=null};
hB1=function(l,e,O,E,J,z){z=z===void 0?{}:z;var M=fb();e=_.b(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var u=M.getModuleInfo(Z);if(!(z[Z]||J&&!J(u))){z[Z]=!0;var d=u.deps_||[];if(E){var g=[];E[Z]&&(g=Object.keys(E[Z]));d=d.concat(g)}hB1(l,d,O,E,J,z);O(u)}}};
LB0=function(l){l=l.scsReferenceUrl_.clone();vzq(l);pn(l,"dg",null);pn(l,"md","1");return yGq(l.toString())};var djT=new Uint8Array(123);var qW0=[];var vEk=function(){this.JSC$8090_loader_=null};
_.X=vEk.prototype;_.X.setBatchModeEnabled=function(){};
_.X.setAllModuleInfoString=function(){};
_.X.addExtraEdge=function(){throw Error("qd");};
_.X.removeExtraEdge=function(){throw Error("rd");};
_.X.getModuleContext=function(){return null};
_.X.isActive=function(){return!1};
_.X.isUserActive=function(){return!1};
_.X.registerCallback=function(){};var v0=function(l,e,O,E,J){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.name="ModuleLoadFailure";this.type=l;this.status=e;this.requestedModuleIds=O;this.url=E;this.cause=J;this.message=this.toString()};
_.m(v0,Error);v0.prototype.toString=function(){return NAq(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var NAq=function(l){switch(l.type){case v0.JSC$8990_Type.UNAUTHORIZED:return"Unauthorized";case v0.JSC$8990_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case v0.JSC$8990_Type.TIMEOUT:return"Timed out";case v0.JSC$8990_Type.OLD_CODE_GONE:return"Out of date module id";case v0.JSC$8990_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+l.type}};
ZZ.ModuleLoadFailure=v0;ZZ.ModuleLoadFailure.JSC$8990_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Nk=function(){this.moduleIds_=this.JSC$8090_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8993_extraEdges_={};this.JSC$8993_callbackMap_={};this.JSC$8993_currentlyLoadingModule_=this.baseModuleInfo_=new hf([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Qw;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.o_(Nk,vEk);var rGq=function(l,e){_.l2.call(this,"Error loading "+l+": "+e)};
_.o_(rGq,_.l2);Nk.prototype.setBatchModeEnabled=function(l){this.batchModeEnabled_=l};
Nk.prototype.setAllModuleInfoString=function(l,e){if(!(this instanceof Nk))this.setAllModuleInfoString(l,e);else if(typeof l==="string"){if(l.startsWith("d$")){l=l.substring(2);for(var O=[],E=0,J=l.indexOf("/"),z=0,M=!1,Z=0;;){var u=M?l.substring(z):l.substring(z,J);if(u.length===0)E++,z="sy"+E.toString(36),u=[];else{var d=u.indexOf(":");if(d<0)z=u,u=[];else if(d===u.length-1)z=u.substring(0,d),u=Array(O[Z-1]);else{z=u.substring(0,d);u=u.substring(d+1).split(",");d=Z;for(var g=0;g<u.length;g++)d-=
u[g].length===0?1:Number(u[g]),u[g]=O[d]}d=0;if(z.length===0)d=1;else if(z.charAt(0)==="+"||z.charAt(0)==="-")d=Number(z);d!==0&&(E+=d,z="sy"+E.toString(36))}O.push(z);Dr6(this,z,u);if(M)break;z=J+1;J=l.indexOf("/",z);J===-1&&(M=!0);Z++}this.moduleIds_=O}else if(l.startsWith("p$"))SWk(this,l);else{l=l.split("/");O=[];for(E=0;E<l.length;E++){Z=l[E].split(":");J=Z[0];M=[];if(Z[1])for(M=Z[1].split(","),Z=0;Z<M.length;Z++)M[Z]=O[parseInt(M[Z],36)];O.push(J);Dr6(this,J,M)}this.moduleIds_=O}e&&e.length?
(_.Q8(this.loadingModuleIds_,e),this.lastInitialModuleId_=_.sp(e)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8993_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8993_currentlyLoadingModule_=null,(e=this.baseModuleInfo_.onLoad((0,_.pb)(this.getModuleContext,this)))&&e.length&&QD1(this,new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.INIT_ERROR,void 0,void 0,void 0,e[0])),r9(this))}};
var SWk=function(l,e){var O=e.substring(2);for(e=0;e<64;e++)djT["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(e)]=e;var E={buf:O,pos:0};ug(E);var J=ug(E),z=ug(E)+1;e=Array(J);var M=Array(J),Z=Array(J);z=Array(z);var u=0,d=0,g=E.pos,w=E.buf.indexOf("|",E.pos);E.pos=w+1;for(w=0;w<J;w++){var n=ug(E),k=n&2,y=n&1;n>>>=2;y?(u+=n>>>1^-(n&1),n="sy"+u.toString(36)):(y=g,g+=n,n=O.substring(y,g));e[w]=n;k&&(z[d++]=n)}z[d]="";E.pos++;d=J&-2;O=J&1;for(u=0;u<d;u+=2)g=g72(E),Z[u]=
g&7,Z[u+1]=g>>>3&7;O&&(O=g72(E),Z[d]=O&7);E.pos++;for(d=0;d<J;d++)Z[d]===7&&(Z[d]=ug(E));E.pos++;for(O=d=0;O<J;O++){u=Z[O];g=u===0?qW0:Array(u);M[O]=g;w=d;for(k=0;k<u;k++)w-=ug(E),g[k]=z[w];z[d]===e[O]&&d++}for(E=0;E<e.length;E++)Dr6(l,e[E],M[E]);l.moduleIds_=e};
_.X=Nk.prototype;_.X.getModuleInfo=function(l){return this.moduleInfoMap[l]};
_.X.addExtraEdge=function(l,e){var O=this.getModuleInfo(l);O&&O.isLoaded()?this.load(e):(this.JSC$8993_extraEdges_[l]||(this.JSC$8993_extraEdges_[l]={}),this.JSC$8993_extraEdges_[l][e]=!0)};
_.X.removeExtraEdge=function(l,e){if(this.JSC$8993_extraEdges_[l]){delete this.JSC$8993_extraEdges_[l][e];for(var O in this.JSC$8993_extraEdges_[l])return;delete this.JSC$8993_extraEdges_[l]}};
_.X.isActive=function(){return this.loadingModuleIds_.length>0};
_.X.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var r9=function(l){var e=l.lastActive_,O=l.isActive();O!=e&&(l.executeCallbacks_(O?"active":"idle"),l.lastActive_=O);e=l.isUserActive();e!=l.userLastActive_&&(l.executeCallbacks_(e?"userActive":"userIdle"),l.userLastActive_=e)},Dr6=function(l,e,O){l.moduleInfoMap[e]?(l=l.moduleInfoMap[e].deps_,l!=O&&l.splice.apply(l,[0,
l.length].concat(_.kA(O)))):l.moduleInfoMap[e]=new hf(O,e)},l8R=function(l,e,O){var E=[];
Ex(e,E);e=[];for(var J={},z=0;z<E.length;z++){var M=E[z],Z=l.getModuleInfo(M);if(!Z)throw Error("sd`"+M);var u=new Qw;J[M]=u;Z.isLoaded()?u.callback(null):(xrR(l,M,Z,!!O,u),l.isModuleLoading(M)||e.push(M))}e.length>0&&(l.loadingModuleIds_.length===0?l.loadModules_(e):(l.requestedModuleIdsQueue_.push(e),r9(l)));return J},xrR=function(l,e,O,E,J){O.registerCallback(J.callback,J);
cGF(O,function(z){J.errback(new rGq(e,z))});
l.isModuleLoading(e)?E&&(ea0(l,e),r9(l)):E&&ea0(l,e)};
Nk.prototype.loadModules_=function(l,e,O){var E=this;e||(this.consecutiveFailures_=0);var J=Orq(this,l);this.loadingModuleIds_=J;this.requestedLoadingModuleIds_=this.batchModeEnabled_?l:_.rT(J);r9(this);if(J.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,J);if(Object.keys(this.JSC$8993_extraEdges_).length>0&&!this.JSC$8090_loader_.supportsExtraEdges)throw Error("td");l=(0,_.pb)(this.JSC$8090_loader_.JSC$8980_loadModules,this.JSC$8090_loader_,_.rT(J),this.moduleInfoMap,{extraEdges:this.JSC$8993_extraEdges_,
forceReload:!!O,onError:function(z,M){var Z=E.requestedLoadingModuleIds_;z=z!=null?z:void 0;E.consecutiveFailures_++;var u=_.rT(J);E.requestedLoadingModuleIds_=Z;J.forEach(_.pz(_.NA,E.requestedModuleIds_),E);z==401?(QD1(E,new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.UNAUTHORIZED,z)),E.requestedModuleIdsQueue_.length=0):z==410?(EZH(E,new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.OLD_CODE_GONE,z)),JPF(E)):E.consecutiveFailures_>=3?(EZH(E,new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.CONSECUTIVE_FAILURES,
z,u,M)),JPF(E)):E.loadModules_(E.requestedLoadingModuleIds_,!0,z==8001||!1)},
onTimeout:(0,_.pb)(this.handleLoadTimeout_,this)});(e=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Op.setTimeout(l,e):l()}};
var Orq=function(l,e){e=e.filter(function(J){return l.moduleInfoMap[J].isLoaded()?(_.Op.setTimeout(function(){return Error("ud`"+J)},0),!1):!0});
for(var O=[],E=0;E<e.length;E++)O=O.concat(XQq(l,e[E]));Ex(O);return!l.batchModeEnabled_&&O.length>1?(e=O.shift(),l.requestedModuleIdsQueue_=O.map(function(J){return[J]}).concat(l.requestedModuleIdsQueue_),[e]):O},XQq=function(l,e){var O=_.mm.createSet(l.requestedModuleIds_),E=[];
O[e]||E.push(e);e=[e];for(var J=0;J<e.length;J++)for(var z=l.getModuleInfo(e[J]).deps_,M=z.length-1;M>=0;M--){var Z=z[M];l.getModuleInfo(Z).isLoaded()||O[Z]||(E.push(Z),e.push(Z))}E.reverse();Ex(E);return E};
Nk.prototype.JSC$8988_setLoaded=function(){if(this.JSC$8993_currentlyLoadingModule_){var l=this.JSC$8993_currentlyLoadingModule_.getId(),e=[];if(this.JSC$8993_extraEdges_[l]){for(var O=_.b(Object.keys(this.JSC$8993_extraEdges_[l])),E=O.next();!E.done;E=O.next()){E=E.value;var J=this.getModuleInfo(E);J&&!J.isLoaded()&&(this.removeExtraEdge(l,E),e.push(E))}this.loadMultiple(e)}this.isDisposed()||((e=this.moduleInfoMap[l].onLoad((0,_.pb)(this.getModuleContext,this)))&&e.length&&QD1(this,new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.INIT_ERROR,
void 0,void 0,void 0,e[0])),_.NA(this.userInitiatedLoadingModuleIds_,l),_.NA(this.loadingModuleIds_,l),this.loadingModuleIds_.length===0&&JPF(this),this.lastInitialModuleId_&&l==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),r9(this),this.JSC$8993_currentlyLoadingModule_=null)}};
Nk.prototype.isModuleLoading=function(l){if(_.hq(this.loadingModuleIds_,l))return!0;for(var e=0;e<this.requestedModuleIdsQueue_.length;e++)if(_.hq(this.requestedModuleIdsQueue_[e],l))return!0;return!1};
Nk.prototype.load=function(l,e){return l8R(this,[l],e)[l]};
Nk.prototype.loadMultiple=function(l){return l8R(this,l)};
var ea0=function(l,e){_.hq(l.userInitiatedLoadingModuleIds_,e)||l.userInitiatedLoadingModuleIds_.push(e)};
Nk.prototype.beforeLoadModuleCode=function(l){var e=this;this.JSC$8993_currentlyLoadingModule_&&this.JSC$8993_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8988_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[l]&&zaC(this,this.moduleInfoMap[l].deps_||[],function(O){O.module_=new Y3;_.NA(e.loadingModuleIds_,O.getId())},function(O){return!O.isLoaded()});
this.JSC$8993_currentlyLoadingModule_=this.getModuleInfo(l)};
Nk.prototype.handleLoadTimeout_=function(){EZH(this,new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.TIMEOUT));JPF(this)};
var EZH=function(l,e){l.requestedLoadingModuleIds_.length>1?l.requestedModuleIdsQueue_=l.requestedLoadingModuleIds_.map(function(O){return[O]}).concat(l.requestedModuleIdsQueue_):QD1(l,e)},QD1=function(l,e){var O=l.requestedLoadingModuleIds_;
l.loadingModuleIds_.length=0;for(var E=[],J=0;J<l.requestedModuleIdsQueue_.length;J++){var z=l.requestedModuleIdsQueue_[J].filter(function(u){var d=XQq(this,u);return eU(O,function(g){return _.hq(d,g)})},l);
_.Q8(E,z)}for(J=0;J<O.length;J++)_.qA(E,O[J]);for(J=0;J<E.length;J++){for(z=0;z<l.requestedModuleIdsQueue_.length;z++)_.NA(l.requestedModuleIdsQueue_[z],E[J]);_.NA(l.userInitiatedLoadingModuleIds_,E[J])}if(J=l.JSC$8993_callbackMap_.error)for(z=0;z<J.length;z++)for(var M=J[z],Z=0;Z<E.length;Z++)M("error",E[Z],e);for(E=0;E<O.length;E++)if(l.moduleInfoMap[O[E]])l.moduleInfoMap[O[E]].onError(e);l.requestedLoadingModuleIds_.length=0;r9(l)},JPF=function(l){for(;l.requestedModuleIdsQueue_.length;){var e=
l.requestedModuleIdsQueue_.shift().filter(function(O){return!this.getModuleInfo(O).isLoaded()},l);
if(e.length>0){l.loadModules_(e);return}}r9(l)};
Nk.prototype.registerCallback=function(l,e){Array.isArray(l)||(l=[l]);for(var O=0;O<l.length;O++){var E=l[O],J=e,z=this.JSC$8993_callbackMap_;z[E]||(z[E]=[]);z[E].push(J)}};
Nk.prototype.executeCallbacks_=function(l){for(var e=this.JSC$8993_callbackMap_[l],O=0;e&&O<e.length;O++)e[O](l)};
var zaC=function(l,e,O,E,J){E=E===void 0?function(){return!0}:E;
J=J===void 0?{}:J;e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;var M=l.getModuleInfo(z);!J[z]&&E(M)&&(J[z]=!0,zaC(l,M.deps_||[],O,E,J),O(M))}};
Nk.prototype.dispose=function(){_.xS(_.mm.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8993_callbackMap_={};this.isDisposed_=!0};
Nk.prototype.isDisposed=function(){return this.isDisposed_};
_.F8=function(){return new Nk};var brF=[5E3,2E4],M41=function(){this.JSC$8090_loader_=null;this.JSC$9001_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9001_queue_=[];this.JSC$9001_extraEdges_=Object.create(null);this.JSC$9001_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.m(M41,vEk);_.X=M41.prototype;_.X.setAllModuleInfoString=function(){this.JSC$9001_currentlyLoadingModule_&&this.JSC$9001_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8988_setLoaded()};
_.X.getModuleInfo=function(l){var e=this.JSC$9001_moduleInfoMap_[l];e||(e=new hf([],l),this.JSC$9001_moduleInfoMap_[l]=e);return e};
_.X.addExtraEdge=function(l,e){this.getModuleInfo(l).isLoaded()?this.load(e):(this.JSC$9001_extraEdges_[l]||(this.JSC$9001_extraEdges_[l]={}),this.JSC$9001_extraEdges_[l][e]=!0)};
_.X.removeExtraEdge=function(l,e){if(this.JSC$9001_extraEdges_[l]){delete this.JSC$9001_extraEdges_[l][e];for(var O in this.JSC$9001_extraEdges_[l])return;delete this.JSC$9001_extraEdges_[l]}};
_.X.isModuleLoading=function(l){return!!this.loadingModules_[l]};
_.X.load=function(l){V4i(this,[l]);return Zr1(this,l)};
_.X.loadMultiple=function(l){var e=this,O=Object.create(null),E=[];l.forEach(function(J){O[J]||(O[J]=Zr1(e,J),E.push(J))});
V4i(this,E);return O};
_.X.beforeLoadModuleCode=function(l){var e;((e=this.JSC$9001_currentlyLoadingModule_)==null?void 0:e.getId())==="synthetic_module_overhead"&&this.JSC$8988_setLoaded();var O,E;uwF(this,(E=(O=this.JSC$9001_moduleInfoMap_[l])==null?void 0:O.deps_)!=null?E:[],function(J){J.module_=new Y3},function(J){return!J.isLoaded()});
this.JSC$9001_currentlyLoadingModule_=this.getModuleInfo(l)};
_.X.JSC$8988_setLoaded=function(){if(this.JSC$9001_currentlyLoadingModule_){var l=this.JSC$9001_currentlyLoadingModule_.getId(),e=[];if(this.JSC$9001_extraEdges_[l]){for(var O=_.b(Object.keys(this.JSC$9001_extraEdges_[l])),E=O.next();!E.done;E=O.next())E=E.value,this.getModuleInfo(E).isLoaded()||(this.removeExtraEdge(l,E),e.push(E));this.loadMultiple(e)}this.JSC$9001_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9001_currentlyLoadingModule_=null;(!this.isModuleLoading(l)&&/^sy[0-9a-z]{0,4}$/.test(l)||l==="synthetic_module_overhead")&&delete this.JSC$9001_moduleInfoMap_[l];this.unsetModulesAsLoading(l)}};
_.X.setModulesAsLoading=function(){var l=this;_.ke.apply(0,arguments).forEach(function(e){l.loadingModules_[e]=!0})};
_.X.unsetModulesAsLoading=function(){var l=this;_.ke.apply(0,arguments).forEach(function(e){delete l.loadingModules_[e]})};
var Zr1=function(l,e){return new _.kE(function(O,E){var J=l.getModuleInfo(e);J.isLoaded()?O(null):(J.registerCallback(function(){O(null)}),cGF(J,function(z){var M="Error loading "+e+": "+z;
z instanceof ZZ.ModuleLoadFailure&&z.url&&(M=M+", requested url: "+z.url.toString());E(Error(M))}))})},V4i=function(l,e){e=e.filter(function(O){return!l.isModuleLoading(O)&&!l.getModuleInfo(O).isLoaded()});
e.length>0&&(l.setModulesAsLoading.apply(l,_.kA(e)),l.JSC$9001_queue_.push(e),CgR(l))},CgR=function(l){for(var e={};l.activeLoads_<Infinity&&l.JSC$9001_queue_.length>0;e={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})e.ids$jscomp$36=l.JSC$9001_queue_.shift().filter(function(O){return!l.getModuleInfo(O).isLoaded()}),e.ids$jscomp$36.length>0&&(l.activeLoads_++,e.finishLoad=function(O){return function(){l.activeLoads_--;
CgR(l);O.finishLoad=function(){}}}(e),_.co(e.ids$jscomp$36.map(function(O){return Zr1(l,O)})).then(function(O){return function(){(0,O.finishLoad)()}}(e)),e.attempt$jscomp$6=0,e.load$jscomp$1=function(O){return function(){if(Object.keys(l.JSC$9001_extraEdges_).length>0&&!l.JSC$8090_loader_.supportsExtraEdges)throw Error("td");
l.JSC$8090_loader_.JSC$8980_loadModules(O.ids$jscomp$36,l.JSC$9001_moduleInfoMap_,{extraEdges:l.JSC$9001_extraEdges_,onError:function(E,J){var z=brF[O.attempt$jscomp$6++];z!==void 0?setTimeout(function(){(0,O.load$jscomp$1)()},z):(l.unsetModulesAsLoading.apply(l,_.kA(O.ids$jscomp$36)),(0,O.finishLoad)(),O.ids$jscomp$36.forEach(function(M){M=l.getModuleInfo(M);
if(!M.isLoaded())M.onError(new ZZ.ModuleLoadFailure(ZZ.ModuleLoadFailure.JSC$8990_Type.CONSECUTIVE_FAILURES,E,O.ids$jscomp$36,J))}))}})}}(e),(0,e.load$jscomp$1)())},uwF=function(l,e,O,E,J){E=E===void 0?function(){return!0}:E;
J=J===void 0?{}:J;e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;var M=l.getModuleInfo(z);!J[z]&&E(M)&&(J[z]=!0,uwF(l,M.deps_||[],O,E,J),O(M))}};var oZk=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var wFx=Symbol("wd");window.JSCompiler_renameProperty=function(l){return l};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var $YH=!oZk||HTMLElement.es5Shimmed||_.Op.Reflect===void 0||_.Op.customElements===void 0||_.Op.customElements.polyfillWrapFlushCallback||!1,WPq,PnW=function(){var l=HTMLElement;if($YH)return l;if(WPq!==void 0)return WPq;var e=_.Op.Reflect,O=function(){return e.construct(l,[],this.constructor)};
O.prototype=l.prototype;O.prototype.constructor=O;O.es5Shimmed=!0;Object.setPrototypeOf(O,l);return WPq=O},dYF=!1;$YH||dYF||(dYF=!0,_.Op.HTMLElement=PnW());/*

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 Iw2=/(url\()([^)]*)(\))/g,awx=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,kkp,Cr;var Lr=!window.ShadyDOM||!window.ShadyDOM.inUse,gZ1=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),ir0=!window.customElements.polyfillWrapFlushCallback,wQ1;if(wQ1=Lr&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var APq=new CSSStyleSheet;APq.replaceSync("");var nZk=document.createElement("div");nZk.attachShadow({mode:"open"});nZk.shadowRoot.adoptedStyleSheets=[APq];wQ1=nZk.shadowRoot.adoptedStyleSheets[0]===APq}catch(l){wQ1=!1}
var a8q=wQ1,kLq=window.Polymer&&window.Polymer.rootPath||ymA(document.baseURI||window.location.href),yR=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,TCT=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,NY=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,I8H=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,hP=window.Polymer&&window.Polymer.legacyOptimizations||!1,vQ=window.Polymer&&window.Polymer.legacyWarnings||!1,mYx=window.Polymer&&window.Polymer.syncInitialRender||
!1,Kr=window.Polymer&&window.Polymer.legacyUndefined||!1,yPH=window.Polymer&&window.Polymer.orderedComputed||!1,DK=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Sq=window.Polymer&&window.Polymer.fastDomIf||!1,Q7=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,pQH=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,KPx=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var x3={},jmk={},HQ=function(){return HTMLElement.apply(this,arguments)||this};
_.m(HQ,HTMLElement);HQ.import=function(l,e){return l?(l=x3[l]||jmk[l.toLowerCase()])&&e?l.querySelector(e):l:null};
HQ.prototype.attributeChangedCallback=function(l,e,O){e!==O&&this.register()};
HQ.prototype.register=function(l){if(l=l||this.id){if(NY&&(x3[l]||jmk[l.toLowerCase()])!==void 0)throw x3[l]=jmk[l.toLowerCase()]=null,Error("xd`"+l);this.id=l;x3[l]=jmk[l.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Ji.Object.defineProperties(HQ.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var l=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;l=_.om(this.getAttribute("assetpath")||"",l.baseURI);this.__assetpath=ymA(l)}return this.__assetpath}}});
_.Ji.Object.defineProperties(HQ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
HQ["import"]=HQ.import;HQ.prototype.modules=x3;customElements.define("dom-module",HQ);var HrH=0,Kft=0,$Z=[],cPS=0,pFq=!1,FP6=document.createTextNode(""),f8q,U0;(new window.MutationObserver(jxx)).observe(FP6,{characterData:!0});_.la={after:function(l){return{run:function(e){return window.setTimeout(e,l)},
cancel:function(e){window.clearTimeout(e)}}},
run:function(l,e){return window.setTimeout(l,e)},
cancel:function(l){window.clearTimeout(l)}};
_.RX={run:function(l){return window.requestAnimationFrame(l)},
cancel:function(l){window.cancelAnimationFrame(l)}};
f8q={run:function(l){return window.requestIdleCallback?window.requestIdleCallback(l):window.setTimeout(l,16)},
cancel:function(l){window.cancelIdleCallback?window.cancelIdleCallback(l):window.clearTimeout(l)}};
U0={run:function(l){pFq||(pFq=!0,FP6.textContent=cPS++);$Z.push(l);return HrH++},
cancel:function(l){var e=l-Kft;if(e>=0){if(!$Z[e])throw Error("yd`"+l);$Z[e]=null}}};var Ra1=0,eJ=function(l){var e=l.__mixinApplications;e||(e=new WeakMap,l.__mixinApplications=e);var O=Ra1++;return function(E){var J=E.__mixinSet;if(J&&J[O])return E;var z=e,M=z.get(E);M||(M=l(E),z.set(E,M),E=Object.create(M.__mixinSet||J||null),E[O]=!0,M.__mixinSet=E);return M}};_.mP=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(l){return ShadyDOM.patch(l)}:function(l){return l};var T4q=eJ(function(l){var e=function(){var O=l.call(this)||this;O.__dataEnabled=!1;O.__dataReady=!1;O.__dataInvalid=!1;O.__data={};O.__dataPending=null;O.__dataOld=null;O.__dataInstanceProps=null;O.__dataCounter=0;O.__serializing=!1;O._initializeProperties();return O};
_.m(e,l);e.createProperties=function(O){var E=this.prototype,J;for(J in O)J in E||E._createPropertyAccessor(J)};
e.attributeNameForProperty=function(O){return O.toLowerCase()};
e.typeForProperty=function(){};
e.prototype._createPropertyAccessor=function(O,E){this._addPropertyToAttributeMap(O);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[O]||(this.__dataHasAccessor[O]=!0,this._definePropertyAccessor(O,E))};
e.prototype._addPropertyToAttributeMap=function(O){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var E=this.__dataAttributes[O];E||(E=this.constructor.attributeNameForProperty(O),this.__dataAttributes[E]=O);return E};
e.prototype._definePropertyAccessor=function(O,E){Object.defineProperty(this,O,{get:function(){return this.__data[O]},
set:E?function(){}:function(J){this._setPendingProperty(O,J,!0)&&this._invalidateProperties()}})};
e.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
e.prototype._initializeProperties=function(){for(var O in this.__dataHasAccessor)this.hasOwnProperty(O)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[O]=this[O],delete this[O])};
e.prototype._initializeInstanceProperties=function(O){Object.assign(this,O)};
e.prototype._setProperty=function(O,E){this._setPendingProperty(O,E)&&this._invalidateProperties()};
e.prototype._getProperty=function(O){return this.__data[O]};
e.prototype._setPendingProperty=function(O,E){var J=this.__data[O],z=this._shouldPropertyChange(O,E,J);z&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||O in this.__dataOld||(this.__dataOld[O]=J),this.__data[O]=E,this.__dataPending[O]=E);return z};
e.prototype._isPropertyPending=function(O){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(O))};
e.prototype._invalidateProperties=function(){var O=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,U0.run(function(){O.__dataInvalid&&(O.__dataInvalid=!1,O._flushProperties())}))};
e.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
e.prototype._flushProperties=function(){this.__dataCounter++;var O=this.__data,E=this.__dataPending,J=this.__dataOld;this._shouldPropertiesChange(O,E,J)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(O,E,J));this.__dataCounter--};
e.prototype._shouldPropertiesChange=function(O,E){return!!E};
e.prototype._propertiesChanged=function(){};
e.prototype._shouldPropertyChange=function(O,E,J){return J!==E&&(J===J||E===E)};
e.prototype.attributeChangedCallback=function(O,E,J,z){E!==J&&this._attributeToProperty(O,J);l.prototype.attributeChangedCallback&&l.prototype.attributeChangedCallback.call(this,O,E,J,z)};
e.prototype._attributeToProperty=function(O,E,J){if(!this.__serializing){var z=this.__dataAttributes;O=z&&z[O]||O;this[O]=this._deserializeValue(E,J||this.constructor.typeForProperty(O))}};
e.prototype._propertyToAttribute=function(O,E,J){this.__serializing=!0;J=arguments.length<3?this[O]:J;this._valueToNodeAttribute(this,J,E||this.constructor.attributeNameForProperty(O));this.__serializing=!1};
e.prototype._valueToNodeAttribute=function(O,E,J){E=this._serializeValue(E);if(J==="class"||J==="name"||J==="slot")O=(0,_.mP)(O);E===void 0?O.removeAttribute(J):O.setAttribute(J,E===""&&window.trustedTypes?window.trustedTypes.emptyScript:E)};
e.prototype._serializeValue=function(O){switch(typeof O){case "boolean":return O?"":void 0;default:return O!=null?O.toString():void 0}};
e.prototype._deserializeValue=function(O,E){switch(E){case Boolean:return O!==null;case Number:return Number(O);default:return O}};
return e});var smq=0,Hd2=[];var GLR=eJ(function(l){function e(z){z=Object.getPrototypeOf(z);return z.prototype instanceof J?z:null}
function O(z){if(!z.hasOwnProperty("__ownProperties")){var M=null;if(z.hasOwnProperty("properties")){var Z=z.properties;if(Z){M={};for(var u in Z){var d=Z[u];M[u]=typeof d==="function"?{type:d}:d}}}z.__ownProperties=M}return z.__ownProperties}
var E=T4q(l),J=function(){return E.apply(this,arguments)||this};
_.m(J,E);J.finalize=function(){if(!this.hasOwnProperty("__finalized")){var z=e(this);z&&z.finalize();this.__finalized=!0;this._finalizeClass()}};
J._finalizeClass=function(){var z=O(this);z&&this.createProperties(z)};
J.typeForProperty=function(z){return(z=this._properties[z])&&z.type};
J.prototype._initializeProperties=function(){smq++;this.constructor.finalize();E.prototype._initializeProperties.call(this)};
J.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this._enableProperties()};
J.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this)};
_.Ji.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var z=this;if(!this.hasOwnProperty("__observedAttributes")){cmg(this.prototype);var M=this._properties;this.__observedAttributes=M?Object.keys(M).map(function(Z){return z.prototype._addPropertyToAttributeMap(Z)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var z=e(this);this.__properties=Object.assign({},z&&z._properties,O(this))}return this.__properties}}});
return J});var Ffd={},fw8=/-[a-z]/g,RjM=/([A-Z])/g;for(var B40={},Pgq=HTMLElement.prototype;Pgq;){for(var UYk=Object.getOwnPropertyNames(Pgq),Y00=0;Y00<UYk.length;Y00++)B40[UYk[Y00]]=!0;Pgq=Object.getPrototypeOf(Pgq)}var hax=window.trustedTypes?function(l){return trustedTypes.isHTML(l)||trustedTypes.isScript(l)||trustedTypes.isScriptURL(l)}:function(){return!1},LP6=eJ(function(l){var e=T4q(l);
l=function(){return e.apply(this,arguments)||this};
_.m(l,e);l.createPropertiesForAttributes=function(){for(var O=this.observedAttributes,E=0;E<O.length;E++)this.prototype._createPropertyAccessor(WQ(O[E]))};
l.attributeNameForProperty=function(O){return d4(O)};
l.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);e.prototype._initializeProperties.call(this)};
l.prototype._initializeProtoProperties=function(O){for(var E in O)this._setProperty(E,O[E])};
l.prototype._ensureAttribute=function(O,E){this.hasAttribute(O)||this._valueToNodeAttribute(this,E,O)};
l.prototype._serializeValue=function(O){switch(typeof O){case "object":if(O instanceof Date)return O.toString();if(O){if(hax(O))return O;try{return JSON.stringify(O)}catch(E){return""}}default:return e.prototype._serializeValue.call(this,O)}};
l.prototype._deserializeValue=function(O,E){switch(E){case Object:try{var J=JSON.parse(O)}catch(z){J=O}break;case Array:try{J=JSON.parse(O)}catch(z){J=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+O)}break;case Date:J=isNaN(O)?String(O):Number(O);J=new Date(J);break;default:J=e.prototype._deserializeValue.call(this,O,E)}return J};
l.prototype._definePropertyAccessor=function(O,E){if(!B40[O]){var J=this[O];J!==void 0&&(this.__data?this._setPendingProperty(O,J):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[O]=J))}e.prototype._definePropertyAccessor.call(this,O,E)};
l.prototype._hasAccessor=function(O){return this.__dataHasAccessor&&this.__dataHasAccessor[O]};
l.prototype._isPropertyPending=function(O){return!!(this.__dataPending&&O in this.__dataPending)};
return l});var t4F={"dom-if":!0,"dom-repeat":!0},q0S=!1,vZF=!1,N4k=function(){var l=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(e){return e}});
return function(e,O,E){O=O.getAttribute(E);l&&E.startsWith("on-")?e.setAttribute(E,l.createScript(O,E)):e.setAttribute(E,O)}}(),rPk=eJ(function(l){var e=function(){return l.apply(this,arguments)||this};
_.m(e,l);e._parseTemplate=function(O,E){if(!O._templateInfo){var J=O._templateInfo={};J.nodeInfoList=[];J.nestedTemplate=!!E;J.stripWhiteSpace=E&&E.stripWhiteSpace||O.hasAttribute&&O.hasAttribute("strip-whitespace");this._parseTemplateContent(O,J,{parent:null})}return O._templateInfo};
e._parseTemplateContent=function(O,E,J){return this._parseTemplateNode(O.content,E,J)};
e._parseTemplateNode=function(O,E,J){var z=!1;O.localName!="template"||O.hasAttribute("preserve-content")?O.localName==="slot"&&(E.hasInsertionPoint=!0):z=this._parseTemplateNestedTemplate(O,E,J)||z;if(!q0S){q0S=!0;var M=document.createElement("textarea");M.placeholder="a";vZF=M.placeholder===M.textContent}vZF&&O.localName==="textarea"&&O.placeholder&&O.placeholder===O.textContent&&(O.textContent=null);O.firstChild&&this._parseTemplateChildNodes(O,E,J);O.hasAttributes&&O.hasAttributes()&&(z=this._parseTemplateNodeAttributes(O,
E,J)||z);return z||J.noted};
e._parseTemplateChildNodes=function(O,E,J){if(O.localName!=="script"&&O.localName!=="style")for(var z=O.firstChild,M=0,Z;z;z=Z){if(z.localName=="template"){var u=z.getAttribute("is");if(u&&t4F[u])for(Z=z,Z.removeAttribute("is"),z=Z.ownerDocument.createElement(u),Z.parentNode.replaceChild(z,Z),z.appendChild(Z);Z.attributes.length;)u=Z.attributes[0].name,N4k(z,Z,u),Z.removeAttribute(u)}Z=z.nextSibling;if(z.nodeType===Node.TEXT_NODE){for(u=Z;u&&u.nodeType===Node.TEXT_NODE;)z.textContent+=u.textContent,
Z=u.nextSibling,O.removeChild(u),u=Z;if(E.stripWhiteSpace&&!z.textContent.trim()){O.removeChild(z);continue}}u={parentIndex:M,parentInfo:J};this._parseTemplateNode(z,E,u)&&(u.infoIndex=E.nodeInfoList.push(u)-1);z.parentNode&&M++}};
e._parseTemplateNestedTemplate=function(O,E,J){E=this._parseTemplate(O,E);(E.content=O.content.ownerDocument.createDocumentFragment()).appendChild(O.content);J.templateInfo=E;return!0};
e._parseTemplateNodeAttributes=function(O,E,J){for(var z=!1,M=Array.from(O.attributes),Z=M.length-1,u;u=M[Z];Z--)z=this._parseTemplateNodeAttribute(O,E,J,u.name,u.value)||z;return z};
e._parseTemplateNodeAttribute=function(O,E,J,z,M){return z.slice(0,3)==="on-"?(O.removeAttribute(z),J.events=J.events||[],J.events.push({name:z.slice(3),value:M}),!0):z==="id"?(J.id=M,!0):!1};
e._contentForTemplate=function(O){var E=O._templateInfo;return E&&E.content||O.content};
e.prototype._stampTemplate=function(O,E){O&&!O.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(O);E=E||this.constructor._parseTemplate(O);var J=E.nodeInfoList;O=document.importNode(E.content||O.content,!0);O.__noInsertionPoint=!E.hasInsertionPoint;var z=O.nodeList=Array(J.length);O.$={};for(var M=0,Z=J.length,u=void 0;M<Z&&(u=J[M]);M++){var d=z[M]=Tgq(O,u);u.id&&(O.$[u.id]=d);var g=d,w=u,n=E;w.templateInfo&&(g._templateInfo=w.templateInfo,g._parentTemplateInfo=
n);if(u.events&&u.events.length)for(g=0,w=u.events,n=void 0;g<w.length&&(n=w[g]);g++)this._addMethodEventListenerToNode(d,n.name,n.value,this)}return O};
e.prototype._addMethodEventListenerToNode=function(O,E,J,z){J=sxT(z||O,J);this._addEventListenerToNode(O,E,J);return J};
e.prototype._addEventListenerToNode=function(O,E,J){O.addEventListener(E,J)};
e.prototype._removeEventListenerFromNode=function(O,E,J){O.removeEventListener(E,J)};
return e});var kZ=0,pr=[],DY1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},S0x=/[A-Z]/,QmF=function(l,e,O,E,J){var z=J?ig(l):l;if(e=e[z])for(z=0;z<e.length;z++){var M=e[z];if(M.info.lastRun!==kZ&&(!J||hjL(l,M.trigger))){M.info.lastRun=kZ;M=M.info;for(var Z=O,u=E,d=0,g=Z.length-1,w=-1;d<=g;){var n=d+g>>1,k=u.get(Z[n].methodInfo)-u.get(M.methodInfo);if(k<0)d=n+1;else if(k>0)g=n-1;else{w=n;break}}w<
0&&(w=g+1);Z.splice(w,0,M)}}},JMV=[],xYS=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"),Ef=eJ(function(l){var e=rPk(LP6(l));
l=function(){var O=e.call(this)||this;O.__isPropertyEffectsClient=!0;return O};
_.m(l,e);l.prototype._initializeProperties=function(){e.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
l.prototype._registerHost=function(){if(Of.length){var O=Of[Of.length-1];O._enqueueClient(this);this.__dataHost=O}};
l.prototype._initializeProtoProperties=function(O){this.__data=Object.create(O);this.__dataPending=Object.create(O);this.__dataOld={}};
l.prototype._initializeInstanceProperties=function(O){var E=this.__readOnly,J;for(J in O)E&&E[J]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[J]=this.__dataPending[J]=O[J])};
l.prototype._addPropertyEffect=function(O,E,J){this._createPropertyAccessor(O,E=="__readOnly");var z=YL8(this,E,!0)[O];z||(z=this[E][O]=[]);z.push(J)};
l.prototype._removePropertyEffect=function(O,E,J){O=YL8(this,E,!0)[O];J=O.indexOf(J);J>=0&&O.splice(J,1)};
l.prototype._hasPropertyEffect=function(O,E){E=this[E];return!(!E||!E[O])};
l.prototype._hasReadOnlyEffect=function(O){return this._hasPropertyEffect(O,"__readOnly")};
l.prototype._hasNotifyEffect=function(O){return this._hasPropertyEffect(O,"__notifyEffects")};
l.prototype._hasReflectEffect=function(O){return this._hasPropertyEffect(O,"__reflectEffects")};
l.prototype._hasComputedEffect=function(O){return this._hasPropertyEffect(O,"__computeEffects")};
l.prototype._setPendingPropertyOrPath=function(O,E,J,z){if(z||ig(Array.isArray(O)?O[0]:O)!==O){if(!z&&(z=am(this,O),O=Ujp(this,O,E),!O||!e.prototype._shouldPropertyChange.call(this,O,E,z)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(O,E,J)){if(J=this.__dataLinkedPaths)for(var M in J)z=J[M],w4(M,O)?(z=AP(M,z,O),this._setPendingPropertyOrPath(z,E,!0,!0)):w4(z,O)&&(z=AP(z,M,O),this._setPendingPropertyOrPath(z,E,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[O])return this._setPendingProperty(O,
E,J);this[O]=E}return!1};
l.prototype._setUnmanagedPropertyToNode=function(O,E,J){if(J!==O[E]||typeof J=="object")E==="className"&&(O=(0,_.mP)(O)),O[E]=J};
l.prototype._setPendingProperty=function(O,E,J){var z=this.__dataHasPaths&&g4(O);if(this._shouldPropertyChange(O,E,(z?this.__dataTemp:this.__data)[O])){this.__dataPending||(this.__dataPending={},this.__dataOld={});O in this.__dataOld||(this.__dataOld[O]=this.__data[O]);z?this.__dataTemp[O]=E:this.__data[O]=E;this.__dataPending[O]=E;if(z||this.__notifyEffects&&this.__notifyEffects[O])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[O]=J;return!0}return!1};
l.prototype._setProperty=function(O,E){this._setPendingProperty(O,E,!0)&&this._invalidateProperties()};
l.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
l.prototype._enqueueClient=function(O){this.__dataPendingClients=this.__dataPendingClients||[];O!==this&&this.__dataPendingClients.push(O)};
l.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
l.prototype.__enableOrFlushClients=function(){var O=this.__dataPendingClients;if(O){this.__dataPendingClients=null;for(var E=0;E<O.length;E++){var J=O[E];J.__dataEnabled?J.__dataPending&&J._flushProperties():J._enableProperties()}}};
l.prototype._readyClients=function(){this.__enableOrFlushClients()};
l.prototype.setProperties=function(O,E){for(var J in O)!E&&this.__readOnly&&this.__readOnly[J]||this._setPendingPropertyOrPath(J,O[J],!0);this._invalidateProperties()};
l.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
l.prototype._propertiesChanged=function(O,E,J){O=this.__dataHasPaths;this.__dataHasPaths=!1;var z;if(z=this.__computeEffects)if(yPH){kZ++;var M=rmt(this),Z=[],u;for(u in E)QmF(u,z,Z,M,O);for(;u=Z.shift();)SL8(this,"",E,J,u)&&QmF(u.methodInfo,z,Z,M,O);Object.assign(J,this.__dataOld);Object.assign(E,this.__dataPending);this.__dataPending=null}else for(M=E;Im(this,z,M,J,O);)Object.assign(J,this.__dataOld),Object.assign(E,this.__dataPending),M=this.__dataPending,this.__dataPending=null;z=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(E,J,O);this._flushClients();Im(this,this.__reflectEffects,E,J,O);Im(this,this.__observeEffects,E,J,O);if(z){M=this.__notifyEffects;Z=kZ++;for(var d in z)if(z[d]){if(u=M){var g=M;u=Z;var w=d,n=E,k=J,y=O,c=!1,f=y?ig(w):w;if(g=g[f]){f=0;for(var P=g.length,h=void 0;f<P&&(h=g[f]);f++)h.info&&h.info.lastRun===u||y&&!hjL(w,h.trigger)||(h.info&&(h.info.lastRun=u),h.fn(this,w,n,k,h.info,y,void 0),c=!0)}u=c}if(u)var N=!0;else{if(u=O)u=d,w=E,n=ig(u),n!==
u?(n=d4(n)+"-changed",tN8(this,n,w[u],u),u=!0):u=!1;u&&(N=!0)}}var t;N&&(t=this.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
l.prototype._propagatePropertyChanges=function(O,E,J){this.__propagateEffects&&Im(this,this.__propagateEffects,O,E,J);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,O,E,J)};
l.prototype._runEffectsForTemplate=function(O,E,J,z){var M=this,Z=function(u,d){Im(M,O.propertyEffects,u,J,d,O.nodeList);for(var g=O.firstChild;g;g=g.nextSibling)M._runEffectsForTemplate(g,u,J,d)};
O.runEffects?O.runEffects(Z,E,z):Z(E,z)};
l.prototype.linkPaths=function(O,E){O=nr(O);E=nr(E);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[O]=E};
l.prototype.unlinkPaths=function(O){O=nr(O);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[O]};
l.prototype.notifySplices=function(O,E){var J={path:""};O=am(this,O,J);Mpd(this,O,J.path,E)};
l.prototype.get=function(O,E){return am(E||this,O)};
l.prototype.set=function(O,E,J){J?Ujp(J,O,E):this.__readOnly&&this.__readOnly[O]||this._setPendingPropertyOrPath(O,E,!0)&&this._invalidateProperties()};
l.prototype.push=function(O){var E=_.ke.apply(1,arguments),J={path:""},z=am(this,O,J),M=z.length,Z=z.push.apply(z,_.kA(E));E.length&&j4(this,z,J.path,M,E.length,[]);return Z};
l.prototype.pop=function(O){var E={path:""};O=am(this,O,E);var J=!!O.length,z=O.pop();J&&j4(this,O,E.path,O.length,0,[z]);return z};
l.prototype.splice=function(O,E,J){var z=_.ke.apply(3,arguments),M={path:""},Z=am(this,O,M);E<0?E=Z.length-Math.floor(-E):E&&(E=Math.floor(E));var u=arguments.length===2?Z.splice(E):Z.splice.apply(Z,[E,J].concat(_.kA(z)));(z.length||u.length)&&j4(this,Z,M.path,E,z.length,u);return u};
l.prototype.shift=function(O){var E={path:""};O=am(this,O,E);var J=!!O.length,z=O.shift();J&&j4(this,O,E.path,0,0,[z]);return z};
l.prototype.unshift=function(O){var E=_.ke.apply(1,arguments),J={path:""},z=am(this,O,J),M=z.unshift.apply(z,_.kA(E));E.length&&j4(this,z,J.path,0,E.length,[]);return M};
l.prototype.notifyPath=function(O,E){if(arguments.length==1){var J={path:""};E=am(this,O,J);J=J.path}else J=Array.isArray(O)?nr(O):O;this._setPendingPropertyOrPath(J,E,!0,!0)&&this._invalidateProperties()};
l.prototype._createReadOnlyProperty=function(O,E){this._addPropertyEffect(O,"__readOnly");E&&(this["_set"+(O[0].toUpperCase()+O.substring(1))]=function(J){this._setProperty(O,J)})};
l.prototype._createPropertyObserver=function(O,E,J){var z={property:O,method:E,dynamicFn:!!J};this._addPropertyEffect(O,"__observeEffects",{fn:Lf2,info:z,trigger:{name:O}});J&&this._addPropertyEffect(E,"__observeEffects",{fn:Lf2,info:z,trigger:{name:E}})};
l.prototype._createMethodObserver=function(O,E){var J=zsW(O);if(!J)throw Error("zd`"+O);OTg(this,J,"__observeEffects",DjV,null,E)};
l.prototype._createNotifyingProperty=function(O){this._addPropertyEffect(O,"__notifyEffects",{fn:qLp,info:{eventName:d4(O)+"-changed",property:O}})};
l.prototype._createReflectedProperty=function(O){var E=this.constructor.attributeNameForProperty(O);E[0]==="-"?console.warn("Property "+O+" cannot be reflected to attribute "+E+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(O,"__reflectEffects",{fn:v7M,info:{attrName:E}})};
l.prototype._createComputedProperty=function(O,E,J){var z=zsW(E);if(!z)throw Error("Ad`"+E);E=OTg(this,z,"__computeEffects",SL8,O,J);YL8(this,"__computeInfo")[O]=E};
l.prototype._marshalArgs=function(O,E,J){for(var z=this.__data,M=[],Z=0,u=O.length;Z<u;Z++){var d=O[Z],g=d.name,w=d.structured,n=d.wildcard,k=d.value;d.literal||(n?(d=w4(g,E),w=bTp(z,J,d?E:g),k={path:d?E:g,value:w,base:d?am(z,g):w}):k=w?bTp(z,J,g):z[g]);if(Kr&&!this._overrideLegacyUndefined&&k===void 0&&O.length>1)return pr;M[Z]=k}return M};
l.addPropertyEffect=function(O,E,J){this.prototype._addPropertyEffect(O,E,J)};
l.createPropertyObserver=function(O,E,J){this.prototype._createPropertyObserver(O,E,J)};
l.createMethodObserver=function(O,E){this.prototype._createMethodObserver(O,E)};
l.createNotifyingProperty=function(O){this.prototype._createNotifyingProperty(O)};
l.createReadOnlyProperty=function(O,E){this.prototype._createReadOnlyProperty(O,E)};
l.createReflectedProperty=function(O){this.prototype._createReflectedProperty(O)};
l.createComputedProperty=function(O,E,J){this.prototype._createComputedProperty(O,E,J)};
l.bindTemplate=function(O){return this.prototype._bindTemplate(O)};
l.prototype._bindTemplate=function(O,E){var J=this.constructor._parseTemplate(O),z=this.__preBoundTemplateInfo==J;if(!z)for(var M in J.propertyEffects)this._createPropertyAccessor(M);E?(J=Object.create(J),J.wasPreBound=z,this.__templateInfo?(O=O._parentTemplateInfo||this.__templateInfo,E=O.lastChild,J.parent=O,O.lastChild=J,(J.previousSibling=E)?E.nextSibling=J:O.firstChild=J):this.__templateInfo=J):this.__preBoundTemplateInfo=J;return J};
l._addTemplatePropertyEffect=function(O,E,J){(O.hostProps=O.hostProps||{})[E]=!0;O=O.propertyEffects=O.propertyEffects||{};(O[E]=O[E]||[]).push(J)};
l.prototype._stampTemplate=function(O,E){E=E||this._bindTemplate(O,!0);Of.push(this);O=e.prototype._stampTemplate.call(this,O,E);Of.pop();E.nodeList=O.nodeList;if(!E.wasPreBound)for(var J=E.childNodes=[],z=O.firstChild;z;z=z.nextSibling)J.push(z);O.templateInfo=E;J=E.nodeList;z=E.nodeInfoList;if(z.length)for(var M=0;M<z.length;M++){var Z=J[M],u=z[M].bindings;if(u)for(var d=0;d<u.length;d++){var g=u[d],w=Z,n=g;if(n.isCompound){for(var k=w.__dataCompoundStorage||(w.__dataCompoundStorage={}),y=n.parts,
c=Array(y.length),f=0;f<y.length;f++)c[f]=y[f].literal;y=n.target;k[y]=c;n.literal&&n.kind=="property"&&(y==="className"&&(w=(0,_.mP)(w)),w[y]=n.literal)}es8(Z,this,g)}Z.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(E,this.__data,null,!1),this._flushClients());return O};
l.prototype._removeBoundDom=function(O){O=O.templateInfo;var E=O.previousSibling,J=O.nextSibling,z=O.parent;E?E.nextSibling=J:z&&(z.firstChild=J);J?J.previousSibling=E:z&&(z.lastChild=E);O.nextSibling=O.previousSibling=null;O=O.childNodes;for(E=0;E<O.length;E++)J=O[E],(0,_.mP)((0,_.mP)(J).parentNode).removeChild(J)};
l._parseTemplateNode=function(O,E,J){var z=e._parseTemplateNode.call(this,O,E,J);if(O.nodeType===Node.TEXT_NODE){var M=this._parseBindings(O.textContent,E);M&&(O.textContent=ED8(M)||" ",lPd(this,E,J,"text","textContent",M),z=!0)}return z};
l._parseTemplateNodeAttribute=function(O,E,J,z,M){var Z=this._parseBindings(M,E);if(Z){M=z;var u="property";S0x.test(z)?u="attribute":z[z.length-1]=="$"&&(z=z.slice(0,-1),u="attribute");var d=ED8(Z);d&&u=="attribute"&&(z=="class"&&O.hasAttribute("class")&&(d+=" "+O.getAttribute(z)),O.setAttribute(z,d));u=="attribute"&&M=="disable-upgrade$"&&O.setAttribute(z,"");O.localName==="input"&&M==="value"&&O.setAttribute(M,"");O.removeAttribute(M);u==="property"&&(z=WQ(z));lPd(this,E,J,u,z,Z,d);return!0}return e._parseTemplateNodeAttribute.call(this,
O,E,J,z,M)};
l._parseTemplateNestedTemplate=function(O,E,J){var z=e._parseTemplateNestedTemplate.call(this,O,E,J),M=O.parentNode,Z=J.templateInfo,u=M.localName==="dom-if",d=M.localName==="dom-repeat";DK&&(u||d)&&(M.removeChild(O),J=J.parentInfo,J.templateInfo=Z,J.noted=!0,z=!1);O=Z.hostProps;if(Sq&&u)O&&(E.hostProps=Object.assign(E.hostProps||{},O),DK||(J.parentInfo.noted=!0));else for(var g in O)lPd(this,E,J,"property","_host_"+g,[{mode:"{",source:g,dependencies:[g],hostProp:!0}]);return z};
l._parseBindings=function(O,E){for(var J=[],z=0,M;(M=xYS.exec(O))!==null;){M.index>z&&J.push({literal:O.slice(z,M.index)});z=M[1][0];var Z=!!M[2];M=M[3].trim();var u=!1,d="",g=-1;z=="{"&&(g=M.indexOf("::"))>0&&(d=M.substring(g+2),M=M.substring(0,g),u=!0);g=zsW(M);var w=[];if(g){var n=g,k=n.args;n=n.methodName;for(var y=0;y<k.length;y++){var c=k[y];c.literal||w.push(c)}if((k=E.dynamicFns)&&k[n]||g.static)w.push(n),g.dynamicFn=!0}else w.push(M);J.push({source:M,mode:z,negate:Z,customEvent:u,signature:g,
dependencies:w,event:d});z=xYS.lastIndex}z&&z<O.length&&(O=O.substring(z))&&J.push({literal:O});return J.length?J:null};
l._evaluateBinding=function(O,E,J,z,M,Z){O=E.signature?DjV(O,J,z,M,E.signature):J!=E.source?am(O,E.source):Z&&g4(J)?am(O,J):O.__data[J];E.negate&&(O=!O);return O};
_.Ji.Object.defineProperties(l.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return DY1}}});
return l}),Of=[];var lpq=window.ShadyCSS&&window.ShadyCSS.cssBuild,JH=eJ(function(l){function e(E,J,z,M){if(!lpq){for(var Z=J.content.querySelectorAll("style"),u=CVx(J),d=oDg(z),g=J.content.firstElementChild,w=0;w<d.length;w++){var n=d[w];n.textContent=E._processStyleText(n.textContent,M);J.content.insertBefore(n,g)}for(g=d=0;g<u.length;g++)w=u[g],n=Z[d],n!==w?(w=w.cloneNode(!0),n.parentNode.insertBefore(w,n)):d++,w.textContent=E._processStyleText(w.textContent,M)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(J,
z);if(KPx&&lpq&&a8q&&(J=J.content.querySelectorAll("style"))){var k="";Array.from(J).forEach(function(y){k+=y.textContent;y.parentNode.removeChild(y)});
E._styleSheet=new CSSStyleSheet;E._styleSheet.replaceSync(k)}}
var O=GLR(Ef(l));l=function(){return O.call(this)||this};
_.m(l,O);l._finalizeClass=function(){O._finalizeClass.call(this);var E;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(E=this.__ownObservers)&&this.createObservers(E,this._properties);this._prepareTemplate()};
l._prepareTemplate=function(){var E=this.template;E&&(typeof E==="string"?(console.error("template getter must return HTMLTemplateElement"),E=null):hP||(E=E.cloneNode(!0)));this.prototype._template=E};
l.createProperties=function(E){for(var J in E){var z=this.prototype,M=J,Z=E[J],u=E;Z.computed&&(Z.readOnly=!0);Z.computed&&(z._hasReadOnlyEffect(M)?console.warn("Cannot redefine computed property '"+M+"'."):z._createComputedProperty(M,Z.computed,u));Z.readOnly&&!z._hasReadOnlyEffect(M)?z._createReadOnlyProperty(M,!Z.computed):Z.readOnly===!1&&z._hasReadOnlyEffect(M)&&console.warn("Cannot make readOnly property '"+M+"' non-readOnly.");Z.reflectToAttribute&&!z._hasReflectEffect(M)?z._createReflectedProperty(M):
Z.reflectToAttribute===!1&&z._hasReflectEffect(M)&&console.warn("Cannot make reflected property '"+M+"' non-reflected.");Z.notify&&!z._hasNotifyEffect(M)?z._createNotifyingProperty(M):Z.notify===!1&&z._hasNotifyEffect(M)&&console.warn("Cannot make notify property '"+M+"' non-notify.");Z.observer&&z._createPropertyObserver(M,Z.observer,u[Z.observer]);z._addPropertyToAttributeMap(M)}};
l.createObservers=function(E,J){for(var z=this.prototype,M=0;M<E.length;M++)z._createMethodObserver(E[M],J)};
l.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);O.prototype._initializeProperties.call(this);this.rootPath=kLq;this.importPath=this.constructor.importPath;var E=this.constructor;if(!E.hasOwnProperty("__propertyDefaults")){E.__propertyDefaults=null;var J=E._properties,z;for(z in J){var M=J[z];"value"in M&&(E.__propertyDefaults=E.__propertyDefaults||{},E.__propertyDefaults[z]=M)}}if(E=E.__propertyDefaults)for(var Z in E)J=E[Z],
this._canApplyPropertyDefault(Z)&&(J=typeof J.value=="function"?J.value.call(this):J.value,this._hasAccessor(Z)?this._setPendingProperty(Z,J,!0):this[Z]=J)};
l.prototype._canApplyPropertyDefault=function(E){return!this.hasOwnProperty(E)};
l._processStyleText=function(E,J){return mjL(E,J)};
l._finalizeTemplate=function(E){var J=this.prototype._template;if(J&&!J.__polymerFinalized){J.__polymerFinalized=!0;var z=this.importPath;z=z?_.om(z):"";e(this,J,E,z);this.prototype._bindTemplate(J)}};
l.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);O.prototype.connectedCallback.call(this)};
l.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);O.prototype.ready.call(this)};
l.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));O.prototype._readyClients.call(this)};
l.prototype._attachDom=function(E){var J=(0,_.mP)(this);if(J.attachShadow)return E?(J.shadowRoot||(J.attachShadow({mode:"open",shadyUpgradeFragment:E}),J.shadowRoot.appendChild(E),this.constructor._styleSheet&&(J.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),mYx&&window.ShadyDOM&&window.ShadyDOM.flushInitial(J.shadowRoot),J.shadowRoot):null;throw Error("Cd");};
l.prototype.updateStyles=function(E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,E)};
l.prototype.resolveUrl=function(E,J){!J&&this.importPath&&(J=_.om(this.importPath));return _.om(E,J)};
l._parseTemplateContent=function(E,J,z){J.dynamicFns=J.dynamicFns||this._properties;return O._parseTemplateContent.call(this,E,J,z)};
l._addTemplatePropertyEffect=function(E,J,z){!vQ||J in this._properties||z.info.part.signature&&z.info.part.signature.static||z.info.part.hostProp||E.nestedTemplate||console.warn("Property '"+J+"' used in template but not declared in 'properties'; attribute will not be observed.");return O._addTemplatePropertyEffect.call(this,E,J,z)};
_.Ji.Object.defineProperties(l,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var E=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof E==="function"&&(E=E());if(E===void 0){if(E=this.hasOwnProperty("is")){E=this.is;var J=null;if(E&&(!NY||I8H)&&(J=HQ.import(E,"template"),NY&&!J))throw Error("Bd`"+E);E=J}E=E||Object.getPrototypeOf(this.prototype).constructor.template}this._template=E}return this._template},
set:function(E){this._template=E}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var E=this.importMeta;E?this._importPath=ymA(E.url):this._importPath=(E=HQ.import(this.is))&&E.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return l});var eR6=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(l){return l}}),AM2=function(l,e){O_1(l,e);
this.value=e.reduce(function(O,E,J){return O+nD8(E)+l[J+1]},l[0]).toString()},O_1;
AM2.prototype.toString=function(){return this.value};
_.Evq=function(l){var e=_.ke.apply(1,arguments);O_1(l,e);var O=document.createElement("template");e=e.reduce(function(E,J,z){if(J instanceof HTMLTemplateElement)J=J.innerHTML;else if(J instanceof AM2)J=nD8(J);else throw Error("Ed`"+J);return E+J+l[z+1]},l[0]);
eR6&&(e=eR6.createHTML(e));O.innerHTML=e;return O};
O_1=function(l,e){if(!Array.isArray(l)||!Array.isArray(l.raw)||e.length!==l.length-1)throw new TypeError("Fd");};var Xs=JH(HTMLElement);var Ji6=eJ(function(l){var e=JH(l);l=function(){var O=e.call(this)||this;O.__lastItems=null;O.__lastMulti=null;O.__selectedMap=null;return O};
_.m(l,e);l.prototype.__updateSelection=function(O,E){var J=E.path;J=="items"?(E=E.base||[],J=this.__lastItems,O!==this.__lastMulti&&this.clearSelection(),J&&(J=wiV(E,J),this.__applySplices(J)),this.__lastItems=E,this.__lastMulti=O):E.path=="items.splices"?this.__applySplices(E.value.indexSplices):(O=J.slice(6),E=parseInt(O,10),O.indexOf(".")<0&&O==E&&this.__deselectChangedIdx(E))};
l.prototype.__applySplices=function(O){for(var E=this,J=this.__selectedMap,z={},M=0;M<O.length;z={s$jscomp$108:void 0},M++){z.s$jscomp$108=O[M];J.forEach(function(g){return function(w,n){w<g.s$jscomp$108.index||(w>=g.s$jscomp$108.index+g.s$jscomp$108.removed.length?J.set(n,w+g.s$jscomp$108.addedCount-g.s$jscomp$108.removed.length):J.set(n,-1))}}(z));
for(var Z=0;Z<z.s$jscomp$108.addedCount;Z++){var u=z.s$jscomp$108.index+Z;J.has(this.items[u])&&J.set(this.items[u],u)}}this.__updateLinks();var d=0;J.forEach(function(g,w){g<0?(E.multi?E.splice("selected",d,1):E.selected=E.selectedItem=null,J.delete(w)):d++})};
l.prototype.__updateLinks=function(){var O=this;this.__dataLinkedPaths={};if(this.multi){var E=0;this.__selectedMap.forEach(function(J){J>=0&&O.linkPaths("items."+J,"selected."+E++)})}else this.__selectedMap.forEach(function(J){O.linkPaths("selected","items."+J);
O.linkPaths("selectedItem","items."+J)})};
l.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
l.prototype.isSelected=function(O){return this.__selectedMap.has(O)};
l.prototype.isIndexSelected=function(O){return this.isSelected(this.items[O])};
l.prototype.__deselectChangedIdx=function(O){var E=this,J=this.__selectedIndexForItemIndex(O);if(J>=0){var z=0;this.__selectedMap.forEach(function(M,Z){J==z++&&E.deselect(Z)})}};
l.prototype.__selectedIndexForItemIndex=function(O){if(O=this.__dataLinkedPaths["items."+O])return parseInt(O.slice(9),10)};
l.prototype.deselect=function(O){var E=this.__selectedMap.get(O);if(E>=0){this.__selectedMap.delete(O);var J;this.multi&&(J=this.__selectedIndexForItemIndex(E));this.__updateLinks();this.multi?this.splice("selected",J,1):this.selected=this.selectedItem=null}};
l.prototype.deselectIndex=function(O){this.deselect(this.items[O])};
l.prototype.select=function(O){this.selectIndex(this.items.indexOf(O))};
l.prototype.selectIndex=function(O){var E=this.items[O];this.isSelected(E)?this.toggle&&this.deselectIndex(O):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(E,O),this.__updateLinks(),this.multi?this.push("selected",E):this.selected=this.selectedItem=E)};
_.Ji.Object.defineProperties(l,{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 l}),X90=Ji6(Xs),zx=function(){return X90.apply(this,arguments)||this};
_.m(zx,X90);_.Ji.Object.defineProperties(zx,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(zx.is,zx);var zRq=window.Polymer;window.Polymer=function(l){return window.Polymer._polymerFn(l)};
zRq&&Object.assign(Polymer,zRq);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:mjL,resolveUrl:_.om,pathFromUrl:ymA};Polymer.DomModule=HQ;Polymer.Async={timeOut:_.la,animationFrame:_.RX,idlePeriod:f8q,microTask:U0};Polymer.dedupingMixin=eJ;Polymer.wrap=_.mP;Polymer.PropertiesChanged=T4q;Polymer.telemetry={instanceCount:smq,incrementInstanceCount:function(){smq++},
registrations:Hd2,register:cmg,dumpRegistrations:function(){Hd2.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=GLR;Polymer.CaseMap={dashToCamelCase:WQ,camelToDashCase:d4};Polymer.PropertyAccessors=LP6;Polymer.TemplateStamp=rPk;Polymer.Path={isPath:g4,root:ig,isAncestor:GkA,isDescendant:w4,translate:AP,matches:BgT,normalize:nr,split:PpW,get:am,set:Ujp,isDeep:g4};Polymer.Settings={useShadow:Lr,useNativeCSSProperties:gZ1,useNativeCustomElements:ir0,get rootPath(){return kLq},setRootPath:function(l){kLq=l},
get sanitizeDOMValue(){return yR},setSanitizeDOMValue:function(l){yR=l},
get passiveTouchGestures(){return TCT},setPassiveTouchGestures:function(l){TCT=l},
get strictTemplatePolicy(){return NY},setStrictTemplatePolicy:function(l){NY=l},
get allowTemplateFromDomModule(){return I8H},setAllowTemplateFromDomModule:function(l){I8H=l},
get legacyOptimizations(){return hP},setLegacyOptimizations:function(l){hP=l},
get syncInitialRender(){return mYx},setSyncInitialRender:function(l){mYx=l},
get legacyUndefined(){return Kr},setLegacyUndefined:function(l){Kr=l},
get legacyWarnings(){return vQ},setLegacyWarnings:function(l){vQ=l},
get orderedComputed(){return yPH},setOrderedComputed:function(l){yPH=l},
get fastDomIf(){return Sq},setFastDomIf:function(l){Sq=l},
get removeNestedTemplates(){return DK},setRemoveNestedTemplates:function(l){DK=l},
get suppressTemplateNotifications(){return Q7},setSuppressTemplateNotifications:Q7};Polymer.rootPath!==void 0&&(kLq=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(yR=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(TCT=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(NY=Polymer.strictTemplatePolicy);I8H=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(hP=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(mYx=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Kr=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(vQ=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(yPH=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Sq=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(DK=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Q7=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return yR},
set:function(l){yR=l}});Polymer.PropertyEffects=Ef;Polymer.StyleGather={stylesFromModules:uZg,stylesFromModule:ZTM,stylesFromTemplate:CVx,stylesFromModuleImports:oDg,cssFromModules:WMx,cssFromModule:$c2,cssFromTemplate:dcL,cssFromModuleImports:function(l){return(l=HQ.import(l))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l):""}};Polymer.ElementMixin=JH;Polymer.updateStyles=function(l){window.ShadyCSS&&window.ShadyCSS.styleDocument(l)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:wiV};Polymer.html=_.Evq;Polymer.htmlLiteral=function(l){return new AM2(l,_.ke.apply(1,arguments))};Polymer.Element=Xs;Polymer.ArraySelectorMixin=Ji6;Polymer.ArraySelector=zx;var b_q=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,MH6=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ONM=/@media\s(.*)/;var yMx=null,mcT=window.HTMLImports&&window.HTMLImports.whenReady||null,pix;var VHq=null,ba=null,MB=function(){this.customStyles=[];this.enqueued=!1;KMp(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Z_q=function(l){!l.enqueued&&ba&&(l.enqueued=!0,KMp(ba))};
MB.prototype.addCustomStyle=function(l){l.__seenByShadyCSS||(l.__seenByShadyCSS=!0,this.customStyles.push(l),Z_q(this))};
MB.prototype.getStyleForCustomStyle=function(l){if(l.__shadyCSSCachedStyle)return l.__shadyCSSCachedStyle;var e;l.getStyle?e=l.getStyle():e=l;return e};
MB.prototype.processStyles=function(){for(var l=this.customStyles,e=0;e<l.length;e++){var O=l[e];if(!O.__shadyCSSCachedStyle){var E=this.getStyleForCustomStyle(O);E&&(E=E.__appliedElement||E,VHq&&VHq(E),O.__shadyCSSCachedStyle=E)}}return l};
MB.prototype.addCustomStyle=MB.prototype.addCustomStyle;MB.prototype.getStyleForCustomStyle=MB.prototype.getStyleForCustomStyle;MB.prototype.processStyles=MB.prototype.processStyles;Object.defineProperties(MB.prototype,{transformCallback:{get:function(){return VHq},
set:function(l){VHq=l}},
validateCallback:{get:function(){return ba},
set:function(l){var e=!1;ba||(e=!0);ba=l;e&&Z_q(this)}}});var HTx=!(window.ShadyDOM&&window.ShadyDOM.inUse),jKW,EK;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(EK=window.ShadyCSS.cssBuild);var ucq=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?jKW=window.ShadyCSS.nativeCss:window.ShadyCSS?(cMW(window.ShadyCSS),window.ShadyCSS=void 0):cMW(window.WebComponents&&window.WebComponents.flags);var xsu=jKW;var Ce0=new MB;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(l,e){Ce0.processStyles();knT(l,e)},
styleElement:function(){Ce0.processStyles()},
styleDocument:function(l){Ce0.processStyles();knT(document.body,l)},
getComputedStyleValue:function(l,e){return IPV(l,e)},
flushCustomStyles:function(){},
nativeCss:xsu,nativeShadow:HTx,cssBuild:EK,disableRuntime:ucq});window.ShadyCSS.CustomStyleInterface=Ce0;var ovR=window.ShadyCSS.CustomStyleInterface,VX=function(){var l=HTMLElement.call(this)||this;l._style=null;ovR.addCustomStyle(l);return l};
_.m(VX,HTMLElement);VX.prototype.getStyle=function(){if(this._style)return this._style;var l=this.querySelector("style");if(!l)return null;this._style=l;var e=l.getAttribute("include");e&&(l.removeAttribute("include"),l.textContent=WMx(e)+l.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
VX.prototype.getStyle=VX.prototype.getStyle;window.customElements.define("custom-style",VX);Polymer.CustomStyle=VX;var Z3=function(){this._timer=this._callback=this._asyncModule=null},ua,Wu6;
Z3.prototype.setConfig=function(l,e){var O=this;this._asyncModule=l;this._callback=e;this._timer=this._asyncModule.run(function(){O._timer=null;ua.delete(O);O._callback()})};
Z3.prototype.cancel=function(){this.isActive()&&($dq(this),ua.delete(this))};
var $dq=function(l){l.isActive()&&(l._asyncModule.cancel(l._timer),l._timer=null)};
Z3.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Z3.prototype.isActive=function(){return this._timer!=null};
_.Ci=function(l,e,O){l instanceof Z3?$dq(l):l=new Z3;l.setConfig(e,O);return l};
ua=new Set;_.ot=function(l){ua.add(l)};
Wu6=function(){var l=!!ua.size;ua.forEach(function(e){try{e.flush()}catch(O){setTimeout(function(){throw O;})}});
return l};var fPt=typeof document.head.style.touchAction==="string",FMp=["mousedown","mousemove","mouseup","click"],hsp=[0,1,4,2],dd1;try{dd1=(new MouseEvent("test",{buttons:1})).buttons===1}catch(l){dd1=!1}var YhA=dd1,Rs2=!1;(function(){try{var l=Object.defineProperty({},"passive",{get:function(){Rs2=!0}});
window.addEventListener("test",null,l);window.removeEventListener("test",null,l)}catch(e){}})();
var Gnp=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),BCW=[],gvx={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},eHu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},PVp=function(l){var e=l.sourceCapabilities;if(!e||e.firesTouchEvents)if(l.__polymerGesturesHandled={skip:!0},l.type==="click"){e=!1;for(var O=vDW(l),E=0;E<O.length;E++){if(O[E].nodeType===Node.ELEMENT_NODE)if(O[E].localName==="label")BCW.push(O[E]);
else if(gvx[O[E].localName]){var J=O[E];var z=Array.prototype.slice.call(J.labels||[]);if(!z.length){z=[];try{var M=J.getRootNode();if(J.id){var Z=M.querySelectorAll("label[for = '"+J.id+"']");for(J=0;J<Z.length;J++)z.push(Z[J])}}catch(u){}}for(J=0;J<z.length;J++)e=e||BCW.indexOf(z[J])>-1}if(O[E]===i_S)return}e||(l.preventDefault(),l.stopPropagation())}},i_S=null,$n=null,rMW=0,DcW=0,NCL=-1,ShM=!1;
document.addEventListener("touchend",function(l){$n||Ucq(!0);i_S=vDW(l)[0];$n=_.Ci($n,_.la.after(2500),function(){Ucq();$n=i_S=null})},Rs2?{passive:!0}:!1);
var vDW=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(l){return l.composedPath&&l.composedPath()||[]},s0={},Rm=[];
QK2({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){fr(this.info)},
mousedown:function(l){if(Fw(l)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),O=this;tpg(this.info,function(E){Fw(E)||(YZ("up",e,E),fr(O.info))},function(E){Fw(E)&&YZ("up",e,E);
fr(O.info)});
YZ("down",e,l)}},
touchstart:function(l){YZ("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),l.changedTouches[0],l)},
touchend:function(l){YZ("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),l.changedTouches[0],l)}});
QK2({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(l){this.moves.length>2&&this.moves.shift();this.moves.push(l)},
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;fr(this.info)},
mousedown:function(l){if(Fw(l)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),O=this,E=function(J){var z=J.clientX,M=J.clientY;xcg(O.info,z,M)&&(O.info.state=O.info.started?J.type==="mouseup"?"end":"track":"start",O.info.state==="start"&&TL("tap"),O.info.addMove({x:z,y:M}),Fw(J)||(O.info.state="end",fr(O.info)),e&&lsL(O.info,e,J),O.info.started=!0)};
tpg(this.info,E,function(J){O.info.started&&E(J);fr(O.info)});
this.info.x=l.clientX;this.info.y=l.clientY}},
touchstart:function(l){l=l.changedTouches[0];this.info.x=l.clientX;this.info.y=l.clientY},
touchmove:function(l){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);l=l.changedTouches[0];var O=l.clientX,E=l.clientY;xcg(this.info,O,E)&&(this.info.state==="start"&&TL("tap"),this.info.addMove({x:O,y:E}),lsL(this.info,e,l),this.info.state="track",this.info.started=!0)},
touchend:function(l){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);l=l.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:l.clientX,y:l.clientY}),lsL(this.info,e,l))}});
QK2({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(l){Fw(l)&&(this.info.x=l.clientX,this.info.y=l.clientY)},
click:function(l){Fw(l)&&OkM(this.info,l)},
touchstart:function(l){l=l.changedTouches[0];this.info.x=l.clientX;this.info.y=l.clientY},
touchend:function(l){OkM(this.info,l.changedTouches[0],l)}});var w9H=eJ(function(l){var e=function(){return l.apply(this,arguments)||this};
_.m(e,l);e.prototype._addEventListenerToNode=function(O,E,J){GL(O,E,J)||l.prototype._addEventListenerToNode.call(this,O,E,J)};
e.prototype._removeEventListenerFromNode=function(O,E,J){BQ(O,E,J)||l.prototype._removeEventListenerFromNode.call(this,O,E,J)};
return e});var WX=eJ(function(l){var e=function(){return l.apply(this,arguments)||this};
_.m(e,l);e.prototype._shouldPropertyChange=function(O,E,J){return EJt(this,O,E,J,!0)};
return e}),Ai1=eJ(function(l){var e=function(){return l.apply(this,arguments)||this};
_.m(e,l);e.prototype._shouldPropertyChange=function(O,E,J){return EJt(this,O,E,J,this.mutableData)};
_.Ji.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return e});
WX._mutablePropertyChange=EJt;var JeW=!1;var nvq=w9H(Ai1(Ef(HTMLElement))),dI=function(){var l=nvq.call(this)||this;if(NY)throw Error("Hd");l.root=null;l.$=null;l.__children=null;return l};
_.m(dI,nvq);_.X=dI.prototype;_.X.attributeChangedCallback=function(){this.mutableData=!0};
_.X.connectedCallback=function(){X1A()||(this.style.display="none");this.render()};
_.X.disconnectedCallback=function(){this.__removeChildren()};
_.X.__insertChildren=function(){(0,_.mP)((0,_.mP)(this).parentNode).insertBefore(this.root,this)};
_.X.__removeChildren=function(){if(this.__children)for(var l=0;l<this.__children.length;l++)this.root.appendChild(this.__children[l])};
_.X.render=function(){var l=this;if(!this.__children){var e=e||this.querySelector("template");if(!e){var O=new MutationObserver(function(){if(e=l.querySelector("template"))O.disconnect(),l.render();else throw Error("Id");});
O.observe(this,{childList:!0});return}this.root=this._stampTemplate(e);this.$=this.root.$;this.__children=[];for(var E=this.root.firstChild;E;E=E.nextSibling)this.__children[this.__children.length]=E;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Ji.Object.defineProperties(dI,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",dI);Polymer.Debouncer=Z3;Polymer.Gestures={gestures:s0,recognizers:Rm,deepTargetFind:qhx,addListener:GL,removeListener:BQ,register:QK2,setTouchAction:_.PQ,prevent:TL,resetMouseCanceller:function(){$n&&$n.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:GL,remove:BQ};Polymer.GestureEventListeners=w9H;Polymer.MutableData=WX;Polymer.OptionalMutableData=Ai1;Polymer.DomBind=dI;_.gI=function(){do{var l=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var e=Wu6()}while(l||e)};var zHq=null;bkq.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:bkq,writable:!0}});var WIt=Ef(bkq),$sd=WX(WIt),apq=Ef(function(){}),tP=function(l){var e=apq.call(this)||this;
e._configureProperties(l);e.root=e._stampTemplate(e.__dataHost);var O=[];e.children=O;for(var E=e.root.firstChild;E;E=E.nextSibling)O.push(E),E.__templatizeInstance=e;e.__templatizeOwner&&e.__templatizeOwner.__hideTemplateChildren__&&e._showHideChildren(!0);O=e.__templatizeOptions;(l&&O.instanceProps||!O.instanceProps)&&e._enableProperties();return e};
_.m(tP,apq);_.X=tP.prototype;_.X._configureProperties=function(l){if(this.__templatizeOptions.forwardHostProp)for(var e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(var O in l)this._setPendingProperty(O,l[O])};
_.X.forwardHostProp=function(l,e){this._setPendingPropertyOrPath(l,e,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.X._addEventListenerToNode=function(l,e,O){var E=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(l,e,function(z){z.model=E;O(z)});
else{var J=this.__dataHost.__dataHost;J&&J._addEventListenerToNode(l,e,O)}};
_.X._showHideChildren=function(l){VAx(l,this.children)};
_.X._setUnmanagedPropertyToNode=function(l,e,O){l.__hideTemplateChildren__&&l.nodeType==Node.TEXT_NODE&&e=="textContent"?l.__polymerTextContent__=O:apq.prototype._setUnmanagedPropertyToNode.call(this,l,e,O)};
_.X.dispatchEvent=function(){return!0};
_.Ji.Object.defineProperties(tP.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var l=this.__parentModel;if(!l){var e;l=this;do l=l.__dataHost.__dataHost;while((e=l.__templatizeOptions)&&!e.parentModel);this.__parentModel=l}return l}}});
var uLV=WX(tP);var ia=function(){var l=Xs.call(this)||this;l.__renderDebouncer=null;l._lastIf=!1;l.__hideTemplateChildren__=!1;return l};
_.m(ia,Xs);_.X=ia.prototype;_.X.__debounceRender=function(){var l=this;this.__renderDebouncer=_.Ci(this.__renderDebouncer,U0,function(){return l.__render()});
_.ot(this.__renderDebouncer)};
_.X.disconnectedCallback=function(){Xs.prototype.disconnectedCallback.call(this);var l=(0,_.mP)(this).parentNode;l&&(l.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.mP)(l).host)||this.__teardownInstance()};
_.X.connectedCallback=function(){Xs.prototype.connectedCallback.call(this);X1A()||(this.style.display="none");this.if&&this.__debounceRender()};
_.X.__ensureTemplate=function(){var l=this;if(!this.__template){var e=this._templateInfo?this:(0,_.mP)(this).querySelector("template");if(!e){var O=new MutationObserver(function(){if((0,_.mP)(l).querySelector("template"))O.disconnect(),l.__render();else throw Error("Ld");});
O.observe(this,{childList:!0});return!1}this.__template=e}return!0};
_.X.__ensureInstance=function(){var l=(0,_.mP)(this).parentNode;if(this.__hasInstance()){var e=this.__getInstanceNodes();if(e&&e.length&&(0,_.mP)(this).previousSibling!==e[e.length-1])for(var O=0,E=void 0;O<e.length&&(E=e[O]);O++)(0,_.mP)(l).insertBefore(E,this)}else{if(!l||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(l)}return!0};
_.X.render=function(){_.gI()};
_.X.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Q7&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.X.__hasInstance=function(){};
_.X.__getInstanceNodes=function(){};
_.X.__createAndInsertInstance=function(){};
_.X.__teardownInstance=function(){};
_.X._showHideChildren=function(){};
_.Ji.Object.defineProperties(ia,{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:ia.prototype.__debounceRender},restamp:{type:Boolean,observer:ia.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var kzC=function(){var l=ia.call(this)||this;l.__instance=null;l.__syncInfo=null;return l};
_.m(kzC,ia);_.X=kzC.prototype;_.X.__hasInstance=function(){return!!this.__instance};
_.X.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.X.__createAndInsertInstance=function(l){var e=this,O=this.__dataHost||this;if(NY&&!this.__dataHost)throw Error("Jd");var E=O._bindTemplate(this.__template,!0);E.runEffects=function(J,z,M){var Z=e.__syncInfo;if(e.if)Z&&(e.__syncInfo=null,e._showHideChildren(),z=Object.assign(Z.changedProps,z)),J(z,M);else if(e.__instance)if(Z||(Z=e.__syncInfo={runEffects:J,changedProps:{}}),M)for(var u in z)J=ig(u),Z.changedProps[J]=e.__dataHost[J];else Object.assign(Z.changedProps,z)};
this.__instance=O._stampTemplate(this.__template,E);(0,_.mP)(l).insertBefore(this.__instance,this)};
_.X.__syncHostProperties=function(){var l=this.__syncInfo;l&&(this.__syncInfo=null,l.runEffects(l.changedProps,!1))};
_.X.__teardownInstance=function(){var l=this.__dataHost||this;this.__instance&&(l._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.X._showHideChildren=function(){var l=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==l&&(this.__instance.__hidden=l,VAx(l,this.__instance.templateInfo.childNodes));l||this.__syncHostProperties()};
var Ipq=function(){var l=ia.call(this)||this;l.__ctor=null;l.__instance=null;l.__invalidProps=null;return l};
_.m(Ipq,ia);_.X=Ipq.prototype;_.X.__hasInstance=function(){return!!this.__instance};
_.X.__getInstanceNodes=function(){return this.__instance.children};
_.X.__createAndInsertInstance=function(l){this.__ctor||(this.__ctor=qY(this.__template,this,{mutableData:!0,forwardHostProp:function(e,O){this.__instance&&(this.if?this.__instance.forwardHostProp(e,O):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ig(e)]=!0))}}));
this.__instance=new this.__ctor;(0,_.mP)(l).insertBefore(this.__instance.root,this)};
_.X.__teardownInstance=function(){if(this.__instance){var l=this.__instance.children;if(l&&l.length){var e=(0,_.mP)(l[0]).parentNode;if(e){e=(0,_.mP)(e);for(var O=0,E=void 0;O<l.length&&(E=l[O]);O++)e.removeChild(E)}}this.__instance=this.__invalidProps=null}};
_.X.__syncHostProperties=function(){var l=this.__invalidProps;if(l){this.__invalidProps=null;for(var e in l)this.__instance._setPendingProperty(e,this.__dataHost[e]);this.__instance._flushProperties()}};
_.X._showHideChildren=function(){var l=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==l&&(this.__instance.__hidden=l,this.__instance._showHideChildren(l));l||this.__syncHostProperties()};
_.sV=Sq?kzC:Ipq;customElements.define(_.sV.is,_.sV);Polymer.enqueueDebouncer=_.ot;Polymer.flush=_.gI;Polymer.Templatize={templatize:qY,modelForElement:nJq};Polymer.TemplateInstanceBase=tP;Polymer.DomIf=_.sV;var mdx=Ai1(Xs),TV=function(){var l=mdx.call(this)||this;l.__instances=[];l.__renderDebouncer=null;l.__itemsIdxToInstIdx={};l.__chunkCount=null;l.__renderStartTime=null;l.__itemsArrayChanged=!1;l.__shouldMeasureChunk=!1;l.__shouldContinueChunking=!1;l.__chunkingId=0;l.__sortFn=null;l.__filterFn=null;l.__observePaths=null;l.__ctor=null;l.__isDetached=!0;l.template=null;return l};
_.m(TV,mdx);_.X=TV.prototype;_.X.disconnectedCallback=function(){mdx.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var l=0;l<this.__instances.length;l++)this.__detachInstance(l);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.X.connectedCallback=function(){mdx.prototype.connectedCallback.call(this);X1A()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var l=(0,_.mP)((0,_.mP)(this).parentNode),e=0;e<this.__instances.length;e++)this.__attachInstance(e,l);this.__chunkingId&&this.__render()}};
_.X.__ensureTemplatized=function(){var l=this;if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){var O=new MutationObserver(function(){if(l.querySelector("template"))O.disconnect(),l.__render();else throw Error("Md");});
O.observe(this,{childList:!0});return!1}var E={};E[this.as]=!0;E[this.indexAs]=!0;E[this.itemsIndexAs]=!0;this.__ctor=qY(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:E,forwardHostProp:function(J,z){for(var M=this.__instances,Z=0,u=void 0;Z<M.length&&(u=M[Z]);Z++)u.forwardHostProp(J,z)},
notifyInstanceProp:function(J,z,M){BgT(this.as,z)&&(J=J[this.itemsIndexAs],z==this.as&&(this.items[J]=M),z=AP(this.as,"items."+J,z),this.notifyPath(z,M))}})}return!0};
_.X.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.X.__functionFromPropertyValue=function(l){if(typeof l==="string"){var e=this.__getMethodHost();return function(){return e[l].apply(e,arguments)}}return l};
_.X.__sortChanged=function(l){this.__sortFn=this.__functionFromPropertyValue(l);this.items&&this.__debounceRender(this.__render)};
_.X.__filterChanged=function(l){this.__filterFn=this.__functionFromPropertyValue(l);this.items&&this.__debounceRender(this.__render)};
_.X.__computeFrameTime=function(l){return Math.ceil(1E3/l)};
_.X.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.X.__handleObservedPaths=function(l){if(this.__sortFn||this.__filterFn)if(!l)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var e=this.__observePaths,O=0;O<e.length;O++)l.indexOf(e[O])===0&&this.__debounceRender(this.__render,this.delay)};
_.X.__itemsChanged=function(l){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(l.path,l.value)||(l.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.X.__debounceRender=function(l,e){e=e===void 0?0:e;this.__renderDebouncer=_.Ci(this.__renderDebouncer,e>0?_.la.after(e):U0,l.bind(this));_.ot(this.__renderDebouncer)};
_.X.render=function(){this.__debounceRender(this.__render);_.gI()};
_.X.__render=function(){var l=this;if(this.__ensureTemplatized()){var e=this.items||[],O=this.__sortAndFilterItems(e),E=this.__calculateLimit(O.length);this.__updateInstances(e,E,O);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){l.__chunkingId=null;l.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Q7&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.X.__sortAndFilterItems=function(l){for(var e=this,O=Array(l.length),E=0;E<l.length;E++)O[E]=E;this.__filterFn&&(O=O.filter(function(J,z,M){return e.__filterFn(l[J],z,M)}));
this.__sortFn&&O.sort(function(J,z){return e.__sortFn(l[J],l[z])});
return O};
_.X.__calculateLimit=function(l){var e=l,O=this.__instances.length;if(this.initialCount){var E;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(l,this.initialCount),this.__chunkCount=(E=Math.max(e-O,0))||1):(E=Math.min(Math.max(l-O,0),this.__chunkCount),e=Math.min(O+E,l));this.__shouldMeasureChunk=E===this.__chunkCount;this.__shouldContinueChunking=e<l;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return e};
_.X.__continueChunking=function(){if(this.__shouldMeasureChunk){var l=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/l*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.X.__updateInstances=function(l,e,O){var E=this.__itemsIdxToInstIdx={},J;for(J=0;J<e;J++){var z=this.__instances[J],M=O[J],Z=l[M];E[M]=J;z?(z._setPendingProperty(this.as,Z),z._setPendingProperty(this.indexAs,J),z._setPendingProperty(this.itemsIndexAs,M),z._flushProperties()):this.__insertInstance(Z,J,M)}for(l=this.__instances.length-1;l>=J;l--)this.__detachAndRemoveInstance(l)};
_.X.__detachInstance=function(l){l=this.__instances[l];for(var e=(0,_.mP)(l.root),O=0;O<l.children.length;O++)e.appendChild(l.children[O]);return l};
_.X.__attachInstance=function(l,e){e.insertBefore(this.__instances[l].root,this)};
_.X.__detachAndRemoveInstance=function(l){this.__detachInstance(l);this.__instances.splice(l,1)};
_.X.__stampInstance=function(l,e,O){var E={};E[this.as]=l;E[this.indexAs]=e;E[this.itemsIndexAs]=O;return new this.__ctor(E)};
_.X.__insertInstance=function(l,e,O){l=this.__stampInstance(l,e,O);O=(O=this.__instances[e+1])?O.children[0]:this;(0,_.mP)((0,_.mP)(this).parentNode).insertBefore(l.root,O);return this.__instances[e]=l};
_.X._showHideChildren=function(l){for(var e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(l)};
_.X.__handleItemPath=function(l,e){var O=l.slice(6),E=O.indexOf(".");l=E<0?O:O.substring(0,E);if(l==parseInt(l,10)){O=E<0?"":O.substring(E+1);this.__handleObservedPaths(O);if(l=this.__instances[this.__itemsIdxToInstIdx[l]])l._setPendingPropertyOrPath(this.as+(O?"."+O:""),e,!1,!0),l._flushProperties();return!0}};
_.X.itemForElement=function(l){return(l=this.modelForElement(l))&&l[this.as]};
_.X.indexForElement=function(l){return(l=this.modelForElement(l))&&l[this.indexAs]};
_.X.modelForElement=function(l){return nJq(this.template,l)};
_.Ji.Object.defineProperties(TV,{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:TV.prototype.__sortChanged},filter:{type:Function,observer:TV.prototype.__filterChanged},observe:{type:String,observer:TV.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Q7,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.*)"]}}});
TV.prototype._setRenderedItemCount=function(){};
customElements.define(TV.is,TV);Polymer.DomRepeat=TV;var yiR=function(l,e){var O=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=l;this.callback=e;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){O._schedule()};
this.connect();this._schedule()},p9q=function(l){var e=(0,_.mP)(l);
if(D8(l))return e.assignedNodes({flatten:!0});l=[];for(var O=0;O<e.childNodes.length;O++){var E=e.childNodes[O];D8(E)?l.push.apply(l,_.kA((0,_.mP)(E).assignedNodes({flatten:!0}))):l.push(E)}return l};
_.X=yiR.prototype;_.X.connect=function(){var l=this;D8(this._target)?this._listenSlots([this._target]):(0,_.mP)(this._target).children&&(this._listenSlots((0,_.mP)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(e){l._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(function(e){l._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.X.disconnect=function(){D8(this._target)?this._unlistenSlots([this._target]):(0,_.mP)(this._target).children&&(this._unlistenSlots((0,_.mP)(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};
_.X._schedule=function(){var l=this;this._scheduled||(this._scheduled=!0,U0.run(function(){return l.flush()}))};
_.X._processMutations=function(l){this._processSlotMutations(l);this.flush()};
_.X._processSlotMutations=function(l){if(l)for(var e=0;e<l.length;e++){var O=l[e];O.addedNodes&&this._listenSlots(O.addedNodes);O.removedNodes&&this._unlistenSlots(O.removedNodes)}};
_.X.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 l={target:this._target,addedNodes:[],removedNodes:[]},e=p9q(this._target),O=wiV(e,this._effectiveNodes),E=0,J=void 0;E<O.length&&(J=O[E]);E++)for(var z=0,M=void 0;z<J.removed.length&&(M=J.removed[z]);z++)l.removedNodes.push(M);
E=0;for(J=void 0;E<O.length&&(J=O[E]);E++)for(z=J.index;z<J.index+J.addedCount;z++)l.addedNodes.push(e[z]);this._effectiveNodes=e;e=!1;if(l.addedNodes.length||l.removedNodes.length)e=!0,this.callback.call(this._target,l);return e};
_.X._listenSlots=function(l){for(var e=0;e<l.length;e++){var O=l[e];D8(O)&&O.addEventListener("slotchange",this._boundSchedule)}};
_.X._unlistenSlots=function(l){for(var e=0;e<l.length;e++){var O=l[e];D8(O)&&O.removeEventListener("slotchange",this._boundSchedule)}};var wI=Element.prototype,KuH=wI.matches||wI.matchesSelector||wI.mozMatchesSelector||wI.msMatchesSelector||wI.oMatchesSelector||wI.webkitMatchesSelector,jcC=function(l,e){return KuH.call(l,e)},S4=function(l){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(l);
this.node=l},fpC;
_.X=S4.prototype;_.X.observeNodes=function(l){return new yiR(this.node,l)};
_.X.unobserveNodes=function(l){l.disconnect()};
_.X.notifyObserver=function(){};
_.X.deepContains=function(l){if((0,_.mP)(this.node).contains(l))return!0;var e=l;for(l=l.ownerDocument;e&&e!==l&&e!==this.node;)e=(0,_.mP)(e).parentNode||(0,_.mP)(e).host;return e===this.node};
_.X.getOwnerRoot=function(){return(0,_.mP)(this.node).getRootNode()};
_.X.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.mP)(this.node).assignedNodes({flatten:!0}):[]};
_.X.getDestinationInsertionPoints=function(){for(var l=[],e=(0,_.mP)(this.node).assignedSlot;e;)l.push(e),e=(0,_.mP)(e).assignedSlot;return l};
_.X.importNode=function(l,e){return(0,_.mP)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(l,e)};
_.X.getEffectiveChildNodes=function(){return p9q(this.node)};
_.X.queryDistributedElements=function(l){for(var e=this.getEffectiveChildNodes(),O=[],E=0,J=e.length,z=void 0;E<J&&(z=e[E]);E++)z.nodeType===Node.ELEMENT_NODE&&jcC(z,l)&&O.push(z);return O};
_.Ji.Object.defineProperties(S4.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var l=this.node;return l._activeElement!==void 0?l._activeElement:l.activeElement}}});
var AH=function(l){this.event=l};
_.Ji.Object.defineProperties(AH.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 H_0=S4;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var ci0=window.ShadyDOM.Wrapper,FuF=function(){return ci0.apply(this,arguments)||this};
_.m(FuF,ci0);Object.getOwnPropertyNames(S4.prototype).forEach(function(l){l!="activeElement"&&l!="constructor"&&(FuF.prototype[l]=S4.prototype[l])});
kK2(FuF.prototype,["classList"]);H_0=FuF;Object.defineProperties(AH.prototype,{localTarget:{get:function(){var l=this.event.currentTarget;l=l&&_.c9(l).getOwnerRoot();for(var e=this.path,O=0;O<e.length;O++){var E=e[O];if(_.c9(E).getOwnerRoot()===l)return E}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else asx(),kK2(S4.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),IsT();fpC=H_0;_.c9=function(l){l=l||document;if(l instanceof H_0)return l;if(l instanceof AH)return l;var e=l.__domApi;e||(l instanceof Event?e=new AH(l):e=new H_0(l),l.__domApi=e);return e};var RR1=/:host\(:dir\((ltr|rtl)\)\)/g,Tvq=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,scH=/:dir\((?:ltr|rtl)\)/,Gzk=!(!window.ShadyDOM||!window.ShadyDOM.inUse),xZ=[],ni=null,QR="",BvR=eJ(function(l){Gzk||ni||(QR=document.documentElement.getAttribute("dir"),ni=new MutationObserver(msx),ni.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var e=LP6(l);l=function(){var O=e.call(this)||this;O.__autoDirOptOut=!1;return O};
_.m(l,e);l._processStyleText=function(O,E){O=e._processStyleText.call(this,O,E);!Gzk&&scH.test(O)&&(O=this._replaceDirInCssText(O),this.__activateDir=!0);return O};
l._replaceDirInCssText=function(O){O=O.replace(RR1,':host([dir="$1"])');return O=O.replace(Tvq,':host([dir="$2"]) $1')};
l.prototype.ready=function(){e.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
l.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ni&&ni.takeRecords().length&&msx(),xZ.push(this),this.__autoDirOptOut||this.setAttribute("dir",QR))};
l.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var O=xZ.indexOf(this);O>-1&&xZ.splice(O,1)}};
l.__activateDir=!1;return l});var PeF=function(l){for(;l;){var e=Object.getOwnPropertyDescriptor(l,"observedAttributes");if(e)return e.get;l=Object.getPrototypeOf(l.prototype).constructor}return function(){return[]}};
eJ(function(l){var e=JH(l),O=PeF(e);l=function(){return e.call(this)||this};
_.m(l,e);l.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:e.prototype._initializeProperties.call(this)};
l.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
l.prototype._canApplyPropertyDefault=function(E){return e.prototype._canApplyPropertyDefault.call(this,E)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(E))};
l.prototype.attributeChangedCallback=function(E,J,z,M){E=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(e.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.mP)(this).isConnected&&e.prototype.connectedCallback.call(this)):e.prototype.attributeChangedCallback.call(this,E,J,z,M)};
l.prototype.connectedCallback=function(){this.__isUpgradeDisabled||e.prototype.connectedCallback.call(this)};
l.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||e.prototype.disconnectedCallback.call(this)};
_.Ji.Object.defineProperties(l,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O.call(this).concat("disable-upgrade")}}});
return l});var le=!1,p1A=[],eH=[];var ceg=window.ShadyDOM,FIW=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",RHq):document.readyState==="interactive"||document.readyState==="complete"?RHq():window.addEventListener("DOMContentLoaded",RHq);var GKL=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=""},T$g=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,s9d=/@import[^;]*;/gim,LId=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,tAd=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,q62=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,vJd=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Y6V=/^@[^\s]*keyframes/,
Usx=/\s+/g;var N$p={};var S6M=Promise.resolve();var Udq=new Set;var YKH=/;\s*/m,hRH=/^\s*(initial)|(inherit)\s*$/,LuS=/\s*!important/,tHk=function(){this._map={}};
tHk.prototype.set=function(l,e){l=l.trim();this._map[l]={properties:e,dependants:{}}};
tHk.prototype.get=function(l){l=l.trim();return this._map[l]||null};
var qKx=null,at=function(){this._measureElement=this._currentElement=null;this._map=new tHk};
_.X=at.prototype;_.X.detectMixin=function(l){l=MH6.test(l)||b_q.test(l);MH6.lastIndex=0;b_q.lastIndex=0;return l};
_.X.transformTemplate=function(l,e){if(l._gatheredStyle===void 0){var O=[];for(var E=l.content.querySelectorAll("style"),J=0;J<E.length;J++){var z=E[J];if(z.hasAttribute("shady-unscoped")){if(!HTx){var M=z.textContent;if(!Udq.has(M)){Udq.add(M);var Z=document.createElement("style");Z.setAttribute("shady-unscoped","");Z.textContent=M;document.head.appendChild(Z)}z.parentNode.removeChild(z)}}else O.push(z.textContent),z.parentNode.removeChild(z)}(O=O.join("").trim())?(E=document.createElement("style"),
E.textContent=O,l.content.insertBefore(E,l.content.firstChild),O=E):O=null;l._gatheredStyle=O}return(l=l._gatheredStyle)?this.JSC$9211_transformStyle(l,e):null};
_.X.JSC$9211_transformStyle=function(l,e){e=e===void 0?"":e;var O=ehA(l);this.transformRules(O,e);l.textContent=lLu(O);return O};
_.X.transformCustomStyle=function(l){var e=this,O=ehA(l);Exq(O,function(E){E.selector===":root"&&(E.selector="html");e.transformRule(E)});
l.textContent=lLu(O);return O};
_.X.transformRules=function(l,e){var O=this;this._currentElement=e;Exq(l,function(E){O.transformRule(E)});
this._currentElement=null};
_.X.transformRule=function(l){l.cssText=vvC(this,l.parsedCssText,l);l.selector===":root"&&(l.selector=":host > *")};
var vvC=function(l,e,O){e=e.replace(b_q,function(E,J,z,M){return l._produceCssProperties(E,J,z,M,O)});
return l._consumeCssProperties(e,O)};
_.X=at.prototype;_.X._getInitialValueForProperty=function(l){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(l)};
_.X._fallbacksFromPreviousRules=function(l){for(var e=this,O=l;O.parent;)O=O.parent;var E={},J=!1;Exq(O,function(z){(J=J||z===l)||z.selector===l.selector&&Object.assign(E,e._cssTextToMap(z.parsedCssText))});
return E};
_.X._consumeCssProperties=function(l,e){for(var O;O=MH6.exec(l);){var E=O[0],J=O[1];O=O.index;var z=O+E.indexOf("@apply"),M=O+E.length;E=l.slice(0,z);l=l.slice(M);z=e?this._fallbacksFromPreviousRules(e):{};Object.assign(z,this._cssTextToMap(E));J=this._atApplyToCssProperties(J,z);l=E+J+l;MH6.lastIndex=O+J.length}return l};
_.X._atApplyToCssProperties=function(l,e){l=l.replace(YKH,"");var O=[],E=this._map.get(l);E||(this._map.set(l,{}),E=this._map.get(l));if(E){this._currentElement&&(E.dependants[this._currentElement]=!0);var J,z=E.properties;for(J in z){var M=e&&e[J];E=[J,": var(",l,"_-_",J];M&&E.push(",",M.replace(LuS,""));E.push(")");LuS.test(z[J])&&E.push(" !important");O.push(E.join(""))}}return O.join("; ")};
_.X._replaceInitialOrInherit=function(l,e){var O=hRH.exec(e);O&&(e=O[1]?this._getInitialValueForProperty(l):"apply-shim-inherit");return e};
_.X._cssTextToMap=function(l,e){e=e===void 0?!1:e;l=l.split(";");for(var O,E,J={},z=0;z<l.length;z++)if(O=l[z])E=O.split(":"),E.length>1&&(O=E[0].trim(),E=E.slice(1).join(":"),e&&(E=this._replaceInitialOrInherit(O,E)),J[O]=E);return J};
_.X._invalidateMixinEntry=function(l){if(qKx)for(var e in l.dependants)e!==this._currentElement&&qKx(e)};
_.X._produceCssProperties=function(l,e,O,E,J){var z=this;O&&Jcg(O,function(y,c){c&&z._map.get(c)&&(E="@apply "+c+";")});
if(!E)return l;var M=this._consumeCssProperties(""+E,J);J=l.slice(0,l.indexOf("--"));var Z=M=this._cssTextToMap(M,!0),u=this._map.get(e),d=u&&u.properties;d?Z=Object.assign(Object.create(d),M):this._map.set(e,Z);var g=[],w,n=!1;for(w in Z){var k=M[w];k===void 0&&(k="initial");!d||w in d||(n=!0);g.push(e+"_-_"+w+": "+k)}n&&this._invalidateMixinEntry(u);u&&(u.properties=Z);O&&(J=l+";"+J);return J+g.join("; ")+";"};
at.prototype.detectMixin=at.prototype.detectMixin;at.prototype.transformStyle=at.prototype.JSC$9211_transformStyle;at.prototype.transformCustomStyle=at.prototype.transformCustomStyle;at.prototype.transformRules=at.prototype.transformRules;at.prototype.transformRule=at.prototype.transformRule;at.prototype.transformTemplate=at.prototype.transformTemplate;at.prototype._separator="_-_";Object.defineProperty(at.prototype,"invalidCallback",{get:function(){return qKx},
set:function(l){qKx=l}});var kn=new at,NvS=function(){this.customStyleInterface=null;kn.invalidCallback=rex},It=function(l){!l.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(l.customStyleInterface=window.ShadyCSS.CustomStyleInterface,l.customStyleInterface.transformCallback=function(e){kn.transformCustomStyle(e)},l.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){l.customStyleInterface.enqueued&&l.flushCustomStyles()})})};
_.X=NvS.prototype;_.X.prepareTemplate=function(l,e){It(this);Xnd(l)===""&&(N$p[e]=l,e=kn.transformTemplate(l,e),l._styleAst=e)};
_.X.flushCustomStyles=function(){It(this);if(this.customStyleInterface){var l=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var e=0;e<l.length;e++){var O=this.customStyleInterface.getStyleForCustomStyle(l[e]);O&&kn.transformCustomStyle(O)}this.customStyleInterface.enqueued=!1}}};
_.X.styleSubtree=function(l,e){It(this);e&&knT(l,e);if(l.shadowRoot)for(this.styleElement(l),l=l.shadowRoot.children||l.shadowRoot.childNodes,e=0;e<l.length;e++)this.styleSubtree(l[e]);else for(l=l.children||l.childNodes,e=0;e<l.length;e++)this.styleSubtree(l[e])};
_.X.styleElement=function(l){It(this);var e=l.localName,O;e?e.indexOf("-")>-1?O=e:O=l.getAttribute&&l.getAttribute("is")||"":O=l.is;e=N$p[O];if(!(e&&Xnd(e)!==""||!e||Ds8(e))){if(Ds8(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.prepareTemplate(e,O),Q9g(e);if(l=l.shadowRoot)if(l=l.querySelector("style"))l.__cssRules=e._styleAst,l.textContent=lLu(e._styleAst)}};
_.X.styleDocument=function(l){It(this);this.styleSubtree(document.body,l)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var mR=new NvS,riS=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(l,e){mR.flushCustomStyles();mR.prepareTemplate(l,e)},
prepareTemplateStyles:function(l,e,O){window.ShadyCSS.prepareTemplate(l,e,O)},
prepareTemplateDom:function(){},
styleSubtree:function(l,e){mR.flushCustomStyles();mR.styleSubtree(l,e)},
styleElement:function(l){mR.flushCustomStyles();mR.styleElement(l)},
styleDocument:function(l){mR.flushCustomStyles();mR.styleDocument(l)},
getComputedStyleValue:function(l,e){return IPV(l,e)},
flushCustomStyles:function(){mR.flushCustomStyles()},
nativeCss:xsu,nativeShadow:HTx,cssBuild:EK,disableRuntime:ucq};riS&&(window.ShadyCSS.CustomStyleInterface=riS)}window.ShadyCSS.ApplyShim=kn;var Dd1;Dd1=window.ShadyCSS;_.yX=eJ(function(l){l=w9H(JH(l));var e=lpq?l:BvR(l),O=PeF(e),E={x:"pan-x",y:"pan-y",none:"none",all:"auto"};l=function(){return e.call(this)||this};
_.m(l,e);l.prototype.created=function(){};
l.prototype.__attributeReaction=function(J,z,M){(this.__dataAttributes&&this.__dataAttributes[J]||J==="disable-upgrade")&&this.attributeChangedCallback(J,z,M,null)};
l.prototype.setAttribute=function(J,z){if(pQH&&!this._legacyForceObservedAttributes){var M=this.getAttribute(J);e.prototype.setAttribute.call(this,J,z);this.__attributeReaction(J,M,String(z))}else e.prototype.setAttribute.call(this,J,z)};
l.prototype.removeAttribute=function(J){if(pQH&&!this._legacyForceObservedAttributes){var z=this.getAttribute(J);e.prototype.removeAttribute.call(this,J);this.__attributeReaction(J,z,null)}else e.prototype.removeAttribute.call(this,J)};
l.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
l.prototype._canApplyPropertyDefault=function(J){return e.prototype._canApplyPropertyDefault.call(this,J)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(J))};
l.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(e.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
l.prototype.attached=function(){};
l.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(e.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
l.prototype.detached=function(){};
l.prototype.attributeChangedCallback=function(J,z,M,Z){z!==M&&(J=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.mP)(this).isConnected&&this.connectedCallback()):(e.prototype.attributeChangedCallback.call(this,J,z,M,Z),this.attributeChanged(J,z,M)))};
l.prototype.attributeChanged=function(){};
l.prototype._initializeProperties=function(){if(hP&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var J=Object.getPrototypeOf(this);J.hasOwnProperty("__hasRegisterFinished")||(this._registered(),J.__hasRegisterFinished=!0);e.prototype._initializeProperties.call(this);this.root=this;this.created();pQH&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
l.prototype._takeAttributes=function(){for(var J=this.attributes,z=0,M=J.length;z<M;z++){var Z=J[z];this.__attributeReaction(Z.name,null,Z.value)}};
l.prototype._registered=function(){};
l.prototype.ready=function(){this._ensureAttributes();e.prototype.ready.call(this)};
l.prototype._ensureAttributes=function(){};
l.prototype._applyListeners=function(){};
l.prototype.serialize=function(J){return this._serializeValue(J)};
l.prototype.deserialize=function(J,z){return this._deserializeValue(J,z)};
l.prototype.reflectPropertyToAttribute=function(J,z,M){this._propertyToAttribute(J,z,M)};
l.prototype.serializeValueToAttribute=function(J,z,M){this._valueToNodeAttribute(M||this,J,z)};
l.prototype.extend=function(J,z){if(!J||!z)return J||z;for(var M=Object.getOwnPropertyNames(z),Z=0,u=void 0;Z<M.length&&(u=M[Z]);Z++){var d=Object.getOwnPropertyDescriptor(z,u);d&&Object.defineProperty(J,u,d)}return J};
l.prototype.mixin=function(J,z){for(var M in z)J[M]=z[M];return J};
l.prototype.chainObject=function(J,z){J&&z&&J!==z&&(J.__proto__=z);return J};
l.prototype.instanceTemplate=function(J){J=this.constructor._contentForTemplate(J);return document.importNode(J,!0)};
l.prototype.fire=function(J,z,M){M=M||{};z=z===null||z===void 0?{}:z;J=new Event(J,{bubbles:M.bubbles===void 0?!0:M.bubbles,cancelable:!!M.cancelable,composed:M.composed===void 0?!0:M.composed});J.detail=z;(0,_.mP)(M.node||this).dispatchEvent(J);return J};
l.prototype.listen=function(J,z,M){J=J||this;var Z=this.__boundListeners||(this.__boundListeners=new WeakMap),u=Z.get(J);u||(u={},Z.set(J,u));Z=z+M;u[Z]||(u[Z]=this._addMethodEventListenerToNode(J,z,M,this))};
l.prototype.unlisten=function(J,z,M){J=J||this;var Z=this.__boundListeners&&this.__boundListeners.get(J);M=z+M;var u=Z&&Z[M];u&&(this._removeEventListenerFromNode(J,z,u),Z[M]=null)};
l.prototype.setScrollDirection=function(J,z){_.PQ(z||this,E[J]||"auto")};
l.prototype.$$=function(J){return this.root.querySelector(J)};
l.prototype.distributeContent=function(){var J=_.c9(this);window.ShadyDOM&&J.shadowRoot&&ShadyDOM.flush()};
l.prototype.getEffectiveChildNodes=function(){return _.c9(this).getEffectiveChildNodes()};
l.prototype.queryDistributedElements=function(J){return _.c9(this).queryDistributedElements(J)};
l.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
l.prototype.getEffectiveTextContent=function(){for(var J=this.getEffectiveChildNodes(),z=[],M=0,Z;Z=J[M];M++)Z.nodeType!==Node.COMMENT_NODE&&z.push(Z.textContent);return z.join("")};
l.prototype.queryEffectiveChildren=function(J){return(J=this.queryDistributedElements(J))&&J[0]};
l.prototype.queryAllEffectiveChildren=function(J){return this.queryDistributedElements(J)};
l.prototype.getContentChildNodes=function(J){return(J=this.root.querySelector(J||"slot"))?_.c9(J).getDistributedNodes():[]};
l.prototype.getContentChildren=function(J){return this.getContentChildNodes(J).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
l.prototype.isLightDescendant=function(J){return this!==J&&(0,_.mP)(this).contains(J)&&(0,_.mP)(this).getRootNode()===(0,_.mP)(J).getRootNode()};
l.prototype.isLocalDescendant=function(J){return this.root===(0,_.mP)(J).getRootNode()};
l.prototype.scopeSubtree=function(J,z){return fsp(J,z===void 0?!1:z)};
l.prototype.getComputedStyleValue=function(J){return Dd1.getComputedStyleValue(this,J)};
l.prototype.debounce=function(J,z,M){this._debouncers=this._debouncers||{};return this._debouncers[J]=_.Ci(this._debouncers[J],M>0?_.la.after(M):U0,z.bind(this))};
l.prototype.isDebouncerActive=function(J){this._debouncers=this._debouncers||{};J=this._debouncers[J];return!(!J||!J.isActive())};
l.prototype.flushDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.flush()};
l.prototype.cancelDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.cancel()};
l.prototype.async=function(J,z){return z>0?_.la.run(J.bind(this),z):~U0.run(J.bind(this))};
l.prototype.cancelAsync=function(J){J<0?U0.cancel(~J):_.la.cancel(J)};
l.prototype.create=function(J,z){J=document.createElement(J);if(z)if(J.setProperties)J.setProperties(z);else for(var M in z)J[M]=z[M];return J};
l.prototype.elementMatches=function(J,z){return jcC(z||this,J)};
l.prototype.toggleAttribute=function(J,z){var M=this;arguments.length===3&&(M=arguments[2]);arguments.length==1&&(z=!M.hasAttribute(J));if(z)return(0,_.mP)(M).setAttribute(J,""),!0;(0,_.mP)(M).removeAttribute(J);return!1};
l.prototype.toggleClass=function(J,z,M){M=M||this;arguments.length==1&&(z=!M.classList.contains(J));z?M.classList.add(J):M.classList.remove(J)};
l.prototype.transform=function(J,z){z=z||this;z.style.webkitTransform=J;z.style.transform=J};
l.prototype.translate3d=function(J,z,M,Z){this.transform("translate3d("+J+","+z+","+M+")",Z||this)};
l.prototype.arrayDelete=function(J,z){if(Array.isArray(J)){if(z=J.indexOf(z),z>=0)return J.splice(z,1)}else if(z=am(this,J).indexOf(z),z>=0)return this.splice(J,z,1);return null};
l.prototype._logger=function(J,z){Array.isArray(z)&&z.length===1&&Array.isArray(z[0])&&(z=z[0]);switch(J){case "log":case "warn":case "error":console[J].apply(console,_.kA(z))}};
l.prototype._log=function(){this._logger("log",_.ke.apply(0,arguments))};
l.prototype._warn=function(){this._logger("warn",_.ke.apply(0,arguments))};
l.prototype._error=function(){this._logger("error",_.ke.apply(0,arguments))};
l.prototype._logf=function(J){return["[%s::%s]",this.is,J].concat(_.kA(_.ke.apply(1,arguments)))};
_.Ji.Object.defineProperties(l.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var J=(0,_.mP)(this).getRootNode();return J instanceof DocumentFragment?J.host:J}}});
_.Ji.Object.defineProperties(l,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return pQH&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],cmg(this.prototype)),this.__observedAttributes):O.call(this).concat("disable-upgrade")}}});
l.prototype.is="";return l});Polymer.FlattenedNodesObserver=yiR;Polymer.DomApi=fpC;Polymer.EventApi=AH;Polymer.dom=_.c9;Polymer.dom.matchesSelector=jcC;Polymer.dom.flush=_.gI;Polymer.dom.addDebouncer=_.ot;Polymer.DirMixin=BvR;Polymer.RenderStatus={beforeNextRender:_.Hkd,afterNextRender:_.OK,flush:function(){for(;p1A.length||eH.length;)yeq(p1A),yeq(eH);le=!1}};Polymer.LegacyElementMixin=_.yX;var SKq;SKq=WX._mutablePropertyChange;var QcS={properties:{mutableData:Boolean},_shouldPropertyChange:function(l,e,O){return SKq(this,l,e,O,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(l,e,O){return SKq(this,l,e,O,!0)}};
Polymer.OptionalMutableDataBehavior=QcS;var zhq={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},ui8={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ZNM=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},ui8),xdk=(0,_.yX)(HTMLElement),Nix=function(l,e){l||console.warn("Polymer.Class requires `info` argument");e=e?e(xdk):xdk;e=CYq(l,e,l.behaviors);e.is=e.prototype.is=
l.is;return e};Polymer.Class=Nix;Polymer.mixinBehaviors=function(l,e){return CYq({},(0,_.yX)(e),l)};
Polymer.GenerateClassFromInfo=CYq;_.RB=function(l){var e=typeof l==="function"?l:_.RB.Class(l);l._legacyForceObservedAttributes&&(e.prototype._legacyForceObservedAttributes=l._legacyForceObservedAttributes);customElements.define(e.is,e);return e};
_.RB.Class=Nix;Polymer._polymerFn=_.RB;var lGx=window.onLegacyPolymerFunctionDefinedCallback;lGx&&lGx();var Dfx={templatize:function(l,e){this._templatizerTemplate=l;this.ctor=qY(l,this,{mutableData:!!e,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(l){return new this.ctor(l)},
modelForElement:function(l){return nJq(this._templatizerTemplate,l)}};Polymer.Templatizer=Dfx;_.pi=(0,_.yX)(HTMLElement).prototype;Polymer.Base=_.pi;var $Jq=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Xc=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(_.Xc,PolymerFakeBaseClass);var zz=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.m(zz,PolymerFakeBaseClass);var WCW=Symbol("Nd"),kip=[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 eU0=eU0||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},OzC;(function(l){function e(t,r,D){var b2=N.get(t);if(!b2){if(!D)return;b2=new P;N.set(t,b2)}t=b2.get(r);if(!t){if(!D)return;t=new P;b2.set(r,t)}return t}
function O(t,r,D){if(E(t,r,D))return!0;r=n(r);return r!==null?O(t,r,D):!1}
function E(t,r,D){r=e(r,D,!1);return r===void 0?!1:!!r.has(t)}
function J(t,r,D){if(E(t,r,D))return z(t,r,D);r=n(r);if(r!==null)return J(t,r,D)}
function z(t,r,D){r=e(r,D,!1);if(r!==void 0)return r.get(t)}
function M(t,r){var D=Z(t,r);t=n(t);if(t===null)return D;var b2=M(t,r);if(b2.length<=0)return D;if(D.length<=0)return b2;r=new h;t=[];D=_.b(D);for(var $V=D.next();!$V.done;$V=D.next())$V=$V.value,r.has($V)||(r.add($V),t.push($V));D=_.b(b2);for(b2=D.next();!b2.done;b2=D.next())b2=b2.value,r.has(b2)||(r.add(b2),t.push(b2));return t}
function Z(t,r){t=e(t,r,!1);var D=[];t&&t.forEach(function(b2,$V){return D.push($V)});
return D}
function u(t){return t===void 0}
function d(t){return typeof t==="object"?t!==null:typeof t==="function"}
function g(t){return typeof t==="function"}
function w(t){return typeof t==="symbol"?t:String(t)}
function n(t){var r=Object.getPrototypeOf(t);if(typeof t!=="function"||t===f||r!==f)return r;var D=Object.getPrototypeOf(t.prototype);if(D==null||D===Object.prototype)return r;D=D.constructor;return typeof D!=="function"||D===t?r:D}
function k(){function t(){this._keys=[];this._values=[];this._cache=r}
var r={};t.prototype={get size(){return this._keys.length},has:function(D){return D===this._cache?!0:this._find(D)>=0?(this._cache=D,!0):!1},
get:function(D){var b2=this._find(D);if(b2>=0)return this._cache=D,this._values[b2]},
set:function(D,b2){this.delete(D);this._keys.push(D);this._values.push(b2);this._cache=D;return this},
delete:function(D){D=this._find(D);return D>=0?(this._keys.splice(D,1),this._values.splice(D,1),this._cache=r,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=r},
forEach:function(D){for(var b2=this.size,$V=0;$V<b2;++$V){var gT=this._keys[$V],mx=this._values[$V];this._cache=gT;D.call(this,mx,gT,this)}},
_find:function(D){for(var b2=this._keys,$V=b2.length,gT=0;gT<$V;++gT)if(b2[gT]===D)return gT;return-1}};
return t}
function y(){function t(){this._map=new P}
t.prototype={get size(){return this._map.length},has:function(r){return this._map.has(r)},
add:function(r){this._map.set(r,r);return this},
delete:function(r){return this._map.delete(r)},
clear:function(){this._map.clear()},
forEach:function(r,D){this._map.forEach(r,D)}};
return t}
function c(){function t(){this._key=D()}
function r(cx,tq){for(var Px=0;Px<tq;++Px)cx[Px]=Math.random()*255|0}
function D(){do{if($V)var cx=$V.randomBytes(16);else typeof Uint8Array==="function"?(cx=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(cx):r(cx,16)):(cx=Array(16),r(cx,16));cx[6]=cx[6]&79|64;cx[8]=cx[8]&191|128;for(var tq="",Px=0;Px<16;++Px){var S0=cx[Px];if(Px===4||Px===6||Px===8)tq+="-";S0<16&&(tq+="0");tq+=S0.toString(16).toLowerCase()}cx="@@WeakMap@@"+tq}while(gT.call(mx,cx));mx[cx]=!0;return cx}
function b2(cx,tq){if(!gT.call(cx,jM)){if(!tq)return;Object.defineProperty(cx,jM,{value:Object.create(null)})}return cx[jM]}
var $V=typeof global!=="undefined"&&typeof eU0==="object"&&typeof require==="function"&&require("crypto"),gT=Object.prototype.hasOwnProperty,mx={},jM=D();t.prototype={has:function(cx){return(cx=b2(cx,!1))?this._key in cx:!1},
get:function(cx){if(cx=b2(cx,!1))return cx[this._key]},
set:function(cx,tq){b2(cx,!0)[this._key]=tq;return this},
delete:function(cx){return(cx=b2(cx,!1))&&this._key in cx?delete cx[this._key]:!1},
clear:function(){this._key=D()}};
return t}
var f=Object.getPrototypeOf(Function),P=typeof Map==="function"?Map:k(),h=typeof Set==="function"?Set:y(),N=new (typeof WeakMap==="function"?WeakMap:c());l.decorate=function(t,r,D,b2){if(u(b2)){if(u(D)){if(!Array.isArray(t))throw new TypeError;if(!g(r))throw new TypeError;for(D=t.length-1;D>=0;--D)if(b2=(0,t[D])(r),!u(b2)){if(!g(b2))throw new TypeError;r=b2}return r}if(!Array.isArray(t))throw new TypeError;if(!d(r))throw new TypeError;D=w(D);for(b2=t.length-1;b2>=0;--b2)(0,t[b2])(r,D)}else{if(Array.isArray(t))if(d(r)){if(u(D))throw new TypeError;
if(!d(b2))throw new TypeError;}else throw new TypeError;else throw new TypeError;D=w(D);for(var $V=t.length-1;$V>=0;--$V){var gT=(0,t[$V])(r,D,b2);if(!u(gT)){if(!d(gT))throw new TypeError;b2=gT}}return b2}};
l.metadata=function(t,r){return function(D,b2){if(u(b2)){if(!g(D))throw new TypeError;e(D,void 0,!0).set(t,r)}else{if(!d(D))throw new TypeError;b2=w(b2);e(D,b2,!0).set(t,r)}}};
l.defineMetadata=function(t,r){var D;if(d(r))u(D)||(D=w(D));else throw new TypeError;e(r,D,!0).set("parameters",t)};
l.hasMetadata=function(t,r,D){if(d(r))u(D)||(D=w(D));else throw new TypeError;return O(t,r,D)};
l.hasOwnMetadata=function(t,r,D){if(d(r))u(D)||(D=w(D));else throw new TypeError;return E(t,r,D)};
l.getMetadata=function(t,r,D){if(d(r))u(D)||(D=w(D));else throw new TypeError;return J(t,r,D)};
l.getOwnMetadata=function(t,r,D){if(d(r))u(D)||(D=w(D));else throw new TypeError;return z(t,r,D)};
l.getMetadataKeys=function(t,r){if(d(t))u(r)||(r=w(r));else throw new TypeError;return M(t,r)};
l.getOwnMetadataKeys=function(t,r){if(d(t))u(r)||(r=w(r));else throw new TypeError;return Z(t,r)};
l.deleteMetadata=function(t,r,D){if(d(r))u(D)||(D=w(D));else throw new TypeError;var b2=e(r,D,!1);if(!u(b2)){if(!b2.delete(t))return!1;if(b2.size>0)return!0;t=N.get(r);t.delete(D);if(t.size>0)return!0;N.delete(r);return!0}};
(function(t){if(typeof t.Reflect!=="undefined"){if(t.Reflect!==l)for(var r in l)t.Reflect[r]=l[r]}else t.Reflect=l})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(OzC||(OzC={}));var F8M=self;var EuR=[0,_.QK,_.lQ,_.QK];var Jgx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Jgx,_.Gu);var Xbk=_.QI(Jgx,[0,_.JXx,_.ea,EuR,_.lQ,_.E8]);_.o_(_.be,_.y6);_.X=_.be.prototype;_.X.start=function(){this.stop();this.usingListeners_=!1;var l=zUk(this),e=bzR(this);l&&!e&&this.JSC$9254_win_.mozRequestAnimationFrame?(this.JSC$9254_id_=_.f4(this.JSC$9254_win_,"MozBeforePaint",this.callback_),this.JSC$9254_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9254_id_=l&&e?l.call(this.JSC$9254_win_,this.callback_):this.JSC$9254_win_.setTimeout(VMq(this.callback_),20)};
_.X.stop=function(){if(this.isActive()){var l=zUk(this),e=bzR(this);l&&!e&&this.JSC$9254_win_.mozRequestAnimationFrame?Hf(this.JSC$9254_id_):l&&e?e.call(this.JSC$9254_win_,this.JSC$9254_id_):this.JSC$9254_win_.clearTimeout(this.JSC$9254_id_)}this.JSC$9254_id_=null};
_.X.fire=function(){this.stop();this.JSC$9256_doAction_()};
_.X.isActive=function(){return this.JSC$9254_id_!=null};
_.X.JSC$9256_doAction_=function(){this.usingListeners_&&this.JSC$9254_id_&&Hf(this.JSC$9254_id_);this.JSC$9254_id_=null;this.JSC$9254_listener_.call(this.handler_,_.C2())};
_.X.disposeInternal=function(){this.stop();_.be.superClass_.disposeInternal.call(this)};
var zUk=function(l){l=l.JSC$9254_win_;return l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||null},bzR=function(l){l=l.JSC$9254_win_;
return l.cancelAnimationFrame||l.cancelRequestAnimationFrame||l.webkitCancelRequestAnimationFrame||l.mozCancelRequestAnimationFrame||l.oCancelRequestAnimationFrame||l.msCancelRequestAnimationFrame||null};_.b3=function(l,e,O){_.y6.call(this);this.JSC$9257_listener_=O!=null?l.bind(O):l;this.JSC$9257_interval_=e;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9257_timer_=null};
_.m(_.b3,_.y6);_.X=_.b3.prototype;_.X.fire=function(l){this.args_=arguments;this.JSC$9257_timer_||this.pauseCount_?this.shouldFire_=!0:Mj6(this)};
_.X.stop=function(){this.JSC$9257_timer_&&(_.Op.clearTimeout(this.JSC$9257_timer_),this.JSC$9257_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.X.pause=function(){this.pauseCount_++};
_.X.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9257_timer_||(this.shouldFire_=!1,Mj6(this))};
_.X.disposeInternal=function(){_.y6.prototype.disposeInternal.call(this);this.stop()};
var Mj6=function(l){l.JSC$9257_timer_=fx(function(){l.JSC$9257_timer_=null;l.shouldFire_&&!l.pauseCount_&&(l.shouldFire_=!1,Mj6(l))},l.JSC$9257_interval_);
var e=l.args_;l.args_=null;l.JSC$9257_listener_.apply(null,e)};var VjR=function(l,e){this.childIterator_=l[_.Op.Symbol.iterator]();this.mapFn_=e};
VjR.prototype[Symbol.iterator]=function(){return this};
VjR.prototype.next=function(){var l=this.childIterator_.next();return{value:l.done?void 0:this.mapFn_.call(void 0,l.value),done:l.done}};
var Zzi=function(l,e){return new VjR(l,e)};var ujq={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 Mxx=function(l){var e=CiS(l);if(!e)throw Error("Rd`"+l);return e},CiS=function(l){var e={};
l=String(l);var O=l.charAt(0)=="#"?l:"#"+l;if(ouq.test(O))return e.hex=OG2(O),e.type="hex",e;O=ClW(l);return O.length?(e.hex=Deg(O[0],O[1],O[2]),e.type="rgb",e):ujq&&(l=ujq[l.toLowerCase()])?(e.hex=l,e.type="named",e):null},$9H=/#(.)(.)(.)/,OG2=function(l){if(!ouq.test(l))throw Error("Td`"+l);
l.length==4&&(l=l.replace($9H,"#$1$1$2$2$3$3"));return l.toLowerCase()},Vxg=function(l){l=OG2(l);
l=parseInt(l.slice(1),16);return[l>>16,l>>8&255,l&255]},Deg=function(l,e,O){l=Number(l);
e=Number(e);O=Number(O);if(l!=(l&255)||e!=(e&255)||O!=(O&255))throw Error("Ud`"+l+"`"+e+"`"+O);e=l<<16|e<<8|O;return l<16?"#"+(16777216|e).toString(16).slice(1):"#"+e.toString(16)},ouq=/^#(?:[0-9a-f]{3}){1,2}$/i,WlR=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,ClW=function(l){var e=l.match(WlR);
if(e){l=Number(e[1]);var O=Number(e[2]);e=Number(e[3]);if(l>=0&&l<=255&&O>=0&&O<=255&&e>=0&&e<=255)return[l,O,e]}return[]};var d9R={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},TK=d9R;TK=d9R;var Yi8,guq,iz1;Yi8=function(l,e){switch(e){case 1:return l%4!=0||l%100==0&&l%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
guq=function(l,e,O,E,J){l=new Date(l,e,O);J=J||0;return l.valueOf()+(((E!==void 0?E:3)-J+7)%7-((l.getDay()+6)%7-J+7)%7)*864E5};
_.Ki=function(l,e,O){typeof l==="number"?(this.date=iz1(l,e||0,O||1),wb1(this,O||1)):_.e0(l)?(this.date=iz1(l.getFullYear(),l.getMonth(),l.getDate()),wb1(this,l.getDate())):(this.date=new Date(_.C2()),l=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),wb1(this,l))};
iz1=function(l,e,O){e=new Date(l,e,O);l>=0&&l<100&&e.setFullYear(e.getFullYear()-1900);return e};
_.X=_.Ki.prototype;_.X.firstDayOfWeek_=TK.FIRSTDAYOFWEEK;_.X.firstWeekCutOffDay_=TK.FIRSTWEEKCUTOFFDAY;_.X.clone=function(){var l=new _.Ki(this.date);l.firstDayOfWeek_=this.firstDayOfWeek_;l.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return l};
_.X.getFullYear=function(){return this.date.getFullYear()};
_.X.getYear=function(){return this.getFullYear()};
_.X.getMonth=function(){return this.date.getMonth()};
_.X.getDate=function(){return this.date.getDate()};
_.X.getTime=function(){return this.date.getTime()};
_.X.getDay=function(){return this.date.getDay()};
_.X.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.X.getUTCMonth=function(){return this.date.getUTCMonth()};
_.X.getUTCDate=function(){return this.date.getUTCDate()};
_.X.getUTCDay=function(){return this.date.getDay()};
_.X.getUTCHours=function(){return this.date.getUTCHours()};
_.X.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.X.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.X.set=function(l){this.date=new Date(l.getFullYear(),l.getMonth(),l.getDate())};
_.X.setFullYear=function(l){this.date.setFullYear(l)};
_.X.setYear=function(l){this.setFullYear(l)};
_.X.setMonth=function(l){this.date.setMonth(l)};
_.X.setDate=function(l){this.date.setDate(l)};
_.X.setTime=function(l){this.date.setTime(l)};
_.X.setUTCFullYear=function(l){this.date.setUTCFullYear(l)};
_.X.setUTCMonth=function(l){this.date.setUTCMonth(l)};
_.X.setUTCDate=function(l){this.date.setUTCDate(l)};
_.X.add=function(l){if(l.years||l.months){var e=this.getMonth()+l.months+l.years*12,O=this.getYear()+Math.floor(e/12);e%=12;e<0&&(e+=12);var E=Math.min(Yi8(O,e),this.getDate());this.setDate(1);this.setFullYear(O);this.setMonth(e);this.setDate(E)}l.days&&(O=this.getYear(),e=O>=0&&O<=99?-1900:0,l=new Date((new Date(O,this.getMonth(),this.getDate(),12)).getTime()+l.days*864E5),this.setDate(1),this.setFullYear(l.getFullYear()+e),this.setMonth(l.getMonth()),this.setDate(l.getDate()),wb1(this,l.getDate()))};
_.X.JSC$9270_toIsoString=function(l){var e=this.getFullYear(),O=e<0?"-":e>=1E4?"+":"";return[O+_.Vl(Math.abs(e),O?6:4),_.Vl(this.getMonth()+1,2),_.Vl(this.getDate(),2)].join(l?"-":"")};
_.X.equals=function(l){return!(!l||this.getYear()!=l.getYear()||this.getMonth()!=l.getMonth()||this.getDate()!=l.getDate())};
_.X.toString=function(){return this.JSC$9270_toIsoString()};
var wb1=function(l,e){l.getDate()!=e&&l.date.setUTCHours(l.date.getUTCHours()+(l.getDate()<e?1:-1))};
_.Ki.prototype.valueOf=function(){return this.date.valueOf()};var HX=function(l,e,O,E,J){this.reversed=!!e;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!O;l&&jJ(this,l,E);this.depth=J!=void 0?J:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.o_(HX,u_);var jJ=function(l,e,O,E){if(l.node=e)l.tagType=typeof O==="number"?O:l.node.nodeType!=1?0:l.reversed?-1:1;typeof E==="number"&&(l.depth=E)};
_.X=HX.prototype;_.X.JSC$9285_copyFrom=function(l){this.node=l.node;this.tagType=l.tagType;this.depth=l.depth;this.reversed=l.reversed;this.constrained=l.constrained};
_.X.clone=function(){return new HX(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.X.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return CI;var l=this.node;var e=this.reversed?-1:1;if(this.tagType==e){var O=this.reversed?l.lastChild:l.firstChild;O?jJ(this,O):jJ(this,l,e*-1)}else(O=this.reversed?l.previousSibling:l.nextSibling)?jJ(this,O):jJ(this,l.parentNode,e*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(l=this.node)?oF(l):CI};
_.X.equals=function(l){return l.node==this.node&&(!this.node||l.tagType==this.tagType)};
_.X.splice=function(l){var e=this.node,O=this.reversed?1:-1;this.tagType==O&&(this.tagType=O*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;HX.prototype.next.call(this);this.reversed=!this.reversed;O=_.SM(arguments[0])?arguments[0]:arguments;for(var E=O.length-1;E>=0;E--)_.GP(O[E],e);_.wk(e)};var Agq=function(){},cX=function(l){for(var e=[],O=l.getTextRangeCount(),E=0;E<O;E++)e.push(l.getTextRange(E));
return e};
Agq.prototype.isReversed=function(){return!1};
Agq.prototype.getWindow=function(){return jB(_.HR(this.JSC$9287_getStartNode()))};
var nuS=function(l,e){HX.call(this,l,e,!0)};
_.o_(nuS,HX);var Fs=function(l,e,O,E,J){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!J;if(l){this.startNode_=l;this.startOffset_=e;this.endNode_=O;this.endOffset_=E;if(l.nodeType==1&&l.tagName!="BR")if(l=l.childNodes,e=l[e])this.startNode_=e,this.startOffset_=0;else{l.length&&(this.startNode_=_.sp(l));var z=!0}O.nodeType==1&&((this.endNode_=O.childNodes[E])?this.endOffset_=0:this.endNode_=O)}HX.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);z&&this.next()};
_.o_(Fs,nuS);_.X=Fs.prototype;_.X.JSC$9293_getStartNode=function(){return this.startNode_};
_.X.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)};
_.X.next=function(){return this.isLast()?CI:Fs.superClass_.next.call(this)};
_.X.JSC$9285_copyFrom=function(l){this.startNode_=l.startNode_;this.endNode_=l.endNode_;this.startOffset_=l.startOffset_;this.endOffset_=l.endOffset_;this.isReversed_=l.isReversed_;Fs.superClass_.JSC$9285_copyFrom.call(this,l)};
_.X.clone=function(){var l=new Fs(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);l.JSC$9285_copyFrom(this);return l};var aGS=function(){};
aGS.prototype.__iterator__=function(){return new Fs(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Rt=function(l){this.range_=l};
_.o_(Rt,aGS);var k9C=function(l){var e=_.HR(l).createRange();if(l.nodeType==3)e.setStart(l,0),e.setEnd(l,l.length);else if(RI(l)||l.nodeType==3){for(var O,E=l;(O=E.firstChild)&&(RI(O)||O.nodeType==3);)E=O;e.setStart(E,0);for(E=l;(O=E.lastChild)&&(RI(O)||O.nodeType==3);)E=O;e.setEnd(E,E.nodeType==1?E.childNodes.length:E.length)}else O=l.parentNode,l=Array.prototype.indexOf.call(O.childNodes,l),e.setStart(O,l),e.setEnd(O,l+1);return e},IGx=function(l,e,O,E){var J=_.HR(l).createRange();
J.setStart(l,e);J.setEnd(O,E);return J};
_.X=Rt.prototype;_.X.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.X.getContainer=function(){return this.range_.commonAncestorContainer};
_.X.compareBrowserRangeEndpoints=function(l,e,O){return this.range_.compareBoundaryPoints(O==1?e==1?_.Op.Range.START_TO_START:_.Op.Range.START_TO_END:e==1?_.Op.Range.END_TO_START:_.Op.Range.END_TO_END,l)};
_.X.isCollapsed=function(){return this.range_.collapsed};
_.X.select=function(l){this.selectInternal(jB(_.HR(this.range_.startContainer)).getSelection(),l)};
_.X.selectInternal=function(l){l.removeAllRanges();l.addRange(this.range_)};
_.X.insertNode=function(l,e){var O=this.range_.cloneRange();O.collapse(e);O.insertNode(l);O.detach();return l};
_.X.collapse=function(l){this.range_.collapse(l)};_.o_(Md,Rt);Md.prototype.selectInternal=function(l,e){!e||this.isCollapsed()?Md.superClass_.selectInternal.call(this,l,e):(l.collapse(this.range_.endContainer,this.range_.endOffset),l.extend(this.range_.startContainer,this.range_.startOffset))};_.o_(Vf,Rt);Vf.prototype.compareBrowserRangeEndpoints=function(l,e,O){return Vf.superClass_.compareBrowserRangeEndpoints.call(this,l,e,O)};
Vf.prototype.selectInternal=function(l,e){e?l.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):l.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var m9q=function(l){return _.ws?new Vf(l):_.iv?new Md(l):new Rt(l)};var Tx=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},ygx;
_.o_(Tx,Agq);ygx=function(l,e){var O=new Tx;O.browserRangeWrapper_=l;O.isReversed_=!!e;return O};
_.pbF=function(l){l=_.ws?new Vf(k9C(l)):_.iv?new Md(k9C(l)):new Rt(k9C(l));return ygx(l)};
_.sf=function(l,e,O,E){var J=new Tx;J.isReversed_=KlC(l,e,O,E);if(_.JG(l)&&!RI(l)){var z=l.parentNode;e=Array.prototype.indexOf.call(z.childNodes,l);l=z}_.JG(O)&&!RI(O)&&(z=O.parentNode,E=Array.prototype.indexOf.call(z.childNodes,O),O=z);J.isReversed_?(J.startNode_=O,J.startOffset_=E,J.endNode_=l,J.endOffset_=e):(J.startNode_=l,J.startOffset_=e,J.endNode_=O,J.endOffset_=E);return J};
_.X=Tx.prototype;_.X.clone=function(){var l=new Tx;l.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();l.startNode_=this.startNode_;l.startOffset_=this.startOffset_;l.endNode_=this.endNode_;l.endOffset_=this.endOffset_;l.isReversed_=this.isReversed_;return l};
_.X.JSC$9287_getType=function(){return"text"};
_.X.getBrowserRangeObject=function(){return Gx(this).range_};
_.X.getTextRangeCount=function(){return 1};
_.X.getTextRange=function(){return this};
var Gx=function(l){var e;if(!(e=l.browserRangeWrapper_)){e=l.JSC$9287_getStartNode();var O=l.JSC$9287_getStartOffset(),E=l.JSC$9287_getEndNode(),J=l.JSC$9287_getEndOffset();e=_.ws?new Vf(IGx(e,O,E,J)):_.iv?new Md(IGx(e,O,E,J)):new Rt(IGx(e,O,E,J));e=l.browserRangeWrapper_=e}return e};
_.X=Tx.prototype;_.X.getContainer=function(){return Gx(this).getContainer()};
_.X.JSC$9287_getStartNode=function(){return this.startNode_||(this.startNode_=Gx(this).range_.startContainer)};
_.X.JSC$9287_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Gx(this).range_.startOffset};
_.X.JSC$9287_getEndNode=function(){return this.endNode_||(this.endNode_=Gx(this).range_.endContainer)};
_.X.JSC$9287_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Gx(this).range_.endOffset};
_.X.isReversed=function(){return this.isReversed_};
_.X.JSC$9287_containsRange=function(l,e){if(l.JSC$9287_getType()=="text"){var O=Gx(this);l=Gx(l);e=e&&!l.isCollapsed();l=l.range_;O=e?O.compareBrowserRangeEndpoints(l,0,1)>=0&&O.compareBrowserRangeEndpoints(l,1,0)<=0:O.compareBrowserRangeEndpoints(l,0,0)>=0&&O.compareBrowserRangeEndpoints(l,1,1)<=0}else O=!1;return O};
_.X.isCollapsed=function(){return Gx(this).isCollapsed()};
_.X.JSC$9287_getText=function(){return Gx(this).range_.toString()};
_.X.__iterator__=function(){return new Fs(this.JSC$9287_getStartNode(),this.JSC$9287_getStartOffset(),this.JSC$9287_getEndNode(),this.JSC$9287_getEndOffset())};
_.X.select=function(){Gx(this).select(this.isReversed_)};
_.X.JSC$9287_removeContents=function(){var l=Gx(this).range_;l.extractContents();if(l.startContainer.hasChildNodes()&&(l=l.startContainer.childNodes[l.startOffset])){var e=l.previousSibling;bRx(l)==""&&_.wk(l);e&&bRx(e)==""&&_.wk(e)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.X.insertNode=function(l,e){l=Gx(this).insertNode(l,e);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return l};
_.X.collapse=function(l){l=this.isReversed()?!l:l;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(l);l?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var jpC=function(){};
_.o_(jpC,Agq);jpC.prototype.JSC$9287_containsRange=function(l,e){var O=cX(this);l=cX(l);return(e?eU:_.SdT)(l,function(E){return eU(O,function(J){return J.JSC$9287_containsRange(E,e)})})};
jpC.prototype.insertNode=function(l,e){e?_.s8(l,this.JSC$9287_getStartNode()):_.GP(l,this.JSC$9287_getEndNode());return l};var HzC,cgk=WR().JSC$7363_document_.documentElement;HzC=cgk.requestFullscreen?"fullscreenchange":cgk.webkitRequestFullscreen?"webkitfullscreenchange":cgk.mozRequestFullScreen?"mozfullscreenchange":cgk.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Flq=function(){var l=WR().JSC$7363_document_;return!!(l.webkitIsFullScreen||l.mozFullScreen||l.msFullscreenElement||l.fullscreenElement)};var BX=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.o_(BX,jpC);_.X=BX.prototype;_.X.clone=function(){var l=new BX;l.browserRanges_=_.rT(this.browserRanges_);return l};
_.X.JSC$9287_getType=function(){return"mutli"};
_.X.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.X.getTextRangeCount=function(){return this.browserRanges_.length};
_.X.getTextRange=function(l){this.ranges_[l]||(this.ranges_[l]=ygx(m9q(this.browserRanges_[l])));return this.ranges_[l]};
_.X.getContainer=function(){if(!this.container_){for(var l=[],e=this.getTextRangeCount(),O=0;O<e;O++)l.push(this.getTextRange(O).getContainer());this.container_=lSC.apply(null,l)}return this.container_};
var PX=function(l){l.sortedRanges_||(l.sortedRanges_=cX(l),l.sortedRanges_.sort(function(e,O){var E=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();var J=O.JSC$9287_getStartNode();O=O.JSC$9287_getStartOffset();return E==J&&e==O?0:KlC(E,e,J,O)?1:-1}));
return l.sortedRanges_};
_.X=BX.prototype;_.X.JSC$9287_getStartNode=function(){return PX(this)[0].JSC$9287_getStartNode()};
_.X.JSC$9287_getStartOffset=function(){return PX(this)[0].JSC$9287_getStartOffset()};
_.X.JSC$9287_getEndNode=function(){return _.sp(PX(this)).JSC$9287_getEndNode()};
_.X.JSC$9287_getEndOffset=function(){return _.sp(PX(this)).JSC$9287_getEndOffset()};
_.X.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.X.JSC$9287_getText=function(){return cX(this).map(function(l){return l.JSC$9287_getText()}).join("")};
_.X.__iterator__=function(){return new Uf(this)};
_.X.select=function(){var l=this.getWindow().getSelection();l.removeAllRanges();for(var e=this.getTextRangeCount(),O=0;O<e;O++)l.addRange(this.getTextRange(O).getBrowserRangeObject())};
_.X.JSC$9287_removeContents=function(){cX(this).forEach(function(l){l.JSC$9287_removeContents()})};
_.X.collapse=function(l){if(!this.isCollapsed()){var e=l?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;e.collapse(l);this.ranges_=[e];this.sortedRanges_=[e];this.browserRanges_=[e.getBrowserRangeObject()]}};
var Uf=function(l){this.iterators_=null;this.currentIdx_=0;l&&(this.iterators_=PX(l).map(function(e){return _.Ss6(e)}));
HX.call(this,l?this.JSC$9293_getStartNode():null,!1,!0)};
_.o_(Uf,nuS);_.X=Uf.prototype;_.X.JSC$9293_getStartNode=function(){return this.iterators_[0].JSC$9293_getStartNode()};
_.X.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.X.next=function(){for(;this.currentIdx_<this.iterators_.length;){var l=this.iterators_[this.currentIdx_],e=l.next();if(e.done)this.currentIdx_++;else return jJ(this,l.node,l.tagType,l.depth),e}return CI};
_.X.JSC$9285_copyFrom=function(l){this.iterators_=_.rT(l.iterators_);Uf.superClass_.JSC$9285_copyFrom.call(this,l)};
_.X.clone=function(){var l=new Uf(null);l.JSC$9285_copyFrom(this);return l};var fG1,KlC;_.H1=function(){var l=window.getSelection();return l&&fG1(l)};
fG1=function(l){var e=!1;if(l.createRange)try{var O=l.createRange()}catch(J){return null}else if(l.rangeCount){if(l.rangeCount>1){O=new BX;e=l.rangeCount;for(var E=0;E<e;E++)O.browserRanges_.push(l.getRangeAt(E));return O}O=l.getRangeAt(0);e=KlC(l.anchorNode,l.anchorOffset,l.focusNode,l.focusOffset)}else return null;return ygx(m9q(O),e)};
_.Yn=function(l,e){return _.sf(l,e,l,e)};
_.hH=function(l,e,O,E){return _.sf(l,e,O,E)};
KlC=function(l,e,O,E){if(l==O)return E<e;var J;if(l.nodeType==1&&e)if(J=l.childNodes[e])l=J,e=0;else if(_.qh(l,O))return!0;if(O.nodeType==1&&E)if(J=O.childNodes[E])O=J,E=0;else if(_.qh(O,l))return!1;return(xAC(l,O)||e-E)>0};var Li=function(){_.Kx.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.pb)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.pb)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.pb)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.pb)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.pb)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.pb)(this.dispatchProgressEvent_,this)};
_.o_(Li,_.Kx);Li.prototype.abort=function(){try{this.reader_.abort()}catch(l){throw new lh1(l,"aborting read");}};
Li.prototype.getError=function(){return this.reader_.error&&new lh1(this.reader_.error,"reading file")};
Li.prototype.dispatchProgressEvent_=function(l){this.dispatchEvent(new ed1(l,this))};
Li.prototype.disposeInternal=function(){Li.superClass_.disposeInternal.call(this);delete this.reader_};
var TQF=function(l){var e=new Li,O=RUC(e);e.reader_.readAsArrayBuffer(l);return O},sp0=function(l){var e=new Li,O=RUC(e);
e.reader_.readAsDataURL(l);return O},RUC=function(l){var e=new Qw;
l.listen("loadend",_.pz(function(O,E){var J=E.reader_.result,z=E.getError();J==null||z?O.errback(z):O.callback(J);E.dispose()},e,l));
return e};var tH=function(){_.Kx.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9327_eventHandler_=new _.ue(this);this.JSC$9327_isInitialized_=!1};
_.o_(tH,_.Kx);var G9x=new _.aa("d"),BQx=new _.aa("beforedragstart"),PiS=new _.aa("dragstart"),U91=new _.aa("beforedragmove"),YGq=new _.aa("dragmove"),hUi=new _.aa("beforedragend"),Llq=new _.aa("dragend"),tj0=new _.aa("e");tH.prototype.isDragging=function(){return!!this.JSC$9327_dragger_};
var qG0=function(l,e){e.dlgGrowthDirection_=0;e.dlgDragHoverClass_=void 0;e.dlgDragPermission=0;l.dragLists_.push(e)},vuF=function(l,e){l.getHandleForDragItem_=e};
tH.prototype.init=function(){if(!this.JSC$9327_isInitialized_){for(var l=this.dragLists_.length,e=0;e<l;e++)for(var O=_.BY(this.dragLists_[e]),E=O.length,J=0;J<E;++J){var z=O[J],M=this.getHandleForDragItem_(z),Z=_.Ox(M);this.dragItemForHandle_[Z]=z;this.dragItemHoverClasses_&&(this.JSC$9327_eventHandler_.listen(z,"mouseover",this.handleDragItemMouseover_),this.JSC$9327_eventHandler_.listen(z,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9327_eventHandler_.listen(M,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9327_eventHandler_.listen(M,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(z);this.JSC$9327_eventHandler_.listen(M,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9327_isInitialized_=!0}};
tH.prototype.disposeInternal=function(){this.JSC$9327_eventHandler_.dispose();for(var l=this.dragLists_.length,e=0;e<l;e++){var O=this.dragLists_[e];O.dlgGrowthDirection_=void 0;O.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;NQC(this);tH.superClass_.disposeInternal.call(this)};
var rg0=function(l,e){for(var O=l.dragLists_.length,E=0;E<O;E++){var J=l.dragLists_[E];J.dlgBounds_=j2x(J)}O=l.dragItems_.length;for(E=0;E<O;E++)J=l.dragItems_[E],J!=e&&(J.dlgBounds_=j2x(J))};
_.X=tH.prototype;
_.X.handlePotentialDragStart_=function(l){var e=_.Ox(l.currentTarget);e=this.dragItemForHandle_[e];if(e.parentElement.dlgDragPermission!=2){this.currDragItem_=e;a:{e=this.currDragItem_;for(var O=e.cloneNode(!0),E=nb("TEXTAREA",e),J=nb("TEXTAREA",O),z=0;z<E.length;z++)J[z].value=E[z].value;switch(e.tagName){case "TR":e=_.FD("TABLE",null,_.FD("TBODY",null,O));break a;case "TD":case "TH":e=_.FD("TABLE",null,_.FD("TBODY",null,_.FD("TR",null,O)));break a;case "TEXTAREA":O.value=e.value;default:e=O;break a}e=
void 0}this.draggerEl_=e;this.draggerElClasses_&&Dg(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.HR(this.currDragItem_).body.appendChild(this.draggerEl_);O=_.Fe(this.currDragItem_);e=this.draggerEl_;E=_.Fe(e);if(O instanceof _.KF){var M=O.y;O=O.x}L3(e,e.offsetLeft+(O-E.x),e.offsetTop+(Number(M)-E.y));this.JSC$9327_dragger_=new _.h6(this.draggerEl_);_.xaC(this.JSC$9327_dragger_,this.hysteresisDistance_);
_.f4(this.JSC$9327_dragger_,"start",this.handleDragStart_,!1,this);_.f4(this.JSC$9327_dragger_,"end",this.handleDragEnd_,!1,this);_.f4(this.JSC$9327_dragger_,"earlycancel",this.JSC$9329_cleanup_,!1,this);this.dispatchEvent(new qB(G9x,this,l,this.currDragItem_,this.draggerEl_,this.JSC$9327_dragger_));this.JSC$9327_dragger_.startDrag(l)}};
_.X.handleDragStart_=function(l){if(this.dispatchEvent(new qB(BQx,this,l.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.DAS(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Dg(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var e=oqS(this.draggerEl_);this.draggerEl_.halfWidth=e.width/2;this.draggerEl_.halfHeight=e.height/2;e=this.draggerEl_.getBoundingClientRect();
var O=l.clientY,E=lB1(this.JSC$9327_dragger_,l.clientX);if(E>e.right){var J=this.currDragItem_.getBoundingClientRect();this.JSC$9327_dragger_.deltaX=E-(E-J.left)/J.width*e.width}O=eTk(this.JSC$9327_dragger_,O);O>e.bottom&&(this.JSC$9327_dragger_.deltaY+=O-e.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";rg0(this,this.currDragItem_);this.currDragItem_.style.display="";_.f4(this.JSC$9327_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new qB(PiS,
this,l.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9327_dragger_))}else l.preventDefault(),this.JSC$9329_cleanup_()};
_.X.handleDragMove_=function(l){var e=_.Fe(this.draggerEl_);e=new _.KF(e.x+this.draggerEl_.halfWidth,e.y+this.draggerEl_.halfHeight);a:{var O=null;if(this.currDragItem_.style.display!="none"){O=this.currDragItem_.parentNode;var E=j2x(O);if(D9x(e,E))break a}E=this.dragLists_.length;for(var J=0;J<E;J++){var z=this.dragLists_[J];if(z!=O&&D9x(e,z.dlgBounds_)){O=z;break a}}O=null}if(O){if(O==null)throw Error("Vd");E=0;J=!1;z=void 0;switch(O.dlgGrowthDirection_){case 0:E=e.y;var M=SGS;var Z=Qp0;break;case 4:J=
!0;case 2:E=e.x;M=x9H;Z=Qp0;break;case 5:J=!0;case 3:E=e.x,M=lrq,Z=e7S}for(var u=null,d,g=_.BY(O),w=g.length,n=0;n<w;n++){var k=g[n];if(k!=this.currDragItem_){var y=M(k.dlgBounds_);if(J){var c=OOR(k,e);z===void 0&&(z=c);Z(E,y)&&(d==void 0||c<z||c==z&&(Z(y,d)||y==d))&&(u=k,d=y);c<z&&(z=c)}else Z(E,y)&&(d==void 0||Z(y,d))&&(u=k,d=y)}}M=u!==null&&OOR(u,e)>z?null:u}else M=null;if(!this.dispatchEvent(new qB(U91,this,l,this.currDragItem_,this.draggerEl_,this.JSC$9327_dragger_,e,O,M)))return!1;if(O&&O.dlgDragPermission!=
1)this.currDragItem_.parentNode==O&&_.DAS(this.currDragItem_)==M||O.insertBefore(this.currDragItem_,M),this.currDragItem_.style.display="",O.dlgDragHoverClass_&&_.XY(O,O.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",Z=this.dragLists_.length,d=0;d<Z;d++)E=this.dragLists_[d],E.dlgDragHoverClass_&&_.EL(E,E.dlgDragHoverClass_);O!=this.currHoverList_&&(this.currHoverList_=O,rg0(this,this.currDragItem_));this.dispatchEvent(new qB(YGq,this,l,this.currDragItem_,this.draggerEl_,this.JSC$9327_dragger_,
e,O,M));return!1};
_.X.JSC$9329_cleanup_=function(){NQC(this);this.JSC$9327_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var l=this.dragLists_.length,e=0;e<l;e++)this.dragLists_[e].dlgBounds_=null;l=this.dragItems_.length;for(e=0;e<l;e++)this.dragItems_[e].dlgBounds_=null};
_.X.handleDragEnd_=function(l){if(!this.dispatchEvent(new qB(hUi,this,l,this.currDragItem_,this.draggerEl_,this.JSC$9327_dragger_)))return!1;NQC(this);this.dispatchEvent(new qB(Llq,this,l,this.currDragItem_,this.draggerEl_,this.JSC$9327_dragger_));this.JSC$9329_cleanup_();return!0};
var NQC=function(l){_.Q9(l.JSC$9327_dragger_);var e=l.draggerEl_&&l.draggerEl_.parentElement;l.draggerEl_&&_.wk(l.draggerEl_);l.currDragItem_&&l.currDragItem_.style.display=="none"&&(l.origList_.insertBefore(l.currDragItem_,l.origNextItem_),l.currDragItem_.style.display="");l.currDragItemClasses_&&l.currDragItem_?xR1(l.currDragItem_,l.currDragItemClasses_||[]):l.currDragItem_&&(l.currDragItem_.style.visibility="");for(var O=l.dragLists_.length,E=0;E<O;E++){var J=l.dragLists_[E];J.dlgDragHoverClass_&&
_.EL(J,J.dlgDragHoverClass_)}e&&l.dispatchEvent(new qB(tj0,l,null,l.currDragItem_,l.draggerEl_,l.JSC$9327_dragger_))};
_.X=tH.prototype;_.X.getHandleForDragItem_=function(l){return l};
_.X.handleDragItemMouseover_=function(l){Dg(l.currentTarget,this.dragItemHoverClasses_||[])};
_.X.handleDragItemMouseout_=function(l){xR1(l.currentTarget,this.dragItemHoverClasses_||[])};
_.X.handleDragItemHandleMouseover_=function(l){Dg(l.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.X.handleDragItemHandleMouseout_=function(l){xR1(l.currentTarget,this.dragItemHandleHoverClasses_||[])};
var D9x=function(l,e){return l.x>e.left&&l.x<e.left+e.width&&l.y>e.top&&l.y<e.top+e.height},OOR=function(l,e){l=l.dlgBounds_;
return Math.abs(e.y-(l.top+(l.height-1)/2))},SGS=function(l){return l.top+l.height-1},x9H=function(l){return l.left+l.width-1},lrq=function(l){return l.left||0},Qp0=function(l,e){return l<e},e7S=function(l,e){return l>e},qB=function(l,e,O,E,J,z){_.k$.call(this,l);
this.event=O;this.currDragItem=E;this.draggerEl=J;this.JSC$9331_dragger=z};
_.o_(qB,_.k$);_.o_(C_,_.y6);var EpF=new _.KF(0,0);C_.prototype.JSC$9335_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
C_.prototype.JSC$9335_onMouseMove=function(l){var e=this.containerIsActuallyContent_?EpF:$S(WR(this.containerNode_)),O=this.horizontalScrolling_?this.calculateScrollDelta(l.clientX+e.x,this.scrollBounds_.left,this.scrollBounds_.width):0,E=this.calculateScrollDelta(l.clientY+e.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=O;this.scrollDelta_.y=E;!(O=!O&&!E)&&(O=this.constrainScroll_)&&(O=l.clientX+e.x,l=l.clientY+e.y,e=this.containerBounds_,O=!(e.left<=O&&e.left+e.width>=
O&&e.top<=l&&e.top+e.height>=l));O?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
C_.prototype.calculateScrollDelta=function(l,e,O){var E=0;l<e?E=-8:l>e+O&&(E=8);return E};
C_.prototype.disposeInternal=function(){C_.superClass_.disposeInternal.call(this);this.JSC$9333_eventHandler_.dispose();this.scrollTimer_.dispose()};var JYS={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"}}},vX=JYS;vX=JYS;var NB={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 Xt0=function(){},Dr=function(l){if(typeof l=="number"){var e=new Xt0;
e.standardOffset_=l;var O=l;if(O==0)O="Etc/GMT";else{var E=["Etc/GMT",O<0?"-":"+"];O=Math.abs(O);E.push(Math.floor(O/60)%100);O%=60;O!=0&&E.push(":",_.Vl(O,2));O=E.join("")}e.timeZoneId_=O;O=l;O==0?O="UTC":(E=["UTC",O<0?"+":"-"],O=Math.abs(O),E.push(Math.floor(O/60)%100),O%=60,O!=0&&E.push(":",O),O=E.join(""));l=z70(l);e.tzNames_=[O,O];e.tzNamesExt_={STD_LONG_NAME_GMT:l,STD_GENERIC_LOCATION:l};e.transitions_=[];return e}e=new Xt0;e.timeZoneId_=l.id;e.standardOffset_=-l.std_offset;e.tzNames_=l.names;
e.tzNamesExt_=l.names_ext;e.transitions_=l.transitions;return e},z70=function(l){var e=["GMT"];
e.push(l<=0?"+":"-");l=Math.abs(l);e.push(_.Vl(Math.floor(l/60)%100,2),":",_.Vl(l%60,2));return e.join("")},bOq=function(l,e){e=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes())/36E5;
for(var O=0;O<l.transitions_.length&&e>=l.transitions_[O];)O+=2;return O==0?0:l.transitions_[O-1]},MoF=function(l,e){l=l.standardOffset_-bOq(l,e);
return l===-1440?0:l};var So=function(l,e){this.patternParts_=[];this.JSC$9346_dateTimeSymbols_=e||TK;typeof l=="number"?Vo1(this,l):ZOS(this,l)},u$1=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],rI=function(l){return l.getHours?l.getHours():0},ZOS=function(l,e){for(S1t&&(e=e.replace(/\u200f/g,""));e;){for(var O=e,E=0;E<u$1.length;++E){var J=e.match(u$1[E]);
if(J){var z=J[0];e=e.substring(z.length);E==0&&(z=="''"?z="'":(z=z.substring(1,J[1]=="'"?z.length-1:z.length),z=z.replace(/''/g,"'")));l.patternParts_.push({text:z,type:E});break}}if(O===e)throw Error("Wd`"+e);}};
So.prototype.format=function(l,e){if(!l)throw Error("Xd");var O=e?(l.getTimezoneOffset()-MoF(e,l))*6E4:0,E=O?new Date(l.getTime()+O):l,J=E;e&&E.getTimezoneOffset()!=l.getTimezoneOffset()&&(E=new Date(E.getTime()+(E.getTimezoneOffset()-l.getTimezoneOffset())*6E4),J=new Date(l.getTime()+(O+(O>0?-864E5:864E5))));O=[];for(var z=0;z<this.patternParts_.length;++z){var M=this.patternParts_[z].text;1==this.patternParts_[z].type?O.push(CHk(this,M,l,E,J,e)):O.push(M)}return O.join("")};
var Vo1=function(l,e){if(e<4)var O=l.JSC$9346_dateTimeSymbols_.DATEFORMATS[e];else if(e<8)O=l.JSC$9346_dateTimeSymbols_.TIMEFORMATS[e-4];else if(e<12)O=l.JSC$9346_dateTimeSymbols_.DATETIMEFORMATS[e-8],O=O.replace("{1}",l.JSC$9346_dateTimeSymbols_.DATEFORMATS[e-8]),O=O.replace("{0}",l.JSC$9346_dateTimeSymbols_.TIMEFORMATS[e-8]);else if(e===12)O=l.JSC$9346_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(e===13)O=l.JSC$9346_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Vo1(l,10);return}ZOS(l,O)},D3=function(l,e){e=String(e);
l=l.JSC$9346_dateTimeSymbols_||TK;if(l.ZERODIGIT!==void 0&&!DSA){for(var O=[],E=0;E<e.length;E++){var J=e.charCodeAt(E);O.push(48<=J&&J<=57?String.fromCharCode(l.ZERODIGIT+J-48):e.charAt(E))}e=O.join("")}return e},DSA=!1,S1t=!1,$uk=function(l,e,O,E){O=O.getFullYear();
O<=0&&E&&(O=1-O);return D3(l,op0(O,e))},op0=function(l,e){e==2&&(l%=100);
l<0&&e++;return _.Vl(l,e)},SJ=function(l){if(!(l.getHours&&l.getSeconds&&l.getMinutes))throw Error("Yd");
},Wc1=function(l,e){SJ(e);
e=rI(e);return l.JSC$9346_dateTimeSymbols_.AMPMS[e>=12&&e<24?1:0]},CHk=function(l,e,O,E,J,z){var M=e.length;
switch(e.charAt(0)){case "G":return O=E.getFullYear()>0?1:0,M>=4?l.JSC$9346_dateTimeSymbols_.ERANAMES[O]:l.JSC$9346_dateTimeSymbols_.ERAS[O];case "y":return $uk(l,M,E,!0);case "Y":return O=(new Date(guq(E.getFullYear(),E.getMonth(),E.getDate(),l.JSC$9346_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,l.JSC$9346_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),M==2&&(O%=100),D3(l,op0(O,M));case "u":return $uk(l,M,E,!1);case "M":a:switch(O=E.getMonth(),M){case 5:M=l.JSC$9346_dateTimeSymbols_.NARROWMONTHS[O];break a;
case 4:M=l.JSC$9346_dateTimeSymbols_.MONTHS[O];break a;case 3:M=l.JSC$9346_dateTimeSymbols_.SHORTMONTHS[O];break a;default:M=D3(l,_.Vl(O+1,M))}return M;case "k":return SJ(J),D3(l,_.Vl(rI(J)||24,M));case "S":return D3(l,(J.getMilliseconds()/1E3).toFixed(Math.min(3,M)).slice(2)+(M>3?_.Vl(0,M-3):""));case "E":return O=E.getDay(),M>=4?l.JSC$9346_dateTimeSymbols_.WEEKDAYS[O]:l.JSC$9346_dateTimeSymbols_.SHORTWEEKDAYS[O];case "a":return Wc1(l,J);case "b":return Wc1(l,J);case "B":return Wc1(l,J);case "h":return SJ(J),
D3(l,_.Vl(rI(J)%12||12,M));case "K":return SJ(J),D3(l,_.Vl(rI(J)%12,M));case "H":return SJ(J),D3(l,_.Vl(rI(J),M));case "c":a:switch(O=E.getDay(),M){case 5:M=l.JSC$9346_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[O];break a;case 4:M=l.JSC$9346_dateTimeSymbols_.STANDALONEWEEKDAYS[O];break a;case 3:M=l.JSC$9346_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[O];break a;default:M=D3(l,_.Vl(O,1))}return M;case "L":a:switch(O=E.getMonth(),M){case 5:M=l.JSC$9346_dateTimeSymbols_.STANDALONENARROWMONTHS[O];break a;
case 4:M=l.JSC$9346_dateTimeSymbols_.STANDALONEMONTHS[O];break a;case 3:M=l.JSC$9346_dateTimeSymbols_.STANDALONESHORTMONTHS[O];break a;default:M=D3(l,_.Vl(O+1,M))}return M;case "Q":return O=Math.floor(E.getMonth()/3),M<4?l.JSC$9346_dateTimeSymbols_.SHORTQUARTERS[O]:l.JSC$9346_dateTimeSymbols_.QUARTERS[O];case "d":return D3(l,_.Vl(E.getDate(),M));case "m":return SJ(J),D3(l,_.Vl(J.getMinutes?J.getMinutes():0,M));case "s":return SJ(J),D3(l,_.Vl(J.getSeconds(),M));case "v":return(z||Dr(O.getTimezoneOffset())).timeZoneId_;
case "V":return l=z||Dr(O.getTimezoneOffset()),M<=2?l.timeZoneId_:bOq(l,O)>0?l.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?l.tzNamesExt_.DST_GENERIC_LOCATION:l.tzNamesExt_.DST_GENERIC_LOCATION:l.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?l.tzNamesExt_.STD_GENERIC_LOCATION:l.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return O=guq(J.getFullYear(),J.getMonth(),J.getDate(),l.JSC$9346_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,l.JSC$9346_dateTimeSymbols_.FIRSTDAYOFWEEK),D3(l,_.Vl(Math.floor(Math.round((O-(new Date((new Date(O)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,M));case "z":return l=z||Dr(O.getTimezoneOffset()),M<4?l.tzNames_[bOq(l,O)>0?2:0]:l.tzNames_[bOq(l,O)>0?3:1];case "Z":return e=z||Dr(O.getTimezoneOffset()),M<4?(M=-MoF(e,O),l=[M<0?"-":"+"],M=Math.abs(M),l.push(_.Vl(Math.floor(M/60)%100,2),_.Vl(M%60,2)),M=l.join("")):M=D3(l,z70(MoF(e,O))),M;default:return""}};var duq=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,gpx=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,o28=function(l){this.patternParts_=[];this.JSC$9355_dateTimeSymbols_=TK;if(typeof l=="number"){l>11&&(l=10);if(l<4)var e=this.JSC$9355_dateTimeSymbols_.DATEFORMATS[l];else l<8?e=this.JSC$9355_dateTimeSymbols_.TIMEFORMATS[l-4]:(e=this.JSC$9355_dateTimeSymbols_.DATETIMEFORMATS[l-8],e=e.replace("{1}",this.JSC$9355_dateTimeSymbols_.DATEFORMATS[l-8]),e=e.replace("{0}",this.JSC$9355_dateTimeSymbols_.TIMEFORMATS[l-
8]));iOS(this,e)}else iOS(this,l)},iOS=function(l,e){for(var O=!1,E="",J=0;J<e.length;J++){var z=e.charAt(J);
if(duq.test(z))for(E.length>0&&(l.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1}),E=""),l.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});J<e.length-1&&e.charAt(J+1)==" ";)J++;else if(O)z=="'"?J+1<e.length&&e.charAt(J+1)=="'"?(E+="'",J++):O=!1:E+=z;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(z)>=0){E.length>0&&(l.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1}),E="");for(var M=e.charAt(J),Z=J+1;Z<e.length&&e.charAt(Z)==M;)Z++;M=Z-J;M<=0?Z=!1:(Z="MydhHmsSDkK".indexOf(z),
Z=Z>0||Z==0&&M<3);l.patternParts_.push({text:z,count:M,abutStart:!1,numeric:Z});J+=M-1}else z=="'"?J+1<e.length&&e.charAt(J+1)=="'"?(E+="'",J++):O=!0:E+=z}E.length>0&&l.patternParts_.push({text:E,count:0,abutStart:!1,numeric:!1});e=!1;for(O=0;O<l.patternParts_.length;O++)l.patternParts_[O].numeric?!e&&O+1<l.patternParts_.length&&l.patternParts_[O+1].numeric&&(e=!0,l.patternParts_[O].abutStart=!0):e=!1};
o28.prototype.parse=function(l,e,O){var E=!1,J=!1;O&&(E=O.predictive||!1,J=O.validate||!1);if(E)for(O=0;O<this.patternParts_.length;O++){var z=this.patternParts_[O];if(z.count>0&&("abBhHkKm".indexOf(z.text.charAt(0))<0||z.count>2||z.abutStart))throw Error("Zd`"+z.text.charAt(0));}z=new wtS;O=[0];z.dayPeriodIndex=-1;for(var M=0;M<this.patternParts_.length&&!(E&&O[0]>=l.length);M++){if(this.patternParts_[M].count==0){a:{var Z=l;var u=O,d=this.patternParts_[M],g=E;if(d.text.match(duq)!=null){if(d=u[0],
AYq(Z,u),u[0]>d){Z=!0;break a}}else{if(Z.indexOf(d.text,u[0])==u[0]){u[0]+=d.text.length;Z=!0;break a}if(g&&d.text.indexOf(Z.substring(u[0]))==0){u[0]+=Z.length-u[0];Z=!0;break a}}Z=!1}if(Z)continue;return 0}if(this.patternParts_[M].abutStart){a:{u=l;d=O;g=M;var w=d[0],n=0;for(Z=g;Z<this.patternParts_.length;Z++){var k=this.patternParts_[Z],y=k.count;if(y===0)break;if(Z==g&&(y-=n,n++,y==0)){Z=0;break a}var c=Z>g&&k.numeric,f=d[0];if(!npq(this,u,d,k,y,z,!1)||c&&d[0]-f<y)Z=g-1,d[0]=w}Z-=g}if(Z<=0)return 0;
M+=Z-1}else if(!npq(this,l,O,this.patternParts_[M],0,z,E))return 0}a:{l=J;if(e==null)throw Error("$d");z.era!=void 0&&z.year!=void 0&&z.era==0&&z.year>0&&(z.year=-(z.year-1));z.year!=void 0&&e.setFullYear(z.year);E=e.getDate();e.setDate(1);z.month!=void 0&&e.setMonth(z.month);z.day!=void 0?e.setDate(z.day):(J=Yi8(e.getFullYear(),e.getMonth()),e.setDate(E>J?J:E));typeof e.setHours==="function"&&(z.hours==void 0&&(z.hours=e.getHours()),z.hours<12&&(z.ampm!=void 0&&z.ampm>0?z.hours+=12:z.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(z.dayPeriodName)||["night1","night2"].includes(z.dayPeriodName)&&z.hours>=6)&&(z.hours+=12)),e.setHours(z.hours));typeof e.setMinutes==="function"&&z.minutes!=void 0&&e.setMinutes(z.minutes);typeof e.setSeconds==="function"&&z.seconds!=void 0&&e.setSeconds(z.seconds);typeof e.setMilliseconds==="function"&&z.milliseconds!=void 0&&e.setMilliseconds(z.milliseconds);if(l&&(z.year&&z.year!=e.getFullYear()||z.month&&z.month!=
e.getMonth()||z.day&&z.day!=e.getDate()||z.hours&&z.hours>=24||z.minutes&&z.minutes>=60||z.seconds&&z.seconds>=60||z.milliseconds&&z.milliseconds>=1E3))e=!1;else{z.tzOffset!=void 0&&e.setTime(e.getTime()+(z.tzOffset-e.getTimezoneOffset())*60*1E3);z.ambiguousYear&&(l=new Date,l.setFullYear(l.getFullYear()-80),e.getTime()<l.getTime()&&e.setFullYear(l.getFullYear()+100));if(z.dayOfWeek!=void 0)if(z.day==void 0)z=(7+z.dayOfWeek-e.getDay())%7,z>3&&(z-=7),l=e.getMonth(),e.setDate(e.getDate()+z),e.getMonth()!=
l&&e.setDate(e.getDate()+(z>0?-7:7));else if(z.dayOfWeek!=e.getDay()){e=!1;break a}e=!0}}return e?O[0]:0};
var npq=function(l,e,O,E,J,z,M){AYq(e,O);if(E.numeric&&J>0&&O[0]+J>e.length)return!1;switch(E.text.charAt(0)){case "G":return QX(e,O,[l.JSC$9355_dateTimeSymbols_.ERAS],function(Z){return z.era=Z}),!0;
case "M":case "L":return arq(l,e,O,J,E,z);case "E":return QX(e,O,[l.JSC$9355_dateTimeSymbols_.WEEKDAYS,l.JSC$9355_dateTimeSymbols_.SHORTWEEKDAYS],function(Z){return z.dayOfWeek=Z});
case "B":case "b":return J=[],l=[[].concat(l.JSC$9355_dateTimeSymbols_.AMPMS)],J.push("isAm"),J.push("isPm"),e=QX(e,O,l,function(Z){return z.dayPeriodIndex=Z},M),z.dayPeriodName=J[z.dayPeriodIndex],M?e:!0;
case "a":return e=QX(e,O,[l.JSC$9355_dateTimeSymbols_.AMPMS],function(Z){return z.ampm=Z},M),M?e:!0;
case "y":return k4q(l,e,O,E,J,z);case "Q":return QX(e,O,[l.JSC$9355_dateTimeSymbols_.QUARTERS,l.JSC$9355_dateTimeSymbols_.SHORTQUARTERS],function(Z){z.month=Z*3;z.day=1});
case "d":return xn(l,e,O,E,J,function(Z){z.day=Z}),!0;
case "S":return IrS(l,e,O,J,z);case "h":case "K":case "H":case "k":return e=xn(l,e,O,E,J,function(Z){z.hours=E.text.charAt(0)==="h"&&Z===12?0:Z},M),M?e:!0;
case "m":return e=xn(l,e,O,E,J,function(Z){z.minutes=Z},M),M?e:!0;
case "s":return xn(l,e,O,E,J,function(Z){z.seconds=Z}),!0;
case "z":case "Z":case "v":return muq(l,e,O,z);default:return!1}},k4q=function(l,e,O,E,J,z){var M=O[0];
J=lI(l,e,O,J);J===null&&(J=lI(l,e,O,0,!0));if(J===null)return!1;J>=0&&O[0]-M==2&&E.count==2?(l=J,e=(new Date).getFullYear()-80,O=e%100,z.ambiguousYear=l==O,l+=Math.floor(e/100)*100+(l<O?100:0),z.year=l):z.year=J;return!0},arq=function(l,e,O,E,J,z){return J.numeric&&xn(l,e,O,J,E,function(M){z.month=M-1})?!0:QX(e,O,[l.JSC$9355_dateTimeSymbols_.MONTHS,
l.JSC$9355_dateTimeSymbols_.STANDALONEMONTHS,l.JSC$9355_dateTimeSymbols_.SHORTMONTHS,l.JSC$9355_dateTimeSymbols_.STANDALONESHORTMONTHS],function(M){z.month=M})},IrS=function(l,e,O,E,J){var z=O[0];
l=lI(l,e,O,E);if(l===null)return!1;O=O[0]-z;J.milliseconds=O<3?l*Math.pow(10,3-O):Math.round(l/Math.pow(10,O-3));return!0},muq=function(l,e,O,E){e.indexOf("GMT",O[0])==O[0]&&(O[0]+=3);
if(O[0]>=e.length)return E.tzOffset=0,!0;var J=O[0],z=lI(l,e,O,0,!0);if(z===null)return!1;if(O[0]<e.length&&e.charAt(O[0])==":"){var M=z*60;O[0]++;z=lI(l,e,O,0);if(z===null)return!1;M+=z}else M=z,M=M<24&&O[0]-J<=3?M*60:M%100+M/100*60;E.tzOffset=-M;return!0},xn=function(l,e,O,E,J,z,M){M=M||!1;
var Z=O[0];l=lI(l,e,O,J);if(l===null)return!1;if(M&&O[0]-Z<E.count){if(O[0]<e.length)return!1;l*=Math.pow(10,E.count-(O[0]-Z))}z(l);return!0},QX=function(l,e,O,E,J){J=J||!1;
for(var z,M=0;M<O.length;M++){z=e;for(var Z=O[M],u=J,d=0,g=null,w=l.substring(z[0]).toLowerCase(),n=0;n<Z.length;n++){var k=Z[n].toLowerCase();if(u&&k.indexOf(w)==0){d=w.length;g=n;break}Z[n].length>d&&w.indexOf(k)==0&&(d=Z[n].length,g=n)}g!==null&&(z[0]+=d);z=g;if(z!==null)return E(z),!0}return!1},AYq=function(l,e){(l=l.substring(e[0]).match(gpx))&&(e[0]+=l[0].length)},lI=function(l,e,O,E,J){e=E>0?e.substring(0,O[0]+E):e;
J=J||!1;if(l.JSC$9355_dateTimeSymbols_.ZERODIGIT){E=[];for(var z=O[0];z<e.length;z++){var M=e.charCodeAt(z)-l.JSC$9355_dateTimeSymbols_.ZERODIGIT;E.push(0<=M&&M<=9?String.fromCharCode(M+48):e.charAt(z))}e=E.join("")}else e=e.substring(O[0]);l=e.match(new RegExp("^"+(J?"[+-]?":"")+"\\d+"));if(!l)return null;O[0]+=l[0].length;return parseInt(l[0],10)},wtS=function(){};
wtS.prototype.ambiguousYear=!1;_.yYS={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 ptq={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"},Kck=ptq,jMk=ptq;jMk=Kck=ptq;var cYi,eZ,El,Hsu,Ol,HO1;
_.vt=function(l,e,O,E){var J;if(J=e){a:if(e&&e.length===3){for(J=0;J<3;J++){var z=e[J];if(z<"A"||z>"Z"&&z<"a"||z>"z"){J=!1;break a}}J=!0}else J=!1;J=!J}if(J)throw new TypeError("ae");this.intlCurrencyCode_=e?e.toUpperCase():null;this.currencyStyle_=O||0;this.overrideNumberFormatSymbols_=E||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_=eZ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof l==="number")switch(l){case 1:Ol(this,eZ(this).DECIMAL_PATTERN);break;case 2:Ol(this,eZ(this).SCIENTIFIC_PATTERN);break;case 3:Ol(this,eZ(this).PERCENT_PATTERN);break;case 4:l=eZ(this).CURRENCY_PATTERN;e=["0"];if(O=
NB[El(this)]){O=O[0]&7;if(O>0)for(e.push("."),E=0;E<O;E++)e.push("0");l=l.replace(/0.00/g,e.join(""))}Ol(this,l);break;case 5:HO1(this,1);break;case 6:HO1(this,2);break;default:throw Error("de");}else Ol(this,l)};
cYi=!1;eZ=function(l){return l.overrideNumberFormatSymbols_||(cYi?jMk:Kck)};
El=function(l){return l.intlCurrencyCode_||eZ(l).DEF_CURRENCY_CODE};
Hsu=function(l,e){if(e>308)throw Error("ce`"+e);l.maximumFractionDigits_=e;return l};
Ol=function(l,e){var O=[0];l.positivePrefix_=FcS(l,e,O);for(var E=O[0],J=-1,z=0,M=0,Z=0,u=-1,d=e.length,g=!0;O[0]<d&&g;O[0]++)switch(e.charAt(O[0])){case "#":M>0?Z++:z++;u>=0&&J<0&&u++;break;case "0":if(Z>0)throw Error("je`"+e);M++;u>=0&&J<0&&u++;break;case ",":u>0&&l.groupingArray_.push(u);u=0;break;case ".":if(J>=0)throw Error("ke`"+e);J=z+M+Z;break;case "E":if(l.useExponentialNotation_)throw Error("le`"+e);l.useExponentialNotation_=!0;l.minExponentDigits_=0;O[0]+1<d&&e.charAt(O[0]+1)=="+"&&(O[0]++,
l.useSignForPositiveExponent_=!0);for(;O[0]+1<d&&e.charAt(O[0]+1)=="0";)O[0]++,l.minExponentDigits_++;if(z+M<1||l.minExponentDigits_<1)throw Error("me`"+e);g=!1;break;default:O[0]--,g=!1}M==0&&z>0&&J>=0&&(M=J,M==0&&M++,Z=z-M,z=M-1,M=1);if(J<0&&Z>0||J>=0&&(J<z||J>z+M)||u==0)throw Error("ne`"+e);Z=z+M+Z;l.maximumFractionDigits_=J>=0?Z-J:0;J>=0&&(l.minimumFractionDigits_=z+M-J,l.minimumFractionDigits_<0&&(l.minimumFractionDigits_=0));l.minimumIntegerDigits_=(J>=0?J:Z)-z;l.useExponentialNotation_&&(l.maximumIntegerDigits_=
z+l.minimumIntegerDigits_,l.maximumFractionDigits_==0&&l.minimumIntegerDigits_==0&&(l.minimumIntegerDigits_=1));l.groupingArray_.push(Math.max(0,u));l.decimalSeparatorAlwaysShown_=J==0||J==Z;E=O[0]-E;l.positiveSuffix_=FcS(l,e,O);O[0]<e.length&&e.charAt(O[0])==";"?(O[0]++,l.multiplier_!=1&&(l.negativePercentSignExpected_=!0),l.negativePrefix_=FcS(l,e,O),O[0]+=E,l.negativeSuffix_=FcS(l,e,O)):(l.negativePrefix_+=l.positivePrefix_,l.negativeSuffix_+=l.positiveSuffix_)};
HO1=function(l,e){l.compactStyle_=e;Ol(l,eZ(l).DECIMAL_PATTERN);l.minimumFractionDigits_=0;Hsu(l,2);if(l.minimumFractionDigits_>0)throw Error("be");l.significantDigits_=2};
_.vt.prototype.parse=function(l,e){e=e||[0];if(this.compactStyle_!==0)throw Error("ee");l=l.replace(/ |\u202f/g,"\u00a0");var O=l.indexOf(this.positivePrefix_,e[0])==e[0],E=l.indexOf(this.negativePrefix_,e[0])==e[0];O&&E&&(this.positivePrefix_.length>this.negativePrefix_.length?E=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(O=!1));O?e[0]+=this.positivePrefix_.length:E&&(e[0]+=this.negativePrefix_.length);if(l.indexOf(eZ(this).INFINITY,e[0])==e[0]){e[0]+=eZ(this).INFINITY.length;var J=
Infinity}else{J=l;var z=!1,M=!1,Z=!1,u=-1,d=1,g=eZ(this).DECIMAL_SEP,w=eZ(this).GROUP_SEP,n=eZ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");w=w.replace(/\u202f/g,"\u00a0");for(var k="";e[0]<J.length;e[0]++){var y=J.charAt(e[0]),c=frq(this,y);if(c>=0&&c<=9)k+=c,Z=!0;else if(y==g.charAt(0)){if(z||M)break;k+=".";z=!0}else if(y==w.charAt(0)&&("\u00a0"!=w.charAt(0)||e[0]+1<J.length&&frq(this,J.charAt(e[0]+1))>=0)){if(z||M)break}else if(y==n.charAt(0)){if(M)break;k+="E";M=!0;u=e[0]}else if(y==
"+"||y=="-"){if(Z&&u!=e[0]-1)break;k+=y}else if(this.multiplier_==1&&y==eZ(this).PERCENT.charAt(0)){if(d!=1)break;d=100;if(Z){e[0]++;break}}else if(this.multiplier_==1&&y==eZ(this).PERMILL.charAt(0)){if(d!=1)break;d=1E3;if(Z){e[0]++;break}}else break}this.multiplier_!=1&&(d=this.multiplier_);J=parseFloat(k)/d}if(O){if(l.indexOf(this.positiveSuffix_,e[0])!=e[0])return NaN;e[0]+=this.positiveSuffix_.length}else if(E){if(l.indexOf(this.negativeSuffix_,e[0])!=e[0])return NaN;e[0]+=this.negativeSuffix_.length}return E?
-J:J};
_.vt.prototype.format=function(l){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(l))return eZ(this).NAN;var e=[];var O=l;if(this.compactStyle_==0)O=JJ;else{O=Math.abs(O);var E=R70(this,O<=1?0:TVk(O)).divisorBase;O=R70(this,E+TVk(sMq(this,X1(O,-E)).intValue))}l=X1(l,-O.divisorBase);(E=l<0||l==0&&1/l<0)?O.negative_prefix?e.push(O.negative_prefix):(e.push(O.prefix),e.push(this.negativePrefix_)):(e.push(O.prefix),e.push(this.positivePrefix_));if(isFinite(l))if(l*=
E?-1:1,l*=this.multiplier_,this.useExponentialNotation_){var J=l;if(J==0)G41(this,J,this.minimumIntegerDigits_,e),BV0(this,0,e);else{var z=Math.floor(Math.log(J)/Math.log(10)+2E-15);J=X1(J,-z);var M=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(M=z%this.maximumIntegerDigits_,M<0&&(M=this.maximumIntegerDigits_+M),J=X1(J,M),z-=M,M=1):this.minimumIntegerDigits_<1?(z++,J=X1(J,-1)):(z-=this.minimumIntegerDigits_-1,J=X1(J,this.minimumIntegerDigits_-
1));G41(this,J,M,e);BV0(this,z,e)}}else G41(this,l,this.minimumIntegerDigits_,e);else e.push(eZ(this).INFINITY);E?O.negative_suffix?e.push(O.negative_suffix):(isFinite(l)&&e.push(O.suffix),e.push(this.negativeSuffix_)):(isFinite(l)&&e.push(O.suffix),e.push(this.positiveSuffix_));return e.join("")};
var sMq=function(l,e){var O=X1(e,l.maximumFractionDigits_);l.significantDigits_>0&&(O=PHH(O,l.significantDigits_,l.maximumFractionDigits_));O=Math.round(O);if(isFinite(O)){var E=Math.floor(X1(O,-l.maximumFractionDigits_));O=Math.floor(O-X1(E,l.maximumFractionDigits_));if(O<0||O>=X1(1,l.maximumFractionDigits_))E=Math.round(e),O=0}else E=e,O=0;return{intValue:E,fracValue:O}},G41=function(l,e,O,E){if(l.minimumFractionDigits_>l.maximumFractionDigits_)throw Error("ge");
E||(E=[]);e=sMq(l,e);var J=e.intValue,z=e.fracValue,M=l.minimumFractionDigits_>0||z>0||!1;e=l.minimumFractionDigits_;M&&(e=l.minimumFractionDigits_);for(var Z="",u=J;u>1E20;)Z="0"+Z,u=Math.round(X1(u,-1));Z=u+Z;var d=eZ(l).DECIMAL_SEP;u=eZ(l).ZERO_DIGIT.codePointAt(0);var g=Z.length,w=0;if(J>0||O>0){for(J=g;J<O;J++)E.push(String.fromCodePoint(u));if(l.groupingArray_.length>=2)for(O=1;O<l.groupingArray_.length;O++)w+=l.groupingArray_[O];O=g-w;if(O>0){J=l.groupingArray_;w=g=0;for(var n,k=eZ(l).GROUP_SEP,
y=Z.length,c=0;c<y;c++)if(E.push(String.fromCodePoint(u+Number(Z.charAt(c)))),y-c>1)if(n=J[w],c<O){var f=O-c;(n===1||n>0&&f%n===1)&&E.push(k)}else w<J.length&&(c===O?w+=1:n===c-O-g+1&&(E.push(k),g+=n,w+=1))}else{O=Z;Z=l.groupingArray_;J=eZ(l).GROUP_SEP;n=O.length;k=[];for(g=Z.length-1;g>=0&&n>0;g--){w=Z[g];for(y=0;y<w&&n-y-1>=0;y++)k.push(String.fromCodePoint(u+Number(O.charAt(n-y-1))));n-=w;n>0&&k.push(J)}E.push.apply(E,k.reverse())}}else M||E.push(String.fromCodePoint(u));(l.decimalSeparatorAlwaysShown_||
M)&&E.push(d);z=String(z);M=z.split("e+");M.length==2&&(z=String(PHH(parseFloat(M[0]),l.significantDigits_,1)),z=z.replace(".",""),z+=(0,_.Ftu)("0",parseInt(M[1],10)-z.length+1));l.maximumFractionDigits_+1>z.length&&(z="1"+(0,_.Ftu)("0",l.maximumFractionDigits_-z.length)+z);for(l=z.length;z.charAt(l-1)=="0"&&l>e+1;)l--;for(e=1;e<l;e++)E.push(String.fromCodePoint(u+Number(z.charAt(e))))},BV0=function(l,e,O){O.push(eZ(l).EXP_SYMBOL);
e<0?(e=-e,O.push(eZ(l).MINUS_SIGN)):l.useSignForPositiveExponent_&&O.push(eZ(l).PLUS_SIGN);e=""+e;for(var E=eZ(l).ZERO_DIGIT,J=e.length;J<l.minExponentDigits_;J++)O.push(E);l=E.codePointAt(0)-Uuk;for(E=0;E<e.length;E++)O.push(String.fromCodePoint(l+e.codePointAt(E)))},frq=function(l,e){e=e.codePointAt(0);
if(48<=e&&e<58)return e-48;l=eZ(l).ZERO_DIGIT.codePointAt(0);return l<=e&&e<l+10?e-l:-1},Uuk="0".codePointAt(0),FcS=function(l,e,O){for(var E="",J=!1,z=e.length;O[0]<z;O[0]++){var M=e.charAt(O[0]);
if(M=="'")O[0]+1<z&&e.charAt(O[0]+1)=="'"?(O[0]++,E+="'"):J=!J;else if(J)E+=M;else switch(M){case "#":case "0":case ",":case ".":case ";":return E;case "\u00a4":if(O[0]+1<z&&e.charAt(O[0]+1)=="\u00a4")O[0]++,E+=El(l);else switch(l.currencyStyle_){case 0:M=El(l);E+=M in NB?NB[M][1]:M;break;case 2:M=El(l);var Z=NB[M];E+=Z?M==Z[1]?M:M+" "+Z[1]:M;break;case 1:M=El(l),E+=M in NB?NB[M][2]:M}break;case "%":if(!l.negativePercentSignExpected_&&l.multiplier_!=1)throw Error("he");if(l.negativePercentSignExpected_&&
l.multiplier_!=100)throw Error("ie");l.multiplier_=100;l.negativePercentSignExpected_=!1;E+=eZ(l).PERCENT;break;case "\u2030":if(!l.negativePercentSignExpected_&&l.multiplier_!=1)throw Error("he");if(l.negativePercentSignExpected_&&l.multiplier_!=1E3)throw Error("ie");l.multiplier_=1E3;l.negativePercentSignExpected_=!1;E+=eZ(l).PERMILL;break;default:E+=M}}return E},JJ={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},R70=function(l,e){l=l.compactStyle_==1?vX.COMPACT_DECIMAL_SHORT_PATTERN:vX.COMPACT_DECIMAL_LONG_PATTERN;l==null&&(l=vX.COMPACT_DECIMAL_SHORT_PATTERN);if(e<3)return JJ;e=Math.min(14,e);var O=l[X1(1,e)];for(--e;!O&&e>=3;)O=l[X1(1,e)],e--;if(!O)return JJ;O=O.other;var E=l="",J=O.indexOf(";");J>=0&&(O=O.substring(0,J),J=O.substring(J+1))&&(E=/([^0]*)(0+)(.*)/.exec(J),l=E[1],E=E[3]);return O&&O!="0"?(O=/([^0]*)(0+)(.*)/.exec(O))?{divisorBase:e+
1-(O[2].length-1),negative_prefix:l,negative_suffix:E,prefix:O[1],suffix:O[3]}:JJ:JJ},TVk=function(l){if(!isFinite(l))return l>0?l:0;
for(var e=0;(l/=10)>=1;)e++;return e},X1=function(l,e){if(!l||!isFinite(l)||e==0)return l;
l=String(l).split("e");return parseFloat(l[0]+"e"+(parseInt(l[1]||0,10)+e))},YnF=function(l,e){return l&&isFinite(l)?X1(Math.round(X1(l,e)),-e):l},PHH=function(l,e,O){if(!l)return l;
e=e-TVk(l)-1;return e<-O?YnF(l,-O):YnF(l,e)};var h7q=function(l){return l%10==1&&l%100!=11?"one":l%10==2&&l%100!=12?"two":l%10==3&&l%100!=13?"few":"other"},LcR=h7q;
LcR=h7q;var to6;to6=function(l,e){var O=l|0;if(void 0===e){e=Math;var E=e.min,J=l+"",z=J.indexOf(".");e=E.call(e,z===-1?0:J.length-z-1,3)}E=Math.pow(10,e);l={v:e,f:(l*E|0)%E};return O==1&&l.v==0?"one":"other"};
_.Qy=to6;_.Qy=to6;var qnC,vpH,NVS,Duk,SnH;_.rY1=function(l){this.JSC$9398_pattern_=l;this.parsedPattern_=this.literals_=this.initialLiterals_=null;l=Kck;var e=vX;if(qnC!==l||vpH!==e)qnC=l,vpH=e,NVS=new _.vt(1);this.numberFormatter_=NVS};
qnC=null;vpH=null;NVS=null;Duk=RegExp("'([{}#].*?)'","g");SnH=RegExp("''","g");
_.rY1.prototype.format=function(l){if(this.JSC$9398_pattern_){this.initialLiterals_=[];var e=QM0(this,this.JSC$9398_pattern_);this.parsedPattern_=xui(this,e);this.JSC$9398_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.rT(this.initialLiterals_),e=[],lC0(this,this.parsedPattern_,l,!1,e),l=e.join("");this.literals_.length>0;)l=l.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else l="";return l};
var lC0=function(l,e,O,E,J){for(var z=0;z<e.length;z++)switch(e[z].type){case 4:J.push(e[z].value);break;case 3:var M=e[z].value;var Z=l,u=J,d=O[M];d===void 0?u.push("Undefined parameter - "+M):(Z.literals_.push(d),u.push(Z.buildPlaceholder_(Z.literals_)));break;case 2:M=e[z].value;Z=l;u=O;d=E;var g=J,w=M.argumentIndex;u[w]===void 0?g.push("Undefined parameter - "+w):(w=M[u[w]],w===void 0&&(w=M.other),lC0(Z,w,u,d,g));break;case 0:M=e[z].value;eb1(l,M,O,_.Qy,E,J);break;case 1:M=e[z].value,eb1(l,M,
O,LcR,E,J)}},eb1=function(l,e,O,E,J,z){var M=e.argumentIndex,Z=e.argumentOffset,u=+O[M];
isNaN(u)?z.push("Undefined or invalid parameter - "+M):(Z=u-Z,M=e[O[M]],M===void 0&&(E=E(Math.abs(Z)),M=e[E],M===void 0&&(M=e.other)),e=[],lC0(l,M,O,J,e),O=e.join(""),J?z.push(O):(l=l.numberFormatter_.format(Z),z.push(O.replace(/#/g,l))))},QM0=function(l,e){var O=l.initialLiterals_,E=l.buildPlaceholder_.bind(l);
e=e.replace(SnH,function(){O.push("'");return E(O)});
return e=e.replace(Duk,function(J,z){O.push(z);return E(O)})},O0C=function(l){var e=0,O=[],E=[],J=/[{}]/g;
J.lastIndex=0;for(var z;z=J.exec(l);){var M=z.index;z[0]=="}"?(O.pop(),O.length==0&&(z={type:1},z.value=l.substring(e,M),E.push(z),e=M+1)):(O.length==0&&(e=l.substring(e,M),e!=""&&E.push({type:0,value:e}),e=M+1),O.push("{"))}l=l.substring(e);l!=""&&E.push({type:0,value:l});return E},E1H=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,J$0=/^\s*(\w+)\s*,\s*selectordinal\s*,/,XcF=/^\s*(\w+)\s*,\s*select\s*,/,xui=function(l,e){var O=[];
e=O0C(e);for(var E=0;E<e.length;E++){var J={};if(0==e[E].type)J.type=4,J.value=e[E].value;else if(1==e[E].type){var z=e[E].value;switch(E1H.test(z)?0:J$0.test(z)?1:XcF.test(z)?2:/^\s*\w+\s*/.test(z)?3:5){case 2:J.type=2;J.value=zb1(l,e[E].value);break;case 0:J.type=0;J.value=b0q(l,e[E].value);break;case 1:J.type=1;J.value=MTq(l,e[E].value);break;case 3:J.type=3,J.value=e[E].value}}O.push(J)}return O},zb1=function(l,e){var O="";
e=e.replace(XcF,function(Z,u){O=u;return""});
var E={};E.argumentIndex=O;e=O0C(e);for(var J=0;J<e.length;){var z=e[J].value;J++;var M=void 0;1==e[J].type&&(M=xui(l,e[J].value));E[z.replace(/\s/g,"")]=M;J++}return E},b0q=function(l,e){var O="",E=0;
e=e.replace(E1H,function(u,d,g){O=d;g&&(E=parseInt(g,10));return""});
var J={};J.argumentIndex=O;J.argumentOffset=E;e=O0C(e);for(var z=0;z<e.length;){var M=e[z].value;z++;var Z=void 0;1==e[z].type&&(Z=xui(l,e[z].value));J[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Z;z++}return J},MTq=function(l,e){var O="";
e=e.replace(J$0,function(Z,u){O=u;return""});
var E={};E.argumentIndex=O;E.argumentOffset=0;e=O0C(e);for(var J=0;J<e.length;){var z=e[J].value;J++;var M=void 0;1==e[J].type&&(M=xui(l,e[J].value));E[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;J++}return E};
_.rY1.prototype.buildPlaceholder_=function(l){return"\ufddf_"+(l.length-1).toString(10)+"_"};var VTq;
VTq={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 l1V=function(){this.rdtfSymbols_=Z0x||VTq;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
l1V.prototype.format=function(l,e){a:{e=uvF(this,e);switch(this.style_){case 2:if(e.NARROW!=void 0){e=e.NARROW;break a}case 1:if(e.SHORT!=void 0){e=e.SHORT;break a}default:e=e.LONG;break a}e=void 0}if(!this.alwaysNumeric_&&e&&e.R&&e.R[""+l])l=e.R[""+l];else if(e){var O=Math.abs(l);l=(new _.rY1("{N,plural,"+(l>0||l==0&&1/l==Infinity?e.F:e.P)+"}")).format({N:O})}else l="";return l};
var uvF=function(l,e){switch(e){default:case 0:return l.rdtfSymbols_.YEAR;case 1:return l.rdtfSymbols_.QUARTER;case 2:return l.rdtfSymbols_.MONTH;case 3:return l.rdtfSymbols_.WEEK;case 4:return l.rdtfSymbols_.DAY;case 5:return l.rdtfSymbols_.HOUR;case 6:return l.rdtfSymbols_.MINUTE;case 7:return l.rdtfSymbols_.SECOND}};var CGS=function(l,e,O,E,J,z,M,Z){this.x0=l;this.y0=e;this.x1=O;this.y1=E;this.x2=J;this.y2=z;this.x3=M;this.y3=Z};
CGS.prototype.clone=function(){return new CGS(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
CGS.prototype.equals=function(l){return this.x0==l.x0&&this.y0==l.y0&&this.x1==l.x1&&this.y1==l.y1&&this.x2==l.x2&&this.y2==l.y2&&this.x3==l.x3&&this.y3==l.y3};
var o1H=function(l,e){if(e==0)return l.x0;if(e==1)return l.x3;var O=K3(l.x0,l.x1,e),E=K3(l.x1,l.x2,e);l=K3(l.x2,l.x3,e);O=K3(O,E,e);E=K3(E,l,e);return K3(O,E,e)},$vS=function(l,e){var O=(e-l.x0)/(l.x3-l.x0);
if(O<=0)return 0;if(O>=1)return 1;for(var E=0,J=1,z=0,M=0;M<8;M++){z=o1H(l,O);var Z=(o1H(l,O+1E-6)-z)/1E-6;if(Math.abs(z-e)<1E-6)return O;if(Math.abs(Z)<1E-6)break;else z<e?E=O:J=O,O-=(z-e)/Z}for(M=0;Math.abs(z-e)>1E-6&&M<8;M++)z<e?(E=O,O=(O+J)/2):(J=O,O=(O+E)/2),z=o1H(l,O);return O};var za=function(){_.Kx.call(this);this.JSC$9419_name_="closure_frame"+Ws1++;this.iframesForDisposal_=[];dvi[this.JSC$9419_name_]=this},bI;
_.o_(za,_.Kx);var dvi={},Ws1=0,g1S=function(l,e){var O=WR(l);_.Fm1(e,function(E,J){Array.isArray(E)||(E=[E]);_.DB(E,function(z){z=O.JSC$7365_createDom("INPUT",{type:"hidden",name:J,value:z});l.appendChild(z)})})};
_.X=za.prototype;_.X.JSC$9421_form_=null;_.X.JSC$9421_iframe_=null;_.X.iframeName_=null;_.X.nextIframeId_=0;_.X.JSC$9421_active_=!1;_.X.complete_=!1;_.X.success_=!1;_.X.lastContent_=null;_.X.JSC$9421_lastErrorCode_=0;_.X.iframeDisposalTimer_=null;
_.X.send=function(l,e,O,E){if(this.JSC$9421_active_)throw Error("oe");l=new _.Jg(l);e=e?e.toUpperCase():"GET";O&&_.$N(l);bI||(bI=_.FD("FORM"),bI.acceptCharset="utf-8",O=bI.style,O.position="absolute",O.visibility="hidden",O.top=O.left="-10px",O.width=O.height="10px",O.overflow="hidden",document.body.appendChild(bI));this.JSC$9421_form_=bI;e=="GET"&&g1S(this.JSC$9421_form_,l.JSC$8068_queryData_);E&&g1S(this.JSC$9421_form_,E);O=l.toString();O=SBV(O);E=this.JSC$9421_form_;O=_.m7(oH(O));O!==void 0&&(E.action=
O);this.JSC$9421_form_.method=e;i0S(this);wcq(this)};
_.X.abort=function(l){if(this.JSC$9421_active_){var e=MZ(this);if(e)if(mh(e))e.removeAllListeners(void 0);else if(e=yw(e)){var O=0,E;for(E in e.listeners)for(var J=e.listeners[E].concat(),z=0;z<J.length;++z)Hf(J[z])&&++O}this.success_=this.JSC$9421_active_=this.complete_=!1;this.JSC$9421_lastErrorCode_=l||7;this.dispatchEvent("abort");A$i(this)}};
_.X.disposeInternal=function(){this.JSC$9421_active_&&this.abort();za.superClass_.disposeInternal.call(this);this.JSC$9421_iframe_&&n16(this);wcq(this);this.JSC$9421_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9421_form_=null;this.JSC$9421_lastErrorCode_=0;delete dvi[this.JSC$9419_name_]};
_.X.isComplete=function(){return this.complete_};
_.X.isSuccess=function(){return this.success_};
_.X.isActive=function(){return this.JSC$9421_active_};
_.X.getResponseText=function(){return this.lastContent_};
_.X.getLastError=function(){return _.VvR(this.JSC$9421_lastErrorCode_)};
var i0S=function(l){l.JSC$9421_active_=!0;l.complete_=!1;l.JSC$9421_lastErrorCode_=0;l.iframeName_=l.JSC$9419_name_+"_"+(l.nextIframeId_++).toString(36);l.JSC$9421_iframe_=WR(l.JSC$9421_form_).JSC$7365_createDom("IFRAME",{name:l.iframeName_,id:l.iframeName_});var e=l.JSC$9421_iframe_.style;e.visibility="hidden";e.width=e.height="10px";e.display="none";_.ws?e.marginTop=e.marginLeft="-10px":(e.position="absolute",e.top=e.left="-10px");WR(l.JSC$9421_form_).JSC$7363_document_.body.appendChild(l.JSC$9421_iframe_);
e=l.iframeName_+"_inner";var O=eF0(l.JSC$9421_iframe_);if(document.baseURI){var E=Wi(e);E='<head><base href="'+Wi(document.baseURI)+'"></head><body><iframe id="'+E+'" name="'+E+'"></iframe>';E=KU(E)}else E=Wi(e),E=KU('<body><iframe id="'+E+'" name="'+E+'"></iframe>');O.write(jv(E));_.f4(O.getElementById(e),"load",l.onIframeLoaded_,!1,l);E=nb("TEXTAREA",l.JSC$9421_form_);for(var J=0,z=E.length;J<z;J++){var M=E[J].value;bRx(E[J])!=M&&(_.PY(E[J],M),E[J].value=M)}E=O.importNode(l.JSC$9421_form_,!0);E.target=
e;E.action=l.JSC$9421_form_.action;O.body.appendChild(E);J=nb("SELECT",l.JSC$9421_form_);z=nb("SELECT",E);M=0;for(var Z=J.length;M<Z;M++)for(var u=nb("OPTION",J[M]),d=nb("OPTION",z[M]),g=0,w=u.length;g<w;g++)d[g].selected=u[g].selected;J=nb("INPUT",l.JSC$9421_form_);z=nb("INPUT",E);M=0;for(Z=J.length;M<Z;M++)if(J[M].type=="file"&&J[M].value!=z[M].value){l.JSC$9421_form_.target=e;E=l.JSC$9421_form_;break}try{l.errorHandled_=!1,E.submit(),O.close(),_.iv&&setTimeout(l.testForFirefoxSilentError_.bind(l),
250)}catch(n){_.px(O.getElementById(e),"load",l.onIframeLoaded_,!1,l),O.close(),VV(l,2)}};
za.prototype.onIframeLoaded_=function(){_.px(MZ(this),"load",this.onIframeLoaded_,!1,this);try{var l=this.JSC$9421_iframe_?eF0(MZ(this)):null;this.complete_=!0;this.JSC$9421_active_=!1;try{var e=l.body;this.lastContent_=e.textContent||e.innerText}catch(J){var O=1}var E;O||typeof this.errorChecker_!="function"||(E=this.errorChecker_(l))&&(O=4);O?VV(this,O):(this.success_=!0,this.JSC$9421_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),A$i(this))}catch(J){VV(this,1)}};
var VV=function(l,e){l.errorHandled_||(l.success_=!1,l.JSC$9421_active_=!1,l.complete_=!0,l.JSC$9421_lastErrorCode_=e,l.dispatchEvent("complete"),l.dispatchEvent("error"),A$i(l),l.errorHandled_=!0)},A$i=function(l){n16(l);
wcq(l);l.JSC$9421_form_=null;l.dispatchEvent("ready")},n16=function(l){var e=l.JSC$9421_iframe_;
e&&(e.onreadystatechange=null,e.onload=null,e.onerror=null,l.iframesForDisposal_.push(e));l.iframeDisposalTimer_&&(clearTimeout(l.iframeDisposalTimer_),l.iframeDisposalTimer_=null);_.iv?l.iframeDisposalTimer_=setTimeout(l.disposeIframes_.bind(l),2E3):l.disposeIframes_();l.JSC$9421_iframe_=null;l.iframeName_=null};
za.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var l=this.iframesForDisposal_.pop();_.wk(l)}};
var wcq=function(l){l.JSC$9421_form_&&l.JSC$9421_form_==bI&&_.TP(l.JSC$9421_form_)},MZ=function(l){return l.JSC$9421_iframe_?eF0(l.JSC$9421_iframe_).getElementById(l.iframeName_+"_inner"):null};
za.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9421_active_){var l=this.JSC$9421_iframe_?eF0(MZ(this)):null;l&&!cR(l,"documentUri")?(_.px(MZ(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?VV(this,3):VV(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.ZY=function(l){return l=="\r"||l=="\n"||l==" "||l=="\t"};var aCH;_.uI=function(l){this.errorMessage_=null;this.result_=[];this.JSC$9423_buffer_="";this.stack_=[];this.JSC$9423_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!l||!l.deliverMessageAsRawString)};
aCH={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.uI.prototype.isInputValid=function(){return this.streamState_!=3};
_.uI.prototype.done=function(){return this.streamState_===2};
var Co=function(l,e,O){l.streamState_=3;l.errorMessage_="The stream is broken @"+l.JSC$9423_pos_+"/"+O+". With input:\n"+e;throw Error(l.errorMessage_);};
_.uI.prototype.acceptsBinaryInput=function(){return!1};
_.uI.prototype.parse=function(l){function e(){for(;n<l.length;)if(_.ZY(l[n]))n++,z.JSC$9423_pos_++;else break;return n<d}
function O(){for(var y;;){y=l[n++];if(!y)break;z.JSC$9423_pos_++;switch(z.state_){case u.INIT:y==="{"?z.state_=u.OBJECT_OPEN:y==="["?z.state_=u.ARRAY_OPEN:_.ZY(y)||Co(z,l,n);continue;case u.KEY_START:case u.OBJECT_OPEN:if(_.ZY(y))continue;if(z.state_===u.KEY_START)M.push(u.KEY_END);else if(y==="}"){J("{}");z.state_=E();continue}else M.push(u.OBJECT_END);y==='"'?z.state_=u.STRING:Co(z,l,n);continue;case u.KEY_END:case u.OBJECT_END:if(_.ZY(y))continue;y===":"?(z.state_===u.OBJECT_END&&(M.push(u.OBJECT_END),
z.depth_++),z.state_=u.VALUE):y==="}"?(z.depth_--,J(),z.state_=E()):y===","?(z.state_===u.OBJECT_END&&M.push(u.OBJECT_END),z.state_=u.KEY_START):Co(z,l,n);continue;case u.ARRAY_OPEN:case u.VALUE:if(_.ZY(y))continue;if(z.state_===u.ARRAY_OPEN)if(z.depth_++,z.state_=u.VALUE,y==="]"){z.depth_--;if(z.depth_===0){z.state_=u.ARRAY_END;return}J("[]");z.state_=E();continue}else M.push(u.ARRAY_END);y==='"'?z.state_=u.STRING:y==="{"?z.state_=u.OBJECT_OPEN:y==="["?z.state_=u.ARRAY_OPEN:y==="t"?z.state_=u.TRUE1:
y==="f"?z.state_=u.FALSE1:y==="n"?z.state_=u.NULL1:y!=="-"&&("0123456789".indexOf(y)!==-1?z.state_=u.NUM_DIGIT:Co(z,l,n));continue;case u.ARRAY_END:if(y===",")M.push(u.ARRAY_END),z.state_=u.VALUE,z.depth_===1&&(w=n);else if(y==="]"){z.depth_--;if(z.depth_===0)return;J();z.state_=E()}else if(_.ZY(y))continue;else Co(z,l,n);continue;case u.STRING:var c=n;a:for(;;){for(;z.unicodeCount_>0;)if(y=l[n++],z.unicodeCount_===4?z.unicodeCount_=0:z.unicodeCount_++,!y)break a;if(y==='"'&&!z.slashed_){z.state_=
E();break}if(y==="\\"&&!z.slashed_&&(z.slashed_=!0,y=l[n++],!y))break;if(z.slashed_)if(z.slashed_=!1,y==="u"&&(z.unicodeCount_=1),y=l[n++])continue;else break;Z.lastIndex=n;y=Z.exec(l);if(!y){n=l.length+1;break}n=y.index+1;y=l[y.index];if(!y)break}z.JSC$9423_pos_+=n-c;continue;case u.TRUE1:if(!y)continue;y==="r"?z.state_=u.TRUE2:Co(z,l,n);continue;case u.TRUE2:if(!y)continue;y==="u"?z.state_=u.TRUE3:Co(z,l,n);continue;case u.TRUE3:if(!y)continue;y==="e"?z.state_=E():Co(z,l,n);continue;case u.FALSE1:if(!y)continue;
y==="a"?z.state_=u.FALSE2:Co(z,l,n);continue;case u.FALSE2:if(!y)continue;y==="l"?z.state_=u.FALSE3:Co(z,l,n);continue;case u.FALSE3:if(!y)continue;y==="s"?z.state_=u.FALSE4:Co(z,l,n);continue;case u.FALSE4:if(!y)continue;y==="e"?z.state_=E():Co(z,l,n);continue;case u.NULL1:if(!y)continue;y==="u"?z.state_=u.NULL2:Co(z,l,n);continue;case u.NULL2:if(!y)continue;y==="l"?z.state_=u.NULL3:Co(z,l,n);continue;case u.NULL3:if(!y)continue;y==="l"?z.state_=E():Co(z,l,n);continue;case u.NUM_DECIMAL_POINT:y===
"."?z.state_=u.NUM_DIGIT:Co(z,l,n);continue;case u.NUM_DIGIT:if("0123456789.eE+-".indexOf(y)!==-1)continue;else n--,z.JSC$9423_pos_--,z.state_=E();continue;default:Co(z,l,n)}}}
function E(){var y=M.pop();return y!=null?y:u.VALUE}
function J(y){z.depth_>1||(y||(y=w===-1?z.JSC$9423_buffer_+l.substring(g,n):l.substring(w,n)),z.deliverMessageAsRawString_?z.result_.push(y):z.result_.push(JSON.parse(y)),w=n)}
for(var z=this,M=z.stack_,Z=z.stringInputPattern_,u=aCH,d=l.length,g=0,w=-1,n=0;n<d;)switch(z.streamState_){case 3:return Co(z,l,n),null;case 2:return e()&&Co(z,l,n),null;case 0:if(e()){var k=l[n++];z.JSC$9423_pos_++;if(k==="["){z.streamState_=1;g=n;z.state_=u.ARRAY_OPEN;continue}else Co(z,l,n)}return null;case 1:return O(),z.depth_===0&&z.state_==u.ARRAY_END?(z.streamState_=2,z.JSC$9423_buffer_=l.substring(n)):z.JSC$9423_buffer_=w===-1?z.JSC$9423_buffer_+l.substring(g):l.substring(w),z.result_.length>
0?(k=z.result_,z.result_=[],k):null}return null};_.o_(_.oc,FR);$v.prototype.getValue=function(){return this.JSC$9431_value_};
$v.prototype.clone=function(){return new $v(this.JSC$9431_key_,this.JSC$9431_value_)};var oT=function(l){this.nodes_=[];if(l)a:{if(l instanceof oT){var e=l.getKeys();l=l.getValues();if(this.getCount()<=0){for(var O=this.nodes_,E=0;E<e.length;E++)O.push(new $v(e[E],l[E]));break a}}else e=_.mm.getKeys(l),l=_.mm.getValues(l);for(O=0;O<e.length;O++)this.insert(e[O],l[O])}};
_.X=oT.prototype;_.X.insert=function(l,e){var O=this.nodes_;O.push(new $v(l,e));l=O.length-1;e=this.nodes_;for(O=e[l];l>0;){var E=l-1>>1;if(e[E].JSC$9431_key_>O.JSC$9431_key_)e[l]=e[E],l=E;else break}e[l]=O};
_.X.remove=function(){var l=this.nodes_,e=l.length,O=l[0];if(!(e<=0)){if(e==1)l.length=0;else{l[0]=l.pop();l=0;e=this.nodes_;for(var E=e.length,J=e[l];l<E>>1;){var z=l*2+1,M=l*2+2;z=M<E&&e[M].JSC$9431_key_<e[z].JSC$9431_key_?M:z;if(e[z].JSC$9431_key_>J.JSC$9431_key_)break;e[l]=e[z];l=z}e[l]=J}return O.getValue()}};
_.X.peek=function(){var l=this.nodes_;if(l.length!=0)return l[0].getValue()};
_.X.getValues=function(){for(var l=this.nodes_,e=[],O=l.length,E=0;E<O;E++)e.push(l[E].getValue());return e};
_.X.getKeys=function(){for(var l=this.nodes_,e=[],O=l.length,E=0;E<O;E++)e.push(l[E].JSC$9431_key_);return e};
_.X.containsValue=function(l){return this.nodes_.some(function(e){return e.getValue()==l})};
_.X.containsKey=function(l){return this.nodes_.some(function(e){return e.JSC$9431_key_==l})};
_.X.clone=function(){return new oT(this)};
_.X.getCount=function(){return this.nodes_.length};
_.X.isEmpty=function(){return this.nodes_.length===0};
_.X.clear=function(){this.nodes_.length=0};_.$k=function(l,e){this.JSC$9437_map_={};this.JSC$9437_keys_=[];this.version_=this.size=0;var O=arguments.length;if(O>1){if(O%2)throw Error("oa");for(var E=0;E<O;E+=2)this.set(arguments[E],arguments[E+1])}else l&&this.addAll(l)};
_.X=_.$k.prototype;_.X.getCount=function(){return this.size};
_.X.getValues=function(){Wy(this);for(var l=[],e=0;e<this.JSC$9437_keys_.length;e++)l.push(this.JSC$9437_map_[this.JSC$9437_keys_[e]]);return l};
_.X.getKeys=function(){Wy(this);return this.JSC$9437_keys_.concat()};
_.X.containsKey=function(l){return this.has(l)};
_.X.has=function(l){return d0(this.JSC$9437_map_,l)};
_.X.containsValue=function(l){for(var e=0;e<this.JSC$9437_keys_.length;e++){var O=this.JSC$9437_keys_[e];if(d0(this.JSC$9437_map_,O)&&this.JSC$9437_map_[O]==l)return!0}return!1};
_.X.equals=function(l,e){if(this===l)return!0;if(this.size!=l.getCount())return!1;e=e||k_C;Wy(this);for(var O,E=0;O=this.JSC$9437_keys_[E];E++)if(!e(this.get(O),l.get(O)))return!1;return!0};
var k_C=function(l,e){return l===e};
_.$k.prototype.isEmpty=function(){return this.size==0};
_.$k.prototype.clear=function(){this.JSC$9437_map_={};this.version_=this.size=this.JSC$9437_keys_.length=0};
_.$k.prototype.remove=function(l){return this.delete(l)};
_.$k.prototype.delete=function(l){return d0(this.JSC$9437_map_,l)?(delete this.JSC$9437_map_[l],--this.size,this.version_++,this.JSC$9437_keys_.length>2*this.size&&Wy(this),!0):!1};
var Wy=function(l){if(l.size!=l.JSC$9437_keys_.length){for(var e=0,O=0;e<l.JSC$9437_keys_.length;){var E=l.JSC$9437_keys_[e];d0(l.JSC$9437_map_,E)&&(l.JSC$9437_keys_[O++]=E);e++}l.JSC$9437_keys_.length=O}if(l.size!=l.JSC$9437_keys_.length){e={};for(E=O=0;O<l.JSC$9437_keys_.length;){var J=l.JSC$9437_keys_[O];d0(e,J)||(l.JSC$9437_keys_[E++]=J,e[J]=1);O++}l.JSC$9437_keys_.length=E}};
_.X=_.$k.prototype;_.X.get=function(l,e){return d0(this.JSC$9437_map_,l)?this.JSC$9437_map_[l]:e};
_.X.set=function(l,e){d0(this.JSC$9437_map_,l)||(this.size+=1,this.JSC$9437_keys_.push(l),this.version_++);this.JSC$9437_map_[l]=e};
_.X.addAll=function(l){if(l instanceof _.$k)for(var e=l.getKeys(),O=0;O<e.length;O++)this.set(e[O],l.get(e[O]));else for(e in l)this.set(e,l[e])};
_.X.forEach=function(l,e){for(var O=this.getKeys(),E=0;E<O.length;E++){var J=O[E],z=this.get(J);l.call(e,z,J,this)}};
_.X.clone=function(){return new _.$k(this)};
_.X.transpose=function(){for(var l=new _.$k,e=0;e<this.JSC$9437_keys_.length;e++){var O=this.JSC$9437_keys_[e];l.set(this.JSC$9437_map_[O],O)}return l};
_.X.keys=function(){return Qy0(this.__iterator__(!0)).toEs6()};
_.X.values=function(){return Qy0(this.__iterator__(!1)).toEs6()};
_.X.entries=function(){var l=this;return Zzi(this.keys(),function(e){return[e,l.get(e)]})};
_.X.__iterator__=function(l){Wy(this);var e=0,O=this.version_,E=this,J=new u_;J.next=function(){if(O!=E.version_)throw Error("pe");if(e>=E.JSC$9437_keys_.length)return CI;var z=E.JSC$9437_keys_[e++];return oF(l?z:E.JSC$9437_map_[z])};
return J};
var d0=function(l,e){return Object.prototype.hasOwnProperty.call(l,e)};var mvH=function(){this.JSC$9440_map_=new _.$k;this.JSC$9440_head_=new ICk("");this.JSC$9440_head_.next=this.JSC$9440_head_.prev=this.JSC$9440_head_},y$H=function(l,e){if(e=l.JSC$9440_map_.get(e))e.remove(),l.insert_(e);
return e};
_.X=mvH.prototype;_.X.get=function(l,e){return(l=y$H(this,l))?l.value:e};
_.X.set=function(l,e){var O=y$H(this,l);O?O.value=e:(O=new ICk(l,e),this.JSC$9440_map_.set(l,O),this.insert_(O))};
_.X.peek=function(){return this.JSC$9440_head_.next.value};
_.X.shift=function(){return pc1(this,this.JSC$9440_head_.next)};
_.X.pop=function(){return pc1(this,this.JSC$9440_head_.prev)};
_.X.remove=function(l){return(l=this.JSC$9440_map_.get(l))?(this.removeNode(l),!0):!1};
_.X.removeNode=function(l){l.remove();this.JSC$9440_map_.remove(l.key)};
_.X.getCount=function(){return this.JSC$9440_map_.getCount()};
_.X.isEmpty=function(){return this.JSC$9440_map_.isEmpty()};
_.X.getKeys=function(){return this.map(function(l,e){return e})};
_.X.getValues=function(){return this.map(function(l){return l})};
_.X.contains=function(l){return this.some(function(e){return e==l})};
_.X.containsKey=function(l){return this.JSC$9440_map_.containsKey(l)};
_.X.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9440_head_.prev)};
_.X.forEach=function(l,e){for(var O=this.JSC$9440_head_.next;O!=this.JSC$9440_head_;O=O.next)l.call(e,O.value,O.key,this)};
_.X.map=function(l,e){for(var O=[],E=this.JSC$9440_head_.next;E!=this.JSC$9440_head_;E=E.next)O.push(l.call(e,E.value,E.key,this));return O};
_.X.some=function(l,e){for(var O=this.JSC$9440_head_.next;O!=this.JSC$9440_head_;O=O.next)if(l.call(e,O.value,O.key,this))return!0;return!1};
_.X.every=function(l,e){for(var O=this.JSC$9440_head_.next;O!=this.JSC$9440_head_;O=O.next)if(!l.call(e,O.value,O.key,this))return!1;return!0};
_.X.insert_=function(l){l.next=this.JSC$9440_head_.next;l.prev=this.JSC$9440_head_;this.JSC$9440_head_.next=l;for(l.next.prev=l;this.getCount()>100;)this.removeNode(this.JSC$9440_head_.prev)};
var pc1=function(l,e){l.JSC$9440_head_!=e&&l.removeNode(e);return e.value},ICk=function(l,e){this.key=l;
this.value=e};
ICk.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var KsS=function(){oT.apply(this,arguments)};
_.m(KsS,oT);KsS.prototype.enqueue=function(l,e){this.insert(l,e)};var j46=function(){var l=Error();l.name="SecurityError";throw l;},oCV=function(){return{get opener(){return null},
get closed(){return!0},get location(){j46()},get document(){j46()},postMessage:function(){},
close:function(){},
focus:function(){}}};var HNx={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 fLt={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 H0C={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(fLt).join("|");var c$R=function(){function l(Z){Z.substr(-1)!==";"&&(Z+=";");return M(Z)}
for(var e=Object.keys(H0C).sort(FCA),O=Object.keys(fLt).sort(FCA),E=0,J=0;E<O.length;E++)e[J]===O[E]?(O[E]+=";?",J++):O[E]+=";";var z=new RegExp("&(?:"+O.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),M=Rht();return function(Z){return String(Z).replace(z,l)}}();/*

 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 Fsk={};var fCx=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"),Rbq=/[\\&]/,T8k=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),s4R=RegExp('[&<>"]',"g"),G_1=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),B8i=function(l){return l.charCodeAt(0)===92?l.charAt(1):c$R(l)},PGq=function(l){return Rbq.test(l)?l.replace(T8k,B8i):l},Uvq=function(l){try{var e,O="";
if(typeof J!=="string"){var E=J;var J=";/?:@&=+$,-_.!~*'()#"}typeof E==="undefined"&&(E=!0);var z,M=Fsk[J];if(M)var Z=M;else{M=Fsk[J]=[];for(z=0;z<128;z++){var u=String.fromCharCode(z);/^[0-9a-z]$/i.test(u)?M.push(u):M.push("%"+("0"+z.toString(16).toUpperCase()).slice(-2))}for(z=0;z<J.length;z++)M[J.charCodeAt(z)]=J[z];Z=M}var d=0;for(e=l.length;d<e;d++){var g=l.charCodeAt(d);if(E&&g===37&&d+2<e&&/^[0-9a-f]{2}$/i.test(l.slice(d+1,d+3)))O+=l.slice(d,d+3),d+=2;else if(g<128)O+=Z[g];else if(g>=55296&&
g<=57343){if(g>=55296&&g<=56319&&d+1<e){var w=l.charCodeAt(d+1);if(w>=56320&&w<=57343){O+=encodeURIComponent(l[d]+l[d+1]);d++;continue}}O+="%EF%BF%BD"}else O+=encodeURIComponent(l[d])}return O}catch(n){return l}},Ymq=function(l){switch(l){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return l}},g0=function(l,e){return s4R.test(l)?e?l.replace(G_1,Ymq):l.replace(s4R,Ymq):l};/*

 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 iI;if(String.fromCodePoint)iI=function(l){try{return String.fromCodePoint(l)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e;}};
else{var hbH=String.fromCharCode,Lsk=Math.floor;iI=function(){var l=[],e=-1,O=arguments.length;if(!O)return"";for(var E="";++e<O;){var J=Number(arguments[e]);if(!isFinite(J)||J<0||J>1114111||Lsk(J)!==J)return String.fromCharCode(65533);if(J<=65535)l.push(J);else{J-=65536;var z=(J>>10)+55296;J=J%1024+56320;l.push(z,J)}if(e+1===O||l.length>16384)E+=hbH.apply(null,l),l.length=0}return E}};var tTx=function(l){this.root=this.current=l;this.entering=!0};
tTx.prototype.next=function(){var l=this.current,e=this.entering;if(l===null)return null;a:switch(l._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 O=!0;break a;default:O=!1}e&&O?l._firstChild?(this.current=l._firstChild,this.entering=!0):this.entering=!1:l===this.root?this.current=null:l._next===null?(this.current=
l._parent,this.entering=!1):(this.current=l._next,this.entering=!0);return{entering:e,node:l}};
var ie=function(l,e){this._type=l;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=e;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
ie.prototype.appendChild=function(l){w0(l);l._parent=this;this._lastChild?(this._lastChild._next=l,l._prev=this._lastChild):this._firstChild=l;this._lastChild=l};
var w0=function(l){l._prev?l._prev._next=l._next:l._parent&&(l._parent._firstChild=l._next);l._next?l._next._prev=l._prev:l._parent&&(l._parent._lastChild=l._prev);l._parent=null;l._next=null;l._prev=null},qmH=function(l,e){w0(e);
e._next=l._next;e._next&&(e._next._prev=e);e._prev=l;l._next=e;e._parent=l._parent;e._next||(e._parent._lastChild=e)};
ie.prototype.insertBefore=function(l){w0(l);l._prev=this._prev;l._prev&&(l._prev._next=l);l._next=this;this._prev=l;l._parent=this._parent;l._prev||(l._parent._firstChild=l)};
_.Ji.Object.defineProperties(ie.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(l){this._literal=l}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(l){this._destination=l}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(l){this._title=l}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(l){this._info=l}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(l){this._level=l}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(l){this._listData.type=l}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(l){this._listData.tight=l}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(l){this._listData.start=l}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(l){this._onEnter=l}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(l){this._onExit=l}}});var Td8=/[ \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,
s2p={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 v11=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]/),
N86=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),r$q=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),DvC=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),SmF=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Q41=/`+/,xv0=/^`+/,le1=/\.\.\./g,eeq=/--+/g,O1C=/^<([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])?)*)>/,
ETH=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,JAx=/^ *(?:\n *)?/,Xsi=/^[ \t\n\x0b\x0c\x0d]/,zeq=/[ \t\n\x0b\x0c\x0d]+/g,b1S=/^\s/,Myq=/ *$/,Vy0=/^ */,Z1H=/^ *(?:\n|$)/,u0R=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),CdH=/^[^\n`\[\]\\!<&*_'"]+/m,AJ=function(l){var e=new ie("text");e._literal=l;return e},no=function(l){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=l||{}};
no.prototype.match=function(l){l=l.exec(this.subject.slice(this.pos));if(l===null)return null;this.pos+=l.index+l[0].length;return l[0]};
no.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var aT=function(l){l.match(JAx);return!0},oTH=function(l,e,O){var E=0;
var J=l.pos;if(e===39||e===34)E++,l.pos++;else for(;l.peek()===e;)E++,l.pos++;if(E===0)E=null;else{var z=J===0?"\n":l.subject.charAt(J-1);var M=l.peek();M=M===-1?"\n":iI(M);var Z=b1S.test(M);M=v11.test(M);var u=b1S.test(z);var d=v11.test(z);z=!Z&&!(M&&!u&&!d);Z=!u&&!(d&&!Z&&!M);e===95?(u=z&&(!Z||d),M=Z&&(!z||M)):(u=e===39||e===34?z&&!Z:z,M=Z);l.pos=J;E={numdelims:E,can_open:u,can_close:M}}if(!E)return!1;J=E.numdelims;M=l.pos;l.pos+=J;M=e===39?"\u2019":e===34?"\u201c":l.subject.slice(M,l.pos);M=AJ(M);
O.appendChild(M);l.delimiters={cc:e,numdelims:J,origdelims:J,node:M,previous:l.delimiters,next:null,can_open:E.can_open,can_close:E.can_close};l.delimiters.previous!==null&&(l.delimiters.previous.next=l.delimiters);return!0},$7i=function(l,e){e.previous!==null&&(e.previous.next=e.next);
e.next===null?l.delimiters=e.previous:e.next.previous=e.previous},W0S=function(l,e){var O,E,J=[],z=!1;
J[95]=e;J[42]=e;J[39]=e;J[34]=e;for(O=l.delimiters;O!==null&&O.previous!==e;)O=O.previous;for(;O!==null;){var M=O.cc;if(O.can_close){var Z=O.previous;for(E=!1;Z!==null&&Z!==e&&Z!==J[M];){z=(O.can_open||Z.can_close)&&(Z.origdelims+O.origdelims)%3===0;if(Z.cc===O.cc&&Z.can_open&&!z){E=!0;break}Z=Z.previous}var u=O;if(M===42||M===95)if(E){var d=O.numdelims>=2&&Z.numdelims>=2?2:1;var g=Z.node;var w=O.node;Z.numdelims-=d;O.numdelims-=d;g._literal=g._literal.slice(0,g._literal.length-d);w._literal=w._literal.slice(0,
w._literal.length-d);var n=new ie(d===1?"emph":"strong");for(d=g._next;d&&d!==w;){var k=d._next;w0(d);n.appendChild(d);d=k}qmH(g,n);d=Z;k=O;d.next!==k&&(d.next=k,k.previous=d);Z.numdelims===0&&(w0(g),$7i(l,Z));O.numdelims===0&&(w0(w),Z=O.next,$7i(l,O),O=Z)}else O=O.next;else M===39?(O.node._literal="\u2019",E&&(Z.node._literal="\u2018"),O=O.next):M===34&&(O.node._literal="\u201d",E&&(Z.node.literal="\u201c"),O=O.next);E||z||(J[M]=u.previous,u.can_open||$7i(l,u))}else O=O.next}for(;l.delimiters!==
null&&l.delimiters!==e;)$7i(l,l.delimiters)},d7q=function(l){l=l.match(N86);
return l===null?null:PGq(l.substr(1,l.length-2))},gTq=function(l){var e=l.match(r$q);
if(e===null){e=l.pos;for(var O=0,E;(E=l.peek())!==-1;)if(E===92)l.pos+=1,l.peek()!==-1&&(l.pos+=1);else if(E===40)l.pos+=1,O+=1;else if(E===41)if(O<1)break;else l.pos+=1,--O;else if(Xsi.exec(iI(E))!==null)break;else l.pos+=1;e=l.subject.substr(e,l.pos-e);return Uvq(PGq(e))}return Uvq(PGq(e.substr(1,e.length-2)))},i1C=function(l){l=l.match(u0R);
return l===null||l.length>1001?0:l.length},wsC=function(l,e,O,E){l.brackets!==null&&(l.brackets.bracketAfter=!0);
l.brackets={node:e,previous:l.brackets,previousDelimiter:l.delimiters,index:O,image:E,active:!0}},AA1=function(l,e){var O;
return(O=l.match(CdH))?(l.options.smart?e.appendChild(AJ(O.replace(le1,"\u2026").replace(eeq,function(E){var J=0,z=0;E.length%3===0?z=E.length/3:E.length%2===0?J=E.length/2:E.length%3===2?(J=1,z=(E.length-2)/3):(J=2,z=(E.length-4)/3);E="";var M;for(M=0;M<z;M++)E+="\u2014";for(M=0;M<J;M++)E+="\u2013";return E}))):e.appendChild(AJ(O)),!0):!1},nTx=function(l,e,O){l.subject=e;
l.pos=0;e=l.pos;var E=i1C(l);if(E===0)return 0;var J=l.subject.substr(0,E);if(l.peek()===58)l.pos++;else return l.pos=e,0;aT(l);E=gTq(l);if(E===null||E.length===0)return l.pos=e,0;var z=l.pos;aT(l);var M=d7q(l);M===null&&(M="",l.pos=z);var Z=!0;l.match(Z1H)===null&&(M===""?Z=!1:(M="",l.pos=z,Z=l.match(Z1H)!==null));if(!Z)return l.pos=e,0;J=Git(J);if(J==="")return l.pos=e,0;O[J]||(O[J]={destination:E,title:M});return l.pos-e},aek=function(l,e){var O,E=l.peek();
if(E===-1)return!1;switch(E){case 10:l.pos+=1;if((O=e._lastChild)&&O.type==="text"&&O._literal[O._literal.length-1]===" "){var J=O._literal[O._literal.length-2]===" ";O._literal=O._literal.replace(Myq,"");e.appendChild(new ie(J?"linebreak":"softbreak"))}else e.appendChild(new ie("softbreak"));l.match(Vy0);O=!0;break;case 92:O=l.subject;l.pos+=1;l.peek()===10?(l.pos+=1,O=new ie("linebreak"),e.appendChild(O)):DvC.test(O.charAt(l.pos))?(e.appendChild(AJ(O.charAt(l.pos))),l.pos+=1):e.appendChild(AJ("\\"));
O=!0;break;case 96:a:if(O=l.match(xv0),O===null)O=!1;else{J=l.pos;for(var z;(z=l.match(Q41))!==null;)if(z===O){z=new ie("code");z._literal=l.subject.slice(J,l.pos-O.length).trim().replace(zeq," ");e.appendChild(z);O=!0;break a}l.pos=J;e.appendChild(AJ(O));O=!0}break;case 42:case 95:O=oTH(l,E,e);break;case 39:case 34:O=l.options.smart&&oTH(l,E,e);break;case 91:O=l.pos;l.pos+=1;J=AJ("[");e.appendChild(J);wsC(l,J,O,!1);O=!0;break;case 33:O=l.pos;l.pos+=1;l.peek()===91?(l.pos+=1,J=AJ("!["),e.appendChild(J),
wsC(l,J,O+1,!0)):e.appendChild(AJ("!"));O=!0;break;case 93:var M,Z=!1,u;l.pos+=1;var d=l.pos;J=l.brackets;if(J===null)e.appendChild(AJ("]"));else if(J.active){O=J.image;var g=l.pos;l.peek()===40&&(l.pos++,aT(l)&&(z=gTq(l))!==null&&aT(l)&&(Xsi.test(l.subject.charAt(l.pos-1))&&(M=d7q(l)),1)&&aT(l)&&l.peek()===41?(l.pos+=1,Z=!0):l.pos=g);if(!Z){var w=l.pos,n=i1C(l);n>2?u=l.subject.slice(w,w+n):J.bracketAfter||(u=l.subject.slice(J.index,d));n===0&&(l.pos=g);u&&(u=l.refmap[Git(u)])&&(z=u.destination,M=
u.title,Z=!0)}if(Z){d=new ie(O?"image":"link");d._destination=z;d._title=M||"";for(z=J.node._next;z;)M=z._next,w0(z),d.appendChild(z),z=M;e.appendChild(d);W0S(l,J.previousDelimiter);l.brackets=l.brackets.previous;w0(J.node);if(!O)for(J=l.brackets;J!==null;)J.image||(J.active=!1),J=J.previous}else l.brackets=l.brackets.previous,l.pos=d,e.appendChild(AJ("]"))}else e.appendChild(AJ("]")),l.brackets=l.brackets.previous;O=!0;break;case 60:(O=l.match(O1C))?(O=O.slice(1,O.length-1),J=new ie("link"),J._destination=
Uvq("mailto:"+O),J._title="",J.appendChild(AJ(O)),e.appendChild(J),O=!0):(O=l.match(ETH))?(O=O.slice(1,O.length-1),J=new ie("link"),J._destination=Uvq(O),J._title="",J.appendChild(AJ(O)),e.appendChild(J),O=!0):O=!1;O||(O=l.match(fCx),O===null?O=!1:(J=new ie("html_inline"),J._literal=O,e.appendChild(J),O=!0));break;case 38:(O=l.match(SmF))?(e.appendChild(AJ(c$R(O))),O=!0):O=!1;break;default:O=AA1(l,e)}O||(l.pos+=1,e.appendChild(AJ(iI(E))));return!0};
no.prototype.parseInlines=function(l){this.subject=l._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;aek(this,l););l._string_content=null;W0S(this,null)};
no.prototype.parse=no.prototype.parseInlines;var kVk=[/./,/^<(?: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")],Iex=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],m7q=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,yAS=/^[#`~*+_=<>0-9-\|]|\|/,ps1=/[^ \t\f\v\r\n]/,K01=/^[*+-]/,jBC=/^(\d{1,9})([.)])/,H1q=/^#{1,6}(?:[ \t]+|$)/,cA0=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,F0F=/^(?:`{3,}|~{3,})(?= *$)/,feS=/^(?:=+|-+)[ \t]*$/,Rek=/\r\n|\n|\r/,PYM=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,UJA=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,TP0={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(l){return l!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(l,e){for(l=e._firstChild;l;){if(BdL(l)&&l._next){e._listData.tight=!1;break}for(var O=l._firstChild;O;){if(BdL(O)&&(l._next||O._next)){e._listData.tight=!1;break}O=O._next}l=l._next}},
canContain:function(l){return l==="item"},
acceptsLines:!1},block_quote:{continue:function(l){var e=l.currentLine;if(l.indented||dv(e,l.nextNonspace)!==62)return 1;kk(l);IT(l,1,!1);W9(dv(e,l.offset))&&IT(l,1,!0);return 0},
finalize:function(){},
canContain:function(l){return l!=="item"},
acceptsLines:!1},item:{continue:function(l,e){if(l.blank){if(e._firstChild==null)return 1;kk(l)}else if(l.indent>=e._listData.markerOffset+e._listData.padding)IT(l,e._listData.markerOffset+e._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(l){return l!=="item"&&!YU8(l)},
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(l,e){var O=l.currentLine,E=l.indent;if(e._isFenced){if((E=E<=3&&O.charAt(l.nextNonspace)===e._fenceChar&&O.slice(l.nextNonspace).match(F0F))&&E[0].length>=e._fenceLength)return l.finalize(e,l.lineNumber),2;for(e=e._fenceOffset;e>0&&W9(dv(O,l.offset));)IT(l,1,!0),e--}else if(E>=4)IT(l,4,!0);else if(l.blank)kk(l);else return 1;return 0},
finalize:function(l,e){if(e._isFenced){var O=e._string_content,E=O.indexOf("\n");l=O.slice(0,E);O=O.slice(E+1);e.info=PGq(l.trim());e._literal=O}else e._literal=e._string_content.replace(/(\n *)+$/,"\n");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(l,e){return!l.blank||e._htmlBlockType!==6&&e._htmlBlockType!==7?0:1},
finalize:function(l,e){e._literal=e._string_content.replace(/(\n *)+$/,"");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(l){return l.blank?1:0},
finalize:function(l,e){for(var O,E=!1;dv(e._string_content,0)===91&&(O=nTx(l.inlineParser,e._string_content,l.refmap));)e._string_content=e._string_content.slice(O),E=!0;E&&!ps1.test(e._string_content)&&w0(e)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(l){return gv(l.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(l){return l=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(l,e){if(!e._rowIsDelimiter){l=e._isHeader?"th":"td";for(var O=e._parent._tableColumns,E=e._string_content,J=0,z="",M,Z=e._sourcepos[0][0];J<E.length;){switch(E[J]){case "|":M&&(M._string_content=z.trim(),z="",M=null,O--,O<=0&&(J=E.length));break;default:if(!M){M=new ie(l,[[Z,J],[Z,J]]);var u=e._parent._columnAlignment,d=e._parent._tableColumns-O;u&&d<=u.length&&d>=0&&(M._alignment=u[d]);e.appendChild(M)}z+=E[J];M._sourcepos[1][1]=J}J++}M&&(M._string_content=z.trim());e._string_content=
""}},
canContain:function(l){return l!=="row"},
acceptsLines:!1}},sBq=[function(l){if(l.indented||dv(l.currentLine,l.nextNonspace)!==62)return 0;kk(l);IT(l,1,!1);W9(dv(l.currentLine,l.offset))&&IT(l,1,!0);mo(l);l.addChild("block_quote",l.nextNonspace);return 1},
function(l){var e;if(!l.indented&&(e=l.currentLine.slice(l.nextNonspace).match(H1q))){kk(l);IT(l,e[0].length,!1);mo(l);var O=l.addChild("heading",l.nextNonspace);O.level=e[0].trim().length;O._string_content=l.currentLine.slice(l.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");IT(l,l.currentLine.length-l.offset);return 2}return 0},
function(l){var e;if(!l.indented&&(e=l.currentLine.slice(l.nextNonspace).match(cA0))){var O=e[0].length;mo(l);var E=l.addChild("code_block",l.nextNonspace);E._isFenced=!0;E._fenceLength=O;E._fenceChar=e[0][0];E._fenceOffset=l.indent;kk(l);IT(l,O,!1);return 2}return 0},
function(l,e){if(!l.indented&&dv(l.currentLine,l.nextNonspace)===60){var O=l.currentLine.slice(l.nextNonspace),E;for(E=1;E<=7;E++)if(kVk[E].test(O)&&(E<7||e.type!=="paragraph"))return mo(l),l.addChild("html_block",l.offset)._htmlBlockType=E,2}return 0},
function(l,e){var O;if(!l.indented&&e.type==="paragraph"&&(O=l.currentLine.slice(l.nextNonspace).match(feS))){mo(l);var E=new ie("heading",e.sourcepos);E.level=O[0][0]==="="?1:2;E._string_content=e._string_content;qmH(e,E);w0(e);l.tip=E;IT(l,l.currentLine.length-l.offset,!1);return 2}return 0},
function(l){return!l.indented&&m7q.test(l.currentLine.slice(l.nextNonspace))?(mo(l),l.addChild("thematic_break",l.nextNonspace),IT(l,l.currentLine.length-l.offset,!1),2):0},
function(l,e){var O,E;if(!(E=l.indented&&e.type!=="list")){a:{var J=e,z=l.currentLine.slice(l.nextNonspace);E={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:l.indent};if(O=z.match(K01))E.type="bullet",E.bulletChar=O[0][0];else{if(!(O=z.match(jBC))||J.type==="paragraph"&&O[1]!=="1"){O=null;break a}E.type="ordered";E.start=parseInt(O[1],10);E.delimiter=O[2]}var M=dv(l.currentLine,l.nextNonspace+O[0].length);if(M!==-1&&M!==9&&M!==32||J.type==="paragraph"&&!l.currentLine.slice(l.nextNonspace+
O[0].length).match(ps1))O=null;else{kk(l);IT(l,O[0].length,!0);J=l.column;z=l.offset;do IT(l,1,!0),M=dv(l.currentLine,l.offset);while(l.column-J<5&&W9(M));M=dv(l.currentLine,l.offset)===-1;var Z=l.column-J;Z>=5||Z<1||M?(E.padding=O[0].length+1,l.column=J,l.offset=z,W9(dv(l.currentLine,l.offset))&&IT(l,1,!0)):E.padding=O[0].length+Z;O=E}}E=!O}if(E)return 0;mo(l);(E=l.tip.type!=="list")||(e=e._listData,E=!(e.type===O.type&&e.delimiter===O.delimiter&&e.bulletChar===O.bulletChar));E&&(e=l.addChild("list",
l.nextNonspace),e._listData=O);e=l.addChild("item",l.nextNonspace);e._listData=O;return 1},
function(l){var e;return((e=l.options.shouldParseIndentAsCodeBlock)!=null?e:1)&&l.indented&&l.tip.type!=="paragraph"&&!l.blank?(IT(l,4,!0),mo(l),l.addChild("code_block",l.offset),2):0},
function(l,e){var O=gv(l.currentLine),E=gv(l.lookahead);if(O!==0&&E<0&&Math.abs(O)==Math.abs(E)&&!YU8(e.type)){mo(l);e=l.addChild("table",l.nextNonspace);e._tableRows=1;e._tableColumns=Math.abs(O);O=l.lookahead;if(UJA.test(O)){E=[];for(var J=0,z=!1,M=0,Z=void 0;J<O.length;){var u=M>=3;switch(O[J]){case "-":M++;break;case "|":z&&(E.push(Z),Z=void 0,M=0);z=!0;break;case ":":Z||u||(Z="left"),!Z&&u&&(Z="right"),Z==="left"&&u&&(Z="center")}J++}O=E}else O=void 0;e._columnAlignment=O;e=l.addChild("row",
l.nextNonspace);e._isHeader=!0;IT(l,l.currentLine.length-l.offset,!1);e._string_content=l.currentLine;return 1}return 0},
function(l,e){if(e.type=="table"&&gv(l.currentLine)!==0){mo(l);var O=e;e=l.addChild("row",l.nextNonspace);gv(l.currentLine)<0?e._rowIsDelimiter=!0:O._tableRows+=1;IT(l,l.currentLine.length-l.offset,!1);e._string_content=l.currentLine;return 2}return 0}],tmt=function(){var l={shouldParseIndentAsCodeBlock:!1};
l=l===void 0?{}:l;this.lastMatchedContainer=this.doc=hhg();this.refmap={};this.lastLineLength=0;this.inlineParser=new no(l);this.options=l;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=TP0;this.blockStarts=sBq},GVi=function(l){l.partiallyConsumedTab&&(l.offset+=1,l.tip._string_content+=" ".repeat(4-l.column%
4));
l.tip._string_content+=l.currentLine.slice(l.offset)+"\n"};
tmt.prototype.addChild=function(l,e){for(;!this.blocks[this.tip.type].canContain(l);)this.finalize(this.tip,this.lineNumber-1);l=new ie(l,[[this.lineNumber,e+1],[0,0]]);l._string_content="";this.tip.appendChild(l);return this.tip=l};
var mo=function(l){if(!l.allClosed){for(;l.oldtip!==l.lastMatchedContainer;){var e=l.oldtip._parent;l.finalize(l.oldtip,l.lineNumber-1);l.oldtip=e}l.allClosed=!0}},IT=function(l,e,O){for(var E=l.currentLine,J,z;e>0&&(z=E[l.offset]);)z==="\t"?(J=4-l.column%4,O?(l.partiallyConsumedTab=J>e,J=J>e?e:J,l.column+=J,l.offset+=l.partiallyConsumedTab?0:1,e-=J):(l.partiallyConsumedTab=!1,l.column+=J,l.offset+=1,--e)):(l.partiallyConsumedTab=!1,l.offset+=1,l.column+=1,--e)},kk=function(l){l.offset=l.nextNonspace;
l.column=l.nextNonspaceColumn;l.partiallyConsumedTab=!1},BP1=function(l){for(var e=l.currentLine,O=l.offset,E=l.column,J;(J=e.charAt(O))!=="";)if(J===" ")O++,E++;
else if(J==="\t")O++,E+=4-E%4;else break;l.blank=J==="\n"||J==="\r"||J==="";l.nextNonspace=O;l.nextNonspaceColumn=E;l.indent=l.nextNonspaceColumn-l.column;l.indented=l.indent>=4};
tmt.prototype.finalize=function(l,e){var O=l._parent;l._open=!1;l.sourcepos[1]=[e,this.lastLineLength];this.blocks[l.type].finalize(this,l);this.tip=O};
tmt.prototype.parse=function(l){this.tip=this.doc=hhg();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!l)return this.doc;this.options.time&&console.time("preparing input");var e=l.split(Rek),O=e.length;l.charCodeAt(l.length-1)===10&&--O;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(l=0;l<O;l++)a:{var E=void 0,J=e[l],z=e[l+1],M=!0,Z=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;J.indexOf("\x00")!==-1&&(J=J.replace(/\0/g,"\ufffd"));this.currentLine=J;for(this.lookahead=z;(E=Z._lastChild)&&E._open;){Z=E;BP1(this);switch(this.blocks[Z.type].continue(this,Z)){case 0:break;case 1:M=!1;break;case 2:this.lastLineLength=J.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!M){Z=Z._parent;break}}this.allClosed=Z===this.oldtip;this.lastMatchedContainer=
Z;E=Z.type!=="paragraph"&&TP0[Z.type].acceptsLines;z=this.blockStarts;for(M=z.length;!E;){BP1(this);if(!this.indented&&!yAS.test(J.slice(this.nextNonspace))){kk(this);break}for(var u=0;u<M;){var d=z[u](this,Z);if(d===1){Z=this.tip;break}else if(d===2){Z=this.tip;E=!0;break}else u++}if(u===M){kk(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){mo(this);this.blank&&Z.lastChild&&(Z.lastChild._lastLineBlank=!0);E=Z.type;z=this.blank&&!(E==="block_quote"||E==="code_block"&&Z._isFenced||
E==="item"&&!Z._firstChild&&Z.sourcepos[0][0]===this.lineNumber);for(M=Z;M;)M._lastLineBlank=z,M=M._parent;this.blocks[E].acceptsLines?(GVi(this),E==="html_block"&&Z._htmlBlockType>=1&&Z._htmlBlockType<=5&&Iex[Z._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(Z,this.lineNumber)):this.offset<J.length&&!this.blank&&(this.addChild("paragraph",this.offset),kk(this),GVi(this))}else GVi(this);this.lastLineLength=J.length}for(;this.tip;)this.finalize(this.tip,O);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");J=new tTx(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;O=J.next();)e=O.node,l=e.type,O.entering||l!=="paragraph"&&l!=="heading"&&l!=="th"&&l!="td"||this.inlineParser.parse(e);this.options.time&&console.timeEnd("inline parsing");return this.doc};LCp.prototype.render=function(l){l=new tTx(l);var e;this.buffer="";for(this.lastOut="\n";e=l.next();){var O=e.node.type;if(this[O])this[O](e.node,e.entering)}return this.buffer};
LCp.prototype.out=function(l){yV(this,l)};
var yV=function(l,e){l.buffer+=e;l.lastOut=e};
LCp.prototype.cr=function(){this.lastOut!=="\n"&&yV(this,"\n")};var Pd6=/^javascript:|vbscript:|file:|data:/i,U71=/^data:image\/(?:png|gif|jpeg|webp)/i,YV1=function(l){return Pd6.test(l)&&!U71.test(l)};
wv.prototype=Object.create(LCp.prototype);_.X=wv.prototype;_.X.text=function(l){this.out(l.literal)};
_.X.html_inline=function(l){this.options.safe?yV(this,"\x3c!-- raw HTML omitted --\x3e"):yV(this,l.literal)};
_.X.html_block=function(l){this.cr();this.options.safe?yV(this,"\x3c!-- raw HTML omitted --\x3e"):yV(this,l.literal);this.cr()};
_.X.softbreak=function(){yV(this,this.options.softbreak)};
_.X.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.X.link=function(l,e){var O=this.attrs(l);e?(this.options.safe&&YV1(l.destination)||O.push(["href",g0(l.destination,!0)]),l.title&&O.push(["title",g0(l.title,!0)]),this.tag("a",O)):this.tag("/a")};
_.X.image=function(l,e){e?(this.disableTags===0&&(this.options.safe&&YV1(l.destination)?yV(this,'<img src="" alt="'):yV(this,'<img src="'+g0(l.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(l.title&&yV(this,'" title="'+g0(l.title,!0)),yV(this,'" />')))};
_.X.emph=function(l,e){this.tag(e?"em":"/em")};
_.X.strong=function(l,e){this.tag(e?"strong":"/strong")};
_.X.paragraph=function(l,e){var O=l.parent.parent;l=this.attrs(l);O!==null&&O.type==="list"&&O.listTight||(e?(this.cr(),this.tag("p",l)):(this.tag("/p"),this.cr()))};
_.X.heading=function(l,e){var O="h"+l.level;l=this.attrs(l);e?(this.cr(),this.tag(O,l)):(this.tag("/"+O),this.cr())};
_.X.code=function(l){this.tag("code");this.out(l.literal);this.tag("/code")};
_.X.code_block=function(l){var e=l.info?l.info.split(/\s+/):[],O=this.attrs(l);e.length>0&&e[0].length>0&&O.push(["class","language-"+g0(e[0],!0)]);this.cr();this.tag("pre");this.tag("code",O);this.out(l.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.X.thematic_break=function(l){l=this.attrs(l);this.cr();this.tag("hr",l,!0);this.cr()};
_.X.block_quote=function(l,e){l=this.attrs(l);e?(this.cr(),this.tag("blockquote",l)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.X.list=function(l,e){var O=l.listType==="bullet"?"ul":"ol",E=this.attrs(l);e?(l=l.listStart,l!==null&&l!==1&&E.push(["start",l.toString()]),this.cr(),this.tag(O,E)):(this.cr(),this.tag("/"+O));this.cr()};
_.X.item=function(l,e){l=this.attrs(l);e?this.tag("li",l):(this.tag("/li"),this.cr())};
_.X.custom_inline=function(l,e){e&&l.onEnter?yV(this,l.onEnter):!e&&l.onExit&&yV(this,l.onExit)};
_.X.custom_block=function(l,e){this.cr();e&&l.onEnter?yV(this,l.onEnter):!e&&l.onExit&&yV(this,l.onExit);this.cr()};
_.X.table=function(l,e){l=this.attrs(l);e?(this.cr(),this.tag("table",l)):(this.tag("/table"),this.cr())};
_.X.row=function(l,e){l._rowIsDelimiter||(l=this.attrs(l),e?this.tag("tr",l):this.tag("/tr"))};
_.X.td=function(l,e){var O=this.attrs(l);l._alignment&&O.push(["align",l._alignment]);e?this.tag("td",O):this.tag("/td")};
_.X.th=function(l,e){var O=this.attrs(l);l._alignment&&O.push(["align",l._alignment]);e?this.tag("th",O):this.tag("/th")};
_.X.out=function(l){yV(this,g0(l,!1))};
_.X.tag=function(l,e,O){if(!(this.disableTags>0)){this.buffer+="<"+l;if(e&&e.length>0){l=0;for(var E;(E=e[l])!==void 0;)this.buffer+=" "+E[0]+'="'+E[1]+'"',l++}O&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.X.attrs=function(l){var e=[];this.options.sourcepos&&(l=l.sourcepos)&&e.push(["data-sourcepos",String(l[0][0])+":"+String(l[0][1])+"-"+String(l[1][0])+":"+String(l[1][1])]);return e};
wv.prototype.text=wv.prototype.text;wv.prototype.html_inline=wv.prototype.html_inline;wv.prototype.html_block=wv.prototype.html_block;wv.prototype.softbreak=wv.prototype.softbreak;wv.prototype.linebreak=wv.prototype.linebreak;wv.prototype.link=wv.prototype.link;wv.prototype.image=wv.prototype.image;wv.prototype.emph=wv.prototype.emph;wv.prototype.strong=wv.prototype.strong;wv.prototype.paragraph=wv.prototype.paragraph;wv.prototype.heading=wv.prototype.heading;wv.prototype.code=wv.prototype.code;
wv.prototype.code_block=wv.prototype.code_block;wv.prototype.thematic_break=wv.prototype.thematic_break;wv.prototype.block_quote=wv.prototype.block_quote;wv.prototype.list=wv.prototype.list;wv.prototype.item=wv.prototype.item;wv.prototype.custom_inline=wv.prototype.custom_inline;wv.prototype.custom_block=wv.prototype.custom_block;wv.prototype.table=wv.prototype.table;wv.prototype.row=wv.prototype.row;wv.prototype.td=wv.prototype.td;wv.prototype.th=wv.prototype.th;wv.prototype.out=wv.prototype.out;
wv.prototype.tag=wv.prototype.tag;wv.prototype.attrs=wv.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 heq,L0C,uz2;(function(){function l(F,H){return F<H?-1:F>H?1:F>=H?0:NaN}
function e(F){return function(H,G){return l(F(H),G)}}
function O(){for(var F=0,H=arguments.length,G={},S;F<H;++F){if(!(S=arguments[F]+"")||S in G)throw Error("re`"+S);G[S]=[]}return new E(G)}
function E(F){this._=F}
function J(F,H){return F.trim().split(/^|\s+/).map(function(G){var S="",Xu=G.indexOf(".");Xu>=0&&(S=G.slice(Xu+1),G=G.slice(0,Xu));if(G&&!H.hasOwnProperty(G))throw Error("se`"+G);return{type:G,name:S}})}
function z(F,H,G){for(var S=0,Xu=F.length;S<Xu;++S)if(F[S].name===H){F[S]=Z2u;F=F.slice(0,S).concat(F.slice(S+1));break}G!=null&&F.push({name:H,value:G});return F}
function M(F){var H=F,G=H.indexOf(":");G>=0&&(H=F.slice(0,G))!=="xmlns"&&(F=F.slice(G+1));return $J.hasOwnProperty(H)?{space:$J[H],local:F}:F}
function Z(F){return function(){var H=this.ownerDocument,G=this.namespaceURI;return G==="http://www.w3.org/1999/xhtml"&&H.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?H.createElement(F):H.createElementNS(G,F)}}
function u(F){return function(){return this.ownerDocument.createElementNS(F.space,F.local)}}
function d(F){F=M(F);return(F.local?u:Z)(F)}
function g(){}
function w(F){return F==null?g:function(){return this.querySelector(F)}}
function n(F){return Array(F.length)}
function k(F,H){this.ownerDocument=F.ownerDocument;this.namespaceURI=F.namespaceURI;this._next=null;this._parent=F;this.__data__=H}
function y(F){return function(){return F}}
function c(F,H,G,S,Xu,od){for(var Aq=0,KL,xV=H.length,DW=od.length;Aq<DW;++Aq)(KL=H[Aq])?(KL.__data__=od[Aq],S[Aq]=KL):G[Aq]=new k(F,od[Aq]);for(;Aq<xV;++Aq)if(KL=H[Aq])Xu[Aq]=KL}
function f(F,H,G,S,Xu,od,Aq){var KL,xV,DW={},lq=H.length,Mi=od.length,LR=Array(lq),$4;for(KL=0;KL<lq;++KL)if(xV=H[KL])LR[KL]=$4="$"+Aq.call(xV,xV.__data__,KL,H),$4 in DW?Xu[KL]=xV:DW[$4]=xV;for(KL=0;KL<Mi;++KL)$4="$"+Aq.call(F,od[KL],KL,od),(xV=DW[$4])?(S[KL]=xV,xV.__data__=od[KL],DW[$4]=null):G[KL]=new k(F,od[KL]);for(KL=0;KL<lq;++KL)(xV=H[KL])&&DW[LR[KL]]===xV&&(Xu[KL]=xV)}
function P(F,H){return F<H?-1:F>H?1:F>=H?0:NaN}
function h(F){return function(){this.removeAttribute(F)}}
function N(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function t(F,H){return function(){this.setAttribute(F,H)}}
function r(F,H){return function(){this.setAttributeNS(F.space,F.local,H)}}
function D(F,H){return function(){var G=H.apply(this,arguments);G==null?this.removeAttribute(F):this.setAttribute(F,G)}}
function b2(F,H){return function(){var G=H.apply(this,arguments);G==null?this.removeAttributeNS(F.space,F.local):this.setAttributeNS(F.space,F.local,G)}}
function $V(F){return function(){this.style.removeProperty(F)}}
function gT(F,H,G){return function(){this.style.setProperty(F,H,G)}}
function mx(F,H,G){return function(){var S=H.apply(this,arguments);S==null?this.style.removeProperty(F):this.style.setProperty(F,S,G)}}
function jM(F,H){return F.style.getPropertyValue(H)||(F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView).getComputedStyle(F,null).getPropertyValue(H)}
function cx(F){return function(){delete this[F]}}
function tq(F,H){return function(){this[F]=H}}
function Px(F,H){return function(){var G=H.apply(this,arguments);G==null?delete this[F]:this[F]=G}}
function S0(){this.textContent=""}
function QH(F){return function(){this.textContent=F}}
function pR(F){return function(){var H=F.apply(this,arguments);this.textContent=H==null?"":H}}
function oq(){this.innerHTML=""}
function ZS(F){return function(){this.innerHTML=F}}
function Ou(F){return function(){var H=F.apply(this,arguments);this.innerHTML=H==null?"":H}}
function uq(){return null}
function ZV(){var F=this.parentNode;F&&F.removeChild(this)}
function jO(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function V8(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function AC(F,H,G){F=Fk(F,H,G);return function(S){var Xu=S.relatedTarget;Xu&&(Xu===this||Xu.compareDocumentPosition(this)&8)||F.call(this,S)}}
function Fk(F,H,G){return function(){F.call(this,this.__data__,H,G)}}
function tu(F){return F.trim().split(/^|\s+/).map(function(H){var G="",S=H.indexOf(".");S>=0&&(G=H.slice(S+1),H=H.slice(0,S));return{type:H,name:G}})}
function kq(F){return function(){var H=this.__on;if(H){for(var G=0,S=-1,Xu=H.length,od;G<Xu;++G)(od=H[G],F.type&&od.type!==F.type||od.name!==F.name)?H[++S]=od:this.removeEventListener(od.type,od.listener,od.capture);++S?H.length=S:delete this.__on}}}
function Ni(F,H,G){var S=jti.hasOwnProperty(F.type)?AC:Fk;return function(Xu,od,Aq){Xu=this.__on;var KL;od=S(H,od,Aq);if(Xu){Aq=0;for(var xV=Xu.length;Aq<xV;++Aq)if((KL=Xu[Aq]).type===F.type&&KL.name===F.name){this.removeEventListener(KL.type,KL.listener,KL.capture);this.addEventListener(KL.type,KL.listener=od,KL.capture=G);KL.value=H;return}}this.addEventListener(F.type,od,G);KL={type:F.type,name:F.name,value:H,listener:od,capture:G};Xu?Xu.push(KL):this.__on=[KL]}}
function YA(F,H,G){var S=F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView,Xu=S.CustomEvent;typeof Xu==="function"?Xu=new Xu(H,G):(Xu=S.document.createEvent("Event"),G?(Xu.initEvent(H,G.bubbles,G.cancelable),Xu.detail=G.detail):Xu.initEvent(H,!1,!1));F.dispatchEvent(Xu)}
function v6(F,H){return function(){return YA(this,F,H)}}
function Xk(F,H){return function(){return YA(this,F,H.apply(this,arguments))}}
function P6(F,H){this._groups=F;this._parents=H}
function wf(){return new P6([[document.documentElement]],u40)}
function w1(){this._="@"+(++Cvz).toString(36)}
function KR(F,H,G){F.prototype=H.prototype=G;G.constructor=F}
function CP(F,H){F=Object.create(F.prototype);for(var G in H)F[G]=H[G];return F}
function z1(){}
function bz(F){var H;F=(F+"").trim().toLowerCase();return(H=oh0.exec(F))?(H=parseInt(H[1],16),new QC(H>>8&15|H>>4&240,H>>4&15|H&240,(H&15)<<4|H&15,1)):(H=$3z.exec(F))?wp(parseInt(H[1],16)):(H=WyC.exec(F))?new QC(H[1],H[2],H[3],1):(H=d3C.exec(F))?new QC(H[1]*255/100,H[2]*255/100,H[3]*255/100,1):(H=ghh.exec(F))?ti(H[1],H[2],H[3],H[4]):(H=i2F.exec(F))?ti(H[1]*255/100,H[2]*255/100,H[3]*255/100,H[4]):(H=wWC.exec(F))?V5(H[1],H[2]/100,H[3]/100,1):(H=AZh.exec(F))?V5(H[1],H[2]/100,H[3]/100,H[4]):Hix.hasOwnProperty(F)?
wp(Hix[F]):F==="transparent"?new QC(NaN,NaN,NaN,0):null}
function wp(F){return new QC(F>>16&255,F>>8&255,F&255,1)}
function ti(F,H,G,S){S<=0&&(F=H=G=NaN);return new QC(F,H,G,S)}
function Yq(F){F instanceof z1||(F=bz(F));if(!F)return new QC;F=F.rgb();return new QC(F.r,F.g,F.b,F.opacity)}
function mH(F,H,G,S){return arguments.length===1?Yq(F):new QC(F,H,G,S==null?1:S)}
function QC(F,H,G,S){this.r=+F;this.g=+H;this.b=+G;this.opacity=+S}
function Ap(F){F=Math.max(0,Math.min(255,Math.round(F)||0));return(F<16?"0":"")+F.toString(16)}
function V5(F,H,G,S){S<=0?F=H=G=NaN:G<=0||G>=1?F=H=NaN:H<=0&&(F=NaN);return new pH(F,H,G,S)}
function Tq(F){if(F instanceof pH)return new pH(F.h,F.s,F.l,F.opacity);F instanceof z1||(F=bz(F));if(!F)return new pH;if(F instanceof pH)return F;F=F.rgb();var H=F.r/255,G=F.g/255,S=F.b/255,Xu=Math.min(H,G,S),od=Math.max(H,G,S),Aq=NaN,KL=od-Xu,xV=(od+Xu)/2;KL?(Aq=H===od?(G-S)/KL+(G<S)*6:G===od?(S-H)/KL+2:(H-G)/KL+4,KL/=xV<.5?od+Xu:2-od-Xu,Aq*=60):KL=xV>0&&xV<1?0:Aq;return new pH(Aq,KL,xV,F.opacity)}
function lt(F,H,G,S){return arguments.length===1?Tq(F):new pH(F,H,G,S==null?1:S)}
function pH(F,H,G,S){this.h=+F;this.s=+H;this.l=+G;this.opacity=+S}
function RH(F,H,G){return(F<60?H+(G-H)*F/60:F<180?G:F<240?H+(G-H)*(240-F)/60:H)*255}
function Mr(F){if(F instanceof ad)return new ad(F.l,F.a,F.b,F.opacity);if(F instanceof iq){if(isNaN(F.h))return new ad(F.l,0,0,F.opacity);var H=F.h*cHH;return new ad(F.l,Math.cos(H)*F.c,Math.sin(H)*F.c,F.opacity)}F instanceof QC||(F=Yq(F));var G=z0(F.r),S=z0(F.g),Xu=z0(F.b);H=Tg(.2225045*G+.7168786*S+.0606169*Xu);if(G===S&&S===Xu)var od=G=H;else od=Tg((.4360747*G+.3850649*S+.1430804*Xu)/.96422),G=Tg((.0139322*G+.0971045*S+.7141733*Xu)/.82521);return new ad(116*H-16,500*(od-H),200*(H-G),F.opacity)}
function ad(F,H,G,S){this.l=+F;this.a=+H;this.b=+G;this.opacity=+S}
function Tg(F){return F>nh3?Math.pow(F,1/3):F/FRi+f3x}
function YV(F){return F>dx?F*F*F:FRi*(F-f3x)}
function d1(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,1/2.4)-.055)}
function z0(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}
function Hv(F){if(F instanceof iq)return new iq(F.h,F.c,F.l,F.opacity);F instanceof ad||(F=Mr(F));if(F.a===0&&F.b===0)return new iq(NaN,0,F.l,F.opacity);var H=Math.atan2(F.b,F.a)*RLR;return new iq(H<0?H+360:H,Math.sqrt(F.a*F.a+F.b*F.b),F.l,F.opacity)}
function oi(F,H,G,S){return arguments.length===1?Hv(F):new iq(F,H,G,S==null?1:S)}
function iq(F,H,G,S){this.h=+F;this.c=+H;this.l=+G;this.opacity=+S}
function W6(F,H,G,S){if(arguments.length===1){var Xu=F;if(Xu instanceof Au)Xu=new Au(Xu.h,Xu.s,Xu.l,Xu.opacity);else{Xu instanceof QC||(Xu=Yq(Xu));var od=Xu.g/255,Aq=Xu.b/255,KL=(TIk*Aq+Xu.r/255*-1.7884503806-3.5172982438*od)/(TIk+-1.7884503806-3.5172982438);Aq-=KL;var xV=(1.97294*(od-KL)- -.29227*Aq)/-.90649;Aq=(od=Math.sqrt(xV*xV+Aq*Aq)/(1.97294*KL*(1-KL)))?Math.atan2(xV,Aq)*RLR-120:NaN;Xu=new Au(Aq<0?Aq+360:Aq,od,KL,Xu.opacity)}}else Xu=new Au(F,H,G,S==null?1:S);return Xu}
function Au(F,H,G,S){this.h=+F;this.s=+H;this.l=+G;this.opacity=+S}
function uk(F,H,G,S,Xu){var od=F*F,Aq=od*F;return((1-3*F+3*od-Aq)*H+(4-6*od+3*Aq)*G+(1+3*F+3*od-3*Aq)*S+Aq*Xu)/6}
function zS(F){return function(){return F}}
function gG(F,H){return function(G){return F+G*H}}
function Al(F,H,G){return F=Math.pow(F,G),H=Math.pow(H,G)-F,G=1/G,function(S){return Math.pow(F+S*H,G)}}
function Tu(F,H){var G=H-F;return G?gG(F,G>180||G<-180?G-360*Math.round(G/360):G):zS(isNaN(F)?H:F)}
function AD(F){return(F=+F)===1?vk:function(H,G){return G-H?Al(H,G,F):zS(isNaN(H)?G:H)}}
function vk(F,H){var G=H-F;return G?gG(F,G):zS(isNaN(F)?H:F)}
function p1(F){return function(H){var G=H.length,S=Array(G),Xu=Array(G),od=Array(G),Aq;for(Aq=0;Aq<G;++Aq){var KL=mH(H[Aq]);S[Aq]=KL.r||0;Xu[Aq]=KL.g||0;od[Aq]=KL.b||0}S=F(S);Xu=F(Xu);od=F(od);KL.opacity=1;return function(xV){KL.r=S(xV);KL.g=Xu(xV);KL.b=od(xV);return KL+""}}}
function LL(F,H){return F=+F,H-=F,function(G){return F+H*G}}
function Mo(F){return function(){return F}}
function Bh(F){return function(H){return F(H)+""}}
function KP(F,H){var G=UBg.lastIndex=Yfq.lastIndex=0,S,Xu,od,Aq=-1,KL=[],xV=[];F+="";for(H+="";(S=UBg.exec(F))&&(Xu=Yfq.exec(H));)(od=Xu.index)>G&&(od=H.slice(G,od),KL[Aq]?KL[Aq]+=od:KL[++Aq]=od),(S=S[0])===(Xu=Xu[0])?KL[Aq]?KL[Aq]+=Xu:KL[++Aq]=Xu:(KL[++Aq]=null,xV.push({i:Aq,x:LL(S,Xu)})),G=Yfq.lastIndex;G<H.length&&(od=H.slice(G),KL[Aq]?KL[Aq]+=od:KL[++Aq]=od);return KL.length<2?xV[0]?Bh(xV[0].x):Mo(H):(H=xV.length,function(DW){for(var lq=0,Mi;lq<H;++lq)KL[(Mi=xV[lq]).i]=Mi.x(DW);return KL.join("")})}
function xe(F,H,G,S,Xu,od){var Aq,KL,xV;if(Aq=Math.sqrt(F*F+H*H))F/=Aq,H/=Aq;if(xV=F*G+H*S)G-=F*xV,S-=H*xV;if(KL=Math.sqrt(G*G+S*S))G/=KL,S/=KL,xV/=KL;F*S<H*G&&(F=-F,H=-H,xV=-xV,Aq=-Aq);return{translateX:Xu,translateY:od,rotate:Math.atan2(H,F)*stq,skewX:Math.atan(xV)*stq,scaleX:Aq,scaleY:KL}}
function Iz(F,H,G,S){function Xu(DW){return DW.length?DW.pop()+" ":""}
function od(DW,lq,Mi,LR,$4,Wv){DW!==Mi||lq!==LR?($4=$4.push("translate(",null,H,null,G),Wv.push({i:$4-4,x:LL(DW,Mi)},{i:$4-2,x:LL(lq,LR)})):(Mi||LR)&&$4.push("translate("+Mi+H+LR+G)}
function Aq(DW,lq,Mi,LR){DW!==lq?(DW-lq>180?lq+=360:lq-DW>180&&(DW+=360),LR.push({i:Mi.push(Xu(Mi)+"rotate(",null,S)-2,x:LL(DW,lq)})):lq&&Mi.push(Xu(Mi)+"rotate("+lq+S)}
function KL(DW,lq,Mi,LR){DW!==lq?LR.push({i:Mi.push(Xu(Mi)+"skewX(",null,S)-2,x:LL(DW,lq)}):lq&&Mi.push(Xu(Mi)+"skewX("+lq+S)}
function xV(DW,lq,Mi,LR,$4,Wv){DW!==Mi||lq!==LR?($4=$4.push(Xu($4)+"scale(",null,",",null,")"),Wv.push({i:$4-4,x:LL(DW,Mi)},{i:$4-2,x:LL(lq,LR)})):Mi===1&&LR===1||$4.push(Xu($4)+"scale("+Mi+","+LR+")")}
return function(DW,lq){var Mi=[],LR=[];DW=F(DW);lq=F(lq);od(DW.translateX,DW.translateY,lq.translateX,lq.translateY,Mi,LR);Aq(DW.rotate,lq.rotate,Mi,LR);KL(DW.skewX,lq.skewX,Mi,LR);xV(DW.scaleX,DW.scaleY,lq.scaleX,lq.scaleY,Mi,LR);DW=lq=null;return function($4){for(var Wv=-1,sN=LR.length,Az;++Wv<sN;)Mi[(Az=LR[Wv]).i]=Az.x($4);return Mi.join("")}}}
function CJ(F){return function(H,G){var S=F((H=lt(H)).h,(G=lt(G)).h),Xu=vk(H.s,G.s),od=vk(H.l,G.l),Aq=vk(H.opacity,G.opacity);return function(KL){H.h=S(KL);H.s=Xu(KL);H.l=od(KL);H.opacity=Aq(KL);return H+""}}}
function cn(F){return function(H,G){var S=F((H=oi(H)).h,(G=oi(G)).h),Xu=vk(H.c,G.c),od=vk(H.l,G.l),Aq=vk(H.opacity,G.opacity);return function(KL){H.h=S(KL);H.c=Xu(KL);H.l=od(KL);H.opacity=Aq(KL);return H+""}}}
function Fi(F){return function S(G){function Xu(od,Aq){var KL=F((od=W6(od)).h,(Aq=W6(Aq)).h),xV=vk(od.s,Aq.s),DW=vk(od.l,Aq.l),lq=vk(od.opacity,Aq.opacity);return function(Mi){od.h=KL(Mi);od.s=xV(Mi);od.l=DW(Math.pow(Mi,G));od.opacity=lq(Mi);return od+""}}
G=+G;Xu.gamma=S;return Xu}(1)}
function fC(){return Ez||(GxR(h48),Ez=SL.now()+ZSg)}
function h48(){Ez=0}
function Rl(){this._call=this._time=this._next=null}
function rz(F,H,G){var S=new Rl;S.restart(F,H,G);return S}
function Do(){Ez=(u7L=SL.now())+ZSg;gx=Qc=0;try{fC();++gx;for(var F=CJq,H;F;)(H=Ez-F._time)>=0&&F._call.call(null,H),F=F._next;--gx}finally{gx=0;F=CJq;for(var G=Infinity;F;)if(F._call){G>F._time&&(G=F._time);var S=F;F=F._next}else H=F._next,F._next=null,F=S?S._next=H:CJq=H;xc=S;SP(G);Ez=0}}
function aPq(){var F=SL.now(),H=F-u7L;H>1E3&&(ZSg-=H,u7L=F)}
function SP(F){gx||(Qc&&(Qc=clearTimeout(Qc)),F-Ez>24?(F<Infinity&&(Qc=setTimeout(Do,F-SL.now()-ZSg)),lT&&(lT=clearInterval(lT))):(lT||(u7L=SL.now(),lT=setInterval(aPq,1E3)),gx=1,GxR(Do)))}
function BIH(F,H,G){var S=new Rl;H=H==null?0:+H;S.restart(function(Xu){S.stop();F(Xu+H)},H,G);
return S}
function hLx(F,H,G,S,Xu,od){var Aq=F.__transition;if(!Aq)F.__transition={};else if(G in Aq)return;aZz(F,G,{name:H,index:S,group:Xu,on:k8o,tween:IZ0,time:od.time,delay:od.delay,duration:od.duration,ease:od.ease,timer:null,state:0})}
function LRV(F,H){F=Ek(F,H);if(F.state>0)throw Error("te");return F}
function JQ(F,H){F=Ek(F,H);if(F.state>2)throw Error("ue");return F}
function Ek(F,H){F=F.__transition;if(!F||!(F=F[H]))throw Error("ve");return F}
function aZz(F,H,G){function S(xV){var DW,lq;if(G.state!==1)return od();for(LR in Aq){var Mi=Aq[LR];if(Mi.name===G.name){if(Mi.state===3)return BIH(S);Mi.state===4?(Mi.state=6,Mi.timer.stop(),Mi.on.call("interrupt",F,F.__data__,Mi.index,Mi.group),delete Aq[LR]):+LR<H&&(Mi.state=6,Mi.timer.stop(),delete Aq[LR])}}BIH(function(){G.state===3&&(G.state=4,G.timer.restart(Xu,G.delay,G.time),Xu(xV))});
G.state=2;G.on.call("start",F,F.__data__,G.index,G.group);if(G.state===2){G.state=3;KL=Array(lq=G.tween.length);var LR=0;for(DW=-1;LR<lq;++LR)if(Mi=G.tween[LR].value.call(F,F.__data__,G.index,G.group))KL[++DW]=Mi;KL.length=DW+1}}
function Xu(xV){xV=xV<G.duration?G.ease.call(null,xV/G.duration):(G.timer.restart(od),G.state=5,1);for(var DW=-1,lq=KL.length;++DW<lq;)KL[DW].call(null,xV);G.state===5&&(G.on.call("end",F,F.__data__,G.index,G.group),od())}
function od(){G.state=6;G.timer.stop();delete Aq[H];for(var xV in Aq)return;delete F.__transition}
var Aq=F.__transition,KL;Aq[H]=G;G.timer=rz(function(xV){G.state=1;G.timer.restart(S,G.delay,G.time);G.delay<=xV&&S(xV-G.delay)},0,G.time)}
function m3u(F,H){var G,S;return function(){var Xu=JQ(this,F),od=Xu.tween;if(od!==G){S=G=od;od=0;for(var Aq=S.length;od<Aq;++od)if(S[od].name===H){S=S.slice();S.splice(od,1);break}}Xu.tween=S}}
function yZF(F,H,G){var S,Xu;if(typeof G!=="function")throw Error();return function(){var od=JQ(this,F),Aq=od.tween;if(Aq!==S){Xu=(S=Aq).slice();Aq={name:H,value:G};for(var KL=0,xV=Xu.length;KL<xV;++KL)if(Xu[KL].name===H){Xu[KL]=Aq;break}KL===xV&&Xu.push(Aq)}od.tween=Xu}}
function tJx(F,H,G){var S=F._id;F.each(function(){var Xu=JQ(this,S);(Xu.value||(Xu.value={}))[H]=G.apply(this,arguments)});
return function(Xu){return Ek(Xu,S).value[H]}}
function Paq(F,H){var G;return(typeof H==="number"?LL:H instanceof bz?UBS:(G=bz(H))?(H=G,UBS):KP)(F,H)}
function pW4(F){return function(){this.removeAttribute(F)}}
function Kyf(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function j_3(F,H,G){var S,Xu;return function(){var od=this.getAttribute(F);return od===G?null:od===S?Xu:Xu=H(S=od,G)}}
function H2f(F,H,G){var S,Xu;return function(){var od=this.getAttributeNS(F.space,F.local);return od===G?null:od===S?Xu:Xu=H(S=od,G)}}
function cZH(F,H,G){var S,Xu,od;return function(){var Aq=G(this);if(Aq==null)return void this.removeAttribute(F);var KL=this.getAttribute(F);return KL===Aq?null:KL===S&&Aq===Xu?od:od=H(S=KL,Xu=Aq)}}
function FyF(F,H,G){var S,Xu,od;return function(){var Aq=G(this);if(Aq==null)return void this.removeAttributeNS(F.space,F.local);var KL=this.getAttributeNS(F.space,F.local);return KL===Aq?null:KL===S&&Aq===Xu?od:od=H(S=KL,Xu=Aq)}}
function fZ0(F,H){function G(){var S=this,Xu=H.apply(S,arguments);return Xu&&function(od){S.setAttributeNS(F.space,F.local,Xu(od))}}
G._value=H;return G}
function R1h(F,H){function G(){var S=this,Xu=H.apply(S,arguments);return Xu&&function(od){S.setAttribute(F,Xu(od))}}
G._value=H;return G}
function TsP(F,H){return function(){LRV(this,F).delay=+H.apply(this,arguments)}}
function s_4(F,H){return H=+H,function(){LRV(this,F).delay=H}}
function G8F(F,H){return function(){JQ(this,F).duration=+H.apply(this,arguments)}}
function BsP(F,H){return H=+H,function(){JQ(this,F).duration=H}}
function Pv4(F,H){if(typeof H!=="function")throw Error();return function(){JQ(this,F).ease=H}}
function U3P(F){return(F+"").trim().split(/^|\s+/).every(function(H){var G=H.indexOf(".");G>=0&&(H=H.slice(0,G));return!H||H==="start"})}
function Y9H(F,H,G){var S,Xu,od=U3P(H)?LRV:JQ;return function(){var Aq=od(this,F),KL=Aq.on;if(KL!==S)(Xu=(S=KL).copy()).on(H,G);Aq.on=Xu}}
function h1z(F){return function(){var H=this.parentNode,G;for(G in this.__transition)if(+G!==F)return;H&&H.removeChild(this)}}
function Lyu(F,H){var G,S,Xu;return function(){var od=jM(this,F),Aq=(this.style.removeProperty(F),jM(this,F));return od===Aq?null:od===G&&Aq===S?Xu:Xu=H(G=od,S=Aq)}}
function tR0(F){return function(){this.style.removeProperty(F)}}
function q9O(F,H,G){var S,Xu;return function(){var od=jM(this,F);return od===G?null:od===S?Xu:Xu=H(S=od,G)}}
function vh0(F,H,G){var S,Xu,od;return function(){var Aq=jM(this,F),KL=G(this);KL==null&&(KL=(this.style.removeProperty(F),jM(this,F)));return Aq===KL?null:Aq===S&&KL===Xu?od:od=H(S=Aq,Xu=KL)}}
function Ns0(F,H,G){function S(){var Xu=this,od=H.apply(Xu,arguments);return od&&function(Aq){Xu.style.setProperty(F,od(Aq),G)}}
S._value=H;return S}
function rZF(F){return function(){this.textContent=F}}
function D3O(F){return function(){var H=F(this);this.textContent=H==null?"":H}}
function CQ(F,H,G,S){this._groups=F;this._parents=H;this._name=G;this._id=S}
function qfx(F){return{type:F}}
function vnt(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function oo2(){}
function YfC(F,H){var G=new oo2;if(F instanceof oo2)F.each(function(Aq,KL){G.set(KL,Aq)});
else if(Array.isArray(F)){var S=-1,Xu=F.length,od;if(H==null)for(;++S<Xu;)G.set(S,F[S]);else for(;++S<Xu;)G.set(H(od=F[S],S,F),od)}else if(F)for(S in F)G.set(S,F[S]);return G}
function $aT(){}
function hL6(F){return function(H){for(var G={},S=0;S<F.length;S++)G[F[S]]=H[S]||"";return G}}
function S90(F,H){var G=hL6(F);return function(S,Xu){return H(G(S),Xu,F)}}
function Q_O(F){var H=Object.create(null),G=[];F.forEach(function(S){for(var Xu in S)Xu in H||G.push(H[Xu]=Xu)});
return G}
function LRq(F){function H(Aq,KL){function xV(){if(Wv)return NI8;if(sN)return sN=!1,tJ1;var Ku,BD=Mi,OG;if(Aq.charCodeAt(BD)===34){for(;Mi++<lq&&Aq.charCodeAt(Mi)!==34||Aq.charCodeAt(++Mi)===34;);(Ku=Mi)>=lq?Wv=!0:(OG=Aq.charCodeAt(Mi++))===10?sN=!0:OG===13&&(sN=!0,Aq.charCodeAt(Mi)===10&&++Mi);return Aq.slice(BD+1,Ku-1).replace(/""/g,'"')}for(;Mi<lq;){if((OG=Aq.charCodeAt(Ku=Mi++))===10)sN=!0;else if(OG===13)sN=!0,Aq.charCodeAt(Mi)===10&&++Mi;else if(OG!==od)continue;return Aq.slice(BD,Ku)}return Wv=
!0,Aq.slice(BD,lq)}
var DW=[],lq=Aq.length,Mi=0,LR=0,$4,Wv=lq<=0,sN=!1;Aq.charCodeAt(lq-1)===10&&--lq;for(Aq.charCodeAt(lq-1)===13&&--lq;($4=xV())!==NI8;){for(var Az=[];$4!==tJ1&&$4!==NI8;)Az.push($4),$4=xV();KL&&(Az=KL(Az,LR++))==null||DW.push(Az)}return DW}
function G(Aq){return Aq.map(S).join(F)}
function S(Aq){return Aq==null?"":Xu.test(Aq)?'"'+Aq.replace(/"/g,'""')+'"':Aq}
var Xu=new RegExp('["'+F+"\n\r]"),od=F.charCodeAt(0);return{parse:function(Aq,KL){var xV,DW;Aq=H(Aq,function(lq,Mi){if(xV)return xV(lq,Mi-1);DW=lq;xV=KL?S90(lq,KL):hL6(lq)});
Aq.columns=DW||[];return Aq},
parseRows:H,format:function(Aq,KL){KL==null&&(KL=Q_O(Aq));return[KL.map(S).join(F)].concat(Aq.map(function(xV){return KL.map(function(DW){return S(xV[DW])}).join(F)})).join("\n")},
formatRows:function(Aq){return Aq.map(G).join("\n")}}}
function x30(F){if(!F.ok)throw Error("we`"+F.status+"`"+F.statusText);return F.text()}
function qf1(F){return function(H,G,S){arguments.length===2&&typeof G==="function"&&(S=G,G=void 0);return fetch(H,G).then(x30).then(function(Xu){return F(Xu,S)})}}
function vnF(F,H,G,S){if(isNaN(H)||isNaN(G))return F;var Xu,od=F._root;S={data:S};var Aq=F._x0,KL=F._y0,xV=F._x1,DW=F._y1,lq,Mi,LR,$4,Wv;if(!od)return F._root=S,F;for(;od.length;)if((LR=H>=(lq=(Aq+xV)/2))?Aq=lq:xV=lq,($4=G>=(Mi=(KL+DW)/2))?KL=Mi:DW=Mi,Xu=od,!(od=od[Wv=$4<<1|LR]))return Xu[Wv]=S,F;var sN=+F._x.call(null,od.data);var Az=+F._y.call(null,od.data);if(H===sN&&G===Az)return S.next=od,Xu?Xu[Wv]=S:F._root=S,F;do Xu=Xu?Xu[Wv]=Array(4):F._root=Array(4),(LR=H>=(lq=(Aq+xV)/2))?Aq=lq:xV=lq,($4=
G>=(Mi=(KL+DW)/2))?KL=Mi:DW=Mi;while((Wv=$4<<1|LR)===(LR=(Az>=Mi)<<1|sN>=lq));return Xu[LR]=od,Xu[Wv]=S,F}
function n0(F,H,G,S,Xu){this.node=F;this.x0=H;this.y0=G;this.x1=S;this.y1=Xu}
function lm3(F){return F[0]}
function e9P(F){return F[1]}
function rHq(F,H,G,S,Xu,od){this._x=F;this._y=H;this._x0=G;this._y0=S;this._x1=Xu;this._y1=od;this._root=void 0}
function NIH(F){for(var H={data:F.data},G=H;F=F.next;)G=G.next={data:F.data};return H}
function WFx(F,H){if((H=(F=H?F.toExponential(H-1):F.toExponential()).indexOf("e"))<0)return null;var G=F.slice(0,H);return[G.length>1?G[0]+G.slice(2):G,+F.slice(H+1)]}
function O34(F){return F=WFx(Math.abs(F)),F?F[1]:NaN}
function EM4(F,H){return function(G,S){for(var Xu=G.length,od=[],Aq=0,KL=F[0],xV=0;Xu>0&&KL>0;){xV+KL+1>S&&(KL=Math.max(1,S-xV));od.push(G.substring(Xu-=KL,Xu+KL));if((xV+=KL+1)>S)break;KL=F[Aq=(Aq+1)%F.length]}return od.reverse().join(H)}}
function Jru(F){return function(H){return H.replace(/[0-9]/g,function(G){return F[+G]})}}
function DBA(F){return new Sf8(F)}
function Sf8(F){if(!(H=XYF.exec(F)))throw Error("xe`"+F);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 rHC(F,H){H=WFx(F,H);if(!H)return F+"";F=H[0];H=H[1];return H<0?"0."+Array(-H).join("0")+F:F.length>H+1?F.slice(0,H+1)+"."+F.slice(H+1):F+Array(H-F.length+2).join("0")}
function DBi(F){return F}
function z9F(F){function H(KL){function xV(vv){var rL=OG,j3=mf,MH,Oj;if(BD==="c")j3=PD(vv)+j3,vv="";else{vv=+vv;var gf=vv<0;vv=PD(Math.abs(vv),Az);if(Ku){var Th=vv.length,dA=1,jt=-1;a:for(;dA<Th;++dA)switch(vv[dA]){case ".":jt=MH=dA;break;case "0":jt===0&&(jt=dA);MH=dA;break;default:if(!+vv[dA])break a;jt>0&&(jt=0)}vv=jt>0?vv.slice(0,jt)+vv.slice(MH+1):vv}gf&&+vv===0&&(gf=!1);rL=(gf?Mi==="("?Mi:"-":Mi==="-"||Mi==="("?"":Mi)+rL;j3=(BD==="s"?SfH[8+QtS/3]:"")+j3+(gf&&Mi==="("?")":"");if(o7)for(gf=-1,
MH=vv.length;++gf<MH;)if(Oj=vv.charCodeAt(gf),48>Oj||Oj>57){j3=(Oj===46?Xu+vv.slice(gf+1):vv.slice(gf))+j3;vv=vv.slice(0,gf);break}}sN&&!$4&&(vv=G(vv,Infinity));Oj=rL.length+vv.length+j3.length;gf=Oj<Wv?Array(Wv-Oj+1).join(DW):"";sN&&$4&&(vv=G(gf+vv,gf.length?Wv-j3.length:Infinity),gf="");switch(lq){case "<":vv=rL+vv+j3+gf;break;case "=":vv=rL+gf+vv+j3;break;case "^":vv=gf.slice(0,Oj=gf.length>>1)+rL+vv+j3+gf.slice(Oj);break;default:vv=gf+rL+vv+j3}return od(vv)}
KL=DBA(KL);var DW=KL.fill,lq=KL.align,Mi=KL.sign,LR=KL.symbol,$4=KL.zero,Wv=KL.width,sN=KL.comma,Az=KL.precision,Ku=KL.trim,BD=KL.type;BD==="n"?(sN=!0,BD="g"):xBk[BD]||(Az==null&&(Az=12),Ku=!0,BD="g");if($4||DW==="0"&&lq==="=")$4=!0,DW="0",lq="=";var OG=LR==="$"?S[0]:LR==="#"&&/[boxX]/.test(BD)?"0"+BD.toLowerCase():"",mf=LR==="$"?S[1]:/[%p]/.test(BD)?Aq:"",PD=xBk[BD],o7=/[defgprs%]/.test(BD);Az=Az==null?6:/[gprs]/.test(BD)?Math.max(1,Math.min(21,Az)):Math.max(0,Math.min(20,Az));xV.toString=function(){return KL+
""};
return xV}
var G=F.grouping&&F.thousands?EM4(F.grouping,F.thousands):DBi,S=F.currency,Xu=F.decimal,od=F.numerals?Jru(F.numerals):DBi,Aq=F.percent||"%";return{format:H,formatPrefix:function(KL,xV){var DW=H((KL=DBA(KL),KL.type="f",KL));KL=Math.max(-8,Math.min(8,Math.floor(O34(xV)/3)))*3;var lq=Math.pow(10,-KL),Mi=SfH[8+KL/3];return function(LR){return DW(lq*LR)+Mi}}}}
function QQ(){this.reset()}
function lYk(F,H,G){var S=F.s=H+G,Xu=S-H;F.t=H-(S-Xu)+(G-Xu)}
function daL(F){return F>1?W1:F<-1?-W1:Math.asin(F)}
function b34(){}
function e2q(F){var H=F[0];F=F[1];var G=d$(F);return[G*d$(H),G*eo(H),eo(F)]}
function Ooq(F,H){return[F[1]*H[2]-F[2]*H[1],F[2]*H[0]-F[0]*H[2],F[0]*H[1]-F[1]*H[0]]}
function EkR(F){var H=gou(F[0]*F[0]+F[1]*F[1]+F[2]*F[2]);F[0]/=H;F[1]/=H;F[2]/=H}
function Mau(){var F=[],H;return{point:function(G,S){H.push([G,S])},
lineStart:function(){F.push(H=[])},
lineEnd:b34,rejoin:function(){F.length>1&&F.push(F.pop().concat(F.shift()))},
result:function(){var G=F;F=[];H=null;return G}}}
function iSq(F,H,G,S){this.x=F;this.z=H;this.o=G;this.e=S;this.v=!1;this.n=this.p=null}
function Vaz(F,H,G,S,Xu){var od=[],Aq=[];F.forEach(function(Mi){if(!((LR=Mi.length-1)<=0)){var LR,$4=Mi[0],Wv=Mi[LR],sN=$4;if(o3(sN[0]-Wv[0])<1E-6&&o3(sN[1]-Wv[1])<1E-6){Xu.lineStart();for(KL=0;KL<LR;++KL)Xu.point(($4=Mi[KL])[0],$4[1]);Xu.lineEnd()}else od.push(LR=new iSq($4,Mi,null,!0)),Aq.push(LR.o=new iSq($4,null,LR,!1)),od.push(LR=new iSq(Wv,Mi,null,!1)),Aq.push(LR.o=new iSq(Wv,null,LR,!0))}});
if(od.length){Aq.sort(H);JJS(od);JJS(Aq);var KL=0;for(F=Aq.length;KL<F;++KL)Aq[KL].e=G=!G;G=od[0];for(var xV;;){for(var DW=G,lq=!0;DW.v;)if((DW=DW.n)===G)return;H=DW.z;Xu.lineStart();do{DW.v=DW.o.v=!0;if(DW.e){if(lq)for(KL=0,F=H.length;KL<F;++KL)Xu.point((xV=H[KL])[0],xV[1]);else S(DW.x,DW.n.x,1,Xu);DW=DW.n}else{if(lq)for(H=DW.p.z,KL=H.length-1;KL>=0;--KL)Xu.point((xV=H[KL])[0],xV[1]);else S(DW.x,DW.p.x,-1,Xu);DW=DW.p}DW=DW.o;H=DW.z;lq=!lq}while(!DW.v);Xu.lineEnd()}}}
function JJS(F){if(H=F.length){for(var H,G=0,S=F[0],Xu;++G<H;)S.n=Xu=F[G],Xu.p=S,S=Xu;S.n=Xu=F[0];Xu.p=S}}
function Z3u(F){return F.length>1}
function uDz(F,H){return((F=F.x)[0]<0?F[1]-W1-1E-6:W1-F[1])-((H=H.x)[0]<0?H[1]-W1-1E-6:W1-H[1])}
function Qtg(){}
function Xy0(F){return function(H,G){var S=d$(H),Xu=d$(G);S=F(S*Xu);return[S*Xu*eo(H),S*eo(G)]}}
function eu(F){return function(H,G){var S=gou(H*H+G*G),Xu=F(S),od=eo(Xu);Xu=d$(Xu);return[z2F(H*od,S*Xu),daL(S&&G*od/S)]}}
function CQi(F){var H=0,G=F.children,S=G&&G.length;if(S)for(;--S>=0;)H+=G[S].value;else H=1;F.value=H}
function bok(F,H){var G=new Oc(F);F=+F.value&&(G.value=F.value);var S,Xu=[G],od,Aq,KL,xV;for(H==null&&(H=oMF);S=Xu.pop();)if(F&&(S.value=+S.data.value),(Aq=H(S.data))&&(xV=Aq.length))for(S.children=Array(xV),KL=xV-1;KL>=0;--KL)Xu.push(od=S.children[KL]=new Oc(Aq[KL])),od.parent=S,od.depth=S.depth+1;return G.eachBefore($Cu)}
function oMF(F){return F.children}
function W43(F){F.data=F.data.data}
function $Cu(F){var H=0;do F.height=H;while((F=F.parent)&&F.height<++H)}
function Oc(F){this.data=F;this.depth=this.height=0;this.parent=null}
function r4(F,H,G,S){function Xu(od){return F(od=new Date(+od)),od}
Xu.floor=Xu;Xu.ceil=function(od){return F(od=new Date(od-1)),H(od,1),F(od),od};
Xu.round=function(od){var Aq=Xu(od),KL=Xu.ceil(od);return od-Aq<KL-od?Aq:KL};
Xu.offset=function(od,Aq){return H(od=new Date(+od),Aq==null?1:Math.floor(Aq)),od};
Xu.range=function(od,Aq,KL){var xV=[],DW;od=Xu.ceil(od);KL=KL==null?1:Math.floor(KL);if(!(od<Aq&&KL>0))return xV;do xV.push(DW=new Date(+od)),H(od,KL),F(od);while(DW<od&&od<Aq);return xV};
Xu.filter=function(od){return r4(function(Aq){if(Aq>=Aq)for(;F(Aq),!od(Aq);)Aq.setTime(Aq-1)},function(Aq,KL){if(Aq>=Aq)if(KL<0)for(;++KL<=0;)for(;H(Aq,-1),!od(Aq););
else for(;--KL>=0;)for(;H(Aq,1),!od(Aq););})};
G&&(Xu.count=function(od,Aq){xBu.setTime(+od);lYu.setTime(+Aq);F(xBu);F(lYu);return Math.floor(G(xBu,lYu))},Xu.every=function(od){od=Math.floor(od);
return isFinite(od)&&od>0?od>1?Xu.filter(S?function(Aq){return S(Aq)%od===0}:function(Aq){return Xu.count(0,Aq)%od===0}):Xu:null});
return Xu}
function X3(F){return r4(function(H){H.setDate(H.getDate()-(H.getDay()+7-F)%7);H.setHours(0,0,0,0)},function(H,G){H.setDate(H.getDate()+G*7)},function(H,G){return(G-H-(G.getTimezoneOffset()-H.getTimezoneOffset())*6E4)/6048E5})}
function zm(F){return r4(function(H){H.setUTCDate(H.getUTCDate()-(H.getUTCDay()+7-F)%7);H.setUTCHours(0,0,0,0)},function(H,G){H.setUTCDate(H.getUTCDate()+G*7)},function(H,G){return(G-H)/6048E5})}
function dCi(F){if(0<=F.y&&F.y<100){var H=new Date(-1,F.m,F.d,F.H,F.M,F.S,F.L);H.setFullYear(F.y);return H}return new Date(F.y,F.m,F.d,F.H,F.M,F.S,F.L)}
function w3A(F){if(0<=F.y&&F.y<100){var H=new Date(Date.UTC(-1,F.m,F.d,F.H,F.M,F.S,F.L));H.setUTCFullYear(F.y);return H}return new Date(Date.UTC(F.y,F.m,F.d,F.H,F.M,F.S,F.L))}
function Ec(F){return{y:F,m:0,d:1,H:0,M:0,S:0,L:0}}
function gMz(F){function H(j3,MH){return function(Oj){var gf=[],Th=-1,dA=0,jt=j3.length,eD,fi;for(Oj instanceof Date||(Oj=new Date(+Oj));++Th<jt;)if(j3.charCodeAt(Th)===37){gf.push(j3.slice(dA,Th));(dA=MZS[eD=j3.charAt(++Th)])!=null?eD=j3.charAt(++Th):dA=eD==="e"?" ":"0";if(fi=MH[eD])eD=fi(Oj,dA);gf.push(eD);dA=Th+1}gf.push(j3.slice(dA,Th));return gf.join("")}}
function G(j3,MH){return function(Oj){var gf=Ec(1900);if(S(gf,j3,Oj,0)!=Oj.length)return null;if("Q"in gf)return new Date(gf.Q);"p"in gf&&(gf.H=gf.H%12+gf.p*12);if("V"in gf){if(gf.V<1||gf.V>53)return null;"w"in gf||(gf.w=1);if("Z"in gf){Oj=w3A(Ec(gf.y));var Th=Oj.getUTCDay();Oj=Th>4||Th===0?e22.ceil(Oj):e22(Oj);Oj=VZC.offset(Oj,(gf.V-1)*7);gf.y=Oj.getUTCFullYear();gf.m=Oj.getUTCMonth();gf.d=Oj.getUTCDate()+(gf.w+6)%7}else Oj=MH(Ec(gf.y)),Th=Oj.getDay(),Oj=Th>4||Th===0?Ood.ceil(Oj):Ood(Oj),Oj=Zok.offset(Oj,
(gf.V-1)*7),gf.y=Oj.getFullYear(),gf.m=Oj.getMonth(),gf.d=Oj.getDate()+(gf.w+6)%7}else if("W"in gf||"U"in gf)"w"in gf||(gf.w="u"in gf?gf.u%7:"W"in gf?1:0),Th="Z"in gf?w3A(Ec(gf.y)).getUTCDay():MH(Ec(gf.y)).getDay(),gf.m=0,gf.d="W"in gf?(gf.w+6)%7+gf.W*7-(Th+5)%7:gf.w+gf.U*7-(Th+6)%7;return"Z"in gf?(gf.H+=gf.Z/100|0,gf.M+=gf.Z%100,w3A(gf)):MH(gf)}}
function S(j3,MH,Oj,gf){for(var Th=0,dA=MH.length,jt=Oj.length,eD;Th<dA;){if(gf>=jt)return-1;eD=MH.charCodeAt(Th++);if(eD===37){if(eD=MH.charAt(Th++),eD=rL[eD in MZS?MH.charAt(Th++):eD],!eD||(gf=eD(j3,Oj,gf))<0)return-1}else if(eD!=Oj.charCodeAt(gf++))return-1}return gf}
var Xu=F.dateTime,od=F.date,Aq=F.time,KL=F.periods,xV=F.days,DW=F.shortDays,lq=F.months,Mi=F.shortMonths,LR=JS(KL),$4=XH(KL),Wv=JS(xV),sN=XH(xV),Az=JS(DW),Ku=XH(DW),BD=JS(lq),OG=XH(lq),mf=JS(Mi),PD=XH(Mi),o7={a:function(j3){return DW[j3.getDay()]},
A:function(j3){return xV[j3.getDay()]},
b:function(j3){return Mi[j3.getMonth()]},
B:function(j3){return lq[j3.getMonth()]},
c:null,d:u11,e:u11,f:i3h,H:wYh,I:Ar0,j:nMu,L:CI6,m:amf,M:kPf,p:function(j3){return KL[+(j3.getHours()>=12)]},
Q:okq,s:$ZF,S:Imo,u:mCo,U:yrF,V:pYh,w:K4u,W:jIC,x:null,X:null,y:H3i,Y:crF,Z:F40,"%":Wok},vv={a:function(j3){return DW[j3.getUTCDay()]},
A:function(j3){return xV[j3.getUTCDay()]},
b:function(j3){return Mi[j3.getUTCMonth()]},
B:function(j3){return lq[j3.getUTCMonth()]},
c:null,d:dZS,e:dZS,f:fmz,H:R9P,I:TYu,j:sI4,L:gkF,m:GP4,M:BYo,p:function(j3){return KL[+(j3.getUTCHours()>=12)]},
Q:okq,s:$ZF,S:PQf,u:UCP,U:Y84,V:h94,w:L4h,W:tai,x:null,X:null,y:q8i,Y:vMH,Z:NY4,"%":Wok},rL={a:function(j3,MH,Oj){return(MH=Az.exec(MH.slice(Oj)))?(j3.w=Ku[MH[0].toLowerCase()],Oj+MH[0].length):-1},
A:function(j3,MH,Oj){return(MH=Wv.exec(MH.slice(Oj)))?(j3.w=sN[MH[0].toLowerCase()],Oj+MH[0].length):-1},
b:function(j3,MH,Oj){return(MH=mf.exec(MH.slice(Oj)))?(j3.m=PD[MH[0].toLowerCase()],Oj+MH[0].length):-1},
B:function(j3,MH,Oj){return(MH=BD.exec(MH.slice(Oj)))?(j3.m=OG[MH[0].toLowerCase()],Oj+MH[0].length):-1},
c:function(j3,MH,Oj){return S(j3,Xu,MH,Oj)},
d:ioF,e:ioF,f:rrh,H:wyk,I:wyk,j:DCF,L:S8o,m:QIH,M:xCz,p:function(j3,MH,Oj){return(MH=LR.exec(MH.slice(Oj)))?(j3.p=$4[MH[0].toLowerCase()],Oj+MH[0].length):-1},
Q:lg0,s:eGz,S:Ox0,u:E$4,U:JI0,V:Xo0,w:zGh,W:bxH,x:function(j3,MH,Oj){return S(j3,od,MH,Oj)},
X:function(j3,MH,Oj){return S(j3,Aq,MH,Oj)},
y:M10,Y:V13,Z:ZxC,"%":uVf};o7.x=H(od,o7);o7.X=H(Aq,o7);o7.c=H(Xu,o7);vv.x=H(od,vv);vv.X=H(Aq,vv);vv.c=H(Xu,vv);return{format:function(j3){var MH=H(j3,o7);MH.toString=function(){return j3};
return MH},
parse:function(j3){var MH=G(j3,dCi);MH.toString=function(){return j3};
return MH},
utcFormat:function(j3){var MH=H(j3,vv);MH.toString=function(){return j3};
return MH},
utcParse:function(j3){var MH=G(j3,w3A);MH.toString=function(){return j3};
return MH}}}
function $o(F,H,G){var S=F<0?"-":"";F=(S?-F:F)+"";var Xu=F.length;return S+(Xu<G?Array(G-Xu+1).join(H)+F:F)}
function CZF(F){return F.replace(o$3,"\\$&")}
function JS(F){return new RegExp("^(?:"+F.map(CZF).join("|")+")","i")}
function XH(F){for(var H={},G=-1,S=F.length;++G<S;)H[F[G].toLowerCase()]=G;return H}
function zGh(F,H,G){return(H=EG.exec(H.slice(G,G+1)))?(F.w=+H[0],G+H[0].length):-1}
function E$4(F,H,G){return(H=EG.exec(H.slice(G,G+1)))?(F.u=+H[0],G+H[0].length):-1}
function JI0(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.U=+H[0],G+H[0].length):-1}
function Xo0(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.V=+H[0],G+H[0].length):-1}
function bxH(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.W=+H[0],G+H[0].length):-1}
function V13(F,H,G){return(H=EG.exec(H.slice(G,G+4)))?(F.y=+H[0],G+H[0].length):-1}
function M10(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.y=+H[0]+(+H[0]>68?1900:2E3),G+H[0].length):-1}
function ZxC(F,H,G){return(H=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(H.slice(G,G+6)))?(F.Z=H[1]?0:-(H[2]+(H[3]||"00")),G+H[0].length):-1}
function QIH(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.m=H[0]-1,G+H[0].length):-1}
function ioF(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.d=+H[0],G+H[0].length):-1}
function DCF(F,H,G){return(H=EG.exec(H.slice(G,G+3)))?(F.m=0,F.d=+H[0],G+H[0].length):-1}
function wyk(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.H=+H[0],G+H[0].length):-1}
function xCz(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.M=+H[0],G+H[0].length):-1}
function Ox0(F,H,G){return(H=EG.exec(H.slice(G,G+2)))?(F.S=+H[0],G+H[0].length):-1}
function S8o(F,H,G){return(H=EG.exec(H.slice(G,G+3)))?(F.L=+H[0],G+H[0].length):-1}
function rrh(F,H,G){return(H=EG.exec(H.slice(G,G+6)))?(F.L=Math.floor(H[0]/1E3),G+H[0].length):-1}
function uVf(F,H,G){return(F=$8z.exec(H.slice(G,G+1)))?G+F[0].length:-1}
function lg0(F,H,G){return(H=EG.exec(H.slice(G)))?(F.Q=+H[0],G+H[0].length):-1}
function eGz(F,H,G){return(H=EG.exec(H.slice(G)))?(F.Q=+H[0]*1E3,G+H[0].length):-1}
function u11(F,H){return $o(F.getDate(),H,2)}
function wYh(F,H){return $o(F.getHours(),H,2)}
function Ar0(F,H){return $o(F.getHours()%12||12,H,2)}
function nMu(F,H){return $o(1+Zok.count(i0(F),F),H,3)}
function CI6(F,H){return $o(F.getMilliseconds(),H,3)}
function i3h(F,H){return CI6(F,H)+"000"}
function amf(F,H){return $o(F.getMonth()+1,H,2)}
function kPf(F,H){return $o(F.getMinutes(),H,2)}
function Imo(F,H){return $o(F.getSeconds(),H,2)}
function mCo(F){F=F.getDay();return F===0?7:F}
function yrF(F,H){return $o(Whh.count(i0(F),F),H,2)}
function pYh(F,H){var G=F.getDay();F=G>=4||G===0?EkL(F):EkL.ceil(F);return $o(EkL.count(i0(F),F)+(i0(F).getDay()===4),H,2)}
function K4u(F){return F.getDay()}
function jIC(F,H){return $o(Ood.count(i0(F),F),H,2)}
function H3i(F,H){return $o(F.getFullYear()%100,H,2)}
function crF(F,H){return $o(F.getFullYear()%1E4,H,4)}
function F40(F){F=F.getTimezoneOffset();return(F>0?"-":(F*=-1,"+"))+$o(F/60|0,"0",2)+$o(F%60,"0",2)}
function dZS(F,H){return $o(F.getUTCDate(),H,2)}
function R9P(F,H){return $o(F.getUTCHours(),H,2)}
function TYu(F,H){return $o(F.getUTCHours()%12||12,H,2)}
function sI4(F,H){return $o(1+VZC.count(wx(F),F),H,3)}
function gkF(F,H){return $o(F.getUTCMilliseconds(),H,3)}
function fmz(F,H){return gkF(F,H)+"000"}
function GP4(F,H){return $o(F.getUTCMonth()+1,H,2)}
function BYo(F,H){return $o(F.getUTCMinutes(),H,2)}
function PQf(F,H){return $o(F.getUTCSeconds(),H,2)}
function UCP(F){F=F.getUTCDay();return F===0?7:F}
function Y84(F,H){return $o(d8u.count(wx(F),F),H,2)}
function h94(F,H){var G=F.getUTCDay();F=G>=4||G===0?JJW(F):JJW.ceil(F);return $o(JJW.count(wx(F),F)+(wx(F).getUTCDay()===4),H,2)}
function L4h(F){return F.getUTCDay()}
function tai(F,H){return $o(e22.count(wx(F),F),H,2)}
function q8i(F,H){return $o(F.getUTCFullYear()%100,H,2)}
function vMH(F,H){return $o(F.getUTCFullYear()%1E4,H,4)}
function NY4(){return"+0000"}
function Wok(){return"%"}
function okq(F){return+F}
function $ZF(F){return Math.floor(+F/1E3)}
function XQ(F){for(var H=F.length/6|0,G=Array(H),S=0;S<H;)G[S]="#"+F.slice(S*6,++S*6);return G}
function sB(F){return g$H(F[F.length-1])}
function AFx(F){var H=F.length;return function(G){return F[Math.max(0,Math.min(H-1,Math.floor(G*H)))]}}
function AJC(F){this._context=F}
function nk1(F){this._curve=F}
function aYq(F,H,G){var S=F._x1-F._x0;H-=F._x1;var Xu=(F._y1-F._y0)/(S||H<0&&-0);F=(G-F._y1)/(H||S<0&&-0);return((Xu<0?-1:1)+(F<0?-1:1))*Math.min(Math.abs(Xu),Math.abs(F),.5*Math.abs((Xu*H+F*S)/(S+H)))||0}
function kaC(F,H){var G=F._x1-F._x0;return G?(3*(F._y1-F._y0)/G-H)/2:H}
function XyM(F,H,G){var S=F._x0,Xu=F._x1,od=F._y1,Aq=(Xu-S)/3;F._context.bezierCurveTo(S+Aq,F._y0+Aq*H,Xu-Aq,od-Aq*G,Xu,od)}
function z2t(F){this._context=F}
function IYC(F){this._context=F}
function zb(F,H,G){this.k=F;this.x=H;this.y=G}
(function(F){F.length===1&&(F=e(F));return{left:function(H,G,S,Xu){S==null&&(S=0);Xu==null&&(Xu=H.length);for(;S<Xu;){var od=S+Xu>>>1;F(H[od],G)<0?S=od+1:Xu=od}return S},
right:function(H,G,S,Xu){S==null&&(S=0);Xu==null&&(Xu=H.length);for(;S<Xu;){var od=S+Xu>>>1;F(H[od],G)>0?Xu=od:S=od+1}return S}}})(l);
var Z2u={value:function(){}};
E.prototype=O.prototype={constructor:E,on:function(F,H){var G=this._,S=J(F+"",G),Xu,od=-1,Aq=S.length;if(arguments.length<2)for(;++od<Aq;){var KL;if(KL=Xu=(F=S[od]).type){a:{KL=G[Xu];for(var xV=0,DW=KL.length;xV<DW;++xV)if((Xu=KL[xV]).name===F.name){Xu=Xu.value;break a}Xu=void 0}KL=Xu}if(KL)return Xu}else{if(H!=null&&typeof H!=="function")throw Error("ye`"+H);for(;++od<Aq;)if(Xu=(F=S[od]).type)G[Xu]=z(G[Xu],F.name,H);else if(H==null)for(Xu in G)G[Xu]=z(G[Xu],F.name,null);return this}},
copy:function(){var F={},H=this._,G;for(G in H)F[G]=H[G].slice();return new E(F)},
call:function(F,H){if((Xu=arguments.length-2)>0)for(var G=Array(Xu),S=0,Xu,od;S<Xu;++S)G[S]=arguments[S+2];if(!this._.hasOwnProperty(F))throw Error("se`"+F);od=this._[F];S=0;for(Xu=od.length;S<Xu;++S)od[S].value.apply(H,G)},
apply:function(F,H,G){if(!this._.hasOwnProperty(F))throw Error("se`"+F);F=this._[F];for(var S=0,Xu=F.length;S<Xu;++S)F[S].value.apply(H,G)}};
var $J={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/"},mZS=function(F){return function(){return this.matches(F)}};
if(typeof document!=="undefined"){var bT=document.documentElement;if(!bT.matches){var ixf=bT.webkitMatchesSelector||bT.msMatchesSelector||bT.mozMatchesSelector||bT.oMatchesSelector;mZS=function(F){return function(){return ixf.call(this,F)}}}}var yJ1=mZS;
k.prototype={constructor:k,appendChild:function(F){return this._parent.insertBefore(F,this._next)},
insertBefore:function(F,H){return this._parent.insertBefore(F,H)},
querySelector:function(F){return this._parent.querySelector(F)},
querySelectorAll:function(F){return this._parent.querySelectorAll(F)}};
var jti={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(jti={mouseenter:"mouseover",mouseleave:"mouseout"}));var u40=[null];P6.prototype=wf.prototype={constructor:P6,select:function(F){typeof F!=="function"&&(F=w(F));for(var H=this._groups,G=H.length,S=Array(G),Xu=0;Xu<G;++Xu)for(var od=H[Xu],Aq=od.length,KL=S[Xu]=Array(Aq),xV,DW,lq=0;lq<Aq;++lq)(xV=od[lq])&&(DW=F.call(xV,xV.__data__,lq,od))&&("__data__"in xV&&(DW.__data__=xV.__data__),KL[lq]=DW);return new P6(S,this._parents)},
filter:function(F){typeof F!=="function"&&(F=yJ1(F));for(var H=this._groups,G=H.length,S=Array(G),Xu=0;Xu<G;++Xu)for(var od=H[Xu],Aq=od.length,KL=S[Xu]=[],xV,DW=0;DW<Aq;++DW)(xV=od[DW])&&F.call(xV,xV.__data__,DW,od)&&KL.push(xV);return new P6(S,this._parents)},
data:function(F,H){if(!F)return $4=Array(this.size()),DW=-1,this.each(function(BD){$4[++DW]=BD}),$4;
var G=H?f:c,S=this._parents,Xu=this._groups;typeof F!=="function"&&(F=y(F));for(var od=Xu.length,Aq=Array(od),KL=Array(od),xV=Array(od),DW=0;DW<od;++DW){var lq=S[DW],Mi=Xu[DW],LR=Mi.length,$4=F.call(lq,lq&&lq.__data__,DW,S),Wv=$4.length,sN=KL[DW]=Array(Wv),Az=Aq[DW]=Array(Wv);LR=xV[DW]=Array(LR);G(lq,Mi,sN,Az,LR,$4,H);Mi=lq=0;for(var Ku;lq<Wv;++lq)if(LR=sN[lq]){for(lq>=Mi&&(Mi=lq+1);!(Ku=Az[Mi])&&++Mi<Wv;);LR._next=Ku||null}}Aq=new P6(Aq,S);Aq._enter=KL;Aq._exit=xV;return Aq},
exit:function(){return new P6(this._exit||this._groups.map(n),this._parents)},
merge:function(F){var H=this._groups;F=F._groups;for(var G=H.length,S=Math.min(G,F.length),Xu=Array(G),od=0;od<S;++od)for(var Aq=H[od],KL=F[od],xV=Aq.length,DW=Xu[od]=Array(xV),lq,Mi=0;Mi<xV;++Mi)if(lq=Aq[Mi]||KL[Mi])DW[Mi]=lq;for(;od<G;++od)Xu[od]=H[od];return new P6(Xu,this._parents)},
order:function(){for(var F=this._groups,H=-1,G=F.length;++H<G;)for(var S=F[H],Xu=S.length-1,od=S[Xu],Aq;--Xu>=0;)if(Aq=S[Xu])od&&od!==Aq.nextSibling&&od.parentNode.insertBefore(Aq,od),od=Aq;return this},
sort:function(F){function H(Mi,LR){return Mi&&LR?F(Mi.__data__,LR.__data__):!Mi-!LR}
F||(F=P);for(var G=this._groups,S=G.length,Xu=Array(S),od=0;od<S;++od){for(var Aq=G[od],KL=Aq.length,xV=Xu[od]=Array(KL),DW,lq=0;lq<KL;++lq)if(DW=Aq[lq])xV[lq]=DW;xV.sort(H)}return(new P6(Xu,this._parents)).order()},
call:function(){var F=arguments[0];arguments[0]=this;F.apply(null,arguments);return this},
nodes:function(){var F=Array(this.size()),H=-1;this.each(function(){F[++H]=this});
return F},
node:function(){for(var F=this._groups,H=0,G=F.length;H<G;++H)for(var S=F[H],Xu=0,od=S.length;Xu<od;++Xu){var Aq=S[Xu];if(Aq)return Aq}return null},
size:function(){var F=0;this.each(function(){++F});
return F},
empty:function(){return!this.node()},
each:function(F){for(var H=this._groups,G=0,S=H.length;G<S;++G)for(var Xu=H[G],od=0,Aq=Xu.length,KL;od<Aq;++od)(KL=Xu[od])&&F.call(KL,KL.__data__,od,Xu);return this},
attr:function(F,H){var G=M(F);if(arguments.length<2){var S=this.node();return G.local?S.getAttributeNS(G.space,G.local):S.getAttribute(G)}return this.each((H==null?G.local?N:h:typeof H==="function"?G.local?b2:D:G.local?r:t)(G,H))},
style:function(F,H,G){return arguments.length>1?this.each((H==null?$V:typeof H==="function"?mx:gT)(F,H,G==null?"":G)):jM(this.node(),F)},
property:function(F,H){return arguments.length>1?this.each((H==null?cx:typeof H==="function"?Px:tq)(F,H)):this.node()[F]},
text:function(F){return arguments.length?this.each(F==null?S0:(typeof F==="function"?pR:QH)(F)):this.node().textContent},
html:function(F){return arguments.length?this.each(F==null?oq:(typeof F==="function"?Ou:ZS)(F)):this.node().innerHTML},
append:function(F){var H=typeof F==="function"?F:d(F);return this.select(function(){return this.appendChild(H.apply(this,arguments))})},
insert:function(F,H){var G=typeof F==="function"?F:d(F),S=H==null?uq:typeof H==="function"?H:w(H);return this.select(function(){return this.insertBefore(G.apply(this,arguments),S.apply(this,arguments)||null)})},
remove:function(){return this.each(ZV)},
clone:function(F){return this.select(F?V8:jO)},
datum:function(F){return arguments.length?this.property("__data__",F):this.node().__data__},
on:function(F,H,G){var S=tu(F+""),Xu=S.length,od;if(arguments.length<2){var Aq=this.node().__on;if(Aq)for(var KL=0,xV=Aq.length,DW;KL<xV;++KL){var lq=0;for(DW=Aq[KL];lq<Xu;++lq)if((od=S[lq]).type===DW.type&&od.name===DW.name)return DW.value}}else{Aq=H?Ni:kq;G==null&&(G=!1);for(lq=0;lq<Xu;++lq)this.each(Aq(S[lq],H,G));return this}},
dispatch:function(F,H){return this.each((typeof H==="function"?Xk:v6)(F,H))}};
var Cvz=0;w1.prototype=function(){return new w1}.prototype={constructor:w1,
get:function(F){for(var H=this._;!(H in F);)if(!(F=F.parentNode))return;return F[H]},
set:function(F,H){return F[this._]=H},
remove:function(F){return this._ in F&&delete F[this._]},
toString:function(){return this._}};
var AB=1/.7,oh0=/^#([0-9a-f]{3})$/,$3z=/^#([0-9a-f]{6})$/,WyC=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),d3C=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ghh=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),i2F=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*\\)$"),
wWC=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),AZh=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*\\)$"),Hix={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};
KR(z1,bz,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
KR(QC,mH,CP(z1,{brighter:function(F){F=F==null?AB:Math.pow(AB,F);return new QC(this.r*F,this.g*F,this.b*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new QC(this.r*F,this.g*F,this.b*F,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"#"+Ap(this.r)+Ap(this.g)+Ap(this.b)},
toString:function(){var F=this.opacity;F=isNaN(F)?1:Math.max(0,Math.min(1,F));return(F===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))+(F===1?")":", "+F+")")}}));
KR(pH,lt,CP(z1,{brighter:function(F){F=F==null?AB:Math.pow(AB,F);return new pH(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new pH(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=this.h%360+(this.h<0)*360,H=this.l,G=H+(H<.5?H:1-H)*(isNaN(F)||isNaN(this.s)?0:this.s);H=2*H-G;return new QC(RH(F>=240?F-240:F+120,H,G),RH(F,H,G),RH(F<120?F+240:F-120,H,G),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 cHH=Math.PI/180,RLR=180/Math.PI,f3x=4/29,dx=6/29,FRi=3*dx*dx,nh3=dx*dx*dx;KR(ad,function(F,H,G,S){return arguments.length===1?Mr(F):new ad(F,H,G,S==null?1:S)},CP(z1,{brighter:function(F){return new ad(this.l+18*(F==null?1:F),this.a,this.b,this.opacity)},
darker:function(F){return new ad(this.l-18*(F==null?1:F),this.a,this.b,this.opacity)},
rgb:function(){var F=(this.l+16)/116,H=isNaN(this.a)?F:F+this.a/500,G=isNaN(this.b)?F:F-this.b/200;H=.96422*YV(H);F=1*YV(F);G=.82521*YV(G);return new QC(d1(3.1338561*H-1.6168667*F-.4906146*G),d1(-.9787684*H+1.9161415*F+.033454*G),d1(.0719453*H-.2289914*F+1.4052427*G),this.opacity)}}));
KR(iq,oi,CP(z1,{brighter:function(F){return new iq(this.h,this.c,this.l+18*(F==null?1:F),this.opacity)},
darker:function(F){return new iq(this.h,this.c,this.l-18*(F==null?1:F),this.opacity)},
rgb:function(){return Mr(this).rgb()}}));
var TIk=1.78277*-.29227-.1347134789;KR(Au,W6,CP(z1,{brighter:function(F){F=F==null?AB:Math.pow(AB,F);return new Au(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new Au(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=isNaN(this.h)?0:(this.h+120)*cHH,H=+this.l,G=isNaN(this.s)?0:this.s*H*(1-H),S=Math.cos(F);F=Math.sin(F);return new QC(255*(H+G*(-.14861*S+1.78277*F)),255*(H+G*(-.29227*S+-.90649*F)),255*(H+1.97294*S*G),this.opacity)}}));
var UBS=function G(H){function S(od,Aq){var KL=Xu((od=mH(od)).r,(Aq=mH(Aq)).r),xV=Xu(od.g,Aq.g),DW=Xu(od.b,Aq.b),lq=vk(od.opacity,Aq.opacity);return function(Mi){od.r=KL(Mi);od.g=xV(Mi);od.b=DW(Mi);od.opacity=lq(Mi);return od+""}}
var Xu=AD(H);S.gamma=G;return S}(1),g$H=p1(function(H){var G=H.length-1;
return function(S){var Xu=S<=0?S=0:S>=1?(S=1,G-1):Math.floor(S*G),od=H[Xu],Aq=H[Xu+1];return uk((S-Xu/G)*G,Xu>0?H[Xu-1]:2*od-Aq,od,Aq,Xu<G-1?H[Xu+2]:2*Aq-od)}});
p1(function(H){var G=H.length;return function(S){var Xu=Math.floor(((S%=1)<0?++S:S)*G);return uk((S-Xu/G)*G,H[(Xu+G-1)%G],H[Xu%G],H[(Xu+1)%G],H[(Xu+2)%G])}});
var UBg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yfq=new RegExp(UBg.source,"g"),stq=180/Math.PI,bou={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},M2,MZW,pyR,noT,wof=Iz(function(H){if(H==="none")return bou;M2||(M2=document.createElement("DIV"),MZW=document.documentElement,pyR=document.defaultView);M2.style.transform=H;H=pyR.getComputedStyle(MZW.appendChild(M2),null).getPropertyValue("transform");MZW.removeChild(M2);H=H.slice(7,-1).split(",");return xe(+H[0],+H[1],+H[2],+H[3],
+H[4],+H[5])},"px, ","px)","deg)"),AI4=Iz(function(H){if(H==null)return bou;
noT||(noT=document.createElementNS("http://www.w3.org/2000/svg","g"));noT.setAttribute("transform",H);if(!(H=noT.transform.baseVal.consolidate()))return bou;H=H.matrix;return xe(H.a,H.b,H.c,H.d,H.e,H.f)},", ",")",")");
CJ(Tu);CJ(vk);cn(Tu);cn(vk);Fi(Tu);var VZq=Fi(vk),gx=0,Qc=0,lT=0,CJq,xc,u7L=0,Ez=0,ZSg=0,SL=typeof performance==="object"&&performance.now?performance:Date,GxR=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(H){setTimeout(H,17)};
Rl.prototype=rz.prototype={constructor:Rl,restart:function(H,G,S){if(typeof H!=="function")throw new TypeError("ze");S=(S==null?fC():+S)+(G==null?0:+G);this._next||xc===this||(xc?xc._next=this:CJq=this,xc=this);this._call=H;this._time=S;SP()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,SP())}};
var k8o=O("start","end","interrupt"),IZ0=[],n$4=wf.prototype.constructor,Ko0=0,nm=wf.prototype;CQ.prototype=function(H){return wf().transition(H)}.prototype={constructor:CQ,
select:function(H){var G=this._name,S=this._id;typeof H!=="function"&&(H=w(H));for(var Xu=this._groups,od=Xu.length,Aq=Array(od),KL=0;KL<od;++KL)for(var xV=Xu[KL],DW=xV.length,lq=Aq[KL]=Array(DW),Mi,LR,$4=0;$4<DW;++$4)(Mi=xV[$4])&&(LR=H.call(Mi,Mi.__data__,$4,xV))&&("__data__"in Mi&&(LR.__data__=Mi.__data__),lq[$4]=LR,hLx(lq[$4],G,S,$4,lq,Ek(Mi,S)));return new CQ(Aq,this._parents,G,S)},
filter:function(H){typeof H!=="function"&&(H=yJ1(H));for(var G=this._groups,S=G.length,Xu=Array(S),od=0;od<S;++od)for(var Aq=G[od],KL=Aq.length,xV=Xu[od]=[],DW,lq=0;lq<KL;++lq)(DW=Aq[lq])&&H.call(DW,DW.__data__,lq,Aq)&&xV.push(DW);return new CQ(Xu,this._parents,this._name,this._id)},
merge:function(H){if(H._id!==this._id)throw Error();var G=this._groups;H=H._groups;for(var S=G.length,Xu=Math.min(S,H.length),od=Array(S),Aq=0;Aq<Xu;++Aq)for(var KL=G[Aq],xV=H[Aq],DW=KL.length,lq=od[Aq]=Array(DW),Mi,LR=0;LR<DW;++LR)if(Mi=KL[LR]||xV[LR])lq[LR]=Mi;for(;Aq<S;++Aq)od[Aq]=G[Aq];return new CQ(od,this._parents,this._name,this._id)},
selection:function(){return new n$4(this._groups,this._parents)},
transition:function(){for(var H=this._name,G=this._id,S=++Ko0,Xu=this._groups,od=Xu.length,Aq=0;Aq<od;++Aq)for(var KL=Xu[Aq],xV=KL.length,DW,lq=0;lq<xV;++lq)if(DW=KL[lq]){var Mi=Ek(DW,G);hLx(DW,H,S,lq,KL,{time:Mi.time+Mi.delay+Mi.duration,delay:0,duration:Mi.duration,ease:Mi.ease})}return new CQ(Xu,this._parents,H,S)},
call:nm.call,nodes:nm.nodes,node:nm.node,size:nm.size,empty:nm.empty,each:nm.each,on:function(H,G){var S=this._id;return arguments.length<2?Ek(this.node(),S).on.on(H):this.each(Y9H(S,H,G))},
attr:function(H,G){var S=M(H),Xu=S==="transform"?AI4:Paq;return this.attrTween(H,typeof G==="function"?(S.local?FyF:cZH)(S,Xu,tJx(this,"attr."+H,G)):G==null?(S.local?Kyf:pW4)(S):(S.local?H2f:j_3)(S,Xu,G+""))},
attrTween:function(H,G){var S="attr."+H;if(arguments.length<2)return(S=this.tween(S))&&S._value;if(G==null)return this.tween(S,null);if(typeof G!=="function")throw Error();var Xu=M(H);return this.tween(S,(Xu.local?fZ0:R1h)(Xu,G))},
style:function(H,G,S){var Xu=H==="transform"?wof:Paq;return G==null?this.styleTween(H,Lyu(H,Xu)).on("end.style."+H,tR0(H)):this.styleTween(H,typeof G==="function"?vh0(H,Xu,tJx(this,"style."+H,G)):q9O(H,Xu,G+""),S)},
styleTween:function(H,G,S){var Xu="style."+H;if(arguments.length<2)return(Xu=this.tween(Xu))&&Xu._value;if(G==null)return this.tween(Xu,null);if(typeof G!=="function")throw Error();return this.tween(Xu,Ns0(H,G,S==null?"":S))},
text:function(H){return this.tween("text",typeof H==="function"?D3O(tJx(this,"text",H)):rZF(H==null?"":H+""))},
remove:function(){return this.on("end.remove",h1z(this._id))},
tween:function(H,G){var S=this._id;if(arguments.length<2){S=Ek(this.node(),S).tween;for(var Xu=0,od=S.length,Aq;Xu<od;++Xu)if((Aq=S[Xu]).name===H)return Aq.value;return null}return this.each((G==null?m3u:yZF)(S,H,G))},
delay:function(H){var G=this._id;return arguments.length?this.each((typeof H==="function"?TsP:s_4)(G,H)):Ek(this.node(),G).delay},
duration:function(H){var G=this._id;return arguments.length?this.each((typeof H==="function"?G8F:BsP)(G,H)):Ek(this.node(),G).duration},
ease:function(H){var G=this._id;return arguments.length?this.each(Pv4(G,H)):Ek(this.node(),G).ease}};
var Zou={time:null,delay:0,duration:250,ease:function(H){return((H*=2)<=1?H*H*H:(H-=2)*H*H+2)/2}};
wf.prototype.transition=function(H){var G;if(H instanceof CQ){var S=H._id;H=H._name}else S=++Ko0,(G=Zou).time=fC(),H=H==null?null:H+"";for(var Xu=this._groups,od=Xu.length,Aq=0;Aq<od;++Aq)for(var KL=Xu[Aq],xV=KL.length,DW,lq=0;lq<xV;++lq)if(DW=KL[lq]){var Mi=DW,LR=H,$4=S,Wv=lq,sN=KL,Az;if(!(Az=G))a:{Az=void 0;for(var Ku=S;!(Az=DW.__transition)||!(Az=Az[Ku]);)if(!(DW=DW.parentNode)){Az=(Zou.time=fC(),Zou);break a}}hLx(Mi,LR,$4,Wv,sN,Az)}return new CQ(Xu,this._parents,H,S)};
["e","w"].map(qfx);["n","s"].map(qfx);"n e s w nw ne se sw".split(" ").map(qfx);vnt.prototype=function(){return new vnt}.prototype={constructor:vnt,
moveTo:function(H,G){this._+="M"+(this._x0=this._x1=+H)+","+(this._y0=this._y1=+G)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(H,G){this._+="L"+(this._x1=+H)+","+(this._y1=+G)},
bezierCurveTo:function(H,G,S,Xu,od,Aq){this._+="C"+ +H+","+ +G+","+ +S+","+ +Xu+","+(this._x1=+od)+","+(this._y1=+Aq)},
rect:function(H,G,S,Xu){this._+="M"+(this._x0=this._x1=+H)+","+(this._y0=this._y1=+G)+"h"+ +S+"v"+ +Xu+"h"+-S+"Z"},
toString:function(){return this._}};
oo2.prototype=YfC.prototype={constructor:oo2,has:function(H){return" "+H in this},
get:function(H){return this[" "+H]},
set:function(H,G){this[" "+H]=G;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=[],G;for(G in this)G[0]===" "&&H.push(G.slice(1));return H},
values:function(){var H=[],G;for(G in this)G[0]===" "&&H.push(this[G]);return H},
entries:function(){var H=[],G;for(G in this)G[0]===" "&&H.push({key:G.slice(1),value:this[G]});return H},
size:function(){var H=0,G;for(G in this)G[0]===" "&&++H;return H},
empty:function(){for(var H in this)if(H[0]===" ")return!1;return!0},
each:function(H){for(var G in this)G[0]===" "&&H(this[G],G.slice(1),this)}};
var bo=YfC.prototype;$aT.prototype=function(H,G){var S=new $aT;if(H instanceof $aT)H.each(function(Aq){S.add(Aq)});
else if(H){var Xu=-1,od=H.length;if(G==null)for(;++Xu<od;)S.add(H[Xu]);else for(;++Xu<od;)S.add(G(H[Xu],Xu,H))}return S}.prototype={constructor:$aT,
has:bo.has,add:function(H){this[" "+H]=H;return this},
remove:bo.remove,clear:bo.clear,values:bo.keys,size:bo.size,empty:bo.empty,each:bo.each};var tJ1={},NI8={},ag4=LRq(",").parse,kv4=LRq("\t").parse;qf1(ag4);qf1(kv4);var a4=function(H,G,S){G=new rHq(G==null?lm3:G,S==null?e9P:S,NaN,NaN,NaN,NaN);return H==null?G:G.addAll(H)}.prototype=rHq.prototype;
a4.copy=function(){var H=new rHq(this._x,this._y,this._x0,this._y0,this._x1,this._y1),G=this._root,S,Xu;if(!G)return H;if(!G.length)return H._root=NIH(G),H;for(S=[{source:G,target:H._root=Array(4)}];G=S.pop();)for(var od=0;od<4;++od)if(Xu=G.source[od])Xu.length?S.push({source:Xu,target:G.target[od]=Array(4)}):G.target[od]=NIH(Xu);return H};
a4.add=function(H){var G=+this._x.call(null,H),S=+this._y.call(null,H);return vnF(this.cover(G,S),G,S,H)};
a4.addAll=function(H){var G,S,Xu=H.length,od,Aq,KL=Array(Xu),xV=Array(Xu),DW=Infinity,lq=Infinity,Mi=-Infinity,LR=-Infinity;for(S=0;S<Xu;++S)isNaN(od=+this._x.call(null,G=H[S]))||isNaN(Aq=+this._y.call(null,G))||(KL[S]=od,xV[S]=Aq,od<DW&&(DW=od),od>Mi&&(Mi=od),Aq<lq&&(lq=Aq),Aq>LR&&(LR=Aq));Mi<DW&&(DW=this._x0,Mi=this._x1);LR<lq&&(lq=this._y0,LR=this._y1);this.cover(DW,lq).cover(Mi,LR);for(S=0;S<Xu;++S)vnF(this,KL[S],xV[S],H[S]);return this};
a4.cover=function(H,G){if(isNaN(H=+H)||isNaN(G=+G))return this;var S=this._x0,Xu=this._y0,od=this._x1,Aq=this._y1;if(isNaN(S))od=(S=Math.floor(H))+1,Aq=(Xu=Math.floor(G))+1;else if(S>H||H>od||Xu>G||G>Aq){var KL=od-S,xV=this._root,DW;switch(DW=(G<(Xu+Aq)/2)<<1|H<(S+od)/2){case 0:do{var lq=Array(4);lq[DW]=xV;xV=lq}while(KL*=2,od=S+KL,Aq=Xu+KL,H>od||G>Aq);break;case 1:do lq=Array(4),lq[DW]=xV,xV=lq;while(KL*=2,S=od-KL,Aq=Xu+KL,S>H||G>Aq);break;case 2:do lq=Array(4),lq[DW]=xV,xV=lq;while(KL*=2,od=S+KL,
Xu=Aq-KL,H>od||Xu>G);break;case 3:do lq=Array(4),lq[DW]=xV,xV=lq;while(KL*=2,S=od-KL,Xu=Aq-KL,S>H||Xu>G)}this._root&&this._root.length&&(this._root=xV)}else return this;this._x0=S;this._y0=Xu;this._x1=od;this._y1=Aq;return this};
a4.data=function(){var H=[];this.visit(function(G){if(!G.length){do H.push(G.data);while(G=G.next)}});
return H};
a4.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]]};
a4.find=function(H,G,S){var Xu=this._x0,od=this._y0,Aq,KL,xV,DW,lq=this._x1,Mi=this._y1,LR=[],$4=this._root,Wv;$4&&LR.push(new n0($4,Xu,od,lq,Mi));S==null?S=Infinity:(Xu=H-S,od=G-S,lq=H+S,Mi=G+S,S*=S);for(;Wv=LR.pop();)if(!(!($4=Wv.node)||(Aq=Wv.x0)>lq||(KL=Wv.y0)>Mi||(xV=Wv.x1)<Xu||(DW=Wv.y1)<od))if($4.length){Wv=(Aq+xV)/2;var sN=(KL+DW)/2;LR.push(new n0($4[3],Wv,sN,xV,DW),new n0($4[2],Aq,sN,Wv,DW),new n0($4[1],Wv,KL,xV,sN),new n0($4[0],Aq,KL,Wv,sN));if($4=(G>=sN)<<1|H>=Wv)Wv=LR[LR.length-1],LR[LR.length-
1]=LR[LR.length-1-$4],LR[LR.length-1-$4]=Wv}else if(Wv=H-+this._x.call(null,$4.data),sN=G-+this._y.call(null,$4.data),Wv=Wv*Wv+sN*sN,Wv<S){var Az=Math.sqrt(S=Wv);Xu=H-Az;od=G-Az;lq=H+Az;Mi=G+Az;Az=$4.data}return Az};
a4.remove=function(H){if(isNaN(DW=+this._x.call(null,H))||isNaN(lq=+this._y.call(null,H)))return this;var G,S=this._root,Xu,od=this._x0,Aq=this._y0,KL=this._x1,xV=this._y1,DW,lq,Mi,LR,$4,Wv,sN;if(!S)return this;if(S.length)for(;;){($4=DW>=(Mi=(od+KL)/2))?od=Mi:KL=Mi;(Wv=lq>=(LR=(Aq+xV)/2))?Aq=LR:xV=LR;if(!(G=S,S=S[sN=Wv<<1|$4]))return this;if(!S.length)break;if(G[sN+1&3]||G[sN+2&3]||G[sN+3&3]){var Az=G;var Ku=sN}}for(;S.data!==H;)if(!(Xu=S,S=S.next))return this;(H=S.next)&&delete S.next;if(Xu)return H?
Xu.next=H:delete Xu.next,this;if(!G)return this._root=H,this;H?G[sN]=H:delete G[sN];(S=G[0]||G[1]||G[2]||G[3])&&S===(G[3]||G[2]||G[1]||G[0])&&!S.length&&(Az?Az[Ku]=S:this._root=S);return this};
a4.removeAll=function(H){for(var G=0,S=H.length;G<S;++G)this.remove(H[G]);return this};
a4.root=function(){return this._root};
a4.size=function(){var H=0;this.visit(function(G){if(!G.length){do++H;while(G=G.next)}});
return H};
a4.visit=function(H){var G=[],S,Xu=this._root,od,Aq,KL,xV,DW;for(Xu&&G.push(new n0(Xu,this._x0,this._y0,this._x1,this._y1));S=G.pop();)if(!H(Xu=S.node,Aq=S.x0,KL=S.y0,xV=S.x1,DW=S.y1)&&Xu.length){S=(Aq+xV)/2;var lq=(KL+DW)/2;(od=Xu[3])&&G.push(new n0(od,S,lq,xV,DW));(od=Xu[2])&&G.push(new n0(od,Aq,lq,S,DW));(od=Xu[1])&&G.push(new n0(od,S,KL,xV,lq));(od=Xu[0])&&G.push(new n0(od,Aq,KL,S,lq))}};
a4.visitAfter=function(H){var G=[],S=[],Xu;for(this._root&&G.push(new n0(this._root,this._x0,this._y0,this._x1,this._y1));Xu=G.pop();){var od=Xu.node;if(od.length){var Aq,KL=Xu.x0,xV=Xu.y0,DW=Xu.x1,lq=Xu.y1,Mi=(KL+DW)/2,LR=(xV+lq)/2;(Aq=od[0])&&G.push(new n0(Aq,KL,xV,Mi,LR));(Aq=od[1])&&G.push(new n0(Aq,Mi,xV,DW,LR));(Aq=od[2])&&G.push(new n0(Aq,KL,LR,Mi,lq));(Aq=od[3])&&G.push(new n0(Aq,Mi,LR,DW,lq))}S.push(Xu)}for(;Xu=S.pop();)H(Xu.node,Xu.x0,Xu.y0,Xu.x1,Xu.y1);return this};
a4.x=function(H){return arguments.length?(this._x=H,this):this._x};
a4.y=function(H){return arguments.length?(this._y=H,this):this._y};
var XYF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;DBA.prototype=Sf8.prototype;Sf8.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 QtS,xBk={"%":function(H,G){return(H*100).toFixed(G)},
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,G){return H.toExponential(G)},
f:function(H,G){return H.toFixed(G)},
g:function(H,G){return H.toPrecision(G)},
o:function(H){return Math.round(H).toString(8)},
p:function(H,G){return rHC(H*100,G)},
r:rHC,s:function(H,G){var S=WFx(H,G);if(!S)return H+"";var Xu=S[0];S=S[1];S=S-(QtS=Math.max(-8,Math.min(8,Math.floor(S/3)))*3)+1;var od=Xu.length;return S===od?Xu:S>od?Xu+Array(S-od+1).join("0"):S>0?Xu.slice(0,S)+"."+Xu.slice(S):"0."+Array(1-S).join("0")+WFx(H,Math.max(0,G+S-1))[0]},
X:function(H){return Math.round(H).toString(16).toUpperCase()},
x:function(H){return Math.round(H).toString(16)}},SfH="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),IgO;
(function(H){return IgO=z9F(H)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});QQ.prototype={constructor:QQ,reset:function(){this.s=this.t=0},
add:function(H){lYk(acd,H,this.t);lYk(this,acd.s,this.s);this.s?this.t+=acd.t:this.s=acd.t},
valueOf:function(){return this.s}};
var acd=new QQ,gA=Math.PI,W1=gA/2,jT1=gA/4,m8P=gA*2,u1T=gA/180,o3=Math.abs,CIx=Math.atan,z2F=Math.atan2,d$=Math.cos,eo=Math.sin,gou=Math.sqrt;new QQ;new QQ;new QQ;var okV=new QQ;(function(H,G,S,Xu){return function(od){function Aq(PD,o7){H(PD,o7)&&od.point(PD,o7)}
function KL(PD,o7){$4.point(PD,o7)}
function xV(){mf.point=KL;$4.lineStart()}
function DW(){mf.point=Aq;$4.lineEnd()}
function lq(PD,o7){OG.push([PD,o7]);sN.point(PD,o7)}
function Mi(){sN.lineStart();OG=[]}
function LR(){lq(OG[0][0],OG[0][1]);sN.lineEnd();var PD=sN.clean(),o7=Wv.result(),vv=o7.length,rL;OG.pop();Ku.push(OG);OG=null;if(vv)if(PD&1){if(vv=o7[0],(o7=vv.length-1)>0){Az||(od.polygonStart(),Az=!0);od.lineStart();for(PD=0;PD<o7;++PD)od.point((rL=vv[PD])[0],rL[1]);od.lineEnd()}}else vv>1&&PD&2&&o7.push(o7.pop().concat(o7.shift())),BD.push(o7.filter(Z3u))}
var $4=G(od),Wv=Mau(),sN=G(Wv),Az=!1,Ku,BD,OG,mf={point:Aq,lineStart:xV,lineEnd:DW,polygonStart:function(){mf.point=lq;mf.lineStart=Mi;mf.lineEnd=LR;BD=[];Ku=[]},
polygonEnd:function(){mf.point=Aq;mf.lineStart=xV;mf.lineEnd=DW;var PD=BD,o7=PD.length;var vv=-1;for(var rL=0,j3,MH;++vv<o7;)rL+=PD[vv].length;for(j3=Array(rL);--o7>=0;)for(MH=PD[o7],vv=MH.length;--vv>=0;)j3[--rL]=MH[vv];BD=j3;PD=Ku;o7=Xu[0];rL=Xu[1];var Oj=eo(rL);vv=[eo(o7),-d$(o7),0];MH=j3=0;okV.reset();Oj===1?rL=W1+1E-6:Oj===-1&&(rL=-W1-1E-6);Oj=0;for(var gf=PD.length;Oj<gf;++Oj)if(dA=(Th=PD[Oj]).length){var Th,dA,jt=Th[dA-1],eD=jt[0],fi=jt[1]/2+jT1,khx=eo(fi),Ho1=d$(fi);for(fi=0;fi<dA;++fi,eD=
$Zt,khx=cJ6,Ho1=Vo,jt=Icq){var Icq=Th[fi],$Zt=Icq[0];Vo=Icq[1]/2+jT1;var cJ6=eo(Vo),Vo=d$(Vo),aP=$Zt-eD,Wou=aP>=0?1:-1,dZW=Wou*aP,maM=dZW>gA;khx*=cJ6;okV.add(z2F(khx*Wou*eo(dZW),Ho1*Vo+khx*d$(dZW)));j3+=maM?aP+Wou*m8P:aP;maM^eD>=o7^$Zt>=o7&&(jt=Ooq(e2q(jt),e2q(Icq)),EkR(jt),eD=Ooq(vv,jt),EkR(eD),eD=(maM^aP>=0?-1:1)*daL(eD[2]),rL>eD||rL===eD&&(jt[0]||jt[1]))&&(MH+=maM^aP>=0?1:-1)}}PD=(j3<-1E-6||j3<1E-6&&okV<-1E-6)^MH&1;BD.length?(Az||(od.polygonStart(),Az=!0),Vaz(BD,uDz,PD,S,od)):PD&&(Az||(od.polygonStart(),
Az=!0),od.lineStart(),S(null,null,1,od),od.lineEnd());Az&&(od.polygonEnd(),Az=!1);BD=Ku=null},
sphere:function(){od.polygonStart();od.lineStart();S(null,null,1,od);od.lineEnd();od.polygonEnd()}};
return mf}})(function(){return!0},function(H){var G=NaN,S=NaN,Xu=NaN,od;
return{lineStart:function(){H.lineStart();od=1},
point:function(Aq,KL){var xV=Aq>0?gA:-gA,DW=o3(Aq-G);if(o3(DW-gA)<1E-6)H.point(G,S=(S+KL)/2>0?W1:-W1),H.point(Xu,S),H.lineEnd(),H.lineStart(),H.point(xV,S),H.point(Aq,S),od=0;else if(Xu!==xV&&DW>=gA){o3(G-Xu)<1E-6&&(G-=Xu*1E-6);o3(Aq-xV)<1E-6&&(Aq-=xV*1E-6);DW=G;var lq=S,Mi=Aq,LR,$4,Wv=eo(DW-Mi);S=o3(Wv)>1E-6?CIx((eo(lq)*($4=d$(KL))*eo(Mi)-eo(KL)*(LR=d$(lq))*eo(DW))/(LR*$4*Wv)):(lq+KL)/2;H.point(Xu,S);H.lineEnd();H.lineStart();H.point(xV,S);od=0}H.point(G=Aq,S=KL);Xu=xV},
lineEnd:function(){H.lineEnd();G=S=NaN},
clean:function(){return 2-od}}},function(H,G,S,Xu){H==null?(S*=W1,Xu.point(-gA,S),Xu.point(0,S),Xu.point(gA,S),Xu.point(gA,0),Xu.point(gA,-S),Xu.point(0,-S),Xu.point(-gA,-S),Xu.point(-gA,0),Xu.point(-gA,S)):o3(H[0]-G[0])>1E-6?(H=H[0]<G[0]?gA:-gA,S=S*H/2,Xu.point(-H,S),Xu.point(0,S),Xu.point(H,S)):Xu.point(G[0],G[1])},[-gA,
-W1]);new QQ;new QQ;new QQ;new QQ;Qtg.prototype={constructor:Qtg,point:function(H,G){this.stream.point(H,G)},
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()}};
d$(30*u1T);(function(H){return function(G){var S=new Qtg,Xu;for(Xu in H)S[Xu]=H[Xu];S.stream=G;return S}})({point:function(H,G){this.stream.point(H*u1T,G*u1T)}});
Xy0(function(H){return gou(2/(1+H))}).invert=eu(function(H){return 2*daL(H/2)});
Xy0(function(H){return(H=H>1?0:H<-1?gA:Math.acos(H))&&H/eo(H)}).invert=eu(function(H){return H});
gou(3);eu(CIx);eu(daL);eu(function(H){return 2*CIx(H)});
Oc.prototype=bok.prototype={constructor:Oc,count:function(){return this.eachAfter(CQi)},
each:function(H){var G,S=[this],Xu;do{var od=S.reverse();for(S=[];G=od.pop();)if(H(G),G=G.children){var Aq=0;for(Xu=G.length;Aq<Xu;++Aq)S.push(G[Aq])}}while(S.length);return this},
eachAfter:function(H){for(var G,S=[this],Xu=[],od,Aq;G=S.pop();)if(Xu.push(G),G=G.children)for(od=0,Aq=G.length;od<Aq;++od)S.push(G[od]);for(;G=Xu.pop();)H(G);return this},
eachBefore:function(H){for(var G,S=[this],Xu;G=S.pop();)if(H(G),G=G.children)for(Xu=G.length-1;Xu>=0;--Xu)S.push(G[Xu]);return this},
sum:function(H){return this.eachAfter(function(G){for(var S=+H(G.data)||0,Xu=G.children,od=Xu&&Xu.length;--od>=0;)S+=Xu[od].value;G.value=S})},
sort:function(H){return this.eachBefore(function(G){G.children&&G.children.sort(H)})},
path:function(H){var G=this;var S=G;var Xu=H;if(S!==Xu){var od=S.ancestors(),Aq=Xu.ancestors(),KL=null;S=od.pop();for(Xu=Aq.pop();S===Xu;)KL=S,S=od.pop(),Xu=Aq.pop();S=KL}for(Xu=[G];G!==S;)G=G.parent,Xu.push(G);for(G=Xu.length;H!==S;)Xu.splice(G,0,H),H=H.parent;return Xu},
ancestors:function(){for(var H=this,G=[H];H=H.parent;)G.push(H);return G},
links:function(){var H=this,G=[];H.each(function(S){S!==H&&G.push({source:S.parent,target:S})});
return G},
copy:function(){return bok(this).eachBefore(W43)}};
(function(H,G){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=G}).prototype=Object.create(Oc.prototype);
var xBu=new Date,lYu=new Date,Foq=r4(function(){},function(H,G){H.setTime(+H+G)},function(H,G){return G-H});
Foq.every=function(H){H=Math.floor(H);return isFinite(H)&&H>0?H>1?r4(function(G){G.setTime(Math.floor(G/H)*H)},function(G,S){G.setTime(+G+S*H)},function(G,S){return(S-G)/H}):Foq:null};
r4(function(H){H.setTime(Math.floor(H/1E3)*1E3)},function(H,G){H.setTime(+H+G*1E3)},function(H,G){return(G-H)/1E3},function(H){return H.getUTCSeconds()});
r4(function(H){H.setTime(Math.floor(H/6E4)*6E4)},function(H,G){H.setTime(+H+G*6E4)},function(H,G){return(G-H)/6E4},function(H){return H.getMinutes()});
r4(function(H){var G=H.getTimezoneOffset()*6E4%36E5;G<0&&(G+=36E5);H.setTime(Math.floor((+H-G)/36E5)*36E5+G)},function(H,G){H.setTime(+H+G*36E5)},function(H,G){return(G-H)/36E5},function(H){return H.getHours()});
var Zok=r4(function(H){H.setHours(0,0,0,0)},function(H,G){H.setDate(H.getDate()+G)},function(H,G){return(G-H-(G.getTimezoneOffset()-H.getTimezoneOffset())*6E4)/864E5},function(H){return H.getDate()-1}),Whh=X3(0),Ood=X3(1);
X3(2);X3(3);var EkL=X3(4);X3(5);X3(6);r4(function(H){H.setDate(1);H.setHours(0,0,0,0)},function(H,G){H.setMonth(H.getMonth()+G)},function(H,G){return G.getMonth()-H.getMonth()+(G.getFullYear()-H.getFullYear())*12},function(H){return H.getMonth()});
var i0=r4(function(H){H.setMonth(0,1);H.setHours(0,0,0,0)},function(H,G){H.setFullYear(H.getFullYear()+G)},function(H,G){return G.getFullYear()-H.getFullYear()},function(H){return H.getFullYear()});
i0.every=function(H){return isFinite(H=Math.floor(H))&&H>0?r4(function(G){G.setFullYear(Math.floor(G.getFullYear()/H)*H);G.setMonth(0,1);G.setHours(0,0,0,0)},function(G,S){G.setFullYear(G.getFullYear()+S*H)}):null};
r4(function(H){H.setUTCSeconds(0,0)},function(H,G){H.setTime(+H+G*6E4)},function(H,G){return(G-H)/6E4},function(H){return H.getUTCMinutes()});
r4(function(H){H.setUTCMinutes(0,0,0)},function(H,G){H.setTime(+H+G*36E5)},function(H,G){return(G-H)/36E5},function(H){return H.getUTCHours()});
var VZC=r4(function(H){H.setUTCHours(0,0,0,0)},function(H,G){H.setUTCDate(H.getUTCDate()+G)},function(H,G){return(G-H)/864E5},function(H){return H.getUTCDate()-1}),d8u=zm(0),e22=zm(1);
zm(2);zm(3);var JJW=zm(4);zm(5);zm(6);r4(function(H){H.setUTCDate(1);H.setUTCHours(0,0,0,0)},function(H,G){H.setUTCMonth(H.getUTCMonth()+G)},function(H,G){return G.getUTCMonth()-H.getUTCMonth()+(G.getUTCFullYear()-H.getUTCFullYear())*12},function(H){return H.getUTCMonth()});
var wx=r4(function(H){H.setUTCMonth(0,1);H.setUTCHours(0,0,0,0)},function(H,G){H.setUTCFullYear(H.getUTCFullYear()+G)},function(H,G){return G.getUTCFullYear()-H.getUTCFullYear()},function(H){return H.getUTCFullYear()});
wx.every=function(H){return isFinite(H=Math.floor(H))&&H>0?r4(function(G){G.setUTCFullYear(Math.floor(G.getUTCFullYear()/H)*H);G.setUTCMonth(0,1);G.setUTCHours(0,0,0,0)},function(G,S){G.setUTCFullYear(G.getUTCFullYear()+S*H)}):null};
var MZS={"-":"",_:" ",0:"0"},EG=/^\s*\d+/,$8z=/^%/,o$3=/[\\^$*+?|[\]().{}]/g,yFx;(function(H){yFx=gMz(H);heq=yFx.utcFormat;L0C=yFx.utcParse;return yFx})({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||heq("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||L0C("%Y-%m-%dT%H:%M:%S.%LZ");XQ("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
XQ("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");XQ("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");XQ("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");XQ("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");XQ("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");XQ("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
XQ("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");XQ("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");XQ("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");XQ("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");XQ("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var yIf=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(XQ);sB(yIf);var poo=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(XQ);sB(poo);var Kh4=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(XQ);sB(Kh4);var jaO=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(XQ);
sB(jaO);var Hxf=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(XQ);sB(Hxf);var cIC=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(XQ);sB(cIC);var Fho=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(XQ);sB(Fho);var fgh=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(XQ);sB(fgh);var RG3=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(XQ);sB(RG3);var TE4=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(XQ);sB(TE4);var sau=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(XQ);sB(sau);var Gv3=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(XQ);sB(Gv3);var BE0=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(XQ);sB(BE0);var PZF=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(XQ);sB(PZF);var U8h=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(XQ);sB(U8h);var YkH=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(XQ);sB(YkH);var hGu=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(XQ);sB(hGu);var LhP=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(XQ);sB(LhP);var t13=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(XQ);sB(t13);var qkf=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(XQ);sB(qkf);var v$F=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(XQ);sB(v$F);var NEf=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(XQ);sB(NEf);var rIO=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(XQ);sB(rIO);var D84=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(XQ);sB(D84);var SkP=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(XQ);sB(SkP);var Qaz=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(XQ);sB(Qaz);var x8C=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(XQ);sB(x8C);VZq(W6(300,.5,0),W6(-240,.5,1));VZq(W6(-100,.75,.35),W6(80,1.5,.8));VZq(W6(260,.75,.35),W6(80,1.5,.8));W6();mH();AFx(XQ("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
AFx(XQ("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
AFx(XQ("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
AFx(XQ("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
AJC.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,G){H=+H;G=+G;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(H,G):this._context.moveTo(H,G);break;case 1:this._point=2;default:this._context.lineTo(H,G)}}};
(function(H){function G(S){return new nk1(H(S))}
G._curve=H;return G})(function(H){return new AJC(H)});
nk1.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(H,G){this._curve.point(G*Math.sin(H),G*-Math.cos(H))}};
z2t.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:XyM(this,this._t0,kaC(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(H,G){var S=NaN;H=+H;G=+G;if(H!==this._x1||G!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(H,G):this._context.moveTo(H,G);break;case 1:this._point=2;break;case 2:this._point=3;XyM(this,kaC(this,S=aYq(this,H,G)),S);break;default:XyM(this,this._t0,S=aYq(this,H,G))}this._x0=this._x1;this._x1=H;this._y0=this._y1;this._y1=G;this._t0=S}}};
(function(H){this._context=new IYC(H)}.prototype=Object.create(z2t.prototype)).point=function(H,G){z2t.prototype.point.call(this,G,H)};
IYC.prototype={moveTo:function(H,G){this._context.moveTo(G,H)},
closePath:function(){this._context.closePath()},
lineTo:function(H,G){this._context.lineTo(G,H)},
bezierCurveTo:function(H,G,S,Xu,od,Aq){this._context.bezierCurveTo(G,H,Xu,S,Aq,od)}};
zb.prototype={constructor:zb,scale:function(H){return H===1?this:new zb(this.k*H,this.x,this.y)},
translate:function(H,G){return H===0&G===0?this:new zb(this.k,this.x+this.k*H,this.y+this.k*G)},
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 zb(1,0,0);uz2=bz;$J.svg=$J.svg;$J.xhtml=$J.xhtml;$J.xlink=$J.xlink;$J.xml=$J.xml;$J.xmlns=$J.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 tyq="hammer_"+(Math.random()*1E6|0),qV6=function(){var l=document||document;if(!l[tyq]){var e=function(){(function(O,E,J,z){function M(ad,Tg,YV){return setTimeout(n(ad,YV),Tg)}
function Z(ad,Tg,YV){return Array.isArray(ad)?(u(ad,YV[Tg],YV),!0):!1}
function u(ad,Tg,YV){var d1;if(ad)if(ad.forEach)ad.forEach(Tg,YV);else if(ad.length!==z){var z0=0;for(d1=ad.length;z0<d1;z0++)Tg.call(YV,ad[z0],z0,ad)}else for(z0 in ad)ad.hasOwnProperty(z0)&&Tg.call(YV,ad[z0],z0,ad)}
function d(ad,Tg,YV){for(var d1=Object.keys(Tg),z0=0,Hv=d1.length;z0<Hv;z0++)if(!YV||YV&&ad[d1[z0]]===z)ad[d1[z0]]=Tg[d1[z0]];return ad}
function g(ad,Tg){return d(ad,Tg,!0)}
function w(ad,Tg,YV){Tg=Tg.prototype;var d1=ad.prototype=Object.create(Tg);d1.constructor=ad;d1._super=Tg;YV&&d(d1,YV)}
function n(ad,Tg){return function(){return ad.apply(Tg,arguments)}}
function k(ad,Tg){return typeof ad=="function"?ad.apply(Tg?Tg[0]||z:z,Tg):ad}
function y(ad,Tg,YV){u(f(Tg),function(d1){ad.addEventListener(d1,YV,!1)})}
function c(ad,Tg,YV){u(f(Tg),function(d1){ad.removeEventListener(d1,YV,!1)})}
function f(ad){return ad.trim().split(/\s+/g)}
function P(ad,Tg,YV){if(ad.indexOf&&!YV)return ad.indexOf(Tg);for(var d1=0,z0=ad.length;d1<z0;d1++)if(YV&&ad[d1][YV]==Tg||!YV&&ad[d1]===Tg)return d1;return-1}
function h(ad,Tg,YV){for(var d1=[],z0=[],Hv=0,oi=ad.length;Hv<oi;Hv++){var iq=Tg?ad[Hv][Tg]:ad[Hv];P(z0,iq)<0&&d1.push(ad[Hv]);z0[Hv]=iq}YV&&(d1=Tg?d1.sort(function(W6,Au){return W6[Tg]>Au[Tg]}):d1.sort());
return d1}
function N(ad,Tg){for(var YV,d1=Tg[0].toUpperCase()+Tg.slice(1),z0=0,Hv=Xk.length;z0<Hv;z0++)if(YV=(YV=Xk[z0])?YV+d1:Tg,YV in ad)return YV;return z}
function t(ad,Tg){var YV=this;this.manager=ad;this.callback=Tg;this.element=ad.element;this.target=ad.options.inputTarget;this.domHandler=function(d1){k(ad.options.enable,[ad])&&YV.handler(d1)};
this.evEl&&y(this.element,this.evEl,this.domHandler);this.evTarget&&y(this.target,this.evTarget,this.domHandler);this.evWin&&y(O,this.evWin,this.domHandler)}
function r(ad){var Tg;wp?Tg=tq:ti?Tg=Px:bz?Tg=S0:Tg=cx;return new Tg(ad,D)}
function D(ad,Tg,YV){var d1=YV.pointers.length,z0=YV.changedPointers.length,Hv=Tg&1&&d1-z0===0;YV.isFirst=!!Hv;YV.isFinal=!!(Tg&12&&d1-z0===0);Hv&&(ad.session={});YV.eventType=Tg;Tg=ad.session;d1=YV.pointers;z0=d1.length;Tg.firstInput||(Tg.firstInput=b2(YV));z0>1&&!Tg.firstMultiple?Tg.firstMultiple=b2(YV):z0===1&&(Tg.firstMultiple=!1);Hv=Tg.firstInput;var oi=(z0=Tg.firstMultiple)?z0.center:Hv.center,iq=YV.center=$V(d1);YV.timeStamp=KR();YV.deltaTime=YV.timeStamp-Hv.timeStamp;YV.angle=jM(oi,iq);YV.distance=
mx(oi,iq);Hv=YV.center;oi=Tg.offsetDelta||{};iq=Tg.prevDelta||{};var W6=Tg.prevInput||{};if(YV.eventType===1||W6.eventType===4)iq=Tg.prevDelta={x:W6.deltaX||0,y:W6.deltaY||0},oi=Tg.offsetDelta={x:Hv.x,y:Hv.y};YV.deltaX=iq.x+(Hv.x-oi.x);YV.deltaY=iq.y+(Hv.y-oi.y);YV.offsetDirection=gT(YV.deltaX,YV.deltaY);z0?(Hv=z0.pointers,Hv=mx(d1[0],d1[1],mH)/mx(Hv[0],Hv[1],mH)):Hv=1;YV.scale=Hv;z0?(z0=z0.pointers,d1=jM(d1[1],d1[0],mH)-jM(z0[1],z0[0],mH)):d1=0;YV.rotation=d1;oi=Tg.lastInterval||YV;d1=YV.timeStamp-
oi.timeStamp;YV.eventType!=8&&(d1>25||oi.velocity===z)?(Hv=oi.deltaX-YV.deltaX,oi=oi.deltaY-YV.deltaY,iq=Hv/d1||0,W6=oi/d1||0,d1=iq,z0=W6,iq=w1(iq)>w1(W6)?iq:W6,Hv=gT(Hv,oi),Tg.lastInterval=YV):(iq=oi.velocity,d1=oi.velocityX,z0=oi.velocityY,Hv=oi.direction);YV.velocity=iq;YV.velocityX=d1;YV.velocityY=z0;YV.direction=Hv;Tg=ad.element;a:{for(d1=YV.srcEvent.target;d1;){if(d1==Tg){d1=!0;break a}d1=d1.parentNode}d1=!1}d1&&(Tg=YV.srcEvent.target);YV.target=Tg;ad.emit("hammer.input",YV);ad.recognize(YV);
ad.session.prevInput=YV}
function b2(ad){for(var Tg=[],YV=0;YV<ad.pointers.length;YV++)Tg[YV]={clientX:wf(ad.pointers[YV].clientX),clientY:wf(ad.pointers[YV].clientY)};return{timeStamp:KR(),pointers:Tg,center:$V(Tg),deltaX:ad.deltaX,deltaY:ad.deltaY}}
function $V(ad){var Tg=ad.length;if(Tg===1)return{x:wf(ad[0].clientX),y:wf(ad[0].clientY)};for(var YV=0,d1=0,z0=0;z0<Tg;z0++)YV+=ad[z0].clientX,d1+=ad[z0].clientY;return{x:wf(YV/Tg),y:wf(d1/Tg)}}
function gT(ad,Tg){return ad===Tg?1:w1(ad)>=w1(Tg)?ad>0?2:4:Tg>0?8:16}
function mx(ad,Tg,YV){YV||(YV=Yq);var d1=Tg[YV[0]]-ad[YV[0]];ad=Tg[YV[1]]-ad[YV[1]];return Math.sqrt(d1*d1+ad*ad)}
function jM(ad,Tg,YV){YV||(YV=Yq);return Math.atan2(Tg[YV[1]]-ad[YV[1]],Tg[YV[0]]-ad[YV[0]])*180/Math.PI}
function cx(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;t.apply(this,arguments)}
function tq(){this.evEl=Tq;this.evWin=lt;t.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Px(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};t.apply(this,arguments)}
function S0(){t.apply(this,arguments);var ad=n(this.handler,this);this.touch=new Px(this.manager,ad);this.mouse=new cx(this.manager,ad)}
function QH(ad,Tg){this.manager=ad;this.set(Tg)}
function pR(ad){if(ad.indexOf("none")>-1)return"none";var Tg=ad.indexOf("pan-x")>-1,YV=ad.indexOf("pan-y")>-1;return Tg&&YV?"pan-x pan-y":Tg||YV?Tg?"pan-x":"pan-y":ad.indexOf("manipulation")>-1?"manipulation":"auto"}
function oq(ad){this.id=CP++;this.manager=null;this.options=g(ad||{},this.defaults);ad=this.options.enable;this.options.enable=ad===z?!0:ad;this.state=1;this.simultaneous={};this.requireFail=[]}
function ZS(ad){return ad==16?"down":ad==8?"up":ad==2?"left":ad==4?"right":""}
function Ou(ad,Tg){return(Tg=Tg.manager)?Tg.get(ad):ad}
function uq(){oq.apply(this,arguments)}
function ZV(){uq.apply(this,arguments);this.pY=this.pX=null}
function jO(){uq.apply(this,arguments)}
function V8(){oq.apply(this,arguments);this._input=this._timer=null}
function AC(){uq.apply(this,arguments)}
function Fk(){uq.apply(this,arguments)}
function tu(){oq.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function kq(ad,Tg){Tg=Tg||{};var YV=Tg.recognizers;Tg.recognizers=YV===z?kq.defaults.preset:YV;return new Ni(ad,Tg)}
function Ni(ad,Tg){Tg=Tg||{};this.options=g(Tg,kq.defaults);this.options.inputTarget=this.options.inputTarget||ad;this.handlers={};this.session={};this.recognizers=[];this.element=ad;this.input=r(this);this.touchAction=new QH(this,this.options.touchAction);YA(this,!0);u(Tg.recognizers,function(YV){var d1=this.add(new YV[0](YV[1]));YV[2]&&d1.recognizeWith(YV[2]);YV[3]&&d1.requireFailure(YV[2])},this)}
function YA(ad,Tg){var YV=ad.element;u(ad.options.cssProps,function(d1,z0){YV.style[N(YV.style,z0)]=Tg?d1:""})}
function v6(ad,Tg){var YV=E.createEvent("Event");YV.initEvent(ad,!0,!0);YV.gesture=Tg;Tg.target.dispatchEvent(YV)}
var Xk=" webkit moz MS ms o".split(" "),P6=E.createElement("div"),wf=Math.round,w1=Math.abs,KR=Date.now,CP=1,z1=/mobile|tablet|ip(ad|hone|od)|android/i,bz="ontouchstart"in O,wp=N(O,"PointerEvent")!==z,ti=bz&&z1.test(navigator.userAgent),Yq=["x","y"],mH=["clientX","clientY"];t.prototype={handler:function(){},
destroy:function(){this.evEl&&c(this.element,this.evEl,this.domHandler);this.evTarget&&c(this.target,this.evTarget,this.domHandler);this.evWin&&c(O,this.evWin,this.domHandler)}};
var QC={mousedown:1,mousemove:2,mouseup:4};w(cx,t,{handler:function(ad){var Tg=QC[ad.type];Tg&1&&ad.button===0&&(this.pressed=!0);Tg&2&&ad.which!==1&&(Tg=4);this.pressed&&this.allow&&(Tg&4&&(this.pressed=!1),this.callback(this.manager,Tg,{pointers:[ad],changedPointers:[ad],pointerType:"mouse",srcEvent:ad}))}});
var Ap={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},V5={2:"touch",3:"pen",4:"mouse",5:"kinect"},Tq="pointerdown",lt="pointermove pointerup pointercancel";O.MSPointerEvent&&(Tq="MSPointerDown",lt="MSPointerMove MSPointerUp MSPointerCancel");w(tq,t,{handler:function(ad){var Tg=this.store,YV=!1,d1=ad.type.toLowerCase().replace("ms","");d1=Ap[d1];var z0=V5[ad.pointerType]||ad.pointerType;d1&1&&(ad.button===0||z0=="touch")?Tg.push(ad):d1&12&&(YV=!0);var Hv=P(Tg,ad.pointerId,"pointerId");
Hv<0||(Tg[Hv]=ad,this.callback(this.manager,d1,{pointers:Tg,changedPointers:[ad],pointerType:z0,srcEvent:ad}),YV&&Tg.splice(Hv,1))}});
var pH={touchstart:1,touchmove:2,touchend:4,touchcancel:8};w(Px,t,{handler:function(ad){var Tg=pH[ad.type];var YV=Array.prototype.slice.call(ad.touches,0);var d1=this.targetIds;if(Tg&3&&YV.length===1)d1[YV[0].identifier]=!0,d1=[YV,YV];else{var z0,Hv=Array.prototype.slice.call(ad.targetTouches,0),oi=Array.prototype.slice.call(ad.changedTouches,0),iq=[];if(Tg===1)for(YV=0,z0=Hv.length;YV<z0;YV++)d1[Hv[YV].identifier]=!0;YV=0;for(z0=oi.length;YV<z0;YV++)d1[oi[YV].identifier]&&iq.push(oi[YV]),Tg&12&&
delete d1[oi[YV].identifier];d1=iq.length?[h(Hv.concat(iq),"identifier",!0),iq]:void 0}d1&&this.callback(this.manager,Tg,{pointers:d1[0],changedPointers:d1[1],pointerType:"touch",srcEvent:ad})}});
w(S0,t,{handler:function(ad,Tg,YV){var d1=YV.pointerType=="mouse";if(YV.pointerType=="touch")this.mouse.allow=!1;else if(d1&&!this.mouse.allow)return;Tg&12&&(this.mouse.allow=!0);this.callback(ad,Tg,YV)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var RH=N(P6.style,"touchAction"),Mr=RH!==z;QH.prototype={set:function(ad){ad=="compute"&&(ad=this.compute());Mr&&(this.manager.element.style[RH]=ad);this.actions=ad.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var ad=[];u(this.manager.recognizers,function(Tg){k(Tg.options.enable,[Tg])&&(ad=ad.concat(Tg.getTouchAction()))});
return pR(ad.join(" "))},
preventDefaults:function(ad){if(!Mr){var Tg=ad.srcEvent;ad=ad.offsetDirection;if(this.manager.session.prevented)Tg.preventDefault();else{var YV=this.actions,d1=YV.indexOf("none")>-1,z0=YV.indexOf("pan-y")>-1;YV=YV.indexOf("pan-x")>-1;if(d1||z0&&YV||z0&&ad&6||YV&&ad&24)return this.preventSrc(Tg)}}},
preventSrc:function(ad){this.manager.session.prevented=!0;ad.preventDefault()}};
oq.prototype={defaults:{},set:function(ad){d(this.options,ad);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(ad){if(Z(ad,"recognizeWith",this))return this;var Tg=this.simultaneous;ad=Ou(ad,this);Tg[ad.id]||(Tg[ad.id]=ad,ad.recognizeWith(this));return this},
dropRecognizeWith:function(ad){if(Z(ad,"dropRecognizeWith",this))return this;ad=Ou(ad,this);delete this.simultaneous[ad.id];return this},
requireFailure:function(ad){if(Z(ad,"requireFailure",this))return this;var Tg=this.requireFail;ad=Ou(ad,this);P(Tg,ad)===-1&&(Tg.push(ad),ad.requireFailure(this));return this},
dropRequireFailure:function(ad){if(Z(ad,"dropRequireFailure",this))return this;ad=Ou(ad,this);ad=P(this.requireFail,ad);ad>-1&&this.requireFail.splice(ad,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(ad){return!!this.simultaneous[ad.id]},
emit:function(ad){function Tg(z0){YV.manager.emit(YV.options.event+(z0?d1&16?"cancel":d1&8?"end":d1&4?"move":d1&2?"start":"":""),ad)}
var YV=this,d1=this.state;d1<8&&Tg(!0);Tg();d1>=8&&Tg(!0)},
tryEmit:function(ad){if(this.canEmit())return this.emit(ad);this.state=32},
canEmit:function(){for(var ad=0;ad<this.requireFail.length;ad++)if(!(this.requireFail[ad].state&33))return!1;return!0},
recognize:function(ad){ad=d({},ad);k(this.options.enable,[this,ad])?(this.state&56&&(this.state=1),this.state=this.process(ad),this.state&30&&this.tryEmit(ad)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
w(uq,oq,{defaults:{pointers:1},attrTest:function(ad){var Tg=this.options.pointers;return Tg===0||ad.pointers.length===Tg},
process:function(ad){var Tg=this.state,YV=ad.eventType,d1=Tg&6;ad=this.attrTest(ad);return d1&&(YV&8||!ad)?Tg|16:d1||ad?YV&4?Tg|8:Tg&2?Tg|4:2:32}});
w(ZV,uq,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var ad=this.options.direction;if(ad===30)return["none"];var Tg=[];ad&6&&Tg.push("pan-y");ad&24&&Tg.push("pan-x");return Tg},
directionTest:function(ad){var Tg=this.options,YV=!0,d1=ad.distance,z0=ad.direction,Hv=ad.deltaX,oi=ad.deltaY;z0&Tg.direction||(Tg.direction&6?(z0=Hv===0?1:Hv<0?2:4,YV=Hv!=this.pX,d1=Math.abs(ad.deltaX)):(z0=oi===0?1:oi<0?8:16,YV=oi!=this.pY,d1=Math.abs(ad.deltaY)));ad.direction=z0;return YV&&d1>Tg.threshold&&z0&Tg.direction},
attrTest:function(ad){return uq.prototype.attrTest.call(this,ad)&&(this.state&2||!(this.state&2)&&this.directionTest(ad))},
emit:function(ad){this.pX=ad.deltaX;this.pY=ad.deltaY;var Tg=ZS(ad.direction);Tg&&this.manager.emit(this.options.event+Tg,ad);this._super.emit.call(this,ad)}});
w(jO,uq,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ad){return this._super.attrTest.call(this,ad)&&(Math.abs(ad.scale-1)>this.options.threshold||this.state&2)},
emit:function(ad){this._super.emit.call(this,ad);ad.scale!==1&&this.manager.emit(this.options.event+(ad.scale<1?"in":"out"),ad)}});
w(V8,oq,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(ad){var Tg=this.options,YV=ad.pointers.length===Tg.pointers,d1=ad.distance<Tg.threshold,z0=ad.deltaTime>Tg.time;this._input=ad;if(!d1||!YV||ad.eventType&12&&!z0)this.reset();else if(ad.eventType&1)this.reset(),this._timer=M(function(){this.state=8;this.tryEmit()},Tg.time,this);
else if(ad.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(ad){this.state===8&&(ad&&ad.eventType&4?this.manager.emit(this.options.event+"up",ad):(this._input.timeStamp=KR(),this.manager.emit(this.options.event,this._input)))}});
w(AC,uq,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ad){return this._super.attrTest.call(this,ad)&&(Math.abs(ad.rotation)>this.options.threshold||this.state&2)}});
w(Fk,uq,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return ZV.prototype.getTouchAction.call(this)},
attrTest:function(ad){var Tg=this.options.direction;if(Tg&30)var YV=ad.velocity;else Tg&6?YV=ad.velocityX:Tg&24&&(YV=ad.velocityY);return this._super.attrTest.call(this,ad)&&Tg&ad.direction&&w1(YV)>this.options.velocity&&ad.eventType&4},
emit:function(ad){var Tg=ZS(ad.direction);Tg&&this.manager.emit(this.options.event+Tg,ad);this.manager.emit(this.options.event,ad)}});
w(tu,oq,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(ad){var Tg=this.options,YV=ad.pointers.length===Tg.pointers,d1=ad.distance<Tg.threshold,z0=ad.deltaTime<Tg.time;this.reset();if(ad.eventType&1&&this.count===0)return this.failTimeout();if(d1&&z0&&YV){if(ad.eventType!=4)return this.failTimeout();YV=this.pTime?ad.timeStamp-this.pTime<Tg.interval:!0;d1=!this.pCenter||mx(this.pCenter,ad.center)<Tg.posThreshold;this.pTime=ad.timeStamp;this.pCenter=ad.center;d1&&YV?this.count+=1:this.count=1;this._input=ad;if(this.count%Tg.taps===0)return this.hasRequireFailures()?
(this._timer=M(function(){this.state=8;this.tryEmit()},Tg.interval,this),2):8}return 32},
failTimeout:function(){this._timer=M(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))}});
kq.VERSION="2.0.2";kq.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[AC,{enable:!1}],[jO,{enable:!1},["rotate"]],[Fk,{direction:6}],[ZV,{direction:6},["swipe"]],[tu],[tu,{event:"doubletap",taps:2},["tap"]],[V8]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ni.prototype={set:function(ad){d(this.options,ad);return this},
stop:function(ad){this.session.stopped=ad?2:1},
recognize:function(ad){var Tg=this.session;if(!Tg.stopped){this.touchAction.preventDefaults(ad);var YV=this.recognizers,d1=Tg.curRecognizer;if(!d1||d1&&d1.state&8)d1=Tg.curRecognizer=null;for(var z0=0,Hv=YV.length;z0<Hv;z0++){var oi=YV[z0];Tg.stopped===2||d1&&oi!=d1&&!oi.canRecognizeWith(d1)?oi.reset():oi.recognize(ad);!d1&&oi.state&14&&(d1=Tg.curRecognizer=oi)}}},
get:function(ad){if(ad instanceof oq)return ad;for(var Tg=this.recognizers,YV=0;YV<Tg.length;YV++)if(Tg[YV].options.event==ad)return Tg[YV];return null},
add:function(ad){if(Z(ad,"add",this))return this;var Tg=this.get(ad.options.event);Tg&&this.remove(Tg);this.recognizers.push(ad);ad.manager=this;this.touchAction.update();return ad},
remove:function(ad){if(Z(ad,"remove",this))return this;var Tg=this.recognizers;ad=this.get(ad);Tg.splice(P(Tg,ad),1);this.touchAction.update();return this},
on:function(ad,Tg){var YV=this.handlers;u(f(ad),function(d1){YV[d1]=YV[d1]||[];YV[d1].push(Tg)});
return this},
off:function(ad,Tg){var YV=this.handlers;u(f(ad),function(d1){Tg?YV[d1].splice(P(YV[d1],Tg),1):delete YV[d1]});
return this},
emit:function(ad,Tg){this.options.domEvents&&v6(ad,Tg);var YV=this.handlers[ad]&&this.handlers[ad].slice();if(YV&&YV.length){Tg.type=ad;Tg.preventDefault=function(){Tg.srcEvent.preventDefault()};
ad=0;for(var d1=YV.length;ad<d1;ad++)YV[ad](Tg)}},
destroy:function(){this.element&&YA(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
d(kq,{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:Ni,Input:t,TouchAction:QH,Recognizer:oq,AttrRecognizer:uq,Tap:tu,Pan:ZV,Swipe:Fk,Pinch:jO,Rotate:AC,Press:V8,on:y,off:c,each:u,merge:g,extend:d,inherit:w,bindFn:n,prefixed:N});
O[J]=kq})(window,document,"Hammer");
return window.Hammer}.call({});
e.DOCUMENT=l;l[tyq]=e}return l[tyq]};/*

 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 vT6=function(l,e){if(l.length!==e.length)return!1;for(var O=0;O<l.length;++O)if(l[O]!==e[O])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var NPq=_.b(["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"]),rAS=NPq.next();!rAS.done;rAS=NPq.next()){var D7i=rAS.value,SVS=document.createElement("link");SVS.rel="stylesheet";SVS.href=D7i;document.head.appendChild(SVS)};var DJp,Q2q,lZq,vx2,SUd,Ndx,td8,qU2;DJp={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};Q2q={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:"*"};lZq={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};vx2=/[a-z0-9*]/;SUd=/U\+/;Ndx=/^arrow/;td8=/^space(bar)?/;qU2=/^escape$/;_.po={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(l,e){this._imperativeKeyBindings[l]=e;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(l,e){e=O2L(e);for(var O=0;O<e.length;++O)if(xJg(e[O],l))return!0;return!1},
_collectKeyBindings:function(){var l=this.behaviors.map(function(e){return e.keyBindings});
l.indexOf(this.keyBindings)===-1&&l.push(this.keyBindings);return l},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(O){for(var E in O)this._addKeyBinding(E,O[E])},this);
for(var l in this._imperativeKeyBindings)this._addKeyBinding(l,this._imperativeKeyBindings[l]);for(var e in this._keyBindings)this._keyBindings[e].sort(function(O,E){O=O[0].hasModifiers;return O===E[0].hasModifiers?0:O?-1:1})},
_addKeyBinding:function(l,e){O2L(l).forEach(function(O){this._keyBindings[O.event]=this._keyBindings[O.event]||[];this._keyBindings[O.event].push([O,e])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(l){var e=this._onKeyBindingEvent.bind(this,this._keyBindings[l]);this._boundKeyHandlers.push([this.keyEventTarget,l,e]);this.keyEventTarget.addEventListener(l,e)},this)},
_unlistenKeyEventListeners:function(){for(var l,e,O;this._boundKeyHandlers.length;)l=this._boundKeyHandlers.pop(),e=l[0],O=l[1],l=l[2],e.removeEventListener(O,l)},
_onKeyBindingEvent:function(l,e){this.stopKeyboardEventPropagation&&e.stopPropagation();if(!e.defaultPrevented)for(var O=0;O<l.length;O++){var E=l[O][0],J=l[O][1];if(xJg(E,e)&&(this._triggerKeyHandler(E,J,e),e.defaultPrevented))break}},
_triggerKeyHandler:function(l,e,O){var E=Object.create(l);E.keyboardEvent=O;l=new CustomEvent(l.event,{detail:E,cancelable:!0});this[e].call(this,l);l.defaultPrevented&&O.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
*/
_.RB({is:"iron-a11y-keys",_template:null,behaviors:[_.po],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(l){this.keyEventTarget=l},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(l){this.fire("keys-pressed",l.detail,{})}});_.Ko={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(l){this._setFocused(l.type==="focus")},
_disabledChanged:function(l){this.setAttribute("aria-disabled",l?"true":"false");this.style.pointerEvents=l?"none":"";l?(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 jZ={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(l){this._detectKeyboardFocus(l);l||this._setPressed(!1)},
_detectKeyboardFocus:function(l){this._setReceivedFocusFromKeyboard(!this.pointerDown&&l)},
_userActivate:function(l){this.active!==l&&(this.active=l,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(l){l=l.detail.keyboardEvent;var e=_.c9(l).localTarget;this.isLightDescendant(e)||(l.preventDefault(),l.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(l){l=_.c9(l.detail.keyboardEvent).localTarget;this.isLightDescendant(l)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(l,e){e&&e!=l&&this.hasAttribute(e)&&this.removeAttribute(e)},
_activeChanged:function(l){this.toggles?this.setAttribute(this.ariaActiveAttribute,l?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},QB1=[_.po,
jZ];_.Hy={IronButtonState:QB1,IronButtonStateImpl:jZ};_.cy={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.F1=function(l){_.F1[" "](l);this.type=l&&l.type||"default";this.key=l&&l.key;l&&"value"in l&&(this.value=l.value)};
_.F1.prototype.byKey=function(l){this.key=l;return this.value};
_.Ji.Object.defineProperties(_.F1.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var l=this.type,e=this.key;if(l&&e)return fo[l]&&fo[l][e]},
set:function(l){var e=this.type,O=this.key;e&&O&&(e=fo[e]=fo[e]||{},l==null?delete e[O]:e[O]=l)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var l=fo[this.type];return l?Object.keys(l).map(function(e){return fo[this.type][e]},this):[]}}});
_.F1[" "]=function(){};
var fo={};_.RB({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(l,e,O){l=new _.F1({type:l,key:e});O!==void 0&&O!==l.value?l.value=O:this.value!==l.value&&(this.value=l.value);return l},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(l){l&&(this.value=this)},
byKey:function(l){return(new _.F1({type:this.type,key:l})).value}});var x7R;x7R=null;_.RT={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){x7R=new _.F1({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return x7R&&x7R.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(l){this.invalid=l===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(l);return!this.invalid},
_getValidity:function(l){return this.hasValidator()?this._validator.validate(l):!0}};var luS={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"}},ecH=[_.cy,
_.RT,luS];_.RB({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 _.F1({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(l){return this.name+":"+l},this)},
applyIcon:function(l,e){this.removeIcon(l);if(e=this._cloneIcon(e,this.rtlMirroring&&this._targetIsRTL(l))){var O=_.c9(l.root||l);O.insertBefore(e,O.childNodes[0]);return l._svgIcon=e}return null},
removeIcon:function(l){l._svgIcon&&(_.c9(l.root||l).removeChild(l._svgIcon),l._svgIcon=null)},
_targetIsRTL:function(l){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(l&&l.nodeType!==Node.ELEMENT_NODE&&(l=l.host),this.__targetIsRTL=l&&window.getComputedStyle(l).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 l=Object.create(null);_.c9(this).querySelectorAll("[id]").forEach(function(e){l[e.id]=e});
return l},
_cloneIcon:function(l,e){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[l],this.size,e)},
_prepareSvgClone:function(l,e,O){if(l){l=l.cloneNode(!0);var E=document.createElementNS("http://www.w3.org/2000/svg","svg");e=l.getAttribute("viewBox")||"0 0 "+e+" "+e;var J="pointer-events: none; display: block; width: 100%; height: 100%;";O&&l.hasAttribute("mirror-in-rtl")&&(J+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");E.setAttribute("viewBox",e);E.setAttribute("preserveAspectRatio","xMidYMid meet");E.setAttribute("focusable","false");E.style&&(E.style.cssText=
J);E.appendChild(l).removeAttribute("id");return E}return null}});var O4q=function(l){this.multi=!1;this.selection=[];this.selectCallback=l};
_.X=O4q.prototype;_.X.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.X.clear=function(l){this.selection.slice().forEach(function(e){(!l||l.indexOf(e)<0)&&this.setItemSelected(e,!1)},this)};
_.X.isSelected=function(l){return this.selection.indexOf(l)>=0};
_.X.setItemSelected=function(l,e){if(l!=null&&e!==this.isSelected(l)){if(e)this.selection.push(l);else{var O=this.selection.indexOf(l);O>=0&&this.selection.splice(O,1)}this.selectCallback&&this.selectCallback(l,e)}};
_.X.select=function(l){this.multi?this.toggle(l):this.get()!==l&&(this.setItemSelected(this.get(),!1),this.setItemSelected(l,!0))};
_.X.toggle=function(l){this.setItemSelected(l,!this.isSelected(l))};_.Sy={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 O4q(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.c9(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(l){return this.items?this.items.indexOf(l):-1},
select:function(l){this.selected=l},
selectPrevious:function(){var l=this.items.length,e=l-1;this.selected!==void 0&&(e=(Number(this._valueToIndex(this.selected))-1+l)%l);this.selected=this._indexToValue(e)},
selectNext:function(){var l=0;this.selected!==void 0&&(l=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(l)},
selectIndex:function(l){this.select(this._indexToValue(l))},
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(l){this.listen(this,l,"_activateHandler")},
_removeListener:function(l){this.unlisten(this,l,"_activateHandler")},
_activateEventChanged:function(l,e){this._removeListener(e);this._addListener(l)},
_updateItems:function(){var l=_.c9(this).queryDistributedElements(this.selectable||"*");l=Array.prototype.filter.call(l,this._bindFilterItem);this._setItems(l)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var l=this._valueToItem(this.selected);l?this._selection.select(l):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(l){return!this._excludedLocalNames[l.localName]},
_valueToItem:function(l){return l==null?null:this.items[this._valueToIndex(l)]},
_valueToIndex:function(l){if(this.attrForSelected)for(var e=0,O;O=this.items[e];e++){if(this._valueForItem(O)==l)return e}else return Number(l)},
_indexToValue:function(l){if(this.attrForSelected){if(l=this.items[l])return this._valueForItem(l)}else return l},
_valueForItem:function(l){if(!l)return null;if(!this.attrForSelected)return l=this.indexOf(l),l===-1?null:l;var e=l[WQ(this.attrForSelected)];return e!=void 0?e:l.getAttribute(this.attrForSelected)},
_applySelection:function(l,e){this.selectedClass&&this.toggleClass(this.selectedClass,e,l);this.selectedAttribute&&this.toggleAttribute.call(l,this.selectedAttribute,e);this._selectionChange();this.fire("iron-"+(e?"select":"deselect"),{item:l})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(l){return _.c9(l).observeNodes(function(e){this._updateItems();this._updateSelected();this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(l){l=l.target;for(var e=this.items;l&&l!=this;){var O=e.indexOf(l);if(O>=0){e=this._indexToValue(O);this._itemActivate(e,l);break}l=l.parentNode}},
_itemActivate:function(l,e){this.fire("iron-activate",{selected:l,item:e},{cancelable:!0}).defaultPrevented||this.select(l)}};var E0k={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(l){this.multi?this._toggleSelected(l):this.selected=l},
multiChanged:function(l){this._selection.multi=l;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(l){return this._indexToValue(this.indexOf(l))},this).filter(function(l){return l!=null},this)):_.Sy._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(l){l=l||[];l=(this._valuesToItems(l)||[]).filter(function(O){return O!==null&&O!==void 0});
this._selection.clear(l);for(var e=0;e<l.length;e++)this._selection.setItemSelected(l[e],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var l=this._selection.get();this.multi?(this._setSelectedItems(l),this._setSelectedItem(l.length?l[0]:null)):l!==null&&l!==void 0?(this._setSelectedItems([l]),this._setSelectedItem(l)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(l){var e=this.selectedValues.indexOf(l);e<0?this.push("selectedValues",l):this.splice("selectedValues",e,1)},
_valuesToItems:function(l){return l==null?null:l.map(function(e){return this._valueToItem(e)},this)}},J3C=[_.Sy,
E0k];var Xf1;
_.Ta={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(l){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var e=this._valueToItem(l);e&&e.hasAttribute("disabled")||(this._setFocusedItem(e),E0k.select.apply(this,arguments))},
_resetTabindices:function(){var l=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(e){e.setAttribute("tabindex",e===l?"0":"-1");e.setAttribute("aria-selected",this._selection.isSelected(e))},this)},
_updateMultiselectable:function(l){l?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(l){if(this._MODIFIER_KEYS.indexOf(l.key)===-1){this.cancelDebouncer("_clearSearchText");var e=this._searchText||"";e+=(l.key&&l.key.length==1?l.key:String.fromCharCode(l.keyCode)).toLocaleLowerCase();l=e.length;for(var O=0,E;E=this.items[O];O++)if(!E.hasAttribute("disabled")){var J=this.attrForItemTitle||"textContent";J=(E[J]||E.getAttribute(J)||"").trim();if(!(J.length<l)&&J.slice(0,l).toLocaleLowerCase()==e){this._setFocusedItem(E);break}}this._searchText=e;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var l=this.items.length,e=Number(this.indexOf(this.focusedItem)),O=1;O<l+1;O++){var E=this.items[(e-O+l)%l];if(!E.hasAttribute("disabled")){var J=_.c9(E).getOwnerRoot()||document;this._setFocusedItem(E);if(_.c9(J).activeElement==E)break}}},
_focusNext:function(){for(var l=this.items.length,e=Number(this.indexOf(this.focusedItem)),O=1;O<l+1;O++){var E=this.items[(e+O)%l];if(!E.hasAttribute("disabled")){var J=_.c9(E).getOwnerRoot()||document;this._setFocusedItem(E);if(_.c9(J).activeElement==E)break}}},
_applySelection:function(l,e){e?l.setAttribute("aria-selected","true"):l.setAttribute("aria-selected","false");_.Sy._applySelection.apply(this,arguments)},
_focusedItemChanged:function(l,e){e&&e.setAttribute("tabindex","-1");!l||l.hasAttribute("disabled")||this.disabled||(l.setAttribute("tabindex","0"),l.focus())},
_onIronItemsChanged:function(l){l.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var l=this.getAttribute("tabindex");_.Ta._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",l);_.Ta._shiftTabPressed=!1},1)},
_onFocus:function(l){!_.Ta._shiftTabPressed&&(l=_.c9(l).rootTarget,l===this||typeof l.tabIndex==="undefined"||this.isLightDescendant(l))&&(this._defaultFocusAsync=this.async(function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);e?this._setFocusedItem(e):this.items[0]&&this._focusNext()}))},
_onUpKey:function(l){this._focusPrevious();l.detail.keyboardEvent.preventDefault()},
_onDownKey:function(l){this._focusNext();l.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var l=this.focusedItem;l&&l.blur()},
_onKeydown:function(l){this.keyboardEventMatchesKeys(l,"up down esc")||this._focusWithKeyboardEvent(l);l.stopPropagation()},
_activateHandler:function(l){_.Sy._activateHandler.call(this,l);l.stopPropagation()},
_disabledChanged:function(l){l?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Xf1=[J3C,_.po,_.Ta];_.zcF={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(l){this.focusedItem&&(this.focusedItem.click(),l.detail.keyboardEvent.preventDefault())},
_onDownKey:function(l){this.focusedItem&&(this.focusedItem.click(),l.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(l){return l.ctrlKey||l.shiftKey||l.altKey||l.metaKey},
_onLeftKey:function(l){this._isSpecialKey(l.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),l.detail.keyboardEvent.preventDefault())},
_onRightKey:function(l){this._isSpecialKey(l.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),l.detail.keyboardEvent.preventDefault())},
_onKeydown:function(l){this.keyboardEventMatchesKeys(l,"up down left right esc")||this._focusWithKeyboardEvent(l)}};
_.b4R=[Xf1,_.zcF];var Mb0;Mb0=new Set;_.sl={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},
attached:function(){this._requestResizeNotifications()},
detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Mb0.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(l){this.resizerShouldNotify(l)&&this._notifyDescendant(l)},this),this._fireResize())},
assignParentResizable:function(l){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=l)&&l._interestedResizables.indexOf(this)===-1&&(l._interestedResizables.push(this),l._subscribeIronResize(this))},
stopResizeNotificationsFor:function(l){var e=this._interestedResizables.indexOf(l);e>-1&&(this._interestedResizables.splice(e,1),this._unsubscribeIronResize(l))},
_subscribeIronResize:function(l){l.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(l){l.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(l){this._notifyingDescendant?l.stopPropagation():Lr||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(l){var e=_.c9(l).rootTarget;e!==this&&(e.assignParentResizable(this),this._notifyDescendant(e),l.stopPropagation())},
_parentResizableChanged:function(l){l&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(l){this.isAttached&&(this._notifyingDescendant=!0,l.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var l=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function O(){document.removeEventListener("readystatechange",O);l()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(Mb0.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?Mb0.delete(this):Mb0.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
*/
_.Vbk={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(l,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);e&&(l==="document"?this.scrollTarget=this._doc:typeof l==="string"?this.scrollTarget=(e=this.domHost)&&e.$?e.$[l]:_.c9(this.ownerDocument).querySelector("#"+l):this._isValidScrollTarget()&&(this._oldScrollTarget=l,this._toggleScrollListener(this._shouldHaveListener,l)))},
_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(l){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,l):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
l)},set _scrollLeft(l){this.scrollTarget===this._doc?window.scrollTo(l,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=l)},scroll:function(l,e){if(typeof l==="object"){var O=l.left;e=l.top}else O=l;O=O||0;e=e||0;this.scrollTarget===this._doc?window.scrollTo(O,e):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=O,this.scrollTarget.scrollTop=e)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(l,e){e=e===this._doc?window:e;l?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),e.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(e.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(l){this._shouldHaveListener=l;this._toggleScrollListener(l,this.scrollTarget)}};_.RB({is:"iron-selector",_template:null,behaviors:[J3C]});var Ga={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(l){if(l.timing)for(var e in l.timing)this.animationTiming[e]=l.timing[e];return this.animationTiming},
setPrefixedProperty:function(l,e,O){for(var E={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[e],J,z=0;J=E[z];z++)l.style[J]=O;l.style[e]=O},
complete:function(){}};_.RB({is:"fade-in-animation",_template:null,behaviors:[Ga],configure:function(l){return this._effect=new KeyframeEffect(l.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(l))}});_.RB({is:"fade-out-animation",_template:null,behaviors:[Ga],configure:function(l){return this._effect=new KeyframeEffect(l.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(l))}});var Z4q=[{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(l,e){for(var O in e)l[O]=e[O]},
_cloneConfig:function(l){var e={isClone:!0};this._copyProperties(e,l);return e},
_getAnimationConfigRecursive:function(l,e,O){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 E=l?this.animationConfig[l]:this.animationConfig;Array.isArray(E)||(E=[E]);if(E)for(var J,z=0;J=E[z];z++)if(J.animatable)J.animatable._getAnimationConfigRecursive(J.type||l,e,O);else if(J.id){var M=e[J.id];
M?(M.isClone||(e[J.id]=this._cloneConfig(M),M=e[J.id]),this._copyProperties(M,J)):e[J.id]=J}else O.push(J)}},
getAnimationConfig:function(l){var e={},O=[];this._getAnimationConfigRecursive(l,e,O);for(var E in e)O.push(e[E]);return O}},
{_configureAnimations:function(l){var e=[],O=[];if(l.length>0)for(var E,J=0;E=l[J];J++){var z=document.createElement(E.name);if(z.isNeonAnimation){var M=null;z.configure||(z.configure=function(){return null});
M=z.configure(E);O.push({result:M,config:E})}else console.warn(this.is+":",E.name,"not found!")}for(l=0;l<O.length;l++){M=O[l].result;E=O[l].config;try{typeof M.cancel!="function"&&(M=document.timeline.play(M))}catch(Z){M=null,console.warn("Couldnt play","(",E.name,").",Z)}M&&e.push({neonAnimation:z,config:E,animation:M})}return e},
_shouldComplete:function(l){for(var e=!0,O=0;O<l.length;O++)if(l[O].animation.playState!="finished"){e=!1;break}return e},
_complete:function(l){for(var e=0;e<l.length;e++)l[e].neonAnimation.complete(l[e].config);for(e=0;e<l.length;e++)l[e].animation.cancel()},
playAnimation:function(l,e){var O=this.getAnimationConfig(l);if(O){this._active=this._active||{};this._active[l]&&(this._complete(this._active[l]),delete this._active[l]);var E=this._configureAnimations(O);if(E.length==0)this.fire("neon-animation-finish",e,{bubbles:!1});else for(this._active[l]=E,O=0;O<E.length;O++)E[O].animation.onfinish=function(){this._shouldComplete(E)&&(this._complete(E),delete this._active[l],this.fire("neon-animation-finish",e,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var l in this._active){var e=this._active[l],O;for(O in e)e[O].animation&&e[O].animation.cancel&&e[O].animation.cancel()}this._active={}}}];var Ai=function(l,e){l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.arg=e;this.name=this.constructor.name;this.constructor=Ai;this.__proto__=Ai.prototype};
_.m(Ai,Error);var uOq=eJ(function(l){var e=function(){return l.apply(this,arguments)||this};
_.m(e,l);e.prototype._marshalArgs=function(O,E,J){E=l.prototype._marshalArgs.call(this,O,E,J);if(this._legacyUndefinedCheck&&E.length>1)for(J=0;J<E.length;J++)if(E[J]===void 0||O[J].wildcard&&E[J].base===void 0)throw O=O[J].name,new Ai("Argument '"+O+"' is undefined.",O);return E};
e.prototype._addPropertyEffect=function(O,E,J){return l.prototype._addPropertyEffect.call(this,O,E,Eht(J,J&&J.info&&J.info.methodName))};
e._addTemplatePropertyEffect=function(O,E,J){return l._addTemplatePropertyEffect.call(this,O,E,Eht(J))};
return e}),Csq=_.RB.Class;
_.RB.Class=function(l,e){return Csq(l,function(O){return e?e(uOq(O)):uOq(O)})};
var o0C=eJ(function(l){var e=uOq(l);l=function(){return e.apply(this,arguments)||this};
_.m(l,e);_.Ji.Object.defineProperties(l.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return l}),$TS=qY.mixin;
qY.mixin=$TS?function(l){return o0C($TS(l))}:o0C;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.By=_.Hy.IronButtonState;var rLp=hP;/*

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

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
*/
_.RB({_template:function(){if(dj1!==void 0)return dj1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Wf1===void 0&&(Wf1=document.createElement("template"));var E=Wf1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return dj1=l},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.RT,_.Ko],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(l){this.$.textarea.selectionStart=l},set selectionEnd(l){this.$.textarea.selectionEnd=l},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var l=this.$.textarea.validity.valid;l&&(this.required&&this.value===""?l=!1:this.hasValidator()&&(l=_.RT.validate.call(this,this.value)));this.invalid=!l;this.fire("iron-input-validate");return l},
_bindValueChanged:function(l){this.value=l},
_valueChanged:function(l){var e=this.textarea;e&&(e.value!==l&&(e.value=l||l===0?l:""),this.bindValue=l,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(l){var e=_.c9(l).path;this.value=e?e[0].value:l.target.value},
_constrain:function(l){var e;l=l||[""];for(e=this.maxRows>0&&l.length>this.maxRows?l.slice(0,this.maxRows):l.slice(0);this.rows>0&&e.length<this.rows;)e.push("");return e.join("\n")+"\u00a0"},
_valueForMirror:function(){var l=this.textarea;if(l)return this.tokens=l&&l.value?l.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var g7q;var idR;_.RB({_template:function(){if(idR!==void 0)return idR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;g7q===void 0&&(g7q=document.createElement("template"));var E=g7q;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return idR=l},
is:"tp-yt-iron-collapse",behaviors:[_.sl],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(l,e){l=l==="auto"?"":l;e=e&&!this.noAnimation&&this.isAttached&&this._desiredSize!==l;this._desiredSize=l;this._updateTransition(!1);e&&(e=this._calcSize(),l===""&&(this.style[this._dimensionMax]="",l=this._calcSize()),this.style[this._dimensionMax]=e,this.scrollTop=this.scrollTop,this._updateTransition(!0),e=l!==e);this.style[this._dimensionMax]=l;e||this._transitionEnd()},
enableTransition:function(l){_.pi._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!l},
_updateTransition:function(l){this.style.transitionDuration=l&&!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(l){_.c9(l).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var wF6;var AmR;var n71=void 0,aw1={properties:{sizingTarget:{type:Object,value:function(){var l;return(l=this.hostElement)!=null?l:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var l,e=_.c9((l=this.hostElement)!=null?l:
this).parentNode;e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host);return e},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var l;this._memoizedIsRTL=window.getComputedStyle((l=this.hostElement)!=null?l:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var l;window.getComputedStyle((l=this.hostElement)!=null?l: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 l,e=window.getComputedStyle((l=this.hostElement)!=null?l:this);l=window.getComputedStyle(this.sizingTarget);var O,E,J;this._fitInfo={inlineStyle:{top:((O=this.hostElement)!=null?O:this).style.top||"",left:((E=this.hostElement)!=null?E:this).style.left||"",position:((J=this.hostElement)!=null?J:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:e.top!=="auto"?"top":e.bottom!=="auto"?"bottom":null,horizontally:e.left!=="auto"?"left":e.right!=="auto"?"right":null},sizedBy:{height:l.maxHeight!=="none",width:l.maxWidth!=="none",minWidth:parseInt(l.minWidth,10)||0,minHeight:parseInt(l.minHeight,10)||0},margin:{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}}}},
resetFit:function(){var l=this._fitInfo||{},e;for(e in l.sizerInlineStyle)this.sizingTarget.style[e]=l.sizerInlineStyle[e];for(e in l.inlineStyle){var O=void 0;((O=this.hostElement)!=null?O:this).style[e]=l.inlineStyle[e]}this._fitInfo=null},
refit:function(){var l=this.sizingTarget.scrollLeft,e=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=l;this.sizingTarget.scrollTop=e},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var l;((l=this.hostElement)!=null?l:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var e;((e=this.hostElement)!=null?e:this).style.left="0px";var O;((O=this.hostElement)!=null?O:this).style.top="0px";var E,J=((E=this.hostElement)!=null?E:this).getBoundingClientRect();e=this.__getNormalizedRect(this.positionTarget);E=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(E={left:E.left+24,right:E.right-24,top:E.top+24,bottom:E.bottom-24});if(this.expandSizingTargetForScrollbars){var z=this.sizingTarget.offsetWidth;var M=this.sizingTarget.offsetHeight;var Z=this.sizingTarget.clientWidth;var u=this.sizingTarget.clientHeight}l=this._fitInfo.margin;e=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:J.width+l.left+l.right,height:J.height+l.top+l.bottom},J,e,E);var d=e.left+l.left,g=e.top+l.top;O=Math.min(E.right-l.right,d+J.width);var w=Math.min(E.bottom-
l.bottom,g+J.height);d=Math.max(E.left+l.left,Math.min(d,O-this._fitInfo.sizedBy.minWidth));g=Math.max(E.top+l.top,Math.min(g,w-this._fitInfo.sizedBy.minHeight));O=Math.max(O-d,this._fitInfo.sizedBy.minWidth);w=Math.max(w-g,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=O+"px";this.sizingTarget.style.maxHeight=w+"px";d-=J.left;J=g-J.top;var n;((n=this.hostElement)!=null?n:this).style.left=d+"px";var k;((k=this.hostElement)!=null?k:this).style.top=J+"px";if(this.expandSizingTargetForScrollbars){n=
this.sizingTarget.offsetHeight;M=n-this.sizingTarget.clientHeight-(M-u);if(M>0){this.sizingTarget.style.maxHeight=Math.min(E.height-l.top-l.bottom,w+M)+"px";M=this.sizingTarget.offsetHeight;u=M-n;var y;e.verticalAlign==="top"?y=J:e.verticalAlign==="middle"?y=J-u/2:e.verticalAlign==="bottom"&&(y=J-u);y=Math.max(E.top+l.top,Math.min(y,E.bottom-l.bottom-M));var c;((c=this.hostElement)!=null?c:this).style.top=y+"px"}y=this.sizingTarget.offsetWidth;z=y-this.sizingTarget.clientWidth-(z-Z);if(z>0){n71!==
void 0?Z=n71:(Z=document.createElement("div"),Object.assign(Z.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),c=document.createElement("div"),c.style.width="200px",c.style.height="200px",Z.appendChild(c),document.body.appendChild(Z),n71=Math.abs(Z.offsetWidth-100)>1?Z.offsetWidth-Z.clientWidth:0,document.body.removeChild(Z),Z=n71);this.sizingTarget.style.maxWidth=Math.min(E.width-l.left-l.right,O+z-Z)+"px";z=this.sizingTarget.offsetWidth+Z;Z=z-y;var f;
e.horizontalAlign==="left"?f=d:e.horizontalAlign==="center"?f=d-Z/2:e.horizontalAlign==="right"&&(f=d-Z);f=Math.max(E.left+l.left,Math.min(f,E.right-l.right-z));var P;((P=this.hostElement)!=null?P:this).style.left=f+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var l=this._fitInfo;if(!l.positionedBy.vertically){var e;((e=this.hostElement)!=null?e:this).style.position="fixed";var O;((O=this.hostElement)!=null?O:this).style.top="0px"}if(!l.positionedBy.horizontally){var E;((E=this.hostElement)!=null?E:this).style.position="fixed";var J;((J=this.hostElement)!=null?J:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var z;e=((z=this.hostElement)!=null?z:this).getBoundingClientRect();
l.sizedBy.height||this.__sizeDimension(e,l.positionedBy.vertically,"top","bottom","Height");l.sizedBy.width||this.__sizeDimension(e,l.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(l,e,O,E,J){this.__sizeDimension(l,e,O,E,J)},
__sizeDimension:function(l,e,O,E,J){var z=this._fitInfo,M=this.__getNormalizedRect(this.fitInto);M=J==="Width"?M.width:M.height;l=(e=e===E)?M-l[E]:l[O];O=z.margin[e?O:E];E="offset"+J;var Z;z=((Z=this.hostElement)!=null?Z:this)[E]-this.sizingTarget[E];this.sizingTarget.style["max"+J]=M-O-l-z+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var l=this._fitInfo.positionedBy;if(!l.vertically||!l.horizontally){var e;((e=this.hostElement)!=null?e:this).style.position="fixed";if(!l.vertically){var O;((O=this.hostElement)!=null?O:this).style.top="0px"}if(!l.horizontally){var E;((E=this.hostElement)!=null?E:this).style.left="0px"}var J;e=((J=this.hostElement)!=null?J:this).getBoundingClientRect();J=this.__getNormalizedRect(this.fitInto);if(!l.vertically){O=J.top-e.top+(J.height-
e.height)/2;var z;((z=this.hostElement)!=null?z:this).style.top=O+"px"}if(!l.horizontally){l=J.left-e.left+(J.width-e.width)/2;var M;((M=this.hostElement)!=null?M:this).style.left=l+"px"}}}},
__getNormalizedRect:function(l){return l===document.documentElement||l===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:l.getBoundingClientRect()},
__getOffscreenArea:function(l,e,O){return Math.abs(Math.min(0,l.top)+Math.min(0,O.bottom-(l.top+e.height)))*e.width+Math.abs(Math.min(0,l.left)+Math.min(0,O.right-(l.left+e.width)))*e.height},
__getPosition:function(l,e,O,E,J,z){var M=[{verticalAlign:"top",horizontalAlign:"left",top:J.top+this.verticalOffset,left:J.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:J.top+this.verticalOffset,left:J.right-O.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:J.bottom-O.height-this.verticalOffset,left:J.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:J.bottom-O.height-this.verticalOffset,left:J.right-O.width-
this.horizontalOffset}];if(this.noOverlap){for(var Z=0,u=M.length;Z<u;Z++){var d={},g;for(g in M[Z])d[g]=M[Z][g];M.push(d)}M[0].top=M[1].top+=J.height;M[2].top=M[3].top-=J.height;M[4].left=M[6].left+=J.width;M[5].left=M[7].left-=J.width}e=e==="auto"?null:e;l=l==="auto"?null:l;l&&l!=="center"||(M.push({verticalAlign:"top",horizontalAlign:"center",top:J.top+this.verticalOffset+(this.noOverlap?J.height:0),left:J.left-E.width/2+J.width/2+this.horizontalOffset}),M.push({verticalAlign:"bottom",horizontalAlign:"center",
top:J.bottom-O.height-this.verticalOffset-(this.noOverlap?J.height:0),left:J.left-E.width/2+J.width/2+this.horizontalOffset}));e&&e!=="middle"||(M.push({verticalAlign:"middle",horizontalAlign:"left",top:J.top-E.height/2+J.height/2+this.verticalOffset,left:J.left+this.horizontalOffset+(this.noOverlap?J.width:0)}),M.push({verticalAlign:"middle",horizontalAlign:"right",top:J.top-E.height/2+J.height/2+this.verticalOffset,left:J.right-O.width-this.horizontalOffset-(this.noOverlap?J.width:0)}));e==="middle"&&
l==="center"&&M.push({verticalAlign:"middle",horizontalAlign:"center",top:J.top-E.height/2+J.height/2+this.verticalOffset,left:J.left-E.width/2+J.width/2+this.horizontalOffset});for(Z=0;Z<M.length;Z++){E=M[Z];J=E.verticalAlign===e;u=E.horizontalAlign===l;if(!this.dynamicAlign&&!this.noOverlap&&J&&u){var w=E;break}d=(!e||J)&&(!l||u);if(this.dynamicAlign||d){E.offscreenArea=this.__getOffscreenArea(E,O,z);if(E.offscreenArea===0&&d){w=E;break}E.alignsOk=J+u;w=w||E;J=E.offscreenArea-w.offscreenArea;if(J<
0||J===0&&E.alignsOk>w.alignsOk)w=E}}return w}};/*

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 vy,kkx,Iwq;vy=Element.prototype;kkx=vy.matches||vy.matchesSelector||vy.mozMatchesSelector||vy.msMatchesSelector||vy.oMatchesSelector||vy.webkitMatchesSelector;Iwq=function(){};
_.ymi=function(l){var e=mjR,O=[];return e._collectTabbableNodes(l,O)?e._sortByTabIndex(O):O};
_.X=Iwq.prototype;_.X._normalizedTabIndex=function(l){return(kkx.call(l,"input, select, textarea, button, object")?kkx.call(l,":not([disabled])"):kkx.call(l,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(l=l.getAttribute("tabindex")||0,Number(l)):-1};
_.X._collectTabbableNodes=function(l,e){if(l.nodeType!==Node.ELEMENT_NODE||!this._isVisible(l))return!1;var O=this._normalizedTabIndex(l),E=O>0;O>=0&&e.push(l);if(l.localName==="content"||l.localName==="slot")O=_.c9(l).getDistributedNodes();else{var J;O=((J=_.c9(l).shadowRoot)!=null?J:_.c9(l.root||l)).children}for(l=0;l<O.length;l++)E=this._collectTabbableNodes(O[l],e)||E;return E};
_.X._isVisible=function(l){var e=l.style;return e.visibility!=="hidden"&&e.display!=="none"?(e=window.getComputedStyle(l),e.visibility!=="hidden"&&e.display!=="none"):!1};
_.X._sortByTabIndex=function(l){var e=l.length;if(e<2)return l;var O=Math.ceil(e/2);e=this._sortByTabIndex(l.slice(0,O));l=this._sortByTabIndex(l.slice(O));return this._mergeSortByTabIndex(e,l)};
_.X._mergeSortByTabIndex=function(l,e){for(var O=[];l.length>0&&e.length>0;)this._hasLowerTabOrder(l[0],e[0])?O.push(e.shift()):O.push(l.shift());return O.concat(l,e)};
_.X._hasLowerTabOrder=function(l,e){l=Math.max(l.tabIndex,0);e=Math.max(e.tabIndex,0);return l===0||e===0?e>l:l>e};
var mjR=new Iwq;var pFC;var KfF;_.RB({_template:function(){if(KfF!==void 0)return KfF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;pFC===void 0&&(pFC=document.createElement("template"));var E=pFC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return KfF=l},
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&&_.c9(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.c9(this.parentNode).removeChild(this)},
_onTransitionend:function(l){l&&l.target===this&&this.complete()},
_openedChanged:function(l){l?this.prepare():(l=window.getComputedStyle(this),l.transitionDuration!=="0s"&&l.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 NZ=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;GL(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)};
NZ.prototype._bringOverlayAtIndexToFront=function(l){var e=this._overlays[l];if(e){var O=this._overlays.length-1,E=this._overlays[O];E&&this._shouldBeBehindOverlay(e,E)&&O--;if(!(l>=O)){E=Math.max(this._getZ(_.jx1(this)),this._minimumZ);for(this._getZ(e)<=E&&this._applyOverlayZ(e,E);l<O;)this._overlays[l]=this._overlays[l+1],l++;this._overlays[O]=e}}};
NZ.prototype.addOverlay=function(l){var e=this._overlays.indexOf(l);if(e>=0)this._bringOverlayAtIndexToFront(e);else{e=this._overlays.length;var O=this._overlays[e-1],E=Math.max(this._getZ(O),this._minimumZ),J=this._getZ(l);O&&this._shouldBeBehindOverlay(l,O)&&(this._applyOverlayZ(O,E),e--,E=Math.max(this._getZ(this._overlays[e-1]),this._minimumZ));J<=E&&this._applyOverlayZ(l,E);this._overlays.splice(e,0,l)}this.trackBackdrop()};
NZ.prototype.removeOverlay=function(l){l=this._overlays.indexOf(l);l!==-1&&(this._overlays.splice(l,1),this.trackBackdrop())};
_.jx1=function(l){return l._overlays[l._overlays.length-1]};
_.X=NZ.prototype;_.X.trackBackdrop=function(){var l=this._overlayWithBackdrop();if(l||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(l)-1,this.backdropElement.opened=!!l,this.backdropElement.prepare()};
_.X._overlayWithBackdrop=function(){for(var l=this._overlays.length-1;l>=0;l--)if(this._overlays[l].withBackdrop)return this._overlays[l]};
_.X._getZ=function(l){var e=this._minimumZ;if(l){var O,E,J=Number(((O=l.hostElement)!=null?O:l).style.zIndex||window.getComputedStyle((E=l.hostElement)!=null?E:l).zIndex);J===J&&(e=J)}return e};
_.X._setZ=function(l,e){var O;((O=l.hostElement)!=null?O:l).style.zIndex=e};
_.X._applyOverlayZ=function(l,e){this._setZ(l,e+2)};
_.X._overlayInPath=function(l){l=l||[];for(var e=0;e<l.length;e++){var O=void 0;if(((O=l[e].polymerController)!=null?O:l[e])._manager===this)return l[e]}};
_.X._onCaptureClick=function(l){var e=this._overlays.length-1;if(e!==-1)for(var O=_.c9(l).path,E,J;(E=this._overlays[e])&&this._overlayInPath(O)!==((J=E.hostElement)!=null?J:E);)if(E._onCaptureClick(l),E.allowClickThrough)e--;else break};
_.X._onCaptureFocus=function(l){var e=_.jx1(this);e&&e._onCaptureFocus(l)};
_.X._onCaptureKeyDown=function(l){var e=_.jx1(this);e&&(_.po.keyboardEventMatchesKeys(l,"esc")?e._onCaptureEsc(l):_.po.keyboardEventMatchesKeys(l,"tab")&&e._onCaptureTab(l))};
_.X._shouldBeBehindOverlay=function(l,e){return!l.alwaysOnTop&&e.alwaysOnTop&&!e.contains(l)};
_.Ji.Object.defineProperties(NZ.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 l=document.activeElement;l&&l instanceof Element!==!1||(l=document.body);for(;l.root&&_.c9(l.root).activeElement;)l=_.c9(l.root).activeElement;return l}}});
_.r0=new NZ;var K4q=0,jI8=0,H3d=null,cru=[],Fc=["wheel","mousewheel","DOMMouseScroll"],F4g;_.a("web_no_lock_on_touchstart_killswitch")&&(Fc.push("touchstart"),Fc.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;_.DY={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:_.r0},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var l;return this._focusedChild||_.c9((l=this.hostElement)!=null?l:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var l;return _.ymi((l=this.hostElement)!=null?l: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 l;this._observer=_.c9((l=this.hostElement)!=null?l:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var l;_.c9((l=this.hostElement)!=null?l:this).unobserveNodes(this._observer)}this._observer=null;for(var e in this.__rafs)this.__rafs[e]!==null&&cancelAnimationFrame(this.__rafs[e]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(l){this.fire("iron-overlay-canceled",l,{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 l;((l=this.hostElement)!=null?l:this).style.outline="none";var e;((e=this.hostElement)!=null?e:this).style.display="none"}},
_openedChanged:function(l){if(l){var e;((e=this.hostElement)!=null?e:this).removeAttribute("aria-hidden")}else{var O;((O=this.hostElement)!=null?O: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 l;if(this.withBackdrop&&!((l=this.hostElement)!=null?l:this).hasAttribute("tabindex")){var e;((e=this.hostElement)!=null?e:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var O;((O=this.hostElement)!=null?O: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 l;((l=this.hostElement)!=null?l:this).style.display="none";var e;((e=this.hostElement)!=null?e:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var l,e;((l=this.hostElement)!=null?l:this).style.transition=((e=this.hostElement)!=null?e:this).style.webkitTransition="none";var O,E;((O=this.hostElement)!=null?O:this).style.transform=((E=this.hostElement)!=null?E:this).style.webkitTransform="none";var J;((J=this.hostElement)!=null?J:this).style.display=""},
_finishPositioning:function(){var l;((l=this.hostElement)!=null?l:this).style.display="none";this.scrollTop=this.scrollTop;var e,O;((e=this.hostElement)!=null?e:this).style.transition=((O=this.hostElement)!=null?O:this).style.webkitTransition="";var E,J;((E=this.hostElement)!=null?E:this).style.transform=((J=this.hostElement)!=null?J:this).style.webkitTransform="";var z;((z=this.hostElement)!=null?z:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var l=this._manager.deepActiveElement,e;if(!(e=l===document.body))a:{for(;l;l=l.assignedSlot||l.parentNode||l.host)if(l===this){e=!0;break a}e=!1}e&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(l){this.noCancelOnOutsideClick||this.cancel(l)},
_onCaptureFocus:function(l){if(this.withBackdrop){var e=_.c9(l).path;e.indexOf(this)===-1?(l.stopPropagation(),this._applyFocus()):this._focusedChild=e[0]}},
_onCaptureEsc:function(l){this.noCancelOnEscKey||this.cancel(l)},
_onCaptureTab:function(l){if(this.withBackdrop){this.__ensureFirstLastFocusables();var e=l.shiftKey,O=e?this.__firstFocusableNode:this.__lastFocusableNode;e=e?this.__lastFocusableNode:this.__firstFocusableNode;if(O===e)O=!0;else{var E=this._manager.deepActiveElement;O=E===O||E===this}O&&(l.preventDefault(),this._focusedChild=e,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var l=this._focusableNodes;this.__firstFocusableNode=l[0];this.__lastFocusableNode=l[l.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(l,e){var O=this.__rafs;O[l]!==null&&cancelAnimationFrame(O[l]);O[l]=requestAnimationFrame(function(){O[l]=null;e.call(this)}.bind(this))},
__updateScrollObservers:function(l,e,O){l&&e&&this.__isValidScrollAction(O)?(O==="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),F4g=_._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()):(l=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),l!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(l,1),F4g=_._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(Lr)for(var l=this;l;)l.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&l.host&&this.__rootNodes.push(l),l=l.host||l.assignedSlot||l.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(e){e.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(l){l.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(l){return l==="lock"||l==="refit"||l==="cancel"},
__onCaptureScroll:function(l){if(!(this.__isAnimating||_.c9(l).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(l)}},
__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)}};
_.SZ=[aw1,_.sl,_.DY];_.RB({_template:function(){if(AmR!==void 0)return AmR;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;wF6===void 0&&(wF6=document.createElement("template"));var E=wF6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return AmR=l},
is:"tp-yt-iron-dropdown",behaviors:[_.Ko,_.po,_.SZ,Z4q],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 l=_.c9(this.$.content).getDistributedNodes(),e=0,O=l.length;e<O;e++)if(l[e].nodeType===Node.ELEMENT_NODE)return l[e]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.DY._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.DY._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.DY._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var l=this.containedElement,e=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),O=0;O<e.length;O++)e[O].node=l;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(l){this._readied&&(l?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var l=this.focusTarget||this.containedElement;l&&this.opened&&!this.noAutoFocus?l.focus():_.DY._applyFocus.apply(this,arguments)}});var Hdq;var cmS;/*

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 Ffq=new _.F1({type:"iconset"});
_.RB({_template:function(){if(cmS!==void 0)return cmS;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Hdq===void 0&&(Hdq=document.createElement("template"));
var E=Hdq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return cmS=l},
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(l){l=(l||"").split(":");this._iconName=l.pop();this._iconsetName=l.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&&_.c9(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Ffq.byKey(this._iconsetName)){var l=this._iconset.applyIcon(this,this._iconName,this.theme);l&&l.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,_.c9(this.root).appendChild(this._img)}});var fwH;var Rj0;_.RB({_template:function(){if(Rj0!==void 0)return Rj0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;fwH===void 0&&(fwH=document.createElement("template"));var E=fwH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Rj0=l},
is:"tp-yt-iron-input",behaviors:[_.RT],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(){_.qZ.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.c9(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.c9(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 l=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":l=/[0-9.,e-]/}return l},_bindValueChanged:function(l,e){e&&(l===void 0?e.value=null:l!==e.value&&(this.inputElement.value=l),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:l}))},
_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(l){var e=l.keyCode==19||l.keyCode==20||l.keyCode==45||l.keyCode==46||l.keyCode==144||l.keyCode==145||l.keyCode>32&&l.keyCode<41||l.keyCode>111&&l.keyCode<124;return!(l.keyCode==8||l.keyCode==9||l.keyCode==13||l.keyCode==27)&&!(l.charCode==0&&e)},
_onKeypress:function(l){if(this.allowedPattern||this.inputElement.type==="number"){var e=this._patternRegExp;if(e&&!(l.metaKey||l.ctrlKey||l.altKey)){this._patternAlreadyChecked=!0;var O=String.fromCharCode(l.charCode);this._isPrintable(l)&&!e.test(O)&&(l.preventDefault(),this._announceInvalidCharacter("Invalid character "+O+" not entered."))}}},
_checkPatternValidity:function(){var l=this._patternRegExp;if(!l)return!0;for(var e=0;e<this.inputElement.value.length;e++)if(!l.test(this.inputElement.value[e]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var l=this.inputElement.checkValidity();l&&(this.required&&this.bindValue===""?l=!1:this.hasValidator()&&(l=_.RT.validate.call(this,this.bindValue)));this.invalid=!l;this.fire("iron-input-validate");return l},
_announceInvalidCharacter:function(l){this.fire("iron-announce",{text:l})},
_computeValue:function(l){return l}});var TgC;var sx1;var Gki=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Bg1=Gki&&Gki[1]>=8;
_.RB({_template:function(){if(sx1!==void 0)return sx1;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;TgC===void 0&&(TgC=document.createElement("template"));var E=TgC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return sx1=l},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[Dfx,_.sl,_.Vbk,QcS],_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 _.c9(_.c9(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var l=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,l-this._physicalCount)},set _virtualStart(l){l=this._clamp(l,0,this._maxVirtualStart);this.grid&&(l-=l%this._itemsPerRow);this._virtualStartVal=l},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(l){l%=this._physicalCount;l<0&&(l=this._physicalCount+l);this.grid&&(l-=l%this._itemsPerRow);this._physicalStartVal=l},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(l){this._physicalCountVal=l},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 l=this._firstVisibleIndexVal;if(l==null){var e=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
l=this._iterateItems(function(O,E){e+=this._getPhysicalSizeIncrement(O);if(e>this._scrollPosition)return this.grid?E-E%this._itemsPerRow:E;if(this.grid&&this._virtualCount-1===E)return E-E%this._itemsPerRow})||0}return l},
get lastVisibleIndex(){var l=this._lastVisibleIndexVal;if(l==null){if(this.grid)l=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var e=this._physicalTop+this._scrollOffset;this._iterateItems(function(O,E){e<this._scrollBottom&&(l=E);e+=this._getPhysicalSizeIncrement(O)})}this._lastVisibleIndexVal=l}return l},
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,_.RX);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(l){this.style.webkitOverflowScrolling=l===this?"touch":"";this.style.overflowY=l===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.RX)},
updateViewportBoundaries:function(){var l=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(l["padding-top"],10);this._isRTL=l.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var l=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),e=l-this._scrollPosition,O=e>=0;this._scrollPosition=l;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(e)>this._physicalSize&&this._physicalSize>0?(e-=this._scrollOffset,O=Math.round(e/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=O,this._physicalStart+=O,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(l=this._getReusables(O),O?(this._physicalTop=l.physicalTop,this._virtualStart+=l.indexes.length,this._physicalStart+=l.indexes.length):(this._virtualStart=this._virtualStart-l.indexes.length,this._physicalStart=this._physicalStart-l.indexes.length),this._update(l.indexes,O?null:l.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),U0))},
_getReusables:function(l){var e=[],O=this._hiddenContentSize*this._ratio,E=this._virtualStart,J=this._virtualEnd,z=this._physicalCount,M=this._physicalTop+this._scrollOffset;var Z=this._physicalBottom+this._scrollOffset;var u=this._scrollPosition,d=this._scrollBottom;if(l){var g=this._physicalStart;Z=u-M}else g=this._physicalEnd,Z-=d;for(;;){var w=this._getPhysicalSizeIncrement(g);Z-=w;if(e.length>=z||Z<=O)break;if(l){if(J+e.length+1>=this._virtualCount)break;if(M+w>=u-this._scrollOffset)break;e.push(g);
M+=w;g=(g+1)%z}else{if(E-e.length<=0)break;if(M+this._physicalSize-w<=d)break;e.push(g);M-=w;g=g===0?z-1:g-1}}return{indexes:e,physicalTop:M-this._scrollOffset}},
_update:function(l,e){if(!(l&&l.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(l);this._updateMetrics(l);if(e)for(;e.length;)l=e.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(l);this._positionItems();this._updateScrollerSize()}},
_createPool:function(l){this._ensureTemplatized();var e,O=Array(l);for(e=0;e<l;e++){var E=this.stamp(null);O[e]=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}return O},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(l){l=this._clamp(this._physicalCount+l,3,this._virtualCount-this._virtualStart);l=this._convertIndexToCompleteRow(l);if(this.grid){var e=l%this._itemsPerRow;e&&l-e<=this._physicalCount&&(l+=this._itemsPerRow);l-=e}l-=this._physicalCount;e=Math.round(this._physicalCount*.5);if(!(l<0)){if(l>0){e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(l));for(var O=0;O<l;O++)this._physicalSizes.push(0);this._physicalCount+=l;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=l);this._update();this._templateCost=(window.performance.now()-e)/l;e=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||e===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,e)),f8q):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,e),U0))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var l=this._getReusables(!0);this._physicalTop=l.physicalTop;this._virtualStart+=l.indexes.length;this._physicalStart+=l.indexes.length;this._update(l.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 l={__key__:!0};l[this.as]=!0;l[this.indexAs]=!0;l[this.selectedAs]=!0;l.tabIndex=!0;this._instanceProps=l;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(l,e){typeof e!=="undefined"&&(this.notifyResize(),_.gI(),l&&this._updateGridMetrics())},
_itemsChanged:function(l){if(l.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,
_.RX);else if(l.path==="items.splices"){this._adjustVirtualIndex(l.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(l.value.indexSplices.some(function(O){return O.addedCount>0||O.removed.length>0})){var e=this._getActiveElement();
this.contains(e)&&e.blur()}l=l.value.indexSplices.some(function(O){return O.index+O.addedCount>=this._virtualStart&&O.index<=this._virtualEnd},this);
this._isClientFull()&&!l||this._debounce("_render",this._render,_.RX)}else l.path!=="items.length"&&this._forwardItemPath(l.path,l.value)},
_forwardItemPath:function(l,e){l=l.slice(6);var O=l.indexOf(".");O===-1&&(O=l.length);var E,J=this.modelForElement(this._offscreenFocusedItem),z=parseInt(l.substring(0,O),10);if(E=this._isIndexRendered(z)){var M=this._getPhysicalIndex(z);var Z=this.modelForElement(this._physicalItems[M])}else J&&(Z=J);Z&&Z[this.indexAs]===z&&(l=l.substring(O+1),l=this.as+(l?"."+l:""),Z._setPendingPropertyOrPath(l,e,!1,!0),Z._flushProperties&&Z._flushProperties(),E&&(this._updateMetrics([M]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(l){l.forEach(function(e){e.removed.forEach(this._removeItem,this);e.index<this._virtualStart&&(e=Math.max(e.addedCount-e.removed.length,e.index-this._virtualStart),this._virtualStart+=e,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=e))},this)},
_removeItem:function(l){this.$.selector.deselect(l);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===l&&this._removeFocusedItem()},
_iterateItems:function(l,e){var O,E;if(arguments.length===2&&e)for(E=0;E<e.length;E++){var J=e[E];var z=this._computeVidx(J);if((O=l.call(this,J,z))!=null)return O}else{J=this._physicalStart;for(z=this._virtualStart;J<this._physicalCount;J++,z++)if((O=l.call(this,J,z))!=null)return O;for(J=0;J<this._physicalStart;J++,z++)if((O=l.call(this,J,z))!=null)return O}},
_computeVidx:function(l){return l>=this._physicalStart?this._virtualStart+(l-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+l},
_assignModels:function(l){this._iterateItems(function(e,O){var E=this._physicalItems[e],J=this.items&&this.items[O];if(J!=null){var z=this.modelForElement(E);z.__key__=null;this._forwardProperty(z,this.as,J);this._forwardProperty(z,this.selectedAs,this.$.selector.isSelected(J));this._forwardProperty(z,this.indexAs,O);this._forwardProperty(z,"tabIndex",this._focusedVirtualIndex===O?0:-1);this._physicalIndexForKey[z.__key__]=e;z._flushProperties&&z._flushProperties(!0);E.removeAttribute("hidden")}else E.setAttribute("hidden",
"")},l)},
_updateMetrics:function(l){_.gI();var e=0,O=0,E=this._physicalAverageCount,J=this._physicalAverage;this._iterateItems(function(z){O+=this._physicalSizes[z];this._physicalSizes[z]=this._physicalItems[z].offsetHeight;e+=this._physicalSizes[z];this._physicalAverageCount+=this._physicalSizes[z]?1:0},l);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(O=this._itemsPerRow===1?O:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+e-O,this._itemsPerRow=1);this._physicalAverageCount!==E&&(this._physicalAverage=Math.round((J*E+e)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var l=this._physicalTop;if(this.grid){var e=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(O,E){var J=Math.floor(E%this._itemsPerRow*this._itemWidth+e);this._isRTL&&(J*=-1);this.translate3d(J+"px",l+"px",0,this._physicalItems[O]);this._shouldRenderNextRow(E)&&(l+=this._rowHeight)})}else this._iterateItems(function(O){this.translate3d(0,l+"px",0,this._physicalItems[O]);
l+=this._physicalSizes[O]})},
_getPhysicalSizeIncrement:function(l){return this.grid?this._computeVidx(l)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[l]},
_shouldRenderNextRow:function(l){return l%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var l=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(l!==0){this._physicalTop=this._physicalTop-l;var e=this._scrollPosition;!Bg1&&e>0&&this._resetScrollPosition(e-l)}},
_resetScrollPosition:function(l){this.scrollTarget&&l>=0&&(this._scrollPosition=this._scrollTop=l)},
_updateScrollerSize:function(l){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((l=(l=(l=l||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(l){return this.scrollToIndex(this.items.indexOf(l))},
scrollToIndex:function(l){if(!(typeof l!=="number"||l<0||l>this.items.length-1)&&(_.gI(),this._physicalCount!==0)){l=this._clamp(l,0,this._virtualCount-1);if(!this._isIndexRendered(l)||l>=this._maxVirtualStart)this._virtualStart=this.grid?l-this._itemsPerRow*2:l-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var e=this._physicalStart,O=this._virtualStart,E=0,J=this._hiddenContentSize;O<l&&
E<=J;)E+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,O++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+E);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)},_.RX)},
selectItem:function(l){return this.selectIndex(this.items.indexOf(l))},
selectIndex:function(l){if(!(l<0||l>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(l)){var e=this.modelForElement(this._physicalItems[this._getPhysicalIndex(l)]);e&&(e[this.selectedAs]=!0);this.updateSizeForIndex(l)}this.$.selector.selectIndex(l)}},
deselectItem:function(l){return this.deselectIndex(this.items.indexOf(l))},
deselectIndex:function(l){l<0||l>=this._virtualCount||(this._isIndexRendered(l)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(l)])[this.selectedAs]=!1,this.updateSizeForIndex(l)),this.$.selector.deselectIndex(l))},
toggleSelectionForItem:function(l){return this.toggleSelectionForIndex(this.items.indexOf(l))},
toggleSelectionForIndex:function(l){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(l):this.$.selector.isSelected(this.items[l]))?this.deselectIndex(l):this.selectIndex(l)},
clearSelection:function(){this._iterateItems(function(l){this.modelForElement(this._physicalItems[l])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(l){(l?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(l){var e=this.modelForElement(l.target);if(e){var O=_.c9(l).path[0];l=this._getActiveElement();var E=this._physicalItems[this._getPhysicalIndex(e[this.indexAs])];if(O.localName!=="input"&&O.localName!=="button"&&O.localName!=="select"){O=e.tabIndex;e.tabIndex=-100;var J=l?l.tabIndex:-1;e.tabIndex=O;l&&E!==l&&E.contains(l)&&J!==-100||this.toggleSelectionForItem(e[this.as])}}},
_multiSelectionChanged:function(l){this.clearSelection();this.$.selector.multi=l},
updateSizeForItem:function(l){return this.updateSizeForIndex(this.items.indexOf(l))},
updateSizeForIndex:function(l){if(!this._isIndexRendered(l))return null;this._updateMetrics([this._getPhysicalIndex(l)]);this._positionItems();return null},
_manageFocus:function(){var l=this._focusedVirtualIndex;l>=0&&l<this._virtualCount?this._isIndexRendered(l)?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(l){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(l/this._itemsPerRow)*this._itemsPerRow:l},
_isIndexRendered:function(l){return l>=this._virtualStart&&l<=this._virtualEnd},
_isIndexVisible:function(l){return l>=this.firstVisibleIndex&&l<=this.lastVisibleIndex},
_getPhysicalIndex:function(l){return(this._physicalStart+(l-this._virtualStart))%this._physicalCount},
focusItem:function(l){this._focusPhysicalItem(l)},
_focusPhysicalItem:function(l){if(!(l<0||l>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(l)||this.scrollToIndex(l);var e=this._physicalItems[this._getPhysicalIndex(l)],O=this.modelForElement(e),E;O.tabIndex=-100;e.tabIndex===-100&&(E=e);E||(E=_.c9(e).querySelector('[tabindex="-100"]'));O.tabIndex=0;this._focusedVirtualIndex=l;E&&E.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 l=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var e=this.stamp(null);this._focusBackfillItem=e.root.querySelector("*");this._itemsParent.appendChild(e.root)}this._offscreenFocusedItem=this._physicalItems[l];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[l]=this._focusBackfillItem;this._focusedPhysicalIndex=l;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var l=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),e=this._physicalItems[l];if(e){var O=this.modelForElement(e),E=this.modelForElement(this._offscreenFocusedItem);O[this.as]===E[this.as]?(this._focusBackfillItem=e,O.tabIndex=-1,this._physicalItems[l]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(l){l=this.modelForElement(l.target);var e=this.modelForElement(this._focusedItem),O=this._offscreenFocusedItem!==null,E=this._focusedVirtualIndex;l&&(e===l?this._isIndexVisible(E)||this.scrollToIndex(E):(this._restoreFocusedItem(),e&&(e.tabIndex=-1),l.tabIndex=0,this._focusedVirtualIndex=E=l[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(E),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],O&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(l){switch(l.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&l.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&&l.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(l)}},
_clamp:function(l,e,O){return Math.min(O,Math.max(e,l))},
_debounce:function(l,e,O){this._debouncers=this._debouncers||{};this._debouncers[l]=_.Ci(this._debouncers[l],O,e.bind(this));_.ot(this._debouncers[l])},
_forwardProperty:function(l,e,O){l._setPendingProperty(e,O)},
_forwardHostPropV2:function(l,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&this.modelForElement(O).forwardHostProp(l,e)},this)},
_notifyInstancePropV2:function(l,e,O){BgT(this.as,e)&&(l=l[this.indexAs],e==this.as&&(this.items[l]=O),this.notifyPath(AP(this.as,"items."+l,e),O))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(l,e,O){e.indexOf(this.as+".")===0&&this.notifyPath("items."+l.__key__+"."+e.slice(this.as.length+1),O)},
_forwardParentPath:function(l,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&this.modelForElement(O).notifyPath(l,e)},this)},
_forwardParentProp:function(l,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&(this.modelForElement(O)[l]=e)},this)},
_getActiveElement:function(){var l=this._itemsParent.node.domHost;return _.c9(l?l.root:document).activeElement},
_scrollTargetChanged:function(l,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(e)if(l==="document")this.scrollTarget=this._doc;else if(typeof l==="string"){var O,E;this.scrollTarget=(e=(E=(O=this.domHost)==null?void 0:O.polymerController)!=null?E:this.domHost)&&e.$?e.$[l]:_.c9(this.ownerDocument).querySelector("#"+l)}else this._isValidScrollTarget()&&(this._oldScrollTarget=l,this._toggleScrollListener(this._shouldHaveListener,l))}});var PpS;var Ujx;var YLH=function(l,e,O,E){l-=O;e-=E;return Math.sqrt(l*l+e*e)},hjR=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
fm2.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var R9L=function(l){l.maxRadius=0;l.mouseDownStart=0;l.mouseUpStart=0;l.xStart=0;l.yStart=0;l.xEnd=0;l.yEnd=0;l.containerMetrics=new fm2(l.element)};
TYq.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var l=hjR()-this.mouseDownStart;this.mouseUpStart&&(l-=this.mouseUpElapsed);return l},get mouseUpElapsed(){return this.mouseUpStart?hjR()-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 l=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(l*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-l/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var l=this.radius/(this.containerMetrics.size/2);var e=this.xNow-this.containerMetrics.width/2;var O=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+e+"px, "+O+"px)";this.waveContainer.style.transform="translate3d("+e+"px, "+O+"px, 0)";this.wave.style.webkitTransform="scale("+l+","+l+")";this.wave.style.transform="scale3d("+l+","+l+",1)"},
downAction:function(l){var e=this.containerMetrics.width/2,O=this.containerMetrics.height/2;R9L(this);this.mouseDownStart=hjR();this.center?(this.xStart=e,this.yStart=O):(this.xStart=l?l.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=l?l.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=e,this.yEnd=O);l=this.containerMetrics;e=this.xStart;O=this.yStart;this.maxRadius=Math.max(YLH(e,O,0,0),YLH(e,O,
l.width,0),YLH(e,O,0,l.height),YLH(e,O,l.width,l.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=hjR())},
remove:function(){_.c9(_.c9(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.RB({_template:function(){if(Ujx!==void 0)return Ujx;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;PpS===void 0&&(PpS=document.createElement("template"));var E=PpS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Ujx=l},
is:"tp-yt-paper-ripple",behaviors:[_.po],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(){_.c9(this).parentNode.nodeType==11?this.keyEventTarget=_.c9(this).getOwnerRoot().host:this.keyEventTarget=_.c9(this).parentNode;var l=this.keyEventTarget;this.listen(l,"up","uiUpAction");this.listen(l,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(l){l.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var l=0;l<this.ripples.length;++l)if(!this.ripples[l].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(l){this.noink||this.downAction(l)},
downAction:function(l){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(l),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(l){this.noink||this.upAction(l)},
upAction:function(l){this.holdDown||(this.ripples.forEach(function(e){e.upAction(l)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var l=0;l<this.ripples.length;++l){var e=this.ripples[l];e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var l=new TYq(this);_.c9(this.$.waves).appendChild(l.waveContainer);this.$.background.style.backgroundColor=l.color;this.ripples.push(l);this._setAnimating(!0);return l},
removeRipple:function(l){var e=this.ripples.indexOf(l);e<0||(this.ripples.splice(e,1),l.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var l;for(l=0;l<this.ripples.length;++l){var e=this.ripples[l];e.draw();this.$.background.style.opacity=e.outerOpacity;e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(l,e){e!==void 0&&(l?this.downAction():this.upAction())}});var QV={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(l){jZ._downHandler.call(this,l);this.pressed&&this.ensureRipple(l)},
ensureRipple:function(l){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var e=this._rippleContainer||this.root;e&&_.c9(e).appendChild(this._ripple);if(l){e=_.c9(this._rippleContainer||this);var O=_.c9(l).rootTarget;e.deepContains(O)&&this._ripple.uiDownAction(l)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(l){this.hasRipple()&&(this._ripple.noink=l)}};var Lfq={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 l=1;this.disabled?l=0:this.active||this.pressed?l=4:this.receivedFocusFromKeyboard&&(l=3);this._setElevation(l)},
_computeKeyboardClass:function(l){this.toggleClass("keyboard-focus",l)},
_spaceKeyDownHandler:function(l){jZ._spaceKeyDownHandler.call(this,l);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(l){jZ._spaceKeyUpHandler.call(this,l);this.hasRipple()&&this._ripple.uiUpAction()}},tNH=[QB1,
_.Ko,QV,Lfq];_.qLx={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(l){l&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=l)},
_createRipple:function(){var l=QV._createRipple();l.id="ink";l.setAttribute("center","");l.classList.add("circle");return l}};
_.v70=[QB1,_.Ko,QV,_.qLx];_.Ngx=[_.v70,ecH,{_checkedChanged:function(){luS._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){QV._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var rmF;var Djq;var SLH=function(){};
_.X=SLH.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._buttonStateChanged=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._createRipple=function(){};
_.X._noinkChanged=function(){};
_.X._computeKeyboardClass=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
_.X._setElevation=function(){};
SLH=_.RB({_template:function(){if(Djq!==void 0)return Djq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;rmF===void 0&&(rmF=document.createElement("template"));var E=rmF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Djq=l},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[tNH],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Lfq._calculateElevation.apply(this):this._setElevation(0)}});var QxF;var xjH;var lPq={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(l){_.a("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(l)},
_onDialogClickWrapped:function(l){_.a("dialog_behavior_no_tap_killswitch")||this._onDialogClick(l)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(l,e){e&&(l?(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(l){l?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(l){this.closingReason=this.closingReason||{};this.closingReason.confirmed=l},
_onDialogClick:function(l){for(var e=_.c9(l).path,O=0,E,J=e.indexOf((E=this.hostElement)!=null?E:this);O<J;O++)if(E=e[O],E.hasAttribute&&(E.hasAttribute("dialog-dismiss")||E.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(E.hasAttribute("dialog-confirm"));this.close();l.stopPropagation();break}}},esH=[_.SZ,
lPq];var OTS=document.createElement("template");_.p(OTS,'<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(OTS.content);var EDH=document.createElement("template");_.p(EDH,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(EDH.content);_.RB({_template:function(){if(xjH!==void 0)return xjH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;QxF===void 0&&(QxF=document.createElement("template"));var E=QxF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return xjH=l},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[esH,Z4q],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 JMq;var XiC;_.RB({_template:function(){if(XiC!==void 0)return XiC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;JMq===void 0&&(JMq=document.createElement("template"));var E=JMq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return XiC=l},
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 l,e,O;if(((l=window.ShadyDOM)==null?void 0:l.noPatch)!==!0&&((e=window.ShadyDOM)==null?void 0:e.noPatch)!=="on-demand"||((O=this.__shady_parentNode)==null?void 0:O.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(lPq)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var zsS=_.E9(['<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>']),bTx=_.Evq(zsS);bTx.setAttribute("style","display: none;");document.head.appendChild(bTx.content);var Mpq;var Vpq;var ZT0;var uZS;_.RB({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Ga],configure:function(l){var e=l.node,O=e.getBoundingClientRect().height;return this._effect=new KeyframeEffect(e,[{height:O/2+"px"},{height:O+"px"}],this.timingFromConfig(l))}});
_.RB({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Ga],configure:function(l){var e=l.node,O=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:O/2+"px"},{width:O+"px"}],this.timingFromConfig(l))}});
_.RB({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Ga],configure:function(l){var e=l.node,O=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:O+"px"},{width:O-O/20+"px"}],this.timingFromConfig(l))}});
_.RB({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Ga],configure:function(l){var e=l.node,O=e.getBoundingClientRect().height;this.setPrefixedProperty(e,"transformOrigin","0 0");return this._effect=new KeyframeEffect(e,[{height:O+"px",transform:"translateY(0)"},{height:O/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(l))}});var xk={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},CV6=function(){};
_.X=CV6.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._focusBlurHandler=function(){};
_.X._changedControlState=function(){};
_.X._setFocused=function(){};
CV6=_.RB({_template:function(){if(uZS!==void 0)return uZS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;ZT0===void 0&&(ZT0=document.createElement("template"));var E=ZT0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return uZS=l},
is:"tp-yt-paper-menu-button",behaviors:[_.po,_.Ko],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:xk.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:xk.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:xk.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 l=_.c9(this.$.content).getDistributedNodes(),e=0,O=l.length;e<O;e++)if(l[e].nodeType===Node.ELEMENT_NODE)return l[e]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(l,e){l?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):e!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(l){_.Ko._disabledChanged.apply(this,arguments);l&&this.opened&&this.close()},
__onIronOverlayCanceled:function(l){var e=this.$.trigger;_.c9(l.detail).path.indexOf(e)>-1&&l.preventDefault()}});
Object.keys(xk).forEach(function(l){CV6[l]=xk[l]});var oDS=_.Hy.IronButtonState,$cq=(0,_.yX)(HTMLElement);
_.RB({_template:function(){if(Vpq!==void 0)return Vpq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Mpq===void 0&&(Mpq=document.createElement("template"));var E=Mpq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Vpq=l},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[oDS,_.Ko,QV,_.cy,_.RT],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(l){var e=(0,_.mP)(this);e.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:l});e.shadowRoot.appendChild(l);return $cq.prototype._attachDom.call(this,l)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var l=this.contentElement;l&&l.selectedItem&&this._setSelectedItem(l.selectedItem)},
get contentElement(){for(var l=_.c9(this.$.content).getDistributedNodes(),e=0,O=l.length;e<O;e++)if(l[e].nodeType===Node.ELEMENT_NODE)return l[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(l){this._setSelectedItem(l.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(l){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l)===this&&this.open()},
_selectedItemChanged:function(l){var e="";l?e=l.label||l.getAttribute("label")||l.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(l,e){return e?e:l?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var l=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",l)},
_computeLabelClass:function(l,e,O){var E="label";if(l)O&&(E+=" label-is-hidden");else if(O||e)E+=" label-is-floating";return E},
_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 WM6;var dcR;_.RB({is:"tp-yt-paper-icon-button",_template:function(){if(dcR!==void 0)return dcR;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;WM6===void 0&&(WM6=document.createElement("template"));var E=WM6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return dcR=l},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.v70],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(l,e){var O=this.getAttribute("aria-label");O&&e!=O||this.setAttribute("aria-label",l)}});var gDq;var iTq;_.lS=[QB1,_.Ko,{hostAttributes:{role:"option",tabindex:"0"}}];_.RB({_template:function(){if(iTq!==void 0)return iTq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;gDq===void 0&&(gDq=document.createElement("template"));var E=gDq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return iTq=l},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.lS]});var wiq;var AMq;var nDH={attached:function(){this.fire("addon-attached")},
update:function(){}};var aPC=1,kn1=1,IPq=1,mc1=[_.Ko,_.po,{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();!Xs&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(l,e){l?l=l+" "+e:l=e;return l},
_onAddonAttached:function(l){l=_.c9(l).rootTarget;if(l.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,l.id);else{var e="paper-input-add-on-"+kn1++;l.id=e;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(l){_.Ko._focusBlurHandler.call(this,l);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var l=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",l);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(l){try{var e=this.inputElement.selectionStart;this.value=l;this.inputElement.selectionStart=e;this.inputElement.selectionEnd=e}catch(O){this.value=l}},
_computeAlwaysFloatLabel:function(l,e){return e||l},
_updateAriaLabelledBy:function(){var l=_.c9(this.root).querySelector("label");if(l){if(l.id)var e=l.id;else e="paper-input-label-"+aPC++,l.id=e;this._ariaLabelledBy=e}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+IPq++)},
_onChange:function(l){this.shadowRoot&&this.fire(l.type,{sourceEvent:l},{node:this,bubbles:l.bubbles,cancelable:l.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var l=document.activeElement;l instanceof HTMLElement&&l!==document.body&&l!==document.documentElement||this._focusableElement.focus()}}}];var yM1;var pi6;_.RB({_template:function(){if(pi6!==void 0)return pi6;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;yM1===void 0&&(yM1=document.createElement("template"));var E=yM1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return pi6=l},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[nDH],properties:{_charCounterStr:{type:String,value:"0"}},update:function(l){if(l.inputElement){l.value=l.value||"";var e=l.value.toString().length.toString();l.inputElement.hasAttribute("maxlength")&&(e+="/"+l.inputElement.getAttribute("maxlength"));this._charCounterStr=e}}});var KMx;var jKS;_.RB({_template:function(){if(jKS!==void 0)return jKS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;KMx===void 0&&(KMx=document.createElement("template"));var E=KMx;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return jKS=l},
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 WQ(this.attrForValue)},get _inputElement(){return _.c9(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(l){this._addons||(this._addons=[]);l=l.target;this._addons.indexOf(l)===-1&&(this._addons.push(l),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(l){this._handleValueAndAutoValidate(l.target)},
_onValueChanged:function(l){var e=l.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,e.value===void 0||e.value===""))return;this._handleValueAndAutoValidate(l.target)},
_handleValue:function(l){var e=this._inputElementValue;e||e===0||l.type==="number"&&!l.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:l,value:e,invalid:this.invalid})},
_handleValueAndAutoValidate:function(l){this.autoValidate&&l&&(this.invalid=!(l.validate?l.validate(this._inputElementValue):l.checkValidity()));this._handleValue(l)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(l){if(this._addons)for(var e,O=0;e=this._addons[O];O++)e.update(l)},
_computeInputContentClass:function(l,e,O,E,J){var z="input-content";l?(J&&(z+=" label-is-hidden"),E&&!this.noUnfloatedLabelError&&(z+=" is-invalid")):(l=this.querySelector("label"),e||J?(z+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",E?z+=" is-invalid":O&&(z+=" label-is-highlighted")):(l&&(this.$.labelAndInputContainer.style.position="relative"),E&&!this.noUnfloatedLabelError&&(z+=" is-invalid")));O&&(z+=" focused");return z},
_computeUnderlineClass:function(l,e){var O="underline";e?O+=" is-invalid":l&&(O+=" is-highlighted");return O},
_computeAddOnContentClass:function(l,e){var O="add-on-content";e?O+=" is-invalid":l&&(O+=" is-highlighted");return O}});var HT6;var cMS;_.RB({_template:function(){if(cMS!==void 0)return cMS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;HT6===void 0&&(HT6=document.createElement("template"));var E=HT6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return cMS=l},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[nDH],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(l){this._setInvalid(l.invalid)}});_.RB({is:"tp-yt-paper-input",_template:function(){if(AMq!==void 0)return AMq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;wiq===void 0&&(wiq=document.createElement("template"));var E=wiq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return AMq=l},
behaviors:[mc1,_.cy],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 FMx;var fPF;_.RB({_template:function(){if(fPF!==void 0)return fPF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=
l.content,O=e.insertBefore;FMx===void 0&&(FMx=document.createElement("template"));var E=FMx;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return fPF=l},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.lS]});var Rsq;var TC1;_.RB({_template:function(){if(TC1!==void 0)return TC1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;Rsq===void 0&&(Rsq=document.createElement("template"));var E=Rsq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return TC1=l},
is:"tp-yt-paper-item-body"});var sKC;var Gnx;var BCS=function(){};
_.X=BCS.prototype;_.X.indexOf=function(){};
_.X.selectPrevious=function(){};
_.X.selectNext=function(){};
_.X.selectIndex=function(){};
_.X.forceSynchronousItemUpdate=function(){};
_.X._checkFallback=function(){};
_.X._addListener=function(){};
_.X._removeListener=function(){};
_.X._activateEventChanged=function(){};
_.X._updateItems=function(){};
_.X._selectSelected=function(){};
_.X._filterItem=function(){};
_.X._valueToItem=function(){};
_.X._valueToIndex=function(){};
_.X._indexToValue=function(){};
_.X._valueForItem=function(){};
_.X._observeItems=function(){};
_.X._itemActivate=function(){};
_.X.multiChanged=function(){};
_.X._updateAttrForSelected=function(){};
_.X._updateSelected=function(){};
_.X._selectMulti=function(){};
_.X._selectionChange=function(){};
_.X._toggleSelected=function(){};
_.X._valuesToItems=function(){};
_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X.select=function(){};
_.X._resetTabindices=function(){};
_.X._updateMultiselectable=function(){};
_.X._focusWithKeyboardEvent=function(){};
_.X._clearSearchText=function(){};
_.X._focusPrevious=function(){};
_.X._focusNext=function(){};
_.X._applySelection=function(){};
_.X._focusedItemChanged=function(){};
_.X._onIronItemsChanged=function(){};
_.X._onShiftTabDown=function(){};
_.X._onFocus=function(){};
_.X._onUpKey=function(){};
_.X._onDownKey=function(){};
_.X._onEscKey=function(){};
_.X._onKeydown=function(){};
_.X._activateHandler=function(){};
_.X._disabledChanged=function(){};
_.X._setSelectedItem=function(){};
_.X._setItems=function(){};
_.X._setSelectedItems=function(){};
_.X._setFocusedItem=function(){};
BCS=_.RB({_template:function(){if(Gnx!==void 0)return Gnx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;sKC===void 0&&(sKC=document.createElement("template"));var E=sKC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Gnx=l},
is:"tp-yt-paper-listbox",behaviors:[Xf1],hostAttributes:{role:"listbox"}});var PVx;var UcC;var Yhi={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(l,e){return[l||e?"active":"",e?"cooldown":""].join(" ")},
__activeChanged:function(l,e){this.__setAriaHidden(!l);this.__coolingDown=!l&&e},
__altChanged:function(l){this.setAttribute("aria-label",l||"loading")},
__setAriaHidden:function(l){l?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.RB({_template:function(){if(UcC!==void 0)return UcC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;PVx===void 0&&(PVx=document.createElement("template"));var E=PVx;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return UcC=l},
is:"tp-yt-paper-spinner",behaviors:[Yhi]});var hsx;var LMx;_.RB({_template:function(){if(LMx!==void 0)return LMx;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;hsx===void 0&&(hsx=document.createElement("template"));var E=hsx;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return LMx=l},
is:"tp-yt-paper-spinner-lite",behaviors:[Yhi]});var tpS;var qh1;_.RB({_template:function(){if(qh1!==void 0)return qh1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;tpS===void 0&&(tpS=document.createElement("template"));var E=tpS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return qh1=l},
is:"tp-yt-paper-tab",behaviors:[_.Ko,_.Hy.IronButtonState,QV],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 l=_.c9(this).parentNode;return!!l&&!!l.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(l){if(this.link){var e=this.queryEffectiveChildren("a");e&&l.target!==e&&e.click()}}});var vDS;var NCR;var rMS=_.E9(['<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>']),DcS=_.Evq(rMS);document.head.appendChild(DcS.content);_.RB({_template:function(){if(NCR!==void 0)return NCR;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;vDS===void 0&&(vDS=document.createElement("template"));var E=vDS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return NCR=l},
is:"tp-yt-paper-tabs",behaviors:[_.sl,_.b4R],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(l){_.c9(this).querySelectorAll("tp-yt-paper-tab").forEach(l?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(l){l.setAttribute("noink","")},
_removeNoinkAttribute:function(l){l.removeAttribute("noink")},
_computeScrollButtonClass:function(l,e,O,E){return!e||O?"hidden":l?E?"hidden":"not-visible":""},
_computeTabsContentClass:function(l,e){var O="tabs-content";l&&(O+=" scrollable");if(!l||e)O+=" fit-container";return O},
_computeSelectionBarClass:function(l,e){var O="selection-bar";l?O+=" hidden":e&&(O+=" align-bottom");return O},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(l){return""+l},
_onIronSelect:function(l){this._tabChanged(l.detail.item,this._previousTab);this._previousTab=l.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();_.Ta._activateHandler.apply(this,arguments)},
_scheduleActivation:function(l,e){this._pendingActivationItem=l;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,e)},
_delayedActivationHandler:function(){var l=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;l.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(l){l.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(l,e){this.scrollable&&this._affectScroll(e&&-e.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(l){this.$.tabsContainer.scrollLeft+=l;l=this.$.tabsContainer.scrollLeft;this._leftHidden=l===0||this.hideScrollButtons;this._rightHidden=l===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(l,e){if(l){var O=this.$.tabsContent.getBoundingClientRect(),E=O.width,J=l.getBoundingClientRect();O=J.left-O.left;this._pos={width:this._calcPercent(J.width,E),left:this._calcPercent(O,E)};if(this.noSlide||e==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var z=e.getBoundingClientRect();e=this.items.indexOf(e);l=this.items.indexOf(l);this.$.selectionBar.classList.add("expand");
l=e<l;this._isRTL&&(l=!l);l?this._positionBar(this._calcPercent(J.left+J.width-z.left,E)-5,this._left):this._positionBar(this._calcPercent(z.left+z.width-J.left,E)-5,this._calcPercent(O,E)+5);this.scrollable&&this._scrollToSelectedIfNeeded(J.width,O)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(l,e){e-=this.$.tabsContainer.scrollLeft;e<0?this.$.tabsContainer.scrollLeft+=e:(e+=l-this.$.tabsContainer.offsetWidth,e>0&&(this.$.tabsContainer.scrollLeft+=e))},
_calcPercent:function(l,e){return 100*l/e},
_positionBar:function(l,e){l=l||0;e=e||0;this._width=l;this._left=e;this.transform("translateX("+e+"%) scaleX("+l/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var l=this.$.selectionBar.classList;l.contains("expand")?(l.remove("expand"),l.add("contract"),this._positionBar(this._pos.width,this._pos.left)):l.contains("contract")&&l.remove("contract")}});var Sh0;var QKq;_.RB({_template:function(){if(QKq!==void 0)return QKq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Sh0===void 0&&(Sh0=document.createElement("template"));var E=Sh0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return QKq=l},
is:"tp-yt-paper-textarea",behaviors:[mc1,_.cy],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(l){this.$.input.textarea.selectionStart=l},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(l){this.$.input.textarea.selectionEnd=l},_ariaLabelledByChanged:function(l){this._focusableElement.setAttribute("aria-labelledby",l)},
_ariaDescribedByChanged:function(l){this._focusableElement.setAttribute("aria-describedby",l)},
get _focusableElement(){return this.inputElement.textarea}});var xcS;var lsR;/*

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 eHk=function(){};
_.X=eHk.prototype;_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._focusedChanged=function(){};
_.X.registered=function(){};
_.X._invalidChanged=function(){};
_.X.hasValidator=function(){};
_.X.validate=function(){};
_.X._getValidity=function(){};
_.X._requiredChanged=function(){};
_.X._valueChanged=function(){};
_.X._checkedChanged=function(){};
_.X._buttonStateChanged=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
eHk=_.RB({is:"tp-yt-paper-toggle-button",_template:function(){if(lsR!==void 0)return lsR;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;xcS===void 0&&(xcS=document.createElement("template"));var E=xcS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return lsR=l},
behaviors:[_.Ngx],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");_.OK(this,function(){_.PQ(this,"pan-y")})},
_ontrack:function(l){l=l.detail;l.state==="start"?this._trackStart(l):l.state==="track"?this._trackMove(l):l.state==="end"&&this._trackEnd(l)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(l){l=l.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+l:l)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+l:l));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 l=QV._createRipple();l.id="ink";l.setAttribute("recenters","");l.classList.add("circle","toggle-ink");return l}});var Ok0;var EJF;_.RB({_template:function(){if(EJF!==void 0)return EJF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Ok0===void 0&&(Ok0=document.createElement("template"));var E=Ok0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return EJF=l},
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 l=_.c9(this).parentNode,e=_.c9(this).getOwnerRoot(),O;this.for?O=_.c9(e).querySelector("#"+this.for):O=l.nodeType==Node.DOCUMENT_FRAGMENT_NODE?e.host:l;return O},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(l){l==="entry"?this.show():l==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.c9(this).textContent.trim()===""){for(var l=!0,e=_.c9(this).getEffectiveChildNodes(),O=0;O<e.length;O++)if(e[O].textContent.trim()!==""){l=!1;break}if(l)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 l=this.offset;this.marginTop!=14&&this.offset==14&&(l=this.marginTop);var e=this.offsetParent.getBoundingClientRect(),O=this._target.getBoundingClientRect(),E=this.getBoundingClientRect(),J=(O.width-E.width)/2,z=(O.height-E.height)/2,M=O.left-e.left,Z=O.top-e.top;switch(this.position){case "top":var u=M+J;var d=Z-E.height-l;break;case "bottom":u=M+J;d=Z+O.height+l;break;case "left":u=M-E.width-l;d=Z+z;break;case "right":u=M+O.width+
l,d=Z+z}this.fitToVisibleBounds?(e.left+u+E.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,u)+"px",this.style.right="auto"),e.top+d+E.height>window.innerHeight?(this.style.bottom=e.height+"px",this.style.top="auto"):(this.style.top=Math.max(-e.top,d)+"px",this.style.bottom="auto")):(this.style.left=u+"px",this.style.top=d+"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(l){l!==500&&this.updateStyles({"--paper-tooltip-delay-in":l+"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(l){if(l==="entry"&&this.animationEntry!=="")return this.animationEntry;if(l==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[l]&&typeof this.animationConfig[l][0].name==="string"){if(this.animationConfig[l][0].timing&&this.animationConfig[l][0].timing.delay&&this.animationConfig[l][0].timing.delay!==0){var e=this.animationConfig[l][0].timing.delay;l==="entry"?this.updateStyles({"--paper-tooltip-delay-in":e+"ms"}):l==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":e+
"ms"})}return this.animationConfig[l][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 JeS=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(JeS,_.Gu);var X1i=_.QI(JeS,[0,_.E8]);var eK=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(eK,_.Gu);var zHC=[3,4],bkC=[5,6];var MAF=[0,zHC,bkC,_.Xh1,-1,_.O8,_.z4x,-1,XZ2,zlT];var VA1=_.QI(eK,MAF),ZkS=_.xH(MAF);var uLq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(uLq,_.Gu);var C31=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(C31,_.Gu);var oJ0=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(oJ0,_.Gu);var $sq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m($sq,_.Gu);var WIF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(WIF,_.Gu);var O1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(O1,_.Gu);O1.prototype.getSource=function(){return _.PW(this,1)};
O1.prototype.getMessage=function(){return _.BW(this,4)};
O1.prototype.getData=function(){return _.Cu(this,WIF,8)};var dsH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(dsH,_.Gu);var E1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(E1,_.Gu);var JK=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(JK,_.Gu);var Xn=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Xn,_.Gu);Xn.prototype.getUrl=function(){return _.BW(this,1)};
Xn.prototype.setUrl=function(l){return _.da(this,1,l)};
Xn.prototype.hasUrl=function(){return _.Uu(_.yK(this,1))!=null};var gJS=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(gJS,_.Gu);var ik6=[3];var w11=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(w11,_.Gu);var zW=function(l){var e=new w11;return _.oC(e,2,l)};
w11.prototype.getLanguage=function(){return Yh(this,4,bS)};
var AeR=function(l){var e=zW(1);return _.Jz(e,6,bS,l)},bS=[3,
4,5,6];var nJC=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(nJC,_.Gu);var MS=function(l){var e=new nJC;return _.oC(e,1,l)},Vu=function(l,e){return _.Jz(l,2,as6,e)},as6=[2,
3,4,5];var kKq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(kKq,_.Gu);var Zn=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Zn,_.Gu);var Is1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Is1,_.Gu);var ms6=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ms6,_.Gu);var yeC=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(yeC,_.Gu);var p1i=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(p1i,_.Gu);var KIS=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(KIS,_.Gu);var uS=function(l){return _.Cu(l,JK,5)};var j9q=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(j9q,_.Gu);j9q.prototype.getValue=function(){return s9(this,1)};var Hkq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Hkq,_.Gu);var Cp=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Cp,_.Gu);Cp.prototype.getMetadata=function(){return _.hZ(this,yeC,7,o6)};
Cp.prototype.hasMetadata=function(){return _.K2(this,yeC,7,o6)};
var ceS=_.lr(Cp),o6=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var $U=function(l){this.JSC$9963_name_=l;this.files_=[];this.directories_=[];this.directoryMap_={}};
$U.prototype.getName=function(){return this.JSC$9963_name_};var dt=function(l,e){this.callback_=e;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new $U("");FIS(this,l,this.rootDirectory_);WC(this)},FIS=function(l,e,O){for(var E=0;E<e.length;E++){var J=e[E];
J.isFile?(l.fileOps_++,J.file((0,_.pb)(l.handleFileSuccess_,l,O),(0,_.pb)(l.handleFileError_,l))):l.unscannedDirectories_.push(new fsx(J,O))}},WC=function(l){if(l.unscannedDirectories_.length>0&&l.directoryOps_<5&&!l.hasError_){l.directoryOps_++;
var e=l.unscannedDirectories_.shift(),O=e.entry,E=new $U(O.name);e=e.parent;e.directoryMap_[E.getName()]=E;e.directories_.push(E);O=O.createReader();O.readEntries((0,_.pb)(l.handleDirectorySuccess_,l,O,E),(0,_.pb)(l.handleDirectoryError_,l))}l.directoryOps_!=0||l.fileOps_!=0||l.unscannedDirectories_.length!=0&&!l.hasError_||l.callback_(l.rootDirectory_.files_,l.rootDirectory_.directories_,l.hasError_)};
dt.prototype.handleDirectorySuccess_=function(l,e,O){FIS(this,O,e);O.length==0?(this.directoryOps_--,WC(this)):l.readEntries((0,_.pb)(this.handleDirectorySuccess_,this,l,e),(0,_.pb)(this.handleDirectoryError_,this))};
dt.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;WC(this)};
dt.prototype.handleFileSuccess_=function(l,e){l.files_.push(e);this.fileOps_--;WC(this)};
dt.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;WC(this)};
var fsx=function(l,e){this.entry=l;this.parent=e};var gt=function(l){_.Kx.call(this);_.f4(l,"drop",this.onObjectsDropped_,!1,this);_.f4(l,"dragenter",this.onFilesDragged_,!1,this);_.f4(l,"dragover",this.onFilesDragged_,!1,this);_.f4(l,"dragleave",this.onDragLeave_,!1,this);_.f4(l,"dragend",this.onDragLeave_,!1,this)};
_.o_(gt,_.Kx);var RHC=function(l,e){_.k$.call(this,"f");this.files=l;this.directories=e};
_.o_(RHC,_.k$);var T$S=function(){_.k$.call(this,"h")};
_.o_(T$S,_.k$);var s9q=function(){_.k$.call(this,"i")};
_.o_(s9q,_.k$);var GKR=function(){_.k$.call(this,"g")};
_.o_(GKR,_.k$);gt.prototype.onObjectsDropped_=function(l){var e=this;l.preventDefault();var O=l.event_.dataTransfer;if((l=O&&O.items)&&l.length>0&&l[0].webkitGetAsEntry){O=[];for(var E=[],J=0;J<l.length;J++){var z=l[J].webkitGetAsEntry();z?O.push(z):E.push(l[J])}new dt(O,function(M,Z,u){u?e.dispatchEvent(new GKR("Error occurred while reading from the file system.")):e.dispatchEvent(new RHC(M,Z,E))})}else(l=O&&O.files)&&this.dispatchEvent(new RHC(Array.from(l),[]))};
gt.prototype.onFilesDragged_=function(l){l.type==="dragenter"&&this.dispatchEvent(new T$S);l.preventDefault()};
gt.prototype.onDragLeave_=function(){this.dispatchEvent(new s9q)};var B$q=function(l,e){this.JSC$9986_name_=l;this.inputElement_=e};
B$q.prototype.getName=function(){return this.JSC$9986_name_};
B$q.prototype.getInputElement=function(){return this.inputElement_};var iS=function(l,e,O){e=e===void 0?"single_file":e;O=O===void 0?[]:O;_.Kx.call(this);this.overlayTarget_=l;this.parentOverlay_=l!=null?l.parentNode:_.i$("scotty-overlay-parent");this.selectorType_=e;this.acceptTypes_=O;this.overlay_=P3S(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.m(iS,_.Kx);
var P3S=function(l,e,O,E){var J=document.createElement("input");J.setAttribute("type","file");J.setAttribute("name","Filedata");_.f4(J,"change",l.onFilesSelected_,!1,l);O==="multiple_file"&&(J.multiple="true");O==="single_directory"&&(J.webkitdirectory="true");E.length>0&&J.setAttribute("accept",E.join(","));J.style.position="absolute";J.style.overflow="hidden";J.style.height="0px";J.style.width="0px";J.style.opacity="0";J.setAttribute("aria-hidden","true");J.setAttribute("tabIndex",-1);if(l.overlayTarget_!=
null)return J.style.height=e.offsetHeight+"px",J.style.width=e.offsetWidth+"px",l.parentOverlay_&&(l.parentOverlay_.style.position="relative"),_.GP(J,e),L3(J,new _.KF(e.offsetLeft,e.offsetTop)),J;l.parentOverlay_.appendChild(J);return J};
iS.prototype.click=function(){this.overlay_.click()};
iS.prototype.onFilesSelected_=function(l){a:{try{var e=(new XMLHttpRequest).upload!==void 0;break a}catch(d){}e=!1}if(e){var O;l=Array.from((O=l.target.files)!=null?O:[]);O=[];if(this.selectorType_==="single_directory"&&(_.ws||JW||_.iv)){O=new $U("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(e=0;e<l.length;e++)for(var E=l[e],J=E.webkitRelativePath.split("/"),z=O,M=0;M<J.length;M++){var Z=J[M];if(M==J.length-1){Z!="."&&z.files_.push(E);break}var u=z.directoryMap_[Z];u==void 0&&(Z=
u=new $U(Z),z.directoryMap_[Z.getName()]=Z,z.directories_.push(Z));z=u}O=O.directories_}this.dispatchEvent(new Us1(l,O,null))}else l=l.target.value,l.match(/^c:\\fakepath\\/i)&&(l=l.substring(12)),this.dispatchEvent(new Us1([],[],new B$q(l,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=P3S(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Us1=function(l,e){_.k$.call(this,"j");this.files=l;this.directories=e};
_.m(Us1,_.k$);var Y6q=function(l){this.uploadUrl_=l};var hH1=function(){_.Kx.call(this)};
_.o_(hH1,_.Kx);var wt=function(l){_.k$.call(this,l)};
_.o_(wt,_.k$);var AK=function(l){_.k$.call(this,l)};
_.o_(AK,_.k$);var LIq=function(l,e,O,E,J){_.Kx.call(this);O=document.createElement("form");O.setAttribute("method",e);O.setAttribute("enctype","multipart/form-data");O.setAttribute("encoding","multipart/form-data");e=document.createElement("input");e.setAttribute("type","hidden");e.setAttribute("name","metadata");e.setAttribute("value",J);O.appendChild(e);O.appendChild(E);this.JSC$10003_form_=O;l=new _.Jg(l);_.S$(l,"upload_protocol","multipart");this.JSC$10003_url_=l.toString();this.JSC$10003_request_=new za;this.state_=
"Ready";this.JSC$10003_errorDescription_=null;this.JSC$10003_eventHandler_=new _.ue(this);_.oQ(this,this.JSC$10003_eventHandler_);this.JSC$10003_eventHandler_.listen(this.JSC$10003_request_,"success",this.onTransferSuccess_);this.JSC$10003_eventHandler_.listen(this.JSC$10003_request_,"error",this.onTransferError_)};
_.m(LIq,hH1);_.X=LIq.prototype;_.X.run=function(){this.state_="Transferring";var l=this.JSC$10003_request_,e=this.JSC$10003_form_;if(l.JSC$9421_active_)throw Error("oe");var O=new _.Jg(this.JSC$10003_url_||e.action);l.JSC$9421_form_=e;e=l.JSC$9421_form_;O=_.m7(O.toString());O!==void 0&&(e.action=O);i0S(l)};
_.X.getResponseCode=function(){return null};
_.X.getResponseText=function(){return this.JSC$10003_request_&&this.JSC$10003_request_.getResponseText()||null};
_.X.JSC$25936_getErrorDescription=function(){return this.JSC$10003_errorDescription_};
_.X.cancel=function(){this.JSC$10003_request_&&this.JSC$10003_request_.abort();this.state_="Cancelled";this.dispatchEvent(new wt("o"))};
_.X.pause=function(){};
_.X.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new wt("l"))};
_.X.onTransferError_=function(){this.JSC$10003_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new wt("n"))};var np=function(){_.sk.call(this)};
_.m(np,_.sk);np.prototype.createXhr=function(){var l=_.sk.prototype.createXhr.call(this);l.upload&&(l.upload.onprogress=(0,_.pb)(this.onProgress_,this));return l};
np.prototype.onProgress_=function(l){this.dispatchEvent(l)};var tAq=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},vJq=function(l,e){var O=l.attempt_+1;
if(l.maxAttempts_>0&&O>l.maxAttempts_)return!1;O==0?e():l.delayCallId_=fx(function(){l.delayCallId_=null;e()},q6q(l),l);
l.attempt_=O;return!0};
tAq.prototype.reset=function(){this.delayCallId_&&_.Op.clearTimeout(this.delayCallId_);this.attempt_=-1};
var q6q=function(l){var e=250*Math.pow(2,l.attempt_);l.maxDelayMs_>=0&&(e=Math.min(e,l.maxDelayMs_));return e};var GPt=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var a6=function(){_.Kx.call(this);this.JSC$10013_request_=this.state_=null;this.JSC$10013_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10013_bytesTransferred_=0;this.retryIterator_=new tAq;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10013_errorDescription_=null;this.JSC$10013_eventHandler_=new _.ue(this);_.oQ(this,this.JSC$10013_eventHandler_);this.JSC$10013_url_=this.blob_=null;this.JSC$10013_method_=void 0;this.chunkSize_=this.JSC$10013_metadata_=
this.JSC$10013_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10013_responseText_=this.JSC$10013_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.o_(a6,hH1);_.X=a6.prototype;_.X.run=function(){kU(this)};
_.X.getResponseCode=function(){return this.JSC$10013_responseCode_};
_.X.getResponseText=function(){return this.JSC$10013_responseText_};
_.X.JSC$25936_getErrorDescription=function(){return this.JSC$10013_errorDescription_};
_.X.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10013_eventHandler_.removeAll();this.JSC$10013_request_&&this.JSC$10013_request_.abort();this.retryIterator_.reset();var l=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(l==="Upload"||l==="Query")l=new np,l.JSC$7833_withCredentials_=this.JSC$10013_withCredentials_,l.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10013_bytesTransferred_=
0;this.dispatchEvent(new wt("o"))}};
_.X.pause=function(){this.pauseRequested_=!0};
var kU=function(l){var e=l.state_;l.pauseRequested_?(l.pauseRequested_=!1,l.stateAfterUnpausing_=e,l.state_="Paused"):vJq(l.retryIterator_,function(){switch(l.state_){case "Start":l.JSC$10013_request_=new np;var O=_.mm.clone(l.JSC$10013_headers_);l.blob_.size!=null&&(O["Content-Length"]=l.blob_.size);O=BYA(O);O["X-Goog-Upload-Protocol"]="resumable";O["X-Goog-Upload-Command"]="start";l.JSC$10013_eventHandler_.removeAll();l.JSC$10013_eventHandler_.listen(l.JSC$10013_request_,"complete",l.onStartComplete_);
l.JSC$10013_request_.JSC$7833_withCredentials_=l.JSC$10013_withCredentials_;l.JSC$10013_request_.send(l.JSC$10013_url_,l.JSC$10013_method_,l.JSC$10013_metadata_,O);l.lastCommandResponseCode_=null;l.dispatchEvent(new AK("q"));break;case "Upload":O=l.transferHandle_.uploadUrl_;var E=l.blob_.size;if(E6C()){var J=l.chunkSize_;var z=l.offset_+J>=E;E=OvH(l.blob_,l.offset_,z?E:l.offset_+J)}else l.offset_=0,E=l.blob_,z=!0;l.JSC$10013_request_=new np;l.JSC$10013_request_.JSC$7833_withCredentials_=l.JSC$10013_withCredentials_;
l.JSC$10013_eventHandler_.removeAll();l.JSC$10013_eventHandler_.listen(l.JSC$10013_request_,"progress",l.onUploadProgress_);J=(0,_.pb)(l.JSC$10015_onUploadComplete_,l,l.offset_+E.size,z);l.JSC$10013_eventHandler_.listen(l.JSC$10013_request_,"complete",J);l.lastCommandResponseCode_=null;l.dispatchEvent(new AK("q"));z=Object.assign({},l.JSC$10013_headers_||{},{"X-Goog-Upload-Command":"upload"+(z?", finalize":""),"X-Goog-Upload-Offset":l.offset_});l.JSC$10013_request_.send(O,"POST",E,z);break;case "Query":l.JSC$10013_request_=
new np;l.JSC$10013_eventHandler_.removeAll();l.JSC$10013_eventHandler_.listen(l.JSC$10013_request_,"complete",l.onQueryComplete_);O=Object.assign({},l.JSC$10013_headers_||{},{"X-Goog-Upload-Command":"query"});l.JSC$10013_request_.send(l.transferHandle_.uploadUrl_,"POST","",O);l.lastCommandResponseCode_=null;l.dispatchEvent(new AK("q"));break;default:throw Error("df");}})||I6(l,"Transfer encountered too many consecutive failures.")},I6=function(l,e){l.state_="Error";
l.JSC$10013_errorDescription_=e;l.dispatchEvent(new wt("n"))};
a6.prototype.onStartComplete_=function(l){var e=l.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new AK("r"));if(N$x(e))re1(this,e);else if(DsH(e)){l=es(l.target.getAllResponseHeaders());for(var O in l)_.Jq(O.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new wt("m"));O=f_(l,"X-Goog-Upload-URL");l=(l=f_(l,"X-Goog-Upload-Chunk-Granularity"))?parseInt(l,10):1;O===void 0||isNaN(l)||l<=0?I6(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
l)*l,this.transferHandle_=new Y6q(O),this.dispatchEvent(new wt("p")),this.state_="Upload",this.retryIterator_.reset(),kU(this))}else kU(this)};
a6.prototype.onUploadProgress_=function(l){this.JSC$10013_bytesTransferred_=this.offset_+l.loaded;this.dispatchEvent(new wt("k"))};
a6.prototype.JSC$10015_onUploadComplete_=function(l,e,O){var E=this,J,z;return _.V(function(M){switch(M.nextAddress){case 1:J=O.target;E.lastCommandResponseCode_=J.getStatus();E.dispatchEvent(new AK("r"));if(S60(J)||J.getStatus()==404)return E.JSC$10013_bytesTransferred_=l,re1(E,J),M.return();if(DsH(J)){M.jumpTo(2);break}if(!(z=E.detectCorruptedBlobEnabled_)){M.jumpTo(3);break}return _.C(M,Q9S(E),4);case 4:z=M.yieldResult;case 3:if(z)return I6(E,"Blob has been modified or corrupted."),M.return();
E.requireUploadRequestModification_=J.getStatus()==400;E.state_="Query";kU(E);return M.return();case 2:if(e)return I6(E,"Got a non-final success response after issuing a finalize command."),M.return();E.JSC$10013_bytesTransferred_=l;E.offset_=l;E.retryIterator_.reset();kU(E);return M.return()}})};
a6.prototype.onQueryComplete_=function(l){var e=l.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new AK("r"));N$x(e)?(e.getStatus()===200&&(this.JSC$10013_bytesTransferred_=this.blob_.size),re1(this,e)):DsH(e)?(l=es(l.target.getAllResponseHeaders()),l=parseInt(f_(l,"X-Goog-Upload-Size-Received"),10),isNaN(l)?I6(this,"Server did not respond with current offset."):l<this.offset_?I6(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
l+"."):this.requireUploadRequestModification_&&this.offset_===l?I6(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<l&&this.retryIterator_.reset(),this.offset_=this.JSC$10013_bytesTransferred_=l,this.state_="Upload",kU(this))):kU(this)};
var re1=function(l,e){l.JSC$10013_responseCode_=e.getStatus();var O=es(e.getAllResponseHeaders());PQT(O);l.JSC$10013_responseText_=e.getResponseText();l.state_="Response received";l.dispatchEvent(new wt("l"))},DsH=function(l){var e=l.getStatus();
l=es(l.getAllResponseHeaders());l=f_(l,"X-Goog-Upload-Status");return e===200&&l==="active"},S60=function(l){l=es(l.getAllResponseHeaders());
return f_(l,"X-Goog-Upload-Status")==="final"},N$x=function(l){if(S60(l))return!0;
l=l.getStatus();return l>=400&&l<500},Q9S=function(l){var e;
return _.V(function(O){if(O.nextAddress==1){if(!l.blob_||l.originalBlobSize_<=0)return O.return(!1);if(l.blob_.size!==l.originalBlobSize_)return O.return(!0);_.b1(O,2);if(e=OvH(l.blob_,0,1)){var E=new Li,J=RUC(E);E.reader_.readAsBinaryString(e);O=_.C(O,J,4)}else O=O.return(!0);return O}if(O.nextAddress!=2)return O.return(l.blob_.size!==l.originalBlobSize_);_.u1(O);return O.return(!0)})};var xsk=function(l,e,O,E,J,z){_.Kx.call(this);this.payload_=E;this.JSC$10016_url_=l;this.JSC$10016_method_=e;this.JSC$10016_headers_=O;this.JSC$10016_metadata_=J;this.encoding_=z||"binary";l=new _.Ki;this.boundary_="uploader-"+Nh()+"-"+l.JSC$9270_toIsoString();this.JSC$10016_responseText_=this.JSC$10016_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10016_errorDescription_=null;this.JSC$10016_eventHandler_=new _.ue(this);_.oQ(this,this.JSC$10016_eventHandler_)};
_.m(xsk,hH1);_.X=xsk.prototype;
_.X.run=function(){var l=_.mm.clone(this.JSC$10016_headers_);this.payload_.length!=null&&(l["Content-Length"]=this.payload_.length);l=BYA(l);l["X-Goog-Upload-Protocol"]="multipart";l["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new np;this.JSC$10016_eventHandler_.removeAll();this.JSC$10016_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10016_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10016_url_,this.JSC$10016_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10016_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",l)};
_.X.getResponseCode=function(){return this.JSC$10016_responseCode_};
_.X.getResponseText=function(){return this.JSC$10016_responseText_};
_.X.JSC$25936_getErrorDescription=function(){return this.JSC$10016_errorDescription_};
_.X.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10016_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new wt("o")))};
_.X.pause=function(){};
_.X.onTransferProgress_=function(){this.dispatchEvent(new wt("k"))};
_.X.onTransferComplete_=function(l){var e=l.target.getStatus();e===void 0||e===-1?(this.JSC$10016_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new wt("n"))):(this.JSC$10016_responseCode_=e,l=l.target,e=es(l.getAllResponseHeaders()),PQT(e),this.JSC$10016_responseText_=l.getResponseText(),this.state_="Complete",this.dispatchEvent(new wt("l")))};_.lLk=function(l,e,O,E){E=E===void 0?!1:E;if(O instanceof B$q)return new LIq(l,"POST",e,O.getInputElement(),"");if(typeof O==="string"||O instanceof String)return new xsk(l,"POST",e,O,"");var J=new a6(void 0);J.JSC$10013_url_=l;J.JSC$10013_method_="POST";J.JSC$10013_headers_=e;J.blob_=O;J.originalBlobSize_=O.size;J.JSC$10013_metadata_="";E&&(J.JSC$10013_withCredentials_=E);J.state_="Start";return J};var mV=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(mV,_.Gu);_.X=mV.prototype;_.X.getEnableSsEngine=function(){return _.T8(this,2)};
_.X.getEnableAwr=function(){return _.T8(this,3)};
_.X.getAlohaAutoGaRollout=function(){return _.T8(this,5)};
_.X.getEnableConfigurator=function(){return _.T8(this,6)};
_.X.getEnableMweb=function(){return _.T8(this,7)};
var ON0=function(){var l=ehi();return _.Tz(l,7,!0)};
mV.prototype.getEnableCtlConsentCheckbox=function(){return _.T8(this,8)};
mV.prototype.getEnableIframe=function(){return _.T8(this,9)};
var ehi=function(){var l=new mV;l=_.Tz(l,5,!0);l=_.Tz(l,2,!0);l=_.Tz(l,4,!1);l=_.Tz(l,8,!0);return _.Tz(l,9,!0)};
mV.prototype.getEnableScreenshotNudge=function(){return _.T8(this,10)};
var ExC=function(){var l=ON0();return _.Tz(l,10,!0)};
mV.prototype.getEnableWebStartupConfigEndpoint=function(){return _.T8(this,11)};
mV.prototype.getEnableJunkNudge=function(){return _.T8(this,12)};
var Xog=function(){var l=ExC();return _.Tz(l,12,!0)};
_.X=mV.prototype;_.X.getEnableConfiguratorLocale=function(){return _.T8(this,13)};
_.X.getEnableTinyNoPointer=function(){return _.T8(this,14)};
_.X.getEnableSupportSessionLogging=function(){return _.T8(this,15)};
_.X.getEnableFileUploadForScreenshot=function(){return _.T8(this,16)};
_.X.getEnableDirectDeflectionForSingleCategory=function(){return _.T8(this,17)};
_.X.getEnableImageSanitization=function(){return _.T8(this,18)};
_.X.getEnableAlohaBinarySplit=function(){return _.T8(this,19)};
_.X.getEnableDbFeedbackIntents=function(){return _.T8(this,20)};
_.X.getEnableMarkMandatoryFieldsWithRequired=function(){return _.T8(this,21)};
_.X.getEnableFeedbackCategoryCustomUi=function(){return _.T8(this,22)};
_.X.getEnableRealtimeCtl=function(){return _.T8(this,23)};var JIg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(JIg,_.Gu);var UCL=[/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 h9V="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 L4x=_.E9(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),tad=_.E9(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var vMx,DCu,NYV,S8A;var JcS,Xnq;
JcS=function(l,e,O){l.timeOfStartCall=(new Date).getTime();var E=O||_.Op,J=E.document,z=l.nonce||_.fU(E.document);z&&!l.nonce&&(l.nonce=z);if(l.flow=="help"){var M=_.vK("document.location.href",E);!l.helpCenterContext&&M&&(l.helpCenterContext=M.substring(0,1200));M=!0;if(e&&JSON&&JSON.stringify){var Z=JSON.stringify(e);(M=Z.length<=1200)&&(l.psdJson=Z)}M||(e={invalidPsd:!0})}e=[l,e,O];E.GOOGLE_FEEDBACK_START_ARGUMENTS=e;O=l.feedbackServerUri||"//www.google.com/tools/feedback";if(M=E.GOOGLE_FEEDBACK_START)M.apply(E,e);
else{E=O+"/load.js?";for(var u in l)e=l[u],e==null||_.e0(e)||(E+=encodeURIComponent(u)+"="+encodeURIComponent(e)+"&");l=WR(J).createElement("SCRIPT");z&&l.setAttribute("nonce",z);_.UN(l,_.VS(E));J.body.appendChild(l)}};
Xnq=function(l,e,O,E){var J,z;_.V(function(M){J=O||_.Op;var Z=l.serverEnvironment==="DEV",u=O||_.Op;u=l.nonce||_.fU(u.document);Z={integrationKeys:{productId:l.productId,feedbackBucket:l.bucket,triggerId:l.triggerId},callbacks:{onClose:l.callback,onLoad:l.onLoadCallback},formContent:{locale:l.locale,disableScreenshot:l.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:l.abuseLink,additionalDataConsent:l.additionalDataConsent},initializationData:{isLocalServer:Z,nonce:u,useNightlyRelease:Z,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:l.feedbackServerUri,colorScheme:l.colorScheme},extraData:{productVersion:l.productVersion,authUser:l.authuser,configuratorId:l.configuratorId,customZIndex:l.customZIndex,tinyNoPointer:l.tinyNoPointer,
allowNonLoggedInFeedback:l.allowNonLoggedInFeedback,enableAnonymousFeedback:l.enableAnonymousFeedback}};e&&(u=new Map(Object.entries(e)),Z.extraData.productSpecificData=u);z=Z;return _.C(M,eG2(z,E,J),0)})};
_.zhC=function(l,e,O){try{if(l.flow==="help"){var E=l.helpCenterPath.replace(/^\//,"");_.FC(O||window,"https://support.google.com/"+E)}else l.flow==="submit"?JcS(l,e,O):zGx(l.productId,l.feedbackServerUri).then(function(J){J=_.Cu(J,mV,1);var z=!mVx||(J==null?void 0:J.getEnableMweb()),M=!l.tinyNoPointer||(J==null?void 0:J.getEnableTinyNoPointer());!J||J.getAlohaAutoGaRollout()&&z&&M?Xnq(l,e,O,J):JcS(l,e,O)},function(J){J&&J.name!=="DuplicateFormError"&&JcS(l,e,O)})}catch(J){Xnq(l,e,O,null)}};
_.zJ("userfeedback.api.startFeedback",_.zhC);var bxx=/https?:\/\/\S+\.\S+/,M1g=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],V1M=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var zzq=function(l){var e=l.split(""),O=[-263237435,15,e,function(E,J,z){var M=J.length;z.forEach(function(Z,u,d){this.push(d[u]=J[(J.indexOf(Z)-J.indexOf(this[u])+u+M--)%J.length])},E.split(""))},
function(E,J){E=(E%J.length+J.length)%J.length;J.splice(-E).reverse().forEach(function(z){J.unshift(z)})},
"response",function(){for(var E=64,J=[];++E-J.length-32;){switch(E){case 58:E-=14;case 91:case 92:case 93:continue;case 123:E=47;case 94:case 95:case 96:continue;case 46:E=95}J.push(String.fromCharCode(E))}return J},
null,12,1540023973,65941107,null,e,function(E,J){for(E=(E%J.length+J.length)%J.length;E--;)J.unshift(J.pop())},
695603893,function(E){for(var J=E.length;J;)E.push(E.splice(--J,1)[0])},
"'[;'[(",function(E,J){E.push(J)},
null,function(E,J,z,M,Z){return J(z,M,Z)},
"continuation",e,function(E,J){if(E.length!=0){J=(J%E.length+E.length)%E.length;var z=E[0];E[0]=E[J];E[J]=z}},
function(){for(var E=64,J=[];++E-J.length-32;){switch(E){case 91:E=44;continue;case 123:E=65;break;case 65:E-=18;continue;case 58:E=96;continue;case 46:E=95}J.push(String.fromCharCode(E))}return J},
'"),/]];'];O[7]=O;O[11]=O;O[18]=O;try{(((0,O[15])(O[21]),O[22])(O[11],O[9]),O[22])(O[new Date("1970-01-01T04:30:12.000+04:30")/1E3],O[1]),((0,O[22])(O[11],O[23]),O[4])(O[10],O[18]),(0,O[20])(O[21],O[14])<<(0,O[17])(O[18],O[1]),(0,O[4])(O[8],O[21]),(0,O[19])((0,O[19])((0,O[17])(O[7],O[9]),O[3],O[20],(0,O[6])(),O[2]),O[3],O[5],(0,O[15])(),O[2])}catch(E){return"aTlOUOubTO4AP____8P_"+l}return e.join("")};_.bN0=new _.v("runAttestationCommand");var MdH=new _.v("verifyCommand");_.yu=new _.v("accessibilityContext");var VdR=new _.v("accessibilityData");var ZN0=new _.v("profileCardCommand");var gCq=new _.v("signInEndpoint");var dqL=new _.v("signOutEndpoint");var CYC;_.uiH=new _.v("accountItemSectionRenderer");CYC=new _.v("accountItemRenderer");_.oxk=new _.v("saveCommandToSessionStorageAction");var $JC=new _.v("crossAccountChannelTransferEndpoint");var oaL=new _.v("getAccountMenuEndpoint");_.$0g=new _.v("getAccountSwitcherEndpoint");var C02=new _.v("getAccountsListEndpoint");var WCS=new _.v("getAccountsListInnertubeEndpoint");_.pp=new _.v("addToToastAction");var dJ0=new _.v("hideEnclosingAction");_.Kp=new _.v("replaceEnclosingAction");var gxR=new _.v("buttonRefreshAction");var iNq=new _.v("adsControlFlowOpportunityReceivedCommand");var wnq=new _.v("openAdAllowlistInstructionCommand");var Ac6=new _.v("videoMastheadAdPrimaryVideoRenderer");var nxi=new _.v("displayAdRenderer");var tQq=new _.v("instreamVideoAdRenderer");_.aL1=new _.v("inFeedAdLayoutRenderer");var kix=new _.v("sequenceItemInPlayerAdLayoutRenderer");_.ILi=new _.v("adSlotRenderer");var mJS=new _.v("adAvatarViewModel");var ycq=new _.v("adBadgeViewModel");var pnq=new _.v("adImageViewModel");var fzd=new _.v("reelsAdCardButtonedViewModel");var KCS=new _.v("reelsPlayerOverlayLayoutViewModel");var j26=new _.v("showSchedulingPanelCommand");var HN6=new _.v("backstageCommentsRenderer");var cc6=new _.v("backstageImageRenderer");var FCi=new _.v("backstagePostRenderer");var fLF=new _.v("postRenderer");var RhF=new _.v("sharedPostRenderer");var TdH=new _.v("createBackstagePostEndpoint");var s2x=new _.v("getPostVideoPreviewEndpoint");var GiF=new _.v("updateBackstagePostEndpoint");var BdR=new _.v("filterChipTransformCommand");var PY0=new _.v("insertRichSectionCommand");var JRW=new _.v("talkToRecsDeselectCommand");var UJi=new _.v("talkToRecsNextCommand");var Efp=new _.v("talkToRecsSelectCommand");var YUH=new _.v("talkToRecsUpdateTextCommand");_.ms=new _.v("browseEndpoint");_.hhS=new _.v("confirmDialogEndpoint");var LCx=new _.v("expandOnHoverCardRenderer");var tdH=new _.v("lumiereShelfDetailsRenderer");var qUq=new _.v("revealBusinessEmailCommand");var vxq=new _.v("validateChannelHandleCommand");var Nd1=new _.v("channelCreationFormEndpoint");var rcq=new _.v("aboutChannelViewModel");var DJx=new _.v("channelThumbnailWithLinkRenderer");var SUq=new _.v("channelCreationServiceEndpoint");var Q2C=new _.v("updateChannelPageSettingsEndpoint");var jK=function(l){this.delegate=l},HC=function(){jK.apply(this,arguments)};
_.m(HC,jK);_.Ji.Object.defineProperties(HC.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(l){this.delegate.entityMetadata=l}}});var xJS=function(){HC.apply(this,arguments)};
_.m(xJS,HC);xJS.prototype.getAssociations=function(){return[]};var ykT=new _.v("webThumbnailDetailsExtensionData");var o98=new _.v("commandContext");var lZC=new _.v("addVideoLinkAction");var e1q=new _.v("createPollAction");var O2R=new _.v("hideIdentityChipAction");var EhF=new _.v("openUpdateCommentDialogAction");var cC=new _.v("updateBackstagePollAction");var JZ1=new _.v("updateCommentVoteAction");var XWH=new _.v("commentThreadRenderer");var z1R=function(){HC.apply(this,arguments)};
_.m(z1R,HC);z1R.prototype.getAssociations=function(){return[]};_.b2C=new _.v("commentDialogRenderer");var MRR=new _.v("updateCommentsSettingsEndpoint");var VRH=new _.v("commentViewModel");var Z2x=new _.v("triStateButtonViewModel");var u4S=new _.v("voiceReplyContainerViewModel");_.nz=new _.v("commandExecutorCommand");var Y0=new _.v("emoji");var Cvq=new _.v("updateCreatorChannelInnertubeCommand");_.ohS=new _.v("appendContinuationItemsAction");_.$3q=new _.v("changeEngagementPanelVisibilityAction");_.qj=new _.v("continuationCommand");var WyH=new _.v("listMutationCommand");_.Fn=new _.v("openPopupAction");var d3H=new _.v("persistSubscriptionsDisplayPreferencesCommand");var IZS;_.gh6=new _.v("playlistRemoveVideosAction");_.i2k=new _.v("updatePlaylistAction");_.wWH=new _.v("addToPlaylistCommand");_.AZ6=new _.v("endPlaylistCommand");_.nh0=new _.v("recoverPlaylistCommand");_.aZq=new _.v("refreshPlaylistCommand");_.k8i=new _.v("refreshFormCommand");IZS=new _.v("openOnePickAddVideoModalCommand");_.ABg=new _.v("reloadContinuationItemsCommand");_.m3x=new _.v("scrollToEngagementPanelCommand");var yZk=new _.v("selectCountryCommand");var pWF=new _.v("showReloadUiCommand");var Ky1=new _.v("undoFeedbackAction");var j_0=new _.v("updateButtonAction");var H21=new _.v("updateSubscribeButtonAction");var cZ1=new _.v("updateToggleAction");var Fyk=new _.v("webNativeShareCommand");_.V4=new _.v("webCommandMetadata");_.fp=new _.v("webHandleServiceEndpointExtension");var wSM=new _.v("webNavigationEndpointData");var fZS=new _.v("copyLinkCommand");var R16=new _.v("playlistVotingRefreshPopupCommand");var TsR=new _.v("selectChipCommand");var s_q=new _.v("setCookieCommand");var G8k=new _.v("setLocalStorageCommand");var BsR=new _.v("setPrefStorageEntryCommand");var h1q;_.PvF=new _.v("settingsUpdateCheckboxCommand");_.U3R=new _.v("settingsUpdateTextCommand");_.Y91=new _.v("settingsUpdateOptionsCommand");h1q=new _.v("settingsUpdateSwitchCommand");_.LyC=new _.v("settingsUpdateConnectedAppRendererCommand");var tRS=new _.v("updateTextInputFormFieldRendererCommand");var q9S=new _.v("updateToggleButtonStateCommand");var vhS=new _.v("updateUrlParamCommand");var NsS=new _.v("webSubmitFormCommand");var rZk=new _.v("channelSwitcherPageRenderer"),D3S=new _.v("updateChannelSwitcherPageAction");_.o2=new _.v("continuationItemRenderer");_.R6=new _.v("richItemRenderer");var S9S=new _.v("richSectionRenderer");_.Q_S=new _.v("richShelfRenderer");_.x3S=new _.v("metadataBadgeRenderer");_.lm0=new _.v("multiPageMenuNotificationSectionRenderer");_.e9R=new _.v("playlistLoopButtonStateRenderer");var O3F=new _.v("claimLegacyYoutubeChannelEndpoint");var EMF=new _.v("getNotificationMenuEndpoint");var Jrx=new _.v("getSearchInVideoCommand");_.XYk=new _.v("getTranscriptEndpoint");_.ku=new _.v("signalServiceEndpoint");var z9k=new _.v("verifyAgeEndpoint");var VLt=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(VLt,_.Gu);VLt.prototype.getPath=function(){return _.BW(this,1)};
VLt.prototype.getValue=function(){return _.BW(this,2)};var b3F=[0,_.lQ,-1];var Max=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Max,_.Gu);var MLg=_.QI(Max,[0,_.ea,b3F]);var Vaq=new _.v("dismissalEndpoint");var Z3C=new _.v("elementsCommand");_.L4=new _.v("innertubeCommand");var uDq=new _.v("multipleInlinePlaybackCommand");var EyV=new _.v("loggingDirectives");var CQq=new _.v("acknowledgeChannelTouStrikeCommand");var oMk=function(){HC.apply(this,arguments)};
_.m(oMk,HC);oMk.prototype.getAssociations=function(){return[]};var $CC=function(){HC.apply(this,arguments)};
_.m($CC,HC);$CC.prototype.getAssociations=function(){return[]};var ep=new _.v("entityBatchUpdate");_.W40=new _.v("entityUpdateCommand");var dCq=function(){HC.apply(this,arguments)};
_.m(dCq,HC);dCq.prototype.getAssociations=function(){var l=[];this.delegate.alternateChannel&&l.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&l.push.apply(l,_.kA(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&l.push(this.delegate.oneofChannelEntity);return[].concat(_.kA(new Set(l)))};var gMq=function(){HC.apply(this,arguments)};
_.m(gMq,HC);gMq.prototype.getAssociations=function(){var l=[];this.delegate.entryCollection&&l.push(this.delegate.entryCollection);return[].concat(_.kA(new Set(l)))};
var i36=function(){HC.apply(this,arguments)};
_.m(i36,HC);i36.prototype.getAssociations=function(){var l=[];this.delegate.parentPlaylist&&l.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var e=_.b(this.delegate.entries),O=e.next();!O.done;O=e.next())l.push.apply(l,_.kA((new wY6(O.value)).getAssociations()));return[].concat(_.kA(new Set(l)))};
var wY6=function(){jK.apply(this,arguments)};
_.m(wY6,jK);wY6.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);return[].concat(_.kA(new Set(l)))};var ArS=function(){HC.apply(this,arguments)};
_.m(ArS,HC);ArS.prototype.getAssociations=function(){var l=[];this.delegate.descriptionEntity&&l.push(this.delegate.descriptionEntity);this.delegate.creators&&l.push.apply(l,_.kA(this.delegate.creators));this.delegate.theBiggestFan&&l.push(this.delegate.theBiggestFan);return[].concat(_.kA(new Set(l)))};
var nMx=function(){HC.apply(this,arguments)};
_.m(nMx,HC);nMx.prototype.getAssociations=function(){return[]};var am1=new _.v("fantasyRosterViewModel");var kP1=new _.v("addFollowUpSurveyCommand");var Imi=new _.v("getSurveyCommand");var mCi=new _.v("ratingSurveyOptionRenderer");_.Yx=new _.v("feedbackEndpoint");var yrk=new _.v("reportHistoryTableCellRenderer"),pY6=new _.v("reportHistoryTableTextCellRenderer"),K4C=new _.v("reportHistoryTableReasonCellRenderer");_.jIH=new _.v("flagEndpoint");var H3q=new _.v("getFlowCommand");var crk=new _.v("submitFormWithValidationFlowCommand");var F4S=function(){HC.apply(this,arguments)};
_.m(F4S,HC);F4S.prototype.getAssociations=function(){return[]};var fmq=new _.v("flowFormState");var R9R=new _.v("gameCardRenderer");var TYC=new _.v("accountLinkingStateChangedCommand");var sIF=function(){HC.apply(this,arguments)};
_.m(sIF,HC);sIF.prototype.getAssociations=function(){return[]};var GPF=new _.v("changeMiniAppPlayStateCommand");var BYi=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(BYi,_.Gu);var TW=[1,2,3];var PQ1=[0,TW,lMM,_.el8,vX8];var UCR=_.QI(BYi,PQ1),Y8q=_.xH(PQ1);var h9q=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(h9q,_.Gu);var L46=[0,_.SR,_.lQ];var taq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(taq,_.Gu);var q8q=[0,_.lQ,_.SR,-1];var s1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(s1,_.Gu);var vM1=function(l,e){return _.oC(l,3,e)};var NYq=_.xH([0,1,L46,_.E8,q8q]);var rr6=new _.v("miniAppScoreChallengeViewModel");var DCk=new _.v("miniGameCardViewModel");var S8i=new _.v("teaserCardViewModel");var QI1=function(){HC.apply(this,arguments)};
_.m(QI1,HC);QI1.prototype.getAssociations=function(){return[]};_.xCq=new _.v("feedbackItemRenderer");var lgS=function(){HC.apply(this,arguments)};
_.m(lgS,HC);lgS.prototype.getAssociations=function(){return[]};_.eGq=new _.v("playerInterstitialRenderer");var OxS=new _.v("getKidsBlocklistPickerCommand");_.E$F=new _.v("updateKidsBlacklistEndpoint");_.xJ=new _.v("likeEndpoint");var JIS,XoS,zG6;JIS=new _.v("addChatItemAction");XoS=new _.v("removeChatItemAction");zG6=new _.v("markChatItemAsDeletedAction");_.bx1=new _.v("setLiveChatCollapsedStateAction");var M1S=function(){HC.apply(this,arguments)};
_.m(M1S,HC);M1S.prototype.getAssociations=function(){return[]};var V10=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(V10,_.Gu);var ZxH=_.QI(V10,[0,1,_.SR]);var uV1=new _.v("liveChatEndpoint");var CZk=new _.v("liveChatItemContextMenuEndpoint");var o$0=new _.v("liveChatReplayEndpoint");_.$8q=new _.v("emojiPickerRenderer");var Wh6=new _.v("liveChatAuthorBadgeViewModel");var d8C=new _.v("deleteLiveChatMessageCommand");var g$1=new _.v("liveChatActionEndpoint");var ix1=new _.v("createLiveChatPollEndpoint");var wo1=new _.v("manageLiveChatUserEndpoint");var AIF=new _.v("moderateLiveChatEndpoint");_.n$F=new _.v("sendLiveChatMessageEndpoint");var agq=new _.v("sendLiveChatVoteEndpoint");var kvF=new _.v("clearLocationCommand");var IgS=new _.v("resolveLocationCommand");var m8R=new _.v("interactionLoggingCommandMetadata");var TwA=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(TwA,_.Gu);var R8d=function(l,e){return _.b$(l,1,e)};var yI1=[0,_.xh];var fxu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(fxu,_.Gu);var Fpu=function(l,e){return pZ(l,1,TwA,e)};fxu.prototype.JSC$10108_serializeBinary=OJV([0,_.ea,yI1]);var jaW={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 poi={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"},
Khq={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 Ggt={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"};_.LKM=new _.v("logFlowLoggingEventCommand");_.p4=new _.v("loggingContext");var jaS=new _.v("captionLanguageSelectActionCommand");var Hx1=new _.v("showCaptionLanguageSelectActionCommand");var cIH=new _.v("dismissDialogEndpoint");var Fhi=new _.v("hideItemSectionVideosByIdCommand");var fg6=new _.v("showMiniplayerCommand");var RG0=function(){HC.apply(this,arguments)};
_.m(RG0,HC);RG0.prototype.getAssociations=function(){return[]};var TEq=function(){HC.apply(this,arguments)};
_.m(TEq,HC);TEq.prototype.getAssociations=function(){return[]};var saC=function(){HC.apply(this,arguments)};
_.m(saC,HC);saC.prototype.getAssociations=function(){return[]};var Gv0=function(){HC.apply(this,arguments)};
_.m(Gv0,HC);Gv0.prototype.getAssociations=function(){var l=[];this.delegate.downloadsList&&l.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&l.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&l.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&l.push(this.delegate.refresh);return[].concat(_.kA(new Set(l)))};var BES=function(){HC.apply(this,arguments)};
_.m(BES,HC);BES.prototype.getAssociations=function(){var l=[];this.delegate.refresh&&l.push(this.delegate.refresh);if(this.delegate.downloads)for(var e=_.b(this.delegate.downloads),O=e.next();!O.done;O=e.next())l.push.apply(l,_.kA((new PZk(O.value)).getAssociations()));return[].concat(_.kA(new Set(l)))};
var PZk=function(){jK.apply(this,arguments)};
_.m(PZk,jK);PZk.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);this.delegate.playlist&&l.push(this.delegate.playlist);this.delegate.videoItem&&l.push(this.delegate.videoItem);this.delegate.playlistItem&&l.push(this.delegate.playlistItem);return[].concat(_.kA(new Set(l)))};var U86=function(){HC.apply(this,arguments)};
_.m(U86,HC);U86.prototype.getAssociations=function(){var l=[];this.delegate.localImageEntities&&l.push.apply(l,_.kA(this.delegate.localImageEntities));return[].concat(_.kA(new Set(l)))};var Yk1=function(){HC.apply(this,arguments)};
_.m(Yk1,HC);Yk1.prototype.getAssociations=function(){var l=[];this.delegate.playbackData&&l.push(this.delegate.playbackData);this.delegate.localImageEntities&&l.push.apply(l,_.kA(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kA(new Set(l)))};var hGx=function(){HC.apply(this,arguments)};
_.m(hGx,HC);hGx.prototype.getAssociations=function(){return[]};var LhR=function(){HC.apply(this,arguments)};
_.m(LhR,HC);LhR.prototype.getAssociations=function(){var l=[];this.delegate.fakeChildren&&l.push.apply(l,_.kA(this.delegate.fakeChildren));return[].concat(_.kA(new Set(l)))};var t10=function(){HC.apply(this,arguments)};
_.m(t10,HC);t10.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);this.delegate.playbackData&&l.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&l.push(this.delegate.offlineVideoPolicy);return[].concat(_.kA(new Set(l)))};var qk1=function(){HC.apply(this,arguments)};
_.m(qk1,HC);qk1.prototype.getAssociations=function(){return[]};var v$k=function(){HC.apply(this,arguments)};
_.m(v$k,HC);v$k.prototype.getAssociations=function(){var l=[];this.delegate.channelOwner&&l.push(this.delegate.channelOwner);this.delegate.videos&&l.push.apply(l,_.kA(this.delegate.videos));this.delegate.collaboratorChannels&&l.push.apply(l,_.kA(this.delegate.collaboratorChannels));this.delegate.downloadState&&l.push(this.delegate.downloadState);this.delegate.refresh&&l.push(this.delegate.refresh);return[].concat(_.kA(new Set(l)))};var NE1=function(){HC.apply(this,arguments)};
_.m(NE1,HC);NE1.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);this.delegate.channelContributor&&l.push(this.delegate.channelContributor);return[].concat(_.kA(new Set(l)))};var rIS=function(){jK.apply(this,arguments)};
_.m(rIS,jK);rIS.prototype.getAssociations=function(){var l=[];this.delegate.recommendedVideoMetadata&&l.push.apply(l,_.kA((new D8q(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.kA(new Set(l)))};
var D8q=function(){jK.apply(this,arguments)};
_.m(D8q,jK);D8q.prototype.getAssociations=function(){var l=[];this.delegate.localImageEntities&&l.push.apply(l,_.kA(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kA(new Set(l)))};var SkR=function(){jK.apply(this,arguments)};
_.m(SkR,jK);SkR.prototype.getAssociations=function(){var l=[];this.delegate.playbackPosition&&l.push(this.delegate.playbackPosition);return[].concat(_.kA(new Set(l)))};var Qaq=function(){HC.apply(this,arguments)};
_.m(Qaq,HC);Qaq.prototype.getAssociations=function(){var l=[];this.delegate.owner&&l.push(this.delegate.owner);this.delegate.downloadState&&l.push(this.delegate.downloadState);this.delegate.userState&&l.push.apply(l,_.kA((new SkR(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&l.push.apply(l,_.kA((new rIS(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.kA(new Set(l)))};var x8H=function(){HC.apply(this,arguments)};
_.m(x8H,HC);x8H.prototype.getAssociations=function(){var l=[];this.delegate.userChannelDetails&&l.push(this.delegate.userChannelDetails);return[].concat(_.kA(new Set(l)))};var lqR=function(){HC.apply(this,arguments)};
_.m(lqR,HC);lqR.prototype.getAssociations=function(){var l=[];this.delegate.channelOwner&&l.push(this.delegate.channelOwner);this.delegate.playbackPosition&&l.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&l.push.apply(l,_.kA(this.delegate.localImageEntities));this.delegate.downloadStatus&&l.push(this.delegate.downloadStatus);return[].concat(_.kA(new Set(l)))};var efq=new _.v("downloadsPageSmartDownloadsOptInBannerParams");var e0q=function(){HC.apply(this,arguments)};
_.m(e0q,HC);e0q.prototype.getAssociations=function(){return[]};var OnR=function(){HC.apply(this,arguments)};
_.m(OnR,HC);OnR.prototype.getAssociations=function(){return[]};var ENq=function(){HC.apply(this,arguments)};
_.m(ENq,HC);ENq.prototype.getAssociations=function(){return[]};var J61=function(){HC.apply(this,arguments)};
_.m(J61,HC);J61.prototype.getAssociations=function(){return[]};var XeH=function(){HC.apply(this,arguments)};
_.m(XeH,HC);XeH.prototype.getAssociations=function(){return[]};var z0i=function(){HC.apply(this,arguments)};
_.m(z0i,HC);z0i.prototype.getAssociations=function(){return[]};var bnq=function(){HC.apply(this,arguments)};
_.m(bnq,HC);bnq.prototype.getAssociations=function(){return[]};var MVk=function(){HC.apply(this,arguments)};
_.m(MVk,HC);MVk.prototype.getAssociations=function(){return[]};var VVk=function(){HC.apply(this,arguments)};
_.m(VVk,HC);VVk.prototype.getAssociations=function(){return[]};_.Pi=new _.v("dislikeButtonViewModel");_.Bi=new _.v("likeButtonViewModel");var Zni=new _.v("videoSummaryContentViewModel");var uBC=new _.v("videoSummaryParagraphViewModel");var COH=new _.v("changeTimelyActionVisibilityCommand");var oNi=new _.v("hideEngagementPanelEndpoint");var $DS=new _.v("refreshPanelEndpoint");var W2x=new _.v("scrollToSectionEndpoint");var dDS=new _.v("seekToVideoTimestampCommand");_.UU=new _.v("showEngagementPanelEndpoint");var gN1=new _.v("showTransientPlayerScrimOverlayCommand");var inx=new _.v("toggleEngagementPanelCommand");_.we0=new _.v("createBroadcastCommand");var A6H=new _.v("metadataUpdateCommand");var nNq=function(){HC.apply(this,arguments)};
_.m(nNq,HC);nNq.prototype.getAssociations=function(){return[]};var aqq=function(){HC.apply(this,arguments)};
_.m(aqq,HC);aqq.prototype.getAssociations=function(){return[]};var kGk=function(){HC.apply(this,arguments)};
_.m(kGk,HC);kGk.prototype.getAssociations=function(){return[]};_.IqH=new _.v("merchandiseShelfRenderer");var mDk=new _.v("gridMovieRenderer");_.y66=new _.v("movieRenderer");var pe0=function(){HC.apply(this,arguments)};
_.m(pe0,HC);pe0.prototype.getAssociations=function(){var l=[];this.delegate.trackDownloadMetadatas&&l.push.apply(l,_.kA(this.delegate.trackDownloadMetadatas));return[].concat(_.kA(new Set(l)))};var K20=function(){HC.apply(this,arguments)};
_.m(K20,HC);
K20.prototype.getAssociations=function(){var l=[];this.delegate.downloadedTracks&&l.push.apply(l,_.kA(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&l.push.apply(l,_.kA(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&l.push.apply(l,_.kA(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&l.push.apply(l,_.kA(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&l.push.apply(l,_.kA(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
l.push.apply(l,_.kA(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&l.push.apply(l,_.kA(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&l.push.apply(l,_.kA(this.delegate.metadataOnlyTracks));return[].concat(_.kA(new Set(l)))};var js6=function(){HC.apply(this,arguments)};
_.m(js6,HC);js6.prototype.getAssociations=function(){var l=[];this.delegate.trackDownloadMetadatas&&l.push.apply(l,_.kA(this.delegate.trackDownloadMetadatas));return[].concat(_.kA(new Set(l)))};var Hn1=function(){HC.apply(this,arguments)};
_.m(Hn1,HC);Hn1.prototype.getAssociations=function(){var l=[];this.delegate.playbackData&&l.push(this.delegate.playbackData);this.delegate.localImageEntities&&l.push.apply(l,_.kA(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kA(new Set(l)))};var c66=function(){HC.apply(this,arguments)};
_.m(c66,HC);
c66.prototype.getAssociations=function(){var l=[];this.delegate.musicLibraryStatusEntity&&l.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&l.push.apply(l,_.kA(this.delegate.primaryArtists));this.delegate.details&&l.push(this.delegate.details);this.delegate.userDetails&&l.push(this.delegate.userDetails);this.delegate.tracks&&l.push.apply(l,_.kA(this.delegate.tracks));this.delegate.share&&l.push(this.delegate.share);this.delegate.downloadMetadata&&l.push(this.delegate.downloadMetadata);this.delegate.refresh&&
l.push(this.delegate.refresh);return[].concat(_.kA(new Set(l)))};
var F26=function(){HC.apply(this,arguments)};
_.m(F26,HC);F26.prototype.getAssociations=function(){var l=[];this.delegate.albumRelease&&l.push(this.delegate.albumRelease);this.delegate.tracks&&l.push.apply(l,_.kA(this.delegate.tracks));return[].concat(_.kA(new Set(l)))};
var fqx=function(){HC.apply(this,arguments)};
_.m(fqx,HC);fqx.prototype.getAssociations=function(){var l=[];this.delegate.albumRelease&&l.push(this.delegate.albumRelease);return[].concat(_.kA(new Set(l)))};var R0i=function(){HC.apply(this,arguments)};
_.m(R0i,HC);R0i.prototype.getAssociations=function(){var l=[];this.delegate.details&&l.push(this.delegate.details);this.delegate.userDetails&&l.push(this.delegate.userDetails);return[].concat(_.kA(new Set(l)))};
var TU0=function(){HC.apply(this,arguments)};
_.m(TU0,HC);TU0.prototype.getAssociations=function(){var l=[];this.delegate.parentArtist&&l.push(this.delegate.parentArtist);return[].concat(_.kA(new Set(l)))};
var ssq=function(){HC.apply(this,arguments)};
_.m(ssq,HC);ssq.prototype.getAssociations=function(){var l=[];this.delegate.parentArtist&&l.push(this.delegate.parentArtist);return[].concat(_.kA(new Set(l)))};var GGq=function(){HC.apply(this,arguments)};
_.m(GGq,HC);GGq.prototype.getAssociations=function(){return[]};var BU1=function(){HC.apply(this,arguments)};
_.m(BU1,HC);BU1.prototype.getAssociations=function(){return[]};var POR=function(){HC.apply(this,arguments)};
_.m(POR,HC);
POR.prototype.getAssociations=function(){var l=[];this.delegate.tracks&&l.push.apply(l,_.kA(this.delegate.tracks));this.delegate.refresh&&l.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&l.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&l.push(this.delegate.details);this.delegate.downloadMetadata&&l.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&l.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&l.push(this.delegate.userDetails);this.delegate.entryCollection&&
l.push(this.delegate.entryCollection);this.delegate.share&&l.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&l.push.apply(l,_.kA((new UDq(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.kA(new Set(l)))};
var UDq=function(){jK.apply(this,arguments)};
_.m(UDq,jK);UDq.prototype.getAssociations=function(){var l=[];this.delegate.creatorEntity&&l.push(this.delegate.creatorEntity);return[].concat(_.kA(new Set(l)))};var Y7i=function(){HC.apply(this,arguments)};
_.m(Y7i,HC);Y7i.prototype.getAssociations=function(){return[]};var h06=function(){HC.apply(this,arguments)};
_.m(h06,HC);
h06.prototype.getAssociations=function(){var l=[];this.delegate.musicLibraryStatusEntity&&l.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&l.push.apply(l,_.kA(this.delegate.artists));this.delegate.audioModeVersion&&l.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&l.push(this.delegate.videoModeVersion);this.delegate.userDetails&&l.push(this.delegate.userDetails);this.delegate.details&&l.push(this.delegate.details);this.delegate.albumRelease&&l.push(this.delegate.albumRelease);this.delegate.share&&
l.push(this.delegate.share);this.delegate.libraryEdit&&l.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&l.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&l.push(this.delegate.playbackPosition);this.delegate.lyrics&&l.push(this.delegate.lyrics);return[].concat(_.kA(new Set(l)))};
var L2F=function(){HC.apply(this,arguments)};
_.m(L2F,HC);L2F.prototype.getAssociations=function(){var l=[];this.delegate.parentTrack&&l.push(this.delegate.parentTrack);return[].concat(_.kA(new Set(l)))};
var tVF=function(){HC.apply(this,arguments)};
_.m(tVF,HC);tVF.prototype.getAssociations=function(){var l=[];this.delegate.parentTrack&&l.push(this.delegate.parentTrack);return[].concat(_.kA(new Set(l)))};var VQ=new _.v("musicResponsiveListItemRenderer");var I_p=new _.v("addToPlaylistEndpoint");var q7S=new _.v("captionPickerEndpoint");var vNR=new _.v("suggestStats");var NU0=new _.v("backstageImageUploadEndpoint");var r6x=new _.v("createBackstagePostDialogEndpoint");_.DD6=new _.v("createCommentReplyDialogEndpoint");_.S7H=new _.v("updateCommentDialogEndpoint");_.Qs1=new _.v("updateCommentReplyDialogEndpoint");var xD6=new _.v("menuEndpoint");var dp8=new _.v("modalEndpoint");var lK1=new _.v("playlistEditorEndpoint");var eoS=new _.v("copyTextEndpoint");var OIH,E3R;OIH=new _.v("shareEndpoint");E3R=new _.v("shareEntityEndpoint");_.JfS=new _.v("shareEntityServiceEndpoint");_.sOt=new _.v("userFeedbackEndpoint");_.ej=new _.v("watchEndpoint");var OgV=new _.v("watchPlaylistEndpoint");var X0R=new _.v("addUpcomingEventReminderEndpoint");_.GW=new _.v("getCommentsFromInboxCommand");var zo0=new _.v("notificationOptOutEndpoint");var bI0=new _.v("recordNotificationInteractionsEndpoint");var MqF=new _.v("removeUpcomingEventReminderEndpoint");var a_8=new _.v("getDownloadActionCommand");_.VqF=new _.v("offlineOrchestrationActionCommand");var ZI6=function(){HC.apply(this,arguments)};
_.m(ZI6,HC);ZI6.prototype.getAssociations=function(){return[]};var ua0=function(){HC.apply(this,arguments)};
_.m(ua0,HC);ua0.prototype.getAssociations=function(){return[]};var C_S=function(){HC.apply(this,arguments)};
_.m(C_S,HC);C_S.prototype.getAssociations=function(){return[]};var o3S=function(){HC.apply(this,arguments)};
_.m(o3S,HC);o3S.prototype.getAssociations=function(){return[]};var $kS=function(){HC.apply(this,arguments)};
_.m($kS,HC);$kS.prototype.getAssociations=function(){var l=[];this.delegate.transfer&&l.push(this.delegate.transfer);this.delegate.adsPlaybackData&&l.push.apply(l,_.kA(this.delegate.adsPlaybackData));this.delegate.drmLicense&&l.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&l.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kA(new Set(l)))};var WSq=function(){HC.apply(this,arguments)};
_.m(WSq,HC);WSq.prototype.getAssociations=function(){return[]};var dkR=function(){HC.apply(this,arguments)};
_.m(dkR,HC);dkR.prototype.getAssociations=function(){var l=[];this.delegate.offlineVideoStreams&&l.push.apply(l,_.kA(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&l.push.apply(l,_.kA(this.delegate.captionTrack));return[].concat(_.kA(new Set(l)))};var g30=function(){HC.apply(this,arguments)};
_.m(g30,HC);g30.prototype.getAssociations=function(){return[]};var iIR=new _.v("showMoreDrawerCommand");var w0S=new _.v("updateEngagementPanelContentCommand");var Af1=new _.v("getPdgBuyFlowCommand");var n3q=new _.v("liveChatPurchaseMessageEndpoint");var aK0=new _.v("openSuperStickerBuyFlowCommand");var k71=new _.v("updatePdgFeatureEnablementCommand");var IKq=function(){HC.apply(this,arguments)};
_.m(IKq,HC);IKq.prototype.getAssociations=function(){return[]};var mkk=function(){HC.apply(this,arguments)};
_.m(mkk,HC);mkk.prototype.getAssociations=function(){return[]};_.yfR=new _.v("pdgCommentChipRenderer");_.p0S=new _.v("permissionRoleBottomBarRenderer");_.KSS=new _.v("updatePermissionRoleCommand");var jFF=new _.v("prefetchWatchCommand");var HI1=new _.v("updatePlayerErrorMessageCommand");var W$8=new _.v("toggleCaptionsVisibilityCommand");_.cfq=new _.v("quickActionsViewModel");var FSq=new _.v("playerResponse");var fKi=new _.v("playlistRenderer");_.Ro1=new _.v("playlistVideoListRenderer");_.BC=new _.v("playlistEditEndpoint");var T9x=new _.v("createImagePollCommand");var sFF=new _.v("createQuizCommand");var G70=new _.v("quizRenderer");var B9S=new _.v("uploadedVideoRenderer");var P_C=new _.v("decorateMessageEndpoint");var Uk1=new _.v("lpOfferCardOptionViewModel");var YSS=new _.v("sfvAudioItemPlaybackCommand");var hoS=function(){HC.apply(this,arguments)};
_.m(hoS,HC);hoS.prototype.getAssociations=function(){return[]};_.PC=new _.v("reelNonVideoContentEndpoint");_.jT=new _.v("reelWatchEndpoint");_.U1=new _.v("reelItemRenderer");_.LSS=new _.v("reelMetapanelViewModel");_.tqR=new _.v("reelNonVideoContentRenderer");_.qSx=new _.v("reelPlayerOverlayRenderer");var v3C=new _.v("shortsLockupViewModel");var N9q=new _.v("sponsorButtonViewModel");var rfq=new _.v("reelItemWatchResponse");var Dk6=new _.v("textBadgeRenderer");_.YU=new _.v("buttonRenderer");_.hK=new _.v("toggleButtonRenderer");var ntV=new _.v("switchButtonViewModel");_.SSk=new _.v("confirmDialogRenderer");var QFx;QFx=new _.v("menuRenderer");_.xkR=new _.v("menuFlexibleItemRenderer");var l3q=new _.v("pollRenderer");_.eLk=new _.v("backgroundPromoRenderer");var Enq;_.Oiq=new _.v("chipCloudRenderer");Enq=new _.v("chipCloudChipRenderer");var JH1=new _.v("dropdownRenderer");var XXk=new _.v("gridVideoRenderer");_.zL6=new _.v("itemSectionRenderer");_.bi0=new _.v("messageRenderer");var MJi=new _.v("sortFilterHeaderRenderer");_.Lp=new _.v("videoRenderer");var VJi=new _.v("resolveUrlCommandMetadata");var Ziq=function(){HC.apply(this,arguments)};
_.m(Ziq,HC);Ziq.prototype.getAssociations=function(){return[]};_.us1=new _.v("getAnswerCommand");_.yF=new _.v("searchEndpoint");var Ca0=new _.v("genAiRichTextViewModel");var na8=new _.v("overviewAnswerViewModel");var on1=new _.v("addToPlaylistServiceEndpoint");var $BC=new _.v("clearSearchHistoryEndpoint");var WRq=new _.v("clearWatchHistoryEndpoint");var dBk=new _.v("webSerializedServiceEndpointExtension");_.gn6=new _.v("createCommentEndpoint");var iiq=new _.v("createCommentReplyEndpoint");var wXF=new _.v("performCommentActionEndpoint");var AH1=new _.v("updateCommentEndpoint");var nnS=new _.v("updateCommentReplyEndpoint");_.tK=new _.v("createPlaylistServiceEndpoint");var a3x=new _.v("deletePlaylistEndpoint");var kxk=new _.v("deleteVideoEndpoint");var kC2=new _.v("getReportFormEndpoint");var I31=new _.v("modifyChannelNotificationPreferenceEndpoint");var B28;_.nT=new _.v("offlinePlaylistEndpoint");B28={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 PbM;_.AM=new _.v("offlineVideoEndpoint");PbM={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 mBS=new _.v("pingingEndpoint");_.yH1=new _.v("selectActiveIdentityEndpoint");var pX1=new _.v("setSettingEndpoint");var XEg=new _.v("undoFeedbackEndpoint");var KRq=new _.v("unsubscribeEndpoint");_.fYk=new _.v("updatedMetadataEndpoint");var R2x=function(){HC.apply(this,arguments)};
_.m(R2x,HC);R2x.prototype.getAssociations=function(){return[]};_.T00=new _.v("updateLocalAppSettingCommand");var sTS=new _.v("saveImageToDeviceEndpoint");var Ga0=new _.v("shareImageCommand");var B0H=new _.v("sharingProviderDataCommand");var PIq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(PIq,_.Gu);var UZq=[0,_.lQ,-1];PIq.prototype.JSC$10309_serializeBinary=OJV(UZq);var Ylx=_.xH(UZq);var h21=new _.v("userMentionSuggestionRenderer");var Lo1=new _.v("liveChatTunnelCommand");var tZF=new _.v("showSponsorshipsGiftOfferDialogCommand");var qlk=new _.v("sponsorshipsScrollableShelfViewModel");var vkx=new _.v("updateUpcomingEventReminderButtonStateCommand");var N01=new _.v("upcomingEventReminderButtonStateRenderer");var rJS=new _.v("subscribeEndpoint");var DZq=new _.v("registerTasksCommand");var SlF=new _.v("hideSnackbarCommand");var QTk=new _.v("showDialogCommand");_.mM=new _.v("showSheetCommand");var xZH=new _.v("showSnackbarCommand");var lnR=function(){HC.apply(this,arguments)};
_.m(lnR,HC);lnR.prototype.getAssociations=function(){return[]};var efC=function(){HC.apply(this,arguments)};
_.m(efC,HC);efC.prototype.getAssociations=function(){return[]};_.l3=new _.v("avatarViewModel");var Opi=new _.v("badgeViewModel");_.Hi=new _.v("buttonViewModel");_.qS=new _.v("chipViewModel");var c4M=new _.v("collectionThumbnailViewModel");var EU1=new _.v("contentPreviewImageViewModel");var JKH=new _.v("decoratedAvatarViewModel");var qaM=new _.v("downloadButtonViewModel");_.kAT=new _.v("engagementBarViewModel");_.XC1=new _.v("imageBannerViewModel");var IQW=new _.v("lockupContentMetadataRowExtension");var zfC=new _.v("lockupMetadataViewModel");_.bpF=new _.v("lockupViewModel");var MKH=new _.v("avatarStackViewModel");var VK1=function(){HC.apply(this,arguments)};
_.m(VK1,HC);VK1.prototype.getAssociations=function(){return[]};_.ZpR=new _.v("pageHeaderViewModel");var un0=new _.v("snackbarViewModel");var CSH=new _.v("thumbnailHoverOverlayToggleActionsViewModel");_.ci=new _.v("toggleButtonViewModel");var oUH=function(){HC.apply(this,arguments)};
_.m(oUH,HC);oUH.prototype.getAssociations=function(){return[]};_.IIg=new _.v("votingViewModel");var $Sq=new _.v("sectionHeaderViewModel");var WV1=new _.v("notifyDropdownOptionSelectedCommand");var cvu=new _.v("listViewModel");_.yz=new _.v("listItemViewModel");var dSR=new _.v("dialogHeaderViewModel");var gU1=function(){HC.apply(this,arguments)};
_.m(gU1,HC);gU1.prototype.getAssociations=function(){return[]};var ip1=function(){HC.apply(this,arguments)};
_.m(ip1,HC);ip1.prototype.getAssociations=function(){return[]};var wCC=function(){HC.apply(this,arguments)};
_.m(wCC,HC);wCC.prototype.getAssociations=function(){return[]};_.AK1=new _.v("transcriptSubmitCaptionCorrectionCommand");var nUx=function(){HC.apply(this,arguments)};
_.m(nUx,HC);nUx.prototype.getAssociations=function(){return[]};var JoW=new _.v("unpluggedStringRunImage");var ani=new _.v("tabViewModel");var kWS=new _.v("tabbedViewModel");var Inq=function(){HC.apply(this,arguments)};
_.m(Inq,HC);Inq.prototype.getAssociations=function(){return[]};_.mSi=new _.v("updateDescriptionAction");var yKq=new _.v("updateToggleButtonTextAction");_.pCS=new _.v("autoplaySwitchButtonRenderer");var tc;_.KVH=new _.v("multiMarkersPlayerBarRenderer");tc=new _.v("chapterRenderer");var j6q=new _.v("heatMarkerRenderer");var gfx=new _.v("heatmapRenderer");var HpC=new _.v("smartSkipPlayerScrimOverlayRenderer");var cKF=new _.v("timedMarkerDecorationRenderer");var uIu=new _.v("postWebToNativeMessageCommand");var FV0=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(FV0,_.Gu);var fnH=_.QI(FV0,[0,_.lQ,-2]);var Rfq=new _.v("whitelistEditEndpoint");var TtC=new _.v("clearUrlParamCommand");var s6q=new _.v("commerceActionCommand");_.GWS=new _.v("getPaymentInstrumentsParamsCommand");var Bti=new _.v("getPaymentsClientTokenCommand");var PSq=new _.v("googlePaymentBillingCommand");var USk=new _.v("googlePaymentPurchaseManagerCommand");_.Y10=new _.v("logGtmCommand");var hfq=new _.v("updateCardItemOnClickCommand");_.LVk=new _.v("ypcPauseSubscriptionCommand");_.tKF=new _.v("ypcResumeSubscriptionCommand");var q10=function(){HC.apply(this,arguments)};
_.m(q10,HC);q10.prototype.getAssociations=function(){return[]};var vUS=function(){HC.apply(this,arguments)};
_.m(vUS,HC);vUS.prototype.getAssociations=function(){return[]};var NtF=function(){HC.apply(this,arguments)};
_.m(NtF,HC);NtF.prototype.getAssociations=function(){return[]};var rK1=function(){HC.apply(this,arguments)};
_.m(rK1,HC);rK1.prototype.getAssociations=function(){return[]};var DSi=function(){HC.apply(this,arguments)};
_.m(DSi,HC);DSi.prototype.getAssociations=function(){return[]};var uTq=new _.v("ypcOffersEndpoint");var S1F=new _.v("cardItemRenderer"),Q61=new _.v("cardItemTextRenderer");var xS0=new _.v("commerceCartItemQuantityPickerRenderer");var l1q=new _.v("linkCardRenderer");var J2p=new _.v("quantityIncrementerButtonViewModel");var eIR=new _.v("quantityIncrementerViewModel");var O6q=new _.v("themedImageViewModel");_.EwS=new _.v("ypcCancelRecurrenceEndpoint");var J7i=new _.v("ypcCompleteTransactionEndpoint");_.XJC=new _.v("ypcGetCartEndpoint");_.o9=new _.v("ypcGetOffersEndpoint");_.vC=new _.v("ypcHandleTransactionEndpoint");var zIi=new _.v("ypcLogWalletAnalyticDataEndpoint");_.b66=new _.v("ypcRedeemCodeEndpoint");var M9S=new _.v("ypcUpdateFopEndpoint");Vu(MS(1),zW(4));Rlq((new MessageChannel).port2);var V9C=function(){this.register=new Map},cI8=function(l,e,O){l=l+"_"+e;
NS.register.has(l)?O=NS.register.get(l):(O=O(),NS.register.set(l,O));return O},Z6H=function(l){l=_.b(l.register.values());
for(var e=l.next();!e.done;e=l.next())_.a2(e.value,"ABORTED")};
V9C.prototype.clear=function(){Z6H(this);this.register.clear()};
var NS=new V9C;var CZu=Date.now().toString();var $82,u5R=_.Op.ytLoggingDocDocumentNonce_;u5R||(u5R=sK(16),_.zJ("ytLoggingDocDocumentNonce_",u5R));$82=u5R;var agV={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 Cy6;Cy6=1;_.Gz=function(l){this.veData=l};
_.cf=function(l){return new _.Gz({trackingParams:l})};
_.sL=function(l,e,O,E,J,z){var M=Cy6++;return new _.Gz({veType:l,veCounter:M,elementIndex:O,dataElement:e,youtubeData:E,jspbYoutubeData:J,loggingDirectives:z})};
_.X=_.Gz.prototype;
_.X.getAsJson=function(){var l={};this.veData.trackingParams!==void 0?l.trackingParams=this.veData.trackingParams:(l.veType=this.veData.veType,this.veData.veCounter!==void 0&&(l.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(l.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(l.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(l.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(l.isCounterfactual=!0);
return l};
_.X.getAsJspb=function(){var l=new YsF;this.veData.trackingParams!==void 0?l.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.L2(l,2,this.veData.veType),this.veData.veCounter!==void 0&&_.L2(l,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.L2(l,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.b$(l,5,!0));if(this.veData.dataElement!==void 0){var e=this.veData.dataElement.getAsJspb();_.EN(l,7,e)}this.veData.youtubeData!==void 0&&_.EN(l,8,this.veData.jspbYoutubeData);
return l};
_.X.toString=function(){return JSON.stringify(this.getAsJson())};
_.X.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.X.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.zJ("yt_logging_screen.getRootVeType",woT);_.zJ("yt_logging_screen.getCurrentCsn",_.P9);_.zJ("yt_logging_screen.getCttAuthInfo",UK);_.zJ("yt_logging_screen.setCurrentScreen",_.Yv);var owH=function(){this.events=new Map},$gq=function(l){var e=[];
l=_.b(l.events.values());for(var O=l.next();!O.done;O=l.next())e.push(O.value);return e};
owH.prototype.clear=function(){this.events.clear()};var dgx=function(){this.logTransport=new Wgq;this.loggedEventRegister=new owH;this.unloggedEventRegister=new owH;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10366_flushTimer=new _.Zp(this.flushInterval);this.JSC$10366_flushTimer.listen("tick",this.flush,!1,this)};
dgx.prototype.flush=function(){if(this.eventsCount){var l={loggedEvents:$gq(this.loggedEventRegister),unloggedEvents:$gq(this.unloggedEventRegister)};if(_.a("export_player_version_to_ytconfig")){var e;(e=_.hT("PLAYER_CLIENT_VERSION"))?(e=e.split("-")[0].replace(/\./g,""),e=isNaN(Number(e))?"0":e):e="";var O=_.hT("PLAYER_CLIENT_VERSION");if(O){O=O.split("-");var E="";O.length>1&&(E=O[O.length-1]);O=uVT(E.startsWith("canary_experiment")?"canary":E.startsWith("canary_control")?"control":"none")}else O=
"CLIENT_CANARY_STATE_UNKNOWN";l.dimensions={playerClientVersion:e,playerCanaryState:O}}this.logTransport.flush(l);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10366_flushTimer.enabled&&this.JSC$10366_flushTimer.stop()}};
var gw0=function(l){rt==null&&(rt=new dgx);var e=rt;var O=e.loggedEventRegister;l.dimensions=l.dimensions||{};l.dimensions.csn=_.P9()||"";var E=m8L(l.dimensions).join(";");if(l.records!=null)if(O.events.has(E)){var J;(J=O.events.get(E).records)==null||J.push.apply(J,_.kA(l.records))}else O.events.set(E,l);e.JSC$10366_flushTimer.enabled||e.JSC$10366_flushTimer.start();e.eventsCount++;e.eventsCount>=100&&e.flush()};var Wgq=function(){};
Wgq.prototype.flush=function(l,e){_.a("enable_client_sli_logging")&&_.Bm("sliEventBatch",l,{sendIsolatedPayload:!!e})};var rt;var wJq;wJq=function(l){var e=i6k;l=l===void 0?{}:l;e=e.name;var O=HxT("SUCCESS");gw0({dimensions:l,records:[{name:e,state:"SLI_STATE_END",status:O}]})};
_.FhA=function(l,e,O,E){this.name=l;this.sliId=e;this.timeoutMs=O;this.statusOnTimeout=E;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.FhA.prototype.getId=function(){return this.sliId};
_.nN=function(l,e){e=e===void 0?{}:e;l.ongoing||(l.ongoing=!0,l.dimensions=e,l.logSliId=dTq(),gw0({dimensions:l.dimensions,records:[{name:l.name,state:"SLI_STATE_START",sliId:l.logSliId}]}),l.timeoutMs>0&&(l.timeoutHandle=setTimeout(function(){_.a2(l,l.statusOnTimeout)},l.timeoutMs)))};
_.a2=function(l,e){l.ongoing&&(l.timeoutMs>0&&clearTimeout(l.timeoutHandle),l.ongoing=!1,e={dimensions:l.dimensions,records:[{name:l.name,status:HxT(e),state:"SLI_STATE_END",sliId:l.logSliId}]},NS.register.delete(l.name+"_"+l.sliId),gw0(e))};var i6k=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var A7q=function(){HC.apply(this,arguments)};
_.m(A7q,HC);A7q.prototype.getAssociations=function(){return[]};var LLV=new _.v("highlightTextDecoratorColorMapExtension");var YO2=new _.v("styleRunColorMapExtension");var PZu=_.E9(["data-"]),hGp={};var t1M={};var Dn=function(l){this.wrappedPromise_=l===void 0?null:l;this.state_=0;this.JSC$10398_value_=null};
Dn.prototype.then=function(l,e,O){return this.wrappedPromise_?this.wrappedPromise_.then(l,e,O):this.state_===1&&l?(l=l.call(O,this.JSC$10398_value_))&&typeof l.then==="function"?l:_.SK(l):this.state_===2&&e?(l=e.call(O,this.JSC$10398_value_))&&typeof l.then==="function"?l:_.nw1(l):this};
Dn.prototype.getValue=function(){return this.JSC$10398_value_};
Dn.prototype.isRejected=function(){return this.state_==2};
Gu6(Dn);_.nw1=function(l){var e=new Dn;l=l===void 0?null:l;e.state_=2;e.JSC$10398_value_=l===void 0?null:l;return e};
_.SK=function(l){var e=new Dn;l=l===void 0?null:l;e.state_=1;e.JSC$10398_value_=l===void 0?null:l;return e};var z0A="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var a10=["load","abort","error"],Qu=function(l,e,O){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10418_maxAspectRatio_=l;this.disableAnimation_=e===void 0?!1:e;this.disableExifRotation_=O===void 0?!1:O;this.JSC$10418_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10418_reject_=this.resolve_=null};
Qu.prototype.transform=function(l){var e=this;this.mime_=l.type;lO(sp0(l),this.dataUrlRead_,this.readError_,this);lO(TQF(l.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(O,E){e.resolve_=O;e.JSC$10418_reject_=E})};
Qu.prototype.dataUrlRead_=function(l){this.dataUrl_=l;this.angle_!=null&&kZH(this)};
Qu.prototype.exifRead_=function(l){if(this.disableExifRotation_)this.angle_=0;else{a:if(l=new DataView(l),l.byteLength<2||l.getUint16(0)!==65496)l=-2;else{for(var e=2,O=l.byteLength;e<O;){var E=l.getUint16(e),J=l.getUint16(e+2);if(E===65505){e+=4;E=l.getUint32(e);J=l.getUint16(e+4);if(E!==1165519206||J!==0)break;e+=6;E=l.getUint16(e)===18761;e+=l.getUint32(e+4,E);J=l.getUint16(e,E);e+=2;for(var z=0;z<J;z++){if(l.getUint16(e,E)===274){e+=8;l=l.getUint16(e,E);break a}e+=12}}else if(E>>8!==255)break;
else e+=J+2}l=-1}switch(l){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&&kZH(this)};
Qu.prototype.readError_=function(){this.JSC$10418_reject_()};
var kZH=function(l){jb(l.JSC$10418_image_,a10,l.completeTransform_,!1,l);l.JSC$10418_image_.src=_.nU(l.dataUrl_).toString();l.JSC$10418_image_.src!=wG.toString()&&l.JSC$10418_image_.src.substr(0,11)==="data:image/"||l.JSC$10418_reject_()};
Qu.prototype.completeTransform_=function(){if(this.JSC$10418_image_.src!=wG.toString()){var l=_.nU(this.dataUrl_),e=this.JSC$10418_image_.naturalHeight?this.JSC$10418_image_.naturalWidth/this.JSC$10418_image_.naturalHeight:null;this.invalidAspectRatio=e>this.JSC$10418_maxAspectRatio_||e<1/this.JSC$10418_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var O=this.JSC$10418_image_.naturalWidth,E=this.JSC$10418_image_.naturalHeight,J=e=0,z=this.JSC$10418_image_.naturalHeight?this.JSC$10418_image_.naturalWidth/
this.JSC$10418_image_.naturalHeight:null;z>this.JSC$10418_maxAspectRatio_?(O=this.JSC$10418_maxAspectRatio_*E,e=(O-this.JSC$10418_image_.naturalWidth)/2,this.cropped=!0):z<1/this.JSC$10418_maxAspectRatio_?(E=this.JSC$10418_maxAspectRatio_*O,J=(E-this.JSC$10418_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)z=O,O=E,E=z,z=e,e=J,J=z;switch(this.angle_){case 90:J-=O;break;case 180:e-=O;J-=E;break;case 270:e-=
E}this.cropped||this.angle_%360!==0?(l=document.createElement("canvas"),l.width=O||1,l.height=E||1,this.JSC$10418_image_.naturalWidth&&this.JSC$10418_image_.naturalHeight&&(O=l.getContext("2d"),O.rotate(Math.PI/180*this.angle_),O.drawImage(this.JSC$10418_image_,e,J,this.JSC$10418_image_.naturalWidth,this.JSC$10418_image_.naturalHeight)),this.transformedData=_.nU(l.toDataURL(this.mime_))):this.transformedData=l}else this.transformedData=l;this.resolve_(this)}};var xU=function(l,e){_.k$.call(this,l);this.value=e};
_.m(xU,_.k$);
var ly=function(l,e,O,E,J,z,M){M=M===void 0?!1:M;_.Kx.call(this);var Z=this;this.JSC$10423_url_=l;this.channelId_=e;this.maxFileSizeMb_=O;this.JSC$10423_maxAspectRatio_=E;this.dropZoneEl_=J;this.rejectInvalidAspectRatio_=M;this.selectButtonEl_=z;this.JSC$10423_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new gt(this.dropZoneEl_);this.selectOverlay_=new iS(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10423_image_=this.transfer_=null;this.handler_=new _.ue(this);_.oQ(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(z,"click",function(){Z.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.m(ly,_.Kx);ly.prototype.disposeInternal=function(){for(var l=this.selectButtonEl_.nextSibling;l&&l.parentNode&&l.tagName=="INPUT";)l.parentNode.removeChild(l),l=this.selectButtonEl_.nextSibling;this.cancel();_.Kx.prototype.disposeInternal.call(this)};
ly.prototype.uploadPromise=function(){if(this.JSC$10423_image_==null)return null;this.uploadPromise_||I1C(this);return this.uploadPromise_};
ly.prototype.cancel=function(){mgk(this);this.JSC$10423_image_=null};
var mgk=function(l){l.transfer_&&l.transfer_.cancel();l.transfer_=null;l.uploadPromise_=null;l.resolve_=null;l.JSC$10423_reject_=null},I1C=function(l){mgk(l);
l.transfer_=_.lLk(l.JSC$10423_url_,{"X-YouTube-ChannelId":l.channelId_},l.JSC$10423_image_);l.handler_.listenOnce(l.transfer_,"l",l.JSC$10425_onUploadComplete_);l.handler_.listenOnce(l.transfer_,"n",l.onUploadError_);l.transfer_.run();l.uploadPromise_=new Promise(function(e,O){l.resolve_=e;l.JSC$10423_reject_=O})};
_.X=ly.prototype;_.X.onChange_=function(l){l.files.length&&(this.JSC$10423_image_=l.files[0],this.JSC$10423_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10423_image_=null,this.dispatchEvent(new xU("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(I1C(this),(new Qu(this.JSC$10423_maxAspectRatio_)).transform(this.JSC$10423_image_).then((0,_.pb)(this.onPreview_,this),(0,_.pb)(this.onPreviewError_,this))))};
_.X.onPreview_=function(l){if(l.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10423_image_=null),this.dispatchEvent(new xU("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;l.cropped&&this.dispatchEvent(new xU("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new xU("yt.comments.ImageUploadOverlay.CHANGE_EVENT",l.transformedData))};
_.X.onPreviewError_=function(){this.JSC$10423_image_=null;this.dispatchEvent(new xU("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.X.onHover_=function(l){l.stopPropagation();l.preventDefault();if(l.type==="dragover")l=!0;else if(l.type==="dragleave")l=!1;else return;this.dispatchEvent(new xU("yt.comments.ImageUploadOverlay.HOVER_EVENT",l))};
_.X.JSC$10425_onUploadComplete_=function(){var l=(0,_.Mv1)(this.transfer_.getResponseText());this.resolve_(l.encryptedBlobId)};
_.X.onUploadError_=function(){this.JSC$10423_reject_();mgk(this)};var y7C=function(l){l=l||{};var e={},O={};this.url=l.url||"";this.args=l.args||_.mm.clone(e);this.assets=l.assets||{};this.attrs=l.attrs||_.mm.clone(O);this.fallback=l.fallback||null;this.fallbackMessage=l.fallbackMessage||null;this.html5=!!l.html5;this.disable=l.disable||{};this.loaded=!!l.loaded;this.messages=l.messages||{}};
y7C.prototype.clone=function(){var l=new y7C,e;for(e in this)if(this.hasOwnProperty(e)){var O=this[e];l[e]=_.Wh(O)=="object"?_.mm.clone(O):O}return l};var pJS,Kgq,jn1,MJ,c71,FgS,f11,RIF,Tni,snq,GZq,Bnq,Pyq,Ugq,Y56,hIq,Lgx,t9k,q5S,vwF,NnC,r7k,Dgq,S5q,Qnk,xg6,ll1,exq,OQq,wLM,E50,Jwi,Xa1,zx1,bQi,MQx,VQ6,ZQR,uJ1,C4x,o5x,$51,W6R,d5x,g5k,iQq,wa1,Aw0,n5H,alq,klS,IlH,m5H,yw1,paF,K6k,e9,j31,HQx,cw6,F6k,flH,RxH,TSx,s3R,GlR,BSS,P4F,U56,YgH,hxx,L6F,tQC,qgx,v5i,gcL,NSF,rwq,D50,Sgq,Q3S,x51,lHk,eyH,Ogq,E8S,Jbq,XuH,zyS,bgi,MFq,VF1,ZgF,uP1,CB1,o8q,$e0,W81,deq,g80,igR;pJS=["account/accounts_list"];Kgq=["acknowledge_channel_tou_strike"];jn1=["notification/add_upcoming_event_reminder"];
_.H6R=["att/get"];MJ=["browse","music/browse","unplugged/browse"];c71=["channel/claim_legacy_youtube_channel"];FgS=["history/clear_search_history"];f11=["history/clear_watch_history"];RIF=["comment/perform_comment_action"];Tni=["comment/get_comment_replies"];snq=["ypc/commerce_action"];GZq=["backstage/create_post"];Bnq=["live/create_broadcast"];Pyq=["channel/create_channel"];Ugq=["comment/create_comment_reply"];Y56=["comment/create_comment"];hIq=["live_chat/create_poll"];Lgx=["playlist/create"];
t9k=["decorate_message"];q5S=["live_chat/delete_message"];vwF=["playlist/delete"];NnC=["video/delete"];r7k=["like/dislike"];Dgq=["dismissal/dismiss"];S5q=["flag/flag"];Qnk=["flow"];xg6=["account/account_menu"];ll1=["playlist/get_add_to_playlist"];exq=["get_answer"];OQq=["channel/get_channel_creation_form"];wLM=["offline/get_download_action"];E50=["kids/get_kids_blocklist_picker"];Jwi=["live_chat/get_item_context_menu"];Xa1=["live_chat/get_live_chat_message_buy_flow"];zx1=["live_chat/get_live_chat_replay"];
bQi=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];MQx=["live_chat/get_live_chat_super_sticker_buy_flow"];VQ6=["notification/get_notification_menu"];ZQR=["playlist/get_settings_editor"];uJ1=["backstage/get_post_video_preview"];C4x=["account/get_profile_card"];o5x=["share/get_share_panel"];$51=["share/get_sharing_provider_data"];W6R=["get_survey"];d5x=["notification/get_unseen_count"];g5k=["get_user_mention_suggestions"];iQq=["get_watch"];wa1=["guide"];
Aw0=["feedback"];n5H=["kids/update_blacklist"];alq=["like/like"];klS=["live_chat/live_chat_action"];IlH=["live_chat/manage_user"];m5H=["video_manager/metadata_update"];yw1=["live_chat/moderate"];paF=["notification/modify_channel_preference"];K6k=["notification/opt_out"];e9=["get_panel","get_posts_by_host_panel"];j31=["player"];HQx=["browse/edit_playlist"];cw6=["notification/record_interactions"];F6k=["reel/reel_item_watch"];flH=["reel/reel_watch_sequence"];RxH=["like/removelike"];TSx=["notification/remove_upcoming_event_reminder"];
s3R=["flag/get_form"];GlR=["miniapp/report_value"];BSS=["navigation/resolve_url"];P4F=["channel/reveal_business_email"];U56=["in_video/search"];YgH=["search","sfv/search","unplugged/search"];hxx=["live_chat/send_message"];L6F=["live_chat/send_live_chat_vote"];tQC=["account/set_setting"];qgx=["submit_caption_correction"];v5i=["subscription/subscribe"];gcL=["get_transcript"];NSF=["resolve_location","unplugged/resolve_location"];rwq=["subscription/unsubscribe"];D50=["backstage/update_post"];Sgq=["channel_edit/update_channel_page_settings"];
Q3S=["comment/update_comment_reply"];x51=["comment/update_comment"];lHk=["comment/update_comments_settings"];eyH=["creator/update_creator_channel"];Ogq=["pdg/update_enablement"];E8S=["updated_metadata"];Jbq=["channel_edit/validate_channel_handle"];XuH=["verify_age"];zyS=["next","unplugged/watch_next"];bgi=["whitelist/edit"];MFq=["ypc/cancel_recurrence"];VF1=["ypc/complete_transaction"];ZgF=["ypc/get_cart"];uP1=["ypc/get_fix_instrument_params"];CB1=["ypc/get_offers"];o8q=["ypc/get_payment_instruments_params"];
$e0=["ypc/handle_transaction"];W81=["ypc/log_payment_server_analytics"];deq=["ypc/pause_subscription"];g80=["ypc/redeem_code"];igR=["ypc/resume_subscription"];var wuq=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,
5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,
11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Ip=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.zJ("yt.msgs_",Ip);var O5=new _.Xa("ACTION_ROUTER_TOKEN");_.E5=function(){this.autonavState_=_.a("kevlar_is_pupi_enabled")?2:inp()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.E5.prototype.getState=function(){return this.autonavState_};
_.E5.prototype.pause=function(l){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=l):this.autonavState_==1&&(this.disabledAutonavPauseReason_=l)};
_.E5.prototype.setState=function(l,e,O){e&&(this.autoplayChangedByUser=!0);e=this.autonavState_===3||l===3;this.autonavState_!=l&&(this.autonavState_=l,l!=3&&_.weM(l==2),l=_.a("kevlar_is_pupi_enabled")?O||e:!0,_.SU.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,l,O))};
_.E5.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.uv(_.E5);var J7=function(){this.hasRun=!1};var X5={},HnT=(X5.auto_search="LATENCY_ACTION_AUTO_SEARCH",X5.ad_to_ad="LATENCY_ACTION_AD_TO_AD",X5.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",X5.app_startup="LATENCY_ACTION_APP_STARTUP",X5.browse="LATENCY_ACTION_BROWSE",X5.cast_splash="LATENCY_ACTION_CAST_SPLASH",X5.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",X5.channels="LATENCY_ACTION_CHANNELS",X5.chips="LATENCY_ACTION_CHIPS",X5.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",X5.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
X5.editor="LATENCY_ACTION_EDITOR",X5.embed="LATENCY_ACTION_EMBED",X5.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",X5.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",X5.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",X5.explore="LATENCY_ACTION_EXPLORE",X5.favorites="LATENCY_ACTION_FAVORITES",X5.home="LATENCY_ACTION_HOME",X5.inboarding="LATENCY_ACTION_INBOARDING",X5.landing="LATENCY_ACTION_LANDING",X5.library="LATENCY_ACTION_LIBRARY",X5.live=
"LATENCY_ACTION_LIVE",X5.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",X5.management="LATENCY_ACTION_MANAGEMENT",X5.mini_app="LATENCY_ACTION_MINI_APP_PLAY",X5.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",X5.onboarding="LATENCY_ACTION_ONBOARDING",X5.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",X5.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",X5.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",X5.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
X5.prebuffer="LATENCY_ACTION_PREBUFFER",X5.prefetch="LATENCY_ACTION_PREFETCH",X5.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",X5.profile_switcher="LATENCY_ACTION_LOGIN",X5.projects="LATENCY_ACTION_PROJECTS",X5.reel_watch="LATENCY_ACTION_REEL_WATCH",X5.results="LATENCY_ACTION_RESULTS",X5.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",X5.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",X5.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",X5.review="LATENCY_ACTION_REVIEW",X5.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",X5.search_ui="LATENCY_ACTION_SEARCH_UI",X5.search_suggest="LATENCY_ACTION_SUGGEST",X5.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",X5.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",X5.seek="LATENCY_ACTION_PLAYER_SEEK",X5.settings="LATENCY_ACTION_SETTINGS",X5.store="LATENCY_ACTION_STORE",X5.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",X5.tenx="LATENCY_ACTION_TENX",X5.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",X5.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
X5.watch="LATENCY_ACTION_WATCH",X5.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",X5["watch,watch7"]="LATENCY_ACTION_WATCH",X5["watch,watch7_html5"]="LATENCY_ACTION_WATCH",X5["watch,watch7ad"]="LATENCY_ACTION_WATCH",X5["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",X5.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",X5.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",X5.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",X5.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",X5.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",X5.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",X5.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",X5.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",X5),q7g=0;var Qsx=function(l,e){jq.call(this,1,arguments);this.timer=e};
_.m(Qsx,jq);var S78=new Vox("aft-recorded",Qsx);var R0A=_.Op.ytLoggingGelSequenceIdObj_||{};_.zJ("ytLoggingGelSequenceIdObj_",R0A);var zZ=_.Op.ytLoggingLatencyUsageStats_||{};_.zJ("ytLoggingLatencyUsageStats_",zZ);var by=function(){this.cleanupJob=0},GG2=function(){by.instance||(by.instance=new by);
return by.instance};
_.X=by.prototype;_.X.baseline=function(l,e,O){Mg(this,"baseline_"+l)||_.Bm("latencyActionBaselined",{clientActionNonce:l},{timestamp:e,cttAuthInfo:O})};
_.X.tick=function(l,e,O,E){Mg(this,"tick_"+l+"_"+e)||_.Bm("latencyActionTicked",{tickName:l,clientActionNonce:e},{timestamp:O,cttAuthInfo:E})};
_.X.info=function(l,e,O){var E=Object.keys(l).join("");Mg(this,"info_"+E+"_"+e)||(l=Object.assign({},l),l.clientActionNonce=e,_.Bm("latencyActionInfo",l,{cttAuthInfo:O}))};
_.X.jspbInfo=function(l,e,O){for(var E="",J=0;J<eO(l).length;J++)eO(l)[J]!==void 0&&(E=J===0?E.concat(""+J):E.concat("_"+J));Mg(this,"info_"+E+"_"+e)||(_.da(l,2,e),e={cttAuthInfo:O},O=_.a("jspb_sparse_encoded_pivot")?new Fx([{}]):new Fx,_.Jz(O,7,EE6,l),TUM("latencyActionInfo",O,e))};
_.X.span=function(l,e,O){var E=Object.keys(l).join("");Mg(this,"span_"+E+"_"+e)||(l.clientActionNonce=e,_.Bm("latencyActionSpan",l,{cttAuthInfo:O}))};
var Mg=function(l,e){zZ[e]=zZ[e]||{count:0};var O=zZ[e];O.count++;O.time=(0,_.VZ)();l.cleanupJob||(l.cleanupJob=_.fZ(_.UD,function(){var E=(0,_.VZ)(),J;for(J in zZ)zZ[J]&&E-zZ[J].time>6E4&&delete zZ[J];l&&(l.cleanupJob=0)},5E3));
return O.count>5?(O.count===6&&Math.random()*1E5<1&&(O=new _.Hk("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||_.hG(O)),!0):!1};var Ab1,n8q;Ab1=window;n8q=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.fz=Ab1.performance||Ab1.mozPerformance||Ab1.msPerformance||Ab1.webkitPerformance||new n8q;var DDx=!1,POL=!1,xDx=(0,_.pb)(_.fz.clearResourceTimings||_.fz.webkitClearResourceTimings||_.fz.mozClearResourceTimings||_.fz.msClearResourceTimings||_.fz.oClearResourceTimings||_.II,_.fz);var aH0=window;aH0.ytcsi&&(aH0.ytcsi.infoGel=_.Pb,aH0.ytcsi.tick=_.Yu);var uaM=function(l){jq.call(this,1,arguments);this.csn=l};
_.m(uaM,jq);var $uu=new Vox("screen-created",uaM),p0g=[],ZIx=yfL,KSW=0,vb=new Map,C_W=new Map,o3g=new Map;var koT=Symbol("vf"),X$=new WeakMap;var VU=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},K4=function(){VU.instance||(VU.instance=new VU);
return VU.instance};
_.X=VU.prototype;_.X.setClient=function(l){this.client=l};
_.X.JSC$10504_newScreen=function(){this.clear();this.csn=_.P9()};
_.X.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.X.reportShown=function(l,e,O){var E=this.JSC$10504_getTrackingParams(l),J=l.visualElement?l.visualElement:E;e=this.shownElements.has(J);var z=this.visibleState.get(J);this.shownElements.add(J);this.visibleState.set(J,!0);l.impressionLog&&!e&&l.impressionLog();if(E||l.visualElement)if(O=kH1(this,l,O))if(J=IHC(this,l),Z1(this,l)||J){E=l.visualElement?l.visualElement:_.cf(E);var M=l.interactionLoggingClientData;J||e?Z1(this,l)&4?z||n3V(this.client,O,E,M):Z1(this,l)&1&&!e&&iIL(this.client,O,E,M):iIL(this.client,
O,E,M)}};
_.X.reportHidden=function(l,e,O){var E=this.JSC$10504_getTrackingParams(l),J=l.visualElement?l.visualElement:E;e=this.hiddenElements.has(J);var z=this.visibleState.get(J);this.hiddenElements.add(J);this.visibleState.set(J,!1);if(z===!1)return!0;if(!E&&!l.visualElement)return!1;O=kH1(this,l,O);if(!O||!Z1(this,l)&&IHC(this,l))return!1;E=l.visualElement?l.visualElement:_.cf(E);Z1(this,l)&8?aKM(this.client,O,E):Z1(this,l)&2&&!e&&(l=this.client,e=q9({cttAuthInfo:UK(O)||void 0},O),E={csn:O,ve:E.getAsJson(),
eventType:2},O==="UNDEFINED_CSN"?rQ("visualElementHidden",e,E):l?sW("visualElementHidden",E,l,e):_.Bm("visualElementHidden",E,e));return!0};
_.X.JSC$10504_getTrackingParams=function(l){var e=this.getData(l),O,E;if(_.a("il_use_view_model_logging_context")&&(e==null?0:(O=e.context)==null?0:(E=O.loggingContext)==null?0:E.loggingDirectives))return e.context.loggingContext.loggingDirectives.trackingParams||"";var J,z;if(e==null?0:(J=e.rendererContext)==null?0:(z=J.loggingContext)==null?0:z.loggingDirectives)return e.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams||
"";var M;return((M=l.veContainer)==null?0:M.trackingParams)?l.veContainer.trackingParams:(e==null?void 0:e.trackingParams)||""};
_.X.JSC$10504_elementShouldLogGesture=function(l,e){l=this.getData(l);return!!((Math.floor(Number(l&&l.loggingDirectives&&l.loggingDirectives.gestures&&l.loggingDirectives.gestures.types||""))||0)&e)};
_.X.JSC$10504_getNearestParentVe=function(l){var e=this.JSC$10504_getTrackingParams(l);return l.visualElement?l.visualElement:e?_.cf(e):l.parentElement?this.JSC$10504_getNearestParentVe(l.parentElement):null};
var kH1=function(l,e,O){var E=_.P9(O);return l.csn===null||E===l.csn||O?E:(l=new _.Hk("VisibilityLogger called before newScreen",{caller:e.tagName,previous_csn:l.csn,current_csn:E}),_.hG(l),null)};
VU.prototype.getData=function(l){var e,O=l.data||((e=l.props)==null?void 0:e.data);if(!O||l.isWebComponentWrapper){var E;O=(E=X$.get(l))==null?void 0:E[koT]}return O};
var IHC=function(l,e){var O;return!((O=l.getData(e))==null||!O.loggingDirectives)},Z1=function(l,e){l=l.getData(e);
return Math.floor(Number(l&&l.loggingDirectives&&l.loggingDirectives.visibility&&l.loggingDirectives.visibility.types||""))||1};var uy;uy=function(){};
_.IX=function(){uy.instance||(uy.instance=new uy);return uy.instance};
uy.prototype.setClient=function(l){_.qz(K4().setClient).bind(K4())(l)};
_.me0=function(){_.IX();_.qz(K4().JSC$10504_newScreen).bind(K4())()};
uy.prototype.clear=function(){_.qz(K4().clear).bind(K4())()};
uy.prototype.reportShown=function(l,e,O){_.qz(K4().reportShown).bind(K4())(l,e,O)};
uy.prototype.reportHidden=function(l,e,O){return _.qz(K4().reportHidden).bind(K4())(l,e,O)};
var Plg=function(l,e){return _.qz(K4().JSC$10504_getTrackingParams).bind(K4())(e)},IxV=function(l,e){return _.qz(K4().JSC$10504_getNearestParentVe).bind(K4())(e)};var C6,ybx;C6=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};
_.yN=function(){C6.instance||(C6.instance=new C6);return C6.instance};
C6.prototype.setClient=function(l){this.client=l};
ybx=function(l,e,O){O=O===void 0?{}:O;_.qz(function(){var E,J,z,M=((E=_.I(e==null?void 0:e.commandMetadata,_.V4))==null?void 0:E.rootVe)||((J=_.I(e==null?void 0:e.commandMetadata,m8R))==null?void 0:(z=J.screenVisualElement)==null?void 0:z.uiType);if(M){E=_.I(e==null?void 0:e.commandMetadata,VJi);if(E==null?0:E.parentTrackingParams){var Z=_.cf(E.parentTrackingParams);if(E.parentCsn)var u=E.parentCsn}else O.clickedVisualElement?Z=O.clickedVisualElement:e.clickTrackingParams&&(Z=_.cf(e.clickTrackingParams));
a:{E=_.I(e,_.ej);J=_.I(e,OgV);if(E){if(J=A68(E,"VIDEO")){E={token:J,videoId:E.videoId};break a}}else if(J&&(E=A68(J,"PLAYLIST"))){E={token:E,playlistId:J.playlistId};break a}E=void 0}O=Object.assign({},{cttAuthInfo:E,parentCsn:u},O);if(_.a("expectation_logging")){var d;O.loggingExpectations=((d=_.I(e==null?void 0:e.commandMetadata,m8R))==null?void 0:d.loggingExpectations)||void 0}_.on(l,M,Z,O)}else _.hG(new _.Hk("Error: Trying to create a new screen without a rootVeType",e))})()};
_.on=function(l,e,O,E){E=E===void 0?{}:E;_.qz(function(){wuq.includes(e)||(_.hG(new _.Hk("createClientScreen() called with a non-page VE",e)),e=83769);E.isHistoryNavigation||(l.forwardHistoryStack=[],l.backHistoryStack.push({rootVe:e,key:E.key||""}));l.graftQueue=[];l.stateChangedQueue=[];E.dataPromises?puH(l,e,O,E):K8x(l,e,O,E)})()};
_.jfx=function(l,e,O){O=O===void 0?0:O;_.qz(function(){e.then(function(E){l.pendingScreenCreation.has(O)&&l.pendingScreenFn&&l.pendingScreenFn();var J=_.P9(O),z=_.B9(O);if(J&&z){var M;(E==null?0:(M=E.response)==null?0:M.trackingParams)&&N9(l.client,J,z,_.cf(E.response.trackingParams));var Z;(E==null?0:(Z=E.playerResponse)==null?0:Z.trackingParams)&&N9(l.client,J,z,_.cf(E.playerResponse.trackingParams))}})})()};
C6.prototype.graftServerVe=function(l,e,O){var E=this;return _.qz(function(){var J=_.cf(l);_.$w(E,J,e,O);return J})()};
_.mQx=function(l,e,O,E){return _.a("enable_client_ve_spec")&&e.clientVeSpec?(e=_.sL(e.clientVeSpec.uiType,void 0,e.clientVeSpec.elementIndex,e.clientVeSpec.clientYoutubeData,void 0,e),_.$w(l,e,O,E)?e:null):e.trackingParams?l.graftServerVe(e.trackingParams,O,E):null};
_.mX=function(l,e,O,E){return _.qz(function(){if(!e.veType)return _.YE(new _.Hk("Error: Trying to graft a client VE without a veType.")),null;if(e.visibilityTypes){var J=e.visibilityTypes.reduce(function(z,M){return z|M});
J={visibility:{types:String(J)}}}J=_.sL(e.veType,e.visualElement,e.elementIndex,e.clientYouTubeData,void 0,J);return _.$w(l,J,O,E)?J:null})()};
_.$w=function(l,e,O,E){E=E===void 0?0:E;return _.qz(function(){if(l.pendingScreenCreation.has(E))return l.graftQueue.push([e,O]),!0;var J=_.P9(E),z=O||_.B9(E);if(J&&z){if(_.a("combine_ve_grafts")){var M=l.cachedVisualElements.get(z.toString());M?M.push(e):(l.cachedRootVisualElements.set(z.toString(),z),l.cachedVisualElements.set(z.toString(),[e]));l.attachTimeout||(l.attachTimeout=_.fZ(_.UD,function(){Hg6(l,J)},1200))}else N9(l.client,J,z,e);
return!0}return!1})()};
_.WJ=function(l,e,O){O=O===void 0?0:O;var E=l.recurringGrafts.get(O)||new Map;if(_.a("smarter_ve_dedupping"))for(var J=Array.from(E.keys()),z=0;z<J.length;z++){var M=void 0,Z=void 0;var u=e;var d=J[z];d.isClientVe()&&u.isClientVe()?(M=u.getAsJson(),Z=d.getAsJson(),u=M.veType!==Z.veType||M.elementIndex!==Z.elementIndex||M.dataElement!==Z.dataElement||u.getLoggingDirectives()!==d.getLoggingDirectives()?!1:!0):u=d.veData.trackingParams!==void 0&&u.veData.trackingParams!==void 0?((Z=u.veData)==null?void 0:
Z.trackingParams)===((M=d.veData)==null?void 0:M.trackingParams):!1;if(u)return}else if(E.has(e))return;E.set(e,void 0);l.recurringGrafts.set(O,E);_.P9(O)==="UNDEFINED_CSN"||l.pendingScreenCreation.has(O)||_.$w(l,e,void 0,O)};
_.dn=function(l,e,O,E){E=_.P9(E===void 0?0:E);if(!E)return!1;IKV(l.client,E,e,O);return!0};
_.gn=function(l,e,O,E){if(!e)return!1;E=_.P9(E===void 0?0:E);if(!E)return!1;IKV(l.client,E,_.cf(e),O);return!0};
_.rg=function(l,e){var O=e.getScreenLayer&&e.getScreenLayer();if(e.visualElement)return _.dn(l,e.visualElement,void 0,O);e=Plg(_.IX(),e);return _.gn(l,e,void 0,O)};
C6.prototype.clickCommand=function(l,e,O){return _.gn(this,l.clickTrackingParams,e,O===void 0?0:O)};
C6.prototype.stateChanged=function(l,e,O){this.visualElementStateChanged(_.cf(l),e,O===void 0?0:O)};
C6.prototype.visualElementStateChanged=function(l,e,O){O=O===void 0?0:O;O===0&&this.pendingScreenCreation.has(O)?this.stateChangedQueue.push([l,e]):this.logStateChanged(l,e,O)};
C6.prototype.logStateChanged=function(l,e,O){O=O===void 0?0:O;var E=_.P9(O);l=l||_.B9(O);return E&&l?(mku(this.client,E,l,e),!0):!1};
var puH=function(l,e,O,E){E=E===void 0?{}:E;l.pendingScreenCreation.add(E.layer||0);l.pendingScreenFn=function(){K8x(l,e,O,E);var M=_.B9(E.layer);if(M){for(var Z=_.b(l.graftQueue),u=Z.next();!u.done;u=Z.next())u=u.value,_.$w(l,u[0],u[1]||M,E.layer);M=_.b(l.stateChangedQueue);for(Z=M.next();!Z.done;Z=M.next())Z=Z.value,l.logStateChanged(Z[0],Z[1])}};
O||_.P9(E.layer)||l.pendingScreenFn();if(E.dataPromises)for(var J=_.b(E.dataPromises),z=J.next();!z.done;z=J.next())_.jfx(l,z.value,E.layer);else _.UW(Error("wf"))},K8x=function(l,e,O,E){E=E===void 0?{}:E;
var J=void 0;E.layer||(E.layer=0);J=E.parentLayer!==void 0?E.parentLayer:E.layer;var z=_.P9(J);J=_.B9(J);var M=O||J,Z;M&&(E.parentCsn!==void 0?Z={clientScreenNonce:E.parentCsn,visualElement:M}:z&&z!=="UNDEFINED_CSN"&&(Z={clientScreenNonce:z,visualElement:M}));var u,d=_.hT("EVENT_ID");z==="UNDEFINED_CSN"&&d&&(u={servletData:{serializedServletEventId:d}});_.a("combine_ve_grafts")&&z&&Hg6(l,z);_.a("no_client_ve_attach_unless_shown")&&M&&z&&g3M(M,z);try{var g=_.$kg(l.client,e,Z,E.csnToClone,E.cttAuthInfo,
u,E.implicitGestureType,void 0,E.loggingExpectations)}catch(k){_.LZ(k,{rootVeType:e,rootVe:J,parentVisualElement:O,currentCsn:z,parentEl:Z,csnToClone:E.csnToClone});_.UW(k);return}_.Yv(g,e,E.layer,E.cttAuthInfo);z&&z!=="UNDEFINED_CSN"&&J&&!kvt(z)&&aKM(l.client,z,J,!0);l.backHistoryStack[l.backHistoryStack.length-1]&&!l.backHistoryStack[l.backHistoryStack.length-1].csn&&(l.backHistoryStack[l.backHistoryStack.length-1].csn=g||"");_.Pb({clientScreenNonce:g});_.me0();var w=_.B9(E.layer);z&&z!=="UNDEFINED_CSN"&&
w&&(_.a("web_mark_root_visible")||_.a("music_web_mark_root_visible"))&&_.Q4(g,w);l.pendingScreenCreation.delete(E.layer||0);l.pendingScreenFn=void 0;var n;(n=l.recurringGrafts.get(E.layer))==null||n.forEach(function(k,y){k?_.$w(l,y,k,E.layer):w&&_.$w(l,y,w,E.layer)});
cb6(l)},cb6=function(l){for(var e=0;e<l.afterNewScreenOneOffJobs.length;e++){var O=l.afterNewScreenOneOffJobs[e];
try{O()}catch(E){_.UW(E)}}for(e=l.afterNewScreenOneOffJobs.length=0;e<l.afterNewScreenRecurringJobs.length;e++){O=l.afterNewScreenRecurringJobs[e];try{O()}catch(E){_.UW(E)}}},Hg6=function(l,e){if(e===void 0)for(var O=n$t(),E=0;E<O.length;E++)O[E]!==void 0&&Hg6(l,O[E]);
else l.cachedVisualElements.forEach(function(J,z){(z=l.cachedRootVisualElements.get(z))&&WSd(l.client,e,z,J)}),l.cachedVisualElements.clear(),l.cachedRootVisualElements.clear(),l.attachTimeout=void 0};var iy=function(l){l=l===void 0?{layer:0}:l;this.hasRun=!1;this.createScreenConfig=l;l={};this.hAY=(l.response=!1,l.playerResponse=!1,l)};
_.m(iy,J7);iy.prototype.validate=function(l){return!(!l.data||!l.data.response&&!l.data.playerResponse)};
iy.prototype.handle=function(l){var e=_.yN(),O=this.createScreenConfig.layer;l.data.response&&l.data.response.trackingParams&&!this.hAY.response&&(e.graftServerVe(l.data.response.trackingParams,void 0,O),this.hAY.response=!0);l.data.playerResponse&&l.data.playerResponse.trackingParams&&!this.hAY.playerResponse&&(e.graftServerVe(l.data.playerResponse.trackingParams,void 0,O),this.hAY.playerResponse=!0)};var wn=function(){this.s0=_.x7();this.w4=[];this.e9q=0};
wn.prototype.processChunk=function(l){if(l){for(var e=_.b(this.w4),O=e.next();!O.done;O=e.next())O=O.value,O.validate(l)&&(O.handle(l),O.hasRun=!0);_.Yu("np"+this.e9q);this.e9q++}};var z4;var zOp,F80,T_q;_.n4=function(l,e,O,E,J,z,M){M=M===void 0?[]:M;this.buildCommandPayload=l;this.navigate=e;this.handleServiceRequest=O;this.sendAction=E;this.JSC$10545_screenManager=J;this.commandResolverMap=z;this.autoLogResolverAllowlist=M;this.pendingCommands=new Set;this.isTracingEnabled=!1;F80(this)};
zOp=function(l,e,O){var E=qbd,J=vQd,z=_.yN(),M=fHS;O=O===void 0?[]:O;_.n4.instance=new _.n4(l,e,E,J,z,M,O)};
F80=function(l){if(!l.isTracingEnabled&&HIx("command")){var e=l.resolveCommand;l.resolveCommand=function(O,E){a:{for(J in O)if(Object.prototype.hasOwnProperty.call(O,J)){var J={commandType:J};break a}J={}}return fKA("command",J,e.bind(this,O,E))};
l.isTracingEnabled=!0}};
T_q=function(l,e,O){if(!l.commandResolverMap)return!1;var E=G7M(e,l.commandResolverMap);return E?((l.autoLogResolverAllowlist.some(function(J){return!!_.I(e,J)})||(O==null?0:O.forceClickLogging))&&RyC(l,e,O),E instanceof Promise?E.then(function(J){J.resolve(e,O)}):E.resolve(e,O),!0):!1};
_.n4.prototype.resolveCommand=function(l,e){var O=this,E=sfq(l);if(T_q(this,l,e))return!0;if(E)return GHR(this,l,e);if(!this.buildCommandPayload)return Rox(l,"Unhandled command by buildCommandPayload"),!1;var J=this.buildCommandPayload(l,e);if(e==null?0:e.commandController)J.commandController=e.commandController;if(J.type===0){if(!this.navigate)return T9p(l,"navigate"),!1;if(!B_q(J.command))return Rox(l,"Page requests need to specify a url"),!1;_.a("logging_avoid_blocking_during_navigation")&&_.SVW().transition("application_navigating");
l=this.navigate(J)||[];tO6(l).then(function(){O.pendingCommands.delete(J.command)});
return!0}if(J.type===1){if(!this.handleServiceRequest)return T9p(l,"handleServiceRequest"),!1;(e==null?0:e.forceClickLogging)&&RyC(this,J.command,e);l=this.handleServiceRequest(J);tO6(l).then(function(){O.pendingCommands.delete(J.command)});
return!0}if(J.type===2){if(!this.sendAction)return T9p(l,"sendAction"),!1;RyC(this,J.command,e);this.sendAction(J);return!0}return!1};
var RyC=function(l,e,O){if((O==null||!O.disableClickTracking)&&l.JSC$10545_screenManager)if(e.clickTrackingParams&&_.a("log_click_with_layer_from_element_in_command_handler")){var E;O=O==null?void 0:(E=O.form)==null?void 0:E.element;l.JSC$10545_screenManager.clickCommand(e,null,O&&O.getScreenLayer&&O.getScreenLayer())}else e.clickTrackingParams?l.JSC$10545_screenManager.clickCommand(e):!_.a("disable_clicked_visual_element_in_command_handler")&&(O==null?0:O.clickedVisualElement)&&_.dn(l.JSC$10545_screenManager,
O.clickedVisualElement)},sfq=function(l){var e=!!_.I(l,_.nz),O;
l=((O=_.I(l,_.ku))==null?void 0:O.signal)==="CLIENT_SIGNAL";return e||l},GHR=function(l,e,O){var E=_.I(e,_.nz);
if(E)var J=(E==null?void 0:E.commands)||[];else{var z;if(((z=_.I(e,_.ku))==null?void 0:z.signal)==="CLIENT_SIGNAL"){var M;J=((M=_.I(e,_.ku))==null?void 0:M.actions)||[]}}if(J){e=_.b(J);for(J=e.next();!J.done;J=e.next()){J=J.value;try{l.resolveCommand(J,O)}catch(Z){Z instanceof Error&&_.UW(Z)}}return!0}Rox(e,"Could not handle the meta command");return!1},B_q=function(l){var e;
return!((e=_.I(l==null?void 0:l.commandMetadata,_.V4))==null||!e.url)};var A7=function(){J7.apply(this,arguments)};
_.m(A7,J7);A7.prototype.validate=function(l){var e,O;return!this.hasRun&&!!((e=l.data.response)==null?0:(O=e.onResponseReceivedEndpoints)==null?0:O.length)};
A7.prototype.handle=function(l){var e=_.n4.instance;l=_.b(l.data.response.onResponseReceivedEndpoints);for(var O=l.next();!O.done;O=l.next())e.resolveCommand(O.value)};var PB1,UeH,Ydx;
PB1=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Ag();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.n6=function(){UeH||(UeH=new PB1);return UeH};
Ydx=function(){var l=_.n6();l.miniplayerButtonActivation=!1;l.userActivation=!1;l.playlistWatchPageActivation=!1;l.productDetailsPageActivation=!1;l.miniAppPageActivation=!1;l.playablesDestPageActivation=!1;l.lockupActivation=!1;l.showMiniplayerCommandActivation=!1;l.playlistSuggestionsShelfActivation=!1;l.mediaSessionPipActivation=!1;l.watchPipActivation=!1;l.watchWhileActivation=!1;l.shortsPipActivation=!1};
_.hyC=function(){var l=_.n6(),e=l.mediaSessionPipActivation,O=l.watchPipActivation,E=l.watchWhileActivation,J=l.playlistWatchPageActivation,z=l.lockupActivation,M=l.showMiniplayerCommandActivation,Z=l.navigatingAwayFromWatchDeletedVideo,u=l.shortsPipActivation,d=l.playlistSuggestionsShelfActivation,g=l.productDetailsPageActivation,w=l.miniAppPageActivation,n=l.playablesDestPageActivation;return!l.miniplayerButtonActivation&&!J&&!d&&!g&&!w&&!n&&!z&&!M&&!e&&!O&&!E&&!u||Z};var KdV;_.an=Mu("FEwhat_to_watch","/",3854);_.jGx=Mu("FEdownloads","/feed/downloads",42352);KdV=Mu("FEmusic_offline","browse/FEmusic_offline",42352);var eT=function(l,e){e=e===void 0?[]:e;var O=O===void 0?[]:O;e=JZT.apply(null,[XW8.apply(null,_.kA(e))].concat(_.kA(O)));this.store=VR8(l,void 0,e)};
eT.prototype.getState=function(){return this.store.getState()};
eT.prototype.dispatch=function(l){return this.store.dispatch(l)};
eT.prototype.subscribe=function(l){return this.store.subscribe(l)};
eT.prototype.replaceReducer=function(l){return this.store.replaceReducer(l)};
eT.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.kw=function(l,e,O){var E=e(l.getState());return l.subscribe(function(){var J=e(l.getState());if(J!==E){var z=E;E=J;O(J,z)}})};var KRd;_.IK=function(l,e,O){return _.oM({type:"REPLACE_ENTITY",payload:{entityPayload:O,entityType:l,key:e}})};
KRd=function(l){return _.oM({type:"REPLACE_ENTITIES",payload:l})};
_.Gn=function(l,e,O,E){return _.oM({type:"UPDATE_ENTITY",payload:{entityPayload:O,entityType:l,key:e,mergeOption:E}})};var SSu=function(l){var e=this;l=l===void 0?[]:l;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;l.forEach(function(O){e.append(O)})};
_.X=SSu.prototype;_.X.getLength=function(){return this.totalLength};
_.X.append=function(l){var e=this.arrays.length===0?!1:(e=this.arrays[this.arrays.length-1])&&e.buffer===l.buffer&&e.byteOffset+e.length===l.byteOffset;e?(e=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(e.buffer,e.byteOffset,e.length+l.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(l);this.totalLength+=l.length};
_.X.split=function(l){for(var e=new SSu,O=new SSu,E=_.b(this.arrays),J=E.next();!J.done;J=E.next())J=J.value,l>=J.length?(e.append(J),l-=J.length):l?(e.append(new Uint8Array(J.buffer,J.byteOffset,l)),O.append(new Uint8Array(J.buffer,J.byteOffset+l,J.length-l)),l=0):O.append(J);return{headView:e,tailView:O}};
_.X.extract=function(l,e){return this.split(l).tailView.split(e).headView};
_.X.isFocused=function(l){return l>=this.arrayPos&&l<this.arrayPos+this.arrays[this.arrayIdx].length};
_.X.focus=function(l){if(!this.isFocused(l))for(l<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=l&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var L8q=function(l,e){l.focus(e);return l.arrays[l.arrayIdx][e-l.arrayPos]};(function(){var l=function(E){return new Uint8Array(E)},e=function(E){for(var J=new Uint8Array(E.length),z=0;z<E.length;z++)J[z]=E[z];
return J},O=new Uint8Array([1]);
return O.length===1&&O[0]===1?l:e})();
var tqL=Array(1024),LSW=window.TextDecoder?new TextDecoder:void 0,v3q=window.TextEncoder?new TextEncoder:void 0;var Dkx=function(l){this.arrayView=l;this.pos=0;this.pendingTagAndType=-1},$p=function(l){var e=L8q(l.arrayView,l.pos);
++l.pos;if(e<128)return e;for(var O=e&127,E=1;e>=128;)e=L8q(l.arrayView,l.pos),++l.pos,E*=128,O+=(e&127)*E;return O},QFp=function(l,e){var O=l.pendingTagAndType;
for(l.pendingTagAndType=-1;l.pos+1<=l.arrayView.totalLength;){O<0&&(O=$p(l));var E=O>>3,J=O&7;if(E===e)return!0;if(E>e){l.pendingTagAndType=O;break}O=-1;switch(J){case 0:$p(l);break;case 1:l.pos+=8;break;case 2:E=$p(l);l.pos+=E;break;case 5:l.pos+=4}}return!1};var l3V=function(){this.pos=0;this.submessagePosStack=[];this.buf=rf2(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},gV=function(l,e){e=l.pos+e;
if(!(l.buf.length>=e)){for(var O=l.buf.length*2;O<e;)O*=2;l.buf=rf2(O,l.buf.subarray(0,l.pos));l.view=new DataView(l.buf.buffer,l.buf.byteOffset,l.buf.byteLength)}},dV=function(l,e){if(e>268435455){gV(l,4);
for(var O=e&1073741823,E=0;E<4;E++)l.view.setUint8(l.pos,O&127|128),O>>=7,l.pos+=1;e=Math.floor(e/268435456)}for(gV(l,4);e>127;)l.view.setUint8(l.pos,e&127|128),e>>=7,l.pos+=1;l.view.setUint8(l.pos,e);l.pos+=1};for(var eLu={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},xkL={},tFq=_.b(Object.entries(eLu)),qdq=tFq.next();!qdq.done;qdq=tFq.next()){var v86=_.b(qdq.value),N_k=v86.next().value,rbi=v86.next().value,DeS=N_k,Sd1=rbi;Sd1&&(xkL[Sd1]=DeS)};var EnV=function(l,e){l=l===void 0?{}:l;switch(e.type){case "ENTITY_LOADED":return e.payload.reduce(function(E,J){var z,M=(z=J.options)==null?void 0:z.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return E;if(!J.entityKey)return _.UW(Error("Af")),E;if(J.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!J.payload)return J=new _.Hk("REPLACE entity mutation is missing a payload",{entityKey:J.entityKey}),_.UW(J),E;var Z=(0,_.mm.getAnyKey)(J.payload);
return XXu(E,Z,J.entityKey,J.payload[Z])}if(J.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{J=J.entityKey;try{var u=_.Wt(J).entityType;Z=XXu(E,u,J);break a}catch(w){if(w instanceof Error){J=new _.Hk("Failed to deserialize entity key",{entityKey:J,originalMessage:w.message});_.UW(J);Z=E;break a}throw w;}Z=void 0}return Z}if(J.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!J.payload)return J=new _.Hk("UPDATE entity mutation is missing a payload",{entityKey:J.entityKey}),_.UW(J),E;Z=(0,_.mm.getAnyKey)(J.payload);
var d,g;return zLx(E,Z,J.entityKey,J.payload[Z],(d=J.fieldMask)==null?void 0:(g=d.mergeOptions)==null?void 0:g.repeatedFieldsMergeOption)}return E},l);
case "REPLACE_ENTITY":var O=e.payload;return XXu(l,O.entityType,O.key,O.entityPayload);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce(function(E,J){var z=e.payload[J];return Object.keys(z).reduce(function(M,Z){return XXu(M,J,Z,z[Z])},E)},l);
case "UPDATE_ENTITY":return O=e.payload,zLx(l,O.entityType,O.key,O.entityPayload,O.mergeOption);default:return l}};var biM;var QfS=!1,In,mg,yU,p6,K6,xe1=function(l){_.y6.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!QfS){var e,O=new Uint8Array(256),E=new Uint8Array(256);var J=1;for(e=0;e<256;e++)O[J]=e,E[e]=J,J^=J<<1^(J>>7&&283);In=new Uint8Array(256);mg=AY(256);yU=AY(256);p6=AY(256);K6=AY(256);for(var z=0;z<256;z++){J=z?E[255^O[z]]:0;J^=J<<1^J<<2^J<<3^J<<4;J=J&255^J>>>8^99;In[z]=J;e=J<<1^(J>>7&&283);var M=e^J;mg[z]=e<<24|J<<16|J<<8|M;yU[z]=M<<24|mg[z]>>>8;p6[z]=J<<24|yU[z]>>>
8;K6[z]=J<<24|p6[z]>>>8}QfS=!0}J=AY(44);for(O=0;O<4;O++)J[O]=l[4*O]<<24|l[4*O+1]<<16|l[4*O+2]<<8|l[4*O+3];for(E=1;O<44;O++)l=J[O-1],O%4||(l=(In[l>>16&255]^E)<<24|In[l>>8&255]<<16|In[l&255]<<8|In[l>>>24],E=E<<1^(E>>7&&283)),J[O]=J[O-4]^l;this.key=J};
_.m(xe1,_.y6);
xe1.prototype.encrypt=function(l){var e=l.length;l=new Uint8Array(l.buffer.slice(l.byteOffset,l.byteOffset+e));for(var O=this.cipherBlock,E=0;E<e&&this.blockOffset<16;)l[E++]^=O[this.blockOffset++];for(var J=e-(e-E)%16;E<J;)lTH(this),l[E++]^=O[0],l[E++]^=O[1],l[E++]^=O[2],l[E++]^=O[3],l[E++]^=O[4],l[E++]^=O[5],l[E++]^=O[6],l[E++]^=O[7],l[E++]^=O[8],l[E++]^=O[9],l[E++]^=O[10],l[E++]^=O[11],l[E++]^=O[12],l[E++]^=O[13],l[E++]^=O[14],l[E++]^=O[15];if(E<e)for(lTH(this),this.blockOffset=0;E<e;)l[E++]^=
O[this.blockOffset++];return l};
var lTH=function(l){for(var e=l.key,O=l.counter[0]^e[0],E=l.counter[1]^e[1],J=l.counter[2]^e[2],z=l.counter[3]^e[3],M=3;M>=0&&!(l.counter[M]=-~l.counter[M]);M--);for(var Z,u,d=4;d<40;)M=mg[O>>>24]^yU[E>>16&255]^p6[J>>8&255]^K6[z&255]^e[d++],Z=mg[E>>>24]^yU[J>>16&255]^p6[z>>8&255]^K6[O&255]^e[d++],u=mg[J>>>24]^yU[z>>16&255]^p6[O>>8&255]^K6[E&255]^e[d++],z=mg[z>>>24]^yU[O>>16&255]^p6[E>>8&255]^K6[J&255]^e[d++],O=M,E=Z,J=u;l=l.cipherBlock;M=e[40];l[0]=In[O>>>24]^M>>>24;l[1]=In[E>>16&255]^M>>16&255;l[2]=
In[J>>8&255]^M>>8&255;l[3]=In[z&255]^M&255;M=e[41];l[4]=In[E>>>24]^M>>>24;l[5]=In[J>>16&255]^M>>16&255;l[6]=In[z>>8&255]^M>>8&255;l[7]=In[O&255]^M&255;M=e[42];l[8]=In[J>>>24]^M>>>24;l[9]=In[z>>16&255]^M>>16&255;l[10]=In[O>>8&255]^M>>8&255;l[11]=In[E&255]^M&255;M=e[43];l[12]=In[z>>>24]^M>>>24;l[13]=In[O>>16&255]^M>>16&255;l[14]=In[E>>8&255]^M>>8&255;l[15]=In[J&255]^M&255};var eM1=!1;(function(){var l=function(E){return new Uint8Array(E)},e=function(E){for(var J=new Uint8Array(E.length),z=0;z<E.length;z++)J[z]=E[z];
return J},O=new Uint8Array([1]);
return O.length===1&&O[0]===1?l:e})();
var j9;var JxS=function(l){a:{if(!eM1&&!JW){if(j9){var e=j9;break a}j9=(e=window.crypto)==null?void 0:e.subtle;var O,E,J;if(((O=j9)==null?0:O.importKey)&&((E=j9)==null?0:E.sign)&&((J=j9)==null?0:J.encrypt)){e=j9;break a}j9=void 0}e=void 0}e&&(this.nativeEncryptor=new Oei(l,e));this.encryptorPolyfill=new ElC(l)};
JxS.prototype.encrypt=function(l,e){var O=this,E;return _.V(function(J){switch(J.nextAddress){case 1:if(!O.nativeEncryptor){J.jumpTo(2);break}_.b1(J,3);return _.C(J,O.nativeEncryptor.encrypt(l,e),5);case 5:return J.return(J.yieldResult);case 3:E=_.u1(J),_.hG(E),eM1=!0,O.nativeEncryptor=void 0;case 2:return J.return(O.encryptorPolyfill.encrypt(l,e))}})};
var Oei=function(l,e){this.JSC$10617_aesKey=l;this.subtleCrypto=e};
Oei.prototype.encrypt=function(l,e){var O=this,E;return _.V(function(J){if(J.nextAddress==1)return _.b1(J,2),_.C(J,X8q(O,l,e),4);if(J.nextAddress!=2)return J.return(J.yieldResult);E=_.u1(J);_.hG(E);eM1=!0;throw E;})};
var X8q=function(l,e,O){var E,J;return _.V(function(z){switch(z.nextAddress){case 1:if(l.cryptoKey){z.jumpTo(2);break}return _.C(z,l.subtleCrypto.importKey("raw",l.JSC$10617_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:l.cryptoKey=z.yieldResult;case 2:return E={name:"AES-CTR",counter:O,length:128},_.C(z,l.subtleCrypto.encrypt(E,l.cryptoKey,e),4);case 4:return J=z.yieldResult,z.return(new Uint8Array(J))}})},ElC=function(l){this.JSC$10620_aesKey=l};
ElC.prototype.encrypt=function(l,e){this.encryptor||(this.encryptor=new xe1(this.JSC$10620_aesKey));for(var O=this.encryptor,E=0;E<4;E++)O.counter[E]=e[E*4]<<24|e[E*4+1]<<16|e[E*4+2]<<8|e[E*4+3];O.blockOffset=16;return this.encryptor.encrypt(l)};var zMq={},Zi2=Mx("yt-idb-pref-storage",{objectStores:(zMq.prefs={addedAtVersion:1},zMq),shared:!1,upgrade:function(l,e){e(1)&&r3(Nx(l,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.HJ=function(l){this.token=l};
_.HJ.getInstance=function(){return _.V(function(l){return l.return(new Promise(function(e){_.bL().then(function(O){O?(_.HJ.instance||(_.HJ.instance=new _.HJ(O)),e(_.HJ.instance)):e(void 0)})}))})};
_.HJ.prototype.get=function(l){var e=this,O,E,J;return _.V(function(z){if(z.nextAddress==1)return _.C(z,usx(e.token),2);if(z.nextAddress!=3)return O=z.yieldResult,_.C(z,O.get("prefs",l),3);E=z.yieldResult;if(!E)return z.return();J=(0,_.VZ)();return E.expirationTimestampMs<=J?z.return():z.return(E.value)})};
_.HJ.prototype.set=function(l,e,O){O=O===void 0?31536E3:O;var E=this,J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return J=(0,_.VZ)(),z={key:l,value:e,expirationTimestampMs:J+O*1E3},_.C(Z,usx(E.token),2);M=Z.yieldResult;return _.C(Z,M.put("prefs",z),0)})};
_.HJ.prototype.remove=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,usx(e.token),2);O=E.yieldResult;return _.C(E,O.delete("prefs",l),0)})};var cJ={},be1=(cJ.INVALID_ENCODER_VERSION="Invalid encoder version",cJ.KEY_CREATION_FAILED="Failed to create encoder key",cJ.UNKNOWN_DECODE_ERROR="Failed to decode PES data",cJ.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",cJ.WRONG_DATA_TYPE="Encoder cannot process the data type",cJ),nO=function(l,e){e=e===void 0?{}:e;_.Hk.call(this,be1[l],Object.assign({},{name:"PESEncoderError",type:l},e));this.type=l;this.level="WARNING";Object.setPrototypeOf(this,nO.prototype)};
_.m(nO,_.Hk);var MkF=function(){},Vkx=function(l,e,O){try{return l.encodeImpl(e,O)}catch(E){WR2(E,onT)}},Zex=function(l,e,O){var E;
return _.V(function(J){if(J.nextAddress==1)return _.b1(J,2),_.C(J,l.decodeAsyncImpl(e,O),4);if(J.nextAddress!=2)return J.return(J.yieldResult);E=_.u1(J);WR2(E,$Bq);_.Cl(J)})};
MkF.prototype.decodeAsyncImpl=function(l,e){return Promise.resolve(this.decodeImpl(l,e))};var F5=function(l,e){this.aesEncryptor=l;this.aesEncryptorAsync=e};
_.m(F5,MkF);F5.prototype.encodeImpl=function(l,e){e=dBu(e);l=(new TextEncoder).encode(JSON.stringify(l));return this.aesEncryptor.encrypt(l,e)};
F5.prototype.decodeImpl=function(l,e){if(!(l instanceof Uint8Array))throw CaM(1);var O=new TextDecoder;e=dBu(e);l=this.aesEncryptor.encrypt(l,e);return JSON.parse(O.decode(l))};
F5.prototype.decodeAsyncImpl=function(l,e){var O=this,E,J,z;return _.V(function(M){if(M.nextAddress==1){if(!(l instanceof Uint8Array))throw CaM(1);E=new TextDecoder;J=dBu(e);return _.C(M,O.aesEncryptorAsync.encrypt(l,J),2)}z=M.yieldResult;return M.return(JSON.parse(E.decode(z)))})};var gnx={accountLinkStatusEntity:sIF,booleanEntity:oMk,buttonEntity:nUx,captionTrack:ZI6,channelHandle:xJS,chipEntity:lnR,commerceAcquisitionClientPayloadEntity:q10,commerceCartListEntity:vUS,contextNoteFeedEntityPayload:z1R,continuationTokenEntity:qk1,downloadQualityPickerEntity:RG0,downloadsPageRefreshTokenEntity:saC,downloadsPageViewConfigurationEntity:e0q,downloadStatusEntity:TEq,dismissState:efC,sfvAudioItemCurrentlyPlayingEntity:hoS,emojiFountainDataEntity:ip1,emojiCustomizationSetEntity:gU1,
fakeChannel:dCq,fakePlaylist:gMq,fakePlaylistEntryCollection:i36,fakeVideo:ArS,fakeVideoDescription:nMx,featuredProductsEntity:nNq,flowStateEntity:F4S,iconBadgeEntity:NtF,interstitialInteractionStateEntity:lgS,likeButtonAnimationEntity:OnR,liveChatPollStateEntity:M1S,liveViewerLeaderboardChatEntryPointStateEntity:IKq,liveViewerLeaderboardPointsEntity:mkk,liveReactionsDataEntity:wCC,logoEntity:QI1,macroMarkerEntity:ENq,mainDownloadsLibraryEntity:Gv0,mainDownloadsListEntity:BES,mainPlaylistDownloadStateEntity:U86,
mainPlaylistEntity:v$k,mainPlaylistVideoEntity:NE1,mainVideoDownloadStateEntity:Yk1,mainVideoEntity:Qaq,markersEngagementPanelSyncEntity:J61,markersVisibilityOverrideEntity:XeH,musicAlbumReleaseDetail:F26,musicAlbumReleaseDownloadMetadataEntity:pe0,musicAlbumRelease:c66,musicAlbumReleaseUserDetail:fqx,musicArtistDetail:TU0,musicArtist:R0i,musicArtistUserDetail:ssq,musicDownloadsLibraryEntity:K20,musicLibraryEdit:GGq,musicLibraryStatusEntity:BU1,musicPlaylist:POR,musicPlaylistDownloadMetadataEntity:js6,
musicShare:Y7i,musicTrackDetail:L2F,musicTrackDownloadMetadataEntity:Hn1,musicTrack:h06,musicTrackUserDetail:tVF,offlineOrchestrationActionWrapperEntity:ua0,offlineVideoPolicy:C_S,offlineVideoStreams:o3S,offlineabilityEntity:hGx,orchestrationWebSamplingEntity:LhR,pageHeaderEntity:VK1,pdpStateEntity:rK1,pinnedProductEntity:aqq,playbackData:$kS,playerStateEntity:z0i,quantityIncrementerEntity:DSi,refresh:WSq,saveToPlaylistListEntity:Ziq,selectedChipIndexEntityPayload:bnq,settingEntity:R2x,stringEntity:$CC,
suggestedFeedbackChipStateEntity:MVk,transfer:dkR,trendingOfferEntity:kGk,videoDownloadContextEntity:g30,videoOverviewAsyncDataEntity:A7q,videoPlaybackPositionEntity:Inq,votingEntity:oUH,ytMainChannelEntity:x8H,youchatPendingResponseEntity:VVk,ytMainDownloadedVideoEntity:t10,ytMainVideoEntity:lqR};var uNS,olx,yy,mBg,yHT,dOH,iei,glk,WYk;uNS=function(l,e){this.JSC$10639_wrapped=l;this.JSC$10639_encoderRegistry=e;this.changedKeys={}};
olx=function(l,e){a:{l=C8S(l.JSC$10639_encoderRegistry,e.version);try{var O=l.decodeImpl(e.data,e.key);break a}catch(E){WR2(E,$Bq)}O=void 0}return O};
_.$O6=function(l,e,O){return l.JSC$10639_wrapped.objectStore("EntityStore").get(e).then(function(E){if(E){if(O&&E.entityType!==O)throw Error("Bf");return olx(l,E)}})};
yy=function(l,e,O){return O?(O=O.map(function(E){return _.$O6(l,E,e)}),qG.all(O)):l.JSC$10639_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(e)).then(function(E){return E.map(function(J){return olx(l,J)})})};
_.I3T=function(l,e,O){var E=Oi2(e),J=C8S(l.JSC$10639_encoderRegistry,1),z=Object.assign({},e);return l.JSC$10639_wrapped.objectStore("EntityStore").get(E).then(function(M){if(M){if(M.entityType!==O)throw Error("Bf");z.entityMetadata||(M=olx(l,M),z.entityMetadata=M.entityMetadata)}}).then(function(){var M={key:E,
entityType:O,data:Vkx(J,z,E),version:1};return qG.all([l.JSC$10639_wrapped.objectStore("EntityStore").put(M),WYk(l,z,O)])}).then(function(){dOH(l,E,O);
return E})};
mBg=function(l,e){var O=_.Wt(e).entityType;return qG.all([l.JSC$10639_wrapped.objectStore("EntityStore").delete(e),glk(l,e)]).then(function(){dOH(l,e,O)})};
yHT=function(l,e,O,E){var J=C8S(l.JSC$10639_encoderRegistry,1);return _.$O6(l,e,E).then(function(z){if(z){z=hog(z,O);var M={key:e,entityType:E,data:Vkx(J,z,e),version:1};return qG.all([l.JSC$10639_wrapped.objectStore("EntityStore").put(M),WYk(l,z,E)])}}).then(function(){dOH(l,e,E);
return e})};
dOH=function(l,e,O){var E=l.changedKeys[O];E||(E=new Set,l.changedKeys[O]=E);E.add(e)};
iei=function(l,e,O){var E=Oi2(e);O=ii2(O);if(!O)return qG.resolve([]);O=new O(e);l=l.JSC$10639_wrapped.objectStore("EntityAssociationStore");e=[];O=_.b(O.getAssociations());for(var J=O.next();!J.done;J=O.next())e.push(l.put({parentEntityKey:E,childEntityKey:J.value}));return qG.all(e).then(function(z){return z.map(function(M){return M[1]})})};
glk=function(l,e){return l.JSC$10639_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(e))};
WYk=function(l,e,O){var E=Oi2(e);return glk(l,E).then(function(){return iei(l,e,O)})};var w8q=function(){};
_.m(w8q,MkF);w8q.prototype.encodeImpl=function(l){return l};
w8q.prototype.decodeImpl=function(l){if(l instanceof Uint8Array)throw CaM(0);return l};var nnW=function(){this.cacheMap={};this.cacheMap[0]=new w8q;if(!_.a("aes_pes_encoder_killswitch")){var l=this.cacheMap;try{var e=_.Kv();var O=dBu(e);var E=new F5(new ElC(O),new JxS(O))}catch(J){throw l=J instanceof Error?new nO("KEY_CREATION_FAILED",{originalMessage:J.message}):new nO("KEY_CREATION_FAILED"),_.UW(l),l;}l[1]=E}},C8S=function(l,e){e=e===void 0?0:e;
l=l.cacheMap[e];if(!l)throw e=new nO("INVALID_ENCODER_VERSION",{encoderVersion:e}),_.UW(e),e;return l};var kp=function(l,e){_.y6.call(this);this.token=l;this.JSC$10653_encoderRegistry=e;this.observers=[];l=new _.Op.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Kv());l.onmessage=this.handleMessage.bind(this);this.channel=l};
_.m(kp,_.y6);_.mc=function(l,e,O){var E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return _.C(Z,VJA(l.token),2);if(Z.nextAddress!=3)return E=Z.yieldResult,_.C(Z,_.et(E,["EntityStore","EntityAssociationStore"],e,function(u){J=new uNS(u,l.JSC$10653_encoderRegistry);return O(J)}),3);
z=Z.yieldResult;J&&(M=J.changedKeys,Object.keys(M).length>0&&(l.channel.postMessage(M),Ax0(l,M)));return Z.return(z)})};
kp.prototype.observe=function(l){var e=this;this.observers.push(l);return function(){var O=e.observers.indexOf(l);O>=0&&e.observers.splice(O,1)}};
var cSV=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,_.mc(l,{mode:"readonly",enableRetries:!0},function(E){return E.JSC$10639_wrapped.objectStore("EntityStore").getAll()}),2);
e=O.yieldResult;return O.return(Promise.all(e.filter(function(E){return!!E}).map(function(E){var J,z;
return _.V(function(M){if(M.nextAddress==1){J=E.key;z=E.entityType;var Z=Zex(C8S(l.JSC$10653_encoderRegistry,E.version),E.data,E.key);return _.C(M,Z,2)}return M.return({key:J,entityType:z,data:M.yieldResult})})})))})};
kp.prototype.handleMessage=function(l){Ax0(this,l.data)};
var Ax0=function(l,e){l=_.b(l.observers);for(var O=l.next();!O.done;O=l.next())O=O.value,O(e)};
kp.prototype.disposeInternal=function(){this.channel.close()};
var wXt;var f6,aTq,lnL,aY2;f6={};_.nlS=(f6.mainVideoEntity="mainVideoEntityActionMetadata",f6.mainPlaylistEntity="mainPlaylistEntityActionMetadata",f6.musicTrack="musicTrackEntityActionMetadata",f6.musicPlaylist="musicPlaylistEntityActionMetadata",f6);aTq=new _.Xa("DOWNLOADS_ENTITY_TYPE_MAP");lnL=_.iH("","downloadsPageViewConfigurationEntity");aY2=_.iH("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.EUx=_.iH("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.iH("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.iH("SMART_DOWNLOADS_ENABLED","settingEntity");_.iH("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var cH8=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var BI8=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var Lox={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Rn,Y1M,Z0x,c2M;Rn=window;_.qu=Rn.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.xSM=Rn.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Qy;Y1M=Rn.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||TK;Z0x=Rn.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||VTq;_.kEC=Rn.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.yYS;c2M=Rn.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||jMk;Dr({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 O62=hfd(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(l){return l}}}),twt=hfd(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(l){return l}}}),vUW=new Map;var J7A=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Q6x;var ITR=function(l){return _.oM({type:"SET_EPHEMERAL_ACTION",payload:l})};var mOR={ephemeralAction:null};var yxk={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var y7q={sharedUi:function(l,e){l=l===void 0?yxk:l;switch(e.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},l,{animatedThumbnailEnabled:e.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},l,{inlinePreviewEnabled:e.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},l,{currentPageType:e.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},l,{currentPageSubType:e.payload});default:return l}},
a11y:n_({ephemeralAction:function(l,e){l=l===void 0?mOR.ephemeralAction:l;switch(e.type){case "SET_EPHEMERAL_ACTION":return e.payload;default:return l}}})};var Z68={playlistId:"",inviteLinkURL:""};var p8x={};var i6u=n_({continuationCommand:function(l,e){l=l===void 0?p8x:l;switch(e.type){case "SET_CONTINUATION_COMMAND":return e.payload.continuationCommand;default:return l}}});var Cyx={currentFormId:"",commandsMap:{}};var wJ2=n_({isLeaderTab:function(l,e){l=l===void 0?!0:l;switch(e.type){case "SET_IS_LEADER_TAB":var O,E;return(E=e==null?void 0:(O=e.payload)==null?void 0:O.isLeaderTab)!=null?E:l;default:return l}}});var KYq=function(l){return _.oM({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:l}})};var mgu=n_({isDesktopSmallWidth:function(l,e){switch(e.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return e.payload.isDesktopSmallWidth;default:return l===void 0?!1:l}},
isShortsActive:function(l,e){switch(e.type){case "SET_IS_SHORTS_ACTIVE":return e.payload.isShortsActive;default:return l===void 0?!1:l}},
isWatchWhileMode:function(l,e){switch(e.type){case "SET_IS_WATCH_WHILE_MODE":return e.payload.isWatchWhileMode;default:return l===void 0?!1:l}},
playerState:function(l,e){switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return l===void 0?-1:l}},
isFullscreen:function(l,e){switch(e.type){case "SET_IS_FULLSCREEN":return e.payload.isFullscreen;default:return l===void 0?!1:l}},
isSmallScreenSqueezeback:function(l,e){switch(e.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return e.payload.isSmallScreenSqueezeback;default:return l===void 0?!1:l}},
isShortsPipActive:function(l,e){switch(e.type){case "SET_IS_SHORTS_PIP_ACTIVE":return e.payload.isShortsPipActive;default:return l===void 0?!1:l}},
isPlaybackStarted:function(l,e){switch(e.type){case "SET_IS_PLAYBACK_STARTED":return e.payload.isPlaybackStarted;default:return l===void 0?!1:l}}});var Kg2=function(){return function(l){return function(e){var O=l(e);_.Wb(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[e],!0);return O}}};var jkk,HAL;jkk=new _.d8;_.CT=new _.Xa("WATCH_PLAYER_PROMISE_TOKEN");_.He0=new _.d8;_.cxF=new _.Xa("SHORTS_PLAYER_PROMISE_TOKEN");HAL=new _.Xa("");var jnT=function(){return function(l){return function(e){e.type==="ENTITY_LOADED"&&_.V2().resolve(_.CT).then(function(O){var E;(E=O.dispatchReduxAction)==null||E.call(O,e)});
return l(e)}}};var FYq={};var A72=n_({additionalContext:function(l,e){switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var O;return(O=e.payload)!=null?O:"";default:return l===void 0?"":l}},
impersonatedChannelUrl:function(l,e){switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var O;return(O=e.payload)!=null?O:"";default:return l===void 0?"":l}},
selectedVideoIds:function(l,e){l=l===void 0?FYq:l;switch(e.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var O={};return Object.assign({},l,(O[e.payload]=!0,O));case "VIDEO_UNSELECTED":return e=e.payload,l=Object.assign({},l),delete l[e],l;default:return l}}});var nwT=n_({parentClickTrackingParams:function(l,e){switch(e.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return e.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return l===void 0?"":l}}});var fTR=function(l){return _.oM({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:l})};var RMS={};var a1M=n_({stepStates:function(l,e){l=l===void 0?RMS:l;switch(e.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var O=l,E=e.payload,J,z,M;l={};e={selectionStates:Object.assign({},(M=(J=O[E.stepId])==null?void 0:J.selectionStates)!=null?M:{},(l[E.token]={isSelected:E.isSelected},l)),userQuery:(z=O[E.stepId])==null?void 0:z.userQuery};J={};return Object.assign({},O,(J[E.stepId]=e,J));case "TALK_TO_RECS_UPDATE_USER_QUERY":return J=l,z=e.payload,M={selectionStates:Object.assign({},
(E=(O=J[z.stepId])==null?void 0:O.selectionStates)!=null?E:{}),userQuery:{userQuery:z.userQuery,token:z.userQueryToken}},O={},Object.assign({},J,(O[z.stepId]=M,O));default:return l}}});var TuS,skx,BuH;TuS=function(l){return _.oM({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:l})};
skx=function(l){return _.oM({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:l})};
_.Bn=function(l){return _.oM({type:"SET_CURRENT_PAGE_TYPE",payload:l})};
_.GEq=function(l){return _.oM({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:l})};
BuH=function(l){return _.oM({type:"SET_CHIP_BAR_IS_STICKY",payload:l})};var $gd={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"};_.P8x=function(l){return _.oM({type:"SET_PLAYER_STATE",payload:{playerState:l}})};var UOC=[],YY1={width:0,height:0};var kZ8=n_({isTheaterMode:function(l,e){l=l===void 0?_.a("kevlar_disable_theater_mode_persistence")?!1:_.LH("START_IN_THEATER_MODE"):l;switch(e.type){case "SET_IS_THEATER_MODE":return e.payload.isTheaterMode;default:return l}},
isWatchActive:function(l,e){switch(e.type){case "SET_IS_WATCH_ACTIVE":return e.payload.isWatchActive;default:return l===void 0?!1:l}},
isLearningJourneyActive:function(l,e){switch(e.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return e.payload.isLearningJourneyActive;default:return l===void 0?!1:l}},
isWatchFullscreen:function(l,e){switch(e.type){case "SET_IS_WATCH_FULLSCREEN":return e.payload.isWatchFullscreen;default:return l===void 0?!1:l}},
isWatchNarrowWidth:function(l,e){switch(e.type){case "SET_IS_WATCH_NARROW_WIDTH":return e.payload.isWatchNarrowWidth;default:return l===void 0?!1:l}},
isWatchRetroMode:function(l,e){switch(e.type){case "SET_IS_WATCH_RETRO_MODE":return e.payload.isWatchRetroMode;default:return l===void 0?!1:l}},
isLiveChatCollapsed:function(l,e){switch(e.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return e.payload.isLiveChatCollapsed;default:return l===void 0?!1:l}},
openEngagementPanels:function(l,e){l=l===void 0?UOC:l;var O=[].concat(_.kA(l));switch(e.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return O.push(e.payload.panelToAdd),O;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return O.splice(O.indexOf(e.payload.panelToRemove),1),O;default:return l}},
playerState:function(l,e){switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return l===void 0?-1:l}},
watchScrollTop:function(l,e){switch(e.type){case "SET_WATCH_SCROLL_TOP":return e.payload.watchScrollTop;default:return l===void 0?0:l}},
watchWindowSize:function(l,e){l=l===void 0?YY1:l;switch(e.type){case "SET_WATCH_WINDOW_SIZE":return e.payload.watchWindowSize;default:return l}}});var hMi={feedbackTokens:[]};var I1q=n_({surveyFeedbackData:function(l,e){l=l===void 0?hMi:l;switch(e.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return e.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},l,e.payload);default:return l}}});var dgp={};var c7T=void 0;_.a("web_enable_redux_store_on_demand")||(c7T=H6L());var LYq=function(l,e,O){var E=this;this.listId=l;this.JSC$10787_updateCallback=e;this.isOfflineVideoCallback=O;_.Om().subscribe(function(){E.handleUpdate()})};
LYq.prototype.getPlaylistData=function(){var l=_.Om().getState().entities;if(this.listId&&this.listId!=="PPSV"){var e=Fo2(l,this.listId,!0),O=_.iH(this.listId,"mainPlaylistEntity"),E,J;l=l==null?void 0:(E=l.mainPlaylistEntity)==null?void 0:(J=E[O])==null?void 0:J.title;return Fgg(e,l,this.listId)}e=_.Pa2(bpt(l));l=_.Pa2(_.RM(l));return Fgg(e.concat(l))};
LYq.prototype.getPlaylistId=function(){return this.listId};
LYq.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10787_updateCallback(this.listId,this.getPlaylistData(),{})};var TZ=function(l,e,O,E){E=E===void 0?[]:E;this.JSC$10790_playlistNetworkManager=l;this.listId=e;this.JSC$10790_updateCallback=O;this.videoIds=E;this.pendingUpdates=[];this.currentIndex=0};
TZ.prototype.JSC$10790_setCurrentIndex=function(l){this.currentIndex=l};
TZ.prototype.setListId=function(l){this.listId=l};
var tkS=function(l,e){l.currentCreateRequest&&l.currentCreateRequest.cancel(e);l.currentUpdateRequest&&l.currentUpdateRequest.cancel(e);l.currentRefreshRequest&&l.currentRefreshRequest.cancel(e)};
TZ.prototype.delete=function(){tkS(this,"PROXY DELETED")};
TZ.prototype.addVideos=function(l,e,O){var E=this;O!==void 0?this.videoIds.splice.apply(this.videoIds,[O,0].concat(_.kA(l))):this.videoIds.push.apply(this.videoIds,_.kA(l));this.listId||this.currentCreateRequest?(l.forEach(function(J,z){J={addedVideoId:J,action:"ACTION_ADD_VIDEO"};O&&(J.addedVideoPosition=O+z);E.pendingUpdates.push(J)}),s5(this)):qY1(this,e.onCreateListCommand)};
var vl1=function(l,e,O,E,J){kgg(l.videoIds,e,O);e>l.currentIndex&&O<=l.currentIndex?l.JSC$10790_setCurrentIndex(l.currentIndex+1):e===l.currentIndex?l.JSC$10790_setCurrentIndex(O):e<l.currentIndex&&O>=l.currentIndex&&l.JSC$10790_setCurrentIndex(l.currentIndex-1);l.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:E,movedSetVideoIdPredecessor:J});s5(l)},qY1=function(l,e){tkS(l,"OBSOLETE");
l.currentCreateRequest=Nuq(l.JSC$10790_playlistNetworkManager,e,l.videoIds);_.FV(l.currentCreateRequest,function(){l.currentCreateRequest=void 0}).then(function(O){l.setListId(O.playlistId);
l.pendingUpdates.length>0?s5(l):rxq(l)})},s5=function(l){if(l.pendingUpdates.length!==0&&(l.currentRefreshRequest&&l.currentRefreshRequest.cancel("OBSOLETE"),!l.currentUpdateRequest&&!l.currentCreateRequest)){var e=l.pendingUpdates.splice(0,l.pendingUpdates.length);
l.currentUpdateRequest=l.JSC$10790_playlistNetworkManager.updatePlaylist(l.listId,e);_.FV(l.currentUpdateRequest,function(){l.currentUpdateRequest=void 0}).then(function(){l.pendingUpdates.length>0?s5(l):rxq(l)}).thenCatch(function(){l.pendingUpdates.unshift.apply(l.pendingUpdates,_.kA(e))})}},rxq=function(l){l.currentRefreshRequest=_.DOi(l.JSC$10790_playlistNetworkManager,l.listId,l.currentIndex,l.videoIds[l.currentIndex]);
_.FV(l.currentRefreshRequest,function(){l.currentRefreshRequest=void 0}).then(function(e){l.JSC$10790_updateCallback(e.playlistId,e.playlistPanelRenderer,e.autoplayRenderer)})};
TZ.prototype.size=function(){return this.videoIds.length};var SYx=function(l,e,O,E){E=E===void 0?[]:E;TZ.call(this,l,e,O,E);this.JSC$10790_playlistNetworkManager=l;this.listId=e;this.JSC$10790_updateCallback=O;this.videoIds=E};
_.m(SYx,TZ);_.GZ=function(l,e,O,E,J,z,M){J=J===void 0?[]:J;M=M===void 0?Cx:M;TZ.call(this,l,e,O,J);this.JSC$10790_playlistNetworkManager=l;this.listId=e;this.JSC$10790_updateCallback=O;this.onAuthChange=E;this.videoIds=J;this.storage=z;this.cookieReader=M;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.WF(_.UD,this.checkLoggedInStatusChange.bind(this),1E3)};
_.m(_.GZ,TZ);_.X=_.GZ.prototype;_.X.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.WF(_.UD,this.checkLoggedInStatusChange.bind(this),1E3)};
_.X.JSC$10790_setCurrentIndex=function(l){TZ.prototype.JSC$10790_setCurrentIndex.call(this,l);this.store()};
_.X.delete=function(){_.UD.cancelJob(this.queueSapisIdJob);TZ.prototype.delete.call(this)};
_.X.setListId=function(l){TZ.prototype.setListId.call(this,l);this.store()};
_.X.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var QkS=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],xOC=["playerResponse","videoDetails"],l2H=["response","currentVideoEndpoint","watchEndpoint","videoId"],em1=["response","currentVideoEndpoint","watchEndpoint","playlistId"],OCF=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],EGq=["response","contents","twoColumnWatchNextResults","playlist","playlist"],JLx=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
X5k=["response","contents","twoColumnWatchNextResults"];var BJ={},GZ2=(BJ.WEB_UNPLUGGED="^unplugged/",BJ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",BJ.WEB_UNPLUGGED_OPS="^unplugged/",BJ.WEB_UNPLUGGED_PUBLIC="^unplugged/",BJ.WEB_CREATOR="^creator/",BJ.WEB_KIDS="^kids/",BJ.WEB_EXPERIMENTS="^experiments/",BJ.WEB_MUSIC="^music/",BJ.WEB_REMIX="^music/",BJ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",BJ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",BJ);var Abx,Nuq;Abx=function(l,e){this.networkManager=l;this.innertubeTransportService=e};
Nuq=function(l,e,O){if(!_.I(e,_.tK))return _.Tr(Error("Ff"));_.I(e,_.tK).videoIds=O;O={create_playlist_title:_.ml("QUEUE",void 0,"Queue")};return TnA(_.Qh(l.innertubeTransportService,e,O),f1x)};
_.DOi=function(l,e,O,E){e={videoId:E,playlistId:e,playlistIndex:O};O=_.Em(zyS);return TnA(_.PJ(l.innertubeTransportService,e,O),snd)};
Abx.prototype.updatePlaylist=function(l,e){return TnA(_.Qh(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:l,actions:e}}),RIt)};var zm1=function(l){this.storage=l},bCi;
zm1.prototype.store=function(l,e){e=e===void 0?0:e;if(this.storage&&l.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",l),this.storage.set("TLPQindex",String(e)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(O){}};
zm1.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
zm1.prototype.getPlaylistId=function(){if(!this.storage)return null;var l=null;try{l=this.storage.get("TLPQplaylist")}catch(e){}return l};var Y5x=["navigationEndpoint","watchEndpoint","videoId"],UgV=["nextButtonVideo","watchEndpoint","videoId"];_.Pc=new _.Xa("NETWORK_TOKEN");_.XZ=new _.Xa("PAGE_TOKEN");_.U5=new _.Xa("PLAYLIST_TOKEN");var Mfi;Mfi=new _.Xa("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Um=new _.Xa("INNERTUBE_TRANSPORT_TOKEN");var VfC,Yw,uKC,CF6,$fC,Wnx;VfC=new Set(["ci","cr","carml"]);Yw=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10837_parkedJobs=new Map;this.parkedProcessors=new Map};
_.h7=function(){Yw.instance||(Yw.instance=new Yw);return Yw.instance};
Yw.prototype.onAny=function(l){return _.ZCx(this,l,2)};
Yw.prototype.parkOrScheduleJob=function(l,e,O,E,J){_.L6(this,O)?_.Gi().addJob(l,e,E):(J&&(l=uKC(l),CF6(this,l,e,O,J)),J=this.JSC$10837_parkedJobs.get(O),J||(this.JSC$10837_parkedJobs.set(O,[]),J=this.JSC$10837_parkedJobs.get(O)),J.push({job:l,priority:e,delay:E}))};
Yw.prototype.addListener=function(l,e,O){O&&(e=uKC(e),CF6(this,e,0,l,O));O=this.parkedProcessors.get(l);O||(this.parkedProcessors.set(l,[]),O=this.parkedProcessors.get(l));O.push(e)};
Yw.prototype.processSignal=function(l){if(!_.L6(this,l)){this.inProgressSignals.add(l);var e=this.JSC$10837_parkedJobs.get(l);if(e){e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,_.Gi().addJob(O.job,O.priority,O.delay);this.JSC$10837_parkedJobs.delete(l)}if(e=this.parkedProcessors.get(l)){e=_.b(e);for(O=e.next();!O.done;O=e.next())O=O.value,O();this.parkedProcessors.delete(l)}this.signals.push(l);this.inProgressSignals.delete(l)}};
_.L6=function(l,e){return VfC.has(e)||_.LH("IS_HOMEPAGE_COLD")||_.LH("IS_RESULTS_PAGE_COLD")||_.LH("IS_WATCH_PAGE_COLD")?l.signals.indexOf(e)>=0:!0};
uKC=function(l){var e=!1;return function(){e||(e=!0,l())}};
CF6=function(l,e,O,E,J){if(oGx.has(E))_.Gi().addJob(e,O,J);else{var z=l.compoundSignals.get(E);z&&_.Gi().addJob(function(){_.L6(l,E)||(z.isTimeoutConditionSatisfied?_.Gi().addJob(e,O):z.timeoutConditionObservers.push(function(){_.Gi().addJob(e,O)}))},O,J)}};
_.ZCx=function(l,e,O){if(e.length>1){var E=[],J=Object.create(null);e=_.b(e);for(var z=e.next();!z.done;z=e.next())z=z.value,J[z]||(E.push(z),J[z]=!0);e=E}if(e.length===1)return e[0];z=e;E="";J=O===2?"|":"&";z.sort();z=_.b(z);for(var M=z.next();!M.done;M=z.next())E+=M.value+J;if(!l.compoundSignals.get(E)){J=0;z=[];M=_.b(e);for(var Z=M.next();!Z.done;Z=M.next())Z=Z.value,J++,_.L6(l,Z)||z.push(Z);(O=O===2)&&J>z.length||!O&&!z.length?l.signals.push(E):$fC(l,E,O,e,z)}return E};
$fC=function(l,e,O,E,J){var z=J.length,M=function(){O||--z===0?l.processSignal(e):Wnx(l,e)};
J=_.b(J);for(var Z=J.next();!Z.done;Z=J.next())l.addListener(Z.value,M);l.compoundSignals.set(e,{signals:E,isOnAny:O,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Wnx(l,e)};
Wnx=function(l,e){if(!_.L6(l,e)){var O=l.compoundSignals.get(e);if(O&&!O.isTimeoutConditionSatisfied){for(var E=!1,J=0,z=0,M=_.b(O.signals),Z=M.next();!Z.done;Z=M.next()){var u=Z.value;Z=!_.L6(l,u);oGx.has(u)?E=!0:(u=l.compoundSignals.get(u))?Z&&!u.isTimeoutConditionSatisfied&&(z++,O.isInitialized||u.timeoutConditionObservers.push(function(){Wnx(l,e)})):Z&&J++}O.isInitialized=!0;
O.isOnAny?E&&(O.isTimeoutConditionSatisfied=!0):J===0&&z===0&&(O.isTimeoutConditionSatisfied=!0);if(O.isTimeoutConditionSatisfied)for(O=_.b(O.timeoutConditionObservers),E=O.next();!E.done;E=O.next())E=E.value,E()}}};
Yw.prototype.processSignal=Yw.prototype.processSignal;Yw.prototype.parkOrScheduleJob=Yw.prototype.parkOrScheduleJob;Yw.prototype.onAny=Yw.prototype.onAny;_.zJ("ytsignals.getInstance",_.h7);Yw.prototype.onAny=Yw.prototype.onAny;Yw.prototype.parkOrScheduleJob=Yw.prototype.parkOrScheduleJob;Yw.prototype.processSignal=Yw.prototype.processSignal;var oGx=new Set(["eop","eocs","dl","pcl"]);_.NJ=new _.Xa("MINIPLAYER_SERVICE");var t7,dfq,gG1;t7=function(l,e,O){var E=_.SU.getInstance();if(!bCi){var J=new ovL;var z=void 0,M=_.hT("ID_TOKEN");M&&J.isAvailable()&&(z=new Ry(J,"yt-queue"+M));bCi=new zm1(z)}J=bCi;z=_.h7();this.JSC$10844_actionRouter=E;this.pageManager=l;this.playlistManager=e;this.JSC$10844_playlistNetworkManager=O;this.storage=J;this.signals=z;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.qg=function(){if(!dfq){var l=_.V2(),e=l.resolve(_.MG(_.XZ)),O=l.resolve(_.MG(_.Pc)),E=l.resolve(_.MG(_.U5));l=l.resolve(_.Um);dfq=new t7(e,E,new Abx(O,l))}return dfq};
gG1=function(l,e,O){if(O){var E;if(((E=l.responsePlaylistData)==null?void 0:E.playlistId)!==O)return}l.responsePlaylistData&&(O=Nnq(e,l.responsePlaylistData),l.responsePlaylistData=(0,_.mm.unsafeClone)(l.responsePlaylistData),Dgd(l.responsePlaylistData,O));O=l.temporaryItems.findIndex(function(J){return J.videoId===e});
O>-1&&l.temporaryItems.splice(O,1);_.vJ(l,_.Ng(l,l.response?l.response.autoplayRenderer:void 0))};
_.iC1=function(l,e){if(l.responsePlaylistData){var O=r7u(e,l.responsePlaylistData);Dgd(l.responsePlaylistData,O);if(l.queueProxy){var E=l.queueProxy;O<0||(E.videoIds.splice(O,1),O<E.currentIndex&&E.JSC$10790_setCurrentIndex(E.currentIndex-1),E.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:e}),s5(E))}}_.vJ(l,_.Ng(l,l.response?l.response.autoplayRenderer:void 0))};
t7.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.vJ(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
t7.prototype.setPlaylistData=function(l,e,O){this.temporaryItems=[];this.listId=l;this.responsePlaylistData=e;_.vJ(this,_.Ng(this,O))};
var w51=function(l){return(l==null?0:l.playlistId)?l.playlistId:"PPSV"},ALq=function(l){return l&&l.playlistId?l.playlistId==="PPSV"?!0:Hox(_.Om().getState().entities,l.playlistId):!1};
t7.prototype.isPlayingOfflineVideo=function(){return this.response?ALq(this.response):!1};
t7.prototype.closeMiniplayer=function(l){var e=this.queueProxy&&this.queueProxy.size()<=1,O=_.V2().resolve(_.NJ);if(!this.queueProxy||e)this.queueProxy&&this.clearQueue(),O.close(!0);else{O.pipController.getWindow()&&window.focus();e=this.responsePlaylistData;var E=this.temporaryItems.length+(e&&e.contents?e.contents.length:0);e=_.ml("QUEUE_CLEARED_UNPLURALIZED")||_.y4("QUEUE_CLEARED",E);e=_.Xv(e);O=_.ml("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");E=_.ml("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.y4("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",E);var J=_.ml("MINIPLAYER_CLOSE",void 0,"Close"),z=_.ml("CANCEL",void 0,"Cancel");_.P0(this.JSC$10844_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.xp(O),dialogMessages:[_.xp(E)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xp(J),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
e]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.xp(z)}}}}}}],l)}};
_.Ng=function(l,e){var O={},E=l.response;O.autoplayRenderer=e;if(!l.responsePlaylistData&&!l.temporaryItems.length)return!E||!E.hasRelatedVideoData&&_.a("kevlar_prefetch_data_augments_network_data")||(O.playerData={rvs:E.relatedVideoArgs,endScreenRenderer:E.endScreenRenderer}),O;O.playerData={};if(l.index===void 0)return _.UW(Error("Hf")),O;O.panel=l.responsePlaylistData?(0,_.mm.unsafeClone)(l.responsePlaylistData):{titleText:_.xp(_.ml("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
e=O.panel;if(e.contents)for(var J=_.b(l.temporaryItems),z=J.next();!z.done;z=J.next())e.contents.push({playlistPanelVideoRenderer:z.value});l.queueProxy&&E&&E.playingVideo&&E.playingVideoId&&!vwt(E.playingVideoId,O.panel)&&(e=E.playingVideo,J=O.panel,z=l.index,J.contents&&J.contents.splice(z===void 0?0:z,0,{playlistPanelVideoRenderer:e}));E&&E.playingVideoId&&(e=l.index,J=O.panel,e=!J.contents||e>=J.contents.length?void 0:J.contents[e].playlistPanelVideoRenderer,e&&e.videoId===E.playingVideoId||(e=
Nnq(E.playingVideoId,O.panel),l.index=e!==-1?e:l.index?l.index-1:0));e=q5W(l.index+1,O.panel);J=void 0;l.index>0&&(J=q5W(l.index-1,O.panel));if(J||e)O.autoplayRenderer=hI2(e,J,O.autoplayRenderer);!e&&(E==null?0:E.relatedVideoArgs)&&(O.playerData.rvs=E.relatedVideoArgs);E=E?E.playlistIndexOffset:0;l.queueProxy?xgx(O.panel,l.index,E,t9u,!0,!0,!0):xgx(O.panel,l.index,E);O.playerData.playlistPanelRenderer=O.panel;return O};
t7.prototype.openToast=function(l){_.V2().resolve(_.NJ).openToast(l,_.ml("ADDED_TO_QUEUE",void 0,"Added to queue"))};
t7.prototype.isMiniplayerActive=function(){return _.V2().resolve(_.NJ).isMiniplayerActive()};
_.vJ=function(l,e){l.playlistManager.setAutoplayRenderer(e.autoplayRenderer||null);l.playlistManager.setPlaylistData(e.panel||null);e.playerData&&l.playlistManager.setPlayerPlaybackControlData(e.playerData)};var ex2="#";var nG1={},a2q={},kBk={},I26={},mf1={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:(nG1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",nG1),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:(a2q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",a2q),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:(kBk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",kBk),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:(I26.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",I26),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 s3L=[{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:mf1},{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:mf1}}];var ywx;_.Wc=[[["dXRnMG5rZWtpbmQjZnFmanM=","NThiNmpydmFsdWUjbmFqendq"],"X0tJTkRfU1RBUlQjNGJjOHdzbTd6eXVqQURfUExBQ0VNRU5U"]];
ywx=[[["MnlyeXByaW1hcnkjamhxbW9wdnA=",null,null],[null,["bHRzLXJlbmRlcmVyI3F3dTBjM2RsZXIxeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3U=","c3R5bGUtc2NvcGUjeGRjMjI0a202Y3Rt"],null],["bWFzdGhlYWQtYWQjNDJsZHl3c25pNnZu",["aWQtcmVuZGVyZXIjcGowYTIyYTFtZnhveXRkLXJpY2gtZ3I="],null],[null,["aWQtcmVuZGVyZXIjaWVsa3ZwbmNoNHMyeXRkLXJpY2gtZ3I=","c3R5bGUtc2NvcGUjeDE1aDZyY3ZrZTFj"],null],[null,["bW8tcmVuZGVyZXIjdmlreHFvdmFyc2NzeXRkLWJhbm5lci1wcm8=","c3R5bGUtc2NvcGUjcmZ4NnB5NnY2eHZs"],null],[null,["b3QtcmVuZGVyZXIjMW40cWRhcXBzeWsweXRkLWFkLXNs"],
null]],[["bHBsYXllci1hZHMjNHpyeTJldzRlb2g=",null,null]]];_.$1=["YWxDYWxsYmFja3MjNGQ4Mm5tbTZ4ZzZrZ2xvYg==","aXR5RGV0ZWN0ZWQjdXhvZzY3Ymw4YWVib25BYm5vcm1hbA==","M2twb25BZFNraXAjeWJpNGZ2YWtk","ZXJfcmVzcG9uc2UjOXNtcjI0eWRwOTNpcmF3X3BsYXk=","MGdmZmFkU2xvdHMjeDFwc2xqNGw="];_.rn="YWxDYWxsYmFja3MjNGQ4Mm5tbTZ4ZzZrZ2xvYg== aXR5RGV0ZWN0ZWQjdXhvZzY3Ymw4YWVib25BYm5vcm1hbA== M2twb25BZFNraXAjeWJpNGZ2YWtk ZXJfcmVzcG9uc2UjOXNtcjI0eWRwOTNpcmF3X3BsYXk= cGxlX3NraXBzX2tzI3QxYzhscWEwODNrd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRp ejFpYWJfc2FfZWYjOGwybnQwYnZj MGdmZmFkU2xvdHMjeDFwc2xqNGw=".split(" ");var D1;D1=function(l,e,O){this.mav=l;this.isAsync=e;this.oBt=O};
_.rwd=[new D1("b.f_",!1,0),new D1("j.s_",!1,2),new D1("r.s_",!1,4),new D1("e.h_",!1,6),new D1("i.s_",!0,8),new D1("s.t_",!1,10),new D1("p.h_",!1,12),new D1("s.i_",!1,14),new D1("f.i_",!1,16),new D1("a.b_",!1,18),new D1("a.o_",!1),new D1("g.o_",!1,22),new D1("p.i_",!1,24),new D1("p.m_",!1),new D1("n.k_",!0,20),new D1("i.f_",!1),new D1("a.s_",!0),new D1("m.c_",!1),new D1("n.h_",!1,26),new D1("o.p_",!1),new D1("m.p_",!0,28),new D1("o.a_",!1),new D1("d.p_",!1),new D1("e.i_",!1)].reduce(function(l,e){l[e.mav]=
e;return l},{});var yLS=function(){};
yLS.prototype.flush=function(l,e){l=l===void 0?[]:l;e=e===void 0?!1:e;if(_.a("enable_client_streamz_web")){l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=R4i(O.value),this.rootSpec&&_.EN(O,2,this.rootSpec),O={serializedIncrementBatch:_.x4(O.JSC$7644_serializeBinary())},_.Bm("streamzIncremented",O,{sendIsolatedPayload:e})}};
var Xax=function(){};
_.m(Xax,yLS);var p5x=function(l){var e=new phR;var O=new IOx;O=_.da(O,1,"botguard");l=_.da(O,2,l);this.rootSpec=_.Jz(e,1,KH1,l)};
_.m(p5x,yLS);var uG,KnR=new Map;var HQp,bQA,d5p,ZQL,o5p,Il8,F6u,al2;HQp=2;bQA=2;d5p=2;ZQL=2;o5p=2;Il8=2;F6u=2;al2=new Hlq;var HCq,cLi,Fn6;HCq=function(){this.ongoingFlowNonces=new Map};
_.w8=function(){cLi||(cLi=new HCq);return cLi};
_.g8=function(l,e,O){return{eventType:{flowEventNamespace:l,flowEventType:e},metadata:O,statusCode:void 0,csn:void 0,can:void 0}};
_.SgV=function(l,e){var O=_.w8(),E=Fn6(O,e,!0);_.iG(O,l,e,E)};
_.iG=function(l,e,O,E){l={flowNonce:E||Fn6(l,O),flowType:O,flowEventType:e.eventType};e.metadata&&(l.flowMetadata=e.metadata);e.statusCode!==void 0&&(l.flowEventStatus=e.statusCode);e.csn&&(l.csn=e.csn);e.can&&(l.can=e.can);_.Bm("flowEvent",l,void 0)};
Fn6=function(l,e,O){O=O===void 0?!1:O;var E=l.ongoingFlowNonces.get(e);if(!E||O)E=sK(16),l.ongoingFlowNonces.set(e,E);return E};_.f2H=new jz6;var ey8={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var S9=function(l,e,O,E,J,z,M){O=O===void 0?!1:O;E=E===void 0?!1:E;z=z===void 0?_.qg():z;this.hasRun=!1;this.oRq=l;this.nVV=e;this.gKJ=O;this.fromHistory=E;this.previousVideoId=J;this.kap=z;this.tempData=M;this.prZ=new _.cDx};
_.m(S9,J7);S9.prototype.validate=function(l){return!(!l.data.playerResponse||l.data.page!=="watch"&&l.data.page!=="learning_journey_watch"&&l.data.page!=="shorts"||this.hasRun)};
S9.prototype.handle=function(l){var e=this,O=_.I(l.endpoint,_.ej),E=_.I(l.endpoint,_.jT);if(_.a("kevlar_continue_playback_without_player_response")&&(O==null?0:O.videoId)&&this.previousVideoId&&(O==null?void 0:O.videoId)===this.previousVideoId&&(O==null?0:O.continuePlayback)&&!this.fromHistory)this.oRq.resolve();else{var J={};O?J.watch_endpoint=O:E&&(J.watch_endpoint=E,E.endTimeSeconds&&(J.end=E.endTimeSeconds));l.data.page==="watch"?(l.data.filler||this.gKJ||(_.hg("cfg"),_.SU.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(J,RmH(this,l.endpoint)),_.a("enable_masthead_quartile_ping_fix")&&Object.assign(J,Tiq(this)),Object.assign(J,void 0),l.data.forceExternalPlaylist&&(J.external_list=!0)):l.data.page==="shorts"?_.SU.getInstance().triggerAction("yt-start-loading-shorts"):l.data.page==="learning_journey_watch"&&_.SU.getInstance().triggerAction("yt-start-loading-learning-journey");if(O=this.nVV()){try{O.loadVideoWithPlayerResponse(l.data.playerResponse,J),O.getPlayerPromise().then(this.oRq.resolve)}catch(z){_.UW(z),
this.oRq.resolve()}this.hasRun=!0;O.getPlayerPromise().then(function(z){z.addEventListener("onAbnormalityDetected",function(){var M=l.data.playerResponse,Z=z.getVideoData().cpn;F6u=0;_.jlR=Z;if(Z=NSt(M))e.prZ.increment("IN_PLAYER"),_.A$(5),_.a("ab_st_vid_ks")?z.pauseVideo(!0):z.stopVideo(),M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:Z}}),M.videoDetails=void 0,_.SU.getInstance().triggerOptionalAction("yt-updated-playability-status",
M.playabilityStatus)})})}else _.hG(Error("Kf"))}};
var RmH=function(l,e){var O=_.I(e,_.ej);if(e&&O&&O.playlistId&&O.videoId&&(l=l.kap,l.queueProxy?(l=l.queueProxy,O=l.listId===O.playlistId?l.attributionData.get(O.videoId):void 0):O=void 0,O))return{queue_info:O}},Tiq=function(l){var e;
if((e=l.tempData)==null?0:e.adpings)return{adpings:l.tempData.adpings}};var QU=function(l,e,O){this.hasRun=!1;this.f0k=l;this.pMB=e;this.vKH=O};
_.m(QU,J7);QU.prototype.validate=function(l){return!!_.mm.getValueByKeys.apply(null,[l.data].concat(_.kA(X5k)))};
QU.prototype.handle=function(l){var e=this;this.f0k.promise.then(function(){var O=l.data;var E=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(QkS))),J=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(EGq))),z=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(l2H)));var M=(M=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(xOC))))?{videoId:M.videoId,thumbnail:M.thumbnail,title:M.title?_.xp(M.title):void 0,shortBylineText:M.author?_.xp(M.author):void 0}:void 0;var Z=void 0;_.a("web_get_playlist_id_from_current_endpoint_ks")||
(Z=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(em1))));var u=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(JLx))),d=_.mm.getValueByKeys.apply(null,[O].concat(_.kA(OCF))),g=!!u||!!d&&!!d.results&&d.results.length>0,w=0;J&&J.currentIndex&&J.localCurrentIndex&&(w=J.currentIndex-J.localCurrentIndex);J&&J.playlistId&&(Z=J.playlistId);O={rawResponse:O,autoplayRenderer:E,hasRelatedVideoData:g,playingVideo:M,playingVideoId:z,playlistPanelRenderer:J,playlistId:Z,playlistIndex:J&&J.currentIndex,relatedVideoArgs:u,
endScreenRenderer:d,playlistIndexOffset:w};a:{E=e.vKH;J=e.pMB;E.response=O;if(ALq(O))E.downloadPlaylistProxy&&E.downloadPlaylistProxy.getPlaylistId()===w51(O)||(E.downloadPlaylistProxy=new LYq(w51(O),E.setPlaylistData.bind(E),E.isPlayingOfflineVideo.bind(E))),E.responsePlaylistData=E.downloadPlaylistProxy.getPlaylistData(),E.listId=w51(O),E.index=0;else if(O.playlistPanelRenderer&&O.playlistId&&O.autoplayRenderer)O.playlistId.startsWith("TLPQ")?E.queueProxy?E.listId===O.playlistId?(E.index=O.playlistIndex,
E.responsePlaylistData=O.playlistPanelRenderer,E.queueProxy.JSC$10790_setCurrentIndex(E.index)):O.playingVideoId&&E.index!==void 0&&J.clientParams.autoSaveToQueue&&(E.index+=1,E.queueProxy.JSC$10790_setCurrentIndex(E.index),E.queueProxy.addVideos([O.playingVideoId],{},E.index)):(E.queueProxy=new _.GZ(E.JSC$10844_playlistNetworkManager,O.playlistId,E.setPlaylistData.bind(E),E.clearQueue.bind(E),_.S5V(O.playlistPanelRenderer),E.storage),E.responsePlaylistData=O.playlistPanelRenderer,E.listId=O.playlistId,
E.index=O.playlistIndex):(E.index=O.playlistIndex,E.listId!==O.playlistId&&E.clearQueue(),E.responsePlaylistData=O.playlistPanelRenderer,E.listId=O.playlistId,E.playlistProxy=new SYx(E.JSC$10844_playlistNetworkManager,O.playlistId,E.setPlaylistData.bind(E),_.S5V(O.playlistPanelRenderer)));else if(!E.queueProxy)E.responsePlaylistData=void 0;else if(O.playingVideoId&&J.clientParams.autoSaveToQueue){if(E.index===void 0){_.UW(Error("Gf"));E.clearQueue();break a}E.queueProxy.videoIds.includes(O.playingVideoId)||
(E.index+=1,E.queueProxy.JSC$10790_setCurrentIndex(E.index),E.queueProxy.addVideos([O.playingVideoId],{},E.index))}_.vJ(E,_.Ng(E,E.response.autoplayRenderer))}})};var slq=function(l,e){e=e===void 0?_.qg():e;wn.call(this);this.w4.push(new QU(this.s0,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},e));this.w4.push(new S9(this.s0,l,!1,!1));_.a("web_response_commands_chunk_processor")&&this.w4.push(new A7)};
_.m(slq,wn);slq.prototype.processChunk=function(l){l&&l.data.player===void 0&&this.s0.resolve();wn.prototype.processChunk.call(this,l)};var xw=function(l,e){l=l===void 0?{layer:0}:l;this.hasRun=!1;this.createScreenConfig=l;this.u2B=e};
_.m(xw,J7);xw.prototype.validate=function(l){return!(this.hasRun||!l.endpoint)};
xw.prototype.handle=function(l){var e=_.yN(),O,E,J=(E=_.I((O=l.endpoint)==null?void 0:O.commandMetadata,_.V4))==null?void 0:E.rootVe;this.u2B&&J?_.on(e,J,this.u2B,this.createScreenConfig):ybx(e,l.endpoint,this.createScreenConfig);this.hasRun=!0};var l4=function(l,e){this.hasRun=!1;this.qAJ=l;this.previousVideoId=e};
_.m(l4,J7);l4.prototype.validate=function(l){return _.a("kevlar_continue_playback_without_player_response")&&(l=_.I(l.endpoint,_.ej),(l==null?0:l.videoId)&&this.previousVideoId&&(l==null?void 0:l.videoId)===this.previousVideoId&&(l==null?0:l.continuePlayback))?!1:this.qAJ.e9q===0};
l4.prototype.handle=function(l){_.SU.getInstance().triggerAction("yt-stop-old-player",l.data,!0)};var GBS=function(l){l=l===void 0?{layer:0}:l;wn.call(this);this.w4.push(new l4(this));this.w4.push(new xw(l));this.w4.push(new iy(l))};
_.m(GBS,wn);var Bi1=function(){this.hasRun=this.hasRun=!1};
_.m(Bi1,J7);Bi1.prototype.validate=function(l){return!this.hasRun&&!(!l.data.csn||!l.data.rootVe)};
Bi1.prototype.handle=function(l){this.hasRun=!0;_.Yv(l.data.csn,l.data.rootVe,3)};var PFk=function(){J7.apply(this,arguments)};
_.m(PFk,J7);PFk.prototype.validate=function(l){return!!l.data.preconnect};
PFk.prototype.handle=function(l){_.Yu("bc");l=_.b(l.data.preconnect);for(var e=l.next();!e.done;e=l.next())e=e.value,(new Image).src=e};var Uf6=function(l,e,O){O=O===void 0?{layer:0}:O;wn.call(this);this.w4.push(new S9(this.s0,l));this.w4.push(new xw(O));this.w4.push(new iy(O))};
_.m(Uf6,wn);var Ywi=function(l,e,O,E,J){O=O===void 0?{layer:0}:O;E=E===void 0?_.qg():E;wn.call(this);var z=!!e&&!!e.clientParams&&!!e.clientParams.miniplayer;z&&this.w4.push(new Bi1);this.w4.push(new QU(this.s0,e,E));this.w4.push(new PFk);var M,Z;this.w4.push(new S9(this.s0,l,z,!((M=e.clientParams)==null||!M.fromHistory),(Z=e.clientParams)==null?void 0:Z.previousVideoId,E,e.tempData));var u;this.w4.push(new l4(this,(u=e.clientParams)==null?void 0:u.previousVideoId));var d;(d=e.clientParams)!=null&&d.fromHistory||
(O.layer||(O=Object.assign({},O,{layer:z?3:0})),this.w4.push(new xw(O,J)),this.w4.push(new iy(O)));_.a("web_response_commands_chunk_processor")&&this.w4.push(new A7)};
_.m(Ywi,wn);var eQ,tfi;eQ={};
_.hm1=(eQ["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},eQ["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},eQ["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},eQ["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},eQ["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},eQ["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},eQ["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},eQ);_.Og=new _.qx("yt-edu");_.Lni=function(){this.JSC$10945_eduDisplayedThisLoad_={}};
tfi=function(l){var e=_.Lni.getInstance();var O=_.Cv("kevlar_tooltip_impression_cap");e=O&&parseInt(_.Og.get(l+"-impression")||0,10)>=O||_.Og.get(l+"-dismissed")?!1:(O=_.hm1[l])&&!e.JSC$10945_eduDisplayedThisLoad_[O.setKey||l]&&(O.titleText&&_.ml(O.titleText)||O.bodyText&&_.ml(O.bodyText))?!0:!1;if(!e)return null;e=_.hm1[l];if(!e)return null;O=e.bodyText?_.ml(e.bodyText):void 0;var E=e.titleText?_.ml(e.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:e.position,popup:{bubbleHintRenderer:{text:E?
_.xp(E):void 0,detailsText:O?_.xp(O):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xp(_.ml("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:l}}]}}}}}}}},{eduImpressionAction:{key:l}}]};
_.uv(_.Lni);var Q3W=!1;for(var qwR="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),vG0=[],Eg=6;Eg>=1;Eg--)vG0.push({columnCount:Eg,query:Eg==1?0:Eg*2*107-4+32,className:"grid-"+Eg+"-columns",width:Eg*2*107+"px"});_.rLx=function(l){this.actionRouter_=l=l===void 0?_.SU.getInstance():l;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Ni1(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Ni1=function(l){var e=l.miniGuideVisible_?72:0,O=l.documentWidth_-(l.guidePersistentAndVisible_?240:e);return vG0.find(function(E){return O>E.query})};
_.uv(_.rLx);var Df1=function(){var l=this;this.JSC$10957_keyboardInUse=!1;document.addEventListener("keydown",function(){l.onKeydown()});
document.addEventListener("mousedown",function(){l.JSC$10957_keyboardInUse=!1})},Swk;
Df1.prototype.isKeyBoardInUse=function(){return this.JSC$10957_keyboardInUse};
Df1.prototype.onKeydown=function(){this.JSC$10957_keyboardInUse=!0};var Qlx,zl;_.Jw=new _.qx("yt-mentions");_.XJ=function(){};
Qlx=function(l,e){return zl(e,"drag-to-reorder-edu-displayed")};
zl=function(l,e,O,E,J,z){O=O===void 0?"OPEN_POPUP_POSITION_TOP":O;if(e){if(_.Jw.get(e))return;_.Jw.set(e,!0,E)}if(J&&z!==void 0){e=Number(_.Jw.get(J)||0);if(e>=z)return;_.Jw.set(J,e+1)}return[{openPopupAction:{popupType:"HINT",position:O,popup:{bubbleHintRenderer:{detailsText:l,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.uv(_.XJ);var xf1,lES,egS;xf1=function(l,e,O,E){this.JSC$10967_taskManager_=l;this.onFulfilled_=typeof e==="function"?e:null;this.onRejected_=typeof O==="function"?O:null;this.JSC$10967_context_=E};
lES=function(l,e){l.onFulfilled_&&_.pT(l.JSC$10967_taskManager_,function(){l.onFulfilled_.call(l.JSC$10967_context_,e)})};
egS=function(l,e){l.onRejected_&&_.pT(l.JSC$10967_taskManager_,function(){l.onRejected_.call(l.JSC$10967_context_,e)})};
_.b4=function(l){this.JSC$10970_taskManager_=l;this.callbacks_=[]};
_.b4.prototype.then=function(l,e,O){this.callbacks_.push(new xf1(this.JSC$10970_taskManager_,l,e,O));return this};
_.b4.prototype.onSuccess=function(l){this.callbacks_.forEach(function(e){lES(e,l)})};
_.b4.prototype.onFailure=function(l){this.callbacks_.forEach(function(e){egS(e,l)})};
_.b4.prototype.cancel=function(){this.callbacks_.length=0};
Gu6(_.b4);_.E8g=null;_.BF=new _.Xa("ACTIVITY_TOKEN");var M5=function(l,e){this.serviceId=new sQF(l,e)};
M5.prototype.toString=function(){return this.serviceId.toString()};var OYH=function(){this.internalMap={}};
_.X=OYH.prototype;_.X.contains=function(l){return Object.prototype.hasOwnProperty.call(this.internalMap,l)};
_.X.get=function(l){if(this.contains(l))return this.internalMap[l]};
_.X.set=function(l,e){this.internalMap[l]=e};
_.X.getKeys=function(){return Object.keys(this.internalMap)};
_.X.remove=function(l){delete this.internalMap[l]};var Vd=function(){this.mappings=new OYH;this.errorCallbacks=new Set};
Vd.prototype.getModuleId=function(l){return l.serviceId.getModuleId()};
Vd.prototype.get=function(l){var e=this.mappings.get(l.toString());return ER1(this,e,l)};
Vd.prototype.getMultipleAsync=function(){var l=_.ke.apply(0,arguments),e=this,O=l.map(function(u){return e.getModuleId(u)}),E=l.map(function(u){return e.mappings.get(u.toString())}).filter(function(u){return u});
if(E.length===l.length)return _.Ag(E.map(function(u,d){return ER1(e,u,l[d])}));
var J=fb().loadMultiple(O);E=_.co(O.map(function(u){return J[u]}));
var z=document.hidden,M=-1,Z=_.Cv("get_async_timeout_ms",-1);Z>-1&&(M=setTimeout(function(){_.hG(new _.Hk("Module timeout.",O,z,document.hidden))},Z));
return _.FV(E.then(function(){return l.map(function(u){return ER1(e,e.mappings.get(u.toString()),u)})}).thenCatch(function(u){for(var d=_.b(e.errorCallbacks),g=d.next();!g.done;g=d.next())g=g.value,g(u);
throw u;}),function(){clearTimeout(M)})};
Vd.prototype.registerService=function(l,e){this.mappings.set(l.toString(),{type:"mapping",value:e});return l};
var ER1=function(l,e,O){switch(e.type){case "mapping":return e.value;case "factory":return e=e.value(),l.mappings.set(O.toString(),{type:"mapping",value:e}),e;default:return _.VC(e)}};
Vd.prototype.onLoadError=function(l){var e=this;this.errorCallbacks.add(l);return function(){e.errorCallbacks.delete(l)}};
_.Zl=new Vd;var MF2=/^[a-zA-Z0-9_\-]{11}$/;var VFx=_.m4(function(){var l,e;return(e=(l=window).matchMedia)==null?void 0:e.call(l,"(prefers-reduced-motion: reduce)").matches});var JdS=_.m4(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 l=_.vK("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");l||(l=_.i$("VIDEO"),_.zJ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
l));return!!(l&&l.canPlayType&&l.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var W8T=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var u4;u4=function(){this.tokenJars={};if(this.cookiesEnabled=_.pv()){var l=_.mW.get("CONSISTENCY",void 0);l&&Xpk(this,{encryptedTokenJarContents:l})}};
_.g8M=function(){u4.instance||(u4.instance=new u4);return u4.instance};
u4.prototype.handleResponse=function(l,e){if(!e)throw Error("Qf");var O,E;e=((O=e.innerTubeRequest.context)==null?void 0:(E=O.request)==null?void 0:E.consistencyTokenJars)||[];var J;(l=(J=l.responseContext)==null?void 0:J.consistencyTokenJar)&&this.replace(e,l)};
u4.prototype.replace=function(l,e){l=_.b(l);for(var O=l.next();!O.done;O=l.next())delete this.tokenJars[O.value.encryptedTokenJarContents];Xpk(this,e)};
var Xpk=function(l,e){if(e.encryptedTokenJarContents&&(l.tokenJars[e.encryptedTokenJarContents]=e,typeof e.expirationSeconds==="string")){var O=Number(e.expirationSeconds);setTimeout(function(){delete l.tokenJars[e.encryptedTokenJarContents]},O*1E3);
l.cookiesEnabled&&_.y2("CONSISTENCY",e.encryptedTokenJarContents,O,void 0,!0)}};var zgq,$5;zgq=window.location.hostname.split(".").slice(-2).join(".");_.G_=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var l=_.hT("LOCATION_PLAYABILITY_TOKEN");_.hT("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=bY1(this))&&(l=this.localStorage.get("yt-location-playability-token"));l&&(this.locationPlayabilityToken=l,this.mostRecentPosition=void 0)};
_.G_.getInstance=function(){$5=_.vK("yt.clientLocationService.instance");$5||($5=new _.G_,_.zJ("yt.clientLocationService.instance",$5));return $5};
_.G_.prototype.setLocationOnInnerTubeContext=function(l){l.client||(l.client={});if(this.mostRecentPosition)l.client.locationInfo||(l.client.locationInfo={}),l.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),l.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),l.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),l.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)l.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.G_.prototype.handleResponse=function(l){var e;l=(e=l.responseContext)==null?void 0:e.locationPlayabilityToken;l!==void 0&&(this.locationPlayabilityToken=l,this.mostRecentPosition=void 0,_.hT("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=bY1(this))&&this.localStorage.set("yt-location-playability-token",l,15552E3):_.y2("YT_CL",JSON.stringify({loctok:l}),15552E3,zgq,!0))};
var bY1=function(l){return l.localStorage===void 0?new _.qx("yt-client-location"):l.localStorage};
_.G_.prototype.clearLocationPlayabilityToken=function(l){l==="TVHTML5"?(this.localStorage=bY1(this))&&this.localStorage.remove("yt-location-playability-token"):_.X9M("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.G_.prototype.getCurrentPositionFromGeolocation=function(){var l=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var e=!1,O=1E4;_.hT("INNERTUBE_CLIENT_NAME")==="MWEB"&&(e=!0,O=15E3);return new Promise(function(E,J){navigator.geolocation.getCurrentPosition(function(z){l.mostRecentPosition=z;E(z)},function(z){J(z)},{enableHighAccuracy:e,
maximumAge:0,timeout:O})})};
_.G_.prototype.createUnpluggedLocationInfo=function(l){var e={};l=l.coords;if(l==null?0:l.latitude)e.latitudeE7=Math.floor(l.latitude*1E7);if(l==null?0:l.longitude)e.longitudeE7=Math.floor(l.longitude*1E7);if(l==null?0:l.accuracy)e.locationRadiusMeters=Math.round(l.accuracy);return e};
_.G_.prototype.createLocationInfo=function(l){var e={};l=l.coords;if(l==null?0:l.latitude)e.latitudeE7=Math.floor(l.latitude*1E7);if(l==null?0:l.longitude)e.longitudeE7=Math.floor(l.longitude*1E7);return e};var MWx=function(){};
_.X=MWx.prototype;
_.X.JSC$11037_getRequest=function(l,e,O){e=e===void 0?{}:e;O=O===void 0?hdS:O;var E=e;if(this.isNavigationCommand()){var J,z=(J=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:J.url;E=_.igL(l.clickTrackingParams,!0,!1,z,this.JSC$11037_getClientScreen(E))}else E=_.igL(l.clickTrackingParams,!1,this.includeCsn);E={context:E};if(J=this.getExtension(l))return this.JSC$11037_buildRequest(E,J,e),J=this.getApiUrl(l),z=Object.assign({},{command:l},this.getRequestConfig(l,e)),E={input:J,requestShell:xv(J),
innerTubeRequest:E,config:z},E.config.authStrategy?E.config.authStrategy.identity=O:E.config.authStrategy={identity:O},(l=this.JSC$11037_getRequestKey(l,e))&&!E.config.requestKey&&(E.config.requestKey=l),E;l=new _.Hk("Error: Failed to create Request from Command.",l);_.UW(l)};
_.X.getApiUrl=function(l){var e=_.Em(this.getApiPaths(l)),O;(l=(O=_.I(l.commandMetadata,_.V4))==null?void 0:O.apiUrl)&&(e=l);return D8V(rIW(e))};
_.X.isNavigationCommand=function(){return!1};
_.X.JSC$11037_getClientScreen=function(){};
_.X.JSC$11037_getRequestKey=function(){};
_.X.getRequestConfig=function(){};
_.Ji.Object.defineProperties(MWx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Wa=function(){};
_.m(Wa,MWx);Wa.prototype.JSC$11044_getStoreKey=function(){};
Wa.prototype.JSC$11037_getRequestKey=function(l,e){e=e===void 0?{}:e;return this.JSC$11044_getStoreKey(l,e)};var ZYq;_.dS=function(l,e,O){var E=O&&O>0?O:0;O=E?Date.now()+E*1E3:0;if((E=E?(0,_.VWq)():ZYq())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{E.set(l,e,O)}catch(J){E.remove(l)}}};
_.gS=function(l){var e=ZYq(),O=(0,_.VWq)();if(!e&&!O||!window.JSON)return null;try{var E=e.get(l)}catch(J){}if(typeof E!=="string")try{E=O.get(l)}catch(J){}if(typeof E!=="string")return null;try{E=JSON.parse(E,void 0)}catch(J){}return E};
_.i4=function(l){try{var e=ZYq(),O=(0,_.VWq)();e&&e.remove(l);O&&O.remove(l)}catch(E){}};
_.VWq=_.m4(function(){try{var l=new CeM;var e=l.isAvailable()?l:null}catch(O){return null}return e?new _.oc(e):null});
ZYq=_.m4(function(){var l=new ovL;return l.isAvailable()?new _.oc(l):null});var iY=new _.Xa("ENTITY_STATE_TOKEN"),wS=new _.Xa("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var ufF=XMLHttpRequest.prototype.fetch,CEF=ufF&&ufF.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!JW?!0:!1;var Aw=function(l){this.JSC$11049_storeWithEntities=l};
_.m(Aw,Wa);_.X=Aw.prototype;_.X.getApiPaths=function(){return j31};
_.X.getExtension=function(l){return _.I(l,_.ej)||_.I(l,_.jT)||_.I(l,jFF)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11044_getStoreKey=function(l){if((_.a("kevlar_cache_on_ttl_player")||_.a("mweb_enable_shorts_innertube_player_prefetch")||_.a("mweb_use_new_history_manager")||_.a("web_shorts_prefetch_service_enabled"))&&(l=this.getExtension(l))&&l.videoId){var e={videoId:l.videoId};l.playlistId&&(e.playlistId=l.playlistId);l.playerParams&&(e.params=l.playerParams);return _.li("player",e)}};
_.X.JSC$11037_getClientScreen=function(l){var e;return((e=l.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.X.JSC$11037_buildRequest=function(l,e,O){if(_.a("enable_interstitial_entity_check")){var E=this.JSC$11049_storeWithEntities;if(e.videoId)for(var J=_.b(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),z=J.next();!z.done;z=J.next()){z=z.value;var M;var Z=void 0,u=void 0,d=e.videoId,g=z;(M=E)?(d=_.iH(d+g,"interstitialInteractionStateEntity"),M=(Z=(u=_.wV(M.getState().entities,"interstitialInteractionStateEntity",d))==null?void 0:u.primaryButtonClicked)!=null?Z:!1):M=!1;if(M)switch(z){case "CONTENT_CHECK_REQUIRED":e.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":e.racyCheckOk=!0}}}e.videoId&&(l.videoId=e.videoId);e.playlistId&&(l.playlistId=e.playlistId);e.index!==void 0&&(l.playlistIndex=e.index+1);e.playerParams&&(l.params=e.playerParams);"startTimeSeconds"in e&&e.startTimeSeconds&&(_.a("enable_player_request_builder_start_time_floor")?l.startTimeSecs=Math.floor(e.startTimeSeconds):l.startTimeSecs=e.startTimeSeconds);O.contentPlaybackContext&&(l.playbackContext={contentPlaybackContext:O.contentPlaybackContext});O.prefetchPlaybackContext&&
(l.playbackContext=Object.assign({},l.playbackContext,{prefetchPlaybackContext:O.prefetchPlaybackContext}),l.context.request||(l.context.request={}),l.context.request.isPrefetch=!0);l.playbackContext||(l.playbackContext={});E=JdS();l.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!E,supportXhr:CEF};O.overrideMutedAtStart&&(l.overrideMutedAtStart=O.overrideMutedAtStart);l.racyCheckOk=!!e.racyCheckOk;l.contentCheckOk=!!e.contentCheckOk;!_.a("captions_prefs_killswitch")&&(O=(O=_.gS("yt-player-caption-language-preferences"))?
O:[],O==null?0:O.length)&&(l.captionParams={viewerSelectedCaptionLangs:O})};
_.X.getRequestConfig=function(l){l=this.JSC$11044_getStoreKey(l);var e;l&&(e={storeStrategy:{storeKey:l}});_.a("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="ps_s",e.responseTick="ps_r");return e};
Aw[Jf]=[iY];var nQ=function(){};
_.m(nQ,Wa);_.X=nQ.prototype;_.X.getApiPaths=function(){return zyS};
_.X.getExtension=function(l){return _.I(l,_.ej)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11044_getStoreKey=function(l){if((l=this.getExtension(l))&&l.videoId){var e={videoId:l.videoId};l.playlistId&&(e.playlistId=l.playlistId);l.index&&(e.index=l.index);l.params&&(e.params=l.params);return _.li("next",e)}};
_.X.JSC$11037_getClientScreen=function(l){var e;return((e=l.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.X.JSC$11037_buildRequest=function(l,e,O){e.videoId&&(l.videoId=e.videoId);e.playlistId&&(l.playlistId=e.playlistId);e.params&&(l.params=e.params);e.index!==void 0&&(l.playlistIndex=e.index);l.racyCheckOk=!(!O.racyCheckOk&&!e.racyCheckOk);l.contentCheckOk=!!e.contentCheckOk;O.contentPlaybackContext&&(l.autonavState=O.contentPlaybackContext.autonavState,l.playbackContext={vis:O.contentPlaybackContext.vis,lactMilliseconds:O.contentPlaybackContext.lactMilliseconds});O.prefetchPlaybackContext&&(l.context.request||
(l.context.request={}),l.context.request.isPrefetch=!0);_.a("captions_hats_killswitch")||(e=_.Kz().getFlag(65),e=e!=null?!e:!1,O=!!_.gS("yt-player-sticky-caption"),l.captionsRequested=e&&O)};
_.X.getRequestConfig=function(l){l=this.JSC$11044_getStoreKey(l);var e;l&&(e={storeStrategy:{storeKey:l}});_.a("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="wn_s",e.responseTick="wn_r");return e};
var a3=function(){};
_.m(a3,Wa);a3.prototype.getApiPaths=function(){return zyS};
a3.prototype.getExtension=function(l){return _.I(l,_.qj)};
a3.prototype.JSC$11037_buildRequest=function(l,e){e.token&&(l.continuation=e.token)};var k5=function(l,e){this.playerRequestBuilder=l;this.watchNextRequestBuilder=e};
_.m(k5,Wa);k5.prototype.getApiPaths=function(){return iQq};
k5.prototype.getExtension=function(l){return _.I(l,_.ej)};
k5.prototype.isNavigationCommand=function(){return!0};
k5.prototype.JSC$11037_buildRequest=function(l,e,O){l.playerRequest={};this.playerRequestBuilder.JSC$11037_buildRequest(l.playerRequest,e,O);_.a("web_streaming_watch")&&(l.watchNextRequest={},this.watchNextRequestBuilder.JSC$11037_buildRequest(l.watchNextRequest,e,O))};
k5[Jf]=[Aw,nQ];var oRR;_.I3=new _.Xa("SHORTS_CONTROLLER_TOKEN");oRR=new _.Xa("SHORTS_STATE_STORE_TOKEN");var m6=function(l,e){var O=_.ke.apply(2,arguments);l=l===void 0?0:l;_.Hk.call(this,e,O);this.errorType=l;Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(m6,_.Hk);var $lH,WOF,gRS,Dyq,Sd,dF8,nRR,Ad0,pp1,IEF,kDi;$lH=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(l){return l+"="}).join("|"));
WOF=RegExp(".*\\?.*playnext=1.*");_.yd=function(l,e,O,E){this.watchEndpointMap=l;this.reelWatchEndpointMap=e;this.innerTubeTransportService=O;this.fetchPbj=E};
gRS=function(l,e,O){var E=_.V2().resolve(_.MG(dl6));_.yd.instance=new _.yd(l,e,O,E)};
_.iY6=function(l,e){var O=_.Cv("web_pbj_log_warning_rate",0);O=O>0&&Math.random()<O;var E;if((E=_.I(e.commandMetadata,_.V4))==null||!E.rootVe)return O&&_.hG(Error("Tf")),!1;var J;E=(J=_.I(e.commandMetadata,_.V4))==null?void 0:J.url;if(!E)return O&&_.hG(Error("Uf")),!1;if(WOF.test(E))return!0;if($lH.test(E))return O&&_.hG(Error("Vf`"+E)),!1;if(_.I(e,_.ej)){if(!(l.watchEndpointMap.watchNext&&l.watchEndpointMap.player||_.a("kevlar_fetch_initial_data_op_watch_client")))return O&&_.hG(Error("Mf")),!1;
l=_.Cv("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;_.I(e,_.ej)?zyW(e)?e=!0:(l&&_.hG(Error("Nf")),e=!1):(l&&_.hG(Error("Mf")),e=!1);return e}if(_.I(e,_.jT))return bgA(e);if(_.I(e,_.PC))return!0;l=_.SN(l.innerTubeTransportService,e);!l&&O&&_.UW(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(e)});return l};
Dyq=function(l,e,O,E,J,z){e={url:e};if(O==null?0:O.itct)e.parentTrackingParams=O.itct;var M=_.Em(BSS);return _.PJ(l.innerTubeTransportService,e,M).then(function(Z){(Z=Z.endpoint)||(Z=_.an);(O==null?0:O.itct)&&Z&&!Z.trackingParams&&(Z.trackingParams=O.itct);var u=p0(Z);return Sd(l,Z,O,E,u,J,z)})};
Sd=function(l,e,O,E,J,z,M,Z){Z=Z===void 0?{}:Z;if(l.fetchPbj&&!_.iY6(l,e)&&!_.a("force_one_platform")){Z=l.fetchPbj(e);var u=_.Ag(Z.then(function(t){if(!t)throw Error("Xf");M(u)||z(e,t);return t}));
return u}var d,g,w={rootVe:(d=_.I(e.commandMetadata,_.V4))==null?void 0:d.rootVe,url:(g=_.I(e.commandMetadata,_.V4))==null?void 0:g.url,endpoint:e,page:J};if(_.I(e,_.ej)){var n,k={contentPlaybackContext:_.Fv(O,(n=_.I(e.commandMetadata,_.V4))==null?void 0:n.url,E)},y=_.x7();_.a("web_streaming_watch")&&window.TextDecoderStream?(Z=wpS(l.innerTubeTransportService,e,k,function(t){!w.response&&t.content&&(w.response=t.content);!w.playerResponse&&t.player&&(w.playerResponse=t.player);z(e,w)}),d=SkL(e),d.length&&
(w.preconnect=d,z(e,w)),Ad0(Z,y,w).catch(function(t){t instanceof m6&&t.errorType===2&&nRR(l,e,k,w,z,M,y)})):nRR(l,e,k,w,z,M,y);
return y.promise}if(_.I(e,_.jT)){var c;if(((c=_.I(e,_.jT))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f=_.x7();_.aEx(_.V2().resolve(_.I3),e).then(function(t){kDi(l,O,E,J,z,f,t)});
return f.promise}Z=_.Ag();var P;d={contentPlaybackContext:_.Fv(O,(P=_.I(e.commandMetadata,_.V4))==null?void 0:P.url,E)};(P=l.reelWatchEndpointMap.player)&&(P=P().JSC$11037_getRequest(e,d))&&(Z=_.PJ(l.innerTubeTransportService,P.innerTubeRequest,P.input,e.clickTrackingParams,P.config));P=_.Ag();(g=l.reelWatchEndpointMap.reelItemWatch)&&(g=g().JSC$11037_getRequest(e))&&(P=_.PJ(l.innerTubeTransportService,g.innerTubeRequest,g.input,e.clickTrackingParams,g.config));g=_.Ag();(n=l.reelWatchEndpointMap.reelWatchSequence)&&
_.I(e,_.jT).sequenceParams&&(d=n().JSC$11037_getRequest(e,d))&&(g=_.PJ(l.innerTubeTransportService,d.innerTubeRequest,d.input,e.clickTrackingParams,d.config));d=_.Ag(w);n=_.x7();IEF(e,d,Z,P,g,z,M,n);return n.promise}var h;if(_.I(e,OgV)&&((h=_.I(e.commandMetadata,_.V4))==null?0:h.url))return Z=de2(_.rk(jB().location.href),_.rk(_.I(e.commandMetadata,_.V4).url)).toString(),Dyq(l,Z,O,E,z,function(){return!1});
if(_.I(e,_.PC))return z(e,w),_.Ag(w);if(_.SN(l.innerTubeTransportService,e)){Z=Object.assign({},{tempData:O,disableCache:O.disableCache},Z);var N=_.Qh(l.innerTubeTransportService,e,Z).then(function(t){w.response=t;M(N)||z(e,w);return w});
return N}return _.Ag(w)};
_.ydS=function(l,e,O,E){if(_.I(e,_.ej)||_.I(e,_.jT)&&(_.a("mweb_enable_shorts_innertube_player_prefetch")||_.a("kevlar_enable_shorts_prefetch_in_sequence"))||_.I(e,jFF)&&_.a("web_enable_prefetching_videos_on_home")){var J,z={contentPlaybackContext:_.Fv(O,(J=_.I(e.commandMetadata,_.V4))==null?void 0:J.url,E),prefetchPlaybackContext:uPT(O)},M,Z,u;if(((M=_.I(e,_.ej))==null?void 0:(Z=M.watchEndpointSupportedPrefetchConfig)==null?void 0:(u=Z.prefetchHintConfig)==null?void 0:u.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(O=
l.watchEndpointMap.watchNext)if(z=O().JSC$11037_getRequest(e,z))return Promise.resolve(_.PJ(l.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(w){return w}))}else if(_.I(e,_.jT)&&_.a("web_prefetch_riw_for_next_video")){if(O=l.reelWatchEndpointMap.reelItemWatch)if((O=O().JSC$11037_getRequest(e,z))&&_.PJ(l.innerTubeTransportService,O.innerTubeRequest,O.input,void 0,O.config).then(function(w){return w}),O=l.reelWatchEndpointMap.player)if(z=O().JSC$11037_getRequest(e,
z))return Promise.resolve(_.PJ(l.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(w){return w}))}else if(O=l.watchEndpointMap.player)if(z=O().JSC$11037_getRequest(e,z))return Promise.resolve(_.PJ(l.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(w){return w}))}else if(_.SN(l.innerTubeTransportService,e)){var d={tempData:O},g=mli(l.innerTubeTransportService,e);
return g?new Promise(function(w,n){var k,y;return _.V(function(c){if(c.nextAddress==1)return _.C(c,g,2);if(c.nextAddress!=4)return k=c.yieldResult,k.JSC$11044_getStoreKey(e,d)?_.C(c,_.Qh(l.innerTubeTransportService,e,d),4):(n(new _.Hk("Prefetching request builder with no store key.",e)),c.jumpTo(0));y=c.yieldResult;w(y);_.Cl(c)})}):Promise.reject(new _.Hk("Prefetching unregistered request builder.",e))}return Promise.reject(new _.Hk("No request builder available to prefetch endpoint.",e))};
dF8=function(l,e){var O,E,J;if(_.I(e,_.ej)){var z=l.watchEndpointMap.watchNext;z&&(O=z());(l=l.watchEndpointMap.player)&&(E=l())}else if(_.I(e,_.jT))(z=l.reelWatchEndpointMap.reelItemWatch)&&(O=z()),(z=l.reelWatchEndpointMap.player)&&(E=z()),(l=l.reelWatchEndpointMap.reelWatchSequence)&&(J=l());else{a:{l=ekL(e,l.innerTubeTransportService.endpointMap);if(l!==void 0)if(typeof l.then==="function")_.UW(new _.Hk("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",e));else break a;
l=void 0}l&&(O=l)}var M,Z,u;return{content:(M=O)==null?void 0:M.JSC$11044_getStoreKey(e),player:(Z=E)==null?void 0:Z.JSC$11044_getStoreKey(e),reelSequence:(u=J)==null?void 0:u.JSC$11044_getStoreKey(e)}};
nRR=function(l,e,O,E,J,z,M){var Z=_.Ag(),u=l.watchEndpointMap.player;_.a("web_streaming_player")&&(u=cc(k5));u&&(u=u().JSC$11037_getRequest(e,O))&&(Z=_.PJ(l.innerTubeTransportService,u.innerTubeRequest,u.input,e.clickTrackingParams,u.config));u=_.Ag();var d=l.watchEndpointMap.watchNext;d&&(O=d().JSC$11037_getRequest(e,O))&&(u=_.PJ(l.innerTubeTransportService,O.innerTubeRequest,O.input,e.clickTrackingParams,O.config));l=_.Ag(E);pp1(e,l,Z,u,J,z,M)};
Ad0=function(l,e,O){return _.V(function(E){if(E.nextAddress==1)return _.C(E,l,2);e.resolve(O);_.Cl(E)})};
pp1=function(l,e,O,E,J,z,M){var Z,u,d,g,w;_.V(function(n){switch(n.nextAddress){case 1:return _.C(n,e,2);case 2:Z=n.yieldResult;if(z(M.promise))return M.resolve(Z),n.return();J(l,Z);u=SkL(l);if(!u.length){n.jumpTo(3);break}return _.C(n,e,4);case 4:Z.preconnect=u,J(l,Z);case 3:return _.b1(n,5),_.C(n,O,7);case 7:d=n.yieldResult;_.Q2(n,6);break;case 5:return g=_.u1(n),M.reject(g),n.return();case 6:if(d===void 0)return Z.reload=!0,J(l,Z),M.resolve(Z),n.return();if(z(M.promise))return M.resolve(Z),n.return();
Z.playerResponse=d;J(l,Z);_.b1(n,8);return _.C(n,E,10);case 10:w=n.yieldResult;_.Q2(n,9);break;case 8:_.u1(n);case 9:if(w===void 0)return Z.response={responseContext:{}},M.resolve(Z),n.return();if(z(M.promise))return M.resolve(Z),n.return();Z.response=w;J(l,Z);M.resolve(Z);_.Cl(n)}})};
IEF=function(l,e,O,E,J,z,M,Z){var u,d,g,w,n,k;_.V(function(y){switch(y.nextAddress){case 1:return _.C(y,e,2);case 2:u=y.yieldResult;if(M(Z.promise))return Z.resolve(u),y.return();z(l,u);d=SkL(l);if(!d.length){y.jumpTo(3);break}return _.C(y,e,4);case 4:u.preconnect=d,z(l,u);case 3:return _.b1(y,5),_.C(y,O,7);case 7:g=y.yieldResult;_.Q2(y,6);break;case 5:return w=_.u1(y),Z.reject(w),y.return();case 6:if(g===void 0)return u.reload=!0,z(l,u),Z.resolve(u),y.return();if(M(Z.promise))return Z.resolve(u),
y.return();u.playerResponse=g;z(l,u);_.b1(y,8);return _.C(y,E,10);case 10:n=y.yieldResult;_.Q2(y,9);break;case 8:_.u1(y);case 9:if(n===void 0)return u.response={responseContext:{}},Z.resolve(u),y.return();if(M(Z.promise))return Z.resolve(u),y.return();u.response=n;z(l,u);_.b1(y,11);return _.C(y,J,13);case 13:k=y.yieldResult;_.Q2(y,12);break;case 11:_.u1(y);case 12:if(M(Z.promise))return Z.resolve(u),y.return();u.reelWatchSequenceResponse=k;z(l,u);Z.resolve(u);_.Cl(y)}})};
kDi=function(l,e,O,E,J,z,M){var Z,u,d,g,w,n;_.V(function(k){if((Z=M)==null||!Z.replacementEndpoint)return z.reject(),k.return();u=M.replacementEndpoint;(d=_.I(u,_.jT))?(M.sequenceContinuation&&(d.sequenceParams=M.sequenceContinuation),g=_.V2().resolve(_.I3),w=d.sequenceParams,KO6(g,u)&&delete d.sequenceParams,n=Sd(l,u,e,O,E,J,function(){return!1}),n.then(function(y){return _.V(function(c){if(c.nextAddress==1)return jeq(g,{reelWatchEndpoint:{sequenceParams:w}},y),_.C(c,0,2);
z.resolve(y);_.Cl(c)})})):z.reject();
_.Cl(k)})};_.HYq=function(l){if(l.validatedFragments_.length==0)return null;if(!l.mergedPrefetchedData_){for(var e=[],O=_.b(l.validatedFragments_),E=O.next();!E.done;E=O.next()){E=_.b(l.fragmentConfiguration_[E.value].graftedKeys);for(var J=E.next();!J.done;J=E.next())(J=l.prefetchedData_[J.value].trackingParams)&&e.push(J)}l.mergedPrefetchedData_={};Object.assign(l.mergedPrefetchedData_,l.prefetchedData_,{clientSideGrafts:e})}return l.mergedPrefetchedData_};var cdq;_.pQ=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
cdq=function(l,e,O){if(_.Jb2(e))return l.prefetchCache_.get(_.Xu8(e,O))};_.KQ=new _.Xa("NAVIGATION_TOKEN");var FOR=function(l){var e=this;var O=O===void 0?n8V():O;var E=E===void 0?_.V2().resolve(_.KQ):E;this.onePickCommand=l;this.JSC$11147_playlistNetworkManager=O;this.navigationManager=E;this.videoPickerBuilder=_.wu2("yt-addtoplaylist");_.Eoi(DzS(SC0(rTH(this.videoPickerBuilder.setTitle(l.modalTitle).setSize(1E3).addView(xhS()).addView(QQC())).addView("youtube"),l.selectButtonLabel)),function(J){e.handleAction(J)})};
FOR.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
FOR.prototype.handleAction=function(l){var e=this;if(l&&this.onePickCommand.listId&&l.action==="picked"&&l.docs){var O=[];l.docs.forEach(function(E){O.push({addedVideoId:E.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11147_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,O).then(function(){_.a("playlist_add_video_hard_reload_killswitch")?e.navigationManager.reload():fE1(e.navigationManager)})}};var Rg0=function(){if(this.constructor===Rg0)throw new TypeError("Yf");};
_.X=Rg0.prototype;_.X.dispose=function(){};
_.X.disconnect=function(){};
_.X.reconnect=function(){};
_.X.observe=function(l,e,O){return{element:l,option:O}};
_.X.unobserveByKey=function(){};var aHM=function(l,e){e=e===void 0?0:e;Rg0.call(this);this.viewroot=l;this.defaultPrescanHeight=e;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),l?{root:l,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.m(aHM,Rg0);_.X=aHM.prototype;_.X.dispose=function(){this.disconnect();this.handlers.clear()};
_.X.disconnect=function(l){this.isConnected=!1;this.pauseObservingUntilReconnect=l===void 0?!1:l;this.observer.disconnect();l=_.b(this.prescanObservers.values());for(var e=l.next();!e.done;e=l.next())e.value.disconnect()};
_.X.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var l=_.b(this.handlers),e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;var E=O.next().value;O=!1;E=_.b(E.keys());for(var J=E.next();!J.done;J=E.next())if((J=J.value)&&J.state==="prescan"){O=!0;break}O&&Trx(this,e).observe(e);this.observer.observe(e)}}};
_.X.handleObserveEvent=function(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;var O=this.handlers.get(e.target);if(O){var E=e.isIntersecting;O=_.b(O);for(var J=O.next();!J.done;J=O.next()){var z=_.b(J.value);J=z.next().value;z=z.next().value;J&&(J.state==="visible"&&E||J.state==="hidden"&&!E)&&(z(e.target,J.state),J.calledOnce&&this.unobserveByKey({element:e.target,option:J}))}}}};
_.X.handlePrescanEvent=function(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;var O=this.handlers.get(e.target);if(O&&e.isIntersecting){O=_.b(O);for(var E=O.next();!E.done;E=O.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;E&&E.state==="prescan"&&(J(e.target,E.state),E.calledOnce&&this.unobserveByKey({element:e.target,option:E}))}}}};
_.X.observe=function(l,e,O){var E=(E=this.handlers.get(l))&&E.has(O)?{element:l,option:O}:void 0;if(E)return E;E={element:l,option:O};this.handlers.has(l)||this.handlers.set(l,new Map);var J=this.handlers.get(l);J&&!J.has(O)&&J.set(O,e);this.pauseObservingUntilReconnect||(O.state==="prescan"&&Trx(this,l).observe(l),this.observer.observe(l));return E};
_.X.unobserveByKey=function(l){var e=this.handlers.get(l.element);if(e&&e.has(l.option)){e.delete(l.option);if(l&&l.option.state==="prescan")for(var O=_.b(this.prescanObservers.values()),E=O.next();!E.done;E=O.next())E.value.unobserve(l.element);e.size===0&&(this.handlers.delete(l.element),this.observer.unobserve(l.element))}};
var Trx=function(l,e){var O=l.defaultPrescanHeight;e.hasAttribute("prescan-height")&&(e=Number(e.getAttribute("prescan-height")),isNaN(e)||(O=e));if(l.prescanObservers.has(O))return l.prescanObservers.get(O);e="-0.1px -0.1px "+O+"px -0.1px";e=new IntersectionObserver(l.handlePrescanEvent.bind(l),l.viewroot?{root:l.viewroot,rootMargin:e}:{rootMargin:e});l.prescanObservers.set(O,e);return e};var seS=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],GDS=function(){var l,e=this;this.JSC$11164_actionRouter=l=l===void 0?_.SU.getInstance():l;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return e.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return e.visibilityObservedElementHandlerKeys}}},Brk,Ulq,LO0;
GDS.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.a("kevlar_use_vimio_behavior")&&_.hT("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=kHT())};
GDS.prototype.dispose=function(){this.visibilityMonitor&&_.px(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
GDS.prototype.handleVisibilityRefreshed=function(){for(var l=_.b(this.targetMap.entries()),e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;_.PER(this,e,O)}};
_.hg1=function(l,e,O){Ulq(l,O);var E=_.YMq(l,e);E.element=O;l.targetedElements.set(O,e);_.PER(l,e,E)};
Ulq=function(l,e){var O=l.targetedElements.get(e);if(O){var E=l.targetMap.get(O);E&&(delete E.element,l.targetMap.set(O,E));l.targetedElements.delete(e);l.visibilityObserver&&l.visibilityObservedElementHandlerKeys&&(O=l.visibilityObservedElementHandlerKeys.get(e))&&(l.visibilityObserver.unobserveByKey(O),l.visibilityObservedElementHandlerKeys.delete(e))}};
_.PER=function(l,e,O){var E=O.action,J=O.element;J&&E&&(seS.includes(e)||_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||l.visibilityMonitor&&l.visibilityMonitor.isNodeVisible(J)?LO0(l,e,O):l.visibilityObserver&&(l.visibilityObservedElementHandlerKeys||(l.visibilityObservedElementHandlerKeys=new WeakMap),E=l.visibilityObserver.observe(J,function(){LO0(l,e,O);l.visibilityObservedElementHandlerKeys.delete(J)},{calledOnce:!0,
state:"visible"}),l.visibilityObservedElementHandlerKeys.set(J,E)))};
LO0=function(l,e,O){var E=O.action;(O=O.element)&&E&&(_.P0(l.JSC$11164_actionRouter,[E],O),l.targetMap.delete(e),l.targetedElements.delete(O),l.triggeredTargets.add(e))};
_.YMq=function(l,e){var O=l.targetMap.get(e);O||(O={},l.targetMap.set(e,O));return O};
_.jQ=function(){Brk||(Brk=new GDS);return Brk};var tWx=document.createElement("div");tWx.style.touchAction="pan-down";var IHq=tWx.style.touchAction==="pan-down";var qMF,vRx;qMF=function(){this.hammerFn=qV6();this.JSC$11172_screenManager=_.yN();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.sL(83615);_.WJ(this.JSC$11172_screenManager,this.ve);meM()};
_.Ha=function(){vRx||(vRx=new qMF);return vRx};
qMF.prototype.registerTouchEvents=function(l,e,O){var E=_.ke.apply(3,arguments),J=this.hammerFn(l,{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}]]});O&&J.set({touchAction:O});this.nodeManagerMapping.set(l,J);var z=
ybp(e);E=_.b(E);for(var M=E.next();!M.done;M=E.next()){M=M.value;if(M.includes("swipe")||M.includes("pinch")||M.includes("pan"))M.includes("swipe")?J.get("swipe").set({enable:!0,direction:z,velocity:.2}):M.includes("pinch")?J.get("pinch").set({enable:!0}):M.includes("pan")&&(J.get("pan").set({enable:!0,direction:z}),J.get("swipe").set({enable:!0,direction:z,velocity:.2}),J.get("swipe").recognizeWith("pan"));Nrk(this,l,J,M)}};
var Nrk=function(l,e,O,E){O.on(E,function(J){if(E.includes("pinch"))l.lastPinchTime=Date.now();else if(E.includes("swipe")&&Date.now()-l.lastPinchTime<400)return;J.pointerType!=="mouse"&&(J=E==="doubletap"?{coordinates:J.center}:E.includes("pan")?J:E.includes("swipe")?{target:J.target}:{},e.dispatchEvent(new CustomEvent(E,{bubbles:!0,composed:!0,detail:J})))})};
qMF.prototype.unregisterTouchEvents=function(l){var e=_.ke.apply(1,arguments),O=this.nodeManagerMapping.get(l);if(O){e=_.b(e);for(var E=e.next();!E.done;E=e.next())O.off(E.value);this.nodeManagerMapping.delete(l);l.style.touchAction="unset"}};var rd1=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var pu8=null;var Dl0=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},qdd=function(){Dl0.instance||(Dl0.instance=new Dl0);
return Dl0.instance},v8x=function(l){var e=l.networkEvents;
l.networkEvents=[];return _.a("enable_network_monitoring")?e:[]};var SM1;SM1={};_.Qei=Mx("yt-serviceworker-metadata",{objectStores:(SM1.auth={addedAtVersion:1},SM1["resource-manifest-assets"]={addedAtVersion:2},SM1),shared:!0,upgrade:function(l,e){e(1)&&Nx(l,"resource-manifest-assets");e(2)&&Nx(l,"auth")},
version:2});var fHg=self.location.origin+"/";Ryq([/\.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\//]);Ryq([/purge_shell=1/]);var xlF=void 0;xlF=xlF===void 0?[]:xlF;for(var li6=[],enC=_.b(TLx),Ow1=enC.next();!Ow1.done;Ow1=enC.next())li6.push({key:Ow1.value});for(var E_0=_.b(xlF),JQS=E_0.next();!JQS.done;JQS=E_0.next())li6.push(JQS.value);var Xdq,Y1=_.Op==null?void 0:(Xdq=_.Op.performance)==null?void 0:Xdq.memory,GHL=!1,N_u={},Ue8={},h$={},L0=navigator;var ca=function(l){this.JSC$11216_expiringStorage=new FR(l)};
ca.prototype.set=function(l,e,O){O=O!==void 0?Date.now()+O:void 0;this.JSC$11216_expiringStorage.set(l,e,O)};
ca.prototype.get=function(l){return this.JSC$11216_expiringStorage.get(l)};
ca.prototype.remove=function(l){this.JSC$11216_expiringStorage.remove(l)};var OeA=_.E9(["https://www.youtube.com/",""]),Elq=_.E9(["https://studio.youtube.com/",""]),Mkt="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",X8V=null,olp;var znR=_.E9(["https://www.youtube.com/iframe_api"]),FJ=function(){this.playerResolver_=_.x7();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.II;this.playbackDurationSeconds_=0},bwq=function(l){var e=function(){return window.YT&&typeof window.YT.ready==="function"};
if(e())return _.Ag(window.YT);var O=_.x7(),E=_.i$("SCRIPT");E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||(E.onload=_.II,E.onreadystatechange=_.II,E.onerror=_.II,e()?O.resolve(window.YT):O.reject(new _.Hk("Failed to load the iframe player library","script.onload",E.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
E.onerror=function(J){E.onload=_.II;E.onreadystatechange=_.II;E.onerror=_.II;O.reject(new _.Hk("Failed to load the iframe player library","script.onerror",J&&J.target&&J.target.src))};
_.UN(E,_.OP(znR));l.insertBefore(E,l.firstChild);return O.promise},Mcq=function(l,e,O){var E,J;
_.V(function(z){switch(z.nextAddress){case 1:return l.playbackEndedCallback_=O,_.b1(z,2),_.C(z,bwq(e.parentElement||null),4);case 4:E=z.yieldResult;_.Q2(z,3);break;case 2:return J=_.u1(z),J instanceof _.Hk&&J.args&&J.args[0]=="script.onerror"?_.hG(J):_.UW(J),z.return();case 3:E.ready(function(){return new E.Player(e,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:l.onPlayerReady_.bind(l),onStateChange:l.onPlayerStateChange_.bind(l),
onCueRangeExit:l.onCueRangeExit_.bind(l)}})}),_.Cl(z)}})};
_.X=FJ.prototype;_.X.getPlayerPromise=function(){return this.playerPromise_};
_.X.onPlayerReady_=function(l){this.playerResolver_.resolve(l.target)};
_.X.onPlayerStateChange_=function(l){if(l.data==YT.PlayerState.PLAYING){l=l.target;var e=l.getCurrentTime();l.addCueRange("playback",e,e+this.playbackDurationSeconds_)}};
_.X.onCueRangeExit_=function(l){l.data=="playback"&&(l.target.stopVideo(),this.playbackEndedCallback_())};
_.X.stopVideo=function(){this.playerPromise_.then(function(l){l.stopVideo()})};
var VcS=function(l){l.playerVars_&&l.playerPromise_.then(function(e){typeof e.cueVideoByPlayerVars!="function"?_.hG(new _.Hk("vmh: player API not ready","cueVideoByPlayerVars",typeof e.cueVideoByPlayerVars)):e.cueVideoByPlayerVars(l.playerVars_)})};
FJ.prototype.playVideo=function(){var l=this;this.playerVars_&&this.playerPromise_.then(function(e){typeof e.loadVideoByPlayerVars!="function"?(e=new _.Hk("vmh: player API not ready","loadVideoByPlayerVars",typeof e.loadVideoByPlayerVars),_.UW(e)):e.loadVideoByPlayerVars(l.playerVars_)})};
var ZwS=function(l,e,O,E,J){e&&(O===void 0&&(O=0),E===void 0&&(E=0),l.playbackDurationSeconds_=E/1E3,l.playerVars_={adformat:"17_8",videoId:e,suggestedQuality:"hd720",startSeconds:O/1E3,player_params:J})};
FJ.prototype.mute=function(){this.playerPromise_.then(function(l){l.mute()})};
FJ.prototype.unMute=function(){this.playerPromise_.then(function(l){l.unMute()})};var u3q=function(l,e){var O=v9();l||(l="unknown");e||(e="unknown");l="MAIN_APP_WEB_PAGE_TYPE_"+l.toUpperCase();l in poi||(l="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");e="MAIN_APP_WEB_REQUEST_TYPE_"+e.toUpperCase();e in Khq||(e="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.nN(O,{mainAppWeb:{pageType:l,requestType:e,isShellLoad:_.LH("IS_SHELL_LOAD",!1)}})},CoC={start:function(){_.nN(RGM(),{mainAppWeb:_.ST()})},
success:function(){_.a2(RGM(),"SUCCESS")},
failure:function(){_.a2(RGM(),"FAILURE")},
cancelled:function(){_.a2(RGM(),"CANCELLED")}};var o_k,$UF,nlW;o_k=_.E9(["/sw.js"]);$UF=_.E9(["/sw.js?0"]);_.Wqq=_.OP(o_k);nlW=_.OP($UF);var dU1=function(){var l=Error.apply(this,arguments);this.message=l.message;"stack"in l&&(this.stack=l.stack)};
_.m(dU1,Error);_.ld.prototype.load=function(l){this.megabloxUrl_=_.hT("YPC_MB_URL");_.Nd(this.megabloxUrl_,(0,_.pb)(function(){l&&l()},this))};
_.XPq=function(l,e,O,E,J,z,M,Z,u,d,g){_.kEq(u);l.load((0,_.pb)(function(){try{var w=z?z:_.hT("HL"),n=_.hT("SESSION_INDEX");_.oNA("client",function(){LA6("59",{helpCenterPath:"/youtube",locale:w,window:window}).JSC$8012_loadChatSupport({authuser:String(n)})})}catch(k){throw QF(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),J&&J(k),_.UW(k),k;
}g_k(this,e,O,E,J,z,M,Z,u,d,g)},l))};
_.ld.prototype.openFixFlowDialog=function(l,e,O,E){this.load((0,_.pb)(function(){try{iw1(this,_.vK("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(l).withIntegratorCallback(e).load(O,E)}catch(J){throw _.UW(J),J;}},this))};
var iw1=function(l,e,O,E){var J=e.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.a("enable_window_constrained_buy_flow_dialog")&&(J=J.usingPopupStyle(_.vK("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));E&&(J=J.usingCloseCallback(E));e.bootstrap.fromPaymentsUrl(l.megabloxUrl_);l=e.bootstrap.asMashupMode(J);O=O?O:_.hT("HL");l.usingGaiaIndex(_.hT("SESSION_INDEX")).usingLocale(O).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.a("enable_google_payments_buyflow_material2_style_web")?
l.usingStyle(":m2;pc=#444;ac=#065fd4"):l.usingStyle(":md;pc=#444;ac=#065fd4");return l},g_k=function(l,e,O,E,J,z,M,Z,u,d,g){try{var w=_.vK("payments.business.integration");
if(!w)throw new dU1("payments.business.integration is undefined");var n=w.standaloneContextAuthId.forUserId(),k=Z;_.a("enable_setting_app_inert_when_buy_flow_opens")&&(k=Z?function(){mOL(!1);Z()}:function(){mOL(!1)});
var y=iw1(l,w,z,k);M&&y.usingServerAnalyticsEventHandler(M);var c=y.inStandaloneContext(n).buyFlow(function(f){if(f&&(!f.integratorData||f.integratorData===""||f.error))if(f.error!=null)if(String(f.error)==="-1")_.ITL(u);else{var P=String(f.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";QF(10,g,P,f.debugCode);_.x1(P,u,f.debugCode);P=new _.Hk("PAYMENT_ERROR_MESSAGE::"+f.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
f.internalErrorDetails);_.UW(P)}else QF(10,g,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.x1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",u,"EMPTY_INTEGRATOR_DATA"),_.UW(Error("cg"));O&&(mOL(!1),O(f))}).withEncryptedParameters(e);
d&&c.withClientParameters(z3L(_.b7A(d)));c.load(function(){QF(24,g);_.Lz("ttc",void 0,"commerce_transaction");OI8("commerce_transaction");E&&(mOL(!0),E())},function(f){if(f==null?0:f.debugCode)var P=f==null?void 0:f.debugCode;
else if(!f||(f==null?0:f.debugCode))P="EMPTY_LOAD_FAILURE_ERROR",_.UW(Error(P));else{P="EMPTY_LOAD_FAILURE_DEBUG_CODE";var h=new _.Hk("LOAD_FAILURE:"+f.message," DEBUG_CODE:"+P);_.UW(h)}QF(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",P);_.x1("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",u,P);_.UW(f);J&&J(f)})}catch(f){throw f instanceof dU1&&(QF(10,g,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),J&&J(f)),_.UW(f),f;
}};var wdS;wdS=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.OhT=function(l,e){e=e===void 0?!1:e;l=wdS.test(l)?_.VS(l):null;!e&&window.payments||!l?(l=_.x7(),e=l.promise,l.resolve()):e=_.p3F(l,{attributes:{"data-payments-main":"",id:"payment-lib"}});return e};var AQC;AQC=_.E9(["//www.googletagmanager.com/gtm.js?id=",""]);_.fQ=function(l,e){_.Vz(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:e}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.hT("GL")}),e=_.i$("SCRIPT"),e.async=!0,_.UN(e,_.OP(AQC,l)),e.id="gtm",l=document.getElementsByTagName("script"),l.length==0?document.head.appendChild(e):(l=l[0],l.parentNode.insertBefore(e,l)))};
_.R3=function(l){if(l=JSON.parse(l))window.dataLayer=window.dataLayer||[],window.dataLayer.push(l)};var n_H,aiF;n_H=_.E9(["https://clients2.google.com/gr/gr_sync.js"]);_.l48=function(){};
_.l48.prototype.init=function(){if(aiF()){var l=_.x7();l.resolve();return l.promise}return _.p3F(_.OP(n_H)).then(function(){if(!aiF())throw Error("dg");},function(){throw Error("eg");
})};
_.eQ8=function(){if(!aiF())return"";var l=window.google.gr;l.init({async:{schedule:"sync"},merchantId:"youtube"});l.start();l=l.finish();return l==null?"":l};
aiF=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.B=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.B,PolymerFakeBaseClassWithoutHtml);_.IB=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.m(_.IB,PolymerFakeBaseClassWithoutHtml);var yxu=window.ShadyDOM;var bCA,X5u,Vfq,ZCp,CFx,oGp,Tl,Ze;bCA=_.a("enable_shadydom_free_scoped_query_methods");X5u=_.a("enable_shadydom_free_scoped_node_methods");Vfq=_.a("enable_shadydom_free_scoped_readonly_properties_batch_one");ZCp=_.a("enable_shadydom_free_parent_node");CFx=_.a("enable_shadydom_free_children");oGp=_.a("enable_shadydom_free_last_child");Tl=window.ShadyDOM;_.Ws=Tl&&Tl.noPatch&&Tl.wrap?Tl.wrap:Tl?function(l){return Tl.patch(l)}:function(l){return l};
Ze=function(l){if(l instanceof ShadowRoot)this.host=(0,_.Ws)(l.host),this.root=l;else if(l.$$){this.host=(0,_.Ws)(l);var e;this.root=(e=l.root)!=null?e:this.host}else if(l.polymerController){this.host=(0,_.Ws)(l);var O;this.root=(O=this.host.shadowRoot)!=null?O:this.host}else this.root=this.host=(0,_.Ws)(l)};
zmT();MfA();$fq();Wnp();uKq();var kmH={querySelector:function(l,e){e=KY2(e,JA(l));l=_.X0(l);return zV(l).prototype.querySelector.call(l,e)},
querySelectorAll:function(l,e){e=KY2(e,JA(l));l=_.X0(l);return zV(l).prototype.querySelectorAll.call(l,e)}},IiS={appendChild:function(l,e){var O=JA(l),E=_.EV(e);
return _.EGd(_.X0(l),O?_.M7(e,O,E):e)},
cloneNode:function(l,e){var O=_.EV(l);l=_.X0(l);e=zV(l).prototype.cloneNode.call(l,e);return O?V0(e,O):e},
contains:function(l,e){var O=JA(l),E=_.EV(e);return O!==E?!1:JLp(l,e)},
insertBefore:function(l,e,O){var E=JA(l),J=_.EV(e);l=_.X0(l);e=E?_.M7(e,E,J):e;return zV(l).prototype.insertBefore.call(l,e,O)},
removeChild:function(l,e){var O=JA(l);l=_.X0(l);e=O?V0(e,O):e;return zV(l).prototype.removeChild.call(l,e)},
replaceChild:function(l,e,O){var E=JA(l),J=_.EV(e);e=E?_.M7(e,E,J):J?V0(e,J):e;O=E?V0(O,E):O;l=_.X0(l);return zV(l).prototype.replaceChild.call(l,e,O)},
getRootNode:function(l,e){e=e===void 0?{composed:!0}:e;var O;if(((O=e)!=null?O:{}).composed)l=P8p(l);else{e=l;for(l=HeM(l);l;)e=l,l=FYd(l);l=e}return l}},gGT=Vfq?{firstChild:SYp,
nextSibling:Nud,previousSibling:DOA,firstElementChild:Qkg,lastElementChild:l28,nextElementSibling:vlT,previousElementSibling:rxV,childNodes:emx}:{};ZCp&&(gGT.parentNode=qYx);CFx&&(gGT.children=OCt);oGp&&(gGT.lastChild=xOq);bCA&&dfV(kmH);X5u&&dfV(IiS);iCT();var w5x=function(l){this.node=l instanceof ShadowRoot?l.host:l};
ALd();nGx();var I2x=new WeakMap;var yLW=Symbol("wd");var cLA=new Set(["tap","track","down","up"]),Fnx=_.a("pbcm_fi_query_decorators");var sg=function(){return _.IB.apply(this,arguments)||this};
_.m(sg,_.IB);_.X=sg.prototype;_.X.getState=function(){return this.store.getState()};
_.X.dispatch=function(l){this.store.dispatch(l)};
_.X.beforeRegister=function(){if(this&&typeof this==="object"){var l;var e=!!this.useSignals||!((l=this.polymerController)==null||!l.useSignals)}else e=!1;if(!e&&this.properties)for(e=_.b(Object.keys(this.properties)),l=e.next();!l.done;l=e.next()){var O=l.value;l=this.properties[O];if(l.selector){if(l.computed)throw Error("kg");O=["reduxPropertiesRecomputeTrigger",'"'+O+'"'].concat(_.kA(l.selectorArgs||[])).join(",");l.computed="recomputeReduxSelector("+O+")"}}};
_.X.attached=function(){var l=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){l.reduxPropertiesRecomputeTrigger++}));
_.a("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.X.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.X.recomputeReduxSelector=function(l,e){var O=_.ke.apply(2,arguments),E=this.properties[e].selector;if(!E)throw Error("ig`"+e);return E.apply(null,[this.store.getState()].concat(_.kA(O)))};
_.X.select=function(l){var e=_.ke.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return l.apply(null,[this.store.getState()].concat(_.kA(e)))};
_.Ji.Object.defineProperties(sg.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
sg.prototype.recomputeReduxSelector=sg.prototype.recomputeReduxSelector;_.L([_.T(),_.q("design:type",Number)],sg.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.L([_.m0()],sg);var Gl=[],slV={},Bs=function(){return zz.apply(this,arguments)||this};
_.m(Bs,zz);Bs.prototype._addPropertyEffect=function(l,e,O){if(e==="__observeEffects"&&O){var E,J=(E=O.info.method)!=null?E:O.info.methodName;if(J){var z=this[J];this[J]=function(){Gl.push(J);try{z==null||z.apply(this,arguments)}finally{Gl.pop()}}}}_.pi._addPropertyEffect.apply(this,[l,
e,O])};
Bs.prototype._setPendingProperty=function(l,e,O){if(Gl.length){var E=Gl[Gl.length-1],J;(J=slV[this.is])!=null&&J.has(E)||(GBg(this.is,E),_.Bm("polymerPropertyChangedInObserver",{componentName:this.is,observerName:E}))}return _.pi._setPendingProperty.apply(this,[l,e,O])};
_.L([gxL()],Bs);var BiT=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Ufx,jy={};_.a("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=jy);var F0=function(){return _.IB.apply(this,arguments)||this};
_.m(F0,_.IB);F0.prototype._setUnmanagedPropertyToNode=function(l,e,O){l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!0);if(O!==l[e]||typeof O==="object")l[e]=O;l.is&&l.polymerController&&l.polymerController!==l&&Hs(l.is,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!1)};
_.L([_.m0()],F0);PFu()&&(tP.prototype._setUnmanagedPropertyToNode=(new F0)._setUnmanagedPropertyToNode);_.egW={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(l){},set polymerController(l){}}]};var GV=function(){var l=zz.apply(this,arguments)||this;l.json=function(){};
return l};
_.m(GV,zz);GV.prototype.equals=function(l,e){return l===e};
GV.prototype.isEmpty=function(l){return!l||_.SM(l)&&l.length===0};
_.L([gxL()],GV);var mUx=function(l){l=$Cq(l);Lo.call(this,l)};
_.m(mUx,Lo);mUx.prototype.addProvider=function(l){l=l.key?l:$Cq([l])[0];var e=this.keyIdToIndex.get(l.key.id);if(e){if(qwL(l,this.providers[e]))throw Error("lg`"+l.key.displayName);}else Lo.prototype.addProvider.call(this,l)};
var yQS=new mUx([]);var pdx=!1;var Qlp={};pdx||(Swu(),pdx=!0);
Qlp.InjectBehavior={initializeInjection:function(){var l=this.provide;try{if((l=l!=null?l:[])&&l.length>0)for(var e=$Cq(l),O=_.b(e),E=O.next();!E.done;E=O.next())yQS.addProvider(E.value);var J=new Set;vGM(this.behaviors||[],J);e={};for(var z=_.b(J),M=z.next();!M.done;M=z.next()){var Z=M.value;Z.inject&&Object.assign(e,Z.inject)}this.inject&&Object.assign(e,this.inject);for(var u=_.b(Object.keys(e)),d=u.next();!d.done;d=u.next()){var g=d.value,w=e[g];try{this[g]=yQS.resolve(w)}catch(n){throw n;}}}catch(n){throw Error(n.message);
}}};var lEg;var OY8=/\bclass\b/.test(function(){}.toString()),Xpu=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Kq1=function(l){this.wasDefined=!0;Array.isArray(l)||l instanceof Array?(this.JSC$11345_getImpl=l[0],this.JSC$11345_setImpl=l[1]):this.JSC$11345_getImpl=l};
_.X=Kq1.prototype;_.X.getWithPath=function(l){return MWp(this.JSC$11345_getImpl(),l)};
_.X.setWithPath=function(l,e){var O=this;if(l.length)throw Error("mg");if(!this.JSC$11345_setImpl)throw Error("ng");y5(function(){O.JSC$11345_setImpl(e)})};
_.X.notifyPath=function(){throw Error("og");};
_.X.notifySplices=function(){throw Error("pg");};
_.X.getChangeRecordSignal=function(l,e){var O=this;if(l.length)throw Error("qg");return function(){var E=O.getWithPath(l);return{path:e!=null?e:"",base:E,value:E}}};
_.X.getSplicesSignal=function(){throw Error("rg");};
_.X.getPathMutationSignal=function(){throw Error("sg");};
_.X.pop=function(){throw Error("tg");};
_.X.push=function(){throw Error("ug");};
_.X.splice=function(){throw Error("vg");};
_.X.unshift=function(){throw Error("wg");};var Ba=function(l){var e=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(l)||l instanceof Array?(this.JSC$11350_getImpl=l[0],this.JSC$11350_setImpl=l[1]):this.JSC$11350_getImpl=l;this.wasDefined=!1;wX(function(){e.wasDefined=e.JSC$11350_getImpl()!==void 0})};
Ba.prototype.getWithPath=function(l){return MWp(this.JSC$11350_getImpl(),l)};
Ba.prototype.setWithPath=function(l,e){var O=this;if(l[l.length-1]!=="*"&&l[l.length-1]!=="splices"){if(l.length===0){if(!this.JSC$11350_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=e!==void 0);y5(function(){O.JSC$11350_setImpl(e)})}else{for(var E=wX(function(){return O.getWithPath([])}),J=0;J<l.length-1;J++){if(!E)return;
E=E[l[J]]}J=l[l.length-1];E&&(E[J]=e);this.wasDefined||(this.wasDefined=l.length>1||e!==void 0)}jW1(this,l,{pathComponents:l,value:e})}};
Ba.prototype.notifyPath=function(l,e){l.length===0?e&&this.setWithPath(l,e.value):jW1(this,l,{pathComponents:l,value:e==null?void 0:e.value,fallbackWhenUndefined:e==null?void 0:e.value})};
var jW1=function(l,e,O,E){if(l.setMutationSignal){var J=++l.mutationIndex,z=[l.observedPath],M=l.observedPath,Z;e.length===0&&(Z=M);for(var u=0;u<e.length;u++){var d=M.subPaths[e[u]];if(!d)break;z.push(d);M=d;u===e.length-1&&(Z=d)}for(e=!1;z.length;)M=z.shift(),M.data={index:J,mutation:O,spliceMutationIndex:E},e||(e=M===Z),e&&z.push.apply(z,_.kA(Object.values(M.subPaths)));y5(function(){l.setMutationSignal(J)})}};
Ba.prototype.notifySplices=function(l,e){var O=this,E=wX(function(){return O.getWithPath(l)}),J=[].concat(_.kA(l),["splices"]);
jW1(this,J,{pathComponents:J,value:{indexSplices:e}});if(E==null?0:E.length)e=this.mutationIndex,J=[].concat(_.kA(l),["length"]),jW1(this,J,{pathComponents:J,value:E.length},e)};
var HwS=function(l,e,O,E,J,z){l.notifySplices(O,[{index:E,addedCount:J,removed:z,object:e,type:"splice"}])},cQk=function(l,e){l=l.observedPath;
for(var O=0;O<e.length;O++){var E=e[O],J=l.subPaths[E];J||(J={pathComponents:e.slice(0,O+1),subPaths:{}},l.subPaths[E]=J);l=J}},fiq=function(l,e,O){cQk(l,e);
if(!l.getMutationSignal){var E=_.b(_.AF(l.mutationIndex,void 0,"HavCgf"));l.getMutationSignal=E.next().value;l.setMutationSignal=E.next().value}var J=l.getMutationSignal;return _.mF(function(){J();return O(FqF(l,e))},void 0,"BYaPo")};
Ba.prototype.getChangeRecordSignal=function(l,e){var O=this,E=this.mutationIndex,J;return fiq(this,l,function(z){if(z&&z.index>E){var M=z.mutation;E=z.index;J=void 0}z=wX(function(){return O.getWithPath(l)});
if(M){var Z=M.pathComponents[M.pathComponents.length-1],u=[].concat(_.kA(M.pathComponents));if(Z==="splices"||Z==="length")return{base:z,path:(e?[e].concat(_.kA(u)):u).join("."),value:M.value};var d=l.length>u.length?l:u,g;return{base:z!=null?z:M.fallbackWhenUndefined,path:(e?[e].concat(_.kA(d)):d).join("."),value:(g=wX(function(){return O.getWithPath(d)}))!=null?g:M.fallbackWhenUndefined}}J||(J={base:z,
path:(e?[e].concat(_.kA(l)):l).join("."),value:z});return J})};
Ba.prototype.getSplicesSignal=function(l){var e=this.mutationIndex,O;return fiq(this,l,function(E){if(E&&E.index>e&&E.spliceMutationIndex!==e){var J=E.mutation;e=E.index;O=void 0}return J&&J.pathComponents[J.pathComponents.length-1]==="splices"?O=E=J.value:O})};
Ba.prototype.getPathMutationSignal=function(l){var e=this;cQk(this,l);if(!this.getMutationSignal){var O=_.b(_.AF(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=O.next().value;this.setMutationSignal=O.next().value}var E=this.getMutationSignal,J=this.mutationIndex,z;return _.mF(function(){E();var M=FqF(e,l);if(M&&M.index>J&&M.mutation&&VW2(M.mutation.pathComponents,l)){var Z=M.mutation;J=M.index}if(!z||J!==z.index){var u,d;M=(d=wX(function(){return e.getWithPath(l)}))!=null?d:(u=Z)==null?
void 0:u.fallbackWhenUndefined;
z={index:J,value:M}}return z},void 0,"Aumsyf")};
var FqF=function(l,e){l=l.observedPath;e=_.b(e);for(var O=e.next();!O.done;O=e.next())l=l.subPaths[O.value];return l.data};
Ba.prototype.pop=function(l){var e=this,O=wX(function(){return e.getWithPath(l)});
if(!(O instanceof Array))throw Error("yg");var E=O.length>0,J=O.pop();E&&HwS(this,O,l,O.length,0,[J]);return J};
Ba.prototype.push=function(l){var e=_.ke.apply(1,arguments),O=this,E=wX(function(){return O.getWithPath(l)});
if(!(E instanceof Array))throw Error("zg");var J=E.length,z=E.push.apply(E,_.kA(e));e.length&&HwS(this,E,l,J,e.length,[]);return z};
Ba.prototype.splice=function(l,e,O){var E=_.ke.apply(3,arguments),J=this,z=wX(function(){return J.getWithPath(l)});
if(!(z instanceof Array))throw Error("Ag");e<0?e=z.length-Math.floor(-e):e&&(e=Math.floor(e));var M=z.splice.apply(z,[e,O].concat(_.kA(E)));(E.length||M.length)&&HwS(this,z,l,e,E.length,M);return M};
Ba.prototype.unshift=function(l){var e=_.ke.apply(1,arguments),O=this,E=wX(function(){return O.getWithPath(l)});
if(!(E instanceof Array))throw Error("Bg");var J=E.unshift.apply(E,_.kA(e));e.length&&HwS(this,E,l,0,e.length,[]);return J};var RnC=!0,TZH=!1,tcq=!1,sWS=!1,Pa=!1,GmH=0;sWS=!1;GmH=0;RnC=!0;Pa=TZH=tcq=!1;var Ug=function(l,e,O){this.model=l;this.unknownSignalResolver=e;this.options=O;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];e=_.b(iYx());l=e.next().value;e=e.next().value;this.owner=l;this.disposeImpl=e};
Ug.prototype.dispose=function(){if(!this.isDisposed){for(var l=_.b(this.childSignalProxies),e=l.next();!e.done;e=l.next())e.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var BZk=function(l,e){l=_.X7(l.owner);try{e()}finally{_.X7(l)}};
Ug.prototype.effect=function(l){BZk(this,function(){_.Yo(l)})};
var Pok=function(l,e){l.options!=null||(l.options={});var O;(O=l.options).immutableProps!=null||(O.immutableProps=new Set);l.options.immutableProps.add(e)},LOM=function(l,e){e=""+e;
UUS(l,e);var O,E;if((O=l.options)==null?0:(E=O.immutableProps)==null?0:E.has(e))return!0;var J;if((J=l.model.__signalCache)==null?0:J.has(e))O=l.model.__signalCache.get(e),Array.isArray(O)&&Pok(l,e);var z,M,Z;return(Z=(z=l.options)==null?void 0:(M=z.immutableProps)==null?void 0:M.has(e))!=null?Z:!1},Yzi=function(l,e){var O;
l.unknownSignalResolver&&(O=l.unknownSignalResolver(e));var E,J;((E=l.options)==null?0:(J=E.immutableProps)==null?0:J.has(e))?O!=null||(O=new Kq1(_.AF(l.model[e],void 0,"bgwlkd"))):O!=null||(O=new Ba(_.AF(l.model[e],void 0,"V1hou")));var z=l.model.hostElement;Object.defineProperty(l.model,e,{get:function(){hmx(z,e);return O.getWithPath([])},
set:function(M){cs(z,e);l.setWithPath([e],M)},
configurable:!0});return O},UUS=function(l,e){var O,E,J;
((O=l.model.__signalCache)==null||!O.has(e))&&((E=l.options)==null?0:(J=E.externalSignalProps)==null?0:J.has(e))&&l.model[e]},L1=function(l,e){e=""+e;
var O=l.signalCache[e];if(O!==void 0)return O;O=!1;UUS(l,e);var E;if((E=l.model.__signalCache)==null?0:E.has(e))if(O=l.model.__signalCache.get(e),Array.isArray(O))O=!0,Pok(l,e);else return l.signalCache[e]=l.model.__signalCache.get(e).signal,l.signalCache[e];var J,z;E=(z=(J=l.options)==null?void 0:J.reactivityMode)!=null?z:0;var M,Z;if(!((M=l.options)==null?0:(Z=M.reactiveProps)==null?0:Z.has(e))&&!O&&E===1)throw Error("Cg`"+e);J=O?hn0(l,e):Yzi(l,e);return l.signalCache[e]=J},hn0=function(l,e){var O=
Object.getOwnPropertyDescriptor(l.model.constructor.prototype,e),E=function(){return l.model[e]};
return new Kq1(O&&O.get&&!O.set?E:[E,function(J){l.model[e]=J}])};
Ug.prototype.getWithPath=function(l){var e=_.b(l);l=e.next().value;e=lJ(e);hmx(this.model.hostElement,""+l);return L1(this,l).getWithPath(e)};
Ug.prototype.setWithPath=function(l,e){if(l.length){cs(this.model.hostElement,l.join("."));var O=_.b(l);l=O.next().value;O=lJ(O);L1(this,l).setWithPath(O,e)}};
Ug.prototype.getPathMutationSignal=function(l){var e=_.b(l);l=e.next().value;e=lJ(e);return L1(this,l).getPathMutationSignal(e)};
Ug.prototype.notifyPath=function(l,e){var O=_.b(l);l=O.next().value;O=lJ(O);L1(this,l).notifyPath(O,e)};
var Lqq=function(l,e){if(e.type==="literal")return function(){return{rootWasDefined:!0,value:e.value}};
var O=UV(e.path),E=_.b(O),J=E.next().value;E=lJ(E);var z,M;if(e.type==="path"&&(O.length===1||((z=l.options)==null?0:(M=z.immutableProps)==null?0:M.has(J))))return function(){var w=l.getWithPath(O.slice(0,1)),n=MWp(w,O.slice(1));w=w!==void 0;Pa&&(w=L1(l,O[0]).wasDefined);return{rootWasDefined:w,value:n}};
var Z=L1(l,J);if(e.type==="path"){var u=Z.getPathMutationSignal(E);return function(){var w=Pa?Z.wasDefined:hF(l.owner,function(){return Z.getWithPath([])})!==void 0;
var n,k=(n=u())==null?void 0:n.value;return{rootWasDefined:w,value:k}}}if(e.type==="splices"){var d=Z.getSplicesSignal(E);
return function(){var w=d();return{rootWasDefined:Pa?Z.wasDefined:w!==void 0,value:w}}}var g=Z.getChangeRecordSignal(E,""+J);
return function(){var w=g();return{rootWasDefined:Pa?Z.wasDefined:w!==void 0,value:w}}},WOt=function(l,e,O){var E=O.map(function(Z){return Lqq(l,Z)}),J=O.length===0,z=[],M=O.length!==1||O[0].type!=="path"?!1:!0;
l.effect(function(){for(var Z=E.length,u=[],d=!!z.length,g=0;g<Z;g++){var w=E[g](),n=w.rootWasDefined;w=w.value;J||(J=n);u[g]=w;M&&(u[g+Z]=d?z[g]:u[g],z[g]=w)}J&&hF(l.owner,function(){return void e.apply(null,_.kA(u))})})},ZYd=function(l,e,O,E,J){var z=L1(l,e);
J!==void 0&&z.setWithPath([],J);WOt(l,function(){var M=_.ke.apply(0,arguments);cs(l.model.hostElement,e,!0);z.setWithPath([],O.apply(null,_.kA(M)))},E)};
Ug.prototype.arrayPush=function(l){var e=_.ke.apply(1,arguments),O=_.b(l),E=O.next().value;O=lJ(O);E=L1(this,E);return E.push.apply(E,[O].concat(_.kA(e)))};
Ug.prototype.arraySplice=function(l,e,O){var E=_.ke.apply(3,arguments),J=_.b(l),z=J.next().value;J=lJ(J);z=L1(this,z);return z.splice.apply(z,[J,e,O].concat(_.kA(E)))};
Ug.prototype.arrayUnshift=function(l){var e=_.ke.apply(1,arguments),O=_.b(l),E=O.next().value;O=lJ(O);E=L1(this,E);return E.unshift.apply(E,[O].concat(_.kA(e)))};
Ug.prototype.notifySplices=function(l,e){var O=_.b(l);l=O.next().value;O=lJ(O);L1(this,l).notifySplices(O,e)};var IEt=/([^\s]+?)\(([\s\S]*)\)/,nRL=/\.([^.]+)$/,ydg=/\\,/g,wpW=/&comma;/g,AdM=/\\(.)/g,mlA=[],aEp={"*":"wildcard",splices:"splices"};var seW=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"),FOL=/[A-Z]/,tcC=["class","hidden","id","on-dom-change"],Bru=new Set([].concat(_.kA(tcC),
["if","notify-dom-change","restamp"])),PEL=new Set([].concat(_.kA(tcC),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Uld=new Set(["restamp"]);var sog=new Set(["className","id"]);var qMt=Symbol(),xlt=window;var bwd=window;var $Ut=0,Zwg=0,tA=[],o_u=0,VcW=!1,Coq=document.createTextNode("");(new window.MutationObserver(u32)).observe(Coq,{characterData:!0});var vs=new Map,q7=0,qzk=function(l){this.mappedHandleId=l},dUT=function(l,e,O,E){this.mappedHandleId=l;
var J=this;this.mappedHandleId=l;this.callback=e;this.waitTime=O;this.schedulerPriority=E;this.handleId=_.UD.addJob(function(){J.callback();vs.delete(J.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.m(dUT,qzk);dUT.prototype.cancel=function(){_.UD.cancelJob(this.handleId);vs.delete(this.mappedHandleId)};
var g_u=function(l,e){this.mappedHandleId=l;var O=this;this.mappedHandleId=l;this.callback=e;this.handleId=Wq2(function(){O.callback();vs.delete(O.mappedHandleId)})};
_.m(g_u,qzk);g_u.prototype.cancel=function(){var l=this.handleId-Zwg;l<0||tA.length<=l||(tA[l]=null);vs.delete(this.mappedHandleId)};var n_8=function(){};
n_8.prototype.cancel=function(){this.jobHandle!==void 0&&(iwx(this.jobHandle),this.jobHandle=void 0)};
n_8.prototype.run=function(l,e,O){var E=this;this.cancel();this.callback=l;this.jobHandle=_.N7(function(){l();E.callback=void 0},e,O)};
n_8.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var wdW=new WeakMap;var v_S=eJ(function(l){for(var e=l,O=0;O<3;O++)e=Object.getPrototypeOf(e);delete e.prototype.connectedCallback;var E=function(){return l.apply(this,arguments)||this};
_.m(E,l);E.prototype._attachDom=function(J){if(!J)return null;var z=(0,_.Ws)(this.hostElement);z.attachShadow({mode:"open",shadyUpgradeFragment:J});z.shadowRoot.appendChild(J);return z.shadowRoot};
E.prototype._takeAttributes=function(){for(var J=this.hostElement.attributes,z=0;z<J.length;z++){var M=J[z],Z=void 0,u=void 0;(u=(Z=this).__attributeReaction)==null||u.call(Z,M.name,null,M.value)}};
E.prototype._readyClients=function(){l.prototype._readyClients.call(this);this.root=this};
E.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);l.prototype.connectedCallback.call(this)};
_.Ji.Object.defineProperties(E,{template:{configurable:!0,enumerable:!0,get:function(){return E.prototype._template}}});
return E}),NZC=eJ(function(l){var e=function(){return l.apply(this,arguments)||this};
_.m(e,l);e.prototype.created=function(){if(this.__notifyEffects)for(var O=_.b(Object.values(this.__notifyEffects)),E=O.next();!E.done;E=O.next()){E=_.b(E.value);for(var J=E.next();!J.done;J=E.next())J.value.fn=mUp}if(this.__reflectEffects)for(O=_.b(Object.values(this.__reflectEffects)),E=O.next();!E.done;E=O.next())for(E=_.b(E.value),J=E.next();!J.done;J=E.next())J.value.fn=yQW};
e.prototype._addEventListenerToNode=function(O,E,J){O=De(O);GL(O,E,J)||l.prototype._addEventListenerToNode.call(this,O,E,J)};
e.prototype._removeEventListenerFromNode=function(O,E,J){O=De(O);BQ(O,E,J)||l.prototype._removeEventListenerFromNode.call(this,O,E,J)};
e.prototype._propertiesChanged=function(O,E,J){if(this.__dataToNotify&&this.__notifyEffects)for(var z=_.b(Object.keys(this.__dataToNotify)),M=z.next();!M.done;M=z.next()){M=M.value;var Z=Iig(M);this.__notifyEffects[Z]||delete this.__dataToNotify[M]}else this.__dataToNotify=null;l.prototype._propertiesChanged.call(this,O,E,J)};
e.prototype.fire=function(O,E,J){E=E===void 0?{}:E;var z;return _.$u(De((z=J==null?void 0:J.node)!=null?z:this),O,E,J)};
e.prototype._ensureAttribute=function(O,E){var J=De(this);J.hasAttribute(O)||hA(J,E,O)};
e.prototype.isLightDescendant=function(O){var E=De(this);return De(E)!==O&&_.ud(E).contains(O)&&_.ud(E).getRootNode()===_.ud(O).getRootNode()};
return e});
_.Ko.ready=function(){var l;((l=this.hostElement)!=null?l:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var e;((e=this.hostElement)!=null?e:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.sl._subscribeIronResize=function(l){var e;((e=l.hostElement)!=null?e:l).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.sl._unsubscribeIronResize=function(l){var e;((e=l.hostElement)!=null?e:l).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var jWx=[Array,Boolean,Date,Number,Object,String],Q0=function(l,e,O,E){this.polySiInfo=l;this.polySiParams=e;this.polySiContext=O;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;E||this instanceof HTMLElement&&(E=this);if(!E)throw Error("Jg");this.allowedProps=e.allowedProps;this.hostElement=E;this.is=l.is;this.upgradeDisabled=!!e.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");l=new Set(e.reactiveSchemas.filter(function(J){return J.type!==
"observe"}).map(function(J){return J.propertyKey}));
this.signalProxy=new Ug(this,void 0,{reactiveProps:l,reactivityMode:e.reactivityMode});this.__dataHasAccessor={};e=_.b(e.reactiveSchemas);for(l=e.next();!l.done;l=e.next())l=l.value,l.type==="signal"&&(this.__dataHasAccessor[l.propertyKey]=!0);this.upgradeDisabled||rQ0(this)};
Q0.prototype.getExtraMethodsToForward=function(){return[]};
var rQ0=function(l){l.polySiContext.didRegister||(l.registered(),l.polySiContext.didRegister=!0);l.polySiContext.finalizedTemplate||(l.polySiContext.finalizedTemplate={},l.polySiParams.templateGetter&&(l.polySiContext.finalizedTemplate.processedTemplate=Mcd(l.polySiParams.templateGetter,l.polySiParams.is)));DUC(l);var e=l.hostElement;e.loggingStatus!=null||(e.loggingStatus={});e.loggingStatus.isInitializing=!0;wX(function(){return void l.created()});
e.loggingStatus.isInitializing=!1;l.isPolySiElementConnected&&SzF(l)},SzF=function(l){l.didCallReady||(wX(function(){return void l.ready()}),l.didCallReady=!0);
l.isAttached=!0;l.attached()};
_.X=Q0.prototype;_.X.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||SzF(this)};
_.X.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.X.attributeChangedCallback=function(l,e,O){if(this.upgradeDisabled)l==="disable-upgrade"&&O===null&&(this.upgradeDisabled=!1,rQ0(this));else if(e!==O){var E=_.Ic(l),J=this.polySiContext.typesForSignals[E];if(J&&(!this.reflecting||_.a("polysi_attribute_changed_serializing_killswitch"))){switch(J){case Object:try{var z=JSON.parse(O)}catch(Z){z=O}break;case Array:try{z=JSON.parse(O)}catch(Z){z=null}break;case Date:z=isNaN(O)?String(O):Number(O);z=new Date(z);break;case Boolean:z=O!==null;break;case Number:z=
Number(O);break;default:z=O}this[E]=z}E=_.b(this.polySiParams.behaviors);for(J=E.next();!J.done;J=E.next())z=void 0,(z=J.value.attributeChanged)==null||z.call(this,l,e,O);var M;(M=this.attributeChanged)==null||M.call(this,l,e,O)}};
_.X.attributeChangedCallbackWrapper=function(l,e,O){this.attributeChangedCallback(l,e,O)};
_.X.setPropertiesFromInitialAttributeValues=function(){for(var l=0;l<this.hostElement.attributes.length;l++){var e=this.hostElement.attributes[l];(e.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(e.name))&&this.attributeChangedCallback(e.name,null,e.value)}};
_.X.created=function(){this.provide=this.polySiParams.provide;var l;(l=this.initializeInjection)==null||l.call(this);l=_.b(this.polySiParams.reactiveSchemas);for(var e=l.next();!e.done;e=l.next())e=e.value,e.type==="signal"&&(this.mutablePropNames.add(e.propertyKey),L1(this.signalProxy,e.propertyKey));KqT(this,this.polySiInfo,this.polySiParams.behaviors);l=_.b(this.polySiParams.reactiveSchemas);for(e=l.next();!e.done;e=l.next())e=e.value,e.type==="signal"&&e.value!==void 0&&(this.signalProxy.model[e.propertyKey]=
typeof e.value==="function"?e.value.call(this):e.value);if(this.polySiParams.signalProperties)for(l=_.b(this.polySiParams.signalProperties),e=l.next();!e.done;e=l.next()){e=e.value;var O=void 0;((O=this.__signalCache)==null?0:O.has(e))||(this.signalProxy.model[e]=void 0)}sWS||QWF(this);pdp(this);l=_.b(this.polySiParams.behaviors);for(e=l.next();!e.done;e=l.next())O=void 0,(O=e.value.created)==null||O.call(this);var E;(E=this.polySiInfo.created)==null||E.call(this)};
_.X.registered=function(){var l=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var e=Object.getPrototypeOf(this);e.addReactiveSchema=function(Z){l.polySiParams.reactiveSchemas.push(Z)};
for(var O=_.b(this.polySiParams.behaviors),E=O.next();!E.done;E=O.next()){var J=void 0;(J=E.value.beforeRegister)==null||J.call(e)}var z;(z=this.polySiInfo.beforeRegister)==null||z.call(e);e.addReactiveSchema=cQu;O=_.b(this.polySiParams.behaviors);for(E=O.next();!E.done;E=O.next())J=void 0,(J=E.value.registered)==null||J.call(e);var M;(M=this.polySiInfo.registered)==null||M.call(e)};
_.X.ready=function(){var l;(l=this.beforeReady)==null||l.call(this);sWS&&QWF(this);var e;if(l=(e=this.polySiContext.finalizedTemplate)==null?void 0:e.processedTemplate){l=znL(l.template,l.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:l.hasInsertionPoint,thisCtx:this});e=l.nodesById;l=l.root;var O=this.hostElement;var E=E===void 0?!1:E;O=(0,_.Ws)(O);if(!O.attachShadow)throw Error("Cd");if(!O.shadowRoot||E)O.attachShadow({mode:"open",shadyUpgradeFragment:l}),O.shadowRoot.appendChild(l);
this.root=O.shadowRoot;this.$=e}xUH(this);E=_.b(this.polySiParams.behaviors);for(e=E.next();!e.done;e=E.next())l=void 0,(l=e.value.ready)==null||l.call(this);var J;(J=this.polySiInfo.ready)==null||J.call(this)};
_.X.attached=function(){for(var l=_.b(this.polySiParams.behaviors),e=l.next();!e.done;e=l.next()){var O=void 0;(O=e.value.attached)==null||O.call(this)}var E;(E=this.polySiInfo.attached)==null||E.call(this)};
_.X.detached=function(){for(var l=_.b(this.polySiParams.behaviors),e=l.next();!e.done;e=l.next()){var O=void 0;(O=e.value.detached)==null||O.call(this)}var E;(E=this.polySiInfo.detached)==null||E.call(this)};
var DUC=function(l){for(var e=_.b(l.polySiParams.behaviors),O=e.next();!O.done;O=e.next())if(O=O.value,O.listeners)for(var E in O.listeners)XdV(l,l.hostElement,E,O.listeners[E]);if(l.polySiInfo.listeners)for(var J in l.polySiInfo.listeners)XdV(l,l.hostElement,J,l.polySiInfo.listeners[J])},XdV=function(l,e,O,E,J){l=bYT(l,E,J);
GL(e,O,l)||e.addEventListener(O,l);return l},QWF=function(l){for(var e=_.b(l.polySiParams.reactiveSchemas),O=e.next();!O.done;O=e.next())O=O.value,O.type==="compute"||O.type==="computeWithMethod"?uft(l.signalProxy,O,l):O.type==="redux"?$l8(l.signalProxy,O,l.store):O.type==="signal"&&O.readOnly&&oRL(l.signalProxy,O)},xUH=function(l){for(var e=_.b(l.polySiParams.reactiveSchemas),O=e.next(),E={};!O.done;E={schema$jscomp$12:void 0},O=e.next())E.schema$jscomp$12=O.value,E.schema$jscomp$12.type==="notify"?
dlx(l.signalProxy,E.schema$jscomp$12,l.hostElement):E.schema$jscomp$12.type==="observe"?gRg(l.signalProxy,E.schema$jscomp$12,l):E.schema$jscomp$12.type==="reflect"&&l.signalProxy.effect(function(z){return function(){var M=l.signalProxy.getWithPath([z.schema$jscomp$12.propertyKey]);
l.reflecting=!0;KOx(l.hostElement,z.schema$jscomp$12.propertyKey,M,!0);l.reflecting=!1}}(E));
if(l.reflectedAttributes)for(e=_.b(Object.entries(l.reflectedAttributes)),E=e.next(),O={};!E.done;O={key$jscomp$881:void 0,value$jscomp$8837:void 0},E=e.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;O.key$jscomp$881=E;O.value$jscomp$8837=J;l.signalProxy.effect(function(z){return function(){l.reflecting=!0;KOx(l.hostElement,z.key$jscomp$881,(0,z.value$jscomp$8837)(),!0);l.reflecting=!1}}(O))}};
_.X=Q0.prototype;_.X._setPendingProperty=function(l,e){this.set(l,e);return!1};
_.X._enableProperties=function(){};
_.X._setPendingPropertyOrPath=function(l,e){this.notifyPath(l,e);return!1};
_.X._addPropertyEffect=function(){};
_.X._stampTemplate=function(){throw Error("Kg");};
_.X.fire=function(l,e,O){e=e===void 0?{}:e;O=O===void 0?{}:O;var E,J,z={bubbles:(E=O.bubbles)!=null?E:!0,cancelable:!!O.cancelable,composed:(J=O.composed)!=null?J:!0},M;return _.$u(Fqt((M=O.node)!=null?M:this.hostElement),l,e,z)};
_.X.get=function(l,e){var O=UV(l);return e?MWp(e,O):l==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(O)};
_.X.linkPaths=function(){};
_.X.listen=function(l,e,O){l=Fqt(l);this.boundListeners!=null||(this.boundListeners=new WeakMap);var E=this.boundListeners.get(l);E||(E={},this.boundListeners.set(l,E));var J=e+O;E[J]||(E[J]=XdV(this,l,e,O))};
_.X.notifyPath=function(l,e){this.signalProxy.notifyPath(UV(l),arguments.length===2?{value:e}:void 0)};
_.X.canNotifyPath=function(l){return this.mutablePropNames.has(l)&&!LOM(this.signalProxy,l)};
_.X.notifySplices=function(l,e){this.signalProxy.notifySplices(UV(l),e)};
_.X.pop=function(l){var e=this.signalProxy;l=UV(l);var O=_.b(l);l=O.next().value;O=lJ(O);return L1(e,l).pop(O)};
_.X.push=function(l){var e=_.ke.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[UV(l)].concat(_.kA(e)))};
_.X.set=function(l,e,O){if(O)throw Error("Lg");l==="hidden"?this.hostElement.hidden=!!e:this.signalProxy.setWithPath(UV(l),e)};
_.X.setProperties=function(l){l=_.b(Object.entries(l));for(var e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;this[e]=O}};
_.X.splice=function(l,e,O){var E=_.ke.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[UV(l),e,O].concat(_.kA(E)))};
_.X.unlinkPaths=function(){};
_.X.unlisten=function(l,e,O){l=Fqt(l);if(this.boundListeners){var E=this.boundListeners.get(l);if(E){O=e+O;var J=E[O];J&&(BQ(l,e,J)||l.removeEventListener(e,J),delete E[O])}}};
_.X.unshift=function(l){var e=_.ke.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[UV(l)].concat(_.kA(e)))};
_.Ji.Object.defineProperties(Q0.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 Lqd=[Array,Boolean,Date,Number,Object,String];var v_W=!1;var Y5=function(){var l=HTMLElement.apply(this,arguments)||this;l.restamp=!1;l.notifyDomChange=!1;l.JSC$11458_didCallConnected=!1;l.JSC$11458_renderDebouncer=null;l.disableTemplateUpdateSignalImpl=xT()?void 0:_.AF(!1,void 0,"zLXz1e");var e;l.getDisableTemplateUpdate=(e=l.disableTemplateUpdateSignalImpl)==null?void 0:e[0];var O;l.setDisableTemplateUpdate=(O=l.disableTemplateUpdateSignalImpl)==null?void 0:O[1];return l};
_.m(Y5,HTMLElement);var lkq=function(l){l.conditionSignalImpl!=null||(l.conditionSignalImpl=new Ba(_.AF(!1,void 0,"wcuOQ")));return l.conditionSignalImpl};
_.X=Y5.prototype;_.X.showHideChildren=function(l){eNR(this,l,this.if)};
_.X.attributeChangedCallback=function(l,e,O){if(this.JSC$11458_didCallConnected)throw Error("Pg`"+l);l==="notify-dom-change"?this.notifyDomChange=O!==null:l==="restamp"&&(this.restamp=O!==null)};
_.X.debounceRender=function(){this.JSC$11458_renderDebouncer=_.Ci(this.JSC$11458_renderDebouncer,U0,this.JSC$11458_renderImpl.bind(this));_.ot(this.JSC$11458_renderDebouncer)};
_.X.disconnectedCallback=function(){var l=(0,_.Ws)(this).parentNode;(!l||l.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in l&&!l.host)&&Oqq(this)};
_.X.connectedCallback=function(){var l=this;this.JSC$11458_didCallConnected=!0;RnC?NZq():this.style.display="none";this.parentSignalProxy.effect(function(){lkq(l).getWithPath([]);l.debounceRender()})};
_.X.render=function(){_.gI()};
_.X.JSC$11458_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var l=this.if;if(l){a:{var e=(0,_.Ws)(this).parentNode;if(this.hasInstance()){var O=this.instance.children;if((O==null?0:O.length)&&(0,_.Ws)(this).previousSibling!==O[O.length-1])for(var E=0;E<O.length;E++)(0,_.Ws)(e).insertBefore(O[E],this)}else{if(!e){e=!1;break a}Emq(this,e)}e=!0}if(!e)return}else this.restamp&&Oqq(this);eNR(this,!1,l);l&&Jh1(this);TZH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.X.hasInstance=function(){return!!this.instance};
var Emq=function(l,e){var O=l.parentSignalProxy;if(xT()){var E=_.b(_.AF(!0,void 0,"wXzgnc"));var J=E.next().value;E=E.next().value;O=l.parentSignalProxy}else{var z;var M=new Ug((z=X46(l))!=null?z:{},function(u){var d=L1(l.parentSignalProxy,u).getChangeRecordSignal([]);u=_.AF(void 0,void 0,"mryEkc");var g=new Ba(u);M.effect(function(){if(l.getDisableTemplateUpdate&&!l.getDisableTemplateUpdate()){var w=d();g.notifyPath(UV(w.path),{value:w.value})}});
return g});
l.parentSignalProxy.childSignalProxies.push(M);var Z=O=M}O=znL(l.templateInfo,l.templateInfo.nodeInfoList,O,{eventListenerHost:l.eventListenerHost,hasInsertionPoint:l.templateInfo.hasInsertionPoint,thisCtx:l.eventListenerHost,enabledSignal:xT()?J:void 0,getModel:function(){return X46(l)}}).root;
l.instance={root:O,children:[],hidden:!1,signalProxy:Z,getTemplateUpdatesEnabled:J,setTemplateUpdatesEnabled:E};Z=_.b(O.childNodes);for(J=Z.next();!J.done;J=Z.next())l.instance.children.push(J.value);(0,_.Ws)(e).insertBefore(l.instance.root,l)},X46=function(l){if((l=l.parentSignalProxy.model)&&!l.hostElement){var e={},O;
for(O in l)l.hasOwnProperty(O)&&(e[O]=l[O]);return e}},Oqq=function(l){if(l.instance){var e=l.instance.children;
if(e.length){var O=(0,_.Ws)(e[0]).parentNode;if(O){O=(0,_.Ws)(O);for(var E=0;E<e.length;E++)O.removeChild(e[E])}}xT()?l.instance.setTemplateUpdatesEnabled(!1):l.instance.signalProxy.dispose();l.instance=void 0}},eNR=function(l,e,O){e=e||!O;
l.instance&&l.instance.hidden!==e&&(l.instance.hidden=e,qzu(e,l.instance.children))},Jh1=function(l){if(xT()){var e=l.instance;
e&&hF(l.parentSignalProxy.owner,function(){return!e.getTemplateUpdatesEnabled()})&&e.setTemplateUpdatesEnabled(!0)}else l.setDisableTemplateUpdate(!1)};
_.Ji.Object.defineProperties(Y5.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var l=this;return hF(this.parentSignalProxy.owner,function(){return lkq(l).getWithPath([])})},
set:function(l){l||(xT()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));lkq(this).setWithPath([],!!l)}}});
_.Ji.Object.defineProperties(Y5,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Y5);var zNS=[],hw=function(){var l=HTMLElement.apply(this,arguments)||this;l.as="item";l.indexAs="index";l.itemsIndexAs="itemsIndex";l.targetFramerate=20;l.notifyDomChange=!1;l.isDetached=!1;l.JSC$11465_renderDebouncer=null;l.instances=[];l.chunkingId=null;l.chunkCount=null;l.shouldMeasureChunk=!1;l.shouldContinueChunking=!1;l.renderStartTime=null;l.JSC$11465_didCallConnected=!1;return l};
_.m(hw,HTMLElement);var bq0=function(l){l.itemSignalImpl!=null||(l.itemSignalImpl=new Ba(_.AF(zNS,void 0,"YBrqgf")));return l.itemSignalImpl},MgF=function(l,e){Array.isArray(e)||(e=zNS);
bq0(l).setWithPath([],e)};
_.X=hw.prototype;_.X.showHideChildren=function(l){for(var e=_.b(this.instances),O=e.next();!O.done;O=e.next())qzu(l,O.value.children)};
_.X.notifyPath=function(l,e){l=UV(l);l[0]==="items"&&(l.length===1?MgF(this,e):bq0(this).setWithPath(l.slice(1),e))};
_.X.canNotifyPath=function(l){return l==="items"};
_.X.attributeChangedCallback=function(l,e,O){if(this.JSC$11465_didCallConnected)throw Error("Qg`"+l);l==="as"?this.as=O:l==="index-as"?this.indexAs=O:l==="items-index-as"?this.itemsIndexAs=O:l==="initial-count"?this.initialCount=Number(O):l==="notify-dom-change"?this.notifyDomChange=O!==null:l==="target-framerate"&&(this.targetFramerate=Number(O))};
_.X.disconnectedCallback=function(){this.isDetached=!0;for(var l=0;l<this.instances.length;l++)Vgi(this,l);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.X.connectedCallback=function(){var l=this,e=bq0(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var J=e(),z=UV(J.path);if(z[0]===void 0||z[0]==="splices"||z[0]==="length")l.debounceRender();else{var M=z[0];if(M=l.instances[typeof M==="string"?Math.floor(Number(M)):M])z=[l.as].concat(_.kA(z.slice(1))),M.signalProxy.notifyPath(z,J)}});
this.JSC$11465_didCallConnected=!0;RnC?NZq():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var O=(0,_.Ws)((0,_.Ws)(this).parentNode),E=0;E<this.instances.length;E++)O.insertBefore(this.instances[E].root,this);this.chunkingId&&this.render()}};
_.X.debounceRender=function(){this.JSC$11465_renderDebouncer=_.Ci(this.JSC$11465_renderDebouncer,U0,this.JSC$11465_renderImpl.bind(this));_.ot(this.JSC$11465_renderDebouncer)};
_.X.render=function(){this.debounceRender();_.gI()};
_.X.JSC$11465_renderImpl=function(){var l=this,e=this.items,O=Zq1(this,e.length);utq(this,e,O);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){l.chunkingId=null;if(l.shouldMeasureChunk){var E=performance.now()-l.renderStartTime;l.chunkCount=Math.round(Math.ceil(1E3/l.targetFramerate)/E*l.chunkCount)||1}l.shouldContinueChunking&&l.debounceRender()}));
TZH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var Zq1=function(l,e){var O=e,E=l.instances.length;if(l.initialCount){if(l.chunkCount){var J=Math.min(Math.max(e-E,0),l.chunkCount);O=Math.min(E+J,e)}else O=Math.min(e,l.initialCount),J=Math.max(O-E,0),l.chunkCount=J||1;l.shouldMeasureChunk=J===l.chunkCount;l.shouldContinueChunking=O<e;l.renderStartTime=performance.now()}return O},utq=function(l,e,O){for(var E=0;E<O;E++){var J=l.instances[E],z=e[E];
J?(J.signalProxy.setWithPath([l.as],z),J.signalProxy.setWithPath([l.indexAs],E)):Cw0(l,z,E)}for(e=l.instances.length-1;e>=E;e--)O=l,J=e,Vgi(O,J),_.b(O.instances.splice(J,1)).next().value.signalProxy.dispose()},Vgi=function(l,e){l=l.instances[e];
e=(0,_.Ws)(l.root);for(var O=0;O<l.children.length;O++)e.appendChild(l.children[O])},Cw0=function(l,e,O){var E={};
e=Object.assign({},omF(l),(E[l.as]=e,E[l.indexAs]=O,E[l.itemsIndexAs]=O,E));var J=new Ug(e,function(M){if(M!==l.as&&M!==l.indexAs){if(M===l.itemsIndexAs)return L1(J,l.indexAs);var Z=L1(l.parentSignalProxy,M).getChangeRecordSignal([]);M=_.AF(void 0,void 0,"Mu2Bwb");var u=new Ba(M);J.effect(function(){var d=Z();u.notifyPath(UV(d.path),{value:d.value})});
return u}});
l.parentSignalProxy.childSignalProxies.push(J);E=znL(l.templateInfo,l.templateInfo.nodeInfoList,J,{eventListenerHost:l.eventListenerHost,getModel:function(){var M={};return Object.assign({},omF(l),(M[l.as]=J.model[l.as],M[l.indexAs]=J.model[l.indexAs],M[l.itemsIndexAs]=J.model[l.indexAs],M))},
hasInsertionPoint:l.templateInfo.hasInsertionPoint,thisCtx:l.eventListenerHost,methodInvocationRequirement:GmH,enabledSignal:l.stampingEnabled}).root;e={root:E,children:[],signalProxy:J};E=_.b(E.childNodes);for(var z=E.next();!z.done;z=E.next())e.children.push(z.value);E=(E=l.instances[O+1])?E.children[0]:l;(0,_.Ws)((0,_.Ws)(l).parentNode).insertBefore(e.root,E);l.instances[O]=e},omF=function(l){if((l=l.parentSignalProxy.model)&&!l.hostElement){var e={},O;
for(O in l)l.hasOwnProperty(O)&&(e[O]=l[O]);return e}};
hw.prototype.itemForElement=function(l){var e=this,O=this.instances.find(function(E){return E.children.includes(l)});
if(O)return hF(this.parentSignalProxy.owner,function(){return O.signalProxy.getWithPath([e.as])})};
hw.prototype.indexForElement=function(l){var e=this.instances.findIndex(function(O){return O.children.includes(l)});
return e>=0?e:void 0};
_.Ji.Object.defineProperties(hw.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var l=this;return hF(this.parentSignalProxy.owner,function(){return bq0(l).getWithPath([])})},
set:function(l){MgF(this,l)}},
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}}});
_.Ji.Object.defineProperties(hw,{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",hw);var $NH,WkR;_.LQ=new _.Xa("STATE_STORE_TOKEN");$NH=new _.Xa("SELECT_TOKEN");WkR=new _.Xa("DISPATCH_TOKEN");var lkV={getSelectFn:function(){var l;return(l=_.V2().resolve(_.MG($NH)))!=null?l:rQM},
getDispatchFn:function(){var l;return(l=_.V2().resolve(_.MG(WkR)))!=null?l:_.ls().dispatch.bind(_.ls())},
getAppStore:function(){return _.V2().resolve(_.LQ)}},DUq,xU8=!1;var Em2=void 0;var dNk=function(){};
dNk.prototype.hasAttribute=function(l){if(l==="dir")return!1;if(l==="disable-upgrade"){var e,O;return(O=(e=this.hostElement)==null?void 0:e.hasAttribute("disable-upgrade"))!=null?O:!1}throw Error("Rg`"+l);};
dNk.prototype.attributeChangedCallbackWrapper=function(l,e,O){if(l==="disable-upgrade"&&this.__isUpgradeDisabled&&O===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var E;((E=this.hostElement)!=null?E:this).isConnected&&this.connectedCallback()}else e===O||this.__isReflecting||this.attributeChangedCallback(l,e,O)};
dNk.prototype.getExtraMethodsToForward=function(){for(var l=this,e=[],O=_.b(gmq),E=O.next(),J={};!E.done;J={tagName$jscomp$53:void 0,name$jscomp$531:void 0},E=O.next())J.name$jscomp$531=E.value,E=void 0,J.name$jscomp$531==="_setPendingProperty"?(J.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),E=function(z){return function(M,Z,u){Hs(z.tagName$jscomp$53,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return l._setPendingProperty(M,Z,u)}}(J)):E=function(z){return function(){return l[z.name$jscomp$531].apply(l,
_.kA(_.ke.apply(0,arguments)))}}(J),e.push([J.name$jscomp$531,
E]);return e};
for(var Mgt=NZC(v_S((0,_.yX)(dNk))),CwM=["disabled","disable-upgrade"],iqR=(0,_.yX)(function(){}),w41=new Set(Object.getOwnPropertyNames(iqR.prototype)),gmV=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.kA(w41))),$N8=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),gmq=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),AhH=new Set([].concat(_.kA($N8),_.kA(gmq),_.kA(w41))),nmk=_.b(AhH),ak1=nmk.next();!ak1.done;ak1=nmk.next())BiT.add(ak1.value);var dNu={created:function(){pdp(this);this.initializeInjection()}};var yhq=!1,VN=window.ShadyDOM,RNg=["appendChild","insertBefore","removeChild","replaceChild"],fkp=[Node];VN&&fkp.push(VN.Wrapper);var UNu,Y_T,tgu={};var C4=new Set,Zu="",q_V="";var us,oX=new Set;var eEA=new Set("context didCallReady is info params signalProxy".split(" ")),EWx="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),JUt="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ksi=n_({entities:JHT}),Ikq=new eT(ksi);var mN1=function(){return _.IB.apply(this,arguments)||this};
_.m(mN1,_.IB);_.Ji.Object.defineProperties(mN1.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Ikq}}});
_.L([_.m0()],mN1);_.tw=[sg.prototype,mN1.prototype];_.q5={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var l=this,e={};setTimeout(function(){var O;return _.$u((O=l.hostElement)!=null?O:l,"yt-live-chat-add-tooltip-target",e)},0);
this.handler_=e.handler},
detached:function(){if(this.handler_){var l;this.handler_.removeElementFromSupportingTooltips((l=this.hostElement)!=null?l:this)}this.handler_=null}}};_.A3=new _.Xa("ICON_MANAGER_TOKEN");var yhC=[48,20,18,16,15,13,12],yUg=new Map,AUV=new Set,gWL=new Set,wNV=new Set,d$x=new Set,iWx=new Set,aDM=new Promise(function(l){var e=!1,O=!1,E=!1,J=[],z=function(M){if("detail"in M)if(M=M.detail,M.name==="yt-icons")nWV(M),e=!0;else if(M.name==="yt-sys-icons")nWV(M),O=!0;else{var Z;((Z=M.name)==null?0:Z.includes("yt-sys-icons"))&&M.size!==24&&(nWV(M,!0),J.push(M.size),J.length===yhC.length&&(E=!0))}e&&O&&E&&(window.removeEventListener("iron-iconset-added",z),l())};
window.addEventListener("iron-iconset-added",z)}),IDu=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"]]);_.va={};_.va.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.lG,computeHref_:function(l,e){e=e===void 0?!1:e;if(!l||l.commandExecutorCommand)return null;var O=B6u(l,e);return e||O!==null?O?_.a("enable_polymer_resin")?_.nU(O).toString():O:null:(_.hG(new _.Hk("computeHref was null",this.is,l)),null)},
computeOptionalHref_:function(l){return this.computeHref_(l,!0)},
computeNofollow_:function(l){return l?jXd(l)?"nofollow":null:null},
computeIcon_:function(l){return l&&l.iconType?_.w6(l.iconType):""},
resolveCommand:function(l,e,O){e=e===void 0?{}:e;return _.aX(l,this.hostElement,e,O===void 0?!1:O)}};var KkC,N5;_.p4C={};KkC=null;
N5={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_=kHT(this.viewroot));_.N7(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var l=this;this.unobserve_();if(_.a("kevlar_vimio_use_shared_monitor"))cUg(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var e=[];this.visibilityOptionVisible_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return l.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return l.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return l.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=e}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){pNL(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 l=_.R7(this.parentNode,function(O){var E,J=(E=O.polymerController)!=null?E:O;return!!J.getVisibilityObserverForChild&&J.getVisibilityObserverForChild()},!0);
if(l){var e;this.localVisibilityObserver_=((e=l.polymerController)!=null?e:l).getVisibilityObserverForChild()}else KkC||(KkC=kHT()),this.localVisibilityObserver_=KkC;return this.localVisibilityObserver_},visibilityCallback:function(l){l?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.a("kevlar_use_vimio_behavior")||(N5={});N5&&!_.a("kevlar_use_vimio_behavior")&&(delete N5.attached,delete N5.detached);_.p4C.YtVisibilityObserverBehavior=[N5];var joC={};joC.YtVisualElementBehavior=[_.p4C.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.a("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.a("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var l=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportShown(this,void 0,l)}},
onHidden:function(){if(_.a("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.a("kevlar_vimio_use_shared_monitor")){var l=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportHidden(this,void 0,l)}},
getVisibilityLogger:function(){return _.a("kevlar_use_vimio_behavior")?_.IX():null},
shouldSkipLogging:function(){if(_.hT("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var l=this.getParentRenderer&&this.getParentRenderer();if(!l)return!1;var e,O=(e=l.polymerController)!=null?e:l;if(!O.data)return!1;l=this.data.trackingParams;l=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:l;var E;e=(E=O.data)==null?void 0:E.trackingParams;var J,z;e=((J=O.data)==null?0:J.loggingDirectives)?(z=O.data)==null?void 0:z.loggingDirectives.trackingParams:e;return l&&e&&l===
e}}];var REq=new Map,FO;var ax8=function(l){this.layer=l},YD=function(l){return l.layer!==void 0?l.layer:l.parent?YD(l.parent):l.layer=0};var U$M;_.x={};U$M=0;_.x.YtRendererBehavior=[_.va.YtComponentBehavior,joC.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_:_.a("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var l,e;(e=(l=this.monitorScrollElement)!=null?l:this.hostElement)==null||e.removeEventListener("scroll",_.id(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();FKd(this.hostElement);Ulq(_.jQ(),this.hostElement);X$.delete(this.hostElement)},
registerRenderer:function(l){var e;((e=l.polymerController)!=null?e:l).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(l),this.markDirty())},
unregisterRenderer_:function(l){this.useVimio_||(this.childCache_.delete(l),this.markDirty())},
attached:function(){var l=this,e=this.getParentRenderer();if(e){var O,E,J;(E=(O=(J=e.polymerController)!=null?J:e).registerRenderer)==null||E.call(O,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var z,M;(M=(z=this.monitorScrollElement)!=null?z:this.hostElement)==null||M.addEventListener("scroll",_.id(this,this.onScroll))}_.UD.addJob(function(){TbA(l.hostElement)},8);
O=new ax8(this.screenLayer||void 0);(e=X$.get(e))&&e.layerNode&&(O.parent=e.layerNode);e={};jFt(this.hostElement,(e.isRenderer=!0,e.layerNode=O,e[koT]=this.data,e))},
getParentRenderer:function(){for(var l=this.hostElement.parentNode,e,O;l&&((e=X$.get(l))==null||!e.isRenderer)&&!((O=l.polymerController)!=null?O:l).isRenderer_;)l=l.parentNode||l.host;return l},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.a("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.LH("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.a("debug_web_ve_data")&&this.data.trackingParams){var l="";try{l=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(O){_.UW(O)}if(l){var e=eRx(l,1);e!==void 0&&(this.hostElement.dataset.veIndex=String(e));l=eRx(l,2);
l!==void 0&&(this.hostElement.dataset.ve=String(l))}}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,_.a("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.cf(this.data.loggingDirectives.trackingParams)),this.visualElement=_.mX(_.yN(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var l=this.data.targetId;_.hg1(_.jQ(),l,this.hostElement)}else Ulq(_.jQ(),this.hostElement)},
onScroll:function(){var l=Date.now();l-this.lastHandledScroll_<50||(this.lastHandledScroll_=l,this.markDirty())},
markDirty:function(){_.a("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Yeq(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var l=this.getParentRenderer();if(l&&(l=X$.get(l))&&l.layerNode)return YD(l.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.kA(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var l=0;l<this.data.impressionEndpoints.length;l++)this.sendImpression(this.data.impressionEndpoints[l]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(l){l.clickTrackingParams&&delete l.clickTrackingParams;var e,O;(l==null?0:(e=l.commandMetadata)==null?0:(O=e.webCommandMetadata)==null?0:O.sendPost)?_.ii(this.hostElement,[l,{impression:!0}]):_.wQ(this.hostElement,[l],this.hostElement)},
logExplicitClick:function(l){var e=_.P9(this.getScreenLayer());if(e){var O,E=(O=l.polymerController)!=null?O:l;l=E.visualElement;E=E.trackingParams||E.clickTrackingParams;!l&&E&&(l=_.cf(E));l&&_.On(e,l)}}}];var Hqk={},rS=function(){return _.IB.apply(this,arguments)||this};
_.m(rS,_.IB);rS.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
rS.prototype.onPdgItemBehaviorClick=rS.prototype.onPdgItemBehaviorClick;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rS.prototype,"data",void 0);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],rS.prototype,"onPdgItemBehaviorClick",null);_.L([_.m0()],rS);Hqk.YtPdgLiveChatItemBehavior=[rS.prototype,_.x.YtRendererBehavior];var chC;var FkH;_.Dl={};_.Dl.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var SQ=function(){var l=zz.apply(this,arguments)||this;l.switchTemplateAtRegistration=!1;return l};
_.m(SQ,zz);SQ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||qeA(this),_.ait(this,"doRender"),this.doRender())};
SQ.prototype.debounceRender=function(){this.templatingFn&&_.rP(this,"doRender",this.doRender)};
SQ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.UW(Error("ah"))};
SQ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.L([gxL()],SQ);var fkx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Qd={},D$T=(Qd[1]={filterString:null,isUnwrappable:null,unwrap:null},Qd[2]={filterString:function(l,e,O){return Wi(O)},
isUnwrappable:function(l){return l instanceof pU},
unwrap:function(l){return jv(l)}},Qd[3]={filterString:function(l,e,O){return fkx.test(O)?O:wG.toString()},
isUnwrappable:function(l){return $e(l)},
unwrap:function(l){return _.W2(l)}},Qd[4]={filterString:function(){return wG.toString()},
isUnwrappable:function(l){return l instanceof Mm},
unwrap:function(l){return _.Z9(l).toString()}},Qd[5]={filterString:function(l,e,O){return O},
isUnwrappable:function(l){return typeof l==="string"},
unwrap:function(l){return l.toString()}},Qd[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(l){return l instanceof _.T1},
unwrap:function(l){return B2(l)}},Qd[8]={filterString:function(l,e,O){O=String(O).toLowerCase();
return ZuL(l,e,O)?O:"zClosurez"},
isUnwrappable:null,unwrap:null},Qd[10]={filterString:null,isUnwrappable:null,unwrap:null},Qd);zL[qa["default"]]=Qvq;var x$x=[];var $w8=eWp("A"),WJx=eWp("BUTTON"),fd=eWp("DIV"),dwL=eWp("LABEL");(function(){var l=JT;JT=function(e){l==null||l(e);st(function(){for(var O=0;O<e.length;O++)lju(e[O])})}})();var RNS=function(){var l=_.IB.apply(this,arguments)||this;l.hasUnmounted=!1;return l};
_.m(RNS,_.IB);_.X=RNS.prototype;_.X.beforeRegister=function(){var l=this.doIdomRender;this.templatingFn?_.UW(Error("$g")):(this.templatingFn=l,this.switchTemplateAtRegistration=!0,rU2(this))};
_.X.attached=function(){};
_.X.detached=function(){lju(this.hostElement)};
_.X.renderIdom=function(){throw Error("ch");};
_.X.doIdomRender=function(){var l=this;Stt(this.hostElement,function(){l.renderIdom()})};
_.L([_.m0()],RNS);var Tq6=[SQ.prototype,RNS.prototype];var soS,Gs0=function(){return soS!==void 0?soS:soS=document.createElement("template")};
document.head.appendChild(Gs0().content);var Bq1;var Pwq,UNk=function(){return Pwq!==void 0?Pwq:Pwq=document.createElement("template")};
document.head.appendChild(UNk().content);var Y_1;var hNR=document.head,Lkq=hNR.appendChild,tgk;if(Y_1===void 0){var q_q=document.createElement("template");_.p(q_q,"\x3c!--css-build:shady--\x3e");q_q.content.insertBefore(UNk().content.cloneNode(!0),q_q.content.firstChild);Y_1=q_q}tgk=Y_1;Lkq.call(hNR,tgk.content);var vmC,Nqq=function(){return vmC!==void 0?vmC:vmC=document.createElement("template")};
document.head.appendChild(Nqq().content);var rhF;var DNS=document.head,S_6=DNS.appendChild,QoF;if(rhF===void 0){var xNR=document.createElement("template");_.p(xNR,"\x3c!--css-build:shady--\x3e");xNR.content.insertBefore(Nqq().content.cloneNode(!0),xNR.content.firstChild);rhF=xNR}QoF=rhF;S_6.call(DNS,QoF.content);var lDq=document.head,eEi=lDq.appendChild,OWR;if(Bq1===void 0){var EW6=document.createElement("template");_.p(EW6,"\x3c!--css-build:shady--\x3e");EW6.content.insertBefore(Gs0().content.cloneNode(!0),EW6.content.firstChild);Bq1=EW6}OWR=Bq1;eEi.call(lDq,OWR.content);var JUF,XNC=function(){return JUF!==void 0?JUF:JUF=document.createElement("template")};
document.head.appendChild(XNC().content);var zES;_.lp=new _.Xa("DARK_THEME_TOKEN");var qOA=new _.v("accessibilityProperties");var tix=new _.v("layoutProperties");var vyt=new _.v("imageType");var bW6={};if("ytAttributedStringLinkHoverColor"in bW6)throw Error("fh`ytAttributedStringLinkHoverColor");(function(l,e){bW6[l]="value"in e&&"unit"in e?zWW(l,e):function(O){try{return e(O)}catch(E){throw Error("dh`"+l+"`"+E.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Mx1=function(l){var e=this;this.holdTime=l===void 0?500:l;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(O){var E=new CustomEvent("LONG_PRESS"),J;(J=O.changedTouches[0].target)==null||J.dispatchEvent(E)};
this.ontouchstart=function(O){e.longPressTimeout=_.RK(_.UD,function(){e.onlongpress(O);e.longPressOccurred=!0},e.holdTime)};
this.ontouchmove=function(){_.UD.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!0};
this.ontouchend=function(O){if(e.longPressTimeout&&!e.longPressOccurred&&!e.moveOccurred){var E;(E=O.changedTouches[0].target)==null||E.dispatchEvent(new Event("click"))}_.UD.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!1}};var pSx=function(l,e){Mx1.call(this,e);var O=this;this.callback=l;this.onlongpress=function(E){var J;(J=O.callback)==null||J.call(O,E)}};
_.m(pSx,Mx1);var KLx=function(l,e){var O=Object.assign({},e);l=_.b(new Map([["ontouchstart",l.ontouchstart],["ontouchend",l.ontouchend],["ontouchmove",l.ontouchmove]]));for(var E=l.next(),J={};!E.done;J={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},E=l.next()){var z=_.b(E.value);E=z.next().value;z=z.next().value;J.eventName$jscomp$85=E;J.eventHandler$jscomp$1=z;e[J.eventName$jscomp$85]=function(M){return function(Z){var u;(u=O[M.eventName$jscomp$85])==null||u.call(O,Z);(0,M.eventHandler$jscomp$1)(Z)}}(J)}};_.Zh=new _.Xa("COMMAND_HANDLER_TOKEN");var MiA=new _.v("parallelCommand");var uMx=new _.v("performOnceCommand");var ZGx=new _.v("serialCommand");var Cxt=void 0;var VxS=function(){this.data=[];this.consumer=null};
VxS.prototype.push=function(l){this.consumer?this.consumer(l):this.data.push(l)};var Ck={};_.AF(Ck,void 0,"sgPmTd");_.AF(null,void 0,"jypsq");var Mhd=new VxS;var AoL=[gbM,iDx,w7T,nb2,AOt,dLq,a0p,kpA];var hWg=new _.v("bracketTextDecorator");var QN=new _.v("highlightTextDecorator");_.OL=new _.Xa("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var G$8=function(){},ZW1;
(ZW1=window.requestIdleCallback)==null||ZW1.bind(window);var Pxx={calledOnce:!1,state:"visible"},BFL={calledOnce:!1,state:"hidden"};var uzq=new _.Xa("ICON_WIZ_COMPONENT_TOKEN");_.cF=_.XO(function(l){var e=l.icon;var O=l.active;var E=l.className;var J=l.style;var z=l.dataSelected;var M=l.dataDisabled;var Z=l.role;var u=l.animateIcon;var d=l.themeOverride;var g=l.ariaHidden;var w=l.ariaExpanded;var n=l.ariaLabel;var k=l.id;var y=l.size;var c=l.iconFilter;return _.W(_.A,{cond:e,then:function(){var f=_.V2().resolve(uzq);return _.W(f,{icon:e,dataSelected:z,dataDisabled:M,animateIcon:u,themeOverride:d,ariaExpanded:w,id:k,active:O,size:y,role:Z,className:E,ariaHidden:g,ariaLabel:n,
style:function(){return J!=null&&J()||y==null||!y()?J==null?void 0:J():"width: "+(y==null?void 0:y())+"px;height: "+((y==null?void 0:y())+"px;")},
iconFilter:c})}})},"b");
_.cF.idomCompat=!0;var VGu=window.devicePixelRatio||1;var ogV=new Map([["yt_outline_bag_black_24","bag"]]);var x5=function(l){var e=this;this.margin=.1;this.whenInViewportWithMargin=l;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){e.requestScan()});
window.addEventListener("touchend",function(){e.requestScan()});
window.addEventListener("updateui",function(){e.requestScan()});
var O=new _.b3((0,_.pb)(this.requestScan,this),100);window.addEventListener("scroll",function(){O.fire()},!0);
window.addEventListener("resize",(0,_.pb)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){e.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.pb)(this.requestScan,this))};
x5.prototype.observe=function(l){this.observationTargets.includes(l)||this.observationTargets.push(l)};
x5.prototype.unobserve=function(l){this.observationTargets=this.observationTargets.filter(function(e){return e!==l})};
x5.prototype.requestScan=function(){var l=this;this.scanRequested||(st(function(){ClS(l)}),this.scanRequested=!0)};
var ClS=function(l){var e=(1+l.margin)*(document.documentElement.clientHeight||window.innerHeight);l.observationTargets=l.observationTargets.filter(function(O){var E=O.getBoundingClientRect();(E=e>E.top&&!!E.height)&&l.whenInViewportWithMargin(O);return!E&&O.parentNode});
l.scanRequested=!1};
x5.prototype.disconnect=function(){this.observationTargets=[]};var oWq,WKx;oWq=_.b(_.AF(icT(),void 0,"O3X2wd"));_.$$q=oWq.next().value;WKx=oWq.next().value;window.addEventListener("resize",function(){WKx(icT())});var d$1={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},gWR=void 0,iW1=window.innerWidth,wNq=window.innerHeight;window.addEventListener("resize",function(){gWR=void 0});var AUq;if("IntersectionObserver"in window)AUq=ngu();else{if(gWR===void 0){var nWq;nWq="matchMedia"in window?window.matchMedia(d$1.landscape+","+d$1.portrait).matches:void 0;gWR=nWq!==void 0?nWq:iW1>=930&&wNq>=550||iW1>=550&&wNq>=930}AUq=gWR?{observe:function(l){st(function(){var e;(e=l.onViewportEntered)==null||e.call(l)})},
unobserve:function(){}}:new x5(function(l){st(function(){var e;
(e=l.onViewportEntered)==null||e.call(l)})})}var wq2=AUq;var aD0=_.XO(function(l){var e=!1,O=_.e4("img",function(E){_.B3(function(){e=!0;E.onload=null})});
_.Gh(function(){var E,J=(E=l.data)==null?void 0:E.call(l),z,M=(z=l.getSrc)==null?void 0:z.call(l).cb,Z;E=(Z=l.config)==null?void 0:Z.call(l);if(Z=O.value)if(z=function(d,g){if(!e)return M?M(d,g):d},I$p(Z,E),_.a("web_image_dont_reload_same_src")&&k3T(Z,J,z))_.a("web_image_dont_reload_same_src_simulate_load")&&Z.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var u;a$A(Z,J||null,z,E,(u=l.lazy)==null?void 0:u.call(l))}},"v0I2p");
return _.W("img",{el:O})},"c");
aD0.idomCompat=!0;_.Jm=_.XO(function(l){var e=function(){var O,E=l.data(),J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2,$V,gT,mx,jM,cx,tq,Px,S0;var QH={contentMode:(J=l.contentMode)==null?void 0:J.call(l),loadedClass:(z=l.loadedClass)==null?void 0:z.call(l),isPreloaded:(M=l.isPreloaded)==null?void 0:M.call(l),notifyOnLoaded:(Z=l.notifyOnLoaded)==null?void 0:Z.call(l),notifyOnUnloaded:(u=l.notifyOnUnloaded)==null?void 0:u.call(l),preferredThumbnail:(d=l.preferredThumbnail)==null?void 0:d.call(l),preserveHeight:(g=l.preserveHeight)==
null?void 0:g.call(l),preserveWidth:(w=l.preserveWidth)==null?void 0:w.call(l),objectPosition:(n=l.objectPosition)==null?void 0:n.call(l),targetWidth:(k=l.targetWidth)==null?void 0:k.call(l),targetHeight:(y=l.targetHeight)==null?void 0:y.call(l),shouldShowPlaceholder:(c=l.shouldShowPlaceholder)==null?void 0:c.call(l),useWidth:(f=l.useWidth)==null?void 0:f.call(l),isToggled:(P=l.isToggled)==null?void 0:P.call(l),alt:(h=l.alt)==null?void 0:h.call(l),className:(N=l.className)==null?void 0:N.call(l),
onerror:l.onerror,onload:l.onload,style$:((t=l.style$)==null?void 0:t.call(l))||((r=l.style)==null?void 0:r.call(l)),color:(D=l.color)==null?void 0:D.call(l),width:(b2=l.width)==null?void 0:b2.call(l),height:($V=l.height)==null?void 0:$V.call(l),"aria-hidden$":(Px=(gT=l["aria-hidden$"])==null?void 0:gT.call(l))!=null?Px:(mx=l.ariaHidden)==null?void 0:mx.call(l),draggable:(jM=l.draggable)==null?void 0:jM.call(l),"data-disabled$":(S0=(cx=l["data-disabled$"])==null?void 0:cx.call(l))!=null?S0:(tq=l.dataDisabled)==
null?void 0:tq.call(l)};return pqL(E,QH,(O=l.hideOn404)==null?void 0:O.call(l))};
return _.W(_.cK,null,_.W(_.jD,{when:function(){var O;return((O=e())==null?void 0:O.type)==="image"}},function(){return _.W(aD0,{data:function(){return e().image},
getSrc:{cb:function(O,E){var J=e().image.sources,z=e().config.isPreloaded,M=e().config.useWidth,Z=e().config.targetWidth,u=e().config.targetHeight,d=e().config.preferredThumbnail;return _.ZcT(E,J,z,M,Z,u,d)||""}},
config:function(){var O=e().config,E;for(E in O)O[E]===void 0&&delete O[E];return O},
lazy:l.renderLazy})}),_.W(_.jD,{when:function(){var O;
return((O=e())==null?void 0:O.type)==="icon"}},function(){return _.W(_.cF,{icon:function(){return e().iconName},
role:function(){return e().config.role},
className:function(){return e().config.className},
style:function(){return e().config.style$+";width: "+(e().config.width+"px;height: ")+(e().config.height+"px;color: ")+(e().config.color+";")},
ariaLabel:function(){return e().config["aria-label$"]},
ariaHidden:function(){return e().config["aria-hidden$"]},
dataDisabled:function(){return e().config["data-disabled$"]},
active:function(){return e().config.isToggled}})}))},"d");
_.Jm.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var kNH=function(l){return function(e){return _.W($jx,null,function(){var O=e.data(),E=_.UB(e.config);return _.W(JP,null,function(){return void l(O,E)})})}}(ck8),jgu=_.XO(function(l){var e=function(E){var J,z=_.zk(function(n){J=P3(function(){for(var k=_.b(g()),y=k.next();!y.done;y=k.next()){y=Fe2(y.value);
y=typeof y==="string"?document.createTextNode(y):y;if(!(y instanceof Node)){k=new _.Hk("Part is not a node",y,typeof y);_.UW(k);break}n.appendChild(y)}})}),M=bp(function(){return roT(E())},{isEqual:Ked}),Z=_.Et(l.config),u=function(){var n,k=M();
return!((n=Z())==null||!n.ariaLabel)||!(k.commandRuns&&k.commandRuns.length!==0||k.paragraphStyleRuns&&k.paragraphStyleRuns.length!==0)},d=bp(Z,{isEqual:R$d}),g=function(){var n=NFM(M(),d());
SOV(n,d());return M().content?Egg(M().content,n).parts:[]},w=!0;
_.Gh(function(){M();d();if(w)w=!1;else{var n=g();Promise.resolve().then(function(){var k=z.value;if(k){k.innerText="";var y;(y=J)==null||y();J=_.fH(k,function(){return _.W(f$T,{parts:n})})}})}},"YlhjWd");
return _.W("span",{el:z,class:function(){return M()&&fju(M(),Z())},
dir:function(){var n;return((n=Z())==null?0:n.userInput)?"auto":void 0},
"aria-label":function(){var n;return u()?(n=Z())==null?void 0:n.ariaLabel:void 0},
role:function(){return u()?"text":void 0}})},O;
return((O=l.config)==null?0:O.renderedFromFormattedString)?e(l.text):_.W(_.A,{cond:l.text,then:e})},"e");
jgu.idomCompat=!0;_.zK=_.XO(function(l){var e=_.Et(l.text),O=Teg(l);l.renderedFromFormattedString!==void 0&&(O.renderedFromFormattedString=!0);return _.a("attr_string_reactive")?_.W(jgu,{text:e,config:O}):_.W(_.A,{cond:function(){var E;return e()&&((E=roT(e()))==null?void 0:E.content)},
then:function(){return _.W(kNH,{data:l.text,config:O})},
debugInstance:"Apcuac"})},"f");
_.zK.idomCompat=!0;var G3d=function(l,e,O){e=e===void 0?"unknown":e;O=O===void 0?{}:O;_.Hk.call(this,l+" ("+e+")",Object.assign({},{name:"YtWcwError",tagName:e},O));Object.setPrototypeOf(this,this.constructor.prototype)};
_.m(G3d,_.Hk);_.LeM=new WeakMap;_.h$x=!1;var Yq8,tGL,Utt;_.lB=Symbol("hh");_.Vh=Symbol("ih");Yq8=Symbol("jh");tGL=new Set(Object.getOwnPropertyNames(Element.prototype));Utt=Symbol("kh");var IDk=_.XO(function(l){return _.W("yt-attributed-string",{"aria-label":l.ariaLabel,hidden:l.hidden,id:l.id,class:l.className,"force-default-style":l.forceDefaultStyle},_.W(_.zK,{text:l.data,ariaLabel:l.ariaLabel,ellipsisTruncate:l.ellipsisTruncate,isOverlay:l.isOverlay,linkInheritColor:l.linkInheritColor,noPreWrap:l.noPreWrap,noWrap:l.noWrap,userInput:l.userInput,noEndpoints:l.noEndpoints,headerRuns:l.headerRuns}))},"g");
_.a("web_wiz_attributed_string")&&_.Zw(IDk,"yt-attributed-string",{props:{ariaHidden:_.lB,ariaLabel:_.lB,className:_.lB,ellipsisTruncate:_.lB,isOverlay:_.lB,linkInheritColor:_.lB,noEndpoints:_.lB,noStyleRuns:_.lB,noLinkColor:_.lB,noPreWrap:_.lB,noWrap:_.lB,skipOnClick:_.lB,userInput:_.lB,headerRuns:_.lB,id:_.lB,data:_.lB,hidden:_.lB,forceDefaultStyle:_.lB,text:_.Vh,stopPropagation:_.Vh,disableUpgrade:_.Vh,disable:_.Vh,slot:_.Vh}});var eF=function(){return _.B.apply(this,arguments)||this};
_.m(eF,_.B);eF.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},ck8(this.data,this.config))};
_.L([_.K(Tq6),_.q("design:type",Object)],eF.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eF.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],eF.prototype,"ariaLabel",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"disable",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"ellipsisTruncate",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"isOverlay",void 0);
_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"linkInheritColor",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"noPreWrap",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"noWrap",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"userInput",void 0);_.L([_.T(),_.q("design:type",Boolean)],eF.prototype,"noEndpoints",void 0);_.L([_.T(),_.q("design:type",Array)],eF.prototype,"headerRuns",void 0);
_.L([_.Ps({is:"yt-attributed-string",disableElementRegistration:!0})],eF);
_.a("web_wiz_attributed_string")||_.Y(eF,"yt-attributed-string",function(){if(zES===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
l.content.insertBefore(XNC().content.cloneNode(!0),l.content.firstChild);zES=l}l=zES;return l},{mode:2});var m$1,yUS,QgA;m$1=function(){this.firstThumbnailLoaded=!1};
_.pNR=function(){yUS||(yUS=new m$1);return yUS};
QgA=function(l){var e=_.pNR();e.firstThumbnailLoaded||(e.firstThumbnailLoaded=!0,_.Yu("ftl",l))};
m$1.prototype.reset=function(){this.firstThumbnailLoaded=!1};var vgp=0,Sqt=new WeakMap,rk8=0,ox=new Set;var KKR,jvF=function(){return KKR!==void 0?KKR:KKR=document.createElement("template")};
document.head.appendChild(jvF().content);var HWR;var OET,Jaq,Od;_.dg=_.Op.caches;Od=function(){};
Od.prototype.open=function(l){return _.dg.open(cUS(l))};
Od.prototype.has=function(l){return _.dg.has(cUS(l))};
Od.prototype.delete=function(l){return _.dg.delete(cUS(l))};
Od.prototype.match=function(l,e){var O=this,E,J,z,M,Z,u;return _.V(function(d){switch(d.nextAddress){case 1:return _.C(d,O.keys(),2);case 2:E=d.yieldResult,J=_.b(E),z=J.next();case 3:if(z.done){d.jumpTo(5);break}M=z.value;return _.C(d,O.open(M),6);case 6:return Z=d.yieldResult,_.C(d,Z.match(l,e),7);case 7:if(u=d.yieldResult)return d.return(u);z=J.next();d.jumpTo(3);break;case 5:return d.return()}})};
var Xlp=function(){};
_.m(Xlp,Od);var cUS=function(l){if(l.includes(":"))throw Error("nh`"+l);return l+":"+_.Kv("CacheStorage get")};
Xlp.prototype.keys=function(){var l,e,O,E,J,z,M,Z,u;return _.V(function(d){if(d.nextAddress==1)return l=[],e=_.Kv("CacheStorage keys"),_.C(d,_.dg.keys(),2);O=d.yieldResult;E=_.b(O);for(J=E.next();!J.done;J=E.next())z=J.value,M=_.eqW(z),Z=M.originalName,u=M.datasyncId,u===e&&l.push(Z);return d.return(l)})};var Ed=function(){var l=_.B.apply(this,arguments)||this;l.objectURL=null;l.loadTime=Infinity;return l};
_.m(Ed,_.B);_.X=Ed.prototype;_.X.renderIdom=function(){lax(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&mt2(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.X.objectFitToContentMode=function(l){switch(l){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.X.logThumbnailFailureVe=function(){var l=_.sL(197497);_.$w(_.yN(),l);var e=_.P9();e&&l&&e&&_.xu(e,[l])};
_.X.loadImageFromCacheIfExists=function(l){var e=this,O=l.target;(O==null?0:O.src)&&bEW(O.src).then(function(E){e.objectURL=_.aH(E).toString();e.setSrc(O,e.objectURL)}).catch(function(){})};
_.X.onError=function(l){var e=this;if(_.a("web_use_cache_for_image_fallback")){var O=l.target;O&&bEW(O.src).then(function(E){e.objectURL=_.aH(E).toString();e.setSrc(O,e.objectURL)}).catch(function(){_.a("kevlar_woffle_log_thumbnail_failure_ve")&&e.logThumbnailFailureVe();
_.a("kevlar_woffle_fallback_image")&&e.setSrc(O,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.X.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.X.setConfig=function(){var l=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(e){l.loadImageFromCacheIfExists(e);l.revokeObjectURL();xtt(l.hostElement)},
onerror:function(e){l.onError(e)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.a("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.X.setSrc=function(l,e){e&&(l.src=e)};
_.L([_.K(Tq6),_.q("design:type",Object)],Ed.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ed.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],Ed.prototype,"alt",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ed.prototype,"ftlEligible",void 0);_.L([_.T(),_.q("design:type",Number)],Ed.prototype,"height",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ed.prototype,"notifyOnLoaded",void 0);
_.L([_.T(),_.q("design:type",Boolean)],Ed.prototype,"notifyOnUnloaded",void 0);_.L([_.T(),_.q("design:type",String)],Ed.prototype,"objectFit",void 0);_.L([_.T(),_.q("design:type",String)],Ed.prototype,"objectPosition",void 0);_.L([_.T(),_.q("design:type",String)],Ed.prototype,"preferredThumbnail",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ed.prototype,"preserveHeight",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ed.prototype,"preserveWidth",void 0);
_.L([_.T({value:!0}),_.q("design:type",Boolean)],Ed.prototype,"useWidth",void 0);_.L([_.T({value:function(){return!_.LH("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.q("design:type",Boolean)],Ed.prototype,"shouldRenderLazy",void 0);_.L([_.T(),_.q("design:type",Number)],Ed.prototype,"width",void 0);_.L([_.Ps({is:"yt-image",disableElementRegistration:!0})],Ed);
_.Y(Ed,"yt-image",function(){if(HWR===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);l.content.insertBefore(jvF().content.cloneNode(!0),l.content.firstChild);
HWR=l}l=HWR;return l},{mode:2});var Jb=function(){return _.B.apply(this,arguments)||this};
_.m(Jb,_.B);Jb.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var l=_.t3(this.data.onVisibleCommand);l&&this.ytComponentBehavior.resolveCommand(l)}};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Dl.YtVisibilityBehavior),_.q("design:type",Object)],Jb.prototype,"ytVisibilityBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Jb.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Jb);
_.Y(Jb,"yt-bumper-user-edu-content-view-model",function(){if(FkH===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;chC===void 0&&(chC=document.createElement("template"));var E=chC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);FkH=l}l=FkH;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var FKq;var fDx,REC=function(){if(fDx!==void 0)return fDx;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;FKq===void 0&&(FKq=document.createElement("template"));var E=FKq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return fDx=l};var Tbi;_.XP={};Tbi=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"]);_.XP.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var l=this.getContext_();return l?l.getTaskManager():_.UD},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var l=_.$u(this.hostElement,"yt-get-context-provider",{});l.detail&&l.detail.contextProvider?this.cachedProviderNode_=l.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Tbi.has(this.hostElement.localName)},
getNetworkManager:function(){var l=this.getContext_();if(l)return l.getNetworkManager()}};var oKA,svq,Bbk,GNk;_.zH=function(l){var e=svq.get(l);if(e&&(e=e.pop()))return GNk++,e;Bbk++;try{var O=document.createElement(l)}catch(E){throw new _.Hk("ElementPool failed to create element",l,E.message);}return O};
oKA=function(l){var e=l.is;if(e){var O=svq.get(e);O||(O=[],svq.set(e,O));var E=_.hT("ELEMENT_POOL_CONFIG")||{};O.length>=(E[e]!==void 0?E[e]:_.hT("ELEMENT_POOL_DEFAULT_CAP",0))||O.push(l)}else _.hG(new _.Hk("Element pool should only handle custom elements:",l.nodeName))};
svq=new Map;Bbk=0;GNk=0;var gg=new WeakMap,CAg=new WeakMap;var U$0;_.bB=function(l,e,O){O=O===void 0?_.Gi():O;this.JSC$11728_defaultPriority=l;this.signal=e;this.scheduler=O;this.nextJobDescriptor=0;this.JSC$11728_parkedJobs=[];this.scheduledJobs=new Map};
_.Me=function(l,e){if(e){var O=_.h7();l.signal&&!_.L6(O,l.signal)?(O.addListener(l.signal,function(){l.processSignal()}),l.JSC$11728_parkedJobs.push({job:e,
priority:void 0})):PlS(l,e)}};
U$0=function(l,e){if(e!==l.JSC$11728_defaultPriority){l.JSC$11728_defaultPriority=e;for(var O=_.b(l.scheduledJobs.values()),E=O.next();!E.done;E=O.next())E=E.value,l.scheduler.cancelJob(E.jobId),E.jobId=l.scheduler.addJob(E.jobWrapper,e)}};
_.bB.prototype.flushJobs=function(){U$0(this,10);this.processSignal()};
_.bB.prototype.cancel=function(){for(var l=_.b(this.scheduledJobs),e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;this.scheduler.cancelJob(O.jobId);this.scheduledJobs.delete(e)}this.JSC$11728_parkedJobs=[]};
_.bB.prototype.processSignal=function(){for(var l=_.b(this.JSC$11728_parkedJobs),e=l.next();!e.done;e=l.next())e=e.value,PlS(this,e.job,e.priority);this.JSC$11728_parkedJobs=[]};
var PlS=function(l,e,O){O=O||l.JSC$11728_defaultPriority;if(O===10)$7(e);else{var E=l.nextJobDescriptor++,J=function(){e();l.scheduledJobs.delete(E)},z=l.scheduler.addJob(J,O);
l.scheduledJobs.set(E,{jobWrapper:J,jobId:z,priority:O})}};_.Z8(gKL);var iEd={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};nEp({beforeVisit:function(l){if(C4.has(l.type)){var e;(e=l.props).idomKey!=null||(e.idomKey=l.type)}else l.type.TAG_NAME&&(Zu=l.type.TAG_NAME)},
afterRender:function(l,e){var O;Zu=(O=e==null?void 0:e.type)!=null?O:""},
didPatch:function(){Zu=""}});var YeC;_.VG={};YeC={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.VG.YtRendererstamperBehavior=[_.XP.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 l in this.stampDom){var e=this.stampDom[l];e&&e.id&&this.addReactiveSchema({type:"observe",method:{methodName:VY2(e.id),args:[{type:"wildcard",path:l}]}})}else{(l=(this.constructor.generatedFrom||this).observers)||(l=[]);for(e in this.stampDom){var O=this.stampDom[e];O&&O.id&&l.push(VY2(O.id)+"("+e+".*)")}this.constructor.generatedFrom.observers=l}},
addStampDomObserverFns_:function(){for(var l in this.stampDom){var e=this.stampDom[l];e.id?(this[VY2(e.id)]=this.rendererStamperObserver_.bind(this,l,e.id),this.hasDataPath_[l]=!1):(e=new _.Hk("Bad rendererstamper config",this.is+":"+l),_.UW(e))}},
rendererStamperObserver_:function(l,e,O){if(O.path==l){if(O.value===void 0&&!this.hasDataPath_[l])return;this.hasDataPath_[l]=O.value!==void 0}this.rendererStamperApplyChangeRecord_(l,e,O)},
rendererStamperApplyChangeRecord_:function(l,e,O){var E=this.renderJobsMap_[e],J=null;l==O.path?(O=O.value,_.SM(O)||(O=O===void 0||O===null?[]:[O]),l=this.stampDom[l],l.mapping&&(J=this.stampDomArray_.bind(this,O,e,l.mapping,l.reuseComponents,l.events,l.stamperStableList)),E&&E.cancel(),O=l.usePageScheduler?this.getTaskManager():void 0,E||l.initialRenderPriority==void 0)?l.renderPriority==void 0||E||(E=new _.bB(l.renderPriority,l.waitForSignal,O),this.renderJobsMap_[e]=E):(E=new _.bB(l.initialRenderPriority,
l.waitForSignal,O),this.renderJobsMap_[e]=E,J=function(z,M){z();U$0(M,10)}.bind(this,J,E)):J=l+".splices"==O.path?this.stampDomArraySplices_.bind(this,l,e,O.value):this.forwardRendererStamperChanges_.bind(this,l,e,O);
E?_.Me(E,J):J()},
forwardRendererStamperChanges_:function(l,e,O){var E=O.path.slice(l.length+1),J=this.getStampContainer_(e),z=E.indexOf("."),M=E.substring(0,z),Z=!1,u=0,d=parseInt(M,0);if(M[0]=="#"){Z=parseInt(M.substring(1),0);d=this.get(l);var g=this.get([l,M]);d[Z]==g?u=Z:u=d.indexOf(g);Z=!0}else isNaN(d)||(u=d,Z=!0);Z&&(E=E.substring(M.length+1),z=E.indexOf("."));M=_.c9(J).children[u];var w;if(J=(w=M==null?void 0:M.polymerController)!=null?w:M)E="data"+E.slice(z),typeof J.notifyPath!=="function"?_.hG(new _.Hk("notifyPath missing",
this.is+": "+l+", "+e)):O.value?J.notifyPath(E,O.value):J.notifyPath(E)},
stampDomArraySplices_:function(l,e,O){if(O&&O.indexSplices){var E=this.getStampContainer_(e);if(E){for(var J=_.c9(E),z=ur8(this.stampDom[l].reuseComponents),M=O.indexSplices.length,Z=0;Z<M;Z++){for(var u=O.indexSplices[Z],d=J.children[u.index],g=u.removed.length;g>0;g--)d&&d.parentElement&&(_.c9(d.parentElement).removeChild(d),z&&oKA(d),d=J.children[u.index]);g=this.stampDom[l].mapping;for(var w=u.index+u.addedCount,n=document.createDocumentFragment(),k=z,y=u.index;y<w;y++){var c=u.object[y],f=MYt(g,
c);if(f){var P=g[f];c=c[f];f=this.getComponentName_(P,c);var h=d?gg.has(d):!1;k&&d&&d.is==f&&h?(f=d,this.telemetry_.reuse++,d=d.nextElementSibling):k&&d&&h?(f=this.createComponent_(P,c,z),h=_.c9(d).nextElementSibling,J.insertBefore(f,h),Wru(this.is,J,d,z),d=h):(k=!1,f=this.createComponent_(P,c,z),n.appendChild(f));this.deferRenderStamperBinding_(f,P,c)}else P=new _.Hk("Unimplemented type",l,e,E.tagName,Object.keys(c)[0]),_.UW(P)}J.insertBefore(n,d)}this.flushRenderStamperComponentBindings_();this.stampDom[l].events&&
_.$u(this.hostElement,"yt-rendererstamper-finished",{container:E})}else l=new _.Hk("Container object not found",e,this.hostElement?this.hostElement.is:""),_.UW(l)}},
stampDomArray_:function(l,e,O,E,J,z){var M=this.getStampContainer_(e);if(M)if(e=_.c9(M),E=ur8(E),l){var Z=0,u=0,d;if(z=z===void 0?_.LH("STAMPER_STABLE_LIST",!1):z||!1)for(d=e.firstElementChild;d&&!gg.has(d)&&l.length>u;){z=l[u];var g=MYt(O,z);if(g){if(this.getComponentName_(O[g],z[g])!=d.is){var w=this.createComponent_(O[g],z[g],E),n=_.c9(d).nextElementSibling;n?e.insertBefore(w,n):e.appendChild(w);Wru(this.is,e,d,E);d=w}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(d,O[g],z[g]);Z++;
u++;d=_.c9(d).nextElementSibling}else u++}d1V(this.is,e,Z,E);Z=d;if(l.length>u){z=document.createDocumentFragment();for(g=l.length;u<g;u++)if(w=l[u],n=MYt(O,w))d=this.createComponent_(O[n],w[n],E),this.deferRenderStamperBinding_(d,O[n],w[n]),z.appendChild(d);Z&&_.c9(Z).parentNode&&d&&!gg.has(d)?e.insertBefore(z,Z):e.appendChild(z)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();J&&_.$u(this.hostElement,"yt-rendererstamper-finished",{container:M})}else d1V(this.is,e,0,
E);else l=new _.Hk("Container object not found",e,this.hostElement?this.hostElement.is:""),_.UW(l)},
getStampContainer_:function(l){return this.$&&this.$[l]||_.ud(this.hostElement).querySelector("#"+l)},
getComponentName_:function(l,e){return typeof l==="string"?l:l.matcher?l.matcher.call(this,e):l.component},
createComponent_:function(l,e,O){l=this.getComponentName_(l,e);try{var E=oX.has(l)||C4.has(l);if(O&&!E){var J=_.zH(l);try{_.dP(J)}catch(z){O="Failed to clear styles for "+l+".",z.message&&(O+=" Original error: "+z.message),_.hG(new _.Hk(O))}}else J=document.createElement(l)}catch(z){return J="YtRendererStamperBehavior failed to create "+l+".",z.message&&(J+=" Original description: "+z.message),z.message="YtRendererStamperBehavior failed to create element",_.LZ(z,J),YeC.hasOwnProperty(l)?_.hG(z):_.UW(z),
document.createElement("SPAN")}this.telemetry_.create++;return J},
deferRenderStamperBinding_:function(l,e,O){this.deferredBindingTasks_.push({component:l,typeOrConfig:e,data:O})},
flushRenderStamperComponentBindings_:function(){for(var l=0,e=this.deferredBindingTasks_.length;l<e;l++){var O=this.deferredBindingTasks_[l];if(!O)break;var E=void 0,J=void 0,z=void 0,M=void 0,Z=O.component,u=O.typeOrConfig;O=O.data;var d=(M=Z.polymerController)!=null?M:Z;M=Z.loggingStatus;try{M&&(M.isRendererStamper=!0);if(typeof u!=="string"){for(z in u.attributes)u.attributes[z]===!0?Z.setAttribute(z,""):u.attributes[z]===!1?Z.removeAttribute(z):Z.setAttribute(z,u.attributes[z]);for(J in u.params)d[J]=
u.params[J],Z!==d&&Hs(Z.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(E in u.properties){var g=u.properties[E];if(g){var w=ZEW(g);d[E]=this.get(w);Z!==d&&Hs(Z.localName,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(E==="on-tap"||E==="on-click"){var n=this.get(w);Z.addEventListener("click",n);CAg.set(Z,{property:E,listener:{type:"element",eventName:"click",handler:n}})}}else{var k=new _.Hk("Undefined property binding",E);_.UW(k)}}}if(u.classListBinding){var y=ZEW(u.classListBinding),
c=y?this[y]:null;if(c)for(E=0;E<c.length;E++)_.oB(Z,c[E],!0)}d.data=O}finally{M&&(M.isRendererStamper=!1)}if(E=gg.get(Z))Z.hidden=!1,gg.delete(Z),_.UD.cancelJob(E)}this.deferredBindingTasks_.length=0}}];_.ZH={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(l){for(var e=_.SU.getInstance(),O=_.b(Object.keys(l)),E=O.next();!E.done;E=O.next()){var J=E.value;E=l[J];if(this&&this[E]){var z=e.actionRoutingMap.get(J);z||(z=new Map,e.actionRoutingMap.set(J,z));e.registerActionHandler(this,J,this[E].bind(this),z)}else J=Error("id"),J.params=E,_.tT(J)}},
unregisterActionMap:function(l){_.xE(_.SU.getInstance(),l,this)}}]};var Am=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var wg;var nd=new Map;var HE8=window.matchMedia("(forced-colors: active)").matches;var hE1;var LK0;var RqV=new _.Xa("LOTTIE_LOADER_TOKEN");_.Zw(_.XO(function(l){return _.W("ytd-lottie-player",{id:l.id,hidden:l.hidden,class:l.className,"aria-label":l.ariaLabel,style:"display: block;"},_.W(_.k7,{data:l.data,animationName:function(){var e;return((e=l.data().animationConfig)==null?void 0:e.name)||""},
animationRef:function(){return l.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.lB,
id:_.lB,hidden:_.lB,className:_.lB,ariaLabel:_.lB}});var uB=function(){var l=_.B.apply(this,arguments)||this;l.animationRef={};return l};
_.m(uB,_.B);_.X=uB.prototype;
_.X.handlePropertyChange=function(){var l=this.animatedIcon,e=this.active,O=this.isDarkTheme;if(l){var E=this.previousActive!==e;this.previousActive=e;this.animationRef.lottieEl?E&&this.toggleAnimation(e,l.totalFrames):e?this.initializeAnimationAsToggled(l.lottiePlayerProps,l.totalFrames):this.initializeAnimationAsUntoggled(l.lottiePlayerProps);l.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=l.type;this.lottiePlayerProps=this.computeLottiePlayerProps(l,O)}};
_.X.computeLottiePlayerProps=function(l,e){var O=this.deepCloneLottiePlayerProps(l);e?(e=l.nameDarkTheme,l=l.pathDarkTheme):(e=l.name,l=l.path);O.animationConfig.name=e;(e=nd.get(l))?O.animationConfig.animationData=e:O.animationConfig.path=l;return O};
_.X.initializeAnimationAsToggled=function(l,e){l.animationConfig.initialSegment=[e-1,e]};
_.X.initializeAnimationAsUntoggled=function(l){l.animationConfig.initialSegment=void 0};
_.X.toggleAnimation=function(l,e){if(l){var O;(O=this.animationRef.lottieEl)==null||O.playSegments([0,e],!0)}else{var E;(E=this.animationRef.lottieEl)==null||E.playSegments([0,1],!0)}};
_.X.deepCloneLottiePlayerProps=function(l){var e=Object.assign({},l.lottiePlayerProps.animationConfig);l=Object.assign({},l.lottiePlayerProps);l.animationConfig=e;return l};
uB.prototype.handlePropertyChange=uB.prototype.handlePropertyChange;_.L([_.T(),_.q("design:type",Object)],uB.prototype,"animatedIcon",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],uB.prototype,"active",void 0);_.L([_.T(),_.q("design:type",Boolean)],uB.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],uB.prototype,"animatedIconType",void 0);_.L([_.T(),_.q("design:type",Boolean)],uB.prototype,"previousActive",void 0);
_.L([_.T(),_.q("design:type",Object)],uB.prototype,"lottiePlayerProps",void 0);_.L([_.T(),_.q("design:type",Object)],uB.prototype,"animationRef",void 0);_.L([_.AA("animatedIcon","active","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uB.prototype,"handlePropertyChange",null);_.L([_.Ps({is:"yt-animated-icon",disableElementRegistration:!0})],uB);
_.Y(uB,"yt-animated-icon",function(){if(LK0===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;hE1===void 0&&(hE1=document.createElement("template"));var E=hE1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);LK0=l}l=LK0;return l},{mode:2});var txH;var qei;var G6V=_.XO(function(l){var e=_.O0("span"),O=GQ(function(){return{value:null}});
_.B3(function(){var J;(J=O.value)==null||J.cancel()});
var E=_.mF(l.data,{equals:function(J,z){return J.iconName===z.iconName&&J.iconStyle===z.iconStyle&&J.iconSize===z.iconSize&&J.iconSetName===z.iconSetName&&J.iconSelected===z.iconSelected}},"aoiXAb");
_.Gh(function(){var J,z=(J=l.options)==null?void 0:J.call(l);sZ2(e,O,E(),z)},"QXgxJd");
return _.W("span",{class:"yt-icon-shape",el:e})},"i");
G6V.idomCompat=!0;var pL8=["youtube_fill","youtube_outline"];var vWS=new _.F1({type:"iconset",value:void 0}),Cg=function(){var l=_.B.apply(this,arguments)||this;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.iconName="";l.iconsetName="yt-icons";l.iconset=null;l.missingIconSet=!1;l.iconType=null;l.iconShapeDataSignal=_.AF(void 0,void 0,"RQ9kUb");l.renderingOptionsSignal=_.AF({iconWidth:"100%",iconHeight:"100%",iconFilter:l.iconFilter},void 0,"qtx8Ef");l.wizHasRendered=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(Cg,_.B);Cg.prototype.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l)};
Cg.prototype.handlePropertyChange=function(){var l=this,e,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P;return _.V(function(h){switch(h.nextAddress){case 1:if(e=!l.icon&&!l.iconName||!l.isAttached)return h.return();O=l;E=O.icon;J=O.size;z=O.defaultToFilled;M=O.active;Z=O.targetContainer;l.toggleContainerClass(Z);_.a("kevlar_use_wil_icons")&&E&&(u=WKp(E),l.iconType=u.length?u[1]:null);if(E){h.jumpTo(2);break}l.iconsetName="";l.iconName="";return _.C(h,l.renderIcon(Z,E),3);case 3:return h.return();case 2:d=NbS(E);
g=WKp(d);g.length&&(l.iconsetName=g[0],l.iconName=g[1]);if(!_.a("kevlar_use_wil_icons")){h.jumpTo(4);break}w=Cg;n=rUq;k=l.iconType;y=l.active;c=l.defaultToFilled;f=l.size;P=l.iconsetName;return _.C(h,D$1(),6);case 6:return _.C(h,n.call(w,k,y,c,f,P,h.yieldResult),5);case 5:l.iconShapeData=h.yieldResult;case 4:if(l.shouldRenderIconShape(Z)){h.jumpTo(7);break}return _.C(h,l.determineIconSet(d,M,z,J,Z),7);case 7:return _.C(h,l.renderIcon(Z,E),0)}})};
Cg.prototype.toggleContainerClass=function(l){l?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var NbS=function(l){return!_.a("default_to_innertube_icon")||l.indexOf(":")>0?l:_.w6(l)};
_.X=Cg.prototype;_.X.determineIconSet=function(l,e,O,E){var J=this;return _.V(function(z){return z.nextAddress==1?_.a("kevlar_system_icons")||_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.hT("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.C(z,J.switchToYtSysIconset(l,e,O,E),3):z.jumpTo(2):z.nextAddress!=2?z.return():_.C(z,J.useYtSysIconsetForMissingIcons(l,e,O,E),0)})};
_.X.switchToYtSysIconset=function(l,e,O,E){var J=this,z,M,Z,u,d,g,w;return _.V(function(n){switch(n.nextAddress){case 1:if(!l||J.iconsetName!=="yt-icons"&&J.iconsetName!=="yt-sys-icons"){n.jumpTo(0);break}z=WKp(l);M=z[1];M=_.m$x(M);_.a("enable_polymer_icons_replace_underscores_dash")&&M.includes("_filled")&&(M=M.replace(/_filled/g,"-filled"));return _.C(n,is(M,!0),3);case 3:return Z=n.yieldResult,_.C(n,is(M,!1),4);case 4:if((u=n.yieldResult)||e&&Z)J.iconsetName="yt-sys-icons";J.iconName=J.getIconName(M,
e,O,u,Z);if(E===24){n.jumpTo(0);break}d="yt-sys-icons"+E+":"+J.iconName;return _.C(n,is(d,!1,!0),6);case 6:return g=n.yieldResult,_.C(n,is(d,!0,!0),7);case 7:w=n.yieldResult;J.iconName=J.getIconName(M,e,O,g,w);if(!e&&g||e&&w)J.iconsetName="yt-sys-icons"+E;_.Cl(n)}})};
_.X.getIconName=function(l,e,O,E,J){l.includes("-filled")&&(l=l.replace("-filled",""));return J&&(e||O)?l+"-filled":l};
_.X.useYtSysIconsetForMissingIcons=function(l,e,O,E){var J=this,z,M;return _.V(function(Z){if(Z.nextAddress==1)return J.iconsetName!=="yt-icons"?Z.jumpTo(0):_.C(Z,is(J.iconName,!1,!1,!0),3);if(Z.nextAddress!=4)return z=Z.yieldResult,_.C(Z,is(J.iconName,!1),4);M=Z.yieldResult;if(z||!M)return Z.jumpTo(0);J.iconsetName="yt-sys-icons";return _.C(Z,J.switchToYtSysIconset(l,e,O,E),0)})};
_.X.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var D$1=function(){return _.V(function(l){try{return l.return(_.V2().resolve(_.A3))}catch(e){return l.return(new Promise(function(O){_.h7().parkOrScheduleJob(function(){O(_.V2().resolve(_.A3))},2,"ci")}))}})},rUq=function(l,e,O,E,J,z){E=E===void 0?24:E;
if(l){l=l.toLowerCase();var M=l.endsWith("_filled")||l.endsWith("-filled");e={iconName:l,iconStyle:(e===void 0?0:e)||(O===void 0?0:O)||M?"youtube_fill":"youtube_outline",iconSize:E,iconSetName:J===void 0?"yt-icons":J};O=!!z.resolveIcon(e);O||(e.iconSize=void 0,O=!!z.resolveIcon(e));!O&&M&&(e.iconName=l.substring(0,l.length-7),e.iconSize=E,O=!!z.resolveIcon(e),O||(e.iconSize=void 0,O=!!z.resolveIcon(e)));O||(e.iconStyle=void 0,O=!!z.resolveIcon(e));O||_.hG(new _.Hk("Icon not supported",{iconName:e.iconName,
iconStyle:e.iconStyle,iconSize:e.iconSize,iconType:l}));return O?e:void 0}};
_.X=Cg.prototype;_.X.shouldRenderIconShape=function(l){if(!_.a("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;l=this.getContainer(l);return!caL(l,this.icon)};
_.X.renderIcon=function(l,e){var O=this,E,J,z,M,Z,u,d,g;return _.V(function(w){switch(w.nextAddress){case 1:if(e&&O.icon!==e)return w.return();E=O.getContainer(l);J=caL(E,O.icon);if(O.shouldRenderIconShape(l)&&O.iconType)return O.applyIconShape(J,E),w.return();O.removeIconShape();if(!E)return w.return();O.iconName===""&&O.iconset&&E&&(O.removeStaticIcon(O.iconset,E),J&&O.removeAnimatedIcon(E));if(O.iconName===""&&O.iconset||!O.iconsetName||!vWS)return w.return();O.iconset=vWS.byKey(O.iconsetName);
if(!O.iconset)return O.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.id(O,O.onIconsetAdded)),w.return();O.missingIconSet&&(O.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.id(O,O.onIconsetAdded)));M=(z=J||O.isAnimatedIcon?jZ8(O.icon):void 0)&&!z.lazyLoad;u=z&&((Z=z)==null?void 0:Z.lazyLoad)&&(z.lottiePlayerProps.animationConfig.animationData?!0:nd.get(O.isDarkTheme?z.pathDarkTheme:z.path)?!0:!1);if(M||u)return O.applyAnimatedIcon(E,z,O.iconset),w.return();if(u||
(d=z)==null||!d.lazyLoad){w.jumpTo(2);break}g=faq(z,O.isDarkTheme);O.applyStaticIcon(O.iconset,E,O.iconName,l,J);return _.C(w,g,3);case 3:return _.C(w,O.renderIcon(O.targetContainer,O.icon),4);case 4:return w.return();case 2:O.applyStaticIcon(O.iconset,E,O.iconName,l,J),_.Cl(w)}})};
_.X.getContainer=function(l){var e,O=(e=P8p(this.hostElement))==null?void 0:e.host;e=!!O&&!!O.polymerController;if(!l||e)return l?this.getTargetContainer(l,O):this.hostElement};
_.X.getTargetContainer=function(l,e){var O=_.ud(e).querySelector("#"+l);O||(l=new _.Hk("yt-icon container missing",e.is,l),_.UW(l));return O};
_.X.applyStaticIcon=function(l,e,O,E,J){J&&this.removeAnimatedIcon(e);this.removeIconShape();J=J&&!!this.iconType&&!!this.iconShapeData&&_.a("kevlar_use_wil_icons");try{J?this.applyIconShape(!1,e):l.applyIcon(e,O)}catch(z){this.handleError(z,E,e)}};
_.X.applyIconShape=function(l,e){this.iconset&&e&&(this.removeStaticIcon(this.iconset,e),l&&this.removeAnimatedIcon(e));l={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var O=_.b(this.iconShapeDataSignal);e=O.next().value;O=O.next().value;var E=_.b(this.renderingOptionsSignal),J=E.next().value;E=E.next().value;O(this.iconShapeData);E(l);if(!this.wizHasRendered)for(this.wizHasRendered=!0,l=_.b(Bhu(e,J)).next().value;l.firstChild;)_.ud(this.hostElement).appendChild(l.firstChild)};
_.X.removeIconShape=function(){if(_.a("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.X.removeStaticIcon=function(l,e){l.removeIcon(e)};
_.X.applyAnimatedIcon=function(l,e,O){this.removeStaticIcon(O,l);this.removeIconShape();var E;O=this.animatedIconElement&&((E=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:E.type)===e.type;if(this.animatedIconElement&&O){this.animatedIconElement.polymerController.animatedIcon=e;var J;((J=this.animatedIconElement)==null?void 0:J.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(l),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=e,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.a("kevlar_use_wil_icons")?l.insertBefore(this.animatedIconElement,l.childNodes[0]):(l=_.ud(l),l.insertBefore(this.animatedIconElement,l.childNodes[0]))};
_.X.removeAnimatedIcon=function(l){_.a("kevlar_use_wil_icons")?this.animatedIconElement&&l.contains(this.animatedIconElement)&&l.removeChild(this.animatedIconElement):(l=_.ud(l),this.animatedIconElement&&l.contains(this.animatedIconElement)&&l.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.X.handleError=function(l,e,O){_.LZ(l,this.iconName,e,O);e=caL(O,this.icon);var E=!1;window.location.href.includes("JpymaW6Lh2w")?E=!0:O._svgIcon&&(O=(O=O._svgIcon.parentNode)?O.tagName:"unknown",_.LZ(l,O),O==="YT-ICON"&&l.name==="NotFoundError"?E=!0:l.name==="NotFoundError"&&e&&(E=!0));E?_.hG(l):_.UW(l)};
_.Ji.Object.defineProperties(Cg,{template:{configurable:!0,enumerable:!0,get:function(){if(qei===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;
txH===void 0&&(txH=document.createElement("template"));var E=txH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);qei=l}l=qei;return l}}});
Cg.prototype.handlePropertyChange=Cg.prototype.handlePropertyChange;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Cg.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",String)],Cg.prototype,"icon",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Cg.prototype,"active",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Cg.prototype,"defaultToFilled",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Cg.prototype,"isAnimatedIcon",void 0);
_.L([_.T({value:24}),_.q("design:type",Number)],Cg.prototype,"size",void 0);_.L([_.T({value:""}),_.q("design:type",String)],Cg.prototype,"targetContainer",void 0);_.L([_.T(),_.q("design:type",Object)],Cg.prototype,"animatedIconElement",void 0);_.L([_.T(),_.q("design:type",Object)],Cg.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Cg.prototype,"ariaHidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Cg.prototype,"ariaLabel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Cg.prototype,"role",void 0);_.L([_.T(),_.q("design:type",String)],Cg.prototype,"style",void 0);_.L([_.T(),_.q("design:type",String)],Cg.prototype,"iconFilter",void 0);_.L([_.AA("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],Cg.prototype,"handlePropertyChange",null);_.L([_.Ps({is:"yt-icon",noInjection:!0})],Cg);var SeS;var QvC=function(){var l=document.body,e=l.appendChild;if(SeS===void 0){var O=document.createElement("template");_.p(O,'\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>');
SeS=O}O=SeS;e.call(l,O.content)};
document.body?QvC():window.addEventListener("DOMContentLoaded",QvC);var x$6,ljk=function(){return x$6!==void 0?x$6:x$6=document.createElement("template")};
document.head.appendChild(ljk().content);var eWx,OGq=function(){return eWx!==void 0?eWx:eWx=document.createElement("template")};
document.head.appendChild(OGq().content);var Eyq;_.of=new _.Xa("KEY_MANAGER_TOKEN");var LrW={duration:1E3,easing:"ease",fill:"forwards"};_.Z8(hqu);var q3x={duration:1E3,easing:"ease",fill:"forwards"},zWS=_.XO(function(l){var e=_.e4("animated-rolling-character"),O=void 0,E=function(){var J,z;return Xj((J=l.character)==null?void 0:J.call(l))||Xj((z=l.previousCharacter)==null?void 0:z.call(l))};
_.Gh(function(){if(l.marginMultiplier()){var J;(J=O)==null||J.cancel();if(E()){var z;J=((z=l.previousCharacter)==null?0:z.call(l))?Number(l.previousCharacter())+10:l.rollUp()?0:30;var M;if((M=l.shouldAnimate)==null||!M.call(l)){var Z,u;J-=tYq((Z=l.character)==null?void 0:Z.call(l),(u=l.previousCharacter)==null?void 0:u.call(l),l.rollUp(),J)}}else{J=l.rollUp()?0:2;var d;(d=l.shouldAnimate)!=null&&d.call(l)||(z=J,M=l.rollUp()?-1:1,J=z-M)}e.value.style.marginTop="-"+J*l.marginMultiplier()+"px";var g;
if((g=l.shouldAnimate)==null?0:g.call(l)){var w,n;O=vKg(e.value,(w=l.character)==null?void 0:w.call(l),(n=l.previousCharacter)==null?void 0:n.call(l),l.rollUp(),J,E(),l.marginMultiplier())}else{var k;e.value.style.display=((k=l.character)==null?0:k.call(l))?"":"none"}}},"vt9b9b");
return _.W("animated-rolling-character",{el:e,class:"animated-rolling-character-wiz"},_.W(_.A,{cond:E,then:function(){return _.W(JoS,null)},
else:function(){return _.W(XSk,{character:l.character})}}))},"j");
zWS.idomCompat=!0;var NhW=_.a("web_enable_sink_animated_rolling_character_and_number")?zWS:hqu,bGq=_.a("web_enable_sink_animated_rolling_character_and_number")?zWS:_.yh(hqu),JoS=_.XO(function(){for(var l=[],e=1;e<30;e++)l.push(_.W("div",null,e%10));return _.W(_.ZB,null,_.W("div",null,"\u00a0"),l,_.W("div",null,"\u00a0"))},"k"),XSk=_.XO(function(l){var e=l.character;
return _.W(_.ZB,null,_.W("div",null,"\u00a0"),_.W(_.A,{cond:function(){return!(e==null?0:e())||_.MA(e==null?void 0:e())},
then:function(){return _.W("div",null,"\u00a0")},
else:function(){return _.W("div",null,e)}}),_.W("div",null,"\u00a0"))},"l");_.Z8(raM);var Mii=_.XO(function(l){var e=void 0,O=void 0,E=function(){var z;return((z=l.fontSizeMultiplier)==null?0:z.call(l))?l.heightPx()*l.fontSizeMultiplier():l.heightPx()},J=_.mF(function(){if(!l.numberText())return[];
var z,M,Z=((z=l.forceRollUp)==null?void 0:z.call(l))||!O||!((M=l.numberValue)==null?0:M.call(l))||O<l.numberValue(),u,d=l.numberText();z=E();M=!((u=l.shouldAnimate)==null||!u.call(l));u=[];var g=0,w=0,n=(e?e.replace(/\D/g,"").length:0)-(d?d.replace(/\D/g,"").length:0),k=e?e.split(/(\d)/).filter(Boolean):[];for(d=d.split(/(\d)/).filter(Boolean);n<0;){var y=d[w];u.push({character:y,rollUp:Z,marginMultiplier:z,shouldAnimate:M});w++;Xj(y)&&n++}for(;g<n;)y=k[g],u.push({previousCharacter:y,rollUp:Z,marginMultiplier:z,
shouldAnimate:M}),g++,Xj(y)||n++;for(;w<d.length;)n=d[w],y=k[g],Xj(n)===Xj(y)?(w++,g++):Xj(n)?(g++,n=void 0):Xj(y)&&(w++,y=void 0),u.push({character:n,previousCharacter:y,rollUp:Z,marginMultiplier:z,shouldAnimate:M});e=l.numberText();var c;O=(c=l.numberValue)==null?void 0:c.call(l);return u},void 0,"B9AmNd");
return _.W("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return l.numberText()?["height: "+E()+"px;","line-height: "+l.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.W(_.KH,{each:J,keyBy:"INDEX"},function(z){return _.W(bGq,{character:function(){return z().character},
previousCharacter:function(){return z().previousCharacter},
marginMultiplier:function(){return z().marginMultiplier},
rollUp:function(){return z().rollUp},
shouldAnimate:function(){return z().shouldAnimate}})}))},"m");
Mii.idomCompat=!0;_.oO2=_.a("web_enable_sink_animated_rolling_character_and_number")?Mii:raM;_.ViS=_.a("web_enable_sink_animated_rolling_character_and_number")?Mii:_.yh(raM);var D1L={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"};_.$8=_.XO(function(l){var e=_.e4("a",l.ref),O=l.aTagConfig?l.aTagConfig:_.mF(function(){var E,J,z,M,Z,u;var d=(u=_.t3((M=l.command)==null?void 0:M.call(l)))!=null?u:(Z=l.command)==null?void 0:Z.call(l);return _.vf({innertubeCommand:d,skipOnClick:(E=l.skipOnClick)==null?void 0:E.call(l),stopPropagation:(J=l.dangerousStopPropagation)==null?void 0:J.call(l),defaultTarget:(z=l.target)==null?void 0:z.call(l)})||{}},void 0,"gnrRge");
_.Gh(function(){e.value._data=O()._data;e.value.params=O().params},"dcjvAe");
return _.W("a",{el:e,href:function(){return O().href$},
rel:function(){return O().rel$},
class:function(){var E,J;return(J=O().className)!=null?J:(E=l.className)==null?void 0:E.call(l)},
style:function(){var E;if((E=l.style)==null?0:E.call(l))return l.style();var J;return((J=l.disabled)==null?0:J.call(l))?"pointer-events:none":""},
"aria-haspopup":function(){return!!O()["aria-haspopup$"]},
"force-new-state":Kd(function(){return O()["force-new-state$"]}),
title:Kd(function(){var E,J;return(J=O().title$)!=null?J:(E=l.title)==null?void 0:E.call(l)}),
role:Kd(function(){return O().role$}),
target:Kd(function(){return O().target$}),
dir:Kd(function(){var E;return((E=l.dir)==null?0:E.call(l))?l.dir():O().dir}),
tabindex:function(){var E;return O().tabindex$?Number(O().tabindex$):(E=l.tabIndex)==null?void 0:E.call(l)},
"aria-hidden":function(){var E,J;return(J=O()["aria-hidden$"])!=null?J:(E=l.ariaHidden)==null?void 0:E.call(l)},
"aria-label":function(){var E,J;return(J=O()["aria-label$"])!=null?J:(E=l.ariaLabel)==null?void 0:E.call(l)},
"aria-current":l.ariaCurrent,"aria-disabled":l.disabled,"aria-labelledby":l.ariaLabelledby,"aria-describedby":l.ariaDescribedby,"aria-selected":l.ariaSelected,"tab-identifier":l.tabIdentifier,"on:pointerdown":_.pd(function(E){var J,z;return void((z=(J=O()).onpointerdown)==null?void 0:z.call(J,E))}),
"on:click":_.pd(function(E){var J,z;return void((z=(J=O()).onclick)==null?void 0:z.call(J,E))})},l.children)},"n");var ZG6=function(l,e){this.fillAnimation=new Animation(lfV(l),document.timeline);this.strokeAnimation=new Animation(e6A(e),document.timeline)};
ZG6.prototype.play=function(){var l,e;(e=(l=this.fillAnimation).play)==null||e.call(l);var O,E;(E=(O=this.strokeAnimation).play)==null||E.call(O)};
ZG6.prototype.cancel=function(){var l,e;(e=(l=this.fillAnimation).cancel)==null||e.call(l);var O,E;(E=(O=this.strokeAnimation).cancel)==null||E.call(O)};_.Rx=_.XO(function(l){var e=l.model;var O=l.pointerDownEvent;var E=l.pointerUpEvent;var J=l.pointerLeaveEvent;l=_.e4("div");var z=_.HF({"border-radius":function(){return e().borderRadius}}),M=_.e4("div"),Z=_.e4("div"),u=_.b(_.jN(function(){return(E==null?0:E())||(J==null?0:J())?!1:!(O==null||!O())||!1})),d=u.next().value,g=u.next().value,w=void 0,n=function(){!w&&Z.value&&M.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(w=new ZG6(Z.value,M.value));
var h;(h=w)==null||h.play()},k=function(){var h;
(h=w)==null||h.cancel()},y=function(){var h;
(h=w)==null||h.cancel()};
_.Gh(function(){(E==null?0:E())&&n()},"YjVIpd");
_.Gh(function(){(O==null?0:O())&&k()},"UrXvqb");
_.Gh(function(){(J==null?0:J())&&y()},"QK6L8b");
u=_.pd(function(){n();g(!1)});
var c=_.pd(function(){k();g(!0)}),f=_.pd(function(){y();
g(!1)});
_.B3(function(){if(w){var h;(h=w)==null||h.cancel();w=void 0}});
var P={};d=_.ax("yt-spec-touch-feedback-shape",function(){return O8t(e().color)},(P["yt-spec-touch-feedback-shape--focused"]=function(){return!!e().focused&&!e().disabled},P["yt-spec-touch-feedback-shape--circular"]=function(){return!!e().circular},P["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!e().isExtended},P["yt-spec-touch-feedback-shape--down"]=d,P["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!e().triggerEvents},P));
return _.W("yt-touch-feedback-shape",{style:_.HF({"border-radius":"inherit"})},_.W("div",{el:l,class:d,style:_.HF({"margin-top":function(){return e().customTopExtend?"-"+e().customTopExtend+"px":void 0}}),
"on:mousedown":c,"on:mouseup":u,"on:pointerleave":f,"on:touchstart":c,"on:touchend":u,"aria-hidden":!0},_.W("div",{class:"yt-spec-touch-feedback-shape__stroke",style:z,el:M}),_.W("div",{class:"yt-spec-touch-feedback-shape__fill",style:z,el:Z})))},"o");
_.Rx.idomCompat=!0;var uM6={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 Wu=_.dT();Wu=Wu.toLowerCase();if(_.ZW(Wu,"android")){var CxF=Wu.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);CxF&&parseFloat(CxF[1])<100||Wu.match("("+Object.keys(uM6).join("|")+")")};var oyk=_.XO(function(l){return _.W(_.A,{cond:l.aTagConfig,then:function(e){return _.W(_.$8,{aTagConfig:e,disabled:l.disabled,className:l.className,style:l.style,title:l.title,ariaLabel:l.ariaLabel,ariaCurrent:function(){var O,E;return((O=l.toggleable)==null?void 0:O.call(l))&&((E=l.toggled)==null?void 0:E.call(l))}},l.children)},
else:function(){return _.W("button",{"on:click":_.pd(function(e){var O;return(O=l.onClick)==null?void 0:O.call(l,e)}),
class:l.className,title:l.title,style:l.style,disabled:l.disabled,"aria-pressed":function(){var e,O;return((e=l.toggleable)==null?0:e.call(l))?!((O=l.toggled)==null||!O.call(l)):void 0},
"aria-label":l.ariaLabel,"aria-disabled":l.visiblyDisabled,"aria-hidden":l.ariaHidden,tabindex:l.tabIndex},l.children)}})},"p"),WL1=_.XO(function(l){var e=l.data;
var O=l.hasIconLeading;var E=l.hasIconLeadingTrailing;var J=l.hasIconTrailing;var z=l.iconButton;var M=l.iconClassName;var Z=l.secondaryIconClassName;var u=l.icon;var d=l.secondaryIcon;var g=l.textContentClassName;return _.W(d_,{className:"",style:"display: inherit; justify-content: center"},_.W(_.A,{debugInstance:"V4z1Uc",cond:function(){return u&&(O()||E()||(z==null?void 0:z()))},
then:function(){return _.W(d_,null,_.W("div",{class:M,"aria-hidden":"true"},u==null?void 0:u()))}}),_.W(_.A,{debugInstance:"ok3btb",
cond:function(){return(e().buttonText||e().animatedTextProps||e().formattedButtonText)&&!(z==null?0:z())},
then:function(){return _.W(d_,null,_.W($pq,{className:g,iconPosition:function(){return e().iconPosition},
text:function(){return e().buttonText},
oneOffCustomTextWrap:function(){return e().oneOffCustomTextWrap},
formattedButtonText:function(){return e().formattedButtonText},
animatedTextProps:function(){return e().animatedTextProps}}))}}),_.W(_.A,{debugInstance:"DO5Rz",
cond:J,then:function(){return _.W(d_,null,_.W("div",{class:M},u==null?void 0:u()))}}),_.W(_.A,{debugInstance:"bnojSc",
cond:E,then:function(){return _.W(d_,null,_.W("div",{class:Z},d==null?void 0:d()))}}),_.W(_.A,{debugInstance:"HN3kad",
cond:function(){return!e().disabled&&!0},
then:function(){return _.W(_.Rx,{model:function(){return{color:b8g(e())}}})}}))},"q"),$pq=_.XO(function(l){var e=function(){var O,E;
return((O=l.iconPosition)==null?void 0:O.call(l))==="icon-with-label"||((E=l.oneOffCustomTextWrap)==null?void 0:E.call(l))};
return _.W("div",{class:l.className,"aria-hidden":function(){var O,E,J;return((O=l.ariaHidden)==null?void 0:O.call(l))&&(!((E=l.animatedTextProps)==null||!E.call(l))||!((J=l.formattedButtonText)==null||!J.call(l)))}},_.W(_.cK,null,_.W(_.jD,{when:function(){var O;
return(O=l.animatedTextProps)==null?void 0:O.call(l)}},function(){return _.W(_.ViS,{numberText:function(){return l.animatedTextProps().numberText},
numberValue:function(){return l.animatedTextProps().numberValue},
heightPx:function(){return l.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return l.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return l.animatedTextProps().shouldAnimate},
forceRollUp:function(){return l.animatedTextProps().forceRollUp}})}),_.W(_.jD,{when:function(){var O;
return(O=l.formattedButtonText)==null?void 0:O.call(l)}},function(){return _.W(_.zK,{text:function(){return Object.assign({},l.formattedButtonText(),{lineBreakMode:e()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":l.formattedButtonText().lineBreakMode,
alignment:e()?"TEXT_ALIGNMENT_CENTER":l.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!e()}})}),_.W(_.jD,{when:function(){var O,E;
return((O=l.iconPosition)==null?void 0:O.call(l))==="icon-with-label"&&((E=l.text)==null?void 0:E.call(l))}},function(){return _.W(_.zK,{text:function(){return{content:l.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.W(_.HK,null,function(){return l.text})))},"r"),dpH=_.XO(function(l){return _.W(_.A,{debugInstance:"kM7Sgc",
cond:l.hasLabel,then:function(){var e;return _.W("label",{class:l.className},l.children,(e=l.textContent)==null?void 0:e.call(l))},
else:function(){return l.children}})},"s"),d_=_.XO(function(l){return l.children},"t");var VNx=bJ("stamper-context");var Ms=_.XO(function(l){var e=l.data;var O=l.icon;var E=l.iconName;var J=l.secondaryIcon;var z=l.secondaryIconName;var M=l.focusedOverride;wjt();var Z=EOu(e),u=Z.size,d=Z.style;l=Z.disabled;var g=Z.onTap,w=Z.alignByText,n=Z.aTagConfig,k=Z.customColors,y=Z.segmentedPosition,c=Z.toggled,f=Z.toggleable,P=Z.accessibilityLabel,h=Z.onToggle,N=Z.iconPosition,t=Z.oneOffCustomTextWrap,r=Z.disableTextEllipsis,D=Z.disableBackdropFilter,b2=Z.tooltipText,$V=Z.ariaHidden,gT=Z.tabIndex,mx=Z.buttonText,jM=Z.formattedButtonText,
cx=Z.animatedTextProps,tq=z6p(e,O,J,E,z,M),Px=tq.type;O=tq.shouldFocus;E=tq.hasIconLeading;J=tq.hasIconTrailing;var S0=tq.hasIconLeadingTrailing,QH=tq.hasIconOnly;z=tq.hasIconOnly40;var pR=tq.hasIconWithLabel;M=tq.iconButton;var oq=tq.visiblyDisabled;Z=tq.overrideSmallSizeIcon;var ZS=tq.iconToRender;tq=tq.secondaryIconToRender;var Ou={},uq={};return _.W(dpH,{className:_.ax("yt-spec-button-shape-with-label",(Ou["yt-spec-button-shape-with-label--is-overlay"]=function(){return d()==="overlay"||d()===
"overlay-dark"},Ou)),
hasLabel:pR,textContent:function(){return _.W($pq,{text:mx,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:t,iconPosition:N,formattedButtonText:jM,animatedTextProps:cx})}},_.W(oyk,{aTagConfig:n,
className:_.ax("yt-spec-button-shape-next",function(){return Vrx(Px())},function(){return oq()?void 0:Z8W(d())},function(){return u6x(u())},(uq["yt-spec-button-shape-next--disabled"]=oq,uq["yt-spec-button-shape-next--focused"]=O,uq["yt-spec-button-shape-next--icon-trailing"]=J,uq["yt-spec-button-shape-next--icon-leading"]=E,uq["yt-spec-button-shape-next--icon-leading-trailing"]=S0,uq["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return S0()&&!(mx()||jM())},uq["yt-spec-button-shape-next--icon-button"]=
function(){return QH()||pR()},uq["yt-spec-button-shape-next--icon-only-default"]=z,uq["yt-spec-button-shape-next--align-by-text"]=w,uq["yt-spec-button-shape-next--segmented-start"]=function(){return y()==="start"},uq["yt-spec-button-shape-next--segmented-end"]=function(){return y()==="end"},uq["yt-spec-button-shape-next--override-small-size-icon"]=Z,uq["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=t,uq["yt-spec-button-shape-next--disable-text-ellipsis"]=r,uq["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!D()&&MrA()},uq)),
style:function(){return CM2(k()).style},
onClick:function(ZV){g==null||g(ZV);f()&&(h==null||h(ZV))},
disabled:l,ariaLabel:P,toggleable:f,toggled:c,title:function(){var ZV;return(ZV=b2())!=null?ZV:""},
visiblyDisabled:oq,ariaHidden:$V,tabIndex:gT},_.W(WL1,{data:e,hasIconLeading:E,hasIconLeadingTrailing:S0,hasIconTrailing:J,iconButton:M,icon:ZS,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:tq})))},"u");
Ms.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var gyS=_.XO(function(l){var e=l.data;var O=l.id;var E=l.hidden;var J=l.className;var z=l.iconName;var M=l.secondaryIconName;l=_.b(_.AF(!1,void 0,"RyKHFc"));var Z=l.next().value,u=l.next().value,d=function(){var w=_.V2().resolve(_.MG(_.of));w&&u(w.isKeyBoardInUse())},g=function(){u(!1)};
l=_.e4("yt-button-shape",function(w){if(_.V2().resolve(_.MG(_.of)))return w.addEventListener("focusin",d),w.addEventListener("focusout",g),function(){w.removeEventListener("focusin",d);w.removeEventListener("focusout",g)}});
return _.W("yt-button-shape",{el:l,id:O,class:J,hidden:E},_.W(_.A,{cond:e,then:function(){return _.W(Ms,{data:e,iconName:z,secondaryIconName:M,focusedOverride:Z})}}))},"v");
_.a("web_wiz_button_shape")&&_.Zw(gyS,"yt-button-shape",{props:{data:_.lB,id:_.lB,hidden:_.lB,className:_.lB,iconName:_.lB,secondaryIconName:_.lB},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var g_=function(){var l=_.B.apply(this,arguments)||this;l.keyboardFocused=!1;return l};
_.m(g_,_.B);g_.prototype.onFocus=function(){var l=_.V2().resolve(_.MG(_.of));l&&(this.keyboardFocused=l.isKeyBoardInUse())};
g_.prototype.onBlur=function(){this.keyboardFocused=!1};
g_.prototype.renderIdom=function(){var l=this;if(this.data){var e=FY(this.data,!!this.iconName),O=Xj2(this.data);this.data.focused=this.keyboardFocused;gOd(this.data,function(){var E;Bf("yt-icon",{icon:l.iconName,active:(E=l.data)==null?void 0:E.toggled,size:e,style:"width: "+e+"px; height: "+e+"px;",iconFilter:O},lP)},function(){var E;
Bf("yt-icon",{icon:l.secondaryIconName,active:(E=l.data)==null?void 0:E.toggled,size:e,style:"width: "+e+"px; height: "+e+"px;",iconFilter:O},lP)});
_.$u(this.hostElement,"yt-renderidom-finished")}};
_.Ji.Object.defineProperties(g_,{template:{configurable:!0,enumerable:!0,get:function(){if(Eyq===void 0){var l=document.createElement("template");_.p(l,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);l.content.insertBefore(OGq().content.cloneNode(!0),l.content.firstChild);l.content.insertBefore(ljk().content.cloneNode(!0),l.content.firstChild);Eyq=l}l=Eyq;return l}}});
g_.prototype.onBlur=g_.prototype.onBlur;g_.prototype.onFocus=g_.prototype.onFocus;_.L([_.K(Tq6),_.q("design:type",Object)],g_.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],g_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],g_.prototype,"iconName",void 0);_.L([_.T(),_.q("design:type",String)],g_.prototype,"secondaryIconName",void 0);_.L([_.T(),_.q("design:type",Object)],g_.prototype,"keyboardFocused",void 0);
_.L([_.wP("focusin"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],g_.prototype,"onFocus",null);_.L([_.wP("focusout"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],g_.prototype,"onBlur",null);_.L([_.Ps({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.a("web_wiz_button_shape")})],g_);_.Zw(_.XO(function(l){function e(){O().seconds&&z(s6V({seconds:Number(O().seconds)-Date.now()/1E3}))}
var O=l.targetTimestamp;l=l.className;var E=_.b(_.AF("",void 0,"U1Q8Ae")),J=E.next().value,z=E.next().value;_.RU(function(){e();var M=setInterval(function(){e()},1E3);
_.B3(function(){clearInterval(M)})});
return _.W("yt-countdown",{class:_.ax("ytCountDownHost",l)},_.W("div",null,J))},"w"),"yt-countdown",{props:{targetTimestamp:_.lB,
className:_.Vh}});_.hM=_.XO(function(l){var e=l.data;var O=l.className;var E=l.style;var J=l.useOutlinedIcon;var z=l.buttonOverrides;var M=l.animatedTextProps;var Z=l.onClick;var u=_.e4("button-view-model",function(f){f.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var P=e().targetId;P&&_.hg1(_.jQ(),P,f);return function(){Ulq(_.jQ(),f)}}),d=function(){return e().iconName},g,w=(g=_.V2().resolve(_.MG(_.lp)))==null?void 0:g(),n=function(){var f=e();
var P=z==null?void 0:z(),h=M==null?void 0:M();if(f){var N=afL(f.type);var t=!!f.title||!!f.titleFormatted;var r=!(!f.iconName&&!f.iconImage);t=r&&!t?"icon-only":r?f.iconTrailing||f.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;t==="icon-only-40"&&(N="text");var D,b2=(D=P==null?void 0:P.disabled)!=null?D:f.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||f.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";D=Object;r=D.assign;var $V=f.title,gT=f.titleFormatted;h=h&&h.numberText&&
!isNaN(Number(h.numberValue))?h:void 0;var mx=f.accessibilityText,jM=nOt(f.style),cx=kyM(f.state),tq=IfM(f.buttonSize),Px=A08(f,u,b2,Z);b2=b2&&!f.onDisabledTap;var S0=_.vf({elementsCommand:f.onTap,forceNewState:!0});S0=NT(S0)?S0:void 0;var QH=f.customFontColor,pR=f.customBackgroundColor;var oq=f.customBorderColor;var ZS=f.customDarkThemeFontColor,Ou=f.customDarkThemeBackgroundColor,uq=f.customDarkThemeBorderColor;QH=w&&ZS?ZS:QH;pR=w&&Ou?Ou:pR;oq=w&&uq?uq:oq;oq={color:QH?_.qv(QH):void 0,backgroundColor:pR?
_.qv(pR):void 0,borderColor:oq?_.qv(oq):void 0};f=r.call(D,{},{buttonText:$V,formattedButtonText:gT,animatedTextProps:h,accessibilityLabel:mx,style:jM,type:N,state:cx,size:tq,iconPosition:t,onTap:Px,disabled:b2,aTagConfig:S0,customColors:oq,tooltipText:f.tooltip},P)}else f={style:"mono",type:"text",state:"active",size:"M"};f.focused=c();return f},k=function(){return FY(n(),!!e().iconName)};
l=_.b(_.AF(!1,void 0,"vxWDPb"));g=l.next().value;var y=l.next().value,c=g;l=_.pd(function(){var f=_.V2().resolve(_.MG(_.of));f&&y(f.isKeyBoardInUse());return!1});
g=_.pd(function(){y(!1);return!1});
_.Gh(function(){var f,P=_.I(e==null?void 0:(f=e())==null?void 0:f.onVisible,_.L4);P&&_.qT(P,{disableClickTracking:!0})},"x3DHkf");
return _.W("button-view-model",{el:u,class:_.ax("yt-spec-button-view-model",O),"on:focusin":l,"on:focusout":g},_.W(_.A,{cond:function(){var f;return(e==null?0:(f=e())==null?0:f.iconImage)?{sources:[e().iconImage]}:void 0},
then:function(f){return _.W(Ms,{data:n,icon:function(){return _.W(_.Jm,{data:f,alt:"",targetWidth:k,targetHeight:k,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.W(Ms,{data:n,icon:function(){return _.W(_.cF,{icon:d,active:function(){return(J==null?0:J())?!1:n().toggled},
animateIcon:function(){var f;return!!(E==null?0:(f=E())==null?0:f.animateIcon)},
size:k})}})}}))},"x");
_.hM.idomCompat={callbacks:{onClick:!0}};_.Zw(_.XO(function(l){return _.W("yt-button-view-model",{id:l.id,class:_.ax(l.scopingClassName,l.classes),icon:function(){var e;return(e=l.icon)==null?void 0:e.call(l)},
"dialog-dismiss":function(){var e;return((e=l.dialogDismiss)==null?0:e.call(l))?"":void 0}},_.W(_.hM,{data:function(){var e;
return(e=l.data)==null?void 0:e.call(l)},
className:function(){var e;return(e=l.className)==null?void 0:e.call(l)},
style:function(){var e;return(e=l.style)==null?void 0:e.call(l)},
useOutlinedIcon:function(){var e;return(e=l.useOutlinedIcon)==null?void 0:e.call(l)},
buttonOverrides:function(){var e;return(e=l.buttonOverrides)==null?void 0:e.call(l)},
animatedTextProps:function(){var e;return(e=l.animatedTextProps)==null?void 0:e.call(l)},
onClick:function(e){var O;return(O=l.onClick)==null?void 0:O.call(l,e)}}))},"y"),"yt-button-view-model",{props:{data:_.lB,
className:_.lB,style:_.lB,useOutlinedIcon:_.lB,buttonOverrides:_.lB,animatedTextProps:_.lB,onClick:_.Vh,scopingClassName:_.lB,id:_.lB,icon:_.lB,dialogDismiss:_.lB,classes:_.lB}});var iB=function(){var l=_.B.apply(this,arguments)||this;l.isGoalActive=!0;return l};
_.m(iB,_.B);iB.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
iB.prototype.progressBarChanged=function(){var l=_.ud(this.hostElement).querySelector("#progress-bar-progress"),e,O,E,J=(E=Number((e=this.creatorGoalState)==null?void 0:e.currentGoalCount)/Number((O=this.creatorGoalState)==null?void 0:O.totalGoalCount)*100)!=null?E:0,z;l.style.width=((z=Math.min(J,100))!=null?z:0)+"%"};
iB.prototype.goalStateChanged=function(){var l;this.isGoalActive=((l=this.creatorGoalState)==null?void 0:l.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var e;l={"--yt-progress-bar-color":hEx((e=this.creatorGoalState)==null?void 0:e.progressBarColor)};_.dP(this.hostElement,l)};
iB.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Ji.Object.defineProperties(iB.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var l;return this.isGoalActive&&!((l=this.creatorGoalState)==null||!l.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.creatorGoalState)==null?0:l.endTimestampMs){var e;l=Number((e=this.creatorGoalState)==null?void 0:e.endTimestampMs)/1E3;return{seconds:String(l)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.creatorGoalState)==null?0:l.themedTargetImage){var e;l=_.I((e=this.creatorGoalState)==null?void 0:e.themedTargetImage,O6q);return this.isAppDarkTheme()?l==null?void 0:l.imageDark:l==null?void 0:l.imageLight}}}});
_.Ji.Object.defineProperties(iB,{template:{configurable:!0,enumerable:!0,get:function(){return REC()}}});
iB.prototype.goalStateChanged=iB.prototype.goalStateChanged;iB.prototype.progressBarChanged=iB.prototype.progressBarChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],iB.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);
_.L([_.T({selectorArgs:["data.creatorGoalEntityKey"],selector:function(l,e){return _.wV(l.entities,"creatorGoalEntity",e)}}),
_.q("design:type",Object)],iB.prototype,"creatorGoalState",void 0);_.L([_.T(),_.q("design:type",Object)],iB.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],iB.prototype,"isGoalActive",void 0);_.L([_.R("creatorGoalState","isGoalActive"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],iB.prototype,"shouldShowCountdown",null);_.L([_.R("creatorGoalState"),_.q("design:type",Object),_.q("design:paramtypes",[])],iB.prototype,"endTimestamp",null);
_.L([_.R("creatorGoalState"),_.q("design:type",Object),_.q("design:paramtypes",[])],iB.prototype,"targetIconThemedImage",null);_.L([_.AA("creatorGoalState.currentGoalCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iB.prototype,"progressBarChanged",null);_.L([_.AA("creatorGoalState.creatorGoalState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iB.prototype,"goalStateChanged",null);
_.L([_.Ps({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],iB);_.Y(iB,"yt-creator-goal-progress-flow-view-model",function(){return REC()},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var iGH;var wS0;var w_=function(){return _.B.apply(this,arguments)||this};
_.m(w_,_.B);w_.prototype.attached=function(){var l,e,O;if(this==null?0:(l=this.data)==null?0:(e=l.pdgPurchasedBumperLoggingDirectives)==null?0:(O=e.loggingDirectives)==null?0:O.trackingParams){var E,J,z;pjx(this==null?void 0:(E=this.data)==null?void 0:(J=E.pdgPurchasedBumperLoggingDirectives)==null?void 0:(z=J.loggingDirectives)==null?void 0:z.trackingParams)}};
w_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],w_.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],w_);
_.Y(w_,"yt-live-chat-item-bumper-view-model",function(){if(wS0===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;iGH===void 0&&(iGH=document.createElement("template"));var E=iGH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);wS0=l}l=wS0;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var AoR;var nyx;_.Oh=function(l,e){this.data=l;this.actions=e;this.data=l;this.actions=e};
_.Nj=function(){};_.Ab={};_.Ab.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(l,e){KJ2(this.hostElement,l,e)},
getNavigationEndpointPopupAction:function(l){return jOq(l,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(l,e){H8T(this.hostElement,l,e,this.openPopupConfig)}};var Uwg=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.af={};
_.af.YtEndpointBehavior=[_.Ab.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.hT("openPopupConfig");(this.useClickHandler=_.LH("useClickHandler",!1))?this.hostElement.addEventListener("click",gP(this,this.onEndpointClick_)):(GL(this.hostElement,"tap",gP(this,this.onEndpointTap_)),GL(this.hostElement,"touchend",gP(this,this.onEndpointTouchEnd_)));GL(this.hostElement,"touchstart",gP(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
gP(this,this.onEndpointTapStart_))},
onEndpointClick_:function(l){ffM(this.hostElement,l,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(l){var e=this.hostElement,O=this.openPopupConfig,E=this.disableCommandHandlerOverride;E=E===void 0?!1:E;var J=c0g(l);if(J){J.href&&r8(J.href);var z=l.detail;var M=z.sourceEvent;z=z.preventer;M=M.button!==void 0?M.button===0&&!Gk(M):z?!Gk(z):!0;J.data&&M&&FJp(e,J,l,O,E)}},
onEndpointTouchEnd_:function(l){Gk(l)||c0g(l)&&l.preventDefault()},
onEndpointTapStart_:function(l){BHu(l)}}];var YZW="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),LJt=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var ajF={};ajF.YtPlaintextBehavior=[_.po,{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(l){l.preventDefault();l=l.clipboardData.getData("text/plain");document.execCommand("insertText",!1,l)},
preventRichTextFormatting_:function(l){_.a_&&(l=l.detail.keyboardEvent,l.stopImmediatePropagation(),l.preventDefault())}}];var k$S;var IjC;var k8=function(){var l=_.B.apply(this,arguments)||this;l.ignoreShadyDom=!1;l.hasChange_=!1;l.hasSetTitle_=!1;l.useIOObserverForVisibilityLogging_=_.a("kevlar_use_vimio_behavior")&&_.hT("INNERTUBE_CLIENT_NAME")==="WEB";l.ytFormattedStringObserverHandlerKeys_=void 0;return l};
_.m(k8,_.B);_.X=k8.prototype;_.X.created=function(){this.useIOObserverForVisibilityLogging_=_.a("kevlar_use_vimio_behavior")&&_.hT("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.X.ready=function(){_.hT("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_()};
_.X.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.X.detached=function(){this.unobserveIOObservers_()};
_.X.clearContents_=function(){for(var l=this.getRoot(),e=l.lastChild;e&&e.tagName!=="STYLE";){try{l.removeChild(e)}catch(O){break}e=l.lastChild}};
_.X.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var l=_.b(this.ytFormattedStringObserverHandlerKeys_),e=l.next();!e.done;e=l.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(e.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.X.resetForAttributedString=function(){var l=this.getRoot();!l.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),l.appendChild(this.ytAttributedStringElementRef))};
_.X.resetForFormattedString=function(){var l=this.getRoot(),e=l.querySelector("yt-attributed-string");e&&(this.ytAttributedStringElementRef=l.removeChild(e))};
_.X.textChanged=function(){this.textChanged_(this.text)};
_.X.textChanged_=function(l){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!l||!l.runs&&!l.simpleText;if(_.a("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var e=this.hostElement.firstChild;e&&e.nodeName==="FONT";){var O=e;e=e.nextSibling;this.hostElement.removeChild(O)}e=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
O=l.simpleText;var E;!O&&((E=l.runs)==null?void 0:E.length)===1&&this.isSimpleString_(l.runs[0])&&(O=l.runs[0].text);O!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.hT("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(O!==void 0){try{e.textContent=O}catch(J){}e.textContent||(this.isEmpty=!0)}else l=l.runs,O!==void 0&&(l=[{text:O}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),l&&this.updateText_(l),
e.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.X.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)};
_.X.computeAriaLabel_=function(l){return l};
_.X.computeEllipsisTruncateStyling=function(l,e){return l&&!e};
_.X.computeUseAttributedString=function(l){return _.a("web_replace_formatted_with_attributed_string")&&XSu(l)&&!this.disableAttributedString&&!this.enableContentEditable};
_.X.setNodeStyle_=function(l,e){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.a("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?e.removeAttribute("dir"):e.setAttribute("dir","auto");e.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");e.style.color="";var O=null;this.noStyles||(l.bold&&(e.classList.add("bold"),O="bold"),l.deemphasize&&(e.classList.add("deemphasize"),O="deemphasize"),l.italics&&e.classList.add("italic"),
l.strikethrough&&e.classList.add("strikethrough"),l.errorUnderline&&(e.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),l.bracket&&e.classList.add("bracket"),l.textColor&&(e.style.color=_.t$(l.textColor)));O!==e.getAttribute("style-target")&&(O?e.setAttribute("style-target",O):e.removeAttribute("style-target"))};
_.X.setUpVisibilityLogging_=function(l,e){var O=this;this.setNodeTrackingParams_(l,e);var E;((E=e.data)==null?0:E.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(l=this.ytRendererBehavior.visibilityObserver.observe(e,function(J){var z=O.ytRendererBehavior.getVisibilityLogger();z&&z.reportShown(J)},this.ytRendererBehavior.visibilityOptionVisible_),e=this.ytRendererBehavior.visibilityObserver.observe(e,function(J){var z=O.ytRendererBehavior.getVisibilityLogger();
z&&z.reportHidden(J)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(l),this.ytFormattedStringObserverHandlerKeys_.push(e))};
_.X.setNodeTrackingParams_=function(l,e){e.data||(e.data={});if((l=l.loggingDirectives?l.loggingDirectives.trackingParams:null)||e.data.trackingParams)e.data.trackingParams=l};
_.X.computeHasLinkOnly_=function(l){return!(!l||l.length!==1||this.noEndpoints||!l[0].navigationEndpoint)};
_.X.getRoot=function(){var l=this.buildScopeDomOptions();return this.enableContentEditable?_.ud(_.ud(this.hostElement,l).querySelector("[contenteditable]")):_.ud(this.hostElement,l)};
_.X.fixContenteditableScope=function(){var l=function(e){e&&(e.nodeType===1&&e.classList&&(e.classList.add("style-scope"),e.classList.add("yt-formatted-string")),e.childNodes&&e.childNodes.forEach(function(O){l(O)}))};
l(this.getRoot())};
_.X.updateText_=function(l){for(var e=l.length,O=this.getRoot(),E=O.firstChild;E&&E.nodeName==="STYLE";)E=E.nextSibling;for(var J=0;J<e&&E;){var z=l[J],M=_.a("remove_cr_char")&&z.text?z.text.replace("\r",""):z.text;if(this.isSimpleString_(z)&&!this.useMixedDirectionFormattedStrings)if(E.nodeName==="#text"){E.textContent!=M&&(E.textContent=M);J++;E=E.nextSibling;continue}else break;if(_.I(z,Y0))break;else if(!this.noEndpoints&&z.navigationEndpoint){if(E.nodeName!=="A")break;this.setDataOnAnchor_(E,
z.navigationEndpoint)}else if(E.nodeName!=="SPAN")break;this.setNodeStyle_(z,E);this.setUpVisibilityLogging_(z,E);E.textContent!=M&&(E.textContent=M);J++;E=E.nextSibling}if(E)for(z=O.lastChild,E=J?E.previousSibling:null;z&&z!=E;){try{O.removeChild(z)}catch(Z){break}z=O.lastChild}J!==e&&this.addTextNodes_(l,J)};
_.X.addTextNodes_=function(l,e){for(var O=document.createDocumentFragment(),E=l.length;e<E;e++){var J=l[e],z=_.a("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)O.appendChild(document.createTextNode(z));else{var M=_.I(J,Y0);if(M){if(M.image){var Z=document.createElement("img");M.isCustomEmoji||Z.classList.add("small-emoji");Z.classList.add("emoji");M.isCustomEmoji&&(Z.dataset.emojiId=M.emojiId);Z.src=_.up(M.image.thumbnails,
this.emojiSize);(J=this.get("image.accessibility.accessibilityData.label",M))?Z.alt=J:M.shortcuts&&M.shortcuts.length>0?Z.alt=M.shortcuts[0]:M.emojiId&&(Z.alt=M.emojiId);O.appendChild(Z);this.hasEmoji=!0}}else!this.noEndpoints&&J.navigationEndpoint?(Z=document.createElement("a"),Z.classList.add("yt-simple-endpoint"),Z.setAttribute("spellcheck","false"),this.setDataOnAnchor_(Z,J.navigationEndpoint)):Z=document.createElement("span"),this.setNodeStyle_(J,Z),this.setUpVisibilityLogging_(J,Z),Z.appendChild(document.createTextNode(z)),
O.appendChild(Z)}}this.getRoot().appendChild(O)};
_.X.isSimpleString_=function(l){return(this.noEndpoints||!l.navigationEndpoint)&&!_.I(l,Y0)&&(this.noStyles||!(l.bold||l.deemphasize||l.italics||l.strikethrough||l.errorUnderline||l.bracket||l.textColor))&&!l.loggingDirectives};
_.X.getRawText=function(){return _.lG(this.text)};
_.X.getFirstRunText=function(){var l;if(((l=this.text)==null?0:l.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.X.setFirstRunText=function(l){var e;((e=this.text)==null?0:e.runs)&&this.text.runs[0]&&(this.text.runs[0].text=l,this.textChanged_(this.text))};
_.X.setDataOnAnchor_=function(l,e){var O=this;!_.a("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(e)||this.isSignalServiceEndpoint_(e)?(l.onclick=this.serviceEndpointHandler_(e),yS(l,"#")):pfd({text:this.text,command:e},function(){Pst(l,e,O.target)})};
_.X.isServiceEndpoint_=function(l){var e;return!((e=_.I(l==null?void 0:l.commandMetadata,_.V4))==null||!e.sendPost)};
_.X.isSignalServiceEndpoint_=function(l){return!!_.I(l,_.ku)};
_.X.serviceEndpointHandler_=function(l){var e=this;return function(O){_.ii(e.hostElement,[l]);O.preventDefault()}};
_.X.overrideAriaLabelChanged_=function(){var l=this.getRoot();this.enableContentEditable&&l&&l.setAttribute("aria-label",this.overrideAriaLabel)};
_.X.enableContentEditableChanged_=function(){var l=this,e=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),e=_.ud(this.hostElement,e),!e.lastChild||e.lastChild instanceof HTMLElement&&e.lastChild.id!=="contenteditable-root"){var O=document.createElement("div");O.id="contenteditable-root";O.setAttribute("contenteditable","true");O.setAttribute("dir","auto");O.onfocus=function(){l.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
e.appendChild(O);this.overrideAriaLabel&&O.setAttribute("aria-label",this.overrideAriaLabel)}}else O=_.C1(this.hostElement).firstChild,O instanceof HTMLElement&&O.id==="contenteditable-root"&&_.ud(this.hostElement,e).removeChild(O)};
_.X.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.X.getNodesForVisibilityLogging_=function(){return _.WW(this.getRoot().childNodes,function(l){var e;return!((e=l.data)==null||!e.trackingParams)})};
_.X.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.X.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var l=this.ytRendererBehavior.getVisibilityLogger();l&&this.getNodesForVisibilityLogging_().forEach(function(e){l.reportShown(e)})}};
_.X.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var l=this.ytRendererBehavior.getVisibilityLogger();l&&this.getNodesForVisibilityLogging_().forEach(function(e){l.reportHidden(e)})}};
_.Ji.Object.defineProperties(k8.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.a("enable_mixed_direction_formatted_strings")}}});
k8.prototype.enableContentEditableChanged_=k8.prototype.enableContentEditableChanged_;k8.prototype.overrideAriaLabelChanged_=k8.prototype.overrideAriaLabelChanged_;k8.prototype.ellipsisTruncateChanged_=k8.prototype.ellipsisTruncateChanged_;k8.prototype.textChanged=k8.prototype.textChanged;_.L([_.K(ajF.YtPlaintextBehavior),_.q("design:type",Object)],k8.prototype,"ytPlaintextBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],k8.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],k8.prototype,"text",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"noEndpoints",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"noStyles",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],k8.prototype,"isDarkTheme",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],k8.prototype,"splitLines",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],k8.prototype,"forceDefaultStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],k8.prototype,"ellipsisTruncate",void 0);_.L([_.T(),_.q("design:type",Object)],k8.prototype,"ignoreShadyDom",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.q("design:type",Boolean)],k8.prototype,"ellipsisTruncateStyling",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.q("design:type",String)],k8.prototype,"ariaLabel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],k8.prototype,"isEmpty",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.q("design:type",Boolean)],k8.prototype,"hasLinkOnly_",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"hasEmoji",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"disableAttributedString",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"isOverlay",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"linkInheritColor",void 0);
_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"noPreWrap",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"userInput",void 0);_.L([_.T({value:16}),_.q("design:type",Number)],k8.prototype,"emojiSize",void 0);_.L([_.T(),_.q("design:type",String)],k8.prototype,"target",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"enableContentEditable",void 0);_.L([_.T(),_.q("design:type",String)],k8.prototype,"overrideAriaLabel",void 0);
_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"respectHtmlDir",void 0);_.L([_.T(),_.q("design:type",Boolean)],k8.prototype,"respectLangDir",void 0);_.L([_.R("plaintextOnly"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],k8.prototype,"useMixedDirectionFormattedStrings",null);_.L([_.T({computed:"computeUseAttributedString(text)"}),_.q("design:type",Boolean)],k8.prototype,"useYtAttributedString",void 0);
_.L([_.AA("text"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],k8.prototype,"textChanged",null);_.L([_.AA("ellipsisTruncate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],k8.prototype,"ellipsisTruncateChanged_",null);_.L([_.AA("overrideAriaLabel"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],k8.prototype,"overrideAriaLabelChanged_",null);
_.L([_.AA("enableContentEditable"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],k8.prototype,"enableContentEditableChanged_",null);_.L([_.Ps({is:"yt-formatted-string",disableElementRegistration:!0})],k8);
_.Y(k8,"yt-formatted-string",function(){if(IjC===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;k$S===void 0&&(k$S=document.createElement("template"));var E=k$S;O.call(e,E.content.cloneNode(!0),l.content.firstChild);IjC=l}l=IjC;return l});var mpH;var yoR;var pS1;var KL6;var If=function(){var l=_.B.apply(this,arguments)||this;l.focused=!1;l.disabled=!1;l.isOverlay=!1;return l};
_.m(If,_.B);If.prototype.triggerDown=function(){if(!this.disabled){_.oB(this.hostElement,"down",!0);var l;(l=this.currentAnimation)==null||l.cancel()}};
If.prototype.triggerUp=function(){if(!this.disabled){_.oB(this.hostElement,"down",!1);var l=this.fillElement;var e=this.strokeElement;typeof GroupEffect==="function"?(l=new GroupEffect([lfV(l),e6A(e)]),l=new Animation(l,document.timeline)):l=new ZG6(l,e);this.currentAnimation=l;var O;(O=this.currentAnimation)==null||O.play()}};
_.L([_.aB(".stroke"),_.q("design:type",HTMLElement)],If.prototype,"strokeElement",void 0);_.L([_.aB(".fill"),_.q("design:type",HTMLElement)],If.prototype,"fillElement",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],If.prototype,"focused",void 0);_.L([_.T(),_.q("design:type",Object)],If.prototype,"disabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],If.prototype,"isOverlay",void 0);_.L([_.Ps({is:"yt-interaction",disableElementRegistration:!0})],If);
_.Y(If,"yt-interaction",function(){if(KL6===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;pS1===void 0&&(pS1=document.createElement("template"));var E=pS1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);KL6=l}l=KL6;return l},{mode:2});var m8=function(){return _.B.apply(this,arguments)||this};
_.m(m8,_.B);_.X=m8.prototype;_.X.ready=function(){var l=this,e=_.ud(this.hostElement).querySelector("#button");e.addEventListener("focus",function(){Swk||(Swk=new Df1);l.keyboardFocused=Swk.isKeyBoardInUse()});
e.addEventListener("blur",function(){l.keyboardFocused=!1;l.rippleUp_()})};
_.X.computeTabIndex_=function(l){return l?-1:0};
_.X.computeButtonAriaPressed_=function(l){if(this.toggleable)return l?"true":"false"};
_.X.rippleDown_=function(){_.ud(this.hostElement).querySelector("#interaction").triggerDown()};
_.X.rippleUp_=function(){_.ud(this.hostElement).querySelector("#interaction").triggerUp()};
_.X.onPressedChanged_=function(){var l=_.C1(_.ud(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.C1(_.ud(this.hostElement).querySelector("#button")).children[0];l&&(l.active=this.pressed)};
m8.prototype.onPressedChanged_=m8.prototype.onPressedChanged_;m8.prototype.rippleUp_=m8.prototype.rippleUp_;m8.prototype.rippleDown_=m8.prototype.rippleDown_;_.L([_.T(),_.q("design:type",String)],m8.prototype,"label",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],m8.prototype,"disabled",void 0);_.L([_.T(),_.q("design:type",Boolean)],m8.prototype,"pressed",void 0);_.L([_.T(),_.q("design:type",Object)],m8.prototype,"toggleable",void 0);
_.L([_.T(),_.q("design:type",Boolean)],m8.prototype,"untabbable",void 0);_.L([_.T(),_.q("design:type",Boolean)],m8.prototype,"keyboardFocused",void 0);_.L([_.wP("down"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m8.prototype,"rippleDown_",null);_.L([_.wP("up"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m8.prototype,"rippleUp_",null);
_.L([_.AA("pressed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m8.prototype,"onPressedChanged_",null);_.L([_.Ps({is:"yt-icon-button",disableElementRegistration:!0})],m8);
_.Y(m8,"yt-icon-button",function(){if(yoR===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;mpH===void 0&&(mpH=document.createElement("template"));var E=mpH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);yoR=l}l=yoR;return l},{mode:2});var j$q=_.E9(["aria-"]),yG={};yG.YtRenderButtonBehavior=[_.x.YtRendererBehavior,_.af.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!!_.V2().resolve(_.MG(_.of))&&_.a("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 l=this.computeHref_(this.endpoint,!0);l?yS(this.elements_.endpoint,l):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){l=this.buttonClass.split(" ");l=_.b(l);for(var e=l.next();!e.done;e=l.next())e=e.value,_.oB(this.hostElement,e,!0),this.elements_.button&&_.oB(this.elements_.button,e,!0),this.elements_.text&&_.oB(this.elements_.text,e,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(l=null,this.buttonAccessibility&&(l=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=l:l?_.hz([_.lX(j$q)],this.elements_.button,"aria-label",l):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var l=_.V2().resolve(_.MG(_.of));l&&(this.keyboardFocused=l.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.zH("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,_.c9(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.c9(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(l,e){if(e)for(l=e.split(" "),l=_.b(l),e=l.next();!e.done;e=l.next())e=e.value,_.oB(this.hostElement,e,!1),this.elements_.button&&_.oB(this.elements_.button,e,!1),this.elements_.text&&_.oB(this.elements_.text,e,!1)},
buttonIconChanged_:function(l){this.elements_.icon?l?(this.elements_.icon.icon=l,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.c9(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.$T(this.hostElement,"is-paper-button-with-icon",!1)):l&&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"&&_.c9(this.elements_.button).appendChild(this.elements_.icon):_.c9(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.$T(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(l){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,l){var e=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(l){case "yt_icon_button_with_label":e=!0;_.oB(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();l=_.c9(this.elements_.button).firstElementChild;
this.elements_.icon=l;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.c9(this.elements_.endpoint).appendChild(this.elements_.button);_.c9(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.zH("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;_.c9(this.elements_.button).appendChild(this.elements_.text);_.c9(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":e=!0,this.elements_.button=this.getYtIconButton_(),l=_.c9(this.elements_.button).firstElementChild,this.elements_.icon=l,this.setIconActive_(this.elements_.icon),
_.c9(this.elements_.endpoint).appendChild(this.elements_.button)}_.$T(this.hostElement,"is-icon-button",e);_.$T(this.hostElement,"is-paper-button",!e);_.$T(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 O;_.ud((O=this.container.hostElement)!=null?O:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.c9(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(l){if(l!=void 0||this.disabled)this.disabled=l,this.elements_.button&&(this.elements_.button.disabled=l)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(l){_.a("kevlar_system_icons")&&l&&this.data&&(this.data.isSelected!==void 0?l.active=this.data.isSelected:this.data.isToggled!==void 0&&(l.active=this.data.isToggled))},
observeBasicPalette_:function(l){_.PF(this.hostElement,l)},
disabledChanged_:function(l){this.data&&this.set("data.isDisabled",l)},
onYtButtonTap_:function(l){if(this.disabled)l.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.ii(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(l=this.disableCommandHandlerOverride,!this.data||!this.data.command||l||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.a("handle_service_request_actions")||_.ii(this.hostElement,[this.serviceEndpoint]),
_.$u(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.a("handle_service_request_actions")?(l=[],this.serviceEndpoint&&l.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&l.push(this.data.command),l.length&&_.wQ(this.hostElement,l,this.hostElement)):this.data&&this.data.command&&(l=this.data.command,l.accountUnlinkCommand||l.accountLinkCommand||l.insertAdCommand||l.insertHighlightMarkerCommand||
l.createLivestreamHighlightClipCommand||l.getVideoUploadFeedbackCommand||l.musicDeletePrivatelyOwnedEntityCommand||l.ypcCancelRecurrenceEndpoint||l.getMultiSelectCommandEndpoint?_.ii(this.hostElement,[l]):_.wQ(this.hostElement,[l],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 l,e=_.ud((l=this.container.hostElement)!=null?l:this.container);e.lastChild&&e.lastChild.tagName!="STYLE";)try{e.removeChild(e.lastChild)}catch(O){break}},
getYtIconButton_:function(){var l=this.reuseEnabled_()?_.zH("yt-icon-button"):document.createElement("yt-icon-button"),e=_.c9(l).firstElementChild;if(e&&e.is!="yt-icon"){for(e=_.c9(l);e.lastChild;)e.removeChild(e.lastChild);e=null}e||(e=this.getIcon_(),this.setIconActive_(e),_.c9(l).appendChild(e));return l},
reuseEnabled_:function(){return _.a("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.zH("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.zH("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.HGR={};
_.HGR.YtButtonBehavior=[yG.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var l=this.data;l&&(this._setEndpoint(this.computeEndpoint_(l)),this._setServiceEndpoint(this.computeServiceEndpoint_(l)),this._setCommand(this.computeCommand_(l)),this._setButtonIcon(this.computeButtonIcon_(l)),this._setButtonText(this.computeButtonText_(l,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(l)),this._setButtonTooltip(this.computeTooltip_(l)),this._setButtonClass(this.computeButtonClass_(l)),this._setIconPositionType(this.computeIconPositionType_(l)),this.updateRenderedElements())},
setPressedState:function(l){var e;if((e=this.elements_)==null?0:e.button)this.elements_.button.pressed=!!l},
computeIconPositionType_:function(l){return l&&l.iconPosition||null},
computeEndpoint_:function(l){var e=l&&l.navigationEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.url"),E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:l&&l.command&&l.command.modalEndpoint?l.command:O&&!E&&l.command?l.command:null},
computeServiceEndpoint_:function(l){var e=l&&l.serviceEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:O&&l.command?l.command:null},
computeCommand_:function(l){return l&&l.command||null},
computeButtonIcon_:function(l){return l&&l.icon&&l.icon.iconType?_.w6(l.icon.iconType):null},
computeButtonText_:function(l,e){return!e&&l&&l.text||null},
computeAccessibility_:function(l){return this.get("accessibilityData.accessibilityData",l)||l&&l.accessibility||(l&&l.text?{label:this.getSimpleString(l.text)}:null)},
computeTooltip_:function(l){return l?l.isDisabled&&l.disabledTooltip||l.tooltip||null:null},
computeButtonClass_:function(l){var e=l&&l.style?l.style.toLowerCase().replace(/_/g,"-")+" ":"";e+=l&&l.size?l.size.toLowerCase().replace(/_/g,"-")+" ":"";l.colorData&&l.colorData.basicColorPaletteData&&l.colorData.basicColorPaletteData.borderColor&&(e+="palette-with-border");return e.trim()}}];var UL={};var co6;var FL0;var fjk,RW1=function(){return fjk!==void 0?fjk:fjk=document.createElement("template")};
document.head.appendChild(RW1().content);var TF1;var s$q,G$H=function(){return s$q!==void 0?s$q:s$q=document.createElement("template")};
document.head.appendChild(G$H().content);var BFR;var Px1,Up6=function(){return Px1!==void 0?Px1:Px1=document.createElement("template")};
document.head.appendChild(Up6().content);var YOq;var hWS=document.head,LLq=hWS.appendChild,ti1;if(YOq===void 0){var qOi=document.createElement("template");_.p(qOi,"\x3c!--css-build:shady--\x3e");qOi.content.insertBefore(Up6().content.cloneNode(!0),qOi.content.firstChild);YOq=qOi}ti1=YOq;LLq.call(hWS,ti1.content);var vyF=document.head,NF0=vyF.appendChild,ro1;if(BFR===void 0){var DpS=document.createElement("template");_.p(DpS,"\x3c!--css-build:shady--\x3e");DpS.content.insertBefore(G$H().content.cloneNode(!0),DpS.content.firstChild);BFR=DpS}ro1=BFR;NF0.call(vyF,ro1.content);var SOq=document.head,Q$q=SOq.appendChild,xpx;if(TF1===void 0){var l$0=document.createElement("template");_.p(l$0,"\x3c!--css-build:shady--\x3e");l$0.content.insertBefore(RW1().content.cloneNode(!0),l$0.content.firstChild);TF1=l$0}xpx=TF1;Q$q.call(SOq,xpx.content);var e$q;_.Y7("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");e$q=_.a("web_button_rework")&&_.LH("BUTTON_REWORK")||_.a("web_button_rework_with_live");_.pg=function(){return _.B.apply(this,arguments)||this};
_.m(_.pg,_.B);_.pg.prototype.created=function(){this.openPopupConfig=_.hT("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.pg.prototype.onYtNavigate_=function(l){var e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);e&&(this.ytOpenPopupBehavior.openPopup(e),l.stopPropagation(),l.preventDefault())};
_.Ji.Object.defineProperties(_.pg,{template:{configurable:!0,enumerable:!0,get:function(){if(FL0===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;co6===void 0&&(co6=document.createElement("template"));var E=co6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);FL0=l}l=FL0;return l}}});
_.pg.prototype.onYtNavigate_=_.pg.prototype.onYtNavigate_;_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],_.pg.prototype,"ytOpenPopupBehavior",void 0);_.L([_.K(_.HGR.YtButtonBehavior),_.q("design:type",Object)],_.pg.prototype,"ytButtonBehavior",void 0);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],_.pg.prototype,"onYtNavigate_",null);
_.L([_.Ps({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:e$q})],_.pg);var OcS;var EgS=_.a("web_button_rework")&&_.LH("BUTTON_REWORK")||_.a("web_button_rework_with_live"),Kg=function(){var l=_.B.apply(this,arguments)||this;l.isPressed=!1;l.forceIconButton=!1;l.forceIconOnly=!1;l.forceModernIconButton=!1;l.skipCommandHandling=!1;l.alignByText=!1;l.fitToVisibleBounds=!0;l.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};l.onTap=function(e){_.$u(l.hostElement,"yt-service-request-sent-button-renderer",e)};
return l};
_.m(Kg,_.B);_.X=Kg.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.X.onClick=function(l){var e,O=this.disabled||((e=this.data)==null?void 0:e.isDisabled);e=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");O&&e&&l.stopPropagation()};
_.X.computeIcon=function(){var l,e,O=(l=this.data)==null?void 0:(e=l.icon)==null?void 0:e.iconType;if(O)return _.w6(O)};
_.X.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.X.handleUpdateButtonAction=function(l){l=_.I(l,j_0);var e=_.I(l==null?void 0:l.updatedButton,_.YU);if(this.data&&l&&e){var O=this.data;O.targetId&&l.targetId&&O.targetId===l.targetId&&(this.data=e)}};
_.Ji.Object.defineProperties(Kg.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var l=this;if(this.data){var e=DwM({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.$u(l.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.$u(l.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});e.alignByText=this.alignByText;return e}}}});
_.Ji.Object.defineProperties(Kg,{template:{configurable:!0,enumerable:!0,get:function(){if(OcS===void 0){var l=document.createElement("template");_.p(l,'\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>');OcS=l}l=OcS;return l}}});
Kg.prototype.onClick=Kg.prototype.onClick;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Kg.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Kg.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"isPressed",void 0);
_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"forceIconButton",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"forceIconOnly",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"forceModernIconButton",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"skipCommandHandling",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"alignByText",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"buttonTooltipPosition",void 0);
_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"fitToVisibleBounds",void 0);_.L([_.T({computed:"computeTooltip(data)"}),_.q("design:type",Object)],Kg.prototype,"tooltip",void 0);_.L([_.T(),_.q("design:type",Object)],Kg.prototype,"overrides",void 0);_.L([_.T(),_.q("design:type",Boolean)],Kg.prototype,"disabled",void 0);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Kg.prototype,"onClick",null);
_.L([_.R("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.q("design:type",Object),_.q("design:paramtypes",[])],Kg.prototype,"computedButtonShape",null);_.L([_.Ps({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!EgS,cssBuildOptOut:!0}),_.Ps({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!EgS,cssBuildOptOut:!0})],Kg);var Jkq;var Xqq;var jF=function(){var l=_.B.apply(this,arguments)||this;l.empty_=!0;l.loadTime=Infinity;l.pendingPaint=!1;l.hasChange_=!1;l.oldThumbnail_=null;l.oldDelayedSrc_="";l.objectURL_=null;return l};
_.m(jF,_.B);_.X=jF.prototype;_.X.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.X.ready=function(){var l=this.shouldShowPlaceholder_();_.oB(this.hostElement,"no-transition",!0);l&&this.hostElement.classList.add("with-placeholder")};
_.X.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.X.isThumbPreloaded_=function(l){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",l)};
_.X.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||z$1};
_.X.computeThumbnailSrc_=function(l){return l&&l.thumbnails?_.up(l.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.X.computeAlt_=function(){var l=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&l||""};
_.X.thumbnailChanged_=function(){var l=_.b([this.thumbnail,this.oldThumbnail_]),e=l.next().value;l=l.next().value;this.oldThumbnail_=e;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(l=this.computeThumbnailSrc_(l),this.computeThumbnailSrc_(e)===l))return;_.a("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(e)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):e&&_.LH("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.OK(this,this.onReload_):_.OK(this,this.onShow_):this.resetImage_();e&&(this.hostElement.style.opacity=""+e.opacity)}};
_.X.delayedSrcChanged_=function(){var l=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===l||this.resetImage_()};
_.X.setSrc_=function(l){l?(_.ud(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ud(this.hostElement).querySelector("#img").src=l):(_.ud(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.X.resetImage_=function(){lax(this.hostElement);this.empty_=!0;this.setSrc_(z$1);this.ytRendererBehavior.invalidate(!1)};
_.X.observePlaceholderColor_=function(){var l=this.thumbnail&&this.thumbnail.placeholderColor;l?this.hostElement.style.backgroundColor=_.t$(l):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.X.onLoad_=function(){_.ud(this.hostElement).querySelector("#img").src&&_.ud(this.hostElement).querySelector("#img").src!==z$1&&(xtt(this.hostElement),this.notifyOnLoaded&&_.$u(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.X.onError_=function(){var l=this;if(_.a("web_use_cache_for_image_fallback"))bEW(_.ud(this.hostElement).querySelector("#img").src).then(function(e){l.objectURL_=_.aH(e).toString();l.setSrc_(l.objectURL_)}).catch(function(){_.a("kevlar_woffle_fallback_image")&&l.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.X.onPrescanVisible=function(){this.onShow_()};
_.X.onVisible=function(){if(_.a("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.X.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var l=this.computeSrc_();l!==_.ud(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(l))}};
_.X.onReload_=function(){this.empty_=!1;var l=this.computeSrc_();l!==_.ud(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(l))};
_.X.shouldShowPlaceholder_=function(){return _.a("kevlar_thumbnail_bg")};
jF.prototype.observePlaceholderColor_=jF.prototype.observePlaceholderColor_;jF.prototype.delayedSrcChanged_=jF.prototype.delayedSrcChanged_;jF.prototype.thumbnailChanged_=jF.prototype.thumbnailChanged_;_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],jF.prototype,"alt",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jF.prototype,"ariaHidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],jF.prototype,"ariaLabel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],jF.prototype,"hidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],jF.prototype,"id",void 0);_.L([_.K(_.Dl.YtVisibilityBehavior),_.q("design:type",Object)],jF.prototype,"ytVisibilityBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",String)],jF.prototype,"delayedSrc",void 0);
_.L([_.T(),_.q("design:type",Object)],jF.prototype,"thumbnail",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],jF.prototype,"loaded",void 0);_.L([_.T(),_.q("design:type",Boolean)],jF.prototype,"notifyOnLoaded",void 0);_.L([_.T(),_.q("design:type",Number)],jF.prototype,"height",void 0);_.L([_.T(),_.q("design:type",Number)],jF.prototype,"width",void 0);_.L([_.T({value:function(){return"width"}}),
_.q("design:type",String)],jF.prototype,"dimension",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],jF.prototype,"fit",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],jF.prototype,"fitHeight",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],jF.prototype,"fitWidth",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],jF.prototype,"objectFit",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],jF.prototype,"objectPosition",void 0);_.L([_.T(),_.q("design:type",String)],jF.prototype,"preferredThumbnail",void 0);_.L([_.T({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.q("design:type",String)],jF.prototype,"alt_",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],jF.prototype,"sharedTooltipText",void 0);
_.L([_.T(),_.q("design:type",Boolean)],jF.prototype,"ftlEligible",void 0);_.L([_.T({value:void 0}),_.q("design:type",String)],jF.prototype,"observeHiddenOption",void 0);_.L([_.T({value:"observe_once"}),_.q("design:type",String)],jF.prototype,"observePrescanOption",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],jF.prototype,"roundedContainer",void 0);
_.L([_.y0("thumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jF.prototype,"thumbnailChanged_",null);_.L([_.y0("delayedSrc"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jF.prototype,"delayedSrcChanged_",null);_.L([_.AA("thumbnail.placeholderColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jF.prototype,"observePlaceholderColor_",null);
_.L([_.Ps({is:"yt-img-shadow",disableElementRegistration:!0})],jF);var z$1=_.LH("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.$0()(jF,"yt-img-shadow",function(){if(Xqq===void 0){var l=document.createElement("template");_.p(l,'\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">');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Jkq===void 0&&(Jkq=document.createElement("template"));var E=Jkq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Xqq=l}l=Xqq;return l},{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 Qjx;_.Hu=new _.Xa("SCREEN_MANAGER_TOKEN");Qjx=new _.Xa("LOG_INITIAL_SCREEN_TOKEN");_.sh=_.XO(function(l){function e(b2){return _.I(b2,_.Hi)}
function O(){var b2=E().isTogglingDisabled||n()?c():!c();f(b2);h(!1);if(!E().isTogglingDisabled){var $V;($V=M)==null||$V(!!b2)}var gT;((gT=z)==null?0:gT())||_.gn(_.V2().resolve(_.Hu),E().trackingParams);var mx;if(!b2||!e(E().defaultButtonViewModel)||(mx=z)!=null&&mx()){var jM;!e(E().toggledButtonViewModel)||((jM=z)==null?0:jM())||_.gn(_.V2().resolve(_.Hu),e(E().toggledButtonViewModel).trackingParams)}else _.gn(_.V2().resolve(_.Hu),e(E().defaultButtonViewModel).trackingParams)}
var E=l.data,J=l.buttonShapeOverrides,z=l.disableExplicitClickLogging,M=l.onToggle,Z=l.style,u=l.useOutlinedIcon,d=l.className,g=function(){var b2,$V;return c()?(b2=l.animatedTextPropsToggled)==null?void 0:b2.call(l):($V=l.animatedTextPropsDefault)==null?void 0:$V.call(l)},w=_.mF(function(){return g()?Object.assign({},g(),{shouldAnimate:P()}):void 0},void 0,"ZKEa0b"),n=function(){var b2;
return((b2=r())==null?void 0:b2.isToggled)!==void 0},k=_.b(_.jN(function(){var b2,$V,gT;
return n()?(b2=r())==null?void 0:b2.isToggled:(gT=J==null?void 0:($V=J())==null?void 0:$V.toggled)!=null?gT:E().isToggled})),y=k.next().value;
k=k.next().value;var c=y,f=k;k=_.b(_.jN(function(){var b2,$V;return(b2=l.animatedTextPropsToggled)==null?void 0:($V=b2.call(l))==null?void 0:$V.shouldAnimate}));
y=k.next().value;k=k.next().value;var P=y,h=k;y=_.b(_.AF(!1,void 0,"S11hid"));var N=y.next().value,t=y.next().value,r=_.Ld(function(b2){var $V;a:{var gT=E().entityKey,mx=E().toggledStateEntitySelectorType;if(mx&&gT)switch(mx){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var jM;b2=(jM=_.wV(b2.entities,"sfvAudioItemCurrentlyPlayingEntity",gT))!=null?jM:void 0;jM=($V=b2==null?void 0:b2.sfvAudioItemPlaybackState)!=null?$V:void 0;if(jM==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){$V={isToggled:!0};
break a}if(jM){$V={isToggled:!1};break a}break;default:_.hG(new _.Hk("Error: entitySelectorType defined but not matched in selector.",b2,mx))}$V=void 0}return $V}),D=function(){return Object.assign({},J==null?void 0:J(),{onToggle:O,
toggleable:!0,toggled:c(),focused:N()})};
return _.W("toggle-button-view-model",{"on:focusin":_.pd(function(){var b2=_.V2().resolve(_.MG(_.of));b2&&t(b2.isKeyBoardInUse());return!1}),
"on:focusout":_.pd(function(){t(!1);return!1}),
class:d},_.W(_.A,{cond:function(){return c()?e(E().toggledButtonViewModel):e(E().defaultButtonViewModel)},
then:function(b2){return _.W(_.hM,{data:b2,className:d,style:Z,useOutlinedIcon:u,buttonOverrides:D,animatedTextProps:w})}}))},"z");
_.sh.idomCompat={callbacks:{onToggle:!0}};_.Zw(_.XO(function(l){return _.W("yt-toggle-button-view-model",{class:function(){var e;return(e=l.scopingClassName)==null?void 0:e.call(l)}},_.W(_.sh,{data:function(){var e;
return(e=l.data)==null?void 0:e.call(l)},
buttonShapeOverrides:function(){var e;return(e=l.overrides)==null?void 0:e.call(l)},
animatedTextPropsDefault:function(){var e;return(e=l.animatedTextPropsDefault)==null?void 0:e.call(l)},
animatedTextPropsToggled:function(){var e;return(e=l.animatedTextPropsToggled)==null?void 0:e.call(l)},
disableExplicitClickLogging:function(){var e;return(e=l.disableExplicitClickLogging)==null?void 0:e.call(l)},
onToggle:function(e){var O;return(O=l.onToggle)==null?void 0:O.call(l,e)},
style:function(){var e;return(e=l.style)==null?void 0:e.call(l)},
useOutlinedIcon:function(){var e;return(e=l.useOutlinedIcon)==null?void 0:e.call(l)},
className:function(){var e;return(e=l.className)==null?void 0:e.call(l)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.lB,
buttonShapeOverrides:_.lB,overrides:_.lB,animatedTextPropsDefault:_.lB,animatedTextPropsToggled:_.lB,disableExplicitClickLogging:_.lB,onToggle:_.Vh,style:_.lB,useOutlinedIcon:_.lB,className:_.lB,scopingClassName:_.lB}});var cu=function(){return _.B.apply(this,arguments)||this};
_.m(cu,_.B);cu.prototype.onTap=function(l){l.stopPropagation();l=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Gn("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:l})):this.ytLiveChatReduxBehavior.dispatch(_.IK("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:l}))};
_.Ji.Object.defineProperties(cu.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.engagementState)==null?void 0:l.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=_.I(this.data.toggleButton,_.ci),e;if(Number(((e=this.likeCountState)==null?void 0:e.likeCountIfIndifferentNumber)||"0")===0){var O;e=((O=this.data.likeCountPlaceholder)==null?void 0:O.content)||""}else{var E,J,z;e=((E=this.likeCountState)==null?void 0:(J=E.likeCountIfIndifferent)==null?void 0:J.content)||((z=this.data.likeCountPlaceholder)==null?void 0:z.content)||""}var M,Z;O=((M=this.likeCountState)==null?void 0:(Z=
M.likeCountIfLiked)==null?void 0:Z.content)||"1";M=_.I(l.toggledButtonViewModel,_.Hi);return Object.assign({},l,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.I(l.defaultButtonViewModel,_.Hi),{title:e})},toggledButtonViewModel:{buttonViewModel:Object.assign({},M,{title:O})}})}}}});
cu.prototype.onTap=cu.prototype.onTap;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],cu.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],cu.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cu.prototype,"data",void 0);
_.L([_.T({selectorArgs:["data.likeCountEntityKey"],selector:SZp}),_.q("design:type",Object)],cu.prototype,"likeCountState",void 0);_.L([_.T({selectorArgs:["data.engagementStateKey"],selector:mwT}),_.q("design:type",Object)],cu.prototype,"engagementState",void 0);_.L([_.R("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],cu.prototype,"isLiked",null);
_.L([_.R("data","likeCountState","isLiked"),_.q("design:type",Object),_.q("design:paramtypes",[])],cu.prototype,"toggleButton",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],cu.prototype,"onTap",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],cu);
_.Y(cu,"yt-live-chat-like-button-view-model",function(){if(nyx===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;AoR===void 0&&(AoR=document.createElement("template"));var E=AoR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);nyx=l}l=nyx;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var bc1;var MG1;var FP=function(){return _.B.apply(this,arguments)||this};
_.m(FP,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FP.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],FP);
_.Y(FP,"yt-live-chat-paid-message-footer-renderer",function(){if(MG1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;bc1===void 0&&(bc1=document.createElement("template"));var E=bc1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);MG1=l}l=MG1;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var VGk;var Zc1;var uUi;var Cni,ogq=function(){if(Cni!==void 0)return Cni;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;uUi===void 0&&(uUi=document.createElement("template"));var E=uUi;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Cni=l};var fg=function(){return _.B.apply(this,arguments)||this};
_.m(fg,_.B);fg.prototype.onTap=function(l){l.stopPropagation()};
_.Ji.Object.defineProperties(fg.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=_.I(this.data.replyButton,_.Hi),e,O,E,J,z,M,Z,u=Number(((e=this.replyCountState)==null?void 0:e.replyCountNumber)||"0")===0?(O=this.data)==null?void 0:(E=O.replyCountPlaceholder)==null?void 0:E.content:((J=this.replyCountState)==null?void 0:(z=J.replyCount)==null?void 0:z.content)||((M=this.data)==null?void 0:(Z=M.replyCountPlaceholder)==null?void 0:Z.content)||"",d;return Object.assign({},
l,{title:u,accessibilityText:(d=this.replyCountState)==null?void 0:d.replyButtonAccessibilityText})}}}});
_.Ji.Object.defineProperties(fg,{template:{configurable:!0,enumerable:!0,get:function(){return ogq()}}});
fg.prototype.onTap=fg.prototype.onTap;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],fg.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],fg.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fg.prototype,"data",void 0);
_.L([_.T({selectorArgs:["data.replyCountEntityKey"],selector:function(l,e){return _.wV(l.entities,"replyCountEntity",e)}}),
_.q("design:type",Object)],fg.prototype,"replyCountState",void 0);_.L([_.R("data","replyCountState"),_.q("design:type",Object),_.q("design:paramtypes",[])],fg.prototype,"buttonViewModel",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],fg.prototype,"onTap",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],fg);
_.Y(fg,"yt-live-chat-reply-button-view-model",function(){return ogq()},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var $tF;var WeS;var Rf=function(){var l=_.B.apply(this,arguments)||this;l.ariaLabel="";return l};
_.m(Rf,_.B);
Rf.prototype.dataChanged=function(){for(var l=(0,_.Ws)(_.ud(this.hostElement).querySelector("#image"));l.firstChild;)l.removeChild(l.firstChild);if(this.data)if(this.data.icon){var e=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(e.polymerController.icon="yt-sys-icons:shield-filled",e.polymerController.defaultToFilled=!0):e.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();l.appendChild(e)}else if(this.data.customThumbnail){e=document.createElement("img");
var O=_.qqx(this.data.customThumbnail.thumbnails,16);O?(e.src=O,l.appendChild(e),e.setAttribute("alt",this.hostElement.ariaLabel||"")):_.hG(new _.Hk("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Rf.prototype.identity=function(l){return l};
Rf.prototype.computeType=function(l){return d6(l||void 0)};
Rf.prototype.dataChanged=Rf.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],Rf.prototype,"data",void 0);_.L([_.T({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.q("design:type",Object)],Rf.prototype,"ariaLabel",void 0);_.L([_.T({computed:"computeType(data)",reflectToAttribute:!0}),_.q("design:type",String)],Rf.prototype,"type",void 0);
_.L([_.T({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.q("design:type",String)],Rf.prototype,"sharedTooltipText",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("live_chat_enable_new_moderator_badge")}}),
_.q("design:type",Boolean)],Rf.prototype,"enableNewModeratorBadge",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Rf.prototype,"dataChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Rf);
_.Y(Rf,"yt-live-chat-author-badge-renderer",function(){if(WeS===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;$tF===void 0&&($tF=document.createElement("template"));var E=$tF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);WeS=l}l=WeS;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var dtS;var ggS;var TH=function(){return _.B.apply(this,arguments)||this};
_.m(TH,_.B);_.X=TH.prototype;_.X.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"}}}}};
_.X.computeBadgesInsideChip=function(l){return l?l.filter(function(e){return d6(e.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.X.computeBadgesOutsideChip=function(l){return this.prependChatBadges||!l?[]:l.filter(function(e){e=d6(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"})};
_.X.computeBadgesBeforeChip=function(l){return this.prependChatBadges&&l?l.filter(function(e){e=d6(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"}):[]};
_.X.computeIsHighlighted=function(l,e){var O=!!bWx(l,"owner"),E=!!bWx(l,"verified");l=!!bWx(l,"moderator");return(O||E&&!l)&&!e};
_.X.computeAuthorType=function(l){return zEg(l)};
_.X.computeAuthorClass=function(l,e){return e?(l?l+" ":"")+"single-line":l};
_.X.onSeedColorChanged=function(){_.a("live_chat_author_name_color_usernames")||_.a("live_chat_seed_color_usernames")||_.a("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):_.a("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
TH.prototype.onSeedColorChanged=TH.prototype.onSeedColorChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],TH.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],TH.prototype,"authorName",void 0);_.L([_.T(),_.q("design:type",Array)],TH.prototype,"authorBadges",void 0);
_.L([_.T({computed:"computeAuthorType(authorBadges)"}),_.q("design:type",String)],TH.prototype,"authorType",void 0);_.L([_.T({computed:"computeAuthorClass(authorType, singleLine)"}),_.q("design:type",String)],TH.prototype,"authorClass",void 0);_.L([_.T({computed:"computeBadgesInsideChip(authorBadges)"}),_.q("design:type",Array)],TH.prototype,"badgesInsideChip",void 0);_.L([_.T({computed:"computeBadgesOutsideChip(authorBadges)"}),_.q("design:type",Array)],TH.prototype,"badgesOutsideChip",void 0);
_.L([_.T({computed:"computeBadgesBeforeChip(authorBadges)"}),_.q("design:type",Array)],TH.prototype,"badgesBeforeChip",void 0);_.L([_.T({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.q("design:type",Boolean)],TH.prototype,"isHighlighted",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],TH.prototype,"singleLine",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],TH.prototype,"disableHighlighting",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],TH.prototype,"dashboardMoneyFeed",void 0);_.L([_.T({value:_.a("live_chat_prepend_badges"),reflectToAttribute:!0}),_.q("design:type",Boolean)],TH.prototype,"prependChatBadges",void 0);_.L([_.T(),_.q("design:type",String)],TH.prototype,"authorNameColor",void 0);_.L([_.aB("#author-name"),_.q("design:type",HTMLDivElement)],TH.prototype,"username",void 0);
_.L([_.AA("authorNameColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TH.prototype,"onSeedColorChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],TH);
_.Y(TH,"yt-live-chat-author-chip",function(){if(ggS===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;dtS===void 0&&(dtS=document.createElement("template"));var E=dtS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);ggS=l}l=ggS;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var ic1;var wqq;var sd=function(){var l=_.B.apply(this,arguments)||this;l.debounceCommand=_.yl(function(e){l.ytComponentBehavior.resolveCommand(e)},1500);
return l};
_.m(sd,_.B);sd.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var l=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",e,O,E=this.isHearted?(e=this.data)==null?void 0:e.unheartCommand:(O=this.data)==null?void 0:O.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Gn("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:l}));(l=_.t3(E))&&this.debounceCommand(l)}};
_.Ji.Object.defineProperties(sd.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var l,e;if(!((l=this.data)==null?0:(e=l.creatorThumbnail)==null?0:e.sources))return{};l={thumbnails:[]};e={};e.url=this.data.creatorThumbnail.sources[0].url;l.thumbnails.push(e);return l}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((O=this.engagementState)==null?void 0:O.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}}});
sd.prototype.onTap=sd.prototype.onTap;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sd.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],sd.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sd.prototype,"data",void 0);
_.L([_.T({selectorArgs:["data.engagementStateKey"],selector:mwT}),_.q("design:type",Object)],sd.prototype,"engagementState",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],sd.prototype,"thumbnailDetails",null);_.L([_.R("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sd.prototype,"isHearted",null);_.L([_.R("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sd.prototype,"isEditable",null);
_.L([_.R("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sd.prototype,"showCreatorView",null);_.L([_.R("data","engagementState"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sd.prototype,"showButton",null);_.L([_.R("data","isHearted"),_.q("design:type",String),_.q("design:paramtypes",[])],sd.prototype,"label",null);_.L([_.R("data","isHearted"),_.q("design:type",Object),_.q("design:paramtypes",[])],sd.prototype,"heartHoverText",null);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sd.prototype,"onTap",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],sd);
_.Y(sd,"yt-live-chat-creator-heart-view-model",function(){if(wqq===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ic1===void 0&&(ic1=document.createElement("template"));var E=ic1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);wqq=l}l=wqq;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var GH=function(){};
_.m(GH,Wa);GH.prototype.JSC$11037_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:xv("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
GH.prototype.getApiPaths=function(){return[]};
GH.prototype.getExtension=function(){};
GH.prototype.JSC$11037_buildRequest=function(){};var AkF={},ngk=(AkF.GET_DATASYNC_IDS=Hc(GH),AkF);var a$i,k31,I$x,wpS,Bu,pqR,mli,yk1,mtq;a$i="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");k31=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Dw=function(l,e,O,E,J,z,M,Z,u){this.endpointMap=l;this.networkManager=e;this.authService=O;this.responseProcessorMap=E;this.innertubeResponseStore=J;this.contextProcessors=z;this.asyncContextProcessors=M;this.localInnertubeRouter=Z;this.requestSequencer=u;this.inflightRequests=new Map;l.signalEndpointMap||(l.signalEndpointMap={});l.signalEndpointMap=Object.assign({},ngk,l.signalEndpointMap)};
I$x=function(l,e,O,E,J,z,M,Z,u){if(_.Dw.instance!==void 0){if(E=_.Dw.instance,l=[l!==E.endpointMap,e!==E.networkManager,O!==E.authService,J!==E.innertubeResponseStore,z!==E.contextProcessors,M!==E.asyncContextProcessors,Z!==E.localInnertubeRouter],l.some(function(d){return d}))throw new _.Hk("InnerTubeTransportService is already initialized",l);
}else _.Dw.instance=new _.Dw(l,e,O,E,J,z,M,Z,u)};
_.Qh=function(l,e,O){var E=E===void 0?hdS:E;var J=mli(l,e);return J?new _.kE(function(z,M){var Z,u,d,g,w;return _.V(function(n){switch(n.nextAddress){case 1:return _.C(n,J,2);case 2:Z=n.yieldResult;u=Z.JSC$11037_getRequest(e,O,E);if(!u){M(new _.Hk("Error: Failed to build request for command.",e));n.jumpTo(0);break}r8(u.input);g=((d=u.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(l.authService.syncHeaders){w=mtq(u.config,g);n.jumpTo(4);break}return _.C(n,yk1(u.config,g),5);case 5:w=
n.yieldResult;case 4:z(pqR(l,u,w)),_.Cl(n)}})}):_.Tr(new _.Hk("Error: No request builder found for command.",e))};
wpS=function(l,e,O,E){var J=J===void 0?hdS:J;var z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D;return _.V(function(b2){switch(b2.nextAddress){case 1:z=l_x(e,l.endpointMap);if(!z)throw new _.Hk("Error: No streaming request builder found for command",e);M=z.JSC$11037_getRequest(e,O,J);if(!M)throw new _.Hk("Failed to build YtRequest for streaming Command",e);if((Z=l.localInnertubeRouter)==null||!Z.shouldPreferLocalResponse(M.input,M.innerTubeRequest)){b2.jumpTo(2);break}return _.C(b2,l.localInnertubeRouter.localInnertubeResponse(M.input,
M.innerTubeRequest),3);case 3:return u=b2.yieldResult,d={},u.playerResponse&&(Bu(l,u.playerResponse,M),d.player=u.playerResponse,(g=E)==null||g(d,u)),u.watchNextResponse&&(Bu(l,u.watchNextResponse,M),d.content=u.watchNextResponse,(w=E)==null||w(d,u)),b2.return(d);case 2:k=((n=M.requestShell)==null?void 0:n.mode)==="cors"?"cors":void 0;if(l.authService.syncHeaders){y=mtq(M.config,k);b2.jumpTo(4);break}return _.C(b2,yk1(M.config,k),5);case 5:y=b2.yieldResult;case 4:return P=(f=(c=M.requestShell)==null?
void 0:c.headers)!=null?f:{},M.requestShell=Object.assign({},M.requestShell,{headers:Object.assign({},P,y)}),h=Object.assign({},M.requestShell),N=JSON.stringify(M.innerTubeRequest),M.requestShell.method==="POST"&&(h=Object.assign({},h,{body:N})),t=function($V,gT){Bu(l,gT.playerResponse||gT.watchNextResponse||gT.reelItemWatchResponse||gT.reelWatchSequenceResponse,M);E==null||E($V,gT)},r={},_.C(b2,Keq(l.networkManager,M.input,h,t),6);
case 6:return r=b2.yieldResult,((D=M.config)==null?0:D.responseTick)&&_.Yu(M.config.responseTick),b2.return(r)}})};
_.PJ=function(l,e,O,E,J){J=J===void 0?{authStrategy:{identity:hdS}}:J;var z=z===void 0?!0:z;var M=function(){};
M=Vqt(bIM(O));e.context||(e.context=_.igL(E,z));return new _.kE(function(Z){var u,d,g,w,n;return _.V(function(k){if(k.nextAddress==1)return u=rIW(O),d=_.Qf(u),l.authService.syncHeaders?(g=mtq(J,d),k.jumpTo(2)):_.C(k,yk1(J,d),3);k.nextAddress!=2&&(g=k.yieldResult);w=D8V(rIW(O));n={input:w,requestShell:xv(w),innerTubeRequest:e,config:J};Z(pqR(l,n,g,M));_.Cl(k)})})};
Bu=function(l,e,O){var E;if(e&&!(e==null?0:(E=e.sequenceMetaData)==null?0:E.skipProcessing)&&l.responseProcessorMap){E=_.b(a$i);for(var J=E.next();!J.done;J=E.next())J=J.value,l.responseProcessorMap[J]&&l.responseProcessorMap[J].handleResponse(e,O)}};
pqR=function(l,e,O,E){E=E===void 0?function(){}:E;
var J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2,$V,gT,mx,jM,cx,tq,Px,S0,QH,pR,oq,ZS,Ou,uq,ZV,jO,V8,AC,Fk,tu;return _.V(function(kq){switch(kq.nextAddress){case 1:M=(J=e.config)==null?void 0:(z=J.storeStrategy)==null?void 0:z.storeKey;if(!(M&&l.innertubeResponseStore&&l.innertubeResponseStore.has(M))||((Z=e.config)==null?0:(u=Z.storeStrategy)==null?0:u.disableCache)){kq.jumpTo(2);break}return _.C(kq,l.innertubeResponseStore.get(M),3);case 3:if((d=kq.yieldResult)&&!d.isExpired())return kq.return(Promise.resolve(_.dd(d)));
case 2:if(!((g=e)==null?0:(w=g.innerTubeRequest)==null?0:w.context)){kq.jumpTo(4);break}n=e.innerTubeRequest.context;if(!(l.asyncContextProcessors&&l.asyncContextProcessors.length>0)){kq.jumpTo(5);break}k=[];y=_.b(l.asyncContextProcessors);for(c=y.next();!c.done;c=y.next())f=c.value,P=f.processContext(e),P.wrappedPromise_&&k.push(P.wrappedPromise_);if(!(k.length>0)){kq.jumpTo(5);break}return _.C(kq,Promise.all(k),5);case 5:h=_.b(l.contextProcessors||[]),N=h.next();case 8:if(N.done){kq.jumpTo(4);break}t=
N.value;return _.C(kq,t.processContext(n),9);case 9:N=h.next();kq.jumpTo(8);break;case 4:if((r=l.localInnertubeRouter)==null||!r.shouldPreferLocalResponse(e.input,e.innerTubeRequest)){kq.jumpTo(12);break}return _.C(kq,l.localInnertubeRouter.localInnertubeResponse(e.input,e.innerTubeRequest),13);case 13:return D=kq.yieldResult,Bu(l,D,e),kq.return(D);case 12:return(gT=($V=e.config)==null?void 0:$V.requestKey)&&l.inflightRequests.has(gT)?b2=l.inflightRequests.get(gT):(mx=JSON.stringify(e.innerTubeRequest),
tq=(cx=(jM=e.requestShell)==null?void 0:jM.headers)!=null?cx:{},e.requestShell=Object.assign({},e.requestShell,{headers:Object.assign({},tq,O)}),Px=Object.assign({},e.requestShell),e.requestShell.method==="POST"&&(Px=Object.assign({},Px,{body:mx})),((S0=e.config)==null?0:S0.requestTick)&&_.Yu(e.config.requestTick),QH=function(){return l.networkManager.fetch(e.input,Px,e.config)},b2=l.requestSequencer?jgk(l.requestSequencer,e,QH):QH(),gT&&l.inflightRequests.set(gT,b2)),_.C(kq,b2,14);
case 14:(pR=kq.yieldResult)&&_.a("web_streaming_player")&&Array.isArray(pR)&&(pR=pR[0].playerResponse);if(pR&&"error"in pR&&((oq=pR)==null?0:(ZS=oq.error)==null?0:ZS.details))for(Ou=pR.error.details,uq=_.b(Ou),ZV=uq.next();!ZV.done;ZV=uq.next())jO=ZV.value,(V8=jO["@type"])&&k31.indexOf(V8)>-1&&(delete jO["@type"],pR=jO);gT&&l.inflightRequests.has(gT)&&l.inflightRequests.delete(gT);((AC=e.config)==null?0:AC.responseTick)&&_.Yu(e.config.responseTick);if(pR||(Fk=l.localInnertubeRouter)==null||!Fk.canProvideFallbackResponse(e.input,
e.innerTubeRequest)){kq.jumpTo(15);break}return _.C(kq,l.localInnertubeRouter.localFallbackInnertubeResponse(e.input,e.innerTubeRequest),16);case 16:pR=kq.yieldResult;case 15:return Bu(l,pR,e),((tu=e.config)==null?0:tu.processorTick)&&_.Yu(e.config.processorTick),E(),kq.return(pR||void 0)}})};
_.SN=function(l,e){return xwV(e,l.endpointMap)};
mli=function(l,e){l=ekL(e,l.endpointMap);if(l!==void 0)return Promise.resolve(l)};
yk1=function(l,e){var O,E,J,z;return _.V(function(M){if(M.nextAddress==1){J=(O=l)==null?void 0:(E=O.authStrategy)==null?void 0:E.sessionIndex;var Z=_.Ag(Agd({sessionIndex:J}));return _.C(M,Z,2)}z=M.yieldResult;return M.return(Promise.resolve(Object.assign({},OmV(e),z)))})};
mtq=function(l,e){var O;l=l==null?void 0:(O=l.authStrategy)==null?void 0:O.sessionIndex;O=Agd({sessionIndex:l});return Object.assign({},OmV(e),O)};var HcR,ckH,Feq,f$1,R$q,TeS,Be1,PnS,Y8,UtF,YqH,G3q,h$1;HcR=0;ckH=/tone[1-5]/;Feq=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");f$1="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
R$q=Number.MAX_SAFE_INTEGER;TeS=RegExp("\ufe0f","g");_.Pu=function(l){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;l&&_.sgx(this,l)};
_.sgx=function(l,e){try{_.nv(e,{context:l,onSuccess:function(E,J){Array.isArray(J)?l.load(J):(E=new _.Hk("Emoji manager JSON response was not an array!",{response:J}),_.UW(E))},
onError:function(E){E=new _.Hk("Failed to retrieve emoji manager initial JSON data!",{url:e,statusCode:_.Wk(E).toString()});_.hG(E)}})}catch(E){var O=new _.Hk("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:e});
_.hG(O)}};
_.Pu.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Pu.prototype.load=function(l,e){if(e)if(l.length)l=l.concat(e.emojis);else{this.emojis=e.emojis;this.emojiMap=e.emojiMap;this.emojiShortcutMap=e.emojiShortcutMap;this.emojiShortcutCharMap=G3q(e);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=e.emojiRegex;return}this.emojis=[].concat(_.kA(new Set(this.emojis.concat(l))));this.hasInitializedShortcutCharMap=!1;l=Array(this.emojis.length);for(e=0;e<this.emojis.length;e++){var O=this.emojis[e];if(O.emojiId){this.emojiMap[O.emojiId]=O;this.emojiMap[O.emojiId].index=
e;for(var E=0;O.shortcuts&&E<O.shortcuts.length;E++)this.emojiShortcutMap[O.shortcuts[E].toLocaleLowerCase()]=O;l[e]=O.isCustomEmoji&&O.shortcuts?O.shortcuts[0]:O.emojiId}}l.sort(function(J,z){return z.length-J.length});
if(l.length)try{this.emojiRegex=new RegExp(l.join("|").replace("*","\\*"),"gi")}catch(J){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Be1=function(l,e){e=_.b(e);for(var O=e.next();!O.done;O=e.next()){var E=O.value;if(E.emojiId&&l.emojiMap[E.emojiId]){O=Object.assign({},l.emojiMap[E.emojiId],E);l.emojiMap[E.emojiId]=O;var J=void 0;O.index&&((J=l.emojis[O.index])==null?void 0:J.emojiId)===E.emojiId&&(l.emojis[O.index]=O);E=void 0;if((E=O.shortcuts)==null?0:E.length)for(l.hasInitializedShortcutCharMap=!1,E=_.b(O.shortcuts),J=E.next();!J.done;J=E.next())l.emojiShortcutMap[J.value.toLocaleLowerCase()]=O}}};
PnS=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,_.HJ.getInstance(),2);if(E.nextAddress!=3)return(e=E.yieldResult)?_.C(E,e.get("ytlc-emoji-pref"),3):E.return();(O=E.yieldResult)&&Be1(l,Object.keys(O).map(function(J){return{emojiId:J,stickyPrefId:O[J]}}).filter(function(J){return!!J.emojiId&&!!J.stickyPrefId}));
_.Cl(E)})};
_.Ud=function(l,e,O){return(l=l.emojiMap[e])&&(!l.isLocked||O!==void 0&&O)?l:void 0};
Y8=function(l,e,O){O=_.Ud(l,e,O===void 0?!1:O);var E=e.match("\u200d");O&&l.skinTone!==0&&(l=(E==null?void 0:E.length)===1?_.Ud(l,e.replace("\u200d",Feq[l.skinTone]+"\u200d")):_.Ud(l,e+Feq[l.skinTone]))&&(O=l);return O};
UtF=function(l,e){var O=l.emojiMap[e];return(O==null?0:O.stickyPrefId)?l.emojiMap[O.stickyPrefId]:Y8(l,e)};
_.Kk=function(l,e){l=l.emojiShortcutMap[e.toLocaleLowerCase()];return!l||l.isLocked?null:l};
YqH=function(l,e,O){return G3q(l,O===void 0?!1:O)[e]||{}};
G3q=function(l,e){e=e===void 0?!1:e;if(!l.hasInitializedShortcutCharMap){l.hasInitializedShortcutCharMap=!0;for(var O=0;O<l.emojis.length;O++){var E=l.emojis[O];if(!(E.isLocked||e&&E.isCustomEmoji&&E.emojiId&&!l.pickerCustomEmojiIds.includes(E.emojiId)))for(var J=0;E.shortcuts&&J<E.shortcuts.length;J++){var z=E.shortcuts[J];z.startsWith(":_")&&E.isCustomEmoji&&(l.emojiShortcutCharMap[":_"]==null&&(l.emojiShortcutCharMap[":_"]=Object.create(null)),l.emojiShortcutCharMap[":_"][z]=E);if(!(z.length<3||
!E.isCustomEmoji&&ckH.test(z))){var M=z.substr(0,3).toLocaleLowerCase();l.emojiShortcutCharMap[M]==null&&(l.emojiShortcutCharMap[M]=Object.create(null));l.emojiShortcutCharMap[M][z]=E}}}}return l.emojiShortcutCharMap};
_.Pu.prototype.createEmoji=function(l,e){e=e===void 0?!0:e;var O=document.createElement("img");l.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");O.classList.add("yt-formatted-string");O.src=l.image?_.up(l.image.thumbnails,this.emojiSize)||"":"";var E=void 0;l.image&&l.image.accessibility&&l.image.accessibility.accessibilityData&&(E=l.image.accessibility.accessibilityData.label);O.alt=E?E:(l.isCustomEmoji&&l.shortcuts?l.shortcuts[0]:l.emojiId)||"";l.isCustomEmoji&&(O.dataset.emojiId=
l.emojiId);_.gs&&(O.setAttribute("contenteditable","false"),O.setAttribute("unselectable","on"));e&&(l.shortcuts&&l.shortcuts.length&&O.setAttribute("shared-tooltip-text",l.shortcuts[0]),O.id="emoji-"+HcR++);return O};
_.Pu.prototype.createDocumentFragment=function(l,e,O,E){e=e===void 0?!1:e;O=O===void 0?!0:O;E=E===void 0?!1:E;l=l.replace(TeS,"");for(var J=document.createDocumentFragment(),z=0,M,Z=0;(M=this.emojiRegex.exec(l))!=null;){var u=_.Ud(this,M[0])||_.Kk(this,M[0]);!u||u.isCustomEmoji&&!e||(u=this.createEmoji(u,O),z!==M.index&&J.appendChild(document.createTextNode(l.substring(z,M.index))),J.appendChild(u),z=M.index+M[0].length,Z++)}if(!E||Z)return J.appendChild(document.createTextNode(l.substr(z))),J};
h$1=function(l,e,O){var E,J,z,M,Z,u,d,g,w;return _.V(function(n){if(n.nextAddress==1){if(!e.emojiId||!l.emojiMap[e.emojiId])return n.return();E=Object.assign({},l.emojiMap[e.emojiId],{stickyPrefId:O});l.emojiMap[e.emojiId]=E;e.index&&((J=l.emojis[e.index])==null?void 0:J.emojiId)===e.emojiId&&(l.emojis[e.index]=E);if((z=e.shortcuts)==null?0:z.length)for(l.hasInitializedShortcutCharMap=!1,M=_.b(e.shortcuts),Z=M.next();!Z.done;Z=M.next())u=Z.value,l.emojiShortcutMap[u.toLocaleLowerCase()]=E;return _.C(n,
_.HJ.getInstance(),2)}if(n.nextAddress!=4)return(d=n.yieldResult)?_.C(n,d.get("ytlc-emoji-pref"),4):n.jumpTo(0);w=(g=n.yieldResult)!=null?g:{};w[e.emojiId]=O;return _.C(n,d.set("ytlc-emoji-pref",w,R$q),0)})};
_.hb=new _.Pu;var qq6;_.Lg={};
qq6={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.a("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:_.a("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 So(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 l=_.ud(this.hostElement||this).querySelector("#inline-action-button-container");l&&l.setAttribute("aria-hidden","true");this.menuButton=_.ud(this.hostElement).querySelector("#menu-button")},
attached:function(){var l=this.menuButton;l&&(l.addEventListener("focusin",_.id(this,this.onMenuButtonFocus_)),l.addEventListener("focusout",_.id(this,this.onMenuButtonBlur_)))},
detached:function(){var l=this.menuButton;l&&(l.removeEventListener("focusin",_.id(this,this.onMenuButtonFocus_)),l.removeEventListener("focusout",_.id(this,this.onMenuButtonBlur_)))},
identity:_.Bx,truthy:function(l){return!!l},
computeTimestampString:function(l){return l?l.timestampText?this.getSimpleString(l.timestampText):this.TIME_FORMATTER.format(new Date(l.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(l){return l},
computeMenuVisible_:function(l,e){return l||e},
computeHasInlineActionButtons:function(l){if(!l)return!1;var e,O;return!((e=l.inlineActionButtons)==null||!e.length)||!((O=l.additionalInlineActionButtons)==null||!O.length)},
createDocumentFragmentFromString:function(l){var e=_.hb.createDocumentFragment.bind(_.hb),O;if((O=this.participantsManager)==null||!O.viewerRegex)return e(l);O=document.createDocumentFragment();for(var E=0,J;(J=this.participantsManager.viewerRegex.exec(l))!=null;){if(J.index>0){var z=":"+J[0]+":";if((_.Ud(_.hb,z)||_.Kk(_.hb,z))&&l.indexOf(z)===J.index-1)continue}O.appendChild(e(l.substring(E,J.index)));E=document.createElement("span");E.appendChild(e(J[0]));E.classList.add("mention");O.appendChild(E);
E=J.index+J[0].length}O.appendChild(e(l.substring(E)));return O},
createDocumentFragment:function(l){var e=document.createDocumentFragment();if(l.simpleText)return e.appendChild(this.createDocumentFragmentFromString(l.simpleText)),e;if(!l.runs)return e;for(var O=0;O<l.runs.length;O++){var E=l.runs[O];if(E.emoji)e.appendChild(_.hb.createEmoji(E.emoji));else if(E.text)if(E.navigationEndpoint){var J=document.createElement("a");J.classList.add("yt-simple-endpoint");Pst(J,E.navigationEndpoint);_.ud(J).appendChild(this.createDocumentFragmentFromString(E.text));e.appendChild(J)}else e.appendChild(this.createDocumentFragmentFromString(E.text))}return e},
hasModerationOverlayVisible:function(){var l;return((l=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:l.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(l){l.composedPath().some(function(e){return(e=e instanceof Element?e:null)?e.tagName&&(e.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||e.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.a("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(l)},
colorFromDecimal:function(l){return hEx(l)},
markAsDeleted:function(l,e){this.set("data.deletedStateMessage",l);this.set("data.showOriginalContentMessage",e)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(l){if(this.data.contextMenuEndpoint){var e=_.V2().resolve(_.Pc),O=this.data.contextMenuEndpoint,E;(E=_.Dw.instance)&&_.SN(E,O)?(e=Le0(e,O),E=_.PJ(E,{},e)):E=_.tGR(e,O);E.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);l&&l.stopPropagation()}},
handleGetContextMenuResponse_:function(l){var e=_.Dw.instance;e&&_.SN(e,{liveChatEndpoint:{}})||(l=l.response);l.liveChatItemContextMenuSupportedRenderers&&l.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(l.liveChatItemContextMenuSupportedRenderers.menuRenderer);l.actions&&_.Wb(this.hostElement,"yt-live-chat-actions",[l.actions])},
handleGetContextMenuError:function(l){if(l instanceof Error||l instanceof Object||l instanceof String)var e=l;_.UW(new _.Hk("Error encountered calling GetLiveChatItemContextMenu",e))},
showContextMenu_:function(l){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:l}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.$u(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.$u(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Lg.YtLiveChatItemBehavior=[qq6,_.va.YtComponentBehavior,_.Ab.YtOpenPopupBehavior];_.tb=function(){};var vgx;var Neq;var rkH;var Dtq;var qe=function(){var l=_.B.apply(this,arguments)||this;l.active=!1;l.identity=_.Bx;return l};
_.m(qe,_.B);qe.prototype.dataChanged=function(){this.active=!1};
qe.prototype.onClick=function(){_.$u(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
qe.prototype.dataChanged=qe.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],qe.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],qe.prototype,"active",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qe.prototype,"dataChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],qe);
_.Y(qe,"yt-live-chat-text-input-field-suggestion",function(){if(Dtq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;rkH===void 0&&(rkH=document.createElement("template"));var E=rkH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Dtq=l}l=Dtq;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});_.vu=function(l,e,O){return CustomEvent.call(this,l,{detail:{value:e,path:O}})||this};
_.m(_.vu,CustomEvent);_.Ne=function(){var l=_.B.apply(this,arguments)||this;l.viewerName=null;l.actionMap={"yt-live-chat-actions":"onChatMessage_"};l.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];l.PARTICIPANT_TIME_USEC_=3E8;return l};
_.m(_.Ne,_.B);_.X=_.Ne.prototype;_.X.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.X.addParticipant=function(l){var e=_.nVT(this.participants,l,function(E,J){E=E[Object.keys(E)[0]];J=J[Object.keys(J)[0]];E=String(_.lG(E.authorName)).toLowerCase();J=String(_.lG(J.authorName)).toLowerCase();return E<J?-1:E==J?0:1}.bind(this));
if(e>=0){var O=this.participants[e];O[Object.keys(O)[0]].timestampUsec&&this.splice("participants",e,1,l)}else this.splice("participants",-e-1,0,l);l=l[Object.keys(l)[0]];e=_.lG(l.authorName).toLocaleLowerCase();O=e.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(O)||(this.allParticipantsCharMap_[O]={});this.allParticipantsCharMap_[O][e]=l};
_.X.getAuthorsFromPrefix=function(l){return this.allParticipantsCharMap_.hasOwnProperty(l)?this.allParticipantsCharMap_[l]:null};
_.X.computeViewerRegex_=function(l){if(!l)return null;l=l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var e=l.indexOf("@")===0&&_.a("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(e+l.replace(/ /g,"\\s*")+"|^"+l.replace(/ /g,"\\s*")+"$|^"+l.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+l.replace(/ /g,"\\s*")+"$|(?<=\\s)"+l.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.X.checkForStaleParticipants_=function(){var l=this;this.trimOldParticipants_();this.asyncHandle_&&iwx(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.N7(function(){l.checkForStaleParticipants_()},3E4))};
_.X.onChatMessage_=function(l){var e=this,O=Date.now()*1E3;l.forEach(function(E){if(E=_.I(E,JIS)){E=E.item;var J=Object.keys(E)[0];e.SUPPORTED_ITEM_TYPES_.indexOf(J)!=-1&&E[J].timestampUsec>=O-e.PARTICIPANT_TIME_USEC_&&e.addParticipant(E)}},this);
this.checkForStaleParticipants_()};
_.X.trimOldParticipants_=function(){for(var l=Date.now()*1E3,e=this.participants.length-1;e>=0;e--){var O=this.participants[e];O=O[Object.keys(O)[0]];O.timestampUsec&&O.timestampUsec<l-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",e,1)}};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],_.Ne.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],_.Ne.prototype,"viewerName",void 0);_.L([_.T({computed:"computeViewerRegex_(viewerName)"}),_.q("design:type",Object)],_.Ne.prototype,"viewerRegex",void 0);_.L([_.T({value:function(){return[]},
notify:!0}),_.q("design:type",Array)],_.Ne.prototype,"participants",void 0);_.L([_.Ps({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Ne);var SqF=/.*([:@#].*?)$/,r_=/\u00a0/g,Qgi=String.fromCharCode(160),xtF={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"},DH=function(){var l=_.B.apply(this,arguments)||this;l.disabled=!1;l.liveChatRichMessageInput=null;l.messageInput=null;l.isValidWithNoInputText=!1;l.suggestions=[];l.emojiManager=_.hb;l.inputMethodEditorActive=
!1;l.suggestionIndex=-1;l.JSC$12033_lastSuggestionRange=null;return l};
_.m(DH,_.B);_.X=DH.prototype;_.X.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.X.attached=function(){_.iv&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.X.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.X.dataChanged=function(){if(!this.ignoreColorMapping){var l=!1,e={},O;for(O in xtF)this.data&&this.data.hasOwnProperty(O)&&(e[xtF[O]]=this.colorFromDecimal(this.data[O]),l=!0);l&&_.dP(this.hostElement,e)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.X.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.X.colorFromDecimal=function(l){l=Math.floor(Number(l));return"rgba("+[l>>16&255,l>>8&255,l&255,(l>>24&255)/255].join()+")"};
_.X.preventDrag=function(l){l.dataTransfer&&(l.dataTransfer.dropEffect="none");l.preventDefault()};
_.X.preventResize=function(l){l.returnValue=!1};
_.X.onInputChange=function(){var l=this.characterCount,e=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&e&&e.remove();if(!e&&this.characterCount>this.maxCharacterLimit){var O=window.getSelection();if(O){var E=O.getRangeAt(0);O.removeAllRanges();O.addRange(E)}}if(O=this.getCurrentRange())E=this.calculateTextBeforeRange(O),this.completeEmojisInRange(O,E,!0)||this.updateSuggestions(O,E);E=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(E);
_.$u(this.hostElement,"yt-live-chat-message-input-change",E);e&&this.characterCount===0&&e.remove();O&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>l):O&&!O.collapsed&&O.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(l=this.input.childNodes.length-1;l>=0;l--)this.input.childNodes[l].nodeName==="BR"&&this.input.childNodes[l].remove()};
_.X.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.X.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var l=this.getCurrentRange();l&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.X.mergeOverflowText=function(l){if(l){var e=document.createRange();e.selectNodeContents(l);e=e.extractContents();this.input.insertBefore(e,l)}};
_.X.checkRangeAtEndOfInput=function(){var l=this.getCurrentRange();if(l){var e=_.ud(this.hostElement).querySelector("#overflow-text"),O=document.createRange();e&&e.previousSibling?e.previousSibling instanceof HTMLImageElement?O.selectNode(e.previousSibling):O.selectNodeContents(e.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?O.selectNode(this.input.lastChild):O.selectNodeContents(this.input.lastChild));O.collapse(!1);return O.isPointInRange(l.startContainer,
l.startOffset)}return!1};
_.X.handleOverflowText=function(l){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var e=_.ud(this.hostElement).querySelector("#overflow-text"),O=this.getCurrentRange();this.input.normalize();l=this.checkRangeAtEndOfInput()&&l;this.mergeOverflowText(e);for(var E,J=0,z=0,M,Z=this.input.childNodes,u=0;u<Z.length;u++){var d=Z[u];d instanceof Text?(z+=d.textContent.length,z>this.maxCharacterLimit&&(E=d,J=this.maxCharacterLimit+d.textContent.length-z)):d instanceof HTMLImageElement&&
(E=void 0,z=d.dataset.emojiId&&((E=this.data)==null?0:E.emojiCharacterCount)?z+this.data.emojiCharacterCount:z+d.alt.length,E=this.input,J=u);if(z>this.maxCharacterLimit&&E){M=document.createRange();M.collapse(!1);e?(z=this.input.lastChild.previousSibling,z instanceof Text?M.setEnd(this.input.lastChild.previousSibling,z.textContent.length):z instanceof HTMLImageElement&&M.setEnd(this.input,this.input.childNodes.length-1)):M.selectNodeContents(this.input);M.setStart(E,J);break}}M&&(E=!1,O&&(l=M.isPointInRange(O.startContainer,
O.startOffset-1)),e||(e=document.createElement("span"),e.id="overflow-text",e.textContent="",e.setAttribute("contenteditable","true"),_.ud(_.ud(this.hostElement).querySelector("#input")).appendChild(e),E=!0),e&&(O=M.extractContents(),e.insertBefore(O,e.firstChild),l&&e.firstChild&&(O=document.createRange(),E?O.setStartAfter(e.lastChild):O.setStartAfter(e.firstChild),O.collapse(!0),e=window.getSelection(),e.removeAllRanges(),e.addRange(O))))}};
_.X.checkForDuplicateSpans=function(){for(var l=0;l<this.input.childNodes.length;l++){var e=this.input.childNodes[l];if(e.nodeName==="SPAN"){var O=document.createRange();O.selectNodeContents(e);O=O.extractContents();this.input.insertBefore(O,e);e.remove()}}this.handleOverflowText(!0)};
_.X.getCurrentRange=function(){var l=window.getSelection();return l&&l.rangeCount?l.getRangeAt(0).cloneRange():null};
_.X.getInputRange=function(){var l=this.getCurrentRange();if(l){for(var e=l.commonAncestorContainer,O=!1,E=_.ud(this.hostElement).querySelector("#input");e;){if(e===E){O=!0;break}e=e.parentNode}O||(l=null)}l||(l=this.getRangeAtEnd());return l};
_.X.getRangeAtEnd=function(){var l=document.createRange(),e=_.ud(this.hostElement).querySelector("#input").lastChild;!e||e.nodeName!=="#text"&&e.nodeName!=="SPAN"?(l.selectNodeContents(_.ud(this.hostElement).querySelector("#input")),l.collapse(!1)):e.nodeName==="#text"?l.setStart(e,e.textContent.length):l.setStart(e,e.childNodes.length);return l};
_.X.getChatParticipantSuggestions=function(l,e,O,E){var J=_.a("live_chat_enable_handles_web_text_input_update");if(e)for(var z in e)if(z.indexOf(l)===0||J&&z.indexOf(O+l)===0){var M=e[z],Z=_.lG(M.authorName);E.push({suggestion:{author:!0,authorType:O,image:M.authorPhoto,alt:Z,text:Z}});if(E.length>=64)break}};
_.X.getSuggestions=function(l){var e=[],O=l.substring(0,3),E=YqH(_.hb,O,!0);if(E)for(var J in E)if(J.toLocaleLowerCase().indexOf(l)===0){var z=E[J];if(z&&z.emojiId){if(z=UtF(_.hb,z.emojiId)){var M=void 0,Z=void 0,u=void 0,d=void 0,g=((M=z.image)==null?0:(Z=M.accessibility)==null?0:(u=Z.accessibilityData)==null?0:u.label)||z.isCustomEmoji?(d=z.shortcuts)==null?void 0:d[0]:z.emojiId;e.push({suggestion:{emoji:!0,image:z.image,alt:g,text:J,textToInsertWhenSelected:z.isCustomEmoji?J:g}})}if(e.length>=
64)break}}if(!this.participantsManager)return null;if(O.indexOf("@")===0||O.indexOf("#")===0)E=O.charAt(0),l=l.substring(1),J=_.a("live_chat_enable_handles_web_text_input_update"),O.indexOf("@")===0&&J&&(J=this.participantsManager.getAuthorsFromPrefix(O.substring(0,2)),this.getChatParticipantSuggestions(l,J,E,e)),O=O.substring(1),O=this.participantsManager.getAuthorsFromPrefix(O),this.getChatParticipantSuggestions(l,O,E,e);return e?e.sort(function(w,n){return n.suggestion.text<w.suggestion.text?-1:
n.suggestion.text===w.suggestion.text?0:1}):null};
_.X.insertSuggestion=function(l){var e=_.a("live_chat_enable_handles_web_text_input_update"),O=l.authorType;e=l.text.indexOf(O)===0&&e?l.text+Qgi:O+l.text+Qgi;l.emoji?this.insertTextAtRange(this.JSC$12033_lastSuggestionRange,l.textToInsertWhenSelected||""):l.author&&this.insertTextAtRange(this.JSC$12033_lastSuggestionRange,e)};
_.X.updateSuggestionsAtCaret=function(){var l=this.getCurrentRange();l&&this.updateSuggestions(l,this.calculateTextBeforeRange(l))};
_.X.offsetStartOfRangeBy=function(l,e){for(;e>0;)if(l.startOffset-e>=0){l.setStart(l.startContainer,l.startOffset-e);break}else{e=l.startContainer instanceof HTMLImageElement?e-l.startContainer.alt.length:e-l.startOffset;var O=l.startContainer.previousSibling;if(!O){l.setStart(l.startContainer,0);break}if(_.a("live_chat_require_space_for_autocomplete_emoji")){var E=void 0,J=void 0;l.setStart(O,((E=O)==null?void 0:(J=E.textContent)==null?void 0:J.length)||0)}else l.setStart(O,O.childNodes.length||
0)}};
_.X.updateSuggestions=function(l,e){var O=this;this.JSC$12033_lastSuggestionRange&&(this.JSC$12033_lastSuggestionRange.detach(),this.JSC$12033_lastSuggestionRange=null);if((e=SqF.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2&&(this.offsetStartOfRangeBy(l,e.length),this.JSC$12033_lastSuggestionRange=l,(l=this.getSuggestions(e))&&l.length))){this.suggestions=l;_.OK(this,function(){_.ud(O.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(l.length-1);return}this.dropdown.opened=!1};
_.X.completeEmojisInRange=function(l,e,O){var E=e.replace(/[\s\xa0]+$/,"");e=e.length-E.length;E=E.split(" ");E=E[E.length-1].trim().toLocaleLowerCase();var J=E.lastIndexOf(":");if(O&&!e&&J!==E.length-1)return!1;J!==-1&&(O=E.lastIndexOf(":",J-1),O!==-1&&(E=E.substring(O)));if((O=_.Kk(_.hb,E))&&O.emojiId){O=UtF(_.hb,O.emojiId)||null;this.offsetStartOfRangeBy(l,E.length+e);var z,M,Z,u;E=(((z=O)==null?0:z.isCustomEmoji)?(M=O)==null?void 0:(Z=M.shortcuts)==null?void 0:Z[0]:(u=O)==null?void 0:u.emojiId)||
"";e&&(E+=Qgi);this.insertTextAtRange(l,E);this.dropdown.opened=!1;return!0}return!1};
_.X.onSuggestion=function(l){this.insertSuggestion(l.detail);this.dropdown.opened=!1};
_.X.onKeyPress=function(l){l.keyCode===13&&(l.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.$u(this.hostElement,"yt-live-chat-send-message"))};
_.X.completeEmojis=function(){var l=document.createRange(),e=_.ud(this.hostElement).querySelector("#input").lastChild;e?l.setStart(e,e.childNodes.length):(l.selectNodeContents(_.ud(this.hostElement).querySelector("#input")),l.collapse(!1));this.completeEmojisInRange(l,this.calculateTextBeforeRange(l),_.a("live_chat_require_space_for_autocomplete_emoji"))};
_.X.maybePreventTextFormatting=function(l){!_.a_||!l.ctrlKey&&!l.metaKey||l.keyCode!==66&&l.keyCode!==73||(l.stopImmediatePropagation(),l.preventDefault())};
_.X.onKeyDown=function(l){this.maybePreventTextFormatting(l);if(this.dropdown.opened)switch(l.keyCode){case 27:this.dropdown.opened=!1;l.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;l.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);l.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),l.preventDefault()}};
_.X.onKeyUp=function(l){switch(l.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.gs)this.onInputChange()};
_.X.changeSuggestionIndex=function(l){if(this.dropdown.opened){var e=_.ud(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<e.children.length&&(e.children[this.suggestionIndex].active=!1);var O=this.suggestions.length;this.suggestionIndex=(l+O)%O;l=e.children[this.suggestionIndex];l.active=!0;e.scrollTop=l.offsetTop}};
_.X.onInputPaste=function(l){l.preventDefault();(l=l.clipboardData)&&l.types&&(l=l.getData("text/plain")||"",l=l.replace(/\n/g,""),this.insertText(l));(l=this.getCurrentRange())&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.X.onFocus=function(){this._setFocused(!0)};
_.X.onBlur=function(){this._setFocused(!1)};
_.X.insertText=function(l){this.insertTextAtRange(this.getInputRange(),l)};
_.X.insertTextAtRange=function(l,e){if(l&&(l.collapsed||l.deleteContents(),e=_.hb.createDocumentFragment(e,!0,!1))){for(var O=_.b((e==null?void 0:e.childNodes)||[]),E=O.next();!E.done;E=O.next()){E=E.value;var J=void 0,z=void 0,M=void 0,Z=void 0,u=void 0;(M=(J=window)==null?void 0:(z=J.ShadyCSS)==null?void 0:z.ScopingShim)==null||(u=(Z=M).scopeNode)==null||u.call(Z,E,this.hostElement.localName)}O=e.lastChild;l.insertNode(e);this.focused||this.input.focus();if(this.focused){l=l.cloneRange();l.selectNodeContents(O);
l.collapse(!1);if(e=window.getSelection())e.removeAllRanges(),e.addRange(l);l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}l=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(l);_.$u(this.hostElement,"yt-live-chat-message-input-change",l)}};
_.X.setLiveChatRichMessageInput=function(l){_.ud(_.ud(this.hostElement).querySelector("#input")).textContent="";if(l&&l.textSegments){for(var e=0;e<l.textSegments.length;e++){var O=l.textSegments[e];O.text?_.ud(_.ud(this.hostElement).querySelector("#input")).appendChild(_.hb.createDocumentFragment(O.text,!0,!1)):O.emojiId&&(O=_.Ud(_.hb,O.emojiId))&&_.ud(_.ud(this.hostElement).querySelector("#input")).appendChild(_.hb.createEmoji(O,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.X.setText=function(l){this.setLiveChatRichMessageInput(l?{textSegments:[{text:l}]}:null)};
_.X.calculateTextBeforeRange=function(l){var e="",O=l.startContainer;if(O&&O instanceof Text){var E;e=((E=O.textContent)==null?void 0:E.substring(0,l.startOffset))||"";O=O.previousSibling}for(;O&&O instanceof Text;)e=O.textContent+e,O=O.previousSibling;return e.replace(r_," ")};
_.X.calculateLiveChatRichMessageInput=function(){for(var l=[],e="",O=_.ud(_.ud(this.hostElement).querySelector("#input")).childNodes,E=0;E<O.length;E++){var J=O[E];J instanceof Text?e+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(e&&(l.push({text:e.replace(r_," ")}),e=""),l.push({emojiId:J.dataset.emojiId})):e+=J.alt)}e&&l.push({text:e.replace(r_," ")});if(O=_.ud(this.hostElement).querySelector("#overflow-text")){e="";O=O.childNodes;for(E=0;E<O.length;E++)J=O[E],J instanceof Text?
e+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(e&&(l.push({text:e.replace(r_," ")}),e=""),l.push({emojiId:J.dataset.emojiId})):e+=J.alt);e&&l.push({text:e.replace(r_," ")})}return{textSegments:l}};
_.X.computeCharacterCount=function(l){if(!l||!l.textSegments)return 0;for(var e=0,O=0;O<l.textSegments.length;O++){var E=l.textSegments[O];if(E.text)e+=E.text.length;else if(E.emojiId){var J=void 0;if((J=this.data)==null?0:J.emojiCharacterCount)e+=this.data.emojiCharacterCount;else{var z=J=void 0,M=void 0;e+=((z=_.Ud(_.hb,(J=E)==null?void 0:J.emojiId))==null?void 0:(M=z.shortcuts)==null?void 0:M[0].length)||0}}}return e};
_.X.characterCountChanged=function(){_.$u(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.X.focusedChanged=function(){this.hostElement.dispatchEvent(new _.vu("focused-changed",this.focused))};
_.X.focus=function(){this.setFocus(!1)};
_.X.focusAtEnd=function(){this.setFocus(!0)};
_.X.setFocus=function(l){l=l?this.getRangeAtEnd():this.getInputRange();_.ud(this.hostElement).querySelector("#input").focus();var e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(l))};
_.X.insertEmoji=function(l){var e,O=((l==null?0:l.isCustomEmoji)?(e=l.shortcuts)==null?void 0:e[0]:l==null?void 0:l.emojiId)||"";this.insertText(O)};
_.X.computeText=function(l){if(!l||!l.textSegments)return"";for(var e="",O=0;O<l.textSegments.length;O++){var E=l.textSegments[O];if(E.text)e+=E.text;else if(E.emojiId){var J=void 0,z=void 0,M=void 0;e+=((z=_.Ud(_.hb,(J=E)==null?void 0:J.emojiId))==null?void 0:(M=z.shortcuts)==null?void 0:M[0])||""}}return e};
_.X.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Ji.Object.defineProperties(DH.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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}}});
DH.prototype.focusedChanged=DH.prototype.focusedChanged;DH.prototype.characterCountChanged=DH.prototype.characterCountChanged;DH.prototype.onSuggestion=DH.prototype.onSuggestion;DH.prototype.onMessageSet=DH.prototype.onMessageSet;DH.prototype.dataChanged=DH.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],DH.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],DH.prototype,"disabled",void 0);_.L([_.R("disabled"),_.q("design:type",Number),_.q("design:paramtypes",[])],DH.prototype,"inputTabIndex",null);_.L([_.R("data.maxCharacterLimit"),_.T({readOnly:!0,notify:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],DH.prototype,"maxCharacterLimit",null);
_.L([_.R("liveChatRichMessageInput"),_.T({readOnly:!0,notify:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],DH.prototype,"characterCount",null);_.L([_.R("maxCharacterLimit, characterCount"),_.T({readOnly:!0,notify:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],DH.prototype,"remainingCharacterCount",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],DH.prototype,"isChatMessageInput",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],DH.prototype,"inputExpanded",void 0);_.L([_.T({readOnly:!0,notify:!0}),_.q("design:type",Object)],DH.prototype,"liveChatRichMessageInput",void 0);_.L([_.T(),_.q("design:type",Object)],DH.prototype,"messageInput",void 0);_.L([_.T(),_.q("design:type",Boolean)],DH.prototype,"ignoreColorMapping",void 0);_.L([_.R("characterCount"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],DH.prototype,"hasText",null);
_.L([_.T(),_.q("design:type",Object)],DH.prototype,"isValidWithNoInputText",void 0);_.L([_.R("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.T(),_.q("design:type",Boolean),_.q("design:paramtypes",[])],DH.prototype,"isInputValid",null);_.L([_.T({readOnly:!0,value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],DH.prototype,"focused",void 0);_.L([_.T(),_.q("design:type",Array)],DH.prototype,"suggestions",void 0);
_.L([_.T(),_.q("design:type",_.Pu)],DH.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",_.Ne)],DH.prototype,"participantsManager",void 0);_.L([_.T(),_.q("design:type",Boolean)],DH.prototype,"noUnderline",void 0);_.L([_.T(),_.q("design:type",Object)],DH.prototype,"inputMethodEditorActive",void 0);_.L([_.aB("#dropdown"),_.q("design:type",Object)],DH.prototype,"dropdown",void 0);_.L([_.aB("#input"),_.q("design:type",HTMLElement)],DH.prototype,"input",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DH.prototype,"dataChanged",null);_.L([_.AA("messageInput"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DH.prototype,"onMessageSet",null);_.L([_.wP("yt-live-chat-select-suggestion"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],DH.prototype,"onSuggestion",null);
_.L([_.AA("characterCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DH.prototype,"characterCountChanged",null);_.L([_.AA("focused"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DH.prototype,"focusedChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],DH);
_.la1=_.Y(DH,"yt-live-chat-text-input-field-renderer",function(){if(Neq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;vgx===void 0&&(vgx=document.createElement("template"));var E=vgx;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Neq=l}l=Neq;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var SF=function(){var l=_.B.apply(this,arguments)||this;l.buttonOverrides={style:"overlay",type:"filled"};l.allowAnimations=!1;l.modern=_.a("web_button_rework_with_live");l.noPadding=!1;return l};
_.m(SF,_.B);_.X=SF.prototype;_.X.shouldSupportInlineActionButtons=function(){return!0};
_.X.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"}}}}};
_.X.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.X.attached=function(){this.allowAnimations=!1};
_.X.dataChanged=function(){if(this.data){var l={"--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)};_.dP(this.hostElement,l);this.allowAnimations=!0}};
_.X.messageChanged=function(){var l,e=(l=this.data)==null?void 0:l.message;l=_.ud(_.ud(this.hostElement).querySelector("#message"));l.textContent="";e&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.X.computeShowOnlyHeader=function(l,e){return!l||l.pdgLikeButton||l.replyButton||l.buyFlowButton?!1:this.isEmpty(l,e)&&!l.footer};
_.X.computeShowFooterDivider=function(l,e,O){return l?!!l.footer&&!this.isEmpty(l,e)&&!O:!1};
_.X.computeIsUserEditable=function(l){return!!l.inputField};
_.X.computeHasHeartButton=function(l){return(l==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(l==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(l==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.X.computeNoveltyImage=function(l){if(l.headerOverlayImage&&l.headerOverlayImage.thumbnails.length){var e=l.headerOverlayImage.thumbnails[0],O,E;if((O=l.pdgPurchasedNoveltyLoggingDirectives)==null?0:(E=O.loggingDirectives)==null?0:E.trackingParams){var J,z;pjx((J=l.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=J.loggingDirectives)==null?void 0:z.trackingParams)}return e.width||0}return 0};
_.X.computeAuthorPhotoSize=function(l){return(l==null?0:l.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.X.inputFocus=function(){var l=_.ud(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");l&&l.focus()};
_.X.inputInsertEmoji=function(l){var e=_.ud(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");e&&e.insertEmoji(l)};
_.X.inputMessage=function(){var l=_.ud(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),e;return l&&((e=this.data)==null?0:e.inputField)?(l.completeEmojis(),_.vF(l.liveChatRichMessageInput)):null};
_.X.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.X.isEmpty=function(l,e){return l?l.empty||!(l.message||l.inputField||e):!0};
_.X.onLowerBuyButtonClick=function(){var l,e=_.I((l=this.data)==null?void 0:l.buyButton,_.YU);e&&e.trackingParams&&!tx8(e.command)&&(l=_.cf(e.trackingParams))&&(e=_.P9())&&_.On(e,l)};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.Ji.Object.defineProperties(SF.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
SF.prototype.isDeletedChanged=SF.prototype.isDeletedChanged;SF.prototype.messageChanged=SF.prototype.messageChanged;SF.prototype.dataChanged=SF.prototype.dataChanged;_.L([_.K(Hqk.YtPdgLiveChatItemBehavior),_.q("design:type",Object)],SF.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],SF.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],SF.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],SF.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:mwT}),_.q("design:type",Object)],SF.prototype,"engagementState",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.q("design:type",Boolean)],SF.prototype,"isUserEditable",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.q("design:type",Boolean)],SF.prototype,"hasHeartButton",void 0);_.L([_.T({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.q("design:type",Boolean)],SF.prototype,"showOnlyHeader",void 0);
_.L([_.T({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.q("design:type",Boolean)],SF.prototype,"showFooterDivider",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Object)],SF.prototype,"allowAnimations",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],SF.prototype,"dashboardMoneyFeed",void 0);_.L([_.T({computed:"computeNoveltyImage(data)"}),_.q("design:type",Number)],SF.prototype,"noveltyWidth",void 0);
_.L([_.T({computed:"computeAuthorPhotoSize(data)"}),_.q("design:type",Number)],SF.prototype,"authorPhotoSize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],SF.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],SF.prototype,"noPadding",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SF.prototype,"dataChanged",null);
_.L([_.AA("data.message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SF.prototype,"messageChanged",null);_.L([_.R("data","dashboardMoneyFeed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SF.prototype,"hideLowerBumper",null);_.L([_.AA("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SF.prototype,"isDeletedChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],SF);
_.Y(SF,"yt-live-chat-paid-message-renderer",function(){if(Zc1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;VGk===void 0&&(VGk=document.createElement("template"));var E=VGk;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Zc1=l}l=Zc1;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var eqS;var OE1;var QG=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;return l};
_.m(QG,_.IB);QG.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.hT("openPopupConfig")};
_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],QG.prototype,"ytOpenPopupBehavior",void 0);_.L([_.m0()],QG);_.x8=[_.Ab.YtOpenPopupBehavior,QG.prototype];var EKq;var lV=[_.ms,Nd1,_.BC,_.yF,_.ej,_.XYk,_.jT,_.us1,_.Yx,a_8];_.a("web_watch_get_updated_metadata_response_processing")&&lV.push(_.fYk);_.a("web_continuation_response_processing")&&lV.push(_.qj);var a6p=new _.Xa("RESPONSE_RECEIVED_COMMANDS"),imT=new _.Xa("RESPONSE_RECEIVED_COMMANDS");var uqL="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Zmu=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],VEV=["GET_UNSEEN_NOTIFICATION_COUNT"];var l8=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;l.serviceEndpointHandlers=[];return l};
_.m(l8,_.IB);l8.prototype.created=function(){var l=this;this.endpointHandlerActionMap={"yt-service-request":function(e,O,E,J){var z;return MEp(l.hostElement,e,O,E,J,l.serviceEndpointHandlers,(z=l.onEntitiesUpdated)==null?void 0:z.bind(l))}}};
l8.prototype.attached=function(){_.QW(_.SU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
l8.prototype.detached=function(){_.xE(_.SU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.L([_.m0()],l8);_.JaC=[l8.prototype];var Xlx,zqx=function(){return Xlx!==void 0?Xlx:Xlx=document.createElement("template")};
document.head.appendChild(zqx().content);var bES;var MYF=document.head,VYq=MYF.appendChild,ZES;if(bES===void 0){var urH=document.createElement("template");_.p(urH,"\x3c!--css-build:shady--\x3e");urH.content.insertBefore(zqx().content.cloneNode(!0),urH.content.firstChild);bES=urH}ZES=bES;VYq.call(MYF,ZES.content);var CAS,oKi=function(){return CAS!==void 0?CAS:CAS=document.createElement("template")};
document.head.appendChild(oKi().content);var $1q;var Wrk=document.head,d1q=Wrk.appendChild,gKR;if($1q===void 0){var iEq=document.createElement("template");_.p(iEq,"\x3c!--css-build:shady--\x3e");iEq.content.insertBefore(oKi().content.cloneNode(!0),iEq.content.firstChild);$1q=iEq}gKR=$1q;d1q.call(Wrk,gKR.content);var wlF;_.Y7("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Y7("sharingRendererButtons","buttonRenderer","ytd-button-renderer");wlF=_.a("web_button_rework")&&_.LH("BUTTON_REWORK")||_.a("web_button_rework_with_live");_.ek=function(){var l=_.B.apply(this,arguments)||this;l.isPressed=!1;l.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return l};
_.m(_.ek,_.B);_.X=_.ek.prototype;_.X.created=function(){this.showTooltips=!0};
_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.onHintIdChanged=function(){var l=this,e,O,E=(e=this.ytButtonBehavior.data)==null?void 0:(O=e.hint)==null?void 0:O.hintRenderer;if(E&&E.hintId){e=_.dQ(this.hostElement,"yt-get-opened-popups-action");e=(e&&e.length===1?e[0]:[]).length>0;var J=null;E.hintId!=="sponsor-pre-purchase"||e?E.hintId.startsWith("sponsor-post-purchase")&&!e?J=tfi("membership-manage"):E.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!e&&(J=tfi("membership-freebie-join")):J=tfi("membership-join");J&&_.UD.addLowPriorityJob(function(){for(var z=
_.b(J),M=z.next();!M.done;M=z.next())l.ytComponentBehavior.resolveCommand(M.value)})}};
_.X.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.X.onYtNavigate=function(l){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);e&&(l.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.X.onYtServiceRequestSent=function(l,e){this.handleServiceRequestActions(e);_.$u(this.hostElement,"yt-service-request-sent-button-renderer")};
_.X.onServiceRequestCompleted=function(l,e){this.handleServiceRequestActions(e);_.$u(this.hostElement,"yt-service-request-completed-button-renderer")};
_.X.updateButton=function(l){var e;if(l=(e=_.I(l,j_0))==null?void 0:e.updatedButton)this.ytButtonBehavior.data=_.I(l,_.YU)};
_.X.handleUpdateButtonAction=function(l){var e=this.ytButtonBehavior.data;e.targetId&&l.updateButtonAction.targetId&&e.targetId===l.updateButtonAction.targetId&&this.updateButton(l)};
_.X.handleServiceRequestActions=function(l){if(l=l.actions)for(var e=0;e<l.length;e++)this.updateButton(l[e])};
_.Ji.Object.defineProperties(_.ek,{template:{configurable:!0,enumerable:!0,get:function(){if(EKq===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);EKq=l}l=EKq;return l}}});
_.ek.prototype.onServiceRequestCompleted=_.ek.prototype.onServiceRequestCompleted;_.ek.prototype.onYtServiceRequestSent=_.ek.prototype.onYtServiceRequestSent;_.ek.prototype.onYtNavigate=_.ek.prototype.onYtNavigate;_.ek.prototype.onPressedStateChanged=_.ek.prototype.onPressedStateChanged;_.ek.prototype.onHintIdChanged=_.ek.prototype.onHintIdChanged;_.L([_.T(),_.q("design:type",Object)],_.ek.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],_.ek.prototype,"isPressed",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],_.ek.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.HGR.YtButtonBehavior),_.q("design:type",Object)],_.ek.prototype,"ytButtonBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],_.ek.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],_.ek.prototype,"ytComponentBehavior",void 0);
_.L([_.K(yG.YtRenderButtonBehavior),_.q("design:type",Object)],_.ek.prototype,"ytRenderButtonBehavior",void 0);_.L([_.AA("data.hint.hintRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],_.ek.prototype,"onHintIdChanged",null);_.L([_.AA("isPressed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],_.ek.prototype,"onPressedStateChanged",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],_.ek.prototype,"onYtNavigate",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],_.ek.prototype,"onYtServiceRequestSent",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],_.ek.prototype,"onServiceRequestCompleted",null);_.L([_.U({is:"ytd-button-renderer",disableElementRegistration:wlF})],_.ek);var OY=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_button_rework_with_live");l.buttonOverrides={style:"overlay",type:"filled"};return l};
_.m(OY,_.B);_.X=OY.prototype;_.X.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"}}}}};
_.X.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.X.dataChanged=function(){if(this.data&&this.data.sticker){var l=_.up(this.data.sticker.thumbnails,this.stickerWidth);l||_.m0t(l).thenCatch(function(){_.hG(new _.Hk("Failed to load Super Sticker with url",l))})}};
_.X.computeAuthorPhotoSize=function(l){return(l==null?0:l.isV2Style)?32:40};
_.X.computeIsV2Style=function(l){return(l==null?0:l.isV2Style)?!0:!1};
_.X.onStickerLoaded=function(l){var e,O,E;(e=_.OV(l))==null||(O=e.parentNode)==null||(E=O.classList)==null||E.add("sticker-loaded")};
_.X.computeNoveltyImageWidth=function(l){var e,O;if(l==null?0:(e=l.headerOverlayImage)==null?0:(O=e.thumbnails)==null?0:O.length){e=l.headerOverlayImage.thumbnails[0];var E,J;if((E=l.pdgPurchasedNoveltyLoggingDirectives)==null?0:(J=E.loggingDirectives)==null?0:J.trackingParams){var z,M;pjx((z=l.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=z.loggingDirectives)==null?void 0:M.trackingParams)}return e.width||0}return 0};
_.X.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.X.updateStickerStyles=function(){var l=this.data;l&&(l={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.authorNameTextColor)},
_.dP(this.hostElement,l))};
_.X.onBuyButtonClick=function(){var l,e=_.I((l=this.data)==null?void 0:l.buyButton,_.YU);e&&!tx8(e.command)&&this.ytRendererBehavior.logExplicitClick(e)};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.Ji.Object.defineProperties(OY.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 l;return((l=this.data)==null?0:l.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
OY.prototype.updateStickerStyles=OY.prototype.updateStickerStyles;OY.prototype.isDeletedChanged=OY.prototype.isDeletedChanged;OY.prototype.onStickerLoaded=OY.prototype.onStickerLoaded;OY.prototype.dataChanged=OY.prototype.dataChanged;_.L([_.K(Hqk.YtPdgLiveChatItemBehavior),_.q("design:type",Object)],OY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],OY.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OY.prototype,"data",void 0);
_.L([_.T({computed:"computeAuthorPhotoSize(data)"}),_.q("design:type",Number)],OY.prototype,"authorPhotoSize",void 0);_.L([_.T(),_.q("design:type",Boolean)],OY.prototype,"isDeleted",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],OY.prototype,"dashboardMoneyFeed",void 0);_.L([_.T({computed:"computeNoveltyImageWidth(data)"}),_.q("design:type",Number)],OY.prototype,"noveltyWidth",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],OY.prototype,"modern",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.q("design:type",Boolean)],OY.prototype,"isV2Style",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OY.prototype,"dataChanged",null);_.L([_.wP("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],OY.prototype,"onStickerLoaded",null);
_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],OY.prototype,"stickerWidth",null);_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],OY.prototype,"stickerHeight",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],OY.prototype,"hasHeartButton",null);_.L([_.R("data","dashboardMoneyFeed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],OY.prototype,"hideLowerBumper",null);
_.L([_.AA("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OY.prototype,"isDeletedChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OY.prototype,"updateStickerStyles",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],OY);
_.Y(OY,"yt-live-chat-paid-sticker-renderer",function(){if(OE1===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;eqS===void 0&&(eqS=document.createElement("template"));var E=eqS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);OE1=l}l=OE1;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var Aaq;var nKi;var aaq,k6x=function(){return aaq!==void 0?aaq:aaq=document.createElement("template")};
document.head.appendChild(k6x().content);var Iaq,m10=function(){return Iaq!==void 0?Iaq:Iaq=document.createElement("template")};
document.head.appendChild(m10().content);var yaH;var pli,KrS=function(){return pli!==void 0?pli:pli=document.createElement("template")};
document.head.appendChild(KrS().content);var jZH;var HEH=document.head,caR=HEH.appendChild,FrF;if(jZH===void 0){var faC=document.createElement("template");_.p(faC,"\x3c!--css-build:shady--\x3e");faC.content.insertBefore(KrS().content.cloneNode(!0),faC.content.firstChild);jZH=faC}FrF=jZH;caR.call(HEH,FrF.content);var Rqq=document.head,ThC=Rqq.appendChild,sZq;if(yaH===void 0){var EY=document.createElement("template");_.p(EY,"\x3c!--css-build:shady--\x3e");EY.content.insertBefore(m10().content.cloneNode(!0),EY.content.firstChild);EY.content.insertBefore(k6x().content.cloneNode(!0),EY.content.firstChild);yaH=EY}sZq=yaH;ThC.call(Rqq,sZq.content);var Jx=function(){var l=_.IB.apply(this,arguments)||this;l.focusedIndex=0;l.verticalOffset=0;l.verticalAlign="top";l.dynamicAlign=!0;return l};
_.m(Jx,_.IB);Jx.prototype.emojiUrl=function(l){l=_.Ud(this.emojiManager,l);if(!l)return"";var e;l=(e=l.image)==null?void 0:e.thumbnails;return _.up(l,24)||""};
var G6q=function(l){var e;l.emojiVariants&&(e=l.data)!=null&&e.target&&_.OK(l,function(){l.set("verticalOffset",-1*l.hostElement.clientHeight);var O=_.ud(l.hostElement).querySelector("img");O&&O.focus()})};
_.X=Jx.prototype;_.X.onKeyboardEnter=function(){};
_.X.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.X.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.X.onKeyDown=function(l){switch(l.keyCode){case 13:this.onKeyboardEnter();l.preventDefault();break;case 40:this.changeFocus(1);l.preventDefault();break;case 38:this.changeFocus(-1);l.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.X.onYtEmojiSelect=function(l){var e=this,O,E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1)return E=(O=e.data)==null?void 0:O.emoji,M=((J=E)==null?void 0:J.stickyPrefId)||((z=E)==null?void 0:z.emojiId),u=(Z=l.detail)==null?void 0:Z.emojiId,M&&u&&M!==u?_.C(g,(d=e.emojiManager)==null?void 0:h$1(d,E,u),2):g.return();_.Wb(e.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[E,u]);_.Cl(g)})};
_.X.changeFocus=function(l){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+l+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(l=_.ud(this.hostElement).querySelector("#variants"))&&l.children[this.focusedIndex].focus())};
_.Ji.Object.defineProperties(Jx.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Jx.prototype.onYtEmojiSelect=Jx.prototype.onYtEmojiSelect;Jx.prototype.onKeyDown=Jx.prototype.onKeyDown;Jx.prototype.onEmojiVariantsChanged=Jx.prototype.onEmojiVariantsChanged;Jx.prototype.onVerticalOffsetOrPositionTargetChanged=Jx.prototype.onVerticalOffsetOrPositionTargetChanged;_.L([_.K(_.SZ),_.q("design:type",Object)],Jx.prototype,"ironOverlayBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Jx.prototype,"data",void 0);_.L([_.T(),_.q("design:type",_.Pu)],Jx.prototype,"emojiManager",void 0);
_.L([_.T(),_.q("design:type",Object)],Jx.prototype,"emojiVariants",void 0);_.L([_.T(),_.q("design:type",Object)],Jx.prototype,"focusedIndex",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Jx.prototype,"positionTarget",null);_.L([_.T({reflectToAttribute:!0}),_.R("verticalOffset","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Jx.prototype,"isPositioned",null);_.L([_.T(),_.q("design:type",Object)],Jx.prototype,"verticalOffset",void 0);
_.L([_.T(),_.q("design:type",Object)],Jx.prototype,"verticalAlign",void 0);_.L([_.T(),_.q("design:type",Object)],Jx.prototype,"dynamicAlign",void 0);_.L([_.AA("verticalOffset","positionTarget"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jx.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.L([_.AA("emojiVariants"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jx.prototype,"onEmojiVariantsChanged",null);
_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],Jx.prototype,"onKeyDown",null);_.L([_.wP("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype",Promise)],Jx.prototype,"onYtEmojiSelect",null);_.L([_.m0()],Jx);var Bhk=[Jx.prototype];var PAF;var U1i;var Y3q=/medium-light|medium-dark|light|medium|dark/,hqk=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,LrS=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),XN=function(){var l=_.B.apply(this,arguments)||this;l.userSelection={left:null,right:null};l.scrollAction="lock";l.isEmojiDraftInProgress=!1;return l};
_.m(XN,_.B);_.X=XN.prototype;_.X.onClick=function(l){l=_.OV(l);l instanceof HTMLImageElement&&this.selectOrUpdateEmoji(l)};
_.X.selectOrUpdateEmoji=function(l){var e=l.getAttribute("selection");e&&(e==="default"?_.$u(this.hostElement,"yt-emoji-select",_.Ud(this.emojiManager,l.id)):e==="left"?this.userSelection=Object.assign({},this.userSelection,{left:l.src}):e==="right"?this.userSelection=Object.assign({},this.userSelection,{right:l.src}):e==="user"&&this.userSelection.left&&this.userSelection.right&&_.$u(this.hostElement,"yt-emoji-select",_.Ud(this.emojiManager,l.id)))};
_.X.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.X.onMultiSelectorThumbnailRowChanged=function(){var l,e,O;((l=this.data)==null?0:(e=l.emoji)==null?0:(O=e.multiSelectorThumbnailRow)==null?0:O.length)&&this.openSelector()};
_.X.getThumbnailFromEmojiRow=function(l){var e,O;return(l==null?void 0:(e=l.thumbnails)==null?void 0:(O=e[0])==null?void 0:O.url)||""};
_.X.getEmojiAltTextForPartialSelector=function(l){var e;return((e=this.getThumbnailFromEmojiRow(l).match(hqk))==null?void 0:e[0])||""};
_.X.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.X.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.X.getRowSelection=function(l){return["left","right"][l]};
_.X.getIdFromComposedEmoji=function(l){return(l==null?void 0:l.emojiId)||""};
_.X.getEmojiFromPartialSelections=function(l,e){if(!l&&!e)return null;var O,E,J=(O=this.data)==null?void 0:(E=O.emoji)==null?void 0:E.variantIds;if(!J||!J.length)return null;var z;l=(z=l.match(Y3q))==null?void 0:z[0];var M;e=(M=e.match(Y3q))==null?void 0:M[0];if(!l||!e)return null;var Z=LrS.get(l);M=LrS.get(e);if(Z===M){M=Array.from(LrS.values()).filter(function(d){return d!==Z}).join("|");
var u=new RegExp("^((?!("+M+")).)*"+Z+"$")}else u=new RegExp(Z+".*"+M);return(J=J.find(function(d){return u.test(d)}))&&_.Ud(this.emojiManager,J)||null};
_.X.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var l,e=this.ytEmojiSelectorBehavior.emojiUrl(((l=this.data.emoji)==null?void 0:l.emojiId)||"");_.ud(this.hostElement).querySelector('[selection="user"]').src.includes(e)||(this.isEmojiDraftInProgress=!0)}};
_.X.onDomChange=function(){G6q(this.ytEmojiSelectorBehavior)};
_.X.getFocusableElements=function(){return _.ud(this.hostElement).querySelectorAll("img").filter(function(l){return l.getAttribute("role")==="option"})};
_.X.changeFocus=function(l){var e=this.getFocusableElements();e!=null&&e.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+l+e.length)%e.length,this.ytEmojiSelectorBehavior.focusedIndex<e.length&&(l=e[this.ytEmojiSelectorBehavior.focusedIndex])&&l.focus())};
_.X.onKeyboardEnter=function(){var l=this.getFocusableElements();l!=null&&l.length&&(l=l[this.ytEmojiSelectorBehavior.focusedIndex])&&l instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(l),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Ji.Object.defineProperties(XN.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var l=this,e,O,E;return this.emojiManager&&((e=this.data)==null?0:(O=e.emoji)==null?0:(E=O.variantIds)==null?0:E.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.Ud(l.emojiManager,J)}).filter(function(J){return!!J}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var l,e=(l=this.userSelection)==null?void 0:l.left,O;l=(O=this.userSelection)==null?void 0:O.right;return e&&l?this.getEmojiFromPartialSelections(e,l):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.composedEmojiSelection)==null?0:l.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var e;l=(e=this.userSelection)==null?void 0:e.left;var O;e=(O=this.userSelection)==null?void 0:O.right;if(!l&&!e){var E;return this.ytEmojiSelectorBehavior.emojiUrl(((E=this.data.emoji)==null?void 0:E.emojiId)||"")}return l&&!e?l:!l&&e?e:""}}});
XN.prototype.onMultiSelectorThumbnailRowChanged=XN.prototype.onMultiSelectorThumbnailRowChanged;XN.prototype.onClick=XN.prototype.onClick;_.L([_.K(_.SZ),_.q("design:type",Object)],XN.prototype,"ironOverlayBehavior",void 0);_.L([_.K(Bhk),_.q("design:type",Object)],XN.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],XN.prototype,"data",void 0);_.L([_.T(),_.q("design:type",_.Pu)],XN.prototype,"emojiManager",void 0);
_.L([_.T(),_.q("design:type",Object)],XN.prototype,"userSelection",void 0);_.L([_.T(),_.q("design:type",Object)],XN.prototype,"scrollAction",void 0);_.L([_.T(),_.q("design:type",Object)],XN.prototype,"isEmojiDraftInProgress",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],XN.prototype,"emojiVariants",null);_.L([_.R("data","userSelection"),_.q("design:type",Object),_.q("design:paramtypes",[])],XN.prototype,"composedEmojiSelection",null);
_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],XN.prototype,"onClick",null);_.L([_.AA("data.emoji.multiSelectorThumbnailRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XN.prototype,"onMultiSelectorThumbnailRowChanged",null);_.L([_.R("data","userSelection","composedEmojiSelection"),_.q("design:type",String),_.q("design:paramtypes",[])],XN.prototype,"draftEmojiUrl",null);
_.L([_.Ps({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],XN);
_.Y(XN,"yt-emoji-multi-person-selector",function(){if(U1i===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;PAF===void 0&&(PAF=document.createElement("template"));var E=PAF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);U1i=l}l=U1i;return l},{mode:2});var tYC;var q36;var zE=function(){var l=_.B.apply(this,arguments)||this;l.tooltip_=null;return l};
_.m(zE,_.B);_.X=zE.prototype;_.X.dataChanged_=function(){var l;if((l=this.data)==null?0:l.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ud(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Ws)(this.tooltip_).textContent=this.data.tooltip};
_.X.computeTargetId=function(){var l;return((l=this.data)==null?void 0:l.targetId)||""};
_.X.computeId_=function(l){return l};
_.X.computeIcon_=function(l){return _.w6(l)};
_.X.onTap_=function(){this.active=!this.active;_.$u(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.X.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("active-changed",this.active))};
_.Ji.Object.defineProperties(zE.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var l,e;if((l=this.data)==null?0:(e=l.icon)==null?0:e.iconType)return this.data.icon.iconType==="SUPER_STICKER";var O,E;return((O=this.data)==null?void 0:(E=O.icon)==null?void 0:E.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
zE.prototype.activeChangedForBinding=zE.prototype.activeChangedForBinding;zE.prototype.dataChanged_=zE.prototype.dataChanged_;_.L([_.K(_.q5.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],zE.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zE.prototype,"data",void 0);_.L([_.T({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.q("design:type",String)],zE.prototype,"id",void 0);
_.L([_.T({computed:"computeTargetId(data.targetId)"}),_.q("design:type",String)],zE.prototype,"targetId",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],zE.prototype,"active",void 0);_.L([_.T({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.q("design:type",String)],zE.prototype,"icon",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zE.prototype,"dataChanged_",null);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],zE.prototype,"iconFilled",null);_.L([_.AA("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zE.prototype,"activeChangedForBinding",null);_.L([_.Ps({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],zE);
_.Y(zE,"yt-emoji-picker-category-button-renderer",function(){if(q36===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;tYC===void 0&&(tYC=document.createElement("template"));var E=tYC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);q36=l}l=q36;return l},{mode:2});var vKS;var NhS;var b8=function(){var l=_.B.apply(this,arguments)||this;l.ariaLabel=null;l.ariaActivedescendant=null;l.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};l.JSC$12098_ignoreNextFocus_=!1;l.longPressTimeoutId=-1;return l};
_.m(b8,_.B);_.X=b8.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.X.emojiChanged_=function(){this.changeFocus_(0,!1);for(var l=_.yN(),e=0;e<this.emoji.length;e++){var O={veType:88013,elementIndex:e},E=this.emoji[e];E.isCustomEmoji&&(E=document.querySelector(("#"+E.emojiId).replace("/","\\/")))&&(O=_.mX(l,O))&&(E.visualElement=O)}};
_.X.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.X.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.X.emojiSkinToneChanged_=function(l){this.skinTone=l};
_.X.dataChanged=function(){this.data&&this.data.emojiData&&Be1(this.emojiManager,this.data.emojiData)};
_.X.emojiUrl=function(l){l=this.getEmoji(l);if(!l)return"";var e;l=(e=l.image)==null?void 0:e.thumbnails;return _.up(l,24)||""};
_.X.emojiAlt=function(l){var e=this.get("image.accessibility.accessibilityData.label",l);return e?e:l.isCustomEmoji?l.shortcuts[0]:l.emojiId};
_.X.emojiAriaLabel=function(l){return l.shortcuts?l.shortcuts[0]:""};
_.X.emojiAriaSelected=function(l,e,O){return l&&O==e?"true":"false"};
_.X.getEmoji=function(l){if(this.emojiManager)return this.shouldUseStickyPreferences?UtF(this.emojiManager,l):Y8(this.emojiManager,l)};
_.X.computeId_=function(l){return l.categoryId||""};
_.X.computeEmoji=function(l){var e=this;return this.emojiManager?l.emojiIds?l.emojiIds.map(function(O){return O?_.Ud(e.emojiManager,O):null}).filter(yB8):l.emojiData?l.emojiData.map(function(O){var E=!!O.emojiId&&_.Ud(e.emojiManager,O.emojiId);
return E?Object.assign({},E,O):null}).filter(yB8):[]:[]};
_.X.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.X.computeAriaLabel_=function(l){return _.lG(l)};
_.X.computeAriaActivedescendant_=function(l,e){return l&&l[e]?l[e].emojiId||"":""};
_.X.handleLongPressEmojiWithVariants=function(l,e){this.changeFocusToEmoji(l.emojiId,!1);this.openVariantSelector(l,e)};
_.X.onMouseDown=function(l){var e=this;this.hostElement!==document.activeElement&&(this.JSC$12098_ignoreNextFocus_=!0);if(l.button===0){var O=_.OV(l);if(O instanceof HTMLImageElement){var E=_.ud(this.hostElement).querySelector("#repeat").itemForElement(O);this.emojiContainsVariants(E)&&(this.longPressTimeoutId=setTimeout(function(){e.handleLongPressEmojiWithVariants(E,O)},500))}}};
_.X.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.X.onFocus=function(){this.JSC$12098_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12098_ignoreNextFocus_=!1};
_.X.onBlur_=function(){this.showFocus=!1};
_.X.emojiContainsVariants=function(l){return!!(l&&l.variantIds&&l.variantIds.length)};
_.X.onClick=function(l){clearTimeout(this.longPressTimeoutId);l=_.OV(l);if(l instanceof HTMLImageElement){var e=l.id;this.changeFocusToEmoji(e,!1);var O=this.getEmoji(e),E;if(E=this.shouldUseStickyPreferences&&this.emojiContainsVariants(O)){var J;E=!((J=this.emojiManager.emojiMap[e])!=null&&J.stickyPrefId)}E?(J=_.ud(this.hostElement).querySelector("#repeat").itemForElement(l),this.openVariantSelector(J,l)):_.$u(this.hostElement,"yt-emoji-select",O)}};
_.X.isActiveEmojiWithVariants=function(l,e){return l&&e?e.stickyPrefId?l===e.stickyPrefId:l===e.emojiId:!1};
_.X.onCloseEmojiVariantSelector=function(l){this.activeEmojiWithVariantsId===l&&(this.activeEmojiWithVariantsId="")};
_.X.onMouseOver_=function(l){l=_.OV(l);l instanceof HTMLImageElement&&_.$u(this.hostElement,"yt-emoji-hover",_.Ud(this.emojiManager,l.id))};
_.X.changeFocus_=function(l,e){this.focusedIndex=(this.focusedIndex+l+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(l=this.emoji[this.focusedIndex],e&&(this.showFocus=!0,_.ud(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.$u(this.hostElement,"yt-emoji-hover",l)))};
_.X.changeFocusToEmoji=function(l,e){if(l){var O=this.emoji.findIndex(function(E){return E.emojiId===l});
O!==-1&&this.changeFocus_(O-this.focusedIndex,e)}};
_.X.onKeyDown_=function(l){switch(l.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var e=this.emoji[this.focusedIndex];if(e&&e.emojiId){if(this.emojiContainsVariants(e)){var O=_.ud(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(e,O)}else _.$u(this.hostElement,"yt-emoji-select",Y8(this.emojiManager,e.emojiId)),this.hostElement.focus();l.preventDefault()}}break;case 40:this.changeFocus_(1,!0);l.preventDefault();break;case 38:this.changeFocus_(-1,!0),
l.preventDefault()}};
_.X.onEmojiStickyPreferenceChanged=function(l,e){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&l.emojiId&&l.variantIds&&l.variantIds.includes(e)&&this.activeEmojiWithVariantsId!==e&&this.setStickyEmojiPreference(l.emojiId,e)};
_.X.openVariantSelector=function(l,e){this.activeEmojiWithVariantsId=l.stickyPrefId||l.emojiId||"";_.$u(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:l,target:e})};
_.X.setStickyEmojiPreference=function(l,e){if(this.data){var O=this.emoji.findIndex(function(J){return J.emojiId===l});
if(O!==-1){var E=this.emoji[O];E.stickyPrefId=e;this.set("emoji."+O,Object.assign({},E));this.activeEmojiWithVariantsId=e}}};
b8.prototype.onKeyDown_=b8.prototype.onKeyDown_;b8.prototype.onMouseOver_=b8.prototype.onMouseOver_;b8.prototype.onClick=b8.prototype.onClick;b8.prototype.onBlur_=b8.prototype.onBlur_;b8.prototype.onFocus=b8.prototype.onFocus;b8.prototype.onMouseUp=b8.prototype.onMouseUp;b8.prototype.onMouseDown=b8.prototype.onMouseDown;b8.prototype.dataChanged=b8.prototype.dataChanged;b8.prototype.disableIncrementalLoadingChanged_=b8.prototype.disableIncrementalLoadingChanged_;b8.prototype.emojiManagerChanged_=b8.prototype.emojiManagerChanged_;
b8.prototype.emojiChanged_=b8.prototype.emojiChanged_;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],b8.prototype,"data",void 0);_.L([_.T({computed:"computeId_(data)"}),_.q("design:type",String)],b8.prototype,"id",void 0);_.L([_.T({computed:"computeEmoji(data)"}),_.q("design:type",Array)],b8.prototype,"emoji",void 0);_.L([_.T(),_.q("design:type",Number)],b8.prototype,"skinTone",void 0);
_.L([_.T(),_.q("design:type",_.Pu)],b8.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",Boolean)],b8.prototype,"disableIncrementalLoading",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],b8.prototype,"focusedIndex",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],b8.prototype,"showFocus",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.q("design:type",Object)],b8.prototype,"ariaLabel",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.q("design:type",Object)],b8.prototype,"ariaActivedescendant",void 0);_.L([_.T({value:60}),_.q("design:type",Number)],b8.prototype,"domRepeatTargetFramerate",void 0);_.L([_.T({value:1}),_.q("design:type",Number)],b8.prototype,"domRepeatInitialCount",void 0);_.L([_.T({value:""}),_.q("design:type",String)],b8.prototype,"activeEmojiWithVariantsId",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],b8.prototype,"shouldUseStickyPreferences",void 0);_.L([_.AA("emoji"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"emojiChanged_",null);_.L([_.AA("emojiManager"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"emojiManagerChanged_",null);
_.L([_.AA("disableIncrementalLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"disableIncrementalLoadingChanged_",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"dataChanged",null);_.L([_.wP("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],b8.prototype,"onMouseDown",null);
_.L([_.wP("mouseup"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"onMouseUp",null);_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"onFocus",null);_.L([_.wP("blur"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],b8.prototype,"onBlur_",null);
_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],b8.prototype,"onClick",null);_.L([_.wP("mouseover"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],b8.prototype,"onMouseOver_",null);_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],b8.prototype,"onKeyDown_",null);
_.L([_.Ps({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],b8);
_.Y(b8,"yt-emoji-picker-category-renderer",function(){if(NhS===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;vKS===void 0&&(vKS=document.createElement("template"));var E=vKS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);NhS=l}l=NhS;return l},{mode:2});var ra0;var D1R;var S3S;var QZk;var MO=function(){var l=_.B.apply(this,arguments)||this;l.ariaLabel=null;l.ariaActivedescendant=null;l.getFormattedStringRawText=_.lG;l.JSC$12104_ignoreNextFocus_=!1;return l};
_.m(MO,_.B);_.X=MO.prototype;_.X.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")};
_.X.emojiUrl=function(l){var e,O;l=(e=Y8(this.emojiManager,l,!0))==null?void 0:(O=e.image)==null?void 0:O.thumbnails;return _.up(l,24)||""};
_.X.emojiAlt=function(l){var e=this.get("image.accessibility.accessibilityData.label",l);return e?e:l.isCustomEmoji?l.shortcuts[0]:l.emojiId};
_.X.emojiId=function(l){return"emoji"+l};
_.X.computeId_=function(l){return l.categoryId||""};
_.X.computeAriaActivedescendant_=function(l){return this.emoji&&l<this.emoji.length?this.emojiId(l):""};
_.X.emojiChanged_=function(){this.changeFocus_(0,!1);for(var l=_.yN(),e=0;e<this.emoji.length;e++){var O={veType:88013,elementIndex:e},E=this.emoji[e];E.isCustomEmoji&&(E=document.querySelector(("#"+E.emojiId).replace("/","\\/")))&&(O=_.mX(l,O))&&(E.visualElement=O)}};
_.X.computeEmoji_=function(l){var e=this;return this.emojiManager?l.emojiIds.map(function(O){return _.Ud(e.emojiManager,O,!0)}).filter(pHT):[]};
_.X.titleOffsetChanged_=function(){var l=this.hostElement.getBoundingClientRect(),e=_.ud(this.hostElement).querySelector("#title").getBoundingClientRect();l=Math.max(0,Math.min(this.titleOffset,l.height-e.height));_.ud(this.hostElement).querySelector("#title").style.top=l+"px"};
_.X.onEmojiMouseOver_=function(l){_.$u(this.hostElement,"yt-emoji-hover",l.model.item)};
_.X.onEmojiTap_=function(l){this.data.command&&(l=THW(_.V2().resolve(_.MG(rA)),this.data.command,l),_.$u(this.hostElement,"yt-navigate",l))};
_.X.emojiAriaLabel=function(l){return l.shortcuts[0]};
_.X.emojiAriaSelected=function(l,e,O){return l&&O==e?"true":"false"};
_.X.changeFocus_=function(l,e){var O=this.emoji.length;this.focusedIndex=(this.focusedIndex+l+O)%O;l=this.emoji[this.focusedIndex];if(e){var E;(E=_.ud(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||E.scrollIntoView(!1);_.$u(this.hostElement,"yt-emoji-hover",l)}};
_.X.onMouseDown_=function(){this.JSC$12104_ignoreNextFocus_=!0};
_.X.onFocus_=function(){this.JSC$12104_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12104_ignoreNextFocus_=!1};
_.X.onBlur_=function(){this.showFocus=!1};
_.X.onKeyDown_=function(l){switch(l.keyCode){case 13:this.onEmojiTap_(l);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);l.preventDefault();break;case 38:this.changeFocus_(-1,!0),l.preventDefault()}};
MO.prototype.onKeyDown_=MO.prototype.onKeyDown_;MO.prototype.onBlur_=MO.prototype.onBlur_;MO.prototype.onFocus_=MO.prototype.onFocus_;MO.prototype.onMouseDown_=MO.prototype.onMouseDown_;MO.prototype.onEmojiTap_=MO.prototype.onEmojiTap_;MO.prototype.titleOffsetChanged_=MO.prototype.titleOffsetChanged_;MO.prototype.emojiChanged_=MO.prototype.emojiChanged_;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],MO.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],MO.prototype,"data",void 0);_.L([_.T({computed:"computeId_(data)"}),_.q("design:type",String)],MO.prototype,"id",void 0);_.L([_.T({computed:"computeEmoji_(data)"}),_.q("design:type",Array)],MO.prototype,"emoji",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],MO.prototype,"titleOffset",void 0);_.L([_.T({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.q("design:type",Object)],MO.prototype,"ariaLabel",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.q("design:type",Object)],MO.prototype,"ariaActivedescendant",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],MO.prototype,"showFocus",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],MO.prototype,"focusedIndex",void 0);_.L([_.T(),_.q("design:type",_.Pu)],MO.prototype,"emojiManager",void 0);
_.L([_.AA("emoji"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MO.prototype,"emojiChanged_",null);_.L([_.AA("titleOffset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MO.prototype,"titleOffsetChanged_",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],MO.prototype,"onEmojiTap_",null);
_.L([_.wP("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MO.prototype,"onMouseDown_",null);_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MO.prototype,"onFocus_",null);_.L([_.wP("blur"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MO.prototype,"onBlur_",null);
_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],MO.prototype,"onKeyDown_",null);_.L([_.Ps({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],MO);
_.Y(MO,"yt-emoji-picker-upsell-category-renderer",function(){if(QZk===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;S3S===void 0&&(S3S=document.createElement("template"));var E=S3S;O.call(e,E.content.cloneNode(!0),l.content.firstChild);QZk=l}l=QZk;return l},{mode:2});var x10;var lfq;var VT=function(){var l=_.B.apply(this,arguments)||this;l.scrollAction="lock";l.verticalAlign="top";return l};
_.m(VT,_.B);_.X=VT.prototype;_.X.onClick=function(l){l=_.OV(l);l instanceof HTMLImageElement&&_.$u(this.hostElement,"yt-emoji-select",_.Ud(this.emojiManager,l.id))};
_.X.openSelector=function(){this.ironOverlayBehavior.open()};
_.X.onDomChange=function(){G6q(this.ytEmojiSelectorBehavior)};
_.X.computeIsFamilySelector=function(l){var e;return(l==null?void 0:(e=l.emoji)==null?void 0:e.emojiId)==="\ud83d\udc6a"};
_.X.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var l=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];l&&l.emojiId&&(_.$u(this.hostElement,"yt-emoji-select",_.Ud(this.emojiManager,l.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Ji.Object.defineProperties(VT.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var l=this,e,O,E;return this.emojiManager&&((e=this.data)==null?0:(O=e.emoji)==null?0:(E=O.variantIds)==null?0:E.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.Ud(l.emojiManager,J)}).filter(function(J){return!!J}):[]}}});
VT.prototype.onClick=VT.prototype.onClick;_.L([_.K(_.SZ),_.q("design:type",Object)],VT.prototype,"ironOverlayBehavior",void 0);_.L([_.K(Bhk),_.q("design:type",Object)],VT.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],VT.prototype,"data",void 0);_.L([_.T(),_.q("design:type",_.Pu)],VT.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",Object)],VT.prototype,"scrollAction",void 0);_.L([_.T(),_.q("design:type",Object)],VT.prototype,"verticalAlign",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.q("design:type",Boolean)],VT.prototype,"isFamilySelector",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],VT.prototype,"emojiVariants",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],VT.prototype,"onClick",null);_.L([_.Ps({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],VT);
_.Y(VT,"yt-emoji-variant-selector",function(){if(lfq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;x10===void 0&&(x10=document.createElement("template"));var E=x10;O.call(e,E.content.cloneNode(!0),l.content.firstChild);lfq=l}l=lfq;return l},{mode:2});var e6i=/:/g,O8F=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],ZT=function(){var l=_.B.apply(this,arguments)||this;l.emojiVariantSelector=null;l.emojiMultiPersonSelector=null;l.identity=_.Bx;l.lastAnimationTime_=0;l.animationStart_=null;l.animationEnd_=null;return l};
_.m(ZT,_.B);_.X=ZT.prototype;
_.X.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}}};
_.X.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.hb)};
_.X.attached=function(){_.gs&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&PnS(this.emojiManager)};
_.X.dataChanged=function(){var l;if((l=this.data)==null?0:l.categories){l=this.emojiManager;var e=this.getCustomEmojiIds();l.pickerCustomEmojiIds=[].concat(_.kA(f$1),_.kA(e))}};
_.X.getCustomEmojiIds=function(){var l,e=(l=this.data.categories)==null?void 0:l.find(function(z){var M;return((M=z.emojiPickerCategoryRenderer)==null?void 0:M.categoryId)&&O8F.includes(z.emojiPickerCategoryRenderer.categoryId)}),O;
l=(O=this.data.categories)==null?void 0:O.find(function(z){return z.emojiPickerUpsellCategoryRenderer});
var E,J;return[e==null?void 0:(E=e.emojiPickerCategoryRenderer)==null?void 0:E.emojiIds,l==null?void 0:(J=l.emojiPickerUpsellCategoryRenderer)==null?void 0:J.emojiIds].flat().filter(function(z){return!!z})};
_.X.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.X.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.X.updateCategoriesAndPlaceholderInternal=function(l,e){var O=this;l&&e&&(this.categories=l.categories||[],this.categoryButtons=l.categoryButtons||[],this.resetPlaceholder(),this.search="",_.N7(function(){O.updateButtons_()}))};
_.X.computeId_=function(l){return l.id||""};
_.X.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(l){return l.emojiPickerCategoryRenderer&&l.emojiPickerCategoryRenderer.emojiData}):!1};
_.X.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.X.onShowEmojiVariantSelector=function(l){var e=l.detail.emojiData;e.variantIds&&e.variantIds.length&&(e.multiSelectorThumbnailRow&&e.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:e,target:l.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:e,target:l.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.X.onIronOverlayClosed=function(l){var e=UtF(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");e&&l.composedPath&&(l.composedPath().includes(_.ud(this.hostElement).querySelector("#emoji-variant-selector"))||l.composedPath().includes(_.ud(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Wb(this.hostElement,"yt-close-emoji-variant-selector",[e.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.X.onEmojiVariantSelectorMouseup=function(l){var e=l.target.firstChild;this.variantSelectorOpened&&e&&_.N7(function(){e.noCancelOnOutsideClick=!1},100)};
_.X.onEmojiVariantSelectorMousedown=function(l){l=l.target.firstChild;this.variantSelectorOpened&&l&&(l.noCancelOnOutsideClick=!1)};
_.X.onSelectCategory_=function(l){var e=this.search!="";this.search="";for(var O=_.ud(this.hostElement).querySelector("#categories").children,E=0;E<O.length;E++){var J=O[E];if(J.id==l.detail.categoryId){e?(_.ud(this.hostElement).querySelector("#categories").scrollTop=J.offsetTop,this.updateButtons_()):(this.animationStart_=_.ud(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=J.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.X.onEmojiHover_=function(l){this.placeholder=l.detail.shortcuts?l.detail.shortcuts[0]:""};
_.X.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.X.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.X.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.X.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.X.computeSearchCategory_=function(l){l=l.replace(e6i,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();l=l.split(" ");for(var e=[],O=this.emojiManager.emojis,E=0;E<O.length;E++){var J=O[E];if(J.searchTerms)for(var z=0;z<J.searchTerms.length;z++){for(var M=J.searchTerms[z].toLocaleLowerCase(),Z=!1,u=0;u<l.length;u++)if(M.indexOf(l[u])!=-1){Z=!0;break}if(Z&&(!J.isCustomEmoji||!J.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(J.emojiId))){e.push(J.emojiId);
break}}}return{categoryId:-1,emojiIds:e}};
_.X.computeSearchEmptyMessage_=function(l,e){return l&&e&&e.emojiIds&&e.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.X.computeSearching_=function(l){return this.emojiManager&&l.replace(e6i,"").length>1};
_.X.computeSkinToneHidden=function(){var l;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((l=this.data)==null||!l.hideSkinTonePicker)};
_.X.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.X.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.X.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.X.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.X.selectSkinTone_=function(l){l=Number(l.target.getAttribute("tone"));this.set("emojiManager.skinTone",l);_.Wb(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[l]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.X.skinToneChanged_=function(){_.ud(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var l=_.ud(this.hostElement).querySelector("#dropdown-content").children,e=0;e<l.length;e++)e===this.skinTone?l[e].setAttribute("selected",""):l[e].removeAttribute("selected")};
_.X.animateScroll_=function(l){this.lastAnimationTime_||(this.lastAnimationTime_=l);l-=this.lastAnimationTime_;l<200?(_.ud(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*l/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ud(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.X.searchChanged_=function(){this.updateButtons_()};
_.X.updateButtons_=function(){var l=null;if(!this.search)for(var e=_.ud(this.hostElement).querySelector("#categories").scrollTop,O=_.ud(this.hostElement).querySelector("#categories").children,E=0;E<O.length;E++){var J=O[E];J.offsetTop<=e&&(l=J.id)}e=_.ud(this.hostElement).querySelector("#category-buttons").children;for(O=0;O<e.length;O++)E=e[O],E.active=E.id===l};
ZT.prototype.searchChanged_=ZT.prototype.searchChanged_;ZT.prototype.skinToneChanged_=ZT.prototype.skinToneChanged_;ZT.prototype.onEmojiHover_=ZT.prototype.onEmojiHover_;ZT.prototype.onSelectCategory_=ZT.prototype.onSelectCategory_;ZT.prototype.onShowEmojiVariantSelector=ZT.prototype.onShowEmojiVariantSelector;ZT.prototype.updateCategoriesAndPlaceholder_=ZT.prototype.updateCategoriesAndPlaceholder_;ZT.prototype.dataChanged=ZT.prototype.dataChanged;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ZT.prototype,"data",void 0);_.L([_.T({value:function(){return[]}}),
_.q("design:type",Array)],ZT.prototype,"categories",void 0);_.L([_.T({value:function(){return[]}}),
_.q("design:type",Array)],ZT.prototype,"categoryButtons",void 0);_.L([_.T({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZT.prototype,"disableScroll",void 0);_.L([_.T({computed:"computeId_(data)",reflectToAttribute:!0}),_.q("design:type",String)],ZT.prototype,"id",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],ZT.prototype,"selected",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],ZT.prototype,"disableIncrementalLoading",void 0);_.L([_.T(),_.q("design:type",String)],ZT.prototype,"placeholder",void 0);_.L([_.T({value:""}),_.q("design:type",String)],ZT.prototype,"search",void 0);_.L([_.T({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.q("design:type",Boolean)],ZT.prototype,"searching",void 0);_.L([_.T({computed:"computeSearchCategory_(search)"}),_.q("design:type",Object)],ZT.prototype,"searchCategory",void 0);
_.L([_.T({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.q("design:type",Object)],ZT.prototype,"searchEmptyMessage",void 0);_.L([_.T({computed:"identity(emojiManager.skinTone)"}),_.q("design:type",Number)],ZT.prototype,"skinTone",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],ZT.prototype,"skinToneOpened",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],ZT.prototype,"variantSelectorOpened",void 0);
_.L([_.T({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.q("design:type",Boolean)],ZT.prototype,"skinToneHidden",void 0);_.L([_.T(),_.q("design:type",_.Pu)],ZT.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",Object)],ZT.prototype,"emojiVariantSelector",void 0);_.L([_.T(),_.q("design:type",Object)],ZT.prototype,"emojiMultiPersonSelector",void 0);
_.L([_.T({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.q("design:type",Boolean)],ZT.prototype,"shouldUseStickyPreferences",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZT.prototype,"dataChanged",null);_.L([_.AA("data","selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZT.prototype,"updateCategoriesAndPlaceholder_",null);
_.L([_.wP("yt-show-emoji-variant-selector"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ZT.prototype,"onShowEmojiVariantSelector",null);_.L([_.wP("yt-emoji-picker-select-category"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ZT.prototype,"onSelectCategory_",null);_.L([_.wP("yt-emoji-hover"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ZT.prototype,"onEmojiHover_",null);
_.L([_.AA("skinTone"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZT.prototype,"skinToneChanged_",null);_.L([_.AA("search"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZT.prototype,"searchChanged_",null);_.L([_.Ps({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],ZT);
_.Y(ZT,"yt-emoji-picker-renderer",function(){if(D1R===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ra0===void 0&&(ra0=document.createElement("template"));var E=ra0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);D1R=l}l=D1R;return l},{mode:2});var u8=function(){var l=_.B.apply(this,arguments)||this;l.emojiManager=_.hb;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.selectedIndex=1;l.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return l};
_.m(u8,_.B);_.X=u8.prototype;_.X.handleEmojiCustomizationVisible=function(l){this.emojiPickerRenderer.selected=l;this.selectedIndex=1;l?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.X.emojiCustomizationSetChanged=function(){var l;(l=this.data)!=null&&l.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.bq(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.X.updateSaveButtonState=function(l){var e;(e=this.data)!=null&&e.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.IK("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:l}))};
_.X.emojiUrl=function(l){l=_.Ud(this.emojiManager,l);if(!l)return"";var e;l=(e=l.image)==null?void 0:e.thumbnails;return _.up(l,24)||""};
_.X.emojiAlt=function(l){var e=_.Ud(this.emojiManager,l);if(!e)return l;var O,E,J,z=(e==null?void 0:(O=e.image)==null?void 0:(E=O.accessibility)==null?void 0:(J=E.accessibilityData)==null?void 0:J.label)||"";return z?z:e.isCustomEmoji?e.shortcuts[0]:e.emojiId||l};
_.X.emojiAriaLabel=function(l){var e,O;return((e=_.Ud(this.emojiManager,l))==null?void 0:(O=e.shortcuts)==null?void 0:O[0])||l};
_.X.onEmojiClick=function(l){l.model.index!==0&&(this.selectedIndex=l.model.index)};
_.X.onEmojiSelect=function(l){l=l.detail;var e,O;((e=this.data)==null?0:e.emojiCustomizationSetEntityKey)&&((O=this.emojiCustomizationSet)==null?0:O.emojiId)&&l.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,l.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.IK("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,l.emojiId,this.selectedIndex)}))};
_.X.canEditEmoji=function(l,e,O){l=l.indexOf(e);return l===O||l===0||O===0?!1:!0};
_.X.getUpdatedEmojiIdList=function(l,e,O){var E=l.indexOf(e);l=[].concat(_.kA(l));E>=0&&(l[E]=l[O]);l[O]=e;return l};
_.Ji.Object.defineProperties(u8,{template:{configurable:!0,enumerable:!0,get:function(){if(nKi===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Aaq===void 0&&(Aaq=document.createElement("template"));var E=Aaq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);nKi=l}l=nKi;return l}}});
u8.prototype.onEmojiSelect=u8.prototype.onEmojiSelect;_.L([_.K(_.tw),_.q("design:type",Object)],u8.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],u8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.aB("yt-emoji-picker-renderer"),_.q("design:type",Object)],u8.prototype,"emojiPickerRenderer",void 0);
_.L([_.T({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(l,e){return _.wV(l.entities,"emojiCustomizationSetEntity",e)},
observer:"emojiCustomizationSetChanged"}),_.q("design:type",Object)],u8.prototype,"emojiCustomizationSet",void 0);_.L([_.T(),_.q("design:type",Object)],u8.prototype,"originalEmojiSet",void 0);_.L([_.T(),_.q("design:type",_.Pu)],u8.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",Object)],u8.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],u8.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],u8.prototype,"selectedIndex",void 0);
_.L([_.wP("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],u8.prototype,"onEmojiSelect",null);_.L([_.Ps({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],u8);var EOk;var J0q;var Xjq;var z6x;var Ce=function(){var l=_.B.apply(this,arguments)||this;l.authorBadges=[];return l};
_.m(Ce,_.B);_.X=Ce.prototype;_.X.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.X.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]]"}}}}}};
_.X.dataChanged=function(){var l=zEg(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",l)};
_.X.updateMessage=function(){var l=this.data.message,e=_.ud(_.ud(this.hostElement).querySelector("#message"));e.textContent="";l&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.X.shouldSupportWholeItemClick=function(){return!0};
_.X.onShowOriginalClick=function(l){l.preventDefault();this.showOriginal=!0};
_.X.computeShowBar=function(l,e,O){return l&&e||O};
_.X.computeAuthorBadges=function(l){return l.authorBadges||[]};
_.X.computeAuthorIsOwner=function(l){return!!bWx(l.authorBadges,"owner")};
_.X.computeAuthorNameColor=function(l){var e;if(_.a("live_chat_author_name_color_usernames")&&(l==null?0:(e=l.authorName)==null?0:e.simpleText))return _.oWV(_.$$V(l.authorName.simpleText));if(_.a("live_chat_seed_color_usernames")&&(l==null?0:l.authorSeedColorArgb))return _.oWV(_.g6(l.authorSeedColorArgb));if(_.a("live_chat_colored_usernames"))return"#cc0000";var O;return _.a("live_chat_simple_color_usernames")&&(l==null?0:(O=l.authorName)==null?0:O.simpleText)&&(l==null?0:l.authorUsernameColorLight)&&
(l==null?0:l.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.g6(l.authorUsernameColorDark):_.g6(l.authorUsernameColorLight):""};
Ce.prototype.updateMessage=Ce.prototype.updateMessage;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],Ce.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ce.prototype,"data",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"showOriginal",void 0);_.L([_.T({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"isDimmed",void 0);_.L([_.T({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"showBar",void 0);
_.L([_.T({computed:"computeAuthorBadges(data)"}),_.q("design:type",Array)],Ce.prototype,"authorBadges",void 0);_.L([_.T({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"authorIsOwner",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"inCollapsedBanner",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"inBanner",void 0);
_.L([_.T({value:_.a("live_chat_hide_avatars"),reflectToAttribute:!0}),_.q("design:type",Boolean)],Ce.prototype,"avatarHidden",void 0);_.L([_.T({computed:"computeAuthorNameColor(data)"}),_.q("design:type",String)],Ce.prototype,"authorNameColor",void 0);_.L([_.T(),_.q("design:type",_.Ne)],Ce.prototype,"participantsManager",void 0);_.L([_.T({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.q("design:type",Object)],Ce.prototype,"filledButtonOverrides",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ce.prototype,"dataChanged",null);_.L([_.AA("data.message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ce.prototype,"updateMessage",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Ce);
_.Y(Ce,"yt-live-chat-text-message-renderer",function(){if(z6x===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Xjq===void 0&&(Xjq=document.createElement("template"));var E=Xjq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);z6x=l}l=z6x;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var ok=function(){var l=_.B.apply(this,arguments)||this;l.tonalButtonOverrides={type:"tonal",style:"overlay"};return l};
_.m(ok,_.B);
ok.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]]"}}}}}};
ok.prototype.shouldSupportInlineActionButtons=function(){return!0};
ok.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Ji.Object.defineProperties(ok.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],ok.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ok.prototype,"data",void 0);_.L([_.T(),_.q("design:type",_.Ne)],ok.prototype,"participantsManager",void 0);
_.L([_.T(),_.q("design:type",Object)],ok.prototype,"tonalButtonOverrides",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.infoDialogButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],ok.prototype,"hasInfoDialogButton",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],ok);
_.Y(ok,"yt-live-chat-auto-mod-message-renderer",function(){if(J0q===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;EOk===void 0&&(EOk=document.createElement("template"));var E=EOk;O.call(e,E.content.cloneNode(!0),l.content.firstChild);J0q=l}l=J0q;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var b8S;var Mri;var Vr1;var Z8S=function(){return _.B.apply(this,arguments)||this};
_.m(Z8S,_.B);_.L([_.T(),_.q("design:type",Object)],Z8S.prototype,"data",void 0);_.L([_.U({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Z8S);
_.Y(Z8S,"ytd-factoid-renderer",function(){if(Vr1!==void 0)return Vr1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Vr1=l},{mode:1});var $l=function(){return _.B.apply(this,arguments)||this};
_.m($l,_.B);$l.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.L([_.T(),_.q("design:type",Object)],$l.prototype,"data",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],$l);
_.Y($l,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Mri===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;b8S===void 0&&(b8S=document.createElement("template"));var E=b8S;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Mri=l}l=Mri;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var u61;var CMq;var W8=function(){return _.B.apply(this,arguments)||this};
_.m(W8,_.B);W8.prototype.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Boolean)],W8.prototype,"menuFocused",void 0);_.L([_.T(),_.q("design:type",Object)],W8.prototype,"data",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],W8.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],W8);
_.Y(W8,"yt-live-chat-donation-announcement-renderer",function(){if(CMq===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;u61===void 0&&(u61=document.createElement("template"));var E=u61;O.call(e,E.content.cloneNode(!0),l.content.firstChild);CMq=l}l=CMq;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var oOq;var $wH,WJ1=function(){if($wH!==void 0)return $wH;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;oOq===void 0&&(oOq=document.createElement("template"));var E=oOq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return $wH=l};var du=function(){return _.B.apply(this,arguments)||this};
_.m(du,_.B);_.Ji.Object.defineProperties(du,{template:{configurable:!0,enumerable:!0,get:function(){return WJ1()}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],du.prototype,"data",void 0);_.L([_.Ps({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],du);_.Y(du,"yt-live-chat-empty-feed-view-model",function(){return WJ1()},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var dwR;var gOq;var gu=function(){return _.B.apply(this,arguments)||this};
_.m(gu,_.B);gu.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"}}}}}};
_.Ji.Object.defineProperties(gu.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var l,e;return{runs:[{text:(l=this.data)==null?void 0:(e=l.channelName)==null?void 0:e.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var l=[],e;if((e=this.data)==null||!e.channelBadges)return l;var O;e=_.b((O=this.data)==null?void 0:O.channelBadges);for(O=e.next();!O.done;O=e.next()){O=_.I(O.value,Wh6);var E=void 0,J=void 0;if((E=O)==null?0:(J=E.badgeImage)==null?0:J.sources)E=void 0,J={liveChatAuthorBadgeRenderer:{tooltip:O.tooltip,accessibility:{accessibilityData:{label:(E=_.I(O.rendererContext,_.yu))==null?void 0:E.label}}}},O.badgeImage.sources[0].clientResource?J.liveChatAuthorBadgeRenderer.icon=
{iconType:O.badgeImage.sources[0].clientResource.imageName}:J.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:O.badgeImage.sources},l.push(J)}return l}}});
_.L([_.T(),_.q("design:type",Object)],gu.prototype,"data",void 0);_.L([_.R("data.channelName"),_.q("design:type",Object),_.q("design:paramtypes",[])],gu.prototype,"channelName",null);_.L([_.R("data.channelBadges"),_.q("design:type",Array),_.q("design:paramtypes",[])],gu.prototype,"channelBadges",null);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],gu);
_.Y(gu,"yt-live-chat-identity-view-model",function(){if(gOq===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;dwR===void 0&&(dwR=document.createElement("template"));var E=dwR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);gOq=l}l=gOq;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var i80;var wjF;var A0H;var nOF;var i8=function(){var l=_.B.apply(this,arguments)||this;l.hidden=!1;l.supportsInlineActionButtons=!0;return l};
_.m(i8,_.B);i8.prototype.ready=function(){var l;((l=document.querySelector("yt-live-chat-app"))==null?0:l.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
i8.prototype.dataChanged=function(l){var e=(0,_.Ws)(_.ud(this.hostElement).querySelector("#detail-text"));e.textContent="";(l==null?0:l.detailText)&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l.detailText))};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],i8.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({observer:"dataChanged"}),_.q("design:type",Object)],i8.prototype,"data",void 0);
_.L([_.T({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.q("design:type",Object)],i8.prototype,"hidden",void 0);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],i8);
_.Y(i8,"yt-live-chat-legacy-paid-message-renderer",function(){if(nOF===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;A0H===void 0&&(A0H=document.createElement("template"));var E=A0H;O.call(e,E.content.cloneNode(!0),l.content.firstChild);nOF=l}l=nOF;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var afR;var ky0;var If0={},wu=function(){return _.IB.apply(this,arguments)||this};
_.m(wu,_.IB);wu.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
wu.prototype.onLiveChatMembershipItemBehaviorClick=wu.prototype.onLiveChatMembershipItemBehaviorClick;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wu.prototype,"data",void 0);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],wu.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.L([_.m0()],wu);
If0.YtLiveChatMembershipItemBehavior=[wu.prototype,_.x.YtRendererBehavior];var Ax=function(){var l=_.B.apply(this,arguments)||this;l.supportsInlineActionButtons=!0;l.hasPrimaryHeaderText=!1;l.showOnlyHeader=!1;l.authorBadges=[];l.modern=_.a("web_button_rework_with_live");l.buttonOverrides={style:"overlay",type:"filled"};return l};
_.m(Ax,_.B);_.X=Ax.prototype;_.X.shouldSupportInlineActionButtons=function(){return!0};
_.X.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.X.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.X.messageChanged=function(){var l=this.data.message,e=(0,_.Ws)(_.ud(this.hostElement).querySelector("#message"));e.textContent="";l&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.X.computeHasPrimaryHeaderText=function(l){return!(!l||!l.headerPrimaryText)};
_.X.computeShowOnlyHeader=function(l,e){return this.isMessageEmpty(l,e)};
_.X.computeAuthorBadges=function(l){return l.authorBadges||[]};
_.X.isMessageEmpty=function(l,e){return!l||l.empty?!0:!l.message&&!l.inputField&&!e};
_.X.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.X.getInputElement=function(){return _.ud(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.X.inputFocus=function(){var l=this.getInputElement();l&&l.focus()};
_.X.inputInsertEmoji=function(l){var e=this.getInputElement();e&&e.insertEmoji(l)};
_.X.inputMessage=function(){var l=this.getInputElement();return l&&this.data.inputField?(l.completeEmojis(),_.vF(l.liveChatRichMessageInput)):null};
_.X.onFooterButtonClick=function(){this.data.footerButton&&_.$u(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.X.shouldSupportWholeItemClick=function(){return!0};
Ax.prototype.isDeletedChanged=Ax.prototype.isDeletedChanged;Ax.prototype.messageChanged=Ax.prototype.messageChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],Ax.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(If0.YtLiveChatMembershipItemBehavior),_.q("design:type",Object)],Ax.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ax.prototype,"data",void 0);_.L([_.T({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.q("design:type",Object)],Ax.prototype,"hasPrimaryHeaderText",void 0);_.L([_.T({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.q("design:type",Object)],Ax.prototype,"showOnlyHeader",void 0);
_.L([_.T({computed:"computeAuthorBadges(data)"}),_.q("design:type",Array)],Ax.prototype,"authorBadges",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ax.prototype,"modern",void 0);_.L([_.AA("data.message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ax.prototype,"messageChanged",null);_.L([_.AA("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ax.prototype,"isDeletedChanged",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Ax);
_.Y(Ax,"yt-live-chat-membership-item-renderer",function(){if(ky0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;afR===void 0&&(afR=document.createElement("template"));var E=afR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);ky0=l}l=ky0;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var mw1;var y0k;var ne=function(){return _.B.apply(this,arguments)||this};
_.m(ne,_.B);ne.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ne.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],ne);
_.Y(ne,"yt-live-chat-mode-change-message-renderer",function(){if(y0k===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;mw1===void 0&&(mw1=document.createElement("template"));var E=mw1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);y0k=l}l=y0k;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var pj6;var KJq;var ak=function(){return _.B.apply(this,arguments)||this};
_.m(ak,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],ak.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ak.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],ak);
_.Y(ak,"yt-live-chat-moderation-message-renderer",function(){if(KJq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;pj6===void 0&&(pj6=document.createElement("template"));var E=pj6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);KJq=l}l=KJq;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var jOC;var H81;var kl=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_button_rework");return l};
_.m(kl,_.B);kl.prototype.onClick=function(){var l;if((l=this.data)!=null&&l.onClickCommand){var e;_.n4.instance.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kl.prototype,"modern",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],kl.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],kl.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],kl.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],kl);
_.Y(kl,"yt-live-chat-offer-click-count-message-renderer",function(){if(H81===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;jOC===void 0&&(jOC=document.createElement("template"));var E=jOC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);H81=l}l=H81;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var c0S;var FJx=function(){return _.B.apply(this,arguments)||this};
_.m(FJx,_.B);_.L([_.T(),_.q("design:type",Object)],FJx.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],FJx);
_.Y(FJx,"yt-live-chat-placeholder-item-renderer",function(){if(c0S===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);c0S=l}l=c0S;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var ff0;var R6q;var THS=new So(7),Ik=function(){var l=_.B.apply(this,arguments)||this;l.data={};return l};
_.m(Ik,_.B);Ik.prototype.dataChanged=function(){var l;((l=this.data)==null?0:l.class)&&_.oB(this.hostElement,this.data.class,!0);var e;((e=this.oldData)==null?0:e.class)&&_.oB(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Ik.prototype.computeTimestampString=function(l){return THS.format(new Date(l/1E3))};
Ik.prototype.dataChanged=Ik.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],Ik.prototype,"data",void 0);_.L([_.T({computed:"computeTimestampString(data.timestampUsec)"}),_.q("design:type",String)],Ik.prototype,"timestampString",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ik.prototype,"dataChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Ik);
_.Y(Ik,"yt-live-chat-server-error-message",function(){if(R6q===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;ff0===void 0&&(ff0=document.createElement("template"));var E=ff0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);R6q=l}l=R6q;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var sOF;var GyR;var mY=function(){var l=_.B.apply(this,arguments)||this;l.defaultToFilledIcon=!1;return l};
_.m(mY,_.B);mY.prototype.computeHasPrimaryColorIcon=function(l){return l==="SPARK"||l==="SPONSORSHIP_STAR"};
mY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],mY.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mY.prototype,"defaultToFilledIcon",void 0);_.L([_.T(),_.q("design:type",Object)],mY.prototype,"data",void 0);
_.L([_.T({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.q("design:type",Boolean)],mY.prototype,"hasPrimaryColorIcon",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],mY);
_.Y(mY,"yt-live-chat-viewer-engagement-message-renderer",function(){if(GyR===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;sOF===void 0&&(sOF=document.createElement("template"));var E=sOF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);GyR=l}l=GyR;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var BHk;var yT=function(){var l=_.B.apply(this,arguments)||this;l.modernUpdate=!1;l.buttonStyle="overlay";l.buttonType="filled";return l};
_.m(yT,_.B);yT.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
yT.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yT.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],yT.prototype,"modernUpdate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],yT.prototype,"buttonStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],yT.prototype,"buttonType",void 0);
_.L([_.U({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],yT);
_.Y(yT,"ytd-ad-hover-text-button-renderer",function(){if(BHk!==void 0)return BHk;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BHk=l},{mode:1});var PMH;var pe=function(){var l=_.B.apply(this,arguments)||this;l.buttonOverrides={size:"XS"};l.modern=_.a("web_button_rework");return l};
_.m(pe,_.B);pe.prototype.onHelpTap=function(l){this.data&&this.data.informationDialog&&(_.$u(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),l.preventDefault(),l.stopPropagation())};
_.L([_.T(),_.q("design:type",Object)],pe.prototype,"buttonOverrides",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pe.prototype,"modern",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pe.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],pe);
_.Y(pe,"ytd-live-chat-purchased-product-message-renderer",function(){if(PMH!==void 0)return PMH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return PMH=l},{mode:1});var UwS;var YZS;var Ke=function(){var l=_.B.apply(this,arguments)||this;l.isContainerDeleted=!1;return l};
_.m(Ke,_.B);Ke.prototype.onContextMenuClick=function(l){this.ytLiveChatItemBehavior.showContextMenu(l)};
Ke.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))};
Ke.prototype.isContainerDeletedChanged=Ke.prototype.isContainerDeletedChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],Ke.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ke.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Ke.prototype,"isContainerDeleted",void 0);
_.L([_.T(),_.q("design:type",String)],Ke.prototype,"deletedStateMessage",void 0);_.L([_.AA("isContainerDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ke.prototype,"isContainerDeletedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Ke);
_.Y(Ke,"ytd-sponsorships-live-chat-header-renderer",function(){if(YZS!==void 0)return YZS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YZS=l},{mode:1});var jk=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_button_rework_with_live");l.buttonOverrides={style:"overlay",type:"filled"};return l};
_.m(jk,_.B);jk.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]]"}}}}}};
jk.prototype.onCtaButtonClick=function(){var l,e=_.I((l=this.data)==null?void 0:l.optInPrompt,_.YU);if(l=this.maybeGetButtonCommand(e)){var O;(O=_.yN())==null||O.clickCommand(l)}};
jk.prototype.maybeGetButtonCommand=function(l){return!l||!l.command||_.I(l.command,tZF)===void 0&&_.I(l.command,Lo1)===void 0?null:l.command};
jk.prototype.shouldHideOptinPrompt=function(l,e){return!l||e};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],jk.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jk.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jk.prototype,"modern",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],jk);
_.Y(jk,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(UwS!==void 0)return UwS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return UwS=l},{mode:1});var h6q;var H8=function(){return _.B.apply(this,arguments)||this};
_.m(H8,_.B);H8.prototype.onContextMenuClick=function(l){this.ytLiveChatItemBehavior.showContextMenu(l)};
H8.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))};
H8.prototype.isDeletedChanged=H8.prototype.isDeletedChanged;_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],H8.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],H8.prototype,"data",void 0);_.L([_.AA("isDeleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H8.prototype,"isDeletedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],H8);
_.Y(H8,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(h6q!==void 0)return h6q;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return h6q=l},{mode:1});var c8=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return l};
_.m(c8,_.B);_.X=c8.prototype;
_.X.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"}}}};
_.X.handleLiveChatAction=function(l){_.I(l,zG6)?this.handleMarkChatItemAsDeletedAction(_.I(l,zG6)):_.I(l,XoS)&&this.handleRemoveChatItemAction(_.I(l,XoS))};
_.X.handleLiveChatActions=function(l){l.forEach(this.handleLiveChatAction,this)};
_.X.handleMarkChatItemAsDeletedAction=function(l){var e=this,O;((O=this.data)==null?0:O.items)&&this.data.items.forEach(function(E,J){var z=Object.keys(E)[0];Object.values(E)[0].id===l.targetItemId&&e.markAsDeleted("data.items",J,z,l.deletedStateMessage,l.showOriginalContentMessage)})};
_.X.handleRemoveChatItemAction=function(l){var e=this,O;((O=this.data)==null?0:O.items)&&this.data.items.forEach(function(E,J){Object.values(E)[0].id===l.targetItemId&&e.splice("data.items",J,1)})};
_.X.markAsDeleted=function(l,e,O,E,J){l=[l,e,O].join(".");this.set(l+".deletedStateMessage",E);this.set(l+".showOriginalContentMessage",J)};
_.L([_.T(),_.q("design:type",Object)],c8.prototype,"data",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],c8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],c8);
_.Y(c8,"yt-live-chat-item-display-list-renderer",function(){if(wjF===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;i80===void 0&&(i80=document.createElement("template"));var E=i80;O.call(e,E.content.cloneNode(!0),l.content.firstChild);wjF=l}l=wjF;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var LJF;var trq,qZR=function(){if(trq!==void 0)return trq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;LJF===void 0&&(LJF=document.createElement("template"));var E=LJF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return trq=l};var FN=function(){var l=_.B.apply(this,arguments)||this;l.isHeader=!1;return l};
_.m(FN,_.B);FN.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Ji.Object.defineProperties(FN,{template:{configurable:!0,enumerable:!0,get:function(){return qZR()}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FN.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],FN.prototype,"isHeader",void 0);_.L([_.Ps({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],FN);_.Y(FN,"yt-live-chat-item-display-renderer",function(){return qZR()},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var vOq,NHq,xwq,QOq;
vOq={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}};NHq={home:"eohps",search:"eosps",watch:"eowps"};_.r0q=["watch","search","home"];
_.fe=function(){this.JSC$12215_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12215_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.hT("PRECONSTRUCTION_DELAY",0);this.signals_=_.h7();this.targetPage_=""};
_.fe.prototype.init=function(l,e){l=l===void 0?"":l;e=e===void 0?null:e;if(this.JSC$12215_isInitialized_)this.abort();else if(this.JSC$12215_isInitialized_=!0,l&&_.Dw0(this,l),e){var O=_.L6(this.signals_,"pcl")?0:10,E=function(){for(var J=0,z;z=_.r0q[J++];)z!=l&&z!=e&&this.pendingPages_.push(z);_.SZx(this)}.bind(this);
this.signals_.parkOrScheduleJob(E,O,"pcl")}};
_.fe.prototype.abort=function(){this.fragmentJobId_&&(_.UD.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);QOq(this)};
_.Dw0=function(l,e){l.JSC$12215_isInitialized_&&!l.targetPage_&&(l.targetPage_=e,xwq(l,e),l.isInitialPass_=!1,xwq(l,e),l.signals_.processSignal(NHq[l.targetPage_]),QOq(l),_.SZx(l))};
_.SZx=function(l){l.pendingPages_.length&&!l.pagePreparerJobId_&&(l.pagePreparerJobId_=_.fZ(_.UD,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Dw0(this,this.pendingPages_.shift())}.bind(l),l.DEFAULT_DELAY_))};
xwq=function(l,e){if(e=vOq[e])for(var O in e){var E=!1,J=O;O.charAt(0)=="~"&&(E=!0,J=O.substring(1));var z=e[O];z=typeof z=="object"?z:{count:z};e[O]=z;z.componentName=J;z.count>0&&(l.isInitialPass_?E||l.isSeenDuringInitialPass_[J]||(l.JSC$12215_queue_.push({componentName:J,count:1,signals:z.signals}),l.isSeenDuringInitialPass_[J]=!0,z.count--):l.JSC$12215_queue_.push(z))}};
QOq=function(l){l.JSC$12215_queue_.length=0;l.targetPage_="";l.isInitialPass_=!0;l.signals_.processSignal("eop")};
_.fe.getInstance=function(){return _.$x(_.fe)};var l_6=function(){this.signals=_.h7();this.init()};
l_6.prototype.startPreconstruction=function(){_.fe.getInstance().init(_.LH("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
l_6.prototype.init=function(){ekR(this);window.Polymer&&pkk&&x5T();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var l=_.Op.ytcsi;if(l&&l.gt&&(l=l.gt())&&l.tick&&(l.tick.aft>0||l.tick.pbs>0)&&(_.LH("IS_HOMEPAGE_COLD")||_.LH("IS_RESULTS_PAGE_COLD")||_.LH("IS_WATCH_PAGE_COLD"))){Omq(this);break a}CHu(S78,this.onNotifications,this)}};
var ekR=function(l){var e=function(){l.signals.processSignal("dl")};
document.readyState==="complete"?(_.Nz(Error("th"),"WARNING"),e()):_.Ymd(window,"load",e)};
l_6.prototype.onNotifications=function(l){l.timer||(_.LH("IS_HOMEPAGE_COLD")||_.LH("IS_RESULTS_PAGE_COLD")||_.LH("IS_WATCH_PAGE_COLD"))&&Omq(this)};
var Omq=function(l){l.signals.parkOrScheduleJob(function(){l.signals.processSignal("eocs")},10,"eor")};
new l_6;var Rk,EaR=function(){return _.IB.apply(this,arguments)||this};
_.m(EaR,_.IB);_.X=EaR.prototype;_.X.enableActiveViewMeasurement=function(l){if(this.isActiveViewEnabled(l)){var e=this.getUrlPrefixesFromCommand(l.viewableCommands);l=this.getUrlPrefixesFromCommand(l.endOfSessionCommands);if(!Rk){var O=_.Cv("custom_active_view_tos_timeout_ms");Rk=O>0&&O!==36E5?new pAL(this.getVersion(),O):new pAL(this.getVersion())}jRx(Rk,this.hostElement);HyM(Rk,this.hostElement,e,l)}};
_.X.stopActiveViewMeasurement=function(){Rk&&jRx(Rk,this.hostElement)};
_.X.isActiveViewEnabled=function(l){return!!l&&(this.hasAtLeastOneUrl(l.viewableCommands)||this.hasAtLeastOneUrl(l.endOfSessionCommands))};
_.X.hasAtLeastOneUrl=function(l){return!!l&&l.length>0&&l[0].loggingUrls!=null&&l[0].loggingUrls.length>0};
_.X.getVersion=function(){var l=_.hT("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(l==null?void 0:l.length)===2?l[1]:null};
_.X.getUrlPrefixesFromCommand=function(l){if(!l)return[];var e=[];l=_.b(l);for(var O=l.next();!O.done;O=l.next())if(O=O.value,O.loggingUrls){O=_.b(O.loggingUrls);for(var E=O.next();!E.done;E=O.next())E=E.value,E.baseUrl&&e.push(E.baseUrl)}return e};
_.L([_.m0()],EaR);var TE=[EaR.prototype];var JBR=function(){return _.IB.apply(this,arguments)||this};
_.m(JBR,_.IB);_.Ji.Object.defineProperties(JBR.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.a("enable_entity_store_from_dependency_injection")?_.ls():_.Om()}}});
_.L([_.m0()],JBR);_.sY=[sg.prototype,JBR.prototype];var XHx=["ytd-rich-shelf-renderer"],GE=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;l.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";l.followUpDialogPromise=null;l.followUpDialogPromiseResolve=null;l.followUpDialogPromiseReject=null;return l};
_.m(GE,_.IB);_.X=GE.prototype;_.X.dismissibleItemIsDismissedChanged_=function(l){_.a("kevlar_fluid_dismiss")&&(l?_.$u(this.hostElement,"yt-dismissible-item-dismissed"):_.$u(this.hostElement,"yt-dismissible-item-undismissed"))};
_.X.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.X.dismissibleItemReset_=function(){var l=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 _.kE(function(e,O){l.followUpDialogPromiseResolve=e;l.followUpDialogPromiseReject=O});
_.$u(this.hostElement,"yt-enable-lockup-interaction")};
_.X.dismissibleItemOnYtServiceRequestSent_=function(l,e){e.actions&&this.dismissibleItemProcessActions(e.actions,l)};
_.X.dismissibleItemOnRequestSent=function(l){if(_.a("web_button_rework"))for(var e=_.b(l.detail),O=e.next();!O.done;O=e.next()){var E=void 0;(O=(E=_.I(O.value,_.ku))==null?void 0:E.actions)&&this.dismissibleItemProcessActions(O,l)}};
_.X.dismissibleItemOnCommandSent=function(l,e){e&&this.dismissibleItemProcessActions(e,l)};
_.X.setAndGetDismissedContentId=function(l){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+l};
_.X.replayDismissAction=function(l){this.dismissibleItemProcessActions([l])};
_.X.dismissibleItemProcessActions=function(l,e){for(var O=0;O<l.length;O++){var E=l[O],J=void 0;((J=_.I(E,_.nz))==null?0:J.commands)&&this.dismissibleItemProcessActions(_.I(E,_.nz).commands,e);if(_.I(E,_.Kp)){if(J=_.I(E,_.Kp),!J.replaceParentSection||XHx.includes(this.hostElement.nodeName.toLowerCase()))_.a("web_see_fewer_shorts_reactive_dismissal")&&J.groupDismissal&&K$8(this,J.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(J),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.IK("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:E})),E=void 0,(E=e)==null||E.stopPropagation()}else if(_.I(E,dJ0))this.dismissibleItemHandleHideEnclosingAction_(),E=void 0,(E=e)==null||E.stopPropagation();else if(_.I(E,Ky1))_.a("web_see_fewer_shorts_reactive_dismissal")&&(E=_.I(E,Ky1),J=void 0,((J=E)==null?0:J.targetGroupId)&&K$8(this,{targetGroupId:E.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.IK("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),E=void 0,(E=e)==null||E.stopPropagation();else if(_.I(E,_.ku))(E=_.I(E,_.ku).actions)&&_.wQ(this.hostElement,E,this.hostElement),E=void 0,(E=e)==null||E.stopPropagation();else{var z=J=void 0;((J=_.I(E,_.Nr))==null?void 0:J.signal)!=="TELL_US_WHY"||((z=_.I(E,_.Nr))==null?0:z.targetId)&&_.a("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),E=void 0,(E=e)==null||E.stopPropagation())}}};
_.X.dismissibleItemOnYtServiceRequestCompleted_=function(l,e){var O=this.get("feedbackResponses.0.followUpDialog",e.data);O?this.followUpDialogPromiseResolve(O):e.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(e.actions,l)};
_.X.dismissibleItemHandleReplaceEnclosingAction_=function(l){this.dismissedRenderer=l.item;this.isDismissed=!0;var e=null;(e=_.ud(this.hostElement).querySelector("#dismissed"))&&_.OK(this,function(){_.EW(e)});
_.$u(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.X.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.X.dismissibleItemHandleUndoFeedbackAction_=function(){_.$u(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.X.dismissibleItemHandleTellUsWhySignalAction_=function(){var l=this;this.followUpDialogPromise.then(function(e){l.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:e}})})};
GE.prototype.dismissibleItemOnYtServiceRequestCompleted_=GE.prototype.dismissibleItemOnYtServiceRequestCompleted_;GE.prototype.dismissibleItemOnCommandSent=GE.prototype.dismissibleItemOnCommandSent;GE.prototype.dismissibleItemOnRequestSent=GE.prototype.dismissibleItemOnRequestSent;GE.prototype.dismissibleItemOnYtServiceRequestSent_=GE.prototype.dismissibleItemOnYtServiceRequestSent_;GE.prototype.dismissibleItemDataChanged_=GE.prototype.dismissibleItemDataChanged_;
GE.prototype.dismissibleItemIsDismissedChanged_=GE.prototype.dismissibleItemIsDismissedChanged_;_.L([_.K(_.x8),_.q("design:type",Object)],GE.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],GE.prototype,"ytdReduxBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GE.prototype,"isDismissed",void 0);_.L([_.T(),_.q("design:type",Object)],GE.prototype,"dismissedRenderer",void 0);
_.L([_.AA("isDismissed"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean]),_.q("design:returntype")],GE.prototype,"dismissibleItemIsDismissedChanged_",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GE.prototype,"dismissibleItemDataChanged_",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],GE.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.L([_.wP("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],GE.prototype,"dismissibleItemOnRequestSent",null);
_.L([_.wP("yt-dismissible-item-action"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Array]),_.q("design:returntype")],GE.prototype,"dismissibleItemOnCommandSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],GE.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.L([_.m0()],GE);_.B8=[_.x8,_.sY,GE.prototype];var P8=function(){var l=_.IB.apply(this,arguments)||this;l.disableGridStateAware=!1;l.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};l.currentGridClass="";return l};
_.m(P8,_.IB);P8.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.OK(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var l=this.gridStateAwareGetElement();_.oB(l,"grid",!0)}};
P8.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
P8.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ud(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
P8.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var l="grid-disabled";else{l=_.rLx.getInstance();var e=this.get("pageSubtype");l=e&&qwR.includes(e)?"grid-disabled":l.currentSnapState_?l.currentSnapState_.className:null}(e=this.gridStateAwareGetElement())&&l!==this.currentGridClass&&(l&&_.oB(e,l,!0),this.currentGridClass&&_.oB(e,this.currentGridClass,!1),this.currentGridClass=l)};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",String)],P8.prototype,"gridStateAwareSizingElementSelector",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],P8.prototype,"disableGridStateAware",void 0);_.L([_.m0()],P8);_.UY=[P8.prototype,_.ZH.YtActionHandlerBehavior];_.Yl=new _.Xa("GUIDE_TOKEN");var Le;_.hx={};Le=function(){var l=_.IB.apply(this,arguments)||this;l.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 l};
_.m(Le,_.IB);_.X=Le.prototype;_.X.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.X.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var l=_.V2().resolve(_.MG(_.Yl));l&&(this.guidePersistentAndVisible=l.getGuidePersistentAndVisible(),this.activeEndpoint=l.getActiveEndpoint(),this.guideOpened=l.getGuideOpened(),this.miniGuideVisible=l.getMiniGuideVisible())};
_.X.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.X.handleGuideStateAction=function(l){this.guidePersistentAndVisible=l};
_.X.handleMiniGuideStateAction=function(l){this.miniGuideVisible=l};
_.X.handleGuideOpenedAction=function(l){this.guideOpened=l};
_.X.handleActiveEndpointAction=function(l){this.activeEndpoint=l};
Le.prototype.onActiveEndpointChange=Le.prototype.onActiveEndpointChange;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Le.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Le.prototype,"guidePersistentAndVisible",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Le.prototype,"miniGuideVisible",void 0);_.L([_.T(),_.q("design:type",Object)],Le.prototype,"activeEndpoint",void 0);
_.L([_.AA("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Le.prototype,"onActiveEndpointChange",null);_.L([_.T(),_.q("design:type",Boolean)],Le.prototype,"guideOpened",void 0);_.L([_.m0()],Le);_.hx.YtdGuideStateAwareBehavior=[];_.hx.YtdGuideStateAwareBehavior.push(Le.prototype,_.ZH.YtActionHandlerBehavior);var zk0=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],tx=function(){var l=_.IB.apply(this,arguments)||this;l.hoverJobId=0;l.JSC$12246_touched=!1;return l};
_.m(tx,_.IB);_.X=tx.prototype;_.X.created=function(){this.useExpandableTooltip=!zk0.includes(this.is)};
_.X.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.X.detached=function(){this.useExpandableTooltip=!1};
_.X.lockupOnDown=function(l){this.interactionElement&&!_.Eh(_.ey(l),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.X.lockupOnUp=function(l){this.interactionElement&&!_.Eh(_.ey(l),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.X.onTouchStart=function(){this.JSC$12246_touched=!0};
_.X.lockupOnMouseEnter=function(){var l=this,e=_.Cv("kevlar_lockup_hover_delay",-1);this.JSC$12246_touched&&e>=0?(_.UD.cancelJob(this.hoverJobId),this.hoverJobId=_.UD.addJob(function(){l.lockupIsHovered=!0},8,e),this.JSC$12246_touched=!1):this.lockupIsHovered=!0};
_.X.lockupOnMouseLeave=function(){this.hoverJobId&&(_.UD.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.X.lockupOnPopupClosed=function(l,e){var O;((O=e.popupRenderer)==null?void 0:O.is)==="ytd-menu-popup-renderer"&&(l=e.popupRenderer.veData,e=_.P9(),l&&e&&_.lH(e,[l]))};
_.X.lockupOnLockupRequested=function(l){var e=l.detail.videoIds[0],O;l.detail&&e===((O=this.data)==null?void 0:O.videoId)&&(l.detail.returnValue=[this.data])};
_.X.lockupOnYtServiceRequestSent=function(l,e){if(l=e.actions)for(var O=0;O<l.length;O++){var E=l[O];if(E.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&e.ajaxPromise){var J=void 0,z=(J=_.I(e.endpoint,_.BC))==null?void 0:J.playlistId;J=void 0;E=(J=E.removedVideoId)!=null?J:"";gG1(_.qg(),E,z)}else E.action==="ACTION_REMOVE_VIDEO"&&e.ajaxPromise&&(z=void 0,E=(z=E.setVideoId)!=null?z:"",_.iC1(_.qg(),E))}};
_.X.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.X.lockupOnLockupEnabled=function(){if(!this.$){var l=_.V2().resolve(_.XZ).getCurrentPage(),e=this.getParentRenderer?this.getParentRenderer():void 0;_.hG(new _.Hk("component not ready",this.is,this.isAttached,l==null?void 0:l.is,e==null?void 0:e.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
tx.prototype.lockupOnLockupEnabled=tx.prototype.lockupOnLockupEnabled;tx.prototype.lockupOnLockupDisabled=tx.prototype.lockupOnLockupDisabled;tx.prototype.lockupOnYtServiceRequestSent=tx.prototype.lockupOnYtServiceRequestSent;tx.prototype.lockupOnLockupRequested=tx.prototype.lockupOnLockupRequested;tx.prototype.lockupOnPopupClosed=tx.prototype.lockupOnPopupClosed;tx.prototype.lockupOnMouseLeave=tx.prototype.lockupOnMouseLeave;tx.prototype.lockupOnMouseEnter=tx.prototype.lockupOnMouseEnter;
tx.prototype.onTouchStart=tx.prototype.onTouchStart;tx.prototype.lockupOnUp=tx.prototype.lockupOnUp;tx.prototype.lockupOnDown=tx.prototype.lockupOnDown;_.L([_.T(),_.q("design:type",Object)],tx.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],tx.prototype,"lockupIsHovered",void 0);_.L([_.T(),_.q("design:type",Boolean)],tx.prototype,"lockupTouchTriggered",void 0);_.L([_.T(),_.q("design:type",Boolean)],tx.prototype,"useExpandableTooltip",void 0);
_.L([_.aB("#interaction"),_.q("design:type",Object)],tx.prototype,"interactionElement",void 0);_.L([_.wP("down"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],tx.prototype,"lockupOnDown",null);_.L([_.wP("up"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],tx.prototype,"lockupOnUp",null);
_.L([_.wP("touchstart"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tx.prototype,"onTouchStart",null);_.L([_.wP("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tx.prototype,"lockupOnMouseEnter",null);_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tx.prototype,"lockupOnMouseLeave",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],tx.prototype,"lockupOnPopupClosed",null);_.L([_.wP("yt-lockup-requested"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],tx.prototype,"lockupOnLockupRequested",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],tx.prototype,"lockupOnYtServiceRequestSent",null);_.L([_.wP("yt-disable-lockup-interaction"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tx.prototype,"lockupOnLockupDisabled",null);
_.L([_.wP("yt-enable-lockup-interaction"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tx.prototype,"lockupOnLockupEnabled",null);_.L([_.m0()],tx);_.qO=[tx.prototype];_.bmk={YtdReduxBehavior:[]};_.bmk.YtdReduxBehavior.push.apply(_.bmk.YtdReduxBehavior,_.sY);var v8=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;l.disableNowPlaying=!1;l.disableTooltips=!1;l.useHoveredProperty=!1;l.hovered=!1;l.isThumbnailHovered_=!1;l.addBackground=_.a("kevlar_thumbnail_bg");l.nowPlaying=!1;l.disableRounding=!1;l.size="small";return l};
_.m(v8,_.IB);_.X=v8.prototype;_.X.computeThumbnailOverlaySidePanelWidth_=function(l,e){return l-e};
_.X.computeSize=function(l,e){if(!this.disableRounding){if(!l&&!e)return"small";l=Math.max(l||0,e||0);return l>=256?"large":l>=96?"medium":"small"}};
_.X.computeFinalHoveredState_=function(l,e,O){return this.nowPlaying?!1:_.a("kevlar_thumbnail_fluid")&&l?e:O};
_.X.computeHoverOverlays_=function(l,e){return l&&e?e:void 0};
_.X.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.X.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.X.checkMiniplayer_=function(){var l;if(((l=this.data)==null?0:l.playlistSetVideoId)&&_.a("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{l=_.n6();var e=l.currentEndpoint;!this.disableNowPlaying&&e&&_.I(e,_.ej)&&this.data?(e=_.I(e,_.ej),this.nowPlaying=this.data.playlistId?e.playlistId===this.data.playlistId:e.videoId===this.data.videoId,this.isVideoPlaying=l==null?void 0:l.isVideoPlaying):this.nowPlaying=!1}};
v8.prototype.checkMiniplayer_=v8.prototype.checkMiniplayer_;v8.prototype.onMouseLeave_=v8.prototype.onMouseLeave_;v8.prototype.onMouseEnter_=v8.prototype.onMouseEnter_;v8.prototype.computeHoverOverlays_=v8.prototype.computeHoverOverlays_;v8.prototype.computeFinalHoveredState_=v8.prototype.computeFinalHoveredState_;v8.prototype.computeSize=v8.prototype.computeSize;v8.prototype.computeThumbnailOverlaySidePanelWidth_=v8.prototype.computeThumbnailOverlaySidePanelWidth_;
_.L([_.K(_.sY),_.q("design:type",Object)],v8.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],v8.prototype,"height",void 0);_.L([_.T(),_.q("design:type",Boolean)],v8.prototype,"bottomSidePanel",void 0);_.L([_.T(),_.q("design:type",Number)],v8.prototype,"width",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"disableNowPlaying",void 0);
_.L([_.T({selector:_.Pt}),_.q("design:type",Boolean)],v8.prototype,"miniplayerIsActive",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"disableTooltips",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"useHoveredProperty",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"hovered",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"isThumbnailHovered_",void 0);
_.L([_.T({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.q("design:type",Boolean)],v8.prototype,"finalHoveredState_",void 0);_.L([_.T({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.q("design:type",Number)],v8.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v8.prototype,"addBackground",void 0);
_.L([_.T({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.q("design:type",Object)],v8.prototype,"hoverOverlays_",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v8.prototype,"nowPlaying",void 0);_.L([_.T(),_.q("design:type",Boolean)],v8.prototype,"isVideoPlaying",void 0);_.L([_.T(),_.q("design:type",Object)],v8.prototype,"disableRounding",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.q("design:type",Object)],v8.prototype,"size",void 0);_.L([_.wP("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v8.prototype,"onMouseEnter_",null);_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v8.prototype,"onMouseLeave_",null);
_.L([_.AA("data","disableNowPlaying","miniplayerIsActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v8.prototype,"checkMiniplayer_",null);_.L([_.m0()],v8);var MEx=[v8.prototype];_.NO={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(l,e){return l+":"+_.Ox(e)},
getPlayerListener_:function(l,e,O){l=this.getPlayerListenerKey_(l,e);e=this.playerListeners_.get(l);O&&this.playerListeners_.delete(l);return e},
savePlayerListener_:function(l,e){var O=e.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(l,e),O);return O},
listenToPlayerEvent:function(l,e,O){O=this.savePlayerListener_(e,O);l.addEventListener(e,O)},
listenToPlayerEvents:function(l,e){e.forEach(function(O,E){this.listenToPlayerEvent(l,E,O)}.bind(this))},
unlistenFromPlayerEvent:function(l,e,O){O=this.getPlayerListener_(e,O,!0);l.removeEventListener(e,O)},
unlistenFromPlayerEvents:function(l,e){e.forEach(function(O,E){this.unlistenFromPlayerEvent(l,E,O)}.bind(this))}}};
_.ru=function(){};_.VEq=new _.Xa("PLAYER_API_TOKEN");var Rkx=!1,BxM,sPV=!1,U0x;var ZP=function(l,e,O,E,J){_.y6.call(this);var z=this;this.playerId=e;this.webPlayerContextConfig=E;this.mi8=J;this.uA1=!1;this.api={};this.pnY=this.sCB=null;this.tO5=new _.k6;this.oF={};this.nzO=this.kJY=this.elementId=this.tbB=this.config=null;this.q35=!1;this.jh=this.gEW=null;this.gRO={};this.nRJ=["onReady"];this.lastError=null;this.oVu=NaN;this.mEW={};this.oC6=0;this.kT=this.targetElement=l;_.oQ(this,this.tO5);Zmk(this);O?this.oC6=setTimeout(function(){z.loadNewVideoConfig(O)},0):E&&(uqR(this),
C0q(this))};
_.m(ZP,_.y6);ZP.prototype.getId=function(){return this.playerId};
ZP.prototype.loadNewVideoConfig=function(l){if(!this.isDisposed()){this.oC6&&(clearTimeout(this.oC6),this.oC6=0);var e=l||{};e instanceof y7C||(e=new y7C(e));this.config=e;this.setConfig(l);C0q(this);this.isReady()&&oaR(this)}};
var uqR=function(l){var e;l.webPlayerContextConfig?e=l.webPlayerContextConfig.rootElementId:e=l.config.attrs.id;l.elementId=e||l.elementId;l.elementId==="video-player"&&(l.elementId=l.playerId,l.webPlayerContextConfig?l.webPlayerContextConfig.rootElementId=l.playerId:l.config.attrs.id=l.playerId);var O;((O=l.kT)==null?void 0:O.id)===l.elementId&&(l.elementId+="-player",l.webPlayerContextConfig?l.webPlayerContextConfig.rootElementId=l.elementId:l.config.attrs.id=l.elementId)};
ZP.prototype.setConfig=function(l){this.tbB=l;this.config=$0S(l);uqR(this);if(!this.kJY){var e;this.kJY=W$H(this,((e=this.config.args)==null?void 0:e.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var O;if((O=this.config)==null?0:O.attrs)l=this.config.attrs,(e=l.width)&&this.kT&&(this.kT.style.width=hr(Number(e)||e,!0)),(l=l.height)&&this.kT&&(this.kT.style.height=hr(Number(l)||l,!0))};
var oaR=function(l){if(l.config&&l.config.loaded!==!0)if(l.config.loaded=!0,!l.config.args||l.config.args.autoplay!=="0"&&l.config.args.autoplay!==0&&l.config.args.autoplay!==!1){var e;l.api.loadVideoByPlayerVars((e=l.config.args)!=null?e:null)}else l.api.cueVideoByPlayerVars(l.config.args)},gaq=function(l){var e=!0,O=l.getPlayerElement();
O&&l.config&&(e=O.dataset.version===d0S(l));return e&&!!_.vK("yt.player.Application.create")},C0q=function(l){if(!l.isDisposed()&&!l.q35){var e=gaq(l);
if(e&&(l.getPlayerElement()?"html5":null)==="html5")l.nzO="html5",l.isReady()||im1(l);else if(wHq(l),l.nzO="html5",e&&l.jh&&l.targetElement)l.targetElement.appendChild(l.jh),im1(l);else{l.config&&(l.config.loaded=!0);var O=!1;l.gEW=function(){O=!0;var E=ABS(l,"player_bootstrap_method")?_.vK("yt.player.Application.createAlternate")||_.vK("yt.player.Application.create"):_.vK("yt.player.Application.create");var J=l.config?$0S(l.config):void 0;E&&E(l.targetElement,J,l.webPlayerContextConfig,l.mi8);im1(l)};
l.q35=!0;e?l.gEW():(_.Nd(d0S(l),l.gEW),(e=naH(l))&&gNT(e||""),a_H(l)&&!O&&_.zJ("yt.player.Application.create",null))}}};
ZP.prototype.getPlayerElement=function(){var l=_.Vz(document,this.elementId);!l&&this.kT&&this.kT.querySelector&&(l=this.kT.querySelector("#"+this.elementId));return l};
var im1=function(l){if(!l.isDisposed()){var e=l.getPlayerElement(),O=!1;e&&e.getApiInterface&&e.getApiInterface()&&(O=!0);if(O){l.q35=!1;if(!ABS(l,"html5_remove_not_servable_check_killswitch")){var E;if((e==null?0:e.isNotServable)&&l.config&&(e==null?0:e.isNotServable((E=l.config.args)==null?void 0:E.video_id)))return}kCq(l)}else l.oVu=setTimeout(function(){im1(l)},50)}},kCq=function(l){Zmk(l);
l.uA1=!0;var e=l.getPlayerElement();if(e){l.sCB=I_x(l,e,"addEventListener");l.pnY=I_x(l,e,"removeEventListener");var O=e.getApiInterface();O=O.concat(e.getInternalApiInterface());for(var E=l.api,J=0;J<O.length;J++){var z=O[J];E[z]||(E[z]=I_x(l,e,z))}}for(var M in l.oF)l.oF.hasOwnProperty(M)&&l.sCB&&l.sCB(M,l.oF[M]);oaR(l);l.kJY&&l.kJY(l.api);l.tO5.publish("onReady",l.api)},I_x=function(l,e,O){var E=e[O];
return function(){var J=_.ke.apply(0,arguments);try{return l.lastError=null,E.apply(e,J)}catch(z){if(O!=="sendAbandonmentPing")throw z.params=O,l.lastError=z,J=new _.Hk("PlayerProxy error in method call",{error:z,method:O,playerId:l.playerId}),J.level="WARNING",J;}}},Zmk=function(l){l.uA1=!1;
if(l.pnY)for(var e in l.oF)l.oF.hasOwnProperty(e)&&l.pnY(e,l.oF[e]);for(var O in l.mEW)l.mEW.hasOwnProperty(O)&&clearTimeout(Number(O));l.mEW={};l.sCB=null;l.pnY=null;e=l.api;for(var E in e)e.hasOwnProperty(E)&&(e[E]=null);e.addEventListener=function(J,z){l.addEventListener(J,z)};
e.removeEventListener=function(J,z){l.removeEventListener(J,z)};
e.destroy=function(){l.dispose()};
e.getLastError=function(){return l.getLastError()};
e.getPlayerType=function(){return l.getPlayerType()};
e.getCurrentVideoConfig=function(){return l.tbB};
e.loadNewVideoConfig=function(J){l.loadNewVideoConfig(J)};
e.isReady=function(){return l.isReady()}};
ZP.prototype.isReady=function(){return this.uA1};
ZP.prototype.addEventListener=function(l,e){var O=this;this.isDisposed();var E=W$H(this,e);E&&(_.hq(this.nRJ,l)||this.oF[l]||(e=m0F(this,l),this.sCB&&this.sCB(l,e)),this.tO5.subscribe(l,E),l==="onReady"&&this.isReady()&&setTimeout(function(){E(O.api)},0))};
ZP.prototype.removeEventListener=function(l,e){this.isDisposed()||(e=W$H(this,e))&&this.tO5.unsubscribe(l,e)};
var W$H=function(l,e){var O=e;if(typeof e==="string"){if(l.gRO[e])return l.gRO[e];O=function(){var E=_.ke.apply(0,arguments),J=_.vK(e);if(J)try{J.apply(_.Op,E)}catch(z){throw E=new _.Hk("PlayerProxy error when executing callback",{error:z}),E.level="ERROR",E;}};
l.gRO[e]=O}return O?O:null},m0F=function(l,e){var O=function(E){var J=function(){l.isDisposed();
if(!l.isDisposed())try{l.tO5.publish(e,E!=null?E:void 0)}catch(Z){var M=new _.Hk("PlayerProxy error when creating global callback",{error:Z.message,event:e,playerId:l.playerId,data:E,originalStack:Z.stack,componentStack:Z.componentStack});M.level="WARNING";throw M;}};
if(ABS(l,"web_player_publish_events_immediately"))J();else{var z=setTimeout(function(){J();_.mm.remove(l.mEW,String(z))},0);
_.mm.add(l.mEW,String(z),!0)}};
return l.oF[e]=O};
ZP.prototype.getPlayerType=function(){return this.nzO||(this.getPlayerElement()?"html5":null)};
ZP.prototype.getLastError=function(){return this.lastError};
var wHq=function(l){l.cancel();Zmk(l);l.nzO=null;l.config&&(l.config.loaded=!1);var e=l.getPlayerElement();e&&(gaq(l)||!a_H(l)?l.jh=e:(e&&e.destroy&&e.destroy(),l.jh=null));l.targetElement&&_.TP(l.targetElement)};
ZP.prototype.cancel=function(){this.gEW&&_.qkT(d0S(this),this.gEW);clearTimeout(this.oVu);this.q35=!1};
ZP.prototype.disposeInternal=function(){wHq(this);if(this.jh&&this.config&&this.jh.destroy)try{this.jh.destroy()}catch(e){var l=new _.Hk("PlayerProxy error during disposal",{error:e});l.level="ERROR";throw l;}this.gRO=null;for(l in this.oF)this.oF.hasOwnProperty(l)&&delete this.oF[l];this.tbB=this.config=this.api=null;delete this.targetElement;delete this.kT;_.y6.prototype.disposeInternal.call(this)};
var a_H=function(l){var e,O;l=(e=l.config)==null?void 0:(O=e.args)==null?void 0:O.fflags;return!!l&&l.indexOf("player_destroy_old_version=true")!==-1},d0S=function(l){return l.webPlayerContextConfig?l.webPlayerContextConfig.jsUrl:(l=l.config.assets)?l.js:""},naH=function(l){return l.webPlayerContextConfig?l.webPlayerContextConfig.cssUrl:(l=l.config.assets)?l.css:""},ABS=function(l,e){if(l.webPlayerContextConfig)var O=l.webPlayerContextConfig.serializedExperimentFlags;
else{var E;if((E=l.config)==null?0:E.args)O=l.config.args.fflags}return(O||"").split("&").includes(e+"=true")},$0S=function(l){for(var e={},O=_.b(Object.keys(l)),E=O.next();!E.done;E=O.next()){E=E.value;
var J=l[E];e[E]=typeof J==="object"?_.mm.clone(J):J}return e};var qvd={},tE2="player_uid_"+(Math.random()*1E9>>>0);var DT=function(l,e,O,E,J,z){e=e===void 0?document.createElement("div"):e;this.webPlayerContextConfig=l;this.container=e;this.commandResolver=O;this.apiResolver=rBT();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.d8;E||z?yBH(this):pH1(this);this.pendingPlayerResponse=E;this.pendingWatchNextResponse=J;this.pendingPlayerVars=z;K$H(this)};
DT.prototype.loadVideoWithPlayerResponse=function(l,e,O){this.loadVideo(l,e,O)};
DT.prototype.loadVideoWithPlayerVars=function(l){return this.loadVideo(void 0,void 0,l)};
DT.prototype.destroy=function(l){if(l=_.Vz(document,l))l=tE2+"_"+_.Ox(l),(l=qvd[l])&&l.dispose()};
var Hm1=function(l,e){var O;_.V(function(E){if(E.nextAddress==1)return l.pendingWatchNextResponse=e,l.synchronousApi?(O=l.synchronousApi,E.jumpTo(2)):_.C(E,l.api,3);E.nextAddress!=2&&(O=E.yieldResult);jPq(l,O);l.pendingWatchNextResponse&&(O.updateVideoData({raw_watch_next_response:l.pendingWatchNextResponse}),l.pendingWatchNextResponse=void 0);_.Cl(E)})},jPq=function(l,e){var O;
if(!(e==null?0:(O=e.isReady)==null?0:O.call(e))){var E;l=new _.Hk("playerApi is falsey",{synchronousApi:l.synchronousApi,apiResolved:l.apiResolver.resolved,playerApiUndefined:e===void 0,playerApiNull:e===null,playerApiReady:(e==null?void 0:(E=e.isReady)==null?void 0:E.call(e))===!0,playerApiMethods:e?Object.keys(e):[]});_.UW(l)}},cBi=function(l,e){if(typeof l[e]==="function")return l[e]()},F$q=function(l){var e=window,O,E=(O=e.ytplayer)==null?void 0:O.bootstrapPlayerContainer;
if((O=E==null?void 0:E.firstElementChild)&&_.rE(O,"html5-video-player")){var J,z,M=(J=e.ytplayer)==null?void 0:(z=J.bootstrapWebPlayerContextConfig)==null?void 0:z.contextId;J=l.webPlayerContextConfig.contextId;if(M&&M===J){E!==l.container&&(E=!1,cBi(O,"getPlayerState")===2&&(E=!0),l.container.appendChild(O),E||cBi(O,"playVideo"));var Z;if((Z=e.ytplayer)==null?0:Z.bootstrapPlayerResponse)l.bootstrapPlayerResponse=e.ytplayer.bootstrapPlayerResponse}}},K$H=function(l){var e,O,E,J,z;
_.V(function(M){if(M.nextAddress==1)return l.pageReadyOrDataAvailable?M.jumpTo(2):_.C(M,l.pageReadyOrDataAvailableResolver.promise,2);if(M.nextAddress!=4)return!_.a("kevlar_player_unified_player_loading")||TxL()&&GCV()?M.jumpTo(4):_.C(M,hkV(),4);F$q(l);if(l.pendingPlayerResponse||l.pendingPlayerVars)e=L$V(l.pendingPlayerResponse,l.pendingWatchNextResponse,l.pendingPlayerVars),l.pendingPlayerResponse&&l.pendingPlayerResponse===l.bootstrapPlayerResponse&&(e.loaded=!0),l.bootstrapPlayerResponse=void 0;
O=Nx2(l.container,e,l.webPlayerContextConfig);((E=e)==null?0:E.loaded)&&l.pendingWatchNextResponse?(Hm1(l,l.pendingWatchNextResponse),l.pendingPlayerResponse=void 0,l.pendingPlayerVars=void 0):f_q(l);J=function(Z){O.removeEventListener("onReady",J);l.synchronousApi=Z;l.apiResolver.resolve(Z)};
O.addEventListener("onReady",J);l.commandResolver!==void 0&&(z=l.commandResolver,O.addEventListener("innertubeCommand",function(Z){z(Z)}));
_.Cl(M)})};
DT.prototype.loadVideo=function(l,e,O){var E=this,J,z,M,Z,u,d,g,w,n;return _.V(function(k){if(k.nextAddress==1)return E.pendingPlayerResponse=l,E.pendingWatchNextResponse=e,E.pendingPlayerVars=O,yBH(E),E.synchronousApi?(J=E.synchronousApi,k.jumpTo(2)):_.C(k,E.api,3);k.nextAddress!=2&&(J=k.yieldResult);jPq(E,J);M=new Promise(function(y){z=y});
Z=function(){var y=J.getPlayerResponse();y&&(J.removeEventListener("onVideoDataChange",Z),z(y))};
J.addEventListener("onVideoDataChange",Z);if(E.pendingPlayerResponse||E.pendingPlayerVars)E.pendingPlayerResponse&&E.pendingPlayerResponse===E.bootstrapPlayerResponse?(z(E.pendingPlayerResponse),E.pendingWatchNextResponse&&Hm1(E,E.pendingWatchNextResponse)):(u=L$V(E.pendingPlayerResponse,E.pendingWatchNextResponse,E.pendingPlayerVars),(n=(d=E.pendingPlayerResponse)==null?void 0:(g=d.playerConfig)==null?void 0:(w=g.playbackStartConfig)==null?void 0:w.startPaused)?J.cueVideoByPlayerVars(u.args):J.loadVideoByPlayerVars(u.args)),
f_q(E),E.bootstrapPlayerResponse=void 0;return k.return(M)})};
var pH1=function(l){if(document.readyState==="complete"||document.readyState==="interactive")yBH(l);else{var e=function(){document.removeEventListener("DOMContentLoaded",e);yBH(l)};
document.addEventListener("DOMContentLoaded",e)}},yBH=function(l){l.pageReadyOrDataAvailable=!0;
l.pageReadyOrDataAvailableResolver.resolve()},f_q=function(l){l.pendingPlayerResponse=void 0;
l.pendingWatchNextResponse=void 0;l.pendingPlayerVars=void 0};
_.Ji.Object.defineProperties(DT.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Sk=function(l){G7.call(this,l===void 0?"document_active":l);var e=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(O){e.transition("document_disposed",{event:O})});
window.addEventListener("beforeunload",function(O){e.transition("document_disposed_preventable",{event:O})});
window.addEventListener("unload",function(O){e.transition("document_disposed",{event:O});e.hasRun=new Map})};
_.m(Sk,G7);
Sk.prototype.runPreventableDispose=function(l,e){if(!this.hasRun.get("document_disposed_preventable")){l(e==null?void 0:e.event);var O,E;if((e==null?0:(O=e.event)==null?0:O.defaultPrevented)||(e==null?0:(E=e.event)==null?0:E.returnValue)){e.event.returnValue||(e.event.returnValue=!0);e.event.defaultPrevented||e.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Sk.prototype.runDispose=function(l,e){this.hasRun.get("document_disposed")?this.transition("document_active"):(l(e==null?void 0:e.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Sk.prototype.runFlush=function(l,e){l(e==null?void 0:e.event);this.transition("document_active")};
Sk.prototype.runActive=function(){};var QT=function(l){G7.call(this,l===void 0?"document_visibility_unknown":l);var e=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(O){document.visibilityState==="visible"?e.transition("document_visible",{event:O}):e.transition("document_hidden",
{event:O})});
_.a("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(O){e.transition("document_backgrounded",{event:O})}),window.addEventListener("focus",function(O){e.transition("document_foregrounded",{event:O})}))};
_.m(QT,G7);QT.prototype.runVisible=function(l,e){l(e==null?void 0:e.event);_.a("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
QT.prototype.runHidden=function(l,e){l(e==null?void 0:e.event);_.a("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
QT.prototype.runBackgrounded=function(l,e){l(e==null?void 0:e.event)};
QT.prototype.runForegrounded=function(l,e){l(e==null?void 0:e.event)};var xl=function(){this.teardownLifecycle=new Sk;this.visibilityLifecycle=new QT};
xl.prototype.install=function(){var l=_.ke.apply(0,arguments),e=this;l.forEach(function(O){e.teardownLifecycle.install(O)});
l.forEach(function(O){e.visibilityLifecycle.install(O)})};var lF=function(){xl.call(this);var l={};this.install((l.document_disposed={callback:this.abortSlisAndFlush},l));_.a("combine_ve_grafts")&&(l={},this.install((l.document_disposed={callback:this.flushInteractionLoggingAttachVes},l)));l={};this.install((l.flush_logs={callback:this.logFinalPayload},l));_.a("web_log_cfg_cee_ks")||_.fZ(_.UD,Rk6)};
_.m(lF,xl);var D0T=function(){lF.loggingInstance||(lF.loggingInstance=new lF);return lF.loggingInstance};
lF.prototype.logFinalPayload=function(){if(_.a("web_fp_via_jspb")){var l=new OZH,e=_.P9();e&&_.da(l,1,e);e=_.a("jspb_sparse_encoded_pivot")?new Fx([{}]):new Fx;_.Jz(e,380,EE6,l);TUM("finalPayload",e);_.a("web_fp_via_jspb_and_json")&&_.Bm("finalPayload",{csn:_.P9()})}else _.Bm("finalPayload",{csn:_.P9()})};
lF.prototype.abortSlisAndFlush=function(){Z6H(NS);rt!=null&&rt.flush()};
lF.prototype.flushInteractionLoggingAttachVes=function(){Hg6(_.yN())};
var Rk6=function(){var l=_.hT("CLIENT_EXPERIMENT_EVENTS");if(l){var e=BTL();l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,e(O)&&_.Bm("genericClientExperimentEvent",{eventType:O});delete _.UC.CLIENT_EXPERIMENT_EVENTS}};var TxR={};
TxR.YtPlayerBehavior=[_.NO.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 l=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.d8;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Svx(function(){l.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.PQ(this,"pan-down"),_.a("kevlar_pinch_fullscreen")&&_.Ha().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.a("kevlar_pinch_fullscreen")&&_.Ha().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(l,e,O){var E=this;uV(this.useUnifiedPlayer_());if(this.mainAppPlayer_)uV(!1,"MainAppPlayer already created.");else{var J=_.a("kevlar_player_container_query_killswitch")?this.$.container:_.ud(this.hostElement).querySelector("#container");this.mainAppPlayer_=new DT(this.getWebPlayerContextConfig_(),J,function(z){return _.aX(z,E.hostElement)},l,e,O);
this.mainAppPlayer_.api.then(function(z){E.player_=z;E.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&jkk.resolve(z)})}},
loadVideoWithPlayerResponse:function(l,e){var O=this;if(this.useUnifiedPlayer_()){var E=this.watchNextData,J,z=(J=l.videoDetails)==null?void 0:J.videoId,M,Z,u;(J=(M=this.watchNextData)==null?void 0:(Z=M.currentVideoEndpoint)==null?void 0:(u=Z.watchEndpoint)==null?void 0:u.videoId)&&z!=J&&(E=void 0,_.a("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(l,E,e):this.createMainAppPlayer_(l,E,e);this.mainAppPlayer_.api.then(function(){_.$u(O.hostElement,
"yt-player-updated")})}else this.update(cBA(l,e))},
loadVideoWithPlayerVars:function(l){var e=this;this.useUnifiedPlayer_()?(_.a("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(l):this.createMainAppPlayer_(void 0,void 0,l),this.mainAppPlayer_.api.then(function(){_.$u(e.hostElement,"yt-player-updated")})):this.update({args:l})},
update:function(l){var e=this;if(this.useUnifiedPlayer_())uV(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(l);var O=e0d(l.args);O&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==O&&Object.assign(l.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(l).then(function(E){_.$u(e.hostElement,"yt-player-updated",_.a("kevlar_player_updated_obsolete_player_killswitch")?
E:void 0)})}_.YE(new _.Hk("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.getPlayerPromise(),2);O=E.yieldResult;if(!O)throw Error("vh");l&&e.updatePlayerPlaylist_(l);_.Cl(E)})},
acquireApi_:function(l){var e=this;if(this.useUnifiedPlayer_())uV(!1,"Invalid method call in kevlar_unified_player.");else return _.UD.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(uV(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(O){e.shouldAutoplay_(l)?O.loadVideoByPlayerVars(l.args):O.cueVideoByPlayerVars(l.args)})):this.initPlayerPromise_=this.initPlayerContainer_(l),this.initPlayerPromise_},
initPlayerContainer_:function(l){var e=this;if(this.useUnifiedPlayer_())uV(!1,"Invalid method call in kevlar_unified_player.");else return uV(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.hG(Error("wh")),uV(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.a("kevlar_player_container_query_killswitch")?this.$.container:_.ud(this.hostElement).querySelector("#container"),hkV().then(function(){var O=e.initPlayer_(l);e.playerResolver_.resolve(O);
return O})},
onPlayerReady_:function(l,e){this.useUnifiedPlayer_()?uV(!1,"Invalid method call in kevlar_unified_player."):(l.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&jkk.resolve(l),e(l))},
maybeCallApiMethodOnElement_:function(l,e){if(typeof l[e]==="function")return l[e]()},
maybeAdoptBootstrapPlayer_:function(){var l=window,e,O=(e=l.ytplayer)==null?void 0:e.bootstrapPlayerContainer;if((e=O==null?void 0:O.firstElementChild)&&e.classList.contains("html5-video-player")){var E,J,z=(E=l.ytplayer)==null?void 0:(J=E.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;E=this.getWebPlayerContextConfig_().contextId;if(z&&z===E){O!==this.playerContainer_&&(O=!1,this.maybeCallApiMethodOnElement_(e,"getPlayerState")===2&&(O=!0),this.playerContainer_.appendChild(e),O||this.maybeCallApiMethodOnElement_(e,
"playVideo"));var M;if((M=l.ytplayer)==null?0:M.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=l.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(l){var e=this;if(this.useUnifiedPlayer_())uV(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(O){e.maybeAdoptBootstrapPlayer_();var E=l?F$2(l):void 0;E&&E==e.bootstrapPlayerResponse_&&(l.loaded=!0);E=e.playerContainer_;var J=e.getWebPlayerContextConfig_();E=Nx2(E,l,J);e.player_=E;e.onPlayerReadyEvent_=e.onPlayerReady_.bind(e,e.player_,O);e.player_.addEventListener("onReady",e.onPlayerReadyEvent_);e.player_.addEventListener("innertubeCommand",
e.onPlayerInnerTubeCommand_.bind(e));_.a("enable_web_shorts_captions_language_command")&&(e.player_.addEventListener("captionschanged",e.storePlayerCaptionLanguage_.bind(e)),e.player_.addEventListener("captionssettingschanged",e.storePlayerCaptionLanguage_.bind(e)),e.player_.addEventListener("onCaptionsTrackListChanged",e.storePlayerCaptionLanguage_.bind(e)))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(l){l.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(l){l.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var l=_.V2().resolve(_.XZ).getCurrentPage();l&&l.getScrollTop()<=0?_.PQ(this,"pan-down"):_.PQ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(l){l.isFullscreen()||l.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(l){l.isFullscreen()&&l.toggleFullscreen()})},
updatePlayerPlaylist_:function(l){var e=this,O,E,J;return _.V(function(z){if(z.nextAddress==1)return O=_.V2().resolve(_.MG(_.U5)),E=!!(O&&O.playlistComponent&&O.playlistComponent.loopOn),_.C(z,e.getPlayerPromise(),2);var M=J=z.yieldResult,Z=M.updatePlaylist,u=[];if(_.a("kevlar_player_playlist_use_local_index")){var d,g;var w=(g=(d=l.localCurrentIndex)!=null?d:l.currentIndex)!=null?g:0}else{var n;w=(n=l.currentIndex)!=null?n:0}if(l.contents)for(d=0;d<l.contents.length;d++)if((g=l.contents[d])&&g.playlistPanelVideoRenderer)if(Lgp(g)){g=
g.playlistPanelVideoRenderer;n="";g.shortBylineText&&(n=_.lG(g.shortBylineText));var k="";g.title?k=_.lG(g.title):g.unplayableText&&(k=_.lG(g.unplayableText));u.push({author:n,title:k,encrypted_id:g.videoId})}else d<w&&--w;Z.call(M,{index:w,list:l.playlistId?l.playlistId:"",loop:E,playlist_title:l.title,playlist_length:u.length,video:u,fetch:0,external_list:"1",title:l.title?l.title:"",playlist_author:l.ownerName?_.lG(l.ownerName):void 0});_.Cl(z)})},
focusOnPlayer:function(){_.OK(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var l=this.playerContainer_.querySelector(".html5-video-player");l&&(_.ef(_.V2().resolve(_.BF)),l.focus())}})},
preparePlayer:function(){var l=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(e){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")e();else{var O=function(){document.removeEventListener("DOMContentLoaded",O);e()};
document.addEventListener("DOMContentLoaded",O)}})).then(function(){return hkV()}).then(function(){l.initPlayerPromise_||l.preparePlayerJobId_||(l.preparePlayerJobId_=_.fZ(_.UD,function(){l.initPlayerPromise_||(l.initPlayerPromise_=l.initPlayerContainer_())}))}):_.YE(new _.Hk("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(l){this.useUnifiedPlayer_()?uV(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(l)||(l.args.autoplay="0")},
shouldAutoplay_:function(l){if(this.useUnifiedPlayer_())uV(!1,"Invalid method call in kevlar_unified_player.");else{var e=this.get("args.el",l);return e&&e!="detailpage"&&this.isMiniplayerActive_()||e&&(e=="sponsorshipsoffer"||e=="handlesclaiming")&&this.get("args.autoplay",l)=="0"?!1:(l=F$2(l))&&this.get("playerConfig.playbackStartConfig.startPaused",l)?!1:!0}},
isMiniplayerActive_:function(){return _.V2().resolve(_.NJ).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var l=this.getPlayer();if(l){var e=l.getPlayerState();_.a("kevlar_player_check_ad_state_on_stop")&&(e=l.getPlayerState(l.getPresentingPlayerType()));e!=5&&l.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(l,e,O){O=O===void 0?!1:O;var E=this,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return e||(e=E.hostElement),J=E.useUnifiedPlayer_()?!!E.mainAppPlayer_:!!E.initPlayerPromise_,J?_.C(u,E.getPlayerPromise(),2):(O?l.insertBefore(e,l.firstChild):l.appendChild(e),u.return());z=u.yieldResult;M=z.getPlayerState(z.getPresentingPlayerType());Z=!1;if(M==-1||M==1||M==3)Z=!0;O?l.insertBefore(e,l.firstChild):l.appendChild(e);Z&&z.playVideo();z.setSize(NaN,NaN);_.Cl(u)})},
watchNextDataChanged_:function(l){var e=this;l&&(this.useUnifiedPlayer_()&&_.a("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Hm1(this.mainAppPlayer_,l):this.getPlayerPromise().then(function(O){O.updateVideoData(e.computeWatchNextPlayerVars_(l))}))},
computeWatchNextPlayerVars_:function(l){if(this.useUnifiedPlayer_()&&_.a("kevlar_unified_player_update_watch_next_killswitch"))uV(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:l}},
maybeSendAbandonmentPing_:function(){var l=this.getPlayer();l&&l.getPlayerState()!=5&&l.getPlayerState()!=0&&l.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var l=_.hT("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(l=Object.assign({},l),l.rootElementId=this.playerId);l.serializedExperimentIds&&l.serializedExperimentFlags||_.hG(Error("xh"));return l},
hasWebPlayerContextConfig_:function(){return!!_.hT("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(l){this.useUnifiedPlayer_()?uV(!1,"Invalid method call in kevlar_unified_player."):_.aX(l,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(l){var e=_.V2().resolve(_.I3);l=l==null?void 0:l.getOption("captions","track");var O=_.iH("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(l){var E,J=(E=_.kD(_.QO2,O)())==null?void 0:E.value,z;E=typeof(l==null?void 0:l.translationLanguage)==="object"&&((z=l.translationLanguage)==null?void 0:z.languageName)||l.displayName||"";J!==E&&e.store.dispatch(_.IK("stringEntity",O,{key:O,value:E.toString()}))}else e.store.dispatch(_.IK("stringEntity",
O,{key:O,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var l=_.a("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.a("kevlar_unified_player")||l}}];var sPq={};sPq.YtPlaylistPanelBehavior=[_.x.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(l){l=l.detail;if(l.actions.loop!=void 0||l.actions["yt-icons:loop"]!=void 0)this.loopOn=l.actions.loop||l.actions["yt-icons:loop"];if(l.actions.shuffle!=void 0||l.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=l.actions.shuffle||l.actions["yt-icons:shuffle"]},
setMenuData_:function(l){if(!l||!l.playlistButtons||l.isInfinite)return null;for(var e=l.playlistButtons.menuRenderer.topLevelButtons,O=e.length,E=0;E<O;E++)if(e[E].toggleButtonRenderer){var J=e[E].toggleButtonRenderer;J.defaultIcon.iconType=="LOOP"&&this.loopOn?J.isToggled=this.loopOn:J.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(J.isToggled=this.shuffleOn)}return l.playlistButtons}}];var GCq=function(l){C_.call(this,l,132);this.isDocument=l===document.documentElement};
_.m(GCq,C_);GCq.prototype.calculateScrollDelta=function(l,e,O){var E=0;l<e?E=l<e-100?-48:-8:l>e+O&&(E=l>e+O+100?48:8);return E};
GCq.prototype.JSC$9335_onMouseMove=function(l){this.isDocument||(l.clientX=l.event_.pageX,l.clientY=l.event_.pageY);C_.prototype.JSC$9335_onMouseMove.call(this,l)};var Ow=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;l.scrollElement=document.documentElement;l.JSC$12305_dragListGroup=null;l.dragScrollSupport=null;l.onDraggerCreated=function(e){var O=e.JSC$9331_dragger;O.scrollTarget_=l.scrollElement;e=e.draggerEl;O&&e.menuOpened&&O.setEnabled(!1)};
l.onDragStart=function(e){var O=e.draggerEl;e=e.currDragItem;var E=Object.assign({},e==null?void 0:e.data);E.trackingParams=void 0;O.data=E;O.style.position="absolute";O.style.width=(e==null?void 0:e.clientWidth)+"px";O.style.zIndex="2030";O.onDrag&&O.onDrag();_.a("web_owner_document_fallback_killswitch")?(e=document.querySelector("ytd-app"))&&_.ud(e).appendChild(O):(e=_.HR(O),(E=e.querySelector("ytd-app"))?_.ud(E).appendChild(O):e.body.appendChild(O));l.dragScrollSupport=new GCq(l.scrollElement);
l.dragScrollSupport.horizontalScrolling_=!1;O=l.dragScrollSupport;O.constrainScroll_=!!O.margin_&&!1};
l.onDrop=function(e){l.handleDrop(e);l.dragScrollSupport&&(_.Q9(l.dragScrollSupport),l.dragScrollSupport=null)};
l.onReorderableScroll=function(){if(l.JSC$12305_dragListGroup){var e=l.JSC$12305_dragListGroup;rg0(e,e.currDragItem_)}};
return l};
_.m(Ow,_.IB);Ow.prototype.detached=function(){_.Bx0(this)};
_.Bx0=function(l){l.JSC$12305_dragListGroup&&(_.px(l.JSC$12305_dragListGroup,PiS,l.onDragStart),_.px(l.JSC$12305_dragListGroup,Llq,l.onDragStart),l.JSC$12305_dragListGroup.dispose(),l.JSC$12305_dragListGroup=null);l.dragScrollSupport&&(_.Q9(l.dragScrollSupport),l.dragScrollSupport=null);l.scrollElement.removeEventListener("scroll",l.onReorderableScroll)};
_.P0R=function(l,e,O,E){E=E===void 0?"":E;_.Bx0(l);O&&(l.scrollElement=O);l.JSC$12305_dragListGroup=new tH;l.JSC$12305_dragListGroup.hysteresisDistance_=2;qG0(l.JSC$12305_dragListGroup,e);l.JSC$12305_dragListGroup.draggerElClasses_=CL("dragging").split(" ");E&&vuF(l.JSC$12305_dragListGroup,function(J){var z=J||document,M=null;z.getElementsByClassName?M=z.getElementsByClassName(E)[0]:M=GgF("*",E,J);return M||J});
_.f4(l.JSC$12305_dragListGroup,G9x,l.onDraggerCreated);_.f4(l.JSC$12305_dragListGroup,PiS,l.onDragStart);_.f4(l.JSC$12305_dragListGroup,Llq,l.onDrop);l.JSC$12305_dragListGroup.init();l.scrollElement.addEventListener("scroll",l.onReorderableScroll,{passive:!0})};
Ow.prototype.handleDrop=function(){};
_.Ji.Object.defineProperties(Ow.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.L([_.T({value:100}),_.q("design:type",Number)],Ow.prototype,"scrollMargin",void 0);_.L([_.m0()],Ow);_.U06=[Ow.prototype];_.Ew={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(l,e,O){var E=this.getClickTarget_(e);if(E&&this.isClickAllowed_(E)){e.preventDefault();l=(0,_.mm.unsafeClone)(l);var J=this.getContainerBoundingRect();e=this.getRelativeClickXy_(e,J);this.expandEndpointUrlMacros_(l,{NX:e[0],NY:e[1],NB:E.code});O&&this.truncateWebCommendMetadataUrl_(l);_.$u(this.hostElement,"yt-navigate",{endpoint:l})}},
getClickTarget_:function(l){if(!this.clickTargetMap)return null;l=_.ey(l)||[];l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;if(e===_.ud(this.hostElement).querySelector("#menu"))break;if(e=this.clickTargetMap.get(e.id))return e}return null},
getRelativeClickXy_:function(l,e){var O=l.detail.x,E=l.detail.y;_.a("use_on_click_for_desktop_display_ad")&&l.clientX!=null&&l.clientY!=null&&(O=l.clientX,E=l.clientY);l=Math.round(O-e.left);e=Math.round(E-e.top);return l<0||e<0?[null,null]:[l,e]},
getContainerBoundingRect:function(){return _.ud(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(l,e){for(var O=_.b(l.loggingUrls||[]),E=O.next();!E.done;E=O.next())E=E.value,E.baseUrl&&(E.baseUrl=y9(E.baseUrl,e));l.urlEndpoint&&l.urlEndpoint.url&&(l.urlEndpoint.url=y9(l.urlEndpoint.url,e));l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.url&&(l.commandMetadata.webCommandMetadata.url=y9(l.commandMetadata.webCommandMetadata.url,e))},
truncateWebCommendMetadataUrl_:function(l){if(l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.url){var e=l.commandMetadata.webCommandMetadata.url,O=e.indexOf("&pp=");if(O>0){var E=e.indexOf("&",O+1);l.commandMetadata.webCommandMetadata.url=E>O&&E<e.length?e.slice(0,O)+e.slice(E):e.slice(0,O)}}},
configureClickTargets:function(l,e,O){this.containerId=l;this.clickTargetMap=new Map;l=_.b(e);for(e=l.next();!e.done;e=l.next())if(e=e.value,e.location){var E=O.get(e.location);E&&(_.oB(_.ud(this.hostElement).querySelector("#"+E),"yt-simple-endpoint",this.isClickAllowed_(e)),this.clickTargetMap.set(E,e))}},
isClickAllowed_:function(l){return l.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||l.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||l.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||l.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.JL={};
_.JL.YtLazyListBehavior=[_.XP.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 l=(this.constructor.generatedFrom||this).observers;l||(l=[]);l.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
l}},
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 l=this.renderElementsOutsideVisibleArea_;l&&(U$0(l,4),l.processSignal())},
deepLazyListObserver_:function(l){var e=this;if(l){var O=l.value||[];if(this.itemsPath==l.path){var E=this.nonDeferredItemCount;l=0;E>-1&&O.length>E&&(l=_.hT("REMAINING_DOVA_DEFERRED_CHUNKS",-1));l>0?(E>0&&(E=O.slice(0,E),this.setInitialItemsOnDataChanged(E)),(E=this.renderElementsOutsideVisibleArea_)?E.cancel():(E=this.renderElementsOutsideVisibleArea_=new _.bB(2,"eocs"),_.Ymd(window,"scroll",function(){return e.renderDeferredElements()})),_.Me(E,function(){e.setInitialItemsOnDataChanged(O)}),_.Yd("REMAINING_DOVA_DEFERRED_CHUNKS",
l-1)):this.setInitialItemsOnDataChanged(O)}else if(this.itemsPath+".splices"==l.path)this.onItemsUpdated_(O);
else E="shownItems"+l.path.substr(this.itemsPath.length),this.useSignals&&E==="shownItems.length"||this.notifyPath(E,l.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(l){l&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(l),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(l){l=l.indexSplices;for(var e=0,O=l.length;e<O;e++){var E=l[e];if(E.index<this.shownCount&&(E.removed&&this.splice("shownItems",E.index,E.removed.length),E.addedCount)){var J=E.object.slice(E.index,E.index+E.addedCount);E=["shownItems",E.index,0];E.push.apply(E,J);this.splice.apply(this,E)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(l){this.cancelPendingTasks_();l||(l=[]);this.items_=l;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&&(_.LH("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.OK(this,this.tryRenderChunk_)))},
fillRange_:function(l,e){this.canShowMore&&this.items_&&(l=this.items_.slice(l,e),l.unshift("shownItems"),this.push.apply(this,l),this.shownCount=e,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var l=this;this.canShowMore&&_.rP(this,"renderChunk",function(){l.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.LH("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.pT(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var l=this.renderElementsOutsideVisibleArea_;l&&(l.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var l=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(l-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=l;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(l){return Math.ceil(1E3/l)},
onCanShowMoreUpdated_:function(l){this.data&&this.items_!==null&&(l?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(l){!this.shouldUseTaskManager()&&this.data&&(!l&&this.canShowMore?(_.ait(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):l&&this.partiallyRenderedItems_.has(this.items_)&&(_.a("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var bF;_.XK={};
bF=function(){var l=_.IB.apply(this,arguments)||this;l.atStart=!0;l.atEnd=!0;l.startIndex=0;l.endIndex=0;l.scrollCount=0;l.initialStartIndex=0;l.disableScrollEventListener=!1;l.useFloorScrolling=!1;l.isSearch=!1;l.dragging=!1;l.dragMouseStart=0;l.dragOffsetStart=0;l.disableWheelScroll=!1;l.centerListItems=!1;l.offset=0;l.minComponentWidth=0;l.marginWidthRight=0;l.marginWidthLeft=0;l.setButtonsStateRequested=!1;l.itemsVisibilityObserver=null;l.fullyVisibleItemsIndices=[];l.JSC$12316_onWheelScroll=function(e){if(l.isSearch&&
!l.disableWheelScroll&&_.a("desktop_enable_dmpanel_wheel_scroll")){var O=e.shiftKey?Math.abs(e.deltaY)>Math.abs(e.deltaX)?e.deltaY:e.deltaX:e.deltaX;O!==0&&(e.preventDefault(),l.ytLazyListBehavior.fillRemainingListItems(),l.offset+=O,zB(l),l.reposition_())}};
l.onPointerDown=function(e){YvR(l)&&(l.dragMouseStart=e.clientX,l.dragOffsetStart=l.offset,l.dragging=!0)};
l.onPointerMove=function(e){YvR(l)&&l.dragging&&(l.ytLazyListBehavior.fillRemainingListItems(),l.offset=l.dragOffsetStart-(e.clientX-l.dragMouseStart),zB(l),l.reposition_())};
l.onPointerUp=function(){YvR(l)&&(l.dragging=!1)};
return l};
_.m(bF,_.IB);var hkq=function(l){var e=_.ud(l.hostElement).querySelector("#items").children;if(!e)return 0;var O=0;l=_.b(l.fullyVisibleItemsIndices);for(var E=l.next();!E.done;E=l.next())O+=e[E.value].clientWidth;return O},YvR=function(l){return l.isSearch&&_.a("desktop_enable_dmpanel_click_drag_scroll")};
bF.prototype.created=function(){this.cachedViewportWidth=_.hT("initialInnerWidth")||window.innerWidth;this.JSC$12316_cachedViewportHeight=_.hT("initialInnerHeight")||window.innerHeight;_.hT("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Yd("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
bF.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.a("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();L$q(this)};
bF.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.a("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var l;(l=this.itemsVisibilityObserver)==null||l.disconnect();this.itemsVisibilityObserver=null;var e;(e=this.itemsObserver)==null||e.disconnect()};
var L$q=function(l){var e=_.ud(l.hostElement).querySelector("#scroll-container");if(e){if(!l.itemsVisibilityObserver){var O=window.getComputedStyle(e).marginRight;l.itemsVisibilityObserver=new IntersectionObserver(function(E){tEq(l,E)},{root:e,
rootMargin:O,threshold:.98})}if(e=_.ud(l.hostElement).querySelector("#items"))l.itemsObserver=new yiR(e,function(E){qvq(l,E)})}},qvq=function(l,e){vaq(l)&&(Array.from(e.addedNodes).filter(function(O){return O.nodeType===Node.ELEMENT_NODE}).forEach(function(O){l.itemsVisibilityObserver&&l.itemsVisibilityObserver.observe(O)}),Array.from(e.removedNodes).filter(function(O){return O.nodeType===Node.ELEMENT_NODE}).forEach(function(O){l.itemsVisibilityObserver&&l.itemsVisibilityObserver.unobserve(O)}))},
tEq=function(l,e){var O=new Set(l.fullyVisibleItemsIndices);
e=_.b(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;var J=E.target.parentElement;J?(J=Array.from(J.children).indexOf(E.target),E.isIntersecting?O.add(J):O.has(J)&&O.delete(J)):_.hG(new _.Hk("Parent element not found",E.target.nodeName))}l.fullyVisibleItemsIndices=Array.from(O).sort(function(z,M){return z-M});
O.size===0?_.hG(new _.Hk("No visible entries in horizontal list")):(l.startIndex=l.fullyVisibleItemsIndices[0],l.endIndex=l.fullyVisibleItemsIndices[l.fullyVisibleItemsIndices.length-1])},vaq=function(l){l.data?l=(l=l.data)&&l.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===l.itemSizeConstraint:!1:l=!1;
return l};
_.X=bF.prototype;_.X.addScrollEventListeners=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container");l.style.touchAction="pan-y";l.addEventListener("wheel",this.JSC$12316_onWheelScroll);l.addEventListener("pointerdown",this.onPointerDown);l.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.X.removeScrollEventListeners=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container");l.removeEventListener("wheel",this.JSC$12316_onWheelScroll);l.removeEventListener("pointerdown",this.onPointerDown);l.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.X.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.OK(this,this.setStartIndex,[this.initialStartIndex])};
_.X.reposition_=function(){var l=_.hT("HTML_DIR")=="rtl"?"":"-",e=_.ud(this.hostElement).querySelector("#items");e&&(e.style.transform="translateX("+l+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.X.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.OK(this,this.setButtonsState_))};
_.X.setButtonsState_=function(){this.setButtonsStateRequested=!1;var l=_.ud(this.hostElement).querySelector("#items").firstElementChild;if(l){this.minComponentWidth||(this.minComponentWidth=Nxq(this,l));l=_.ud(this.hostElement).querySelector("#scroll-container").clientWidth;var e=_.ud(this.hostElement).querySelector("#items").clientWidth,O=this.get(this.ytLazyListBehavior.itemsPath,this);if(O){var E=Math.round(l/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+E,O.length)-1)}this.ytLazyListBehavior.canShowMore?e+this.minComponentWidth>=this.offset+l&&(this.atEnd=!1):this.atEnd=this.offset+l>=e-20?!0:!1;this.atStart=this.offset<=20}};
_.X.setStartIndex=function(l){if(!this.minComponentWidth){var e=_.ud(this.hostElement).querySelector("#items").firstElementChild;if(!e)return;this.minComponentWidth=Nxq(this,e)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*l;zB(this);this.reposition_()};
_.X.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.gI();var l=_.ud(this.hostElement).querySelector("#scroll-container").clientWidth;_.a("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Nxq(this,_.ud(this.hostElement).querySelector("#items").firstElementChild));l=this.useFloorScrolling?Math.floor(l/this.minComponentWidth)||1:Math.round(l/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&rB1(this);this.offset+=vaq(this)?
hkq(this):l*this.minComponentWidth;zB(this);this.reposition_();this.scrollCount++};
_.X.prevClick_=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container").clientWidth;l=this.useFloorScrolling?Math.floor(l/this.minComponentWidth)||1:Math.round(l/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=vaq(this)?hkq(this):this.minComponentWidth*this.scrollCount-1):this.offset-=vaq(this)?hkq(this):l*this.minComponentWidth;this.centerListItems&&rB1(this);zB(this);this.reposition_()};
_.X.onIronResize_=function(){this.resizeSupportEnabled&&_.OK(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.X.onItemsTransitionEnd_=function(l){_.OV(l)===_.ud(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.X.onChildElementFocus_=function(l){l=l.target.closest("#items > *");var e=_.ud(this.hostElement).querySelector("#scroll-container");if(e.contains(l)){if(_.a("web_horizontal_list_behavior_focus_killswitch"))if(l.offsetLeft<this.offset)this.offset=Math.abs(l.offsetLeft)<l.clientWidth?0:l.offsetLeft;else if(l.offsetLeft+l.clientWidth>this.offset+e.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.gI(),this.offset=l.offsetLeft+l.clientWidth-e.clientWidth;else return;else{var O=_.ud(this.hostElement).querySelector("#items"),
E=_.hT("HTML_DIR")==="rtl",J=E?O.clientWidth-l.offsetLeft:l.offsetLeft;O=E?O.clientWidth-(l.offsetLeft+l.clientWidth):l.offsetLeft+l.clientWidth;var z=E?J>this.offset+e.clientWidth:J<this.offset,M=E?O<this.offset:O>this.offset+e.clientWidth,Z=E?z:M;if(E?M:z)e=E?O:J,this.offset=Math.abs(e)<l.clientWidth?0:e;else if(Z)this.ytLazyListBehavior.fillRemainingListItems(),_.gI(),this.offset=(E?J:O)-e.clientWidth;else return}zB(this);this.reposition_()}};
_.X.observeShownItems_=function(){this.reset()};
_.X.checkComponentWidthResize=function(){var l=_.ud(this.hostElement).querySelector("#items").firstElementChild;l&&(l=Nxq(this,l),this.centerListItems||l!==this.minComponentWidth)&&(this.minComponentWidth=l,this.offset=l*this.scrollCount,this.centerListItems&&rB1(this),zB(this),this.reposition_())};
var Nxq=function(l,e){var O=window.getComputedStyle(e).marginRight;O=Math.floor(Number(O.replace("px","")));var E=window.getComputedStyle(e).marginLeft;E=Math.floor(Number(E.replace("px","")));l.centerListItems&&!l.marginWidthRight&&(l.marginWidthRight=O,l.marginWidthLeft=E);return l.resizeSupportEnabled?e.getBoundingClientRect().width+O:e.offsetWidth+O},zB=function(l){var e=_.ud(l.hostElement).querySelector("#scroll-container").clientWidth,O=_.ud(l.hostElement).querySelector("#items").clientWidth;
l.offset<0?l.offset=0:l.offset+e>=O&&(l.offset=O-e)},rB1=function(l){l.offset-=(_.ud(l.hostElement).querySelector("#scroll-container").clientWidth+l.marginWidthRight-l.minComponentWidth)/2-l.marginWidthLeft};
_.Ji.Object.defineProperties(bF.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var l=_.hT("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(l==-1)l=this.JSC$12316_cachedViewportHeight,l=l>1320?5:l>1020?4:l>730?3:l>430?2:1;else if(l==0)return 0;_.Yd("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",l-1);l=_.hT("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(l>-1)return l;l=this.cachedViewportWidth;l=l>1600?6:l>1400?5:l>1300?4:l>1090?5:l>870?4:l>660?3:2;_.Yd("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
l);return l},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.a("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
bF.prototype.observeShownItems_=bF.prototype.observeShownItems_;bF.prototype.onChildElementFocus_=bF.prototype.onChildElementFocus_;bF.prototype.onItemsTransitionEnd_=bF.prototype.onItemsTransitionEnd_;bF.prototype.onIronResize_=bF.prototype.onIronResize_;bF.prototype.prevClick_=bF.prototype.prevClick_;bF.prototype.nextClick_=bF.prototype.nextClick_;bF.prototype.setButtonsState_=bF.prototype.setButtonsState_;bF.prototype.requestButtonsStateUpdate_=bF.prototype.requestButtonsStateUpdate_;
bF.prototype.reposition_=bF.prototype.reposition_;bF.prototype.reset=bF.prototype.reset;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],bF.prototype,"ytLazyListBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],bF.prototype,"atStart",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],bF.prototype,"atEnd",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"startIndex",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"endIndex",void 0);_.L([_.T({value:6}),_.q("design:type",Number)],bF.prototype,"initialCount",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"scrollCount",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"initialStartIndex",void 0);
_.L([_.T(),_.q("design:type",Object)],bF.prototype,"disableScrollEventListener",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"supportComponentResize",void 0);_.L([_.T({value:function(){var l=this;return function(){return l.prevClick_()}}}),
_.q("design:type",Function)],bF.prototype,"boundPrevClick",void 0);_.L([_.T({value:function(){var l=this;return function(){return l.nextClick_()}}}),
_.q("design:type",Function)],bF.prototype,"boundNextClick",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"useFloorScrolling",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"isSearch",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"dragging",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"dragMouseStart",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"dragOffsetStart",void 0);
_.L([_.T(),_.q("design:type",Object)],bF.prototype,"disableWheelScroll",void 0);_.L([_.T(),_.q("design:type",Object)],bF.prototype,"centerListItems",void 0);_.L([_.wP("iron-resize"),_.AA("guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bF.prototype,"onIronResize_",null);_.L([_.wP("transitionend"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],bF.prototype,"onItemsTransitionEnd_",null);
_.L([_.wP("focusin"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],bF.prototype,"onChildElementFocus_",null);_.L([_.AA("shownItems"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bF.prototype,"observeShownItems_",null);_.L([_.m0()],bF);_.XK.YtdHorizontalListBehavior=[];_.XK.YtdHorizontalListBehavior.push(_.sl,_.x.YtRendererBehavior,_.JL.YtLazyListBehavior,_.hx.YtdGuideStateAwareBehavior,bF.prototype);var x0d=["APP_STATE","PI"];var D01=_.E9(["about:blank"]),Sv6={pushState:window.history.pushState,replaceState:window.history.replaceState};var Mf=function(l){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=l;this.internalPushState=l.pushState.bind(l);this.internalReplaceState=l.replaceState.bind(l)};
Mf.prototype.init=function(){this.initialized=!0};
Mf.prototype.pushState=function(l,e){this.initialized||this.init();this.internalPushState&&this.internalPushState(l,"",e)};
Mf.prototype.replaceState=function(l,e){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(l,"",e)};
Mf.prototype.getState=function(){return this.history&&this.history.state};var QP1=function(l){var e=function(){var O=l.apply(this,arguments)||this;O.boundHistoryPushState=!1;O.boundHistoryReplaceState=!1;O.debugInfo={};return O};
_.m(e,l);e.prototype.init=function(){var O=_.i$("IFRAME");_.H2(O,_.OP(D01));O.sandbox="allow-same-origin";O.style.display="none";this.iframe=O;document.body.appendChild(O);this.bindHistoryStateFunctions();l.prototype.init.call(this)};
e.prototype.bindHistoryStateFunctions=function(){var O=this,E=[],J;this.iframe&&((J=this.iframe.contentWindow)==null?0:J.history)&&(J=this.iframe.contentWindow.history)&&(E.push(J),Object.getPrototypeOf(J)&&E.push(Object.getPrototypeOf(J)));window.history&&E.push(window.history);J=window.history;Object.getPrototypeOf(J)&&E.push(Object.getPrototypeOf(J));E.push(Sv6);J=function(M){for(var Z=null,u=0;u<E.length;u++){var d=E[u][M];if(typeof d==="function"){Z=d.bind(window.history);O.debugInfo[M]=u;break}}return Z};
if(!this.boundHistoryReplaceState){var z=J("replaceState");z&&(this.internalReplaceState=z,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(J=J("pushState"))&&(this.internalPushState=J,this.boundHistoryPushState=!0)};
return e}(Mf),x0q=function(){return QP1.call(this,window.history)||this};
_.m(x0q,QP1);x0q.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Ve=function(l){this.browserHistory=l;this.initialized=!1};
Ve.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Ve.prototype.pushState=function(l,e){this.initialized||this.init();this.browserHistory.pushState(l,e)};
Ve.prototype.replaceState=function(l,e){this.initialized||this.init();this.browserHistory.replaceState(l,e)};
Ve.prototype.handlePopstate=function(l){return l.state};_.lJq=function(l,e,O,E,J){this.endpoint=l;this.forward=e;this.historyEntry=O;this.JSC$26634_savedComponentState=E;this.legacyBorder=J===void 0?!1:J};var eA6=function(l,e){this.rootData=l;this.scrollTop=e};var R2=new _.Xa("PAGE_REQUEST_TOKEN"),dl6=new _.Xa("FETCH_PBJ_TOKEN");_.Z2=new _.Xa("EPHEMERAL_STORE_TOKEN");_.uF=function(l){this.data=Object.assign({},l);var e;(e=this.data.innertubeResponse)==null||delete e.frameworkUpdates};
_.uF.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.VZ)()};
_.dd=function(l){return Object.assign({},l.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var OAH=function(){this.maxSize=100;this.timeToDataCache=new Map};
OAH.prototype.get=function(l){var e=this.timeToDataCache.get(l);e&&(this.timeToDataCache.delete(l),this.timeToDataCache.set(l,e));if(e&&e.rootData&&(_.a("web_use_response_store_for_history_cache")||_.a("mweb_use_new_history_manager"))){var O=_.V2().resolve(_.Z2),E=ECq(e),J=!!E;if(E){if(E.content){var z=CC(O,E.content);J&&z?e.rootData.response=_.dd(z):J=!1}E.player&&(z=CC(O,E.player),J&&z?e.rootData.playerResponse=_.dd(z):J=!1);E.reelSequence&&(O=CC(O,E.reelSequence),J&&O?e.rootData.reelWatchSequenceResponse=
_.dd(O):J=!1)}J||(this.timeToDataCache.delete(l),e=void 0)}return e};
OAH.prototype.set=function(l,e){if(e.rootData&&(_.a("web_use_response_store_for_history_cache")||_.a("mweb_use_new_history_manager"))){var O=ECq(e),E=Object.assign({},e.rootData);O&&(O.content&&e.rootData.response&&(J9S(this,O.content,e.rootData.response),E.response=null),O.player&&e.rootData.playerResponse&&(J9S(this,O.player,e.rootData.playerResponse),E.playerResponse=null),O.reelSequence&&e.rootData.reelWatchSequenceResponse&&(J9S(this,O.reelSequence,e.rootData.reelWatchSequenceResponse),E.reelWatchSequenceResponse=
null));e=new eA6(E,e.scrollTop)}this.timeToDataCache.has(l)?this.timeToDataCache.delete(l):this.timeToDataCache.size>=this.maxSize&&(O=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(O.value));this.maxSize!==0&&this.timeToDataCache.set(l,e)};
OAH.prototype.clear=function(){this.timeToDataCache.clear()};
var ECq=function(l){var e=_.V2().resolve(_.MG(R2)),O;if((O=l.rootData)==null?0:O.endpoint)return e==null?void 0:dF8(e,l.rootData.endpoint);var E;_.hG(new _.Hk("History snapshot response data does not contain endpoint",(E=l.rootData)==null?void 0:E.url));return null},J9S=function(l,e,O){if(l.maxSize>0){var E;
(l=(E=O.responseContext)==null?void 0:E.maxAgeSeconds)&&Number(l)>0&&(E=_.V2().resolve(_.Z2),O=$D(O,l),E.put(e,new _.uF(O)))}};var XTq=function(l,e,O){this.endpoint=e;this.JSC$26639_savedComponentState=O===void 0?null:O;this.entryTime=l};var XTV=1;var ol=function(l){var e=function(){var O=l.apply(this,[].concat(_.kA(_.ke.apply(0,arguments))))||this;O.historyEntryTime=0;O.historySnapshotCache=O.createHistoryCache();return O};
_.m(e,l);e.prototype.createHistoryCache=function(){return new OAH};
e.prototype.saveAndReplace=function(O,E,J){var z=window.location.href;var M=M===void 0?{}:M;var Z=(Z=this.browserHistory.getState())&&Z.entryTime?Z.entryTime:zAV();O=this.createNewHistoryEntry(O,M,Z);this.saveSnapshot(Z,E,J);this.replaceState(O,z||window.location.href)};
e.prototype.saveAndPush=function(O,E,J,z,M){M=M===void 0?{}:M;this.saveSnapshot(this.historyEntryTime,J,z);J=this.historySnapshotCache;z=this.historyEntryTime;var Z=J.timeToDataCache.keys();Z=_.b(Z);for(var u=Z.next();!u.done;u=Z.next())u=u.value,u>z&&J.timeToDataCache.delete(u);E=this.createNewHistoryEntry(E,M);this.pushState(E,O)};
e.prototype.saveSnapshot=function(O,E,J){this.historySnapshotCache.set(O,new eA6(E,J))};
e.prototype.createNewHistoryEntry=function(O,E,J){J=J===void 0?zAV():J;return new XTq(J,O,E)};
e.prototype.handlePopstate=function(O){var E=l.prototype.handlePopstate.call(this,O),J=null,z=null,M=!1,Z=null;E&&E.entryTime&&(Z=this.historySnapshotCache.get(E.entryTime)||null,M=E.entryTime>this.historyEntryTime,this.historyEntryTime=E.entryTime,J=E.endpoint,z=E.JSC$26639_savedComponentState);this.handleHistoryCacheLoad(new _.lJq(J,M,Z,z),O);return E};
e.prototype.pushState=function(O,E){Number(O==null?void 0:O.entryTime)>=0&&(this.historyEntryTime=O.entryTime);l.prototype.pushState.call(this,O,E)};
e.prototype.replaceState=function(O,E){Number(O==null?void 0:O.entryTime)>=0&&(this.historyEntryTime=O.entryTime);l.prototype.replaceState.call(this,O,E)};
e.prototype.handleHistoryCacheLoad=function(){};
return e}(Ve),zAq=function(){var l=ol.call(this,new x0q)||this;
l.dispatchElement=null;l.entryIndex=0;return l};
_.m(zAq,ol);_.X=zAq.prototype;_.X.init=function(l){l=l===void 0?!0:l;ol.prototype.init.call(this);this.initialized||(l||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.X.handlePopstate=function(l){var e=null;l.state||(e="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return ol.prototype.handlePopstate.call(this,l);var O=new CustomEvent("yt-history-pop",{cancelable:!0});_.Wb(this.dispatchElement,"yt-history-pop",[O,{errorMsg:e}]);_.dQ(this.dispatchElement,"yt-close-all-popups-action");if(!O.defaultPrevented){O=_.V2().resolve(_.XZ);e=O.getCurrentData();var E=O.getCurrentPage();O=0;E?(E=_.Wb(this.dispatchElement,"yt-get-page-offset",
[E]),E.length>0&&(O=E[0])):_.hG(new _.Hk("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:e?e.page:"undefined"}));e&&(e.csn=_.P9());this.saveSnapshot(this.historyEntryTime,e,O)}return ol.prototype.handlePopstate.call(this,l)};
_.X.handleHistoryCacheLoad=function(l,e){l.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.b(_.dQ(this.dispatchElement,"yt-history-will-navigate",[e])).next().value||_.Wb(this.dispatchElement,"yt-history-load",[e,l]))};
_.X.pushState=function(l,e){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var O=new _.Hk("history.pushState is not a function",this.getDebugString());_.UW(O)}ol.prototype.pushState.call(this,l,e)};
_.X.replaceState=function(l,e){if(!this.browserHistory.boundHistoryReplaceState){var O=new _.Hk("history.replaceState is not a function",this.getDebugString());_.UW(O)}ol.prototype.replaceState.call(this,l,e)};
_.X.saveAndPush=function(l,e,O,E,J){J=J===void 0?{}:J;O&&(O.csn=_.P9());ol.prototype.saveAndPush.call(this,l,e,O,E,J)};
_.X.getDebugString=function(){var l=[];this.initialized&&l.push("i");this.browserHistory.boundHistoryReplaceState&&l.push("bhr");this.browserHistory.boundHistoryPushState&&l.push("bhs");"replaceState"in this.browserHistory.debugInfo&&l.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&l.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&l.push("ei:"+String(this.entryIndex));return l.join(",")};
_.$G=function(l,e){l.init(!0);var O=l.browserHistory.getState();l.replaceState(O,oK(e))};
zAq.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.W5=new _.Xa("DESKTOP_HISTORY_MANAGER_TOKEN");var bAq=[10,20,30,40,50,60],di=function(){this.currentPartitionIndex=0},Mnk=function(l){wJq({mainAppWeb:_.ST(),
survivalSli:{partitionMinute:l,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Vni=function(l){wJq({mainAppWeb:_.ST(),
survivalSli:{partitionMinute:l,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},ZAk=function(l){return l.currentPartitionIndex>=0&&l.currentPartitionIndex<bAq.length?bAq[l.currentPartitionIndex]:-1},uW1=function(l){return l.currentPartitionIndex>0&&l.currentPartitionIndex-1<bAq.length?bAq[l.currentPartitionIndex-1]:-1};
di.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var l=uW1(this);l>0&&Vni(l);l=ZAk(this);l>0&&Mnk(l);CbR(this)}};
var CbR=function(l){var e=ZAk(l);if(e>0){var O=uW1(l);O<0&&(O=0);l.intervalId=_.UD.addJob(function(){var E=uW1(l);E>0&&Vni(E);E=ZAk(l);E>0&&Mnk(E);CbR(l)},3,(e-O)*6E4);
l.currentPartitionIndex+=1}else l.currentPartitionIndex=-1};var oCq=function(){this.skipNextNavigation=!1},$q0=function(l,e,O){if(!e)return!1;
if(l.skipNextNavigation)return l.skipNextNavigation=!1;if(_.I(O,_.Db))return!1;var E,J,z;if((E=_.I(O,_.ms))==null?0:(J=E.browseEndpointContextSupportedConfigs)==null?0:(z=J.browseEndpointContextMainConfig)==null?0:z.skipConfirmation)return!1;var M;return((M=_.I(e.commandMetadata,_.V4))==null?void 0:M.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
oCq.prototype.showConfirmationDialog=function(l,e){this.navigateParams=e;this.customConfirmationCommand?_.V2().resolve(_.Zh).resolveCommand(this.customConfirmationCommand):(e={openPopupAction:{popup:{confirmDialogRenderer:{title:_.xp(_.ml("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.xp(_.ml("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.xp(_.ml("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.xp(_.ml("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.SU.getInstance().triggerAction("yt-open-popup-action",e,l))};
oCq.prototype.cancelPendingNavigation=function(){var l;((l=this.navigateParams)==null?void 0:l.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var WZF=function(){},gCC=function(l,e,O,E,J,z,M){O=O===void 0?{}:O;
M=M===void 0?{}:M;var Z=_.yd.instance,u,d=(u=_.I(e,_.Db))==null?void 0:u.url;return d?Dyq(Z,d,O,window.location.href,function(g,w){dqR(l,g,w,!1,!0,O,z,E)},function(){return!1}):Sd(Z,e,O,window.location.href,p0(e),function(g,w){dqR(l,g,w,!1,!0,O,z,E)},J,M)},dqR=function(l,e,O,E,J,z,M,Z){if(!l.JSC$12374_chunkHandler)if(O.page==="watch"||O.page==="learning_journey_watch")if(J||E){if(_.a("kevlar_continue_playback_without_player_response")){var u;
var d=(u=_.I(Z,_.ej))==null?void 0:u.videoId}l.JSC$12374_chunkHandler=new Ywi(_.bV,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:E,previousVideoId:d},tempData:z},M)}else l.JSC$12374_chunkHandler=new slq(_.bV);else O.page==="shorts"&&J&&!E?l.JSC$12374_chunkHandler=new Uf6(_.bV,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:z},M):l.JSC$12374_chunkHandler=new GBS(M);l.JSC$12374_chunkHandler.processChunk({endpoint:e,data:O});return l.JSC$12374_chunkHandler.s0.promise},
iAx=function(l,e,O,E,J){(O=_.HYq(O))&&dqR(l,e,O,!1,!0,E,void 0,J)};var wTq=function(){this.pendingNavigationPromise=null};
_.X=wTq.prototype;_.X.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.X.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.X.addEventListener=function(){throw Error("yh");};
_.X.dispatchEvent=function(){throw Error("yh");};
_.X.removeEventListener=function(){throw Error("yh");};var A91=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],gi=function(){_.Kx.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];nCx(this)};
_.m(gi,_.Kx);gi.prototype.verifyUser=function(){var l=nCx(this),e=l.logout;if(!l.sessionChange)return!0;this.dispatchEvent("ytsessionchange");e&&this.dispatchEvent("ytuserinvalid");return!1};
var nCx=function(l){var e=A91.map(function(J){var z;return(z=_.mW.get(J))!=null?z:""}),O=e.some(function(J,z){return l.sessionCookies&&l.sessionCookies[z]!==""&&J===""}),E=e.some(function(J,z){return l.sessionCookies&&l.sessionCookies[z]!==J});
l.sessionCookies=e;return{logout:O,sessionChange:E}};
gi.prototype.clearTimeout=function(){this.scheduledJobId&&(_.UD.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var uWT=new _.Xa("POSTMESSAGE_TUNNEL_TOKEN");var Mnu=["/parent_tools","/file_download","/artist_roster"],$qM=[gbM,iDx,w7T,nb2,AOt,dLq,a0p,kpA];var aJx=new _.Xa("APP_ROOT");var iF=new _.Xa("NAVIGATION_CONFIRMATION_SERVICE");var kYH="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),IJ0=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
wi=function(l,e){this.pendingNavigationPromise=null;this.JSC$12392_clientRoot=l;this.historyManager=e;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new WZF;this.debugString=l.is;l={"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};_.QW(_.SU.getInstance(),l,this.JSC$12392_clientRoot)},jNH,HAR,c9F,FZS,KZx;
_.m(wi,wTq);wi.prototype.reload=function(){_.DC(window.location.href)};
var fE1=function(l){l.currentEndpoint&&_.I(l.currentEndpoint,_.jT)?l.reload():l.currentEndpoint&&l.navigate(l.currentEndpoint,!0,void 0,{disableCache:!0})};
wi.prototype.navigate=function(l,e,O,E,J,z,M,Z){e=e===void 0?!1:e;O=O===void 0?{}:O;E=E===void 0?{}:E;var u=_.V2().resolve(iF),d;if(!M&&$q0(u,(d=this.currentEndpoint)!=null?d:void 0,l))return u.showConfirmationDialog(this.JSC$12392_clientRoot.parentElement,{endpoint:l,reload:e,params:O,tempData:E,requestType:J,createScreenConfig:z}),!1;var g=_.h7();_.L6(g,"eocs")||g.parkOrScheduleJob(function(){g.processSignal("eocs")},10,"eor");
M=p0(l);u=E.autonav==="1";d=_.P9();gi.instance||(gi.instance=new gi);var w=gi.instance.verifyUser(),n;if(_.a("enable_dark_theme_only_on_shorts")){var k=document.documentElement.hasAttribute("dark"),y=_.R4(!0)==="USER_INTERFACE_THEME_DARK";if(M==="shorts"){if(!k)if(_.a("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var c;_.DC((c=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:c.url,void 0,void 0,window.top)}}else{var f;_.DC(_.xd((f=_.I(l==null?
void 0:l.commandMetadata,_.V4))==null?void 0:f.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.a("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!k){var P;_.DC(_.xd((P=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:P.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(y!==k){var h;_.DC(_.xd((h=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:h.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(M==="watch"){if(mqq(_.V2().resolve(_.NJ),
l)&&(w||_.a("fix_miniplayer_navigation_killswitch")))return!1;_.a("block_all_player_prefetch_requests")||(n=cdq(_.$x(_.pQ),l,u))}else{var N,t=(N=_.I(this.currentEndpoint,_.ej))==null?void 0:N.videoId;t&&_.HJ.getInstance().then(function(jM){jM&&jM.set("yt-miniplayer-shown-video-id",t)})}n&&(O.frags=n.missingFragments_.join(","));
c=null;var r;f=(r=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:r.ignoreNavigation;if(!f)if(_.a("kevlar_command_url")){var D;c=(D=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?void 0:D.url}else c=_.KXx(l,O);if(c&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&c==this.lastNavigationUrl)return _.Pb({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.a2(v9(),"CANCELLED")}c&&(this.lastNavigationUrl=c);D5M();_.Yd("IS_HOMEPAGE_COLD",
!1);_.Yd("IS_RESULTS_PAGE_COLD",!1);_.Yd("IS_WATCH_PAGE_COLD",!1);l.loggingUrls&&l.loggingUrls.forEach(function(jM){jM.baseUrl&&_.St(jM.baseUrl)});
_.iAp(l,z?z.layer:0)&&_.a("kevlar_flush_logs_on_away_navigation")&&_.Pm();if(WZt(l))return!1;u3q(M,J);if(!c)return f||_.hG(new _.Hk("Can't construct url for endpoint",l)),_.a2(v9(),"FAILURE"),!1;_.bAd();r=l&&_.I(l,_.ms)&&_.I(l,_.ms).browseId.startsWith("UC");O=(D=_.a("enable_dark_theme_only_on_shorts")&&M==="shorts"?!1:_.T_()&&document.documentElement.hasAttribute("dark")!==_.f0())?{themeRefresh:1}:{};D&&!_.pv()&&_.R4()==="USER_INTERFACE_THEME_DARK"&&(O.theme="dark");r=D||y9R(c)&&!r&&!_.a("kevlar_disable_url_allowlist");
w||(r=!0);if(r||_.hT("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var b2;var $V=(b2=window.top)==null?void 0:b2.location.href}catch(jM){var gT;$V=(gT=jM)==null?void 0:gT.message}_.hG(new _.Hk("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:$V}))}l=_.a("kevlar_redirect_on_window_killswitch")?window.top:window;r8(c);_.DC(_.xd(c,O),void 0,void 0,l);_.a2(v9(),"ABORTED");return!1}_.a("kevlar_early_popup_close")&&_.Wb(this.JSC$12392_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12374_chunkHandler=void 0;var mx;$V=p0((mx=this.currentEndpoint)!=null?mx:void 0);(mx=M==="shorts"&&$V==="shorts")||_.eoW();_.qz(UDV)("nr",void 0);u&&_.Pb({webInfo:{navigationReason:"an"}});l.clickTrackingParams&&(E.itct=l.clickTrackingParams,E.csn=d);beT(E);E.endpoint=JSON.stringify(l);_.a("enable_unknown_lact_fix_on_html5")&&(_.V2().resolve(_.BF),E.lact=_.uN());_.mm.isEmpty(E)||_.bi(c,E);!_.a("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(z=Object.assign({},{layer:0},z,{parentLayer:3}));this.pendingNavigationPromise=z=gCC(this.pageFetcher,l,E,this.currentEndpoint,this.JSC$12392_isNetworkPromiseStale.bind(this),z,Z);z=z.then(this.handleNavigateSuccess.bind(this,z,l,n,E),this.handleNavigateFail.bind(this,z,l));_.n6().navigationFinishPromise=z;e={endpoint:l,pageType:M,url:oK(c),reload:!!e,noProgressBar:mx};J&&(e.type=J);this.fireEvent("yt-navigate-start",e);n&&iAx(this.pageFetcher,l,n,E,this.currentEndpoint);
return!0};
wi.prototype.JSC$12392_isNetworkPromiseStale=function(l){return l!=this.pendingNavigationPromise};
var pTk=function(l,e,O,E,J){var z=p0(e);e={endpoint:e,pageType:z};J&&(e.errorMessage=J);_.hG(O);e.navigationDoneMs=_.Yu("nd");e.navigationErrorReason=E;l.fireEvent("yt-navigate-error",e)};
wi.prototype.handleNavigateFail=function(l,e,O){var E=void 0;O instanceof _.lY&&(E=O,y3T(O));if(this.JSC$12392_isNetworkPromiseStale(l))return _.Tr(E);_.a2(v9(),"FAILURE");pTk(this,e,O,"101");return _.Tr(O)};
wi.prototype.handleNavigateSuccess=function(l,e,O,E,J){if(this.JSC$12392_isNetworkPromiseStale(l))return _.Ag();this.pendingNavigationPromise=null;if(!J)return e=new _.Hk("Missing data in response for navigation endpoint",e),_.Tr(e);if(J.reload)return window.location.reload(!0),_.Ag();O&&(l={},_.mm.extend(l,_.HYq(O),J),J=l);var z,M;O=(z=J)==null?void 0:(M=z.timing)==null?void 0:M.responseStart;O!=null&&_.Yu("srt",O);_.Yu("pdc");var Z,u;z=(Z=J)==null?void 0:(u=Z.timing)==null?void 0:u.info;z!=null&&
(Z=_.qz(_.tVt)(z),_.Pb(Z));_.a2(v9(),"SUCCESS");KZx(this,e,J,1,E);return _.Ag()};
var y9R=function(l){var e=l;_.a("kevlar_no_redirect_to_classic_2_ks")||(e=(new _.Jg(l)).getPath());if(e==="/"||e==="/red")return!1;var O=!0;kYH.forEach(function(E){l.indexOf(E)===0&&(O=!1)});
IJ0.forEach(function(E){var J=E.url;_.a(E.expFlag)&&l.indexOf(J)===0&&(O=!1)});
return O};
wi.prototype.publishPageData=function(l){this.fireEvent("yt-page-data-fetched",{pageData:l})};
jNH=function(l,e,O,E,J,z){var M=null;e.page!=="watch"&&e.page!=="learning_journey_watch"||E?e.filler||_.Wb(l.JSC$12392_clientRoot,"yt-stop-old-player",[e]):M=dqR(l.pageFetcher,J,e,O,!1,z,void 0,l.currentEndpoint);if(M)return M.then(l.publishPageData.bind(l,e));l.publishPageData(e);return _.Ag()};
HAR=function(l,e,O){var E=null;if(!O)return E=new _.Hk("Empty data",l.debugString,e);var J=O.response;if(!J)return E;var z={endpointType:p0(e)||"unknown"};J.responseContext?(J=J.responseContext.errors)&&(E=new _.Hk("Errors in response context",l.debugString,e,J,z)):E=J.error||J.errorMetadata?new _.Hk("Errors in response",l.debugString,e,J.error,J.errorMetadata,z):new _.Hk("responseContext missing",l.debugString,e,Object.keys(J).sort().join(","),z);var M,Z,u,d;if(l=O==null?void 0:(M=O.response)==null?
void 0:(Z=M.responseContext)==null?void 0:(u=Z.webResponseContextExtensionData)==null?void 0:(d=u.webResponseContextDebugData)==null?void 0:d.debugErrorMessages)for(M=0;M<l.length;M++);return E};
c9F=function(l){var e,O,E,J;return l==null?void 0:(e=l.response)==null?void 0:(O=e.responseContext)==null?void 0:(E=O.errors)==null?void 0:(J=E.error)==null?void 0:J["0"]};
FZS=function(l,e){var O;if(O=e.url&&!e.url.startsWith("/clip"))O=e.url,O=!_.a("webfe_parse_debug_param_in_resolveurl_service")&&l.searchDebugUrlMatcher.test(O)||f8d(O)?!0:!1;if(O)f8d(e.url)&&_.Qt(window.location.href).themeRefresh?(e=_.M9(e.url,"themeRefresh"),_.$G(l.historyManager,e)):e.url&&!EC2(e.url)&&_.$G(l.historyManager,e.url);else if(e.endpoint){var E,J,z;(O=(E=e.endpoint)==null?void 0:(J=E.commandMetadata)==null?void 0:(z=J.webCommandMetadata)==null?void 0:z.url)&&!EC2(O)&&_.$G(l.historyManager,
O);O&&e.url&&O!=e.url&&!e.url.match("playnext=1")&&new _.Hk("Response url mismatch in response data",l.debugString,O,e.url)}};
_.fJ0=function(l,e,O,E,J,z,M,Z){z=z===void 0?!1:z;var u=_.V2().resolve(iF),d;if(!Z&&$q0(u,(d=l.currentEndpoint)!=null?d:void 0,e))return u.showConfirmationDialog(l.JSC$12392_clientRoot.parentElement,{endpoint:e,data:O,navigationType:E,tempData:J,isMiniplayer:z,isForwardHistoryNavigation:M==null?void 0:M.forward}),_.Ag();l.pageFetcher.JSC$12374_chunkHandler=void 0;return KZx(l,e,O,E,J,z)};
KZx=function(l,e,O,E,J,z){z=z===void 0?!1:z;l.isMiniplayerExpansion=z;var M=E===2;l.currentEndpoint=e;l.numNavigations++;l.numNavigations&&(N_u.navigationCount=l.numNavigations);_.Yd("NUM_NAV",l.numNavigations);var Z=HAR(l,e,O);if(Z)return pTk(l,e,Z,"102",c9F(O)),_.Tr(Z);var u,d,g,w;Z=O.rootVe||(O==null?void 0:(u=O.response)==null?void 0:(d=u.responseContext)==null?void 0:(g=d.webResponseContextExtensionData)==null?void 0:(w=g.ytConfigData)==null?void 0:w.rootVisualElementType);!M&&O&&FZS(l,O);var n,
k;u=O==null?void 0:(n=O.response)==null?void 0:(k=n.responseContext)==null?void 0:k.maxAgeSeconds;if(!M&&!isNaN(u)){var y;_.a("kevlar_use_response_ttl_to_invalidate_cache")?y=(0,_.VZ)()+1E3*u:_.a("kevlar_always_invalidate_cache")&&(y=0);isNaN(y)||(O.expirationTime=y)}_.a("html5_enable_ssap_entity_id")&&M&&O.playerResponse&&(O.playerResponse.cacheMetadata={isCacheHit:!0});_.$x(_.pQ).prefetchCache_.clear();M||O.page!=="watch"||O.type!=="reduced"&&E!==1?E=jNH(l,O,M,!!z,e,J):(l.publishPageData(O),E=_.Ag());
J=E.then(function(){var c=p0(e);c={endpoint:e,pageType:c,fromHistory:M,response:O};c.navigationDoneMs=_.Yu("nd");l.fireEvent("yt-navigate-finish",c)});
O.csn&&Z&&O.clientSideGrafts&&E.then(l.attachClientSideGrafts.bind(l,O,_.B9()));return J};
_.X=wi.prototype;_.X.attachClientSideGrafts=function(l,e){l.clientSideGrafts&&e&&l.clientSideGrafts.forEach(function(O){if(e&&O){var E=_.cf(O);_.a("combine_ve_grafts")?_.yN().graftServerVe(O,e):_.DG(l.csn,e,E)}})};
_.X.handleSignalActionHistoryBack=function(){window.history.back()};
_.X.handleSignalActionCloseWindow=function(){window.close()};
_.X.handleSignalActionReloadPage=function(){this.reload()};
_.X.handleSignalActionSoftReloadPage=function(){fE1(this)};
_.X.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.X.fireEvent=function(l,e){l=new CustomEvent(l,{bubbles:!0,cancelable:!1,composed:!0,detail:e});this.dispatchEvent(l)};
_.X.addEventListener=function(l,e){this.JSC$12392_clientRoot.addEventListener(l,e)};
_.X.dispatchEvent=function(l){return this.JSC$12392_clientRoot.dispatchEvent(l)};
_.X.removeEventListener=function(l,e){this.JSC$12392_clientRoot.removeEventListener(l,e)};
wi[Jf]=[aJx,_.W5];_.Esx=new M5("browse","h8y2qb");_.JyA=new M5("search","JzFVk");_.XGM=new M5("shorts","xwEKAe");_.zid=new M5("watchFixie","nmfa2d");_.b5L=new M5("watchFlexy","CF909");_.MCg=new M5("watchGrid","Tm0L3c");_.VCV=new M5("watchLearningJourney","L3n37");var RA1;var T21=function(){return _.B.apply(this,arguments)||this};
_.m(T21,_.B);_.Ji.Object.defineProperties(T21,{template:{configurable:!0,enumerable:!0,get:function(){if(RA1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);RA1=l}l=RA1;return l}}});
_.L([_.K(TxR.YtPlayerBehavior),_.q("design:type",Object)],T21.prototype,"ytPlayerBehavior",void 0);_.L([_.U({is:"ytd-player"})],T21);var sN6;var GYS;var B2H;var AL=function(){var l=_.B.apply(this,arguments)||this;l.forceModernIconButton=!1;l.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return l};
_.m(AL,_.B);AL.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]]"}}}}}};
AL.prototype.handleAccountLinkingStateChangedCommand=function(l){if(l=_.I(l,TYC)){var e,O=(e=this.data)==null?void 0:e.providerKey;e=l.providerKey;O&&e&&O.id===e.id&&O.subject===e.subject&&(l=l.linked,l!==void 0&&(this.set("data.linked",l),this.notifyPath("data.linked"),_.a("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(l)))}};
AL.prototype.setPlayerAccountLinkState=function(l){var e=new fxu;Fpu(e,R8d(new TwA,l));var O=_.bV();O&&O.getPlayerPromise().then(function(E){E.setAccountLinkState(_.x4(e.JSC$10108_serializeBinary(),4));E.updateAccountLinkingConfig(l)})};
AL.prototype.handleShowAccountLinkDialog=function(){var l=this.get("button.buttonRenderer.command");l&&_.ap([l],this.hostElement)};
_.Ji.Object.defineProperties(AL.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}}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.L([_.K([_.ZH.YtActionHandlerBehavior]),_.q("design:type",Object)],AL.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AL.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],AL.prototype,"overrides",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],AL.prototype,"forceModernIconButton",void 0);_.L([_.T({value:"bottom"}),_.q("design:type",String)],AL.prototype,"buttonTooltipPosition",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],AL.prototype,"forceIconButton",void 0);_.L([_.T(),_.q("design:type",Boolean)],AL.prototype,"disableTextTransform",void 0);
_.L([_.R("data","data.linked","data.isWarning"),_.q("design:type",Object),_.q("design:paramtypes",[])],AL.prototype,"button",null);_.L([_.U({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],AL);
_.Y(AL,"ytd-account-link-button-renderer",function(){if(B2H!==void 0)return B2H;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return B2H=l},{mode:1});var Pb0;var UqC=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],nC=function(){return _.B.apply(this,arguments)||this};
_.m(nC,_.B);nC.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
nC.prototype.updateButtonActiveState=function(){var l=this,e=!!UqC.find(function(O){return l.currentState===O});
this.button&&(this.button.isPressed=e)};
_.Ji.Object.defineProperties(nC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.playlistLoopStateEntity)==null?void 0:l.state)||((e=this.data)==null?void 0:e.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var l=void 0,e;if(this.currentState&&((e=this.data)==null?0:e.states)){e=_.b(this.data.states);for(var O=e.next();!O.done;O=e.next()){O=_.I(O.value,_.e9R);var E=void 0;if(((E=O)==null?void 0:E.state)===this.currentState){l=O;break}}}return l}}});
nC.prototype.updateButtonActiveState=nC.prototype.updateButtonActiveState;_.L([_.K(_.sY),_.q("design:type",Object)],nC.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.mqV}),_.q("design:type",Object)],nC.prototype,"playlistLoopStateEntity",void 0);_.L([_.T(),_.q("design:type",Object)],nC.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],nC.prototype,"forceIconOnly",void 0);_.L([_.aB("ytd-button-renderer"),_.q("design:type",_.ek)],nC.prototype,"button",void 0);
_.L([_.R("data","playlistLoopStateEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],nC.prototype,"currentState",null);_.L([_.AA("currentButtonStateRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nC.prototype,"updateButtonActiveState",null);_.L([_.R("currentState"),_.q("design:type",Object),_.q("design:paramtypes",[])],nC.prototype,"currentButtonStateRenderer",null);
_.L([_.U({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],nC);
_.Y(nC,"ytd-playlist-loop-button-renderer",function(){if(Pb0!==void 0)return Pb0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Pb0=l},
{mode:1});var YRx;var hAi=_.ml("DOWNLOAD",{},"Download"),LZS=_.ml("DOWNLOADING",{},"Downloading"),tn1=_.ml("DOWNLOADED",{},"Downloaded"),qR1=_.ml("RETRY",{},"Retry"),al=function(){var l=_.B.apply(this,arguments)||this;l.forceIconButton=!1;l.forceIconOnly=!1;l.overrides=!1;l.buttonTooltipPosition=!1;l.styleActionButton=!1;l.disableTextTransform=!1;l.downloadProgress=0;l.isDownloadComplete=!1;l.isHidden=!0;l.transferState="TRANSFER_STATE_UNKNOWN";l.isVideoDeletedByUser=!1;l.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return l};
_.m(al,_.B);_.X=al.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.dataChanged=function(){var l;(l=this.data)!=null&&l.text||(l=_.Yp(_.Om().getState(),this.videoId),this.updateButtonState(l))};
_.X.computeVideoId=function(l){return l};
_.X.showHideButton=function(){this.updateButtonVisibility()};
_.X.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.X.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.X.updateButtonState=function(l){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==LZS||!_.KO(l))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(l){case "TRANSFER_STATE_UNKNOWN":l=hAi;var e="OFFLINE_DOWNLOAD";var O="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":l=qR1;e="OFFLINE_DOWNLOAD";O="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":l=tn1;e="OFFLINE_PIN";O="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":l=
LZS;e="OFFLINE_DOWNLOADING_ZERO";O="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":l=qR1;e="OFFLINE_DOWNLOAD";O="ACTION_RETRY";break;default:l=hAi,e="OFFLINE_DOWNLOAD",O="ACTION_ADD"}this.isVideoDeletedByUser&&(l=hAi,e="OFFLINE_DOWNLOAD",O="ACTION_ADD");var E=Object.assign({},this.data);E.text=_.xp(l);E.tooltip=l;E.icon={iconType:e};E.size="SIZE_DEFAULT";E.style="STYLE_DEFAULT";_.I(E.command,_.AM)&&(_.I(E.command,_.AM).action=O);this.set("data",E)}};
_.X.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var l="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?l="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?l="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?l="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?l="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?l="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(l="OFFLINE_PIN",this.isDownloadComplete=!0);var e;l!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.text=_.xp(LZS),e.tooltip=LZS,e.icon={iconType:l},_.I(e.command,_.AM)&&(_.I(e.command,_.AM).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
al.prototype.updateProgress=al.prototype.updateProgress;al.prototype.onTransferStateChanged=al.prototype.onTransferStateChanged;al.prototype.showHideButton=al.prototype.showHideButton;al.prototype.dataChanged=al.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],al.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],al.prototype,"forceIconButton",void 0);
_.L([_.T(),_.q("design:type",Object)],al.prototype,"forceIconOnly",void 0);_.L([_.T(),_.q("design:type",Object)],al.prototype,"overrides",void 0);_.L([_.T(),_.q("design:type",Object)],al.prototype,"buttonTooltipPosition",void 0);_.L([_.T(),_.q("design:type",Object)],al.prototype,"styleActionButton",void 0);_.L([_.T(),_.q("design:type",Object)],al.prototype,"disableTextTransform",void 0);
_.L([_.T({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.q("design:type",String)],al.prototype,"videoId",void 0);_.L([_.T(),_.q("design:type",Object)],al.prototype,"data",void 0);_.L([_.T({selector:LO,selectorArgs:["videoId"]}),_.q("design:type",Object)],al.prototype,"downloadProgress",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],al.prototype,"isDownloadComplete",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],al.prototype,"isHidden",void 0);_.L([_.T({selector:_.Yp,selectorArgs:["videoId"]}),_.q("design:type",String)],al.prototype,"transferState",void 0);_.L([_.T({selector:_.cKt,selectorArgs:["videoId"]}),_.q("design:type",Object)],al.prototype,"isVideoDeletedByUser",void 0);_.L([_.T({selector:yKd,selectorArgs:["videoId"]}),_.q("design:type",Object)],al.prototype,"offlineabilityState",void 0);
_.L([_.T({value:!0}),_.q("design:type",Boolean)],al.prototype,"showTooltips",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],al.prototype,"sendCommandWhenDisabled",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],al.prototype,"disabled",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],al.prototype,"dataChanged",null);
_.L([_.y0("offlineabilityState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],al.prototype,"showHideButton",null);_.L([_.y0("transferState","isVideoDeletedByUser"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],al.prototype,"onTransferStateChanged",null);_.L([_.y0("downloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],al.prototype,"updateProgress",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],al);
_.Y(al,"ytd-download-button-renderer",function(){if(YRx!==void 0)return YRx;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YRx=l},{mode:2});var vC1;var N21,r91=function(){if(N21!==void 0)return N21;var l=document.createElement("template");_.p(l,'\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 N21=l};var Dqq=_.a("web_button_rework")&&_.LH("BUTTON_REWORK")||_.a("web_button_rework_with_live"),SRR=_.Cv("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,kG=function(){var l=_.B.apply(this,arguments)||this;l.isPressed=!1;l.forceIconButton=!1;l.forceIconOnly=!1;l.forceModernIconButton=!1;l.alignByText=!1;l.isShorts=!1;l.animatedText=!1;l.shouldAnimate=!1;l.JSC$12430_browserSupportsAnimation=_.a("web_supports_animations_api");l.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};l.onTap=function(){var e;if((e=l.data)==null||!e.defaultNavigationEndpoint){var O;e=!((O=l.data)==null?0:O.isToggled);var E;if((E=l.data)==null||!E.preventAutoToggle){l.shouldAnimate=!1;l.disableTextUpdateJobId&&_.UD.cancelJob(l.disableTextUpdateJobId);l.disableTextUpdateJobId=_.UD.addLowPriorityJob(function(){l.disableTextUpdateJobId=void 0},SRR);
var J;l.set("data.isToggled",!((J=l.data)==null?0:J.isToggled));O=l.getInnertubeIcon();E={toggled:e,actions:{}};O&&(E.actions[O.toLowerCase()]=e);_.$u(l.hostElement,"yt-toggle-button",E)}}};
return l};
_.m(kG,_.B);_.X=kG.prototype;_.X.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.UD.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.toggle=function(l){var e;this.set("data.isToggled",l!==void 0?l:!((e=this.data)==null?0:e.isToggled))};
_.X.handleUpdateToggleButtonStateCommand=function(l){if(this.data){l=_.I(l,q9S);var e,O,E,J=(e=this.data)==null?void 0:(O=e.toggleButtonSupportedData)==null?void 0:(E=O.toggleButtonIdData)==null?void 0:E.id;J&&l&&J===(l==null?void 0:l.buttonId)&&this.set("data.isToggled",l.toggled)}};
_.X.handleUpdateToggleButtonTextAction=function(l){if(this.data){l=_.I(l,yKq);var e,O,E,J=(e=this.data)==null?void 0:(O=e.toggleButtonSupportedData)==null?void 0:(E=O.toggleButtonIdData)==null?void 0:E.id;J&&l&&J===(l==null?void 0:l.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=l.defaultNumericalValue,this.set("data.defaultText",l.defaultText),this.set("data.toggledText",l.toggledText),this.shouldAnimate=!1)}};
_.X.getInnertubeIcon=function(){var l=this.data;if(l){var e,O,E=((e=l.defaultIcon)==null?0:e.iconType)?(O=l.defaultIcon)==null?void 0:O.iconType:null,J,z;e=((J=l.toggledIcon)==null?0:J.iconType)?(z=l.toggledIcon)==null?void 0:z.iconType:E;return l.isToggled?e:E}};
_.X.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Ji.Object.defineProperties(kG.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l={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$12430_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var e=l.renderer;var O=l.element;var E=l.toggled;var J=l.onTapCallback;var z=l.commandClientArgs;var M=l.overrides;var Z=l.forceIcon;var u=l.forceModernIconButton;var d=l.forceDisabled;var g=l.useAnimatedText;var w=l.animatedTextProps;l=jN8(e,E);Z=!e.defaultIcon||!Z&&e.defaultText?e.defaultIcon?"leading":void 0:u?"icon-only":"icon-only-40";Z==="icon-only-40"&&(l.type="text");var n;u=Object;var k=u.assign,y;a:switch((y=
e.style)==null?void 0:y.styleType){case "STYLE_COMPACT_GRAY":y={size:"S"};break a;default:y={size:"M"}}var c=!!E;var f=(f=E&&e.toggledText||e.defaultText)?_.Ut(f):void 0;g?(g=_.lG(E&&e.toggledText||e.defaultText))&&w&&!isNaN(Number(w.numberValue))?(w.numberText=g,E&&(w.numberValue+=1),g=w):g=void 0:g=void 0;var P,h,N,t;var r=(w=((h=E?e.toggledAccessibilityData||((r=e.toggledText)==null?void 0:r.accessibility):e.accessibilityData||((P=e.defaultText)==null?void 0:P.accessibility))==null?void 0:(N=h.accessibilityData)==
null?void 0:N.label)||((t=e.accessibility)==null?void 0:t.label))?w:_.lG(E&&e.toggledText||e.defaultText);d=d===void 0?e.isDisabled:d;O=KZp(e,E,J,O,z);E=pTu(e,E);E!=null&&E.length?(E=_.vf({innertubeCommand:iG8(E),forceNewState:!0}),E=NT(E)?E:void 0):E=void 0;e=k.call(u,{},l,y,{iconPosition:Z},M,{focused:!1,toggled:c,toggleable:!0,formattedButtonText:f,animatedTextProps:g,accessibilityLabel:r,disabled:d,onTap:O,aTagConfig:E},trd((n=e.colorData)==null?void 0:n.basicColorPaletteData));e.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(e.type="filled");return e}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var l=this.getInnertubeIcon();if(l)return _.w6(l)}}});
kG.prototype.resetAnimation=kG.prototype.resetAnimation;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],kG.prototype,"isPressed",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"forceIconButton",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"forceIconOnly",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"forceModernIconButton",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"alignByText",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"overrides",void 0);
_.L([_.T(),_.q("design:type",Boolean)],kG.prototype,"disabled",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"isShorts",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"buttonTooltipPosition",void 0);_.L([_.T(),_.q("design:type",Object)],kG.prototype,"animatedText",void 0);_.L([_.T(),_.q("design:type",String)],kG.prototype,"textNumberValue",void 0);_.L([_.T({computed:"computeTooltip(data, data.isToggled)"}),_.q("design:type",Object)],kG.prototype,"tooltip",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kG.prototype,"resetAnimation",null);_.L([_.R("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.q("design:type",Object),_.q("design:paramtypes",[])],kG.prototype,"computedButtonShape",null);_.L([_.R("data.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],kG.prototype,"computedIcon",null);
_.L([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],kG);Dqq&&_.Y(kG,"ytd-toggle-button-renderer",r91,{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var Uh=_.XO(function(l){function e(d){var g;return _.V(function(w){if(w.nextAddress==1)return(g=!c9t(d,Z())||!Z().enabled)?w.jumpTo(2):_.C(w,sNx(),3);w.nextAddress!=2&&(g=w.yieldResult);if(g)return w.return();O();setTimeout(function(){M(!1)},1500);
_.Cl(w)})}
function O(){setTimeout(function(){M(!0);var d;(d=E.lottieEl)==null||d.goToAndPlay(0)},150)}
var E=_.iV(),J=_.b(_.AF(!1,void 0,"JJXzp")),z=J.next().value,M=J.next().value,Z=_.Et(l.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.sC(function(){var d,g;((d=l.settings)==null?void 0:(g=d.call(l))==null?void 0:g.uniqueId)==="this is not intended behavior"&&_.hG(new _.Hk("Smartimation Settings is undefined"))});
_.Gh(function(){Z().experimentEnabled&&(Z().enabled?FZW(e):(M(!1),fJM(e)),_.B3(function(){fJM(e)}))},"FRiAUe");
_.Gh(function(){Z().timings.join("");Z().experimentEnabled&&(RAx(Z()),_.B3(function(){T2T(Z())}))},"VKiJOe");
var u=_.mF(function(){var d=E,g=Z().uniqueId+"-border",w,n;var k="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((n=(w=_.V2().resolve(_.MG(_.lp)))==null?void 0:w())!=null&&n?"dark":"light")+"_v2.json";return{animationRef:d,animationConfig:{name:g,autoplay:!1,loop:!1,path:k}}},void 0,"tgykab");
J={};return _.W("yt-smartimation",{class:_.ax(l.className,"smartimation",(J["smartimation--experiment-enabled"]=function(){return Z().experimentEnabled},J["smartimation--active-border"]=z,J["smartimation--enable-masking"]=GYW(),J))},_.W(_.A,{cond:function(){return Z().experimentEnabled},
then:function(){return _.W("div",{class:"smartimation__border"},_.W(_.k7,{className:"smartimation__border-gradient",data:u,animationName:function(){return u().animationConfig.name}}))}}),_.W("div",{class:"smartimation__content"},l.children))},"B");
Uh.idomCompat=!0;_.Zw(Uh,"yt-smartimation",{props:{className:_.lB,settings:_.lB}});var Il=function(){var l=_.B.apply(this,arguments)||this;l.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};l.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};l.shouldEnableSmartimation=!1;return l};
_.m(Il,_.B);Il.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Il.prototype.onDataChanged=function(){var l,e;this.shouldEnableSmartimation=(((l=this.data)==null?void 0:(e=l.timedAnimationData)==null?void 0:e.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Il.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var l=_.I(this.data.likeButton,_.hK),e=_.I(this.data.dislikeButton,_.hK);return!!((l==null?0:l.isToggled)||(e==null?0:e.isToggled))};
Il.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]]"}}}}}};
_.Ji.Object.defineProperties(Il.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var l,e,O=((l=this.data)==null?void 0:(e=l.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:O,enabled:this.shouldEnableSmartimation,experimentEnabled:O.length>0}}}});
Il.prototype.onDataChanged=Il.prototype.onDataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Il.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Il.prototype,"likeButtonOverride",void 0);_.L([_.T(),_.q("design:type",Object)],Il.prototype,"dislikeButtonOverride",void 0);
_.L([_.R("shouldEnableSmartimation"),_.q("design:type",Object),_.q("design:paramtypes",[])],Il.prototype,"smartimationSettings",null);_.L([_.AA("data"),_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Il.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Il);
_.Y(Il,"ytd-segmented-like-dislike-button-renderer",function(){if(vC1!==void 0)return vC1;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return vC1=l},{mode:1});var QNq;var xqC;(xqC=document.body)==null||xqC.setAttribute("rounded-container","");var lNq={};lNq.YtToggleButtonBehavior=[_.ZH.YtActionHandlerBehavior,yG.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 l=this.data.isToggled;if(!this.isModal_(l)){if(!this.data.preventAutoToggle){this.toggle();var e={toggled:this.data.isToggled,actions:{}};e.actions[this.buttonIcon]=this.data.isToggled;_.$u(this.hostElement,"yt-toggle-button",e)}e=this.data.defaultServiceEndpoint||null;var O=this.data.toggledServiceEndpoint||null;if(e&&O||e&&this.data.preventAutoToggle)l=l?O:e,e=this.disableCommandHandlerOverride,_.a("killswitch_toggle_button_behavior_resolve_command")||e?_.ii(this.hostElement,
[l]):_.aX(l,this.hostElement),_.$u(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:l})}},
stateChanged_:function(){var l=this.data;if(l){var e=l.isToggled;this._setEndpoint(this.computeEndpoint_(l));this._setServiceEndpoint(this.computeServiceEndpoint_(l));this._setButtonIcon(this.computeButtonIcon_(l,e));this._setButtonText(this.computeButtonText_(l,e));this._setButtonAccessibility(this.computeAccessibility_(l,e));this._setButtonTooltip(this.computeTooltip_(l,e));this._setButtonClass(this.computeButtonClass_(l,e));this._setIconPositionType(this.computeIconPositionType_(l));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=e):this.elements_.button.setAttribute("aria-pressed",e));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=e)}},
shouldSetIconActiveState_:function(){return _.a("kevlar_system_icons")},
toggle:function(l){this.set("data.isToggled",l!==void 0?l:!this.data.isToggled);_.a("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(l){if(l){var e,O;return!!((e=this.data)==null?0:(O=e.toggledServiceEndpoint)==null?0:O.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(l){return l&&l.defaultNavigationEndpoint||null},
computeButtonIcon_:function(l,e){var O=l&&l.defaultIcon?_.w6(l.defaultIcon.iconType):null;l=l&&l.toggledIcon?_.w6(l.toggledIcon.iconType):O;return e?l:O},
handleUpdateToggleButtonStateCommand_:function(l){l=l.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==l.buttonId&&this.toggle(l.toggled)},
computeButtonText_:function(l,e){return l?e&&l.toggledText||l.defaultText||null:null},
computeAccessibility_:function(l,e){return l?(e?this.get("toggledAccessibilityData.accessibilityData",l):this.get("accessibilityData.accessibilityData",l))||l.accessibility||null:null},
computeTooltip_:function(l,e){return l?e&&l.toggledTooltip||l.defaultTooltip||null:null},
computeButtonClass_:function(l,e){if(!l)return"";var O="",E=l.toggledStyle||l.style;if(e=e?E:l.style){e.styleType&&(e=e.styleType);try{O+=e.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.LZ(J,e,typeof e),_.hG(J)}}if(l=l.size){l.sizeType&&(l=l.sizeType);try{O+=l.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.LZ(J,l,typeof l),_.hG(J)}}return O.trim()},
computeIconPositionType_:function(l){return l&&l.iconPosition||null},
computeServiceEndpoint_:function(l){var e=l&&l.serviceEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:O&&l.command?l.command:null},
handleUpdateToggleButtonTextAction_:function(l){l=l.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==l.buttonId&&(this.set("data.defaultText",l.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",l.toggledText),this.notifyPath("data.toggledText"))}}];_.Y7("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var evR=_.a("web_button_rework")&&_.LH("BUTTON_REWORK")||_.a("web_button_rework_with_live"),mn=function(){var l=_.B.apply(this,arguments)||this;l.systemIcons=_.a("kevlar_system_icons");l.roundedContainer=!0;return l};
_.m(mn,_.B);mn.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
mn.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var l=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var e={toggled:!!this.data.isToggled,actions:{}};e.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var O,E;e.actions.playlistId=(O=this.data.defaultServiceEndpoint)==null?void 0:(E=O.playlistEditEndpoint)==null?void 0:E.playlistId;_.$u(this.hostElement,"yt-toggle-button",e)}(l=l?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(l)}};
mn.prototype.onYtNavigate=function(l){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);e&&(l.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.Ji.Object.defineProperties(mn,{template:{configurable:!0,enumerable:!0,get:function(){if(QNq===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);QNq=l}l=QNq;return l}}});
mn.prototype.onYtNavigate=mn.prototype.onYtNavigate;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],mn.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],mn.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(lNq.YtToggleButtonBehavior),_.q("design:type",Object)],mn.prototype,"ytToggleButtonBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],mn.prototype,"data",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],mn.prototype,"showTooltips",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mn.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mn.prototype,"roundedContainer",void 0);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mn.prototype,"onYtNavigate",null);
_.L([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:evR})],mn);var O9H;_.ye=new _.Xa("PANEL_CONTROLLER_TOKEN");_.pC=new _.Xa("SHEET_CONTROLLER_TOKEN");_.KC=new _.Xa("DIALOG_CONTROLLER_TOKEN");O9H=new _.Xa("DIALOG_CONTAINER_TOKEN");var vCx=_.ml("DOWNLOAD",{},"Download"),N2x=_.ml("DOWNLOADING",{},"Downloading"),r9x=_.ml("DOWNLOADED",{},"Downloaded"),Dqd=_.ml("RETRY",{},"Retry");var QNd=[],xqq=!1;var Ej6=_.XO(function(l){var e=MeM,O=function(){return""},E=Jvx(l.data),J=XOg(l.data),z=zvV(l.data),M=b9V(l.data);
e=function(){var Z=l.data(),u=tnT(Z,E(),J(),z(),M()),d=!!Z.videoId,g=u.text;return{title:d?g:void 0,tooltip:d?void 0:g,accessibilityText:g,onTap:u.onTap,iconName:u.iconType,style:Z.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:u.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:Z.buttonSize}};
O={};O=_.ax("ytDownloadButtonViewModelHost",(O.ytDownloadButtonViewModelIsHidden=function(){var Z=l.data(),u=M();return Z.playlistId||u()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||u()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},O));
return _.W("download-button-view-model",{class:O},_.W(_.hM,{data:e}))},"C");
Ej6.idomCompat=!0;var XOS=_.XO(function(l){var e=l.backgroundLottieRef;var O=l.foregroundLottieRef;var E=l.children;var J=l.wrapperClass;var z=l.disableAnimation;l=function(){return(_.a("web_animated_actions")||_.a("web_animated_actions_v2"))&&!(z==null?0:z())};
return _.W("yt-animated-action",{class:_.ax("animated-action__container",J)},_.W("div",{class:"animated-action__content-with-background"},_.W(_.A,{cond:l,then:function(){return _.W(Jv6,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:e==null?void 0:e(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(Vep()?"dark":"light")+"_v5.json"}}}})}}),E),_.W(_.A,{cond:l,
then:function(){return _.W(Jv6,{lottiePlayerProps:function(){return{animationRef:O==null?void 0:O(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(Vep()?"dark":"light")+"_v4.json"}}}})}}))},"D");
XOS.idomCompat=!0;var Jv6=_.XO(function(l){var e=l.wrapperClass;var O=l.lottieClass;var E=l.lottiePlayerProps;return _.W("div",{class:_.ax("animated-action__lottie",e),"aria-hidden":"true"},_.W(_.k7,{className:O,data:E,animationName:function(){return E().animationConfig.name}}))},"E");var Z9x={isOpen:!1};var C5T={isAllowed:!1};var $Mg={errorMessage:"",title:"",privacy:"",isDisabled:!0};var dML={isOpen:!1};var i92={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var zvq={response:void 0};var Av8=function(l,e){l=l===void 0?zvq:l;switch(e.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},l,{response:e.payload});default:return l}};var b9q={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var njW=function(l,e){l=l===void 0?b9q:l;switch(e.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},l,{nextDisabled:e.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},l,{nextCommand:e.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},l,{footerSubmissionData:e.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},l,{isImpersonationValid:e.payload});default:return l}};var Me0={reportFormData:void 0,reportDetailsFormData:void 0};var aNx=function(l,e){l=l===void 0?Me0:l;switch(e.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},l,{reportFormData:e.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},l,{reportDetailsFormData:e.payload});default:return l}};var Vex=void 0;_.a("mweb_enable_redux_store_on_demand")||(Vex=new eT(ktM()));var Z91=_.XO(function(l){l=_.J3(l,{themeOverride:void 0,animationRef:{}});var e=l.animatedIconType,O=l.active,E=l.themeOverride,J=l.animationRef;l=l.staticIconFn;var z=_.b(_.AF(void 0,void 0,"P5a72b")),M=z.next().value,Z=z.next().value,u=function(){a:{var f=e();var P=E==null?void 0:E();var h;P=(P==null?void 0:P.useDarkTheme)||((h=_.V2().resolve(_.MG(_.lp)))==null?void 0:h());switch(f){case "LIKE":Vex||(Vex=new eT(ktM()));f=(f=m1M(Vex.getState()))&&f.animationLightUrl&&f.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:P?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:P?f.animationDarkUrl:f.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(f){P=f;break a}P="animated_like_icon_"+(P?"dark_v4":"light_v4");P={lottiePlayerProps:{animationConfig:{name:P,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+P+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":P={lottiePlayerProps:{animationConfig:{name:P?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(P?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}P=void 0}return P},d=function(){var f,P;
return(P=(f=u())==null?void 0:f.lottiePlayerProps.animationConfig.name)!=null?P:""},g=function(){if(u()){var f=u().lottiePlayerProps.animationConfig.path;
return nd.get(f)||M()}};
z=_.b(_.AF(!1,void 0,"h6xR3c"));var w=z.next().value;z=z.next().value;var n=mMq(z),k=function(){var f=u(),P,h,N;return(N=f==null?void 0:(P=f.lottiePlayerProps.animationConfig)==null?void 0:(h=P.rendererSettings)==null?void 0:h.className)!=null?N:""},y=void 0,c=void 0;
_.Gh(function(){var f=u(),P=d(),h=g(),N=w(),t=O();if(f&&(c!==P&&(c=P,y=t,P=J(),n.animationConfig=f.lottiePlayerProps.animationConfig,n.animationRef=P,h&&(n.animationConfig.animationData=h,n.animationConfig.path=void 0),P=f.lottiePlayerProps.animationConfig.path,!nd.get(P)&&f.lazyLoad&&P&&INx(P,Z)),!(N||f.lazyLoad&&!h))){if(h=!J().lottieEl)t?(N=f.totalFrames,n.animationConfig.initialSegment=[N-1,N]):n.animationConfig.initialSegment=void 0;if(y!==t&&!h)if(h=J(),t){var r;(r=h.lottieEl)==null||r.playSegments([0,
f.totalFrames],!0)}else{var D;(D=h.lottieEl)==null||D.playSegments([0,1],!0)}y=t}},"YCYOCe");
return _.W("animated-icon",{class:"ytAnimatedIconHost"},_.W(_.A,{cond:function(){var f,P;return!((f=u())==null||!f.lottiePlayerProps.animationConfig.path||((P=u())==null?0:P.lazyLoad)&&!g()||w())},
then:function(){return _.W(_.k7,{data:n,animationName:d,className:k,animationRef:J})},
else:l}))},"F");_.jf=_.XO(function(l){var e=_.e4("yt-subscribe-button-view-model"),O=_.e4("div"),E=_.e4("div"),J=_.iV(),z=_.iV(),M=_.iV(),Z=_.kD(wT2,function(){return l.data().stateEntityStoreKey}),u=_.kD(A9x,function(){var oq,ZS;
return(ZS=(oq=l.data().notificationStateEntityStoreKeys)==null?void 0:oq.subsNotificationStateKey)!=null?ZS:""}),d=function(){return!l.data().enableSubscribeButtonPostClickAnimation},g=_.b(_.AF(0,void 0,"eTsWvc")),w=g.next().value,n=g.next().value;
g=_.b(_.AF(0,void 0,"dniDQ"));var k=g.next().value,y=g.next().value;g=_.b(_.AF(!1,void 0,"EluPic"));var c=g.next().value,f=g.next().value;g=_.b(_.AF(!1,void 0,"r0jnre"));var P=g.next().value,h=g.next().value;g=_.b(_.AF(!1,void 0,"KMvoQe"));var N=g.next().value,t=g.next().value,r;g=_.b(_.AF(!1,void 0,"aSENce"));var D=g.next().value,b2=g.next().value,$V=function(){h(!0);_.pT(_.UD,function(){h(!1)},1500)};
_.Gh(function(){var oq=P();wX(function(){oq&&!d()&&Z()&&Tlq(J,z,M)})},"LgmX6c");
_.Gh(function(){var oq=Z();wX(function(){if(!d()&&oq){var ZS;((ZS=l.animateWidth)==null?0:ZS.call(l))&&Rvx(e.value,!!oq.subscribed,w(),k());var Ou,uq;((Ou=r)==null?0:Ou.subscribed)||!oq.subscribed||oq.key!==((uq=r)==null?void 0:uq.key)||$V();r=oq}})},"iZzoUb");
g=_.mF(function(){var oq,ZS,Ou,uq=l.data(),ZV=!((oq=Z())==null||!oq.subscribed);oq=!((ZS=l.isOverlay)==null||!ZS.call(l));ZS=c()?e:void 0;var jO=(Ou=u())==null?void 0:Ou.state;Ou=D();fNV(uq,jO);return KaV({model:uq,subscribed:ZV,isOverlay:oq,element:ZS,notificationState:jO,disableTextEllipsis:!0,focused:Ou})},void 0,"yGQGue");
var gT=function(){var oq;if(!d()&&((oq=l.animateWidth)==null?0:oq.call(l))&&(O==null?0:O.value)&&(E==null?0:E.value)&&!N()){oq=Z();var ZS=_.b((oq==null?0:oq.subscribed)?[O,E]:[E,O]),Ou=ZS.next().value;ZS=ZS.next().value;Ou=Math.ceil(Ou.value.getBoundingClientRect().width);ZS=Math.ceil(ZS.value.getBoundingClientRect().width);n(Ou);y(ZS);Rvx(e.value,!(oq==null||!oq.subscribed),Ou,ZS);t(!0)}},mx=_.pd(function(oq){gT();
var ZS=Z();ZS&&(oq.detail.endpoint.subscribeEndpoint||oq.detail.endpoint.unsubscribeEndpoint)&&H9d(e.value,!ZS.subscribed,ZS)}),jM=function(){var oq=_.V2().resolve(_.MG(_.of));
oq&&b2(oq.isKeyBoardInUse())},cx=function(){b2(!1)};
_.lg("yt-player-subscribe",function(oq){var ZS=Z();ZS&&oq===l.data().channelId&&H9d(e.value,!0,ZS)});
_.lg("yt-player-unsubscribe",function(oq){var ZS=Z();ZS&&oq===l.data().channelId&&H9d(e.value,!1,ZS)});
_.lg("yt-update-subscribe-button-action",function(oq){oq=_.I(oq,H21);var ZS=Z();ZS&&oq&&oq.channelId===l.data().channelId&&H9d(e.value,!!oq.subscribed,ZS)});
_.sC(function(){e.value&&(e.value.addEventListener("focusin",jM),e.value.addEventListener("focusout",cx));var oq=_.fZ(_.UD,function(){gT()});
f(!0);_.B3(function(){_.UD.cancelJob(oq);e.value&&(e.value.removeEventListener("focusin",jM),e.value.removeEventListener("focusout",cx))})});
var tq=function(){var oq,ZS,Ou;if(Ou=!((oq=Z())==null||!oq.subscribed))oq=!!l.data().disableNotificationBell,Ou=(ZS=u())==null?void 0:ZS.state,Ou=!oq&&!!Ou;return Ou},Px=function(){var oq;
return!((oq=Z())==null?0:oq.subscribed)},S0=function(){var oq,ZS;
if(ZS=Px()){ZS=!!l.data().disableNotificationBell;var Ou=(oq=u())==null?void 0:oq.state;ZS=!ZS&&!!Ou}return ZS},QH={},pR={};
return _.W("yt-subscribe-button-view-model",{class:_.ax(l.className,"yt-subscribe-button-view-model-wiz",(QH["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var oq,ZS;return!((oq=Z())==null||!oq.subscribed)&&((ZS=l.animateWidth)==null?void 0:ZS.call(l))&&P()},QH["yt-subscribe-button-view-model-wiz--hidden"]=function(){var oq;
return!((oq=Z())==null?0:oq.subscribed)&&l.data().hideWhenUnsubscribed},QH)),
el:e,"on:yt-service-request-sent":mx},_.W(XOS,{backgroundLottieRef:J,foregroundLottieRef:z,wrapperClass:_.ax("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(pR["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var oq;return((oq=l.animateWidth)==null?void 0:oq.call(l))&&P()},pR["yt-subscribe-button-view-model-wiz__static-width"]=function(){var oq;
return!((oq=l.animateWidth)==null?0:oq.call(l))},pR)),
disableAnimation:d},_.W("div",{el:O,class:"yt-subscribe-button-view-model-wiz__container"},_.W(Ms,{data:g,icon:function(){return _.W(_.A,{cond:tq,then:function(){var oq=function(){var ZS;return j1q((ZS=u())==null?void 0:ZS.state)};
return _.W(_.A,{cond:function(){return d()||oq()!=="NOTIFICATIONS_NONE"},
then:function(){return _.W(_.cF,{icon:oq})},
else:function(){return _.W(Z91,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:M})}})}})},
secondaryIconName:function(){return tq()?"EXPAND":void 0}}))),_.W("div",{el:E,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.W(_.A,{cond:function(){var oq;return((oq=l.animateWidth)==null?void 0:oq.call(l))&&!d()&&!N()},
then:function(){return _.W(Ms,{data:_.mF(function(){var oq;return KaV({model:l.data(),subscribed:Px(),isOverlay:!((oq=l.isOverlay)==null||!oq.call(l)),element:e,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var oq;return S0()?j1q((oq=u())==null?void 0:oq.state):void 0},
secondaryIconName:function(){return S0()?"EXPAND":void 0}})}})))},"G");
_.jf.idomCompat=!0;var s1T=new _.Xa("RENDERER_STAMPER_OPTIONS_TOKEN");var u90=_.XO(function(l){var e=l.data;var O=_.kD(wT2,function(){return e().subscriptionStateEntityKey});
return _.W(_.A,{cond:function(){var E=e(),J=O();return!E.hideWhenUnsubscribed||(J==null?0:J.subscribed)?_.I(e().button,_.Hi):void 0},
then:function(E){return _.W("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.W(_.hM,{data:E,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
u90.idomCompat=!0;var vjp=_.jp({buttonViewModel:_.hM,subscribeButtonViewModel:_.jf,downloadButtonViewModel:Ej6,toggleButtonViewModel:_.sh,subscribePlusButtonViewModel:u90});_.Z8(rvu);var fT;_.FZ=new mvH;fT=new Map;var JEg="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),z8V=["notificationTextRenderer","notificationMultiActionRenderer"],Xrd="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
EYW=DMT(function(l){return _.UB(l==null?void 0:l.targetId)}).useUpdatableData;var OfL=0;_.Tn.debugName="EjJbCe";var C51=_.XO(function(l){return _.W(_.Tn,{data:function(){return l.actionRow().actions}},{buttonViewModel:_.a("web_enable_sink_yt_flexible_actions_view_model")?function(e){var O=e.data;
e={};return _.W(_.hM,{data:O,className:_.ax("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=l.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=l.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return bf2(O())},e))})}:function(e){var O=e.data;
return _.W(H5,{isRow:l.isRow,isIconOnlyButton:function(){return bf2(O())},
useIntrinsicWidth:l.useIntrinsicWidth},_.W(_.hM,{data:O}))},
subscribeButtonViewModel:_.a("web_enable_sink_yt_flexible_actions_view_model")?function(e){var O=e.data;e={};return _.W(_.jf,{data:O,isOverlay:!1,animateWidth:function(){return!l.isRow()},
className:_.ax("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=l.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=l.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return bf2(O())},e))})}:function(e){return _.W(H5,{isRow:l.isRow},_.W(_.jf,{data:e.data,
isOverlay:!1,animateWidth:function(){return!l.isRow()}}))},
downloadButtonViewModel:function(e){var O=e.data;return _.W(H5,{isRow:l.isRow,isIconOnlyButton:function(){return!!O().playlistId}},_.W(Ej6,{data:O}))},
toggleButtonViewModel:function(e){var O=e.data;return _.W(H5,{isRow:l.isRow,isIconOnlyButton:function(){var E=O();return bf2(_.I(E.isToggled?E.toggledButtonViewModel:E.defaultButtonViewModel,_.Hi))}},_.W(_.sh,{data:O}))},
subscribePlusButtonViewModel:function(e){return _.W(H5,{isRow:l.isRow},_.W(u90,{data:e.data}))}})},"I"),H5=_.XO(function(l){var e={};
return _.W("div",{class:_.ax("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=l.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=l.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=l.isIconOnlyButton,e))},l.children)},"J"),ojx=_.XO(function(l){var e=function(){var E;
return((E=l.layout)==null?void 0:E.call(l))===1},O={};
return _.W("yt-flexible-actions-view-model",{class:_.ax("yt-flexible-actions-view-model-wiz",l.className,(O["yt-flexible-actions-view-model-wiz--inline"]=function(){return!e()},O["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return l.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},O))},_.W(_.KH,{each:function(){return l.data().actionsRows||[]}},function(E){return _.W(_.A,{cond:e,
then:function(){return _.W("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.W(C51,{actionRow:E,isRow:e,useIntrinsicWidth:function(){return!!l.data().respectActionIntrinsicWidth}}))},
else:function(){return _.W(C51,{actionRow:E,isRow:e})}})}))},"K"),c5=_.a("web_enable_sink_yt_flexible_actions_view_model")?ojx:_.yh(rvu);
ojx.idomCompat=!0;_.Zw(c5,"yt-flexible-actions-view-model",{props:{data:_.lB,layout:_.lB,justifyContentOverride:_.lB,className:_.lB}});_.Z8(Mwu);var $MS,oYt;$MS=_.XO(function(l){var e=_.kD(tm,function(){var J;return(J=l.data().dislikeEntityKey)!=null?J:""}),O=_.mF(function(){var J=e();
return J?J.likeStatus==="DISLIKE":_.I(l.data().toggleButtonViewModel,_.ci).isToggled},void 0,"D8oIFb"),E=_.mF(function(){return Object.assign({},_.I(l.data().toggleButtonViewModel,_.ci),{isToggled:O()})},void 0,"shaCXe");
return _.W("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.W(_.sh,{data:E,buttonShapeOverrides:l.buttonShapeOverrideables,onToggle:function(J){var z=e();z&&J!==(z.likeStatus==="DISLIKE")&&z.key&&_.Ot(_.Gn("likeStatusEntity",z.key,{likeStatus:J?"DISLIKE":"INDIFFERENT",hadUserInteraction:J}))}}))},"L");
oYt=_.a("web_enable_sink_dislike_button_view_model")?$MS:Mwu;_.FK=_.a("web_enable_sink_dislike_button_view_model")?$MS:_.yh(Mwu);$MS.idomCompat=!0;_.Z8(Zfp);var Wax,C92;Wax=_.XO(function(l){var e=_.a("web_supports_animations_api"),O=bp(function(n){var k=d(),y,c=(k==null?void 0:(y=k.likeCountIfIndifferent)==null?void 0:y.content)!==n.numberText;if(Z()||!c)return n;var f,P;return{numberText:(k==null?void 0:(f=k.likeCountIfIndifferent)==null?void 0:f.content)||"",numberValue:Number((P=k==null?void 0:k.likeCountIfIndifferentNumber)!=null?P:0),heightPx:36,shouldAnimate:!!k}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),E=bp(function(n){var k=d(),y,c=(k==null?void 0:(y=k.likeCountIfIndifferent)==null?void 0:y.content)!==n.numberText;if(Z()||!c)return n;var f,P;return{numberText:(k==null?void 0:(f=k.likeCountIfLiked)==null?void 0:f.content)||"",numberValue:Number((P=k==null?void 0:k.likeCountIfLikedNumber)!=null?P:0),heightPx:36,shouldAnimate:!!k}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),J=_.b(_.AF(void 0,void 0,"T6jMHc")),z=J.next().value,M=J.next().value,Z=z,u=_.kD(tm,function(){var n,k;return(k=(n=l.data())==null?void 0:n.likeStatusEntityKey)!=null?k:""}),d=_.kD(SZp,function(){var n,k;
return((n=l.likeCountEntity)==null?void 0:(k=n.call(l))==null?void 0:k.key)||""}),g=_.mF(function(){var n;
return((n=u())==null?void 0:n.likeStatus)==="LIKE"},void 0,"WxQBcd"),w=function(){var n;
return e&&!((n=l.likeCountEntity)==null||!n.call(l))};
return _.W("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.W(_.sh,{data:function(){var n=Object,k=n.assign,y;var c=_.I((y=l.data())==null?void 0:y.toggleButtonViewModel,_.ci);return k.call(n,{},c||{},{isToggled:g()})},
buttonShapeOverrides:l.buttonShapeOverrideables,animatedTextPropsDefault:function(){return w()?O():void 0},
animatedTextPropsToggled:function(){return w()?E():void 0},
onToggle:function(n){uyA(n,u(),Z(),M)},
style:function(){var n;return((n=l.disableIconAnimation)==null?0:n.call(l))?void 0:{animateIcon:"true"}}}))},"M");
C92=_.a("web_enable_sink_like_button_view_model")?Wax:Zfp;_.TB=_.a("web_enable_sink_like_button_view_model")?Wax:_.yh(Zfp);_.Z8($Q2);var dMR=_.XO(function(l){var e=function(){return _.I(l.data().likeButtonViewModel,_.Bi)},O=function(){var J;
return((J=e())==null?void 0:J.likeStatusEntityKey)||""},E=_.mF(function(){var J,z;
var M=(z=_.kD(tm,O)())!=null?z:(J=e())==null?void 0:J.likeStatusEntity;J=l.data();var Z;J=(J==null?void 0:(Z=J.timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:"like-dislike",timings:J,enabled:(M==null?void 0:M.likeStatus)==="INDIFFERENT"&&J.length>0,experimentEnabled:J.length>0}},void 0,"e1fsz");
return _.W("segmented-like-dislike-button-view-model",{class:_.ax("ytSegmentedLikeDislikeButtonViewModelHost",l.className),"button-renderer":!0},_.W(Uh,{settings:E},_.W("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.W(_.A,{cond:e,then:function(J){return _.W(_.TB,{data:J,likeCountEntity:function(){return l.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.W(_.A,{cond:function(){return _.I(l.data().dislikeButtonViewModel,_.Pi)},
then:function(J){return _.W(_.FK,{data:J,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),gjS=_.a("web_enable_sink_segmented_like_dislike_button_view_model")?dMR:$Q2;
dMR.idomCompat=!0;_.a("web_enable_sink_segmented_like_dislike_button_view_model")?_.Zw(gjS,"segmented-like-dislike-button-view-model",{props:{data:_.lB,className:_.lB}}):_.ip(gjS,"segmented-like-dislike-button-view-model",{propNames:["data"]});var AEA=0;_.Zw(sbT,"account-link-button-view-model",{props:{data:_.lB,className:_.Vh,setMinWidth:_.Vh,forceIconOnly:_.Vh}});_.Y7("menuRenderer","menuRenderer","ytd-menu-renderer");
var i9q={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"}},
wO6=_.a("web_fix_missing_action_buttons")?100:200,sw=function(){var l=_.B.apply(this,arguments)||this;l.safeArea=!_.a("kevlar_flex_menu_safe_area_killswitch");l.tonalOverride=!1;l.threeDotSize="M";l.isOverlay=!1;l.useOverlayDark=!1;l.topLevelIconsOnly=!1;l.JSC$12575_lastWidth=0;l.maybeUpdateFlexibleMenu=function(){_.a("web_fix_missing_action_buttons")?requestAnimationFrame(l.maybeUpdateFlexibleMenuImpl):l.maybeUpdateFlexibleMenuImpl()};
l.maybeUpdateFlexibleMenuImpl=function(){var e;if((e=l.data)!=null&&e.flexibleItems){l.maybeFlushDebouncer();e=l.hostElement.clientWidth;var O=e>l.JSC$12575_lastWidth,E,J=((E=l.topLevelButtonsContainer)==null?void 0:E.scrollHeight)||0,z;E=((z=l.flexibleItemButtonsContainer)==null?void 0:z.scrollHeight)||0;z=l.hostElement.scrollHeight>Math.max(J,E)+8;O?(l.resetFlexibleItems(),l.JSC$12575_lastWidth=l.hostElement.clientWidth,l.maybeUpdateFlexibleMenu()):z&&(l.shrinkFlexibleMenu(),l.JSC$12575_lastWidth=
e)}};
l.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){l.onOverflowTap()},
iconPosition:"icon-only",style:l.isOverlay?l.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:l.threeDotSize,state:"active",accessibilityLabel:l.computeAccessibilityLabel(l.data)},l.threeDotButtonOverride)};
l.onOverflowTap=function(){if(l.data.fetchMenuCommand)_.V2().resolve(_.Zh).resolveCommand(l.data.fetchMenuCommand,{form:{element:l.hostElement}});else if(l.data.isDisabled&&l.data.disabledCommand)_.aX(l.data.disabledCommand,l.hostElement);else{var e=l.createMenuRendererVe(),O={items:l.items};l.data.menuPopupAccessibility&&(O.menuPopupAccessibility=l.data.menuPopupAccessibility);l.data.footer&&(O.footer=l.data.footer);e={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:O},veData:e}};
_.V2().resolve(_.pC).openSheet({openPopupActionCommand:e},l.hostElement)}};
return l};
_.m(sw,_.B);_.X=sw.prototype;_.X.updateButtonOverrides=function(){if(!_.a("menu_renderer_label_update_upkillswitch")){var l=_.ud(this.hostElement).querySelector("yt-button-view-model");l&&(l.buttonOverrides=this.buttonOverrides)}};
_.X.computeHasItems=function(){var l;return((l=this.topLevelButtonData)==null?void 0:l.length)||this.hasFlexibleItems};
_.X.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.X.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.dP(this.hostElement,{"--ytd-menu-renderer-button-color":_.t$(this.data.iconColor)}))};
_.X.onStamperFinished=function(){this.JSC$12575_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.X.setupFlexibleMenu=function(){var l=this,e;(e=this.data)!=null&&e.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.b3(this.maybeUpdateFlexibleMenu,wO6,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){l.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))};
_.X.maybeFlushDebouncer=function(){if(_.a("web_replace_formatted_with_attributed_string")){var l;(l=this.topLevelButtons)==null||l.forEach(function(O){var E;(O=(E=O.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0])&&km8(O)});
var e;(e=this.flexibleItemButtons)==null||e.forEach(function(O){var E;(O=(E=O.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0])&&km8(O)})}};
_.X.resetFlexibleItems=function(){var l;if((l=this.data)!=null&&l.flexibleItems){_.a("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var e;this.flexAsTopLevelButtons=(e=this.data.flexibleItems)==null?void 0:e.map(function(O){return _.I(O,_.xkR).topLevelButton});
_.a("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.X.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.X.shrinkFlexibleMenu=function(){var l;(l=this.flexAsTopLevelButtons)!=null&&l.length&&(this.flexAsTopLevelButtons=[].concat(_.kA(this.flexAsTopLevelButtons.slice(0,-1))))};
_.X.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:i9q,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:i9q,events:!0}}};
_.X.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.X.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.X.detached=function(){this.icon="MORE_VERT"};
_.X.computeTopLevelButtonData=function(l){if(!l)return[];var e;l=(e=l==null?void 0:l.topLevelButtons)!=null?e:[];return _.mm.unsafeClone([].concat(_.kA(l)))};
_.X.computeItems=function(l,e){if(!l)return[];var O=[];if(e){var E=(l.flexibleItems||[]).map(function(M){return _.I(M,_.xkR)});
E=_.b(E);for(var J=E.next();!J.done;J=E.next())J=J.value,e.includes(J.topLevelButton)||(J=J.menuItem)&&O.push(J)}var z;l=(z=l==null?void 0:l.items)!=null?z:[];return[].concat(_.kA(O),_.kA(l))};
_.X.computeMenuActive=function(l,e){return l||e};
_.X.onPopupOpened=function(){this.overlayOpen=!0;_.$u(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.X.onPopupClosed=function(){this.overlayOpen=!1;_.$u(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.X.onPopupCanceled=function(){this.overlayOpen=!1;_.$u(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.X.computeAccessibilityLabel=function(l){return this.get("accessibility.accessibilityData.label",l)};
_.X.isHidden=function(l,e){return this.tonalOverride||!l?!0:l.fetchMenuCommand||l.isDisabled&&l.disabledCommand?!1:!(e==null?0:e.length)};
_.X.isModernOverflowHidden=function(l,e){return this.tonalOverride&&l?l.fetchMenuCommand?!1:!(e==null?0:e.length):!0};
_.X.createMenuRendererVe=function(){var l=this.data.trackingParams,e=_.P9(),O=_.B9();return l&&e&&O?(l=_.cf(l),O=_.sL(7591),_.a("combine_ve_grafts")?_.$w(_.yN(),O,l):_.DG(e,l,O),O):null};
_.Ji.Object.defineProperties(sw.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.flexAsTopLevelButtons)==null||!l.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
sw.prototype.onPopupCanceled=sw.prototype.onPopupCanceled;sw.prototype.onPopupClosed=sw.prototype.onPopupClosed;sw.prototype.onPopupOpened=sw.prototype.onPopupOpened;sw.prototype.tonalOverrideChanged=sw.prototype.tonalOverrideChanged;sw.prototype.resetFlexibleItems=sw.prototype.resetFlexibleItems;sw.prototype.setupFlexibleMenu=sw.prototype.setupFlexibleMenu;sw.prototype.iconButtonColorChanged=sw.prototype.iconButtonColorChanged;sw.prototype.updateButtonOverrides=sw.prototype.updateButtonOverrides;
_.L([_.K(_.x8),_.q("design:type",Object)],sw.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#button-shape"),_.q("design:type",g_)],sw.prototype,"buttonShape",void 0);_.L([_.aB("#button"),_.q("design:type",Object)],sw.prototype,"button",void 0);
_.L([_.T(),_.q("design:type",Object)],sw.prototype,"data",void 0);_.L([_.T({computed:"computeTopLevelButtonData(data)"}),_.q("design:type",Array)],sw.prototype,"topLevelButtonData",void 0);_.L([_.T(),_.q("design:type",Array)],sw.prototype,"flexAsTopLevelButtons",void 0);_.L([_.T({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.q("design:type",Array)],sw.prototype,"items",void 0);_.L([_.T({value:"MORE_VERT"}),_.q("design:type",String)],sw.prototype,"icon",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],sw.prototype,"safeArea",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.q("design:type",Boolean)],sw.prototype,"menuActive",void 0);_.L([_.T(),_.q("design:type",Boolean)],sw.prototype,"menuFocused",void 0);_.L([_.T({value:"bottom"}),_.q("design:type",String)],sw.prototype,"buttonTooltipPosition",void 0);_.L([_.T(),_.q("design:type",Boolean)],sw.prototype,"overlayOpen",void 0);
_.L([_.T({value:!0}),_.q("design:type",Boolean)],sw.prototype,"forceIconButton",void 0);_.L([_.T(),_.q("design:type",Boolean)],sw.prototype,"styleActionButton",void 0);_.L([_.T(),_.q("design:type",Boolean)],sw.prototype,"disableTextTransformOnButtons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],sw.prototype,"tonalOverride",void 0);_.L([_.T(),_.q("design:type",Object)],sw.prototype,"threeDotSize",void 0);
_.L([_.T(),_.q("design:type",Object)],sw.prototype,"threeDotButtonOverride",void 0);_.L([_.T(),_.q("design:type",Object)],sw.prototype,"isOverlay",void 0);_.L([_.T(),_.q("design:type",Object)],sw.prototype,"useOverlayDark",void 0);_.L([_.T({computed:"computeButtonOverride(tonalOverride)"}),_.q("design:type",Object)],sw.prototype,"buttonOverride",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],sw.prototype,"hasCustomIconColor",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("flexAsTopLevelButtons"),_.q("design:type",Object),_.q("design:paramtypes",[])],sw.prototype,"hasFlexibleItems",null);_.L([_.T({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.q("design:type",Boolean)],sw.prototype,"hasItems",void 0);_.L([_.T(),_.q("design:type",Object)],sw.prototype,"topLevelIconsOnly",void 0);
_.L([_.AA("topLevelIconsOnly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"updateButtonOverrides",null);_.L([_.R("topLevelIconsOnly"),_.q("design:type",Object),_.q("design:paramtypes",[])],sw.prototype,"buttonOverrides",null);_.L([_.aB("#top-level-buttons-computed"),_.q("design:type",HTMLElement)],sw.prototype,"topLevelButtonsContainer",void 0);_.L([_.kT(".top-level-buttons > *"),_.q("design:type",Array)],sw.prototype,"topLevelButtons",void 0);
_.L([_.aB("#flexible-item-buttons"),_.q("design:type",HTMLElement)],sw.prototype,"flexibleItemButtonsContainer",void 0);_.L([_.kT("#flexible-item-buttons > *"),_.q("design:type",Array)],sw.prototype,"flexibleItemButtons",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"iconButtonColorChanged",null);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"setupFlexibleMenu",null);_.L([_.y0("topLevelIconsOnly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"resetFlexibleItems",null);_.L([_.AA("tonalOverride"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"tonalOverrideChanged",null);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"onPopupOpened",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"onPopupClosed",null);_.L([_.wP("yt-popup-canceled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sw.prototype,"onPopupCanceled",null);
_.Y(sw,"ytd-menu-renderer",function(){if(GYS===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);GYS=l}l=GYS;return l},{mode:_.Wf("kevlar_poly_si_batch_j030")?1:2});var AvH;var njS;_.Je=_.XO(function(l){var e=l.data;var O=function(){if(e().icon)a:{var E={iconName:e().icon};for(var J=_.V2().resolve(_.A3),z=_.b([12,24]),M=z.next();!M.done;M=z.next()){var Z=M.value;M=Object.assign({},E,{iconStyle:"youtube_fill",iconSize:Z});Z=Object.assign({},E,{iconStyle:"youtube_outline",iconSize:Z});if(J.resolveIcon(M)){E=M;break a}if(J.resolveIcon(Z)){E=Z;break a}}E=void 0}else E=void 0;return E};
l={};return _.W("badge-shape",{class:_.ax("badge-shape-wiz",function(){return P9M(e().type)},(l["badge-shape-wiz--overlay"]=function(){return e().isOverlay},l["badge-shape-wiz--ads-include-dot"]=function(){return e().adsIncludeDot},l["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(e().type){case 16:case 17:case 18:var E=!0;
break a;default:E=!1}return E},l["badge-shape-wiz--status-badge"]=function(){a:switch(e().type){case 11:case 12:case 13:case 14:case 15:var E=!0;
break a;default:E=!1}return E},l["badge-shape-wiz--no-text"]=function(){return!e().text},l["badge-shape-wiz--modern"]=function(){return e().modern||_.a("web_modern_badge_shape")},l)),
style:_.HF({"background-color":function(){var E;return(E=e().customColors)==null?void 0:E.backgroundColor}}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},_.W(_.A,{cond:function(){return e().animation},
then:function(E){return _.W(_.k7,{className:"badge-shape-wiz__icon",data:E,animationName:function(){return E().animationConfig.name||""}})}}),_.W(_.A,{cond:function(){var E;
return O()&&!((E=e())==null?0:E.animation)},
then:function(){return _.W("div",{class:"badge-shape-wiz__icon"},_.W(G6V,{data:function(){return O()}}))}}),_.W("div",{class:"badge-shape-wiz__text"},function(){var E;
return(E=e())==null?void 0:E.text}))},"O");
_.Je.idomCompat=!0;_.Zw(_.Je,"badge-shape",{props:{data:_.lB}});var GB=function(){var l=_.B.apply(this,arguments)||this;l.systemIcons=_.a("kevlar_system_icons");l.animated=_.a("animated_live_badge_icon");l.useBadgeShape=_.a("web_badge_shape_defrag");return l};
_.m(GB,_.B);_.X=GB.prototype;_.X.addTooltips=function(){for(var l=_.ud(this.hostElement).querySelectorAll(".badge"),e=0,O;O=l[e++];){var E=this.repeatElement.itemForElement(O);O=_.ud(O);O.lastChild&&O.lastChild.is==="tp-yt-paper-tooltip"&&O.removeChild(O.lastChild);if(E=E.metadataBadgeRenderer&&E.metadataBadgeRenderer.tooltip){var J=_.zH("tp-yt-paper-tooltip");(0,_.Ws)(J).textContent=E;J.setAttribute("position","top");J.setAttribute("aria-hidden","true");O.appendChild(J)}}};
_.X.badgesChanged=function(){var l=this;_.h7().parkOrScheduleJob(function(){l.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.X.standaloneRoundedBadgeChanged=function(){var l=this.useRoundedBadge?this.useRoundedBadge:void 0;l&&(this.useRoundedBadge=l)};
_.X.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.X.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.X.computeStyle=function(l){_.a("enable_html5_teal_ad_badge")&&l==="BADGE_STYLE_TYPE_AD"&&(l="badge-style-type-ad-alternate");_.a("kevlar_ytb_live_badges")&&l==="BADGE_STYLE_TYPE_LIVE_NOW"&&(l="badge-style-type-live-now-alternate");return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeRole=function(l){return this.computeAriaLabel(l)?"img":"status"};
_.X.computeAriaLabel=function(l){var e;return(l==null?void 0:(e=l.accessibilityData)==null?void 0:e.label)||(l==null?void 0:l.label)};
_.X.computeBadgeShape=function(l){var e;if(l){var O,E=Got(l.style),J=Bwd(l.style),z=l.label,M=((O=l.accessibilityData)==null?void 0:O.label)||l.label;l=(e=l.icon)==null?void 0:e.iconType;e={type:E,brNzRatingBadgeType:J,text:z,accessibilityText:M,icon:l!=="PREMIUM"?l:void 0}}else e={};return e};
_.X.updateComputedBadges=function(l,e,O){var E=this;(e=e?[e]:O?[O]:void 0)?this.computedBadges=e:this.computedBadges=l==null?void 0:l.filter(function(J){var z;if((z=J.metadataBadgeRenderer)==null?0:z.groups){z=!1;J=_.b(J.metadataBadgeRenderer.groups);for(var M=J.next();!M.done;M=J.next()){M=M.value;var Z=void 0;z=z||((Z=E.hiddenBadgeGroups)==null?void 0:Z.includes(M))}return!z}return!0})};
_.X.useFilledIcons=function(l){return _.a("kevlar_system_icons")&&(l==="AUDIO_BADGE"||l==="CHECK_CIRCLE_THICK"||l==="OFFICIAL_ARTIST_BADGE"||l==="SPONSORSHIP_STAR"||l==="PERSON_RADAR_FILLED"||l==="PERSON_RADAR")};
_.X.computeIcon=function(l){var e,O;l=l==null?void 0:(e=l.metadataBadgeRenderer)==null?void 0:(O=e.icon)==null?void 0:O.iconType;if(l!=="PREMIUM"&&l)return _.w6(l)};
_.X.computeStandaloneBadge=function(l){var e;l=l==null?void 0:(e=l.icon)==null?void 0:e.iconType;return l==="PREMIUM_STANDALONE"||l==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
GB.prototype.hiddenBadgeGroupsChanged=GB.prototype.hiddenBadgeGroupsChanged;GB.prototype.standaloneBadgeChanged=GB.prototype.standaloneBadgeChanged;GB.prototype.standaloneRoundedBadgeChanged=GB.prototype.standaloneRoundedBadgeChanged;GB.prototype.badgesChanged=GB.prototype.badgesChanged;_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"hidden",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],GB.prototype,"componentBehavior",void 0);
_.L([_.T(),_.q("design:type",Array)],GB.prototype,"badges",void 0);_.L([_.T(),_.q("design:type",Object)],GB.prototype,"topStandaloneBadge",void 0);_.L([_.T(),_.q("design:type",Object)],GB.prototype,"bottomStandaloneBadge",void 0);_.L([_.T(),_.q("design:type",Object)],GB.prototype,"computedBadges",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"mediumFontAdBadge",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"useRoundedBadge",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"largeFontAdBadge",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"overlayAd",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"overlayPremium",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"noDotAdBadge",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"collectionTruncate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"isThumbnailBadge",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GB.prototype,"wrapBadges",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GB.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GB.prototype,"animated",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GB.prototype,"useBadgeShape",void 0);_.L([_.T({value:[]}),_.q("design:type",Array)],GB.prototype,"hiddenBadgeGroups",void 0);_.L([_.aB("#repeat"),_.q("design:type",TV)],GB.prototype,"repeatElement",void 0);_.L([_.y0("badges"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GB.prototype,"badgesChanged",null);
_.L([_.y0("useRoundedBadge"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GB.prototype,"standaloneRoundedBadgeChanged",null);_.L([_.y0("topStandaloneBadge","bottomStandaloneBadge"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GB.prototype,"standaloneBadgeChanged",null);_.L([_.y0("hiddenBadgeGroups"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GB.prototype,"hiddenBadgeGroupsChanged",null);
_.L([_.U({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],GB);
var aN6=_.$0()(GB,"ytd-badge-supported-renderer",function(){if(njS===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);njS=l}l=njS;return l},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Wf("kevlar_poly_si_batch_j053")?1:2});var B5=function(){var l=_.B.apply(this,arguments)||this;l.iconType="STAR";l.standardizeIconSize=_.a("kevlar_system_icons");l.mediaHoverOverlayInitialVisibility=_.a("enable_top_landscape_image_button_command_web");l.noBottomMargin=!1;l.thumbnailObjectFit="CONTAIN";l.thumbnailFitHeight=!0;l.actionMap={"yt-mute-ad-action":"handleMuteAd"};return l};
_.m(B5,_.B);_.X=B5.prototype;
_.X.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"}}}};
_.X.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",B5.JSC$12587_DEFAULT_CLICK_LOCATION_BEHAVIOR,B5.JSC$12587_CLICK_LOCATION_ID_MAP))};
_.X.onTap=function(l){if(!_.a("use_on_click_for_desktop_display_ad"))this.onTapOrClick(l)};
_.X.onClick=function(l){if(_.a("use_on_click_for_desktop_display_ad"))this.onTapOrClick(l)};
_.X.onTapOrClick=function(l){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,l,!1)};
_.X.updateMediaBackgroundImage=function(){var l=this.get("data.image.thumbnail.thumbnails");l&&(l=_.up(l,0))&&_.dP(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+l+")"})};
_.X.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var l=0;l<this.data.impressionEndpoints.length;l++){var e=this.data.impressionEndpoints[l];e.clickTrackingParams&&delete e.clickTrackingParams;_.V2().resolve(_.Zh).resolveCommand(e,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var O;((O=this.data)==null?0:O.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.X.handleMuteAd=function(){};
_.X.attached=function(){var l=this;_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.a("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Ji.Object.defineProperties(B5.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.titleText)return"";var e;return _.ml("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((e=this.data)==null?void 0:e.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.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 l;return!((l=this.data)==null||!l.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"}}});
B5.prototype.onClick=B5.prototype.onClick;B5.prototype.onTap=B5.prototype.onTap;B5.prototype.dataChanged=B5.prototype.dataChanged;
B5.JSC$12587_CLICK_LOCATION_ID_MAP=_.a("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"]]);
B5.JSC$12587_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.a("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"}];_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.B8),_.q("design:type",Object)],B5.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],B5.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],B5.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.K(TE),_.q("design:type",Object)],B5.prototype,"ytdActiveViewBehavior",void 0);_.L([_.K([_.ZH.YtActionHandlerBehavior]),_.q("design:type",Object)],B5.prototype,"actionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],B5.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],B5.prototype,"clickCommand",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],B5.prototype,"miniMode",void 0);_.L([_.T(),_.q("design:type",String)],B5.prototype,"iconType",void 0);_.L([_.R("data.titleText"),_.q("design:type",String),_.q("design:paramtypes",[])],B5.prototype,"titleAriaLabel",null);
_.L([_.R("data.rating"),_.q("design:type",Object),_.q("design:paramtypes",[])],B5.prototype,"getRating",null);_.L([_.R("data.price"),_.q("design:type",Object),_.q("design:paramtypes",[])],B5.prototype,"getPrice",null);_.L([_.R("data.thirdLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],B5.prototype,"getThirdLine",null);_.L([_.R("data.fourthLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],B5.prototype,"getFourthLine",null);
_.L([_.R("data.fifthLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],B5.prototype,"getFifthLine",null);_.L([_.R("getRating"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"computeRatingHidden",null);_.L([_.R("getPrice"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"computePriceHidden",null);_.L([_.R("getThirdLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"computeThirdLineHidden",null);
_.L([_.R("getFourthLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"computeFourthLineHidden",null);_.L([_.R("getFifthLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"computeFifthLineHidden",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.energyIcon"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"hasEnergyIcon",null);
_.L([_.R("computePriceHidden","computeRatingHidden"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"computeSecondaryTextHidden",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],B5.prototype,"standardizeIconSize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],B5.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],B5.prototype,"noBottomMargin",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.layout"),_.q("design:type",String),_.q("design:paramtypes",[])],B5.prototype,"layout",null);_.L([_.R("data.layout"),_.q("design:type",Object),_.q("design:paramtypes",[])],B5.prototype,"mediaThumbnailWidth",null);_.L([_.R("layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],B5.prototype,"useRoundedBadge",null);_.L([_.T(),_.q("design:type",String)],B5.prototype,"thumbnailObjectFit",void 0);
_.L([_.T(),_.q("design:type",Object)],B5.prototype,"thumbnailFitHeight",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],B5.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],B5.prototype,"onTap",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],B5.prototype,"onClick",null);
_.L([_.U({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],B5);
_.Y(B5,"ytd-display-ad-renderer",function(){if(AvH!==void 0)return AvH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return AvH=l},{mode:1});var kt0;var IN1;var mMC;var UQA=new Map;var yv1=!1;var P5=function(){var l=_.B.apply(this,arguments)||this;l.DEFAULT_TOOLTIP_OFFSET="10";l.TOOLTIP_OFFSET_NO_BANNER="-8";l.badges=null;l.noEndpoints=!1;l.wrapText=!1;l.forceVerified=!1;l.tooltipPosition="top";l.compactStyle=!1;l.height=0;l.lineHeight=0;return l};
_.m(P5,_.B);_.X=P5.prototype;_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.X.attached=function(){var l=this;this.observer=new MutationObserver(function(e,O){l.handleResized();O.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.X.detached=function(){this.observer&&this.observer.disconnect()};
_.X.logTooltipEvent=function(){_.a("kevlar_wiz_tooltip_event_killswitch")||yv1||(_.YXt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),yv1=!0)};
_.X.handleWindowResized=function(){this.handleResized()};
_.X.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")))};
_.X.onHeightChanged=function(){if(this.verified){var l=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.hT("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=l:this.textContainerEl.style.marginRight=l}};
_.X.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.hT("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.X.handleResized=function(){var l=this;this.verified&&_.UD.addLowPriorityJob(function(){l.fitBackgroundToText();var e=getComputedStyle(l.hostElement).lineHeight;e&&(e=e.match(/\d+/))&&e.length&&(l.lineHeight=Number(e[0]));l.height=l.lineHeight&&!l.wrapText?l.lineHeight:l.textEl.offsetHeight})};
_.X.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var l=document.createRange(),e=_.ud(this.textEl).children;e.length>0?l.selectNodeContents(e[0]):l.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(l.getBoundingClientRect().width)+"px"}};
_.X.computeChannelBadgeStyle=function(l){var e;if((l==null?0:(e=l.runs)==null?0:e.length)&&l.runs[0].textColor)return"--ytd-badge-icon-color:"+_.t$(l.runs[0].textColor)+";"};
_.Ji.Object.defineProperties(P5.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"?_.xp(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var l=this.get("badges.0.metadataBadgeRenderer.tooltip");if(l)return l}return _.lG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
P5.prototype.onLineHeightChanged=P5.prototype.onLineHeightChanged;P5.prototype.onHeightChanged=P5.prototype.onHeightChanged;P5.prototype.onChannelNameChanged=P5.prototype.onChannelNameChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],P5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],P5.prototype,"badges",void 0);_.L([_.T(),_.q("design:type",Object)],P5.prototype,"channelName",void 0);
_.L([_.T(),_.q("design:type",Object)],P5.prototype,"noEndpoints",void 0);_.L([_.T(),_.q("design:type",Object)],P5.prototype,"wrapText",void 0);_.L([_.T(),_.q("design:type",Object)],P5.prototype,"forceVerified",void 0);_.L([_.T(),_.q("design:type",Object)],P5.prototype,"tooltipPosition",void 0);_.L([_.T(),_.q("design:type",String)],P5.prototype,"tooltip",void 0);_.L([_.T(),_.q("design:type",Boolean)],P5.prototype,"hasChannelArt",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],P5.prototype,"compactStyle",void 0);_.L([_.aB("#text-container"),_.q("design:type",HTMLElement)],P5.prototype,"textContainerEl",void 0);_.L([_.aB("#text"),_.q("design:type",Object)],P5.prototype,"textEl",void 0);_.L([_.aB("#verified-tooltip"),_.q("design:type",HTMLElement)],P5.prototype,"verifiedTooltip",void 0);_.L([_.T(),_.q("design:type",Object)],P5.prototype,"height",void 0);
_.L([_.T(),_.q("design:type",Object)],P5.prototype,"lineHeight",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("badges","forceVerified"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],P5.prototype,"verified",null);_.L([_.R("badges","verified"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],P5.prototype,"hideBadges",null);_.L([_.R("channelName"),_.q("design:type",Object),_.q("design:paramtypes",[])],P5.prototype,"formattedName",null);
_.L([_.R("badges","verified","formattedName"),_.q("design:type",String),_.q("design:paramtypes",[])],P5.prototype,"tooltipText",null);_.L([_.R("hasChannelArt"),_.q("design:type",String),_.q("design:paramtypes",[])],P5.prototype,"tooltipOffset",null);_.L([_.AA("channelName"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],P5.prototype,"onChannelNameChanged",null);
_.L([_.AA("height"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],P5.prototype,"onHeightChanged",null);_.L([_.AA("lineHeight","height"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],P5.prototype,"onLineHeightChanged",null);_.L([_.U({is:"ytd-channel-name",disableElementRegistration:!0})],P5);
_.Y(P5,"ytd-channel-name",function(){if(mMC!==void 0)return mMC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return mMC=l},{mode:_.Wf("kevlar_poly_si_batch_j036")?1:2});var Uw=function(){var l=_.B.apply(this,arguments)||this;l.standardizeIconSize=_.a("kevlar_system_icons");l.enableModernCommentBadges=_.a("enable_modern_comment_badges");return l};
_.m(Uw,_.B);Uw.prototype.basicPaletteChanged=function(){var l;(l=this.data.color)!=null&&l.basicColorPaletteData&&_.PF(this.hostElement,this.data.color.basicColorPaletteData)};
Uw.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var l,e=this.get("basicColorPaletteData.backgroundColor",(l=this.data)==null?void 0:l.color),O;l=this.get("basicColorPaletteData.foregroundTitleColor",(O=this.data)==null?void 0:O.color);O={};e?(e=_.t$(e),O["--ytd-author-comment-badge-background-color"]=e):(O["--ytd-author-comment-badge-icon-background-color"]="transparent",O["--ytd-author-comment-badge-background-color"]="transparent");l?(e=_.t$(l),O["--ytd-author-comment-badge-name-color"]=
e,O["--ytd-author-comment-badge-icon-color"]=e):O["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(O).length>0&&_.dP(this.hostElement,O)}};
Uw.prototype.useFilledIcons=function(l){return _.a("kevlar_system_icons")&&(l==="CHECK_CIRCLE_THICK"||l==="OFFICIAL_ARTIST_BADGE")};
_.Ji.Object.defineProperties(Uw.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
Uw.prototype.colorChanged=Uw.prototype.colorChanged;Uw.prototype.basicPaletteChanged=Uw.prototype.basicPaletteChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Uw.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Uw.prototype,"standardizeIconSize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Uw.prototype,"enableModernCommentBadges",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.authorUnifiedVerified"),_.q("design:type",Object),_.q("design:paramtypes",[])],Uw.prototype,"verified",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Uw.prototype,"creator",null);_.L([_.AA("data.color.basicColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uw.prototype,"basicPaletteChanged",null);
_.L([_.AA("data.color"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uw.prototype,"colorChanged",null);_.L([_.U({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Uw);
_.Y(Uw,"ytd-author-comment-badge-renderer",function(){if(IN1!==void 0)return IN1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return IN1=l},{mode:1});var pOi;var YG=function(){return _.B.apply(this,arguments)||this};
_.m(YG,_.B);YG.prototype.computeThumbnailWidth=function(l){if(l==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],YG.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],YG.prototype,"icon",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],YG.prototype,"surface",void 0);
_.L([_.T({reflectToAttribute:!0,value:_.a("enable_shrink_image_size_on_web_posts_singleton")}),_.q("design:type",Boolean)],YG.prototype,"searchSxsUx",void 0);_.L([_.U({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],YG);
_.Y(YG,"ytd-backstage-image-renderer",function(){if(pOi!==void 0)return pOi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return pOi=l},{mode:1});var Kaq;var hL=function(){var l=_.B.apply(this,arguments)||this;l.isLoading=!1;l.selectedItemIndex=-1;return l};
_.m(hL,_.B);_.X=hL.prototype;_.X.computeIsChannelOwner=function(l){if(!l)return!0;l=l[0];return!(l&&(l.signinEndpoint||l.selectServiceEndpoint))};
_.X.computeIsImagePoll=function(l){return(l==null?void 0:l.type)==="POLL_TYPE_IMAGE"};
_.X.computeIsTotalVotesDisabled=function(l){return!(l==null?0:l.totalVotes)};
_.X.thumbnailSrc=function(l){var e,O,E,J;return(l==null?0:(e=l.thumbnails)==null?0:(O=e[0])==null?0:O.url)?_.nU((E=l.thumbnails)==null?void 0:(J=E[0])==null?void 0:J.url):void 0};
_.X.progressWidth=function(l){return"width:"+(l?l*100:0)+"%;"};
_.X.textAreaWidth=function(l){return this.isImagePoll?null:"width:"+(l?l*100:0)+"%;"};
_.X.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.X.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var l=this.data.choices,e=0;e<l.length;e++)if(l[e].selected){this.selectedItemIndex=e;break}};
_.X.onPopupClosed=function(l,e){l=Number(this.pollVotes.selected);e.confirmed&&(this.selectChoice(l,!1),_.Wb(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.X.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.X.onYtCommentPollRevert=function(l,e){e&&(this.selectChoice(e.selectedChoiceIndex,!0),this.set("data.totalVotes",e.totalVotes))};
_.X.onYtServiceRequestSent=function(l,e){if(e.actions)for(l=0;l<e.actions.length;l++){var O=e.actions[l];_.I(O,cC)&&this.set("data.totalVotes",_.I(O,cC).totalVotes)}};
_.X.onYtServiceRequestCompleted=function(l){var e=this.get("detail.data.actionResults.0.feedback",l);l=this.get("detail.data.actionResults.0.status",l);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,l==="STATUS_FAILED"?_.$u(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.X.getEndpoint=function(l,e){return e===l?this.data.choices[e].deselectServiceEndpoint||null:this.data.choices[l].selectServiceEndpoint||null};
_.X.selectChoice=function(l,e){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var O=0;O<this.data.choices.length;O++){var E;if(l===this.selectedItemIndex){var J=!1;var z=E=null}else E=(J=O===l)?this.data.choices[O].voteRatioIfSelected:this.data.choices[O].voteRatioIfNotSelected,z=J?this.data.choices[O].votePercentageIfSelected:this.data.choices[O].votePercentageIfNotSelected;this.set("data.choices."+O+".voteRatio",E);
this.set("data.choices."+O+".votePercentage",z);this.set("data.choices."+O+".selected",J)}e||(this.isLoading=!0,(e=this.getEndpoint(l,this.selectedItemIndex))&&_.V2().resolve(_.Zh).resolveCommand(e,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===l?-1:l};
_.Ji.Object.defineProperties(hL.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
hL.prototype.onYtServiceRequestCompleted=hL.prototype.onYtServiceRequestCompleted;hL.prototype.onYtServiceRequestSent=hL.prototype.onYtServiceRequestSent;hL.prototype.onYtCommentPollRevert=hL.prototype.onYtCommentPollRevert;hL.prototype.onPopupClosed=hL.prototype.onPopupClosed;hL.prototype.dataChanged=hL.prototype.dataChanged;_.L([_.K(_.lS),_.q("design:type",Object)],hL.prototype,"paperItemBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],hL.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hL.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],hL.prototype,"isLoading",void 0);_.L([_.T({computed:"computeIsChannelOwner(data.choices)"}),_.q("design:type",Boolean)],hL.prototype,"isChannelOwner",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.q("design:type",Boolean)],hL.prototype,"isImagePoll",void 0);_.L([_.T({computed:"computeIsTotalVotesDisabled(data)"}),_.q("design:type",Boolean)],hL.prototype,"isTotalVotesDisabled",void 0);_.L([_.T(),_.q("design:type",Object)],hL.prototype,"previousPollInfo",void 0);_.L([_.T(),_.q("design:type",Object)],hL.prototype,"selectedItemIndex",void 0);_.L([_.aB("#poll-votes"),_.q("design:type",Object)],hL.prototype,"pollVotes",void 0);
_.L([_.R("isChannelOwner"),_.q("design:type",Object),_.q("design:paramtypes",[])],hL.prototype,"endpointStyle",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hL.prototype,"dataChanged",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],hL.prototype,"onPopupClosed",null);
_.L([_.wP("yt-comment-poll-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],hL.prototype,"onYtCommentPollRevert",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],hL.prototype,"onYtServiceRequestSent",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],hL.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],hL);
_.Y(hL,"ytd-backstage-poll-renderer",function(){if(Kaq!==void 0)return Kaq;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Kaq=l},{mode:2});var j1C;var H9q={autoplay:!1,loop:!1},cvk={simpleText:""},LC=function(){var l=_.B.apply(this,arguments)||this;l.isLoading=!1;l.usesPanelLockup=!1;l.selectedItemIndex=-1;l.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},H9q,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});l.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},H9q,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});l.correctnessAnimationProps=[];l.correctnessAnimationRefs=[];return l};
_.m(LC,_.B);_.X=LC.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.X.computeIsChannelOwner=function(l){if(!l)return!0;l=l[0];return!(l&&(l.signinEndpoint||l.selectServiceEndpoint))};
_.X.computeIsTotalVotesDisabled=function(l){return!(l==null?0:l.totalVotes)};
_.X.computeIsImageQuiz=function(l){return(l==null?void 0:l.type)==="POLL_TYPE_IMAGE"};
_.X.onExplanationChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var l=this.data.choices;if(l){this.maybeInitializeQuizLotties(l);for(var e=0;e<l.length;e++)if(l[e].isSelected||this.isChannelOwner&&l[e].isCorrect){this.selectedItemIndex=e;return}this.selectedItemIndex=-1}}};
_.X.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var l=this.selectedItemIndex,e=Number(this.quizVotes.selected);this.selectChoice(e);this.sendVoteAction(e,l);this.quizVotes.selected=-1;var O;l=!((O=this.data)==null?0:O.enableAnimation);this.maybePlayAnswerAnimations(l)}};
_.X.onYtCommentPollRevert=function(l,e){e&&(this.selectChoice(e.selectedChoiceIndex),this.set("data.totalVotes",e.totalVotes))};
_.X.onYtServiceRequestSent=function(l,e){if(e.actions)for(l=_.b(e.actions),e=l.next();!e.done;e=l.next())(e=_.I(e.value,cC))&&this.set("data.totalVotes",e.totalVotes)};
_.X.onYtServiceRequestCompleted=function(l){var e=this.get("detail.data.actionResults.0.feedback",l);l=this.get("detail.data.actionResults.0.status",l);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,l==="STATUS_FAILED"?_.$u(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.X.getAnimationPropsForChoiceIndex=function(l,e){return e[l]};
_.X.maybePlayAnswerAnimations=function(l){l=l===void 0?!1:l;var e;if((e=this.data)!=null&&e.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){e=_.b(this.correctnessAnimationRefs);for(var O=e.next();!O.done;O=e.next()){var E=void 0,J=void 0;(E=O.value)==null||(J=E.lottieEl)==null||J.stop()}if(!(this.selectedItemIndex<0)){e=0;l&&(e=this.isCorrect?37:25);var z,M;(z=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(M=z.lottieEl)==null||M.goToAndPlay(l?e:0,!0);if(!(this.isCorrect||
(z=this.data.choices.findIndex(function(g){return g.isCorrect}),z<0))){var Z,u;
(u=(Z=this.correctnessAnimationRefs[z])==null?void 0:Z.lottieEl)==null||u.goToAndPlay(37,!0);var d;Z=(d=this.fadeContainers)==null?void 0:d.item(z);!l&&Z&&this.fadeIn(Z)}}}};
_.X.thumbnailSrc=function(l){var e,O,E,J;return(l==null?0:(e=l.thumbnails)==null?0:(O=e[0])==null?0:O.url)?_.nU((E=l.thumbnails)==null?void 0:(J=E[0])==null?void 0:J.url):void 0};
_.X.a11yVotedText=function(l,e){var O,E,J=((O=this.data)==null?void 0:(E=O.correctVotedText)==null?void 0:E.simpleText)||"",z,M;O=((z=this.data)==null?void 0:(M=z.votedText)==null?void 0:M.simpleText)||"";if(!e)return"";var Z,u;if((Z=this.data)==null?0:(u=Z.choices)==null?0:u[l].isCorrect)return J;var d,g;return((d=this.data)==null?0:(g=d.choices)==null?0:g[l].isSelected)?O:""};
_.X.getEndpoint=function(l,e){return e===l?this.data.choices[l].deselectServiceEndpoint||null:this.data.choices[l].selectServiceEndpoint||null};
_.X.sendVoteAction=function(l,e){if(l=this.getEndpoint(l,e))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(l)};
_.X.selectChoice=function(l){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var e=0;e<this.data.choices.length;e++)this.set("data.choices."+e+".isSelected",l===this.selectedItemIndex?!1:e===l);this.selectedItemIndex=this.selectedItemIndex===l?-1:l};
_.X.maybeInitializeQuizLotties=function(l){var e=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=l.map(function(O){return{animationConfig:O.isCorrect?e.baseCorrectLottiePlayerAnimationConfig:e.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){e.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(O){return O.animationRef||{}})};
_.X.fadeIn=function(l){l.classList.add("fade-in");_.WF(_.UD,function(){l.classList.remove("fade-in")},900)};
_.Ji.Object.defineProperties(LC.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.a("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.lG(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 l,e;return((l=this.data)==null?void 0:(e=l.choices)==null?void 0:e.some(function(O){return O.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null||!l.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?cvk:this.data.choices[this.selectedItemIndex].explanation||cvk}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null||!l.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
LC.prototype.onYtServiceRequestCompleted=LC.prototype.onYtServiceRequestCompleted;LC.prototype.onYtServiceRequestSent=LC.prototype.onYtServiceRequestSent;LC.prototype.onYtCommentPollRevert=LC.prototype.onYtCommentPollRevert;LC.prototype.dataChanged=LC.prototype.dataChanged;LC.prototype.onExplanationChanged=LC.prototype.onExplanationChanged;_.L([_.K(_.lS),_.q("design:type",Object)],LC.prototype,"paperItemBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],LC.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.XP.YtTaskEmitterBehavior),_.q("design:type",Object)],LC.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],LC.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],LC.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],LC.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Object)],LC.prototype,"usesPanelLockup",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.q("design:type",Boolean)],LC.prototype,"isChannelOwner",void 0);_.L([_.T({computed:"computeIsTotalVotesDisabled(data)"}),_.q("design:type",Boolean)],LC.prototype,"isTotalVotesDisabled",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.q("design:type",Boolean)],LC.prototype,"isImageQuiz",void 0);_.L([_.T(),_.q("design:type",Object)],LC.prototype,"previousQuizInfo",void 0);_.L([_.T(),_.q("design:type",Object)],LC.prototype,"selectedItemIndex",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data","usesPanelLockup"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LC.prototype,"shouldUseModernUi",null);
_.L([_.kT(".fade-container"),_.q("design:type",Object)],LC.prototype,"fadeContainers",void 0);_.L([_.T(),_.q("design:type",Array)],LC.prototype,"correctnessAnimationProps",void 0);_.L([_.R("explanation","showCorrectAnswer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LC.prototype,"showExplanation",null);_.L([_.R("isChannelOwner","isAttempted"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LC.prototype,"showCorrectAnswer",null);
_.L([_.R("isChannelOwner","isAttempted","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LC.prototype,"isQuizAnsweringDisabled",null);_.L([_.R("isQuizAnsweringDisabled"),_.q("design:type",Object),_.q("design:paramtypes",[])],LC.prototype,"endpointStyle",null);_.L([_.R("data","selectedItemIndex"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LC.prototype,"isAttempted",null);
_.L([_.R("data","selectedItemIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],LC.prototype,"explanation",null);_.L([_.R("data","selectedItemIndex"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],LC.prototype,"isCorrect",null);_.L([_.aB("ytd-expander"),_.q("design:type",Object)],LC.prototype,"expander",void 0);_.L([_.aB("#quiz-votes"),_.q("design:type",Object)],LC.prototype,"quizVotes",void 0);
_.L([_.AA("explanation"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LC.prototype,"onExplanationChanged",null);_.L([_.AA("data","isChannelOwner"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LC.prototype,"dataChanged",null);_.L([_.wP("yt-comment-quiz-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],LC.prototype,"onYtCommentPollRevert",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],LC.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],LC.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],LC);
_.Y(LC,"ytd-backstage-quiz-renderer",function(){if(j1C!==void 0)return j1C;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return j1C=l},{mode:1});var FaF;var tL=function(){return _.B.apply(this,arguments)||this};
_.m(tL,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tL.prototype,"data",void 0);_.L([_.U({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],tL);
_.Y(tL,"ytd-post-uploaded-video-renderer",function(){if(FaF!==void 0)return FaF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return FaF=l},{mode:1});var fNq;var qf=function(){return _.B.apply(this,arguments)||this};
_.m(qf,_.B);qf.prototype.useFilledIcons=function(l){return l==="SPONSORSHIP_STAR"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qf.prototype,"data",void 0);_.L([_.U({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],qf);
_.Y(qf,"ytd-sponsors-only-badge-renderer",function(){if(fNq!==void 0)return fNq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return fNq=l},{mode:1});var Rv6;var v5=function(){return _.B.apply(this,arguments)||this};
_.m(v5,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],v5.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],v5.prototype,"data",void 0);_.L([_.U({is:"ytd-child-video-renderer",disableElementRegistration:!0})],v5);
_.Y(v5,"ytd-child-video-renderer",function(){if(Rv6!==void 0)return Rv6;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Rv6=l},{mode:1});var TlC;var s11;var Nf=function(){var l=_.B.apply(this,arguments)||this;l.size=0;l.enableWebModernCollectionsV2=_.a("web_modern_collections_v2");l.fallbackImageSize={height:void 0,width:9999};l.webModernCollections=!1;return l};
_.m(Nf,_.B);_.X=Nf.prototype;_.X.computeBlurredImageSize=function(l){return l?{height:l*2,width:l*2}:this.fallbackImageSize};
_.X.computeImageSize=function(l){return l?{height:l,width:l}:this.fallbackImageSize};
_.X.computeObjectFit=function(l){return l?"FILL":"CONTAIN"};
_.X.computePreserve=function(l){return l?!0:!1};
_.X.setBackground=function(){var l,e;_.a("web_modern_collections_v2")&&((l=this.data)==null?0:(e=l.thumbnail)==null?0:e.sampledThumbnailColor)&&(l=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+l.red+","+l.green+","+l.blue+",1)")};
Nf.prototype.setBackground=Nf.prototype.setBackground;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Nf.prototype,"watchFeedThumbnail",void 0);_.L([_.T(),_.q("design:type",Object)],Nf.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Nf.prototype,"size",void 0);
_.L([_.T({computed:"computeBlurredImageSize(size)"}),_.q("design:type",Object)],Nf.prototype,"blurredImageSize",void 0);_.L([_.T({computed:"computeImageSize(size)"}),_.q("design:type",Object)],Nf.prototype,"imageSize",void 0);_.L([_.T({computed:"computePreserve(size)"}),_.q("design:type",String)],Nf.prototype,"preserve",void 0);_.L([_.T({computed:"computeObjectFit(size)"}),_.q("design:type",String)],Nf.prototype,"objectFit",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Nf.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Nf.prototype,"webModernCollections",void 0);_.L([_.AA("data.thumbnail.sampledThumbnailColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nf.prototype,"setBackground",null);_.L([_.U({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Nf);
_.Y(Nf,"ytd-playlist-custom-thumbnail-renderer",function(){if(s11!==void 0)return s11;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return s11=l},{mode:1});var Gti;var ri=function(){return _.B.apply(this,arguments)||this};
_.m(ri,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ri.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],ri.prototype,"width",void 0);_.L([_.U({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],ri);
_.Y(ri,"ytd-playlist-video-thumbnail-renderer",function(){if(Gti!==void 0)return Gti;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Gti=l},{mode:1});var BlS;var D2=function(){return _.B.apply(this,arguments)||this};
_.m(D2,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],D2.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],D2.prototype,"width",void 0);_.L([_.U({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],D2);
_.Y(D2,"ytd-show-custom-thumbnail-renderer",function(){if(BlS!==void 0)return BlS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BlS=l},{mode:1});var P5q;var Sf=function(){return _.B.apply(this,arguments)||this};
_.m(Sf,_.B);Sf.prototype.useFilledIcons=function(l){return l==="MUSIC"||l==="COURSE"};
Sf.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=vc(this.overlayColor,"0.8");else if(this.overlayColor){var l=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+l.red+","+l.green+","+l.blue+",0.8)"}};
_.Ji.Object.defineProperties(Sf.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)}}});
Sf.prototype.overlayColorChanged=Sf.prototype.overlayColorChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sf.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Sf.prototype,"overlayColor",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sf.prototype,"overlayStyle",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sf.prototype,"overlayTextStyle",null);_.L([_.AA("overlayColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sf.prototype,"overlayColorChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Sf);
_.Y(Sf,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(P5q!==void 0)return P5q;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return P5q=l},{mode:1});var UMx;var Qe=function(){var l=_.B.apply(this,arguments)||this;l.active=!1;return l};
_.m(Qe,_.B);Qe.prototype.computeIsSpinnerHidden=function(l){return(l==null?void 0:l.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Qe.prototype.computeOverlayIcon=function(l){return(l==null?void 0:l.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(l==null?void 0:l.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qe.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Qe.prototype,"active",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Qe);
_.Y(Qe,"ytd-thumbnail-overlay-downloading-renderer",function(){if(UMx!==void 0)return UMx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return UMx=l},{mode:1});var Ya0;var xG=function(){return _.B.apply(this,arguments)||this};
_.m(xG,_.B);_.Ji.Object.defineProperties(xG.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xG.prototype,"data",void 0);_.L([_.R("data.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],xG.prototype,"text",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],xG);
_.Y(xG,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Ya0!==void 0)return Ya0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Ya0=l},{mode:1});var hv1,Laq=function(){if(hv1!==void 0)return hv1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return hv1=l};var lE=function(){return _.B.apply(this,arguments)||this};
_.m(lE,_.B);_.Ji.Object.defineProperties(lE,{template:{configurable:!0,enumerable:!0,get:function(){return Laq()}}});
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],lE.prototype,"animateEqualizer",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],lE);_.$0()(lE,"ytd-thumbnail-overlay-equalizer",function(){return Laq()},{allowedProps:["animateEqualizer"],
mode:1});var te6;var eW=function(){var l=_.B.apply(this,arguments)||this;l.nowPlayingBadge=_.a("web_now_playing_badge");l.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return l};
_.m(eW,_.B);eW.prototype.activeChanged=function(){var l=this;_.a("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.OK(this,function(){_.$u(l.hostElement,"yt-playlist-lockup-now-playing-active",l)})};
eW.prototype.onMiniplayerPlayStateChanged=function(l){var e,O=(e=_.I(_.n6().currentEndpoint,_.ej))==null?void 0:e.videoId;this.isVideoPlaying=l&&(_.a("web_limit_now_playing_animation_killswitch")||this.videoId===O)};
eW.prototype.activeChanged=eW.prototype.activeChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],eW.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eW.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],eW.prototype,"isVideoPlaying",void 0);_.L([_.T(),_.q("design:type",String)],eW.prototype,"videoId",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],eW.prototype,"equalizerOnly",void 0);_.L([_.T(),_.q("design:type",Boolean)],eW.prototype,"isActive",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],eW.prototype,"nowPlayingBadge",void 0);_.L([_.AA("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eW.prototype,"activeChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],eW);
_.Y(eW,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(te6!==void 0)return te6;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return te6=l},{mode:1});var qa0;var OM=function(){return _.B.apply(this,arguments)||this};
_.m(OM,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OM.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],OM);
_.Y(OM,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(qa0!==void 0)return qa0;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qa0=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var vjx;var EM=function(){return _.B.apply(this,arguments)||this};
_.m(EM,_.B);EM.prototype.onDurationChanged=function(){var l,e;_.ud(this.hostElement).querySelector("#progress").style.width=((e=(l=this.data)==null?void 0:l.percentDurationWatched)!=null?e:0)+"%"};
EM.prototype.onDurationChanged=EM.prototype.onDurationChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],EM.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],EM.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],EM.prototype,"isLive",void 0);_.L([_.AA("data.percentDurationWatched"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],EM.prototype,"onDurationChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],EM);
_.Y(EM,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(vjx!==void 0)return vjx;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return vjx=l},{mode:1});var Nlk;var Jd=function(){var l=_.B.apply(this,arguments)||this;l.bottomPanel=!1;l.richGridOverlay=!1;l.watchFeedOverlay=!1;l.isCompact=!1;return l};
_.m(Jd,_.B);Jd.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Ji.Object.defineProperties(Jd.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:(e=l.icon)==null?void 0:e.iconType)==="PLAY_ALL"&&_.a("kevlar_system_icons")}}});
Jd.prototype.widthChanged=Jd.prototype.widthChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Jd.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],Jd.prototype,"width",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Jd.prototype,"bottomPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Jd.prototype,"richGridOverlay",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Jd.prototype,"watchFeedOverlay",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Jd.prototype,"isCompact",void 0);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Jd.prototype,"isIconFilled",null);_.L([_.AA("width","watchFeedOverlay"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jd.prototype,"widthChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Jd);
_.Y(Jd,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Nlk!==void 0)return Nlk;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Nlk=l},{mode:1});var rvk;var DM1=["CLIP","SHORTS"],Xf=function(){var l=_.B.apply(this,arguments)||this;l.animated=_.a("animated_live_badge_icon");l.hasIcon=!1;l.updateTimerIntervalId=0;l.timeSinceLive=0;return l};
_.m(Xf,_.B);_.X=Xf.prototype;_.X.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.X.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.X.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.X.hasIconOrText=function(){var l,e;return!!(((l=this.data)==null?0:l.icon)||((e=this.data)==null?0:e.text))};
_.X.initializeLiveBadgeTimer=function(){var l=this,e,O=(e=this.liveBadgeData)==null?void 0:e.startTimestampSec;if(O&&this.canShowLiveBadgeTimer()){var E;e=Number((E=this.liveBadgeData)==null?void 0:E.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(O);this.updateTimerIntervalId=_.gL(function(){l.canShowLiveBadgeTimer()?l.timeSinceLive++:(l.timeSinceLive=0,window.clearInterval(l.updateTimerIntervalId))},e)}else this.timeSinceLive=0};
_.X.canShowLiveBadgeTimer=function(){var l=Date.now(),e,O;return l<(Number((e=this.liveBadgeData)==null?void 0:e.endTimestampSec)-1)*1E3&&l>Number((O=this.liveBadgeData)==null?void 0:O.startTimestampSec)*1E3};
_.Ji.Object.defineProperties(Xf.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=this.data;var e=this.timeSinceLive;var O,E,J,z;a:{var M=l.style;if(M===void 0)M=16;else switch(M){case "LIVE":M=17;break a;default:M=16}}e={type:M,text:e?s6V({seconds:e}):_.lG(l.text),accessibilityText:(O=l.text)==null?void 0:(E=O.accessibility)==null?void 0:(J=E.accessibilityData)==null?void 0:J.label,icon:(z=l.icon)==null?void 0:z.iconType}}else e={};return e}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.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 DM1.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Xf.prototype.initializeLiveBadgeTimer=Xf.prototype.initializeLiveBadgeTimer;Xf.prototype.dataChanged=Xf.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Xf.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Xf.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],Xf.prototype,"icon",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Xf.prototype,"animated",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.q("design:type",Boolean)],Xf.prototype,"hideTimeStatus",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Xf.prototype,"hasIcon",void 0);_.L([_.T(),_.q("design:type",Object)],Xf.prototype,"timeSinceLive",void 0);_.L([_.R("data","timeSinceLive"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xf.prototype,"badgeShapeData",null);
_.L([_.R("data","overlayType"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Xf.prototype,"hideBadgeShape",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xf.prototype,"dataChanged",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.style"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xf.prototype,"overlayStyle",null);
_.L([_.R("data.liveBadgeData"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xf.prototype,"liveBadgeData",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.type"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xf.prototype,"overlayType",null);_.L([_.R("overlayType","overlayStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Xf.prototype,"useFilledIcon",null);
_.L([_.y0("liveBadgeData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xf.prototype,"initializeLiveBadgeTimer",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Xf);
_.Y(Xf,"ytd-thumbnail-overlay-time-status-renderer",function(){if(rvk!==void 0)return rvk;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rvk=l},{mode:_.Wf("kevlar_poly_si_batch_j035")?1:2});var SaF;var zD=function(){return _.B.apply(this,arguments)||this};
_.m(zD,_.B);zD.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"}}}}};
zD.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(l){if(this.hasPlaybackProgressBar)return{percentDurationWatched:l.percentDurationWatched}};
zD.prototype.computeHasPlaybackProgressBar=function(l){return!!l.percentDurationWatched&&l.percentDurationWatched>0};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zD.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.q("design:type",Boolean)],zD.prototype,"hasPlaybackProgressBar",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],zD);
_.Y(zD,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(SaF!==void 0)return SaF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return SaF=l},{mode:1});var Q1x;var xM0=_.XO(function(l){var e=l.data;var O=l.children;var E=function(){return!!e().doubleStack};
return _.W("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!e().experimentEnabled}},_.W(_.A,{cond:e,
then:function(){return _.W("div",null,_.W(_.A,{cond:E,then:function(){var J={};return _.W("div",{class:_.ax("collections-stack-wiz__collection-stack2",function(){return e().customClassName2ndStack},(J["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return e().enableResponsiveMode},J)),
style:_.HF({"background-color":function(){return Lp8(e())}})})}}),_.W("div",{class:_.ax("collections-stack-wiz__collection-stack1",function(){return e().customClassName1stStack},function(){return h8t(e().thumbnailSize?e().thumbnailSize:"medium")}),
style:_.HF({"background-color":function(){return Lp8(e())}})}),O)}}))},"P");_.Zw(xM0,"yt-collections-stack",{props:{data:_.lB}});var bE=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};l.webModernCollections=!1;l.isSearch=!1;l.isDoubleStack=!1;l.thumbnailSize="medium";l.enableWebModernCollectionsV2=_.a("web_modern_collections_v2");return l};
_.m(bE,_.B);_.X=bE.prototype;
_.X.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]]"}}}}}};
_.X.getThumbnailDetails=function(l){if(l!=null&&l.thumbnailRenderer){var e=l.thumbnailRenderer,O;if((O=e.playlistVideoThumbnailRenderer)==null?0:O.thumbnail)return e.playlistVideoThumbnailRenderer.thumbnail;var E;if((E=e.playlistCustomThumbnailRenderer)==null?0:E.thumbnail)return e.playlistCustomThumbnailRenderer.thumbnail;l=l.thumbnailRenderer;var J;if((J=l.showCustomThumbnailRenderer)==null?0:J.thumbnail)return l.showCustomThumbnailRenderer.thumbnail}};
_.X.computeOverlayColor=function(l){var e,O;if((e=this.getThumbnailDetails(l))==null?0:(O=e.darkColorPalette)==null?0:O.section2Color)return this.getThumbnailDetails(l).darkColorPalette.section2Color;var E;return(E=this.getThumbnailDetails(l))==null?void 0:E.sampledThumbnailColor};
_.X.computeWebModernCollections=function(l){if(l==null||!l.thumbnailOverlays)return!1;l=_.b(l.thumbnailOverlays);for(var e=l.next();!e.done;e=l.next()){var O=void 0;if((O=e.value)==null?0:O.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.X.computeNavigationEndpoint=function(l){return UkT(l==null?void 0:l.navigationEndpoint)};
_.Ji.Object.defineProperties(bE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var l=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:l==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:l==null?void 0:l.vibrantColorPalette,darkColorPalette:l==null?void 0:l.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],bE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(MEx),_.q("design:type",Object)],bE.prototype,"ytdThumbnailBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],bE.prototype,"componentBehavior",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],bE.prototype,"watchFeedThumbnail",void 0);_.L([_.T(),_.q("design:type",Number)],bE.prototype,"customThumbnailSize",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],bE.prototype,"hideAria",void 0);_.L([_.T(),_.q("design:type",Object)],bE.prototype,"data",void 0);_.L([_.T({computed:"computeOverlayColor(data)"}),_.q("design:type",Object)],bE.prototype,"overlayColor",void 0);
_.L([_.T({computed:"computeWebModernCollections(data)"}),_.q("design:type",Object)],bE.prototype,"webModernCollections",void 0);_.L([_.T({computed:"computeNavigationEndpoint(data)"}),_.q("design:type",Object)],bE.prototype,"computedNavigationEndpoint",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],bE.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],bE.prototype,"isDoubleStack",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],bE.prototype,"thumbnailSize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],bE.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.R("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.q("design:type",Object),_.q("design:paramtypes",[])],bE.prototype,"collectionStack",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],bE);
_.Y(bE,"ytd-playlist-thumbnail",function(){if(Q1x!==void 0)return Q1x;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Q1x=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var lxH;var Ml=function(){var l=_.B.apply(this,arguments)||this;l.noEndpoints=!1;l.amsterdamPostMvp=_.a("web_amsterdam_post_mvp_playlists");l.badges=[];l.transferState="TRANSFER_STATE_UNKNOWN";return l};
_.m(Ml,_.B);_.X=Ml.prototype;_.X.getMetadata=function(l){if(!l)return[];var e=[],O=l.shortViewCountText||l.viewCountText;O&&e.push(_.lG(O));l.publishedTimeText&&e.push(_.lG(l.publishedTimeText));l.upcomingEventData&&l.upcomingEventData.upcomingEventText&&e.push(_.LT(_.lG(l.upcomingEventData.upcomingEventText),Number(l.upcomingEventData.startTime)));return e};
_.X.observeDataForBylineSeparator=function(){this.data&&_.oB(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.X.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.t$(this.metadataColor)};
_.X.getSimpleString=function(l){return _.lG(l)};
_.X.isBylineHidden=function(l){return this.noByline||!((l==null?0:l.longBylineText)||(l==null?0:l.shortBylineText))};
_.X.isMetadataHidden=function(l){var e;return((e=this.getMetadata(l))==null?void 0:e.length)===0};
_.X.isBylineMetadataSeparatorHidden=function(l){return this.isMetadataHidden(l)||!this.shouldShowVideoInfo};
_.X.isLongByline=function(l,e){return e&&!(l==null||!l.longBylineText)};
_.Ji.Object.defineProperties(Ml.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var l;return this.amsterdamPostMvp&&!((l=this.data)==null||!l.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.a("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Ml.prototype.metadataColorChanged=Ml.prototype.metadataColorChanged;Ml.prototype.observeDataForBylineSeparator=Ml.prototype.observeDataForBylineSeparator;_.L([_.K(_.sY),_.q("design:type",Object)],Ml.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ml.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Ml.prototype,"noEndpoints",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"isSlimShort",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"radioMeta",void 0);_.L([_.T({selector:_.vi}),_.q("design:type",Object)],Ml.prototype,"isGridViewEnabled",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"richMeta",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ml.prototype,"amsterdamPostMvp",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ml.prototype,"noByline",void 0);
_.L([_.T({computed:"isLongByline(data, radioMeta)"}),_.q("design:type",Boolean)],Ml.prototype,"longByline",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"truncateMetadataLine",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"miniMode",void 0);_.L([_.T(),_.q("design:type",Number)],Ml.prototype,"metadataColor",void 0);_.L([_.T(),_.q("design:type",Array)],Ml.prototype,"badges",void 0);
_.L([_.T({selector:_.Yp,selectorArgs:["data.videoId"]}),_.q("design:type",String)],Ml.prototype,"transferState",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"isDownloading",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Ml.prototype,"typographyBump",void 0);_.L([_.aB("#metadata-line"),_.q("design:type",HTMLElement)],Ml.prototype,"metadataLine",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ml.prototype,"observeDataForBylineSeparator",null);_.L([_.AA("metadataColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ml.prototype,"metadataColorChanged",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ml.prototype,"shouldShowVideoInfo",null);
_.L([_.R("badges"),_.q("design:type",String),_.q("design:paramtypes",[])],Ml.prototype,"inlineBadgeClass",null);_.L([_.R("longByline"),_.q("design:type",String),_.q("design:paramtypes",[])],Ml.prototype,"longBylineClass",null);_.L([_.R("data","longByline"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ml.prototype,"bylineText",null);_.L([_.R("isGridViewEnabled","data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ml.prototype,"watchFeedBigThumbs",null);
_.L([_.U({is:"ytd-video-meta-block",disableElementRegistration:!0})],Ml);
_.Y(Ml,"ytd-video-meta-block",function(){if(lxH!==void 0)return lxH;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return lxH=l},{mode:_.Wf("kevlar_poly_si_batch_j080")?1:2});_.Y7("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Va=function(){var l=_.B.apply(this,arguments)||this;l.displayItemCount=2;l.isBackstagePlaylist=!1;l.isPostCompactPlaylist=!1;l.shouldShowChannelThumbnail=!1;l.useModernCollectionsV2=_.a("web_modern_collections_v2");return l};
_.m(Va,_.B);_.X=Va.prototype;_.X.computeFirstVideos=function(l,e){return l===void 0||e===void 0?[]:l.slice(0,e)};
_.X.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var l=this.data.thumbnailRenderer;l.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",l.playlistVideoThumbnailRenderer.thumbnail);l.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",l.playlistCustomThumbnailRenderer.thumbnail)}};
_.X.computeThumbnailHeight=function(l,e,O,E,J){return E?J==="BIG"?280:J==="MASSIVE"?337:234:O?240:e?72:l?118:138};
_.X.computeThumbnailWidth=function(l,e,O,E,J){return E?J==="MEDIUM"?450:J==="BIG"?500:J==="MASSIVE"?600:420:O?360:e?128:l?210:246};
_.X.computeUseBiggerThumbs=function(l){return l&&_.a("enable_desktop_search_bigger_thumbs")};
_.X.computeShouldShowChannelThumbnail=function(l,e){return l&&!(e==null||!e.channelThumbnail)};
_.Ji.Object.defineProperties(Va.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Va.prototype.dataChanged=Va.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],Va.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Va.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Va.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Va.prototype,"displayItemCount",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Va.prototype,"isBackstagePlaylist",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Va.prototype,"isPostCompactPlaylist",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Va.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.q("design:type",Boolean)],Va.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],Va.prototype,"biggerThumbsStyle",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Va.prototype,"isDownloads",void 0);_.L([_.T({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.q("design:type",Object)],Va.prototype,"shouldShowChannelThumbnail",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Va.prototype,"useModernCollectionsV2",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Va.prototype,"dataChanged",null);_.L([_.R("isSearch"),_.q("design:type",String),_.q("design:paramtypes",[])],Va.prototype,"stackThumbnailSize",null);_.L([_.U({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Va);
_.Y(Va,"ytd-playlist-renderer",function(){if(TlC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);TlC=l}l=TlC;return l},{mode:1});var e8x;var OfR;var ZE=function(){var l=_.B.apply(this,arguments)||this;l.collections=!!_.a("web_modern_collections_v2");l.startX=0;return l};
_.m(ZE,_.B);ZE.prototype.onEndpointMouseDown=function(l){this.startX=l.clientX};
ZE.prototype.onEndpointClick=function(l){this.startX!==l.clientX&&(l.preventDefault(),l.stopPropagation())};
ZE.prototype.computeObjectFit=function(l){return l==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||l==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||l==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
ZE.prototype.computeCardStyle=function(l){return l?l.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Ji.Object.defineProperties(ZE.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var l,e;return this.collections&&((l=this.data)==null?void 0:(e=l.searchRefinementCardRendererStyle)==null?void 0:e.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ZE.prototype,"data",void 0);_.L([_.T({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.q("design:type",Number)],ZE.prototype,"objectFit",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.q("design:type",String)],ZE.prototype,"cardStyle",void 0);
_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],ZE.prototype,"roundContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ZE.prototype,"collections",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ZE.prototype,"isAlbumCard",null);_.L([_.R("data","collections","isAlbumCard"),_.q("design:type",Object),_.q("design:paramtypes",[])],ZE.prototype,"collectionStack",null);
_.L([_.U({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],ZE);
_.Y(ZE,"ytd-search-refinement-card-renderer",function(){if(OfR!==void 0)return OfR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return OfR=l},{mode:1});var EYS;var uE=function(){var l=_.B.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.m(uE,_.B);_.L([_.T(),_.q("design:type",Object)],uE.prototype,"data",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],uE.prototype,"componentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],uE.prototype,"ytdReduxBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],uE.prototype,"isRichGrid",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],uE.prototype,"miniMode",void 0);
_.L([_.U({is:"ytd-game-details-renderer",disableElementRegistration:!0})],uE);
_.Y(uE,"ytd-game-details-renderer",function(){if(EYS!==void 0)return EYS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return EYS=l},{mode:1});var JES;var Xrq;var CY=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return l};
_.m(CY,_.B);_.X=CY.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.currentStateData=function(l){var e=l||this.data;return e&&e.states&&e.currentStateId!=null?e.states.find(function(O){return O.stateId===e.currentStateId})||null:null};
_.X.currentStateRendererData=function(l){return(l=this.currentStateData(l))&&l.state&&l.state.buttonRenderer?l.state.buttonRenderer:null};
_.X.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())};
_.X.computeButtonIcon=function(l){l=this.currentStateRendererData(l);var e;return(l==null?0:(e=l.icon)==null?0:e.iconType)?l.icon.iconType.toLowerCase():null};
_.X.computeAccessibility=function(l){return(l=this.currentStateRendererData(l))&&l.accessibilityData?l.accessibilityData.accessibilityData||null:null};
_.X.computeButtonClass=function(l){var e=this.currentStateRendererData(l);if(!e)return"";l="";var O=e.style;O&&(l+=O.toLowerCase().replace(/_/g,"-")+" ");(e=e.size)&&(l+=e.toLowerCase().replace(/_/g,"-")+" ");return l.trim()};
_.X.computeServiceEndpoint=function(l){if(!l)return null;var e=l&&l.serviceEndpoint,O=this.get("command.commandMetadata.webCommandMetadata.sendPost",l);return e?e:O&&l.command?l.command:null};
_.X.computeBellMenuItemParams=function(l){var e;l=(e=_.I(l==null?void 0:l.command,_.nz))==null?void 0:e.commands;if(!l||l.length===0)return null;e=_.I(l[0],_.Fn);var O,E;return(e==null?0:(O=e.popup)==null?0:(E=O.menuPopupRenderer)==null?0:E.items)?e.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.X.handleBellMenuOpenSelectedAction=function(l){var e=l.trackingParams,O=this.computeBellMenuItemParams(this.data);this.data&&e&&O&&O.includes(e)&&this.ytRenderButtonBehavior._setButtonIcon(l.icon.iconType.toLowerCase())};
_.X.onYtServiceRequestCompleted=function(l,e){(l=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))&&this.set("data",l)};
_.X.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.X.resetState=function(){this.set("data.currentStateId",3)};
_.X.onYtButtonTapHandler=function(){if(this.data){var l=this.currentStateRendererData(this.data);l&&this.ytRendererBehavior.logExplicitClick(l)}};
CY.prototype.onYtServiceRequestError=CY.prototype.onYtServiceRequestError;CY.prototype.onYtServiceRequestCompleted=CY.prototype.onYtServiceRequestCompleted;CY.prototype.stateChanged=CY.prototype.stateChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],CY.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(yG.YtRenderButtonBehavior),_.q("design:type",Object)],CY.prototype,"ytRenderButtonBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CY.prototype,"data",void 0);_.L([_.y0("data","data.currentStateId"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CY.prototype,"stateChanged",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],CY.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CY.prototype,"onYtServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],CY);
_.Y(CY,"ytd-subscription-notification-toggle-button-renderer",function(){if(Xrq!==void 0)return Xrq;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Xrq=l},{mode:1});var z8q;var oe=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};l.tapHandler=function(){if(l.data){var e=l.currentStateRendererData();e&&l.ytRendererBehavior.logExplicitClick(e)}};
return l};
_.m(oe,_.B);_.X=oe.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.currentStateData=function(){var l=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(e){return e.stateId===l.data.currentStateId})||null:null};
_.X.currentStateRendererData=function(){var l=this.currentStateData();return l&&l.state&&l.state.buttonRenderer?l.state.buttonRenderer:null};
_.X.computeAccessibilityLabel=function(){var l,e,O;return(l=this.currentStateRendererData())==null?void 0:(e=l.accessibilityData)==null?void 0:(O=e.accessibilityData)==null?void 0:O.label};
_.X.computeBellMenuItemParams=function(){var l,e,O=(e=_.I((l=this.data)==null?void 0:l.command,_.nz))==null?void 0:e.commands;if(!O||O.length===0)return null;l=_.I(O[0],_.Fn);var E,J;return(l==null?0:(E=l.popup)==null?0:(J=E.menuPopupRenderer)==null?0:J.items)?l.popup.menuPopupRenderer.items.map(function(z){return z.menuServiceItemRenderer.trackingParams}):null};
_.X.handleBellMenuOpenSelectedAction=function(l){var e=l.trackingParams,O=this.computeBellMenuItemParams();if(this.data&&e&&O&&O.includes(e)&&(l==null||!l.isDisabled)){var E;((E=_.I(l.serviceEndpoint,_.ku))==null?void 0:E.signal)!=="CLIENT_SIGNAL"&&(this.icon=l.icon.iconType)}};
_.X.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.X.onYtServiceRequestCompleted=function(l,e){if(l=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))this.icon=void 0,this.set("data",l)};
_.X.onYtServiceRequestError=function(){this.icon=void 0};
_.Ji.Object.defineProperties(oe.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=this.data,e=this.textLabel,O=this.hostElement,E=this.computeAccessibilityLabel(),J=this.tapHandler,z=this.isOverlay?"overlay":"mono",M=(l==null?0:l.disableButton)?"disabled":"active";e=e?_.Ut(e):void 0;return{style:z,type:"tonal",state:M,size:"M",focused:!1,formattedButtonText:e,iconPosition:"leading-trailing",onTap:vY8(l,J,O),accessibilityLabel:E}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var l=this.currentStateRendererData(),e,O,E=(O=this.icon)!=null?O:l==null?void 0:(e=l.icon)==null?void 0:e.iconType;if(E)return _.w6(E)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.data)==null?void 0:(e=l.secondaryIcon)==null?void 0:e.iconType;if(O)return _.w6(O)}}});
oe.prototype.onYtServiceRequestError=oe.prototype.onYtServiceRequestError;oe.prototype.onYtServiceRequestCompleted=oe.prototype.onYtServiceRequestCompleted;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],oe.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],oe.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],oe.prototype,"textLabel",void 0);
_.L([_.T(),_.q("design:type",String)],oe.prototype,"icon",void 0);_.L([_.T(),_.q("design:type",Boolean)],oe.prototype,"isOverlay",void 0);_.L([_.R("data.*","textLabel"),_.q("design:type",Object),_.q("design:paramtypes",[])],oe.prototype,"computedButtonShape",null);_.L([_.R("data.*","icon"),_.q("design:type",Object),_.q("design:paramtypes",[])],oe.prototype,"computedIcon",null);_.L([_.R("data.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],oe.prototype,"computedSecondaryIcon",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],oe.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],oe.prototype,"onYtServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],oe);
_.Y(oe,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(z8q!==void 0)return z8q;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return z8q=l},{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var bfq;_.Zw(XOS,"yt-animated-action",{props:{backgroundLottieRef:_.lB,foregroundLottieRef:_.lB,wrapperClass:_.lB,disableAnimation:_.lB},unsafeExternallySettableAttributes:new Set(["key"])});var $R=function(){var l=_.B.apply(this,arguments)||this;l.animatedActionEnabled=_.a("web_animated_actions");l.foregroundLottieRef={};l.backgroundLottieRef={};l.forceIconOnly=!1;l.showTextWhileAnimating=!1;l.keyboardFocused=!1;l.isAnimating=!1;l.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return l};
_.m($R,_.B);_.X=$R.prototype;_.X.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.X.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]]"}}}}}};
_.X.attached=function(){this.keyboardFocused=!1};
_.X.onYtServiceRequestSent=function(l,e){(this.get("endpoint.subscribeEndpoint",e)||this.get("endpoint.unsubscribeEndpoint",e))&&this.updateSubscriptionState(!this.subscribed)};
_.X.onYtServiceRequestCompleted=function(l,e){(l=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",e.data))&&this.bellButton&&(this.bellButton.data=l)};
_.X.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.dP(this.hostElement)};
_.X.onPlayerSubscribe=function(l){this.isCompactRed()||l!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.X.onPlayerUnsubscribe=function(l){this.isCompactRed()||l!==this.data.channelId||this.updateSubscriptionState(!1)};
_.X.handleUpdateSubscribeButtonAction=function(l){l=_.I(l,H21);var e;l&&l.channelId===((e=this.data)==null?void 0:e.channelId)&&this.updateSubscriptionState(!!l.subscribed)};
_.X.computeButtonStyle=function(l){return this.get("style.styleType",l)||null};
_.X.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.X.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.X.updateSubscriptionState=function(l){if(l!==this.subscribed){this.set("data.subscribed",l);var e,O=(e=this.data)==null?void 0:e.subscribedEntityKey;O&&this.ytdReduxBehavior.dispatch(_.IK("subscriptionStateEntity",O,{key:O,subscribed:l}));this.isCompactRed()||_.$u(this.hostElement,"yt-subscription-changed",l);l||(_.Wb(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!l),l&&this.hasBellButton&&this.startAnimation())}};
_.X.startAnimation=function(){var l=this;if(!this.isAnimating){var e=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var O;(O=this.backgroundLottieRef.lottieEl)==null||O.goToAndPlay(0);var E;(E=this.foregroundLottieRef.lottieEl)==null||E.goToAndPlay(0);_.UD.addJob(function(){l.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.UD.addJob(function(){l.updateContainerToFitContent(!!l.subscribed,!0)},2,1500);
_.UD.addJob(function(){l.isAnimating=!1},2,e)}};
_.X.maybeAnimateBellIcon=function(){var l=_.C1(this.hostElement).querySelector("yt-animated-icon");if(l){var e;(e=l.animationRef.lottieEl)==null||e.goToAndPlay(0)}};
_.X.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.X.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.X.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var l;this.unsubscribedWidth=(l=this.subscribeButtonShape)==null?void 0:l.getBoundingClientRect().width}var e;this.subscribedWidth=(e=this.bellButton)==null?void 0:e.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.X.updateContainerToFitContent=function(l,e){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(l?(l=this.subscribedWidth,e=this.isAnimating&&!e,this.subscribedIconOnlyWidth===void 0||e||(l=this.subscribedIconOnlyWidth),this.hostElement.style.width=l+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.X.clearContainerSize=function(){this.hostElement.style.width=""};
_.X.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.X.maybeSetSubscribedButtonIconOnlyWidth=function(){var l=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var e;l.subscribedIconOnlyWidth=(e=l.bellButton)==null?void 0:e.getBoundingClientRect().width;requestAnimationFrame(function(){if(l.bellButton){var O;l.bellButton.textLabel=
(O=l.data)==null?void 0:O.subscribedButtonText}})})))};
_.Ji.Object.defineProperties($R.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 l;return(l=this.data)==null?void 0:l.subscribedButtonText}var e;return this.forceIconOnly?void 0:(e=this.data)==null?void 0:e.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var l,e,O=((l=this.data)==null?void 0:(e=l.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"subscribe",timings:O,enabled:O.length>0&&!this.subscribed,experimentEnabled:O.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var l;return!this.subscribed&&((l=this.data)==null?void 0:l.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 l={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var e=l.renderer;var O=l.element;var E=l.subscribed;var J=l.commandController;var z=l.isOverlay;l=l.config;var M=SXp(e,E);z&&(M.style="overlay");z=Object;var Z=z.assign,u;a:switch((u=e.style)==null?void 0:u.styleType){case "COMPACT_GRAY":case "COMPACT_RED":u={size:"S"};break a;default:u={size:"M"}}var d=DQt(e,E);var g=
(g=E?e.subscribedButtonText:e.unsubscribedButtonText)?_.Ut(g):void 0;return Z.call(z,{},M,u,{focused:!1,toggled:E,accessibilityLabel:d,formattedButtonText:g,onTap:rEx(e,l,E,O,J)})}}}});
$R.prototype.onMouseDown=$R.prototype.onMouseDown;$R.prototype.onDataChanged=$R.prototype.onDataChanged;$R.prototype.observedSubscribed=$R.prototype.observedSubscribed;$R.prototype.onYtServiceRequestCompleted=$R.prototype.onYtServiceRequestCompleted;$R.prototype.onYtServiceRequestSent=$R.prototype.onYtServiceRequestSent;$R.prototype.maybeUpdateBellButtonText=$R.prototype.maybeUpdateBellButtonText;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$R.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],$R.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$R.prototype,"data",void 0);
_.L([_.T({selectorArgs:["data.subscribedEntityKey"],selector:wT2}),_.q("design:type",Object)],$R.prototype,"subscriptionStateEntity",void 0);_.L([_.T({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.q("design:type",Boolean)],$R.prototype,"subscribed",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$R.prototype,"branded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$R.prototype,"animatedActionEnabled",void 0);
_.L([_.T(),_.q("design:type",Object)],$R.prototype,"foregroundLottieRef",void 0);_.L([_.T(),_.q("design:type",Object)],$R.prototype,"backgroundLottieRef",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$R.prototype,"overlayButton",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.q("design:type",Object)],$R.prototype,"buttonStyle",void 0);_.L([_.T(),_.q("design:type",Object)],$R.prototype,"forceIconOnly",void 0);
_.L([_.T(),_.q("design:type",Object)],$R.prototype,"showTextWhileAnimating",void 0);_.L([_.T({value:function(){return!!_.V2().resolve(_.MG(_.of))&&_.a("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.q("design:type",Boolean)],$R.prototype,"useKeyboardFocused",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$R.prototype,"keyboardFocused",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$R.prototype,"isAnimating",void 0);_.L([_.R("data.notificationPreferenceButton.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"hasBellButton",null);
_.L([_.AA("subscribedButtonText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$R.prototype,"maybeUpdateBellButtonText",null);_.L([_.R("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"subscribedButtonText",null);_.L([_.R("data.timedAnimationData.animationTiming","subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"smartimationSettings",null);
_.L([_.T({reflectToAttribute:!0}),_.R("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"subscribeButtonHidden",null);_.L([_.T({reflectToAttribute:!0}),_.R("subscribed","hasBellButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"subscribeButtonInvisible",null);
_.L([_.T({reflectToAttribute:!0}),_.R("subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"unsubscribeButtonHidden",null);_.L([_.aB("ytd-subscription-notification-toggle-button-renderer-next"),_.q("design:type",Object)],$R.prototype,"bellButton",void 0);_.L([_.aB("#subscribe-button-shape"),_.q("design:type",HTMLElement)],$R.prototype,"subscribeButtonShape",void 0);
_.L([_.R("overlayButton","subscribed","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],$R.prototype,"buttonShape",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],$R.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],$R.prototype,"onYtServiceRequestCompleted",null);
_.L([_.AA("subscribed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$R.prototype,"observedSubscribed",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$R.prototype,"onDataChanged",null);_.L([_.wP("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$R.prototype,"onMouseDown",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],$R);
_.Y($R,"ytd-subscribe-button-renderer",function(){if(bfq!==void 0)return bfq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return bfq=l},{mode:1});var Wp=function(){var l=_.B.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.m(Wp,_.B);Wp.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Wp.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wp.prototype,"isRichGrid",void 0);_.L([_.U({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Wp);
_.Y(Wp,"ytd-game-card-renderer",function(){if(JES!==void 0)return JES;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return JES=l},{mode:1});var dr={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.a("defer_menus")&&!rd1?0:void 0,waitForSignal:"eocs"};var Mwk;var VwF;var gr=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return l};
_.m(gr,_.B);_.X=gr.prototype;_.X.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.X.onSeriesReminderStateEntityChange=function(){var l,e,O;((l=this.eventReminderStateEntity)==null?0:l.key)&&((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((O=this.eventReminderStateEntity)==null?void 0:O.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.IK("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.X.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.X.onYtServiceRequestError=function(){var l;this.updateReminderStateEntitiesFromButtonState((l=this.data)==null?void 0:l.currentState)};
_.X.handleUpdateUpcomingEventReminderButtonStateCommand=function(l){if(l=_.I(l,vkx)){var e,O=(e=this.data)==null?void 0:e.targetId;O&&l.targetId===O&&_.N7(this.updateReminderStateEntitiesFromButtonState.bind(this,l.state))}};
_.X.getButtonStateFromReminderState=function(){var l;if(((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var e;if(((e=this.eventReminderStateEntity)==null?void 0:e.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var O,E;if(((O=this.seriesReminderStateEntity)==null?void 0:O.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((E=this.eventReminderStateEntity)==
null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var J;return(J=this.data)==null?void 0:J.currentState};
_.X.updateReminderStateEntitiesFromButtonState=function(l){if(l){switch(l){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":l="UPCOMING_EVENT_REMINDER_STATE_NONE";var e="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":l="UPCOMING_EVENT_REMINDER_STATE_SINGLE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":l="UPCOMING_EVENT_REMINDER_STATE_NONE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var O;
((O=this.eventReminderStateEntity)==null?0:O.key)&&this.ytdReduxBehavior.dispatch(_.IK("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:l})));var E;((E=this.seriesReminderStateEntity)==null?0:E.key)&&this.ytdReduxBehavior.dispatch(_.IK("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:e})))}};
_.Ji.Object.defineProperties(gr.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var l=this.getButtonStateFromReminderState(),e,O;if(l&&((e=this.data)==null?0:(O=e.states)==null?0:O.length))for(e=_.b(this.data.states),O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;if(((E=_.I(O,N01))==null?void 0:E.state)===l)return _.I(O,N01)}}}});
gr.prototype.onYtServiceRequestError=gr.prototype.onYtServiceRequestError;gr.prototype.onYtServiceRequestCompleted=gr.prototype.onYtServiceRequestCompleted;gr.prototype.onSeriesReminderStateEntityChange=gr.prototype.onSeriesReminderStateEntityChange;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],gr.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gr.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:nCp}),_.q("design:type",Object)],gr.prototype,"eventReminderStateEntity",void 0);
_.L([_.T({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(l,e){return _.wV(l.entities,"sportsSeriesReminderStateEntity",e)}}),
_.q("design:type",Object)],gr.prototype,"seriesReminderStateEntity",void 0);_.L([_.R("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],gr.prototype,"currentButtonStateRenderer",null);_.L([_.AA("seriesReminderStateEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gr.prototype,"onSeriesReminderStateEntityChange",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gr.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gr.prototype,"onYtServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],gr);
_.Y(gr,"ytd-upcoming-event-reminder-button-renderer",function(){if(VwF!==void 0)return VwF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return VwF=l},{mode:1});var Zfx;var iE=function(){return _.B.apply(this,arguments)||this};
_.m(iE,_.B);iE.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Ji.Object.defineProperties(iE.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(_.a("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],iE.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],iE.prototype,"shelfDismissal",void 0);_.L([_.R("data.responseText"),_.q("design:type",Object),_.q("design:paramtypes",[])],iE.prototype,"text",null);
_.L([_.R("data.responseText"),_.q("design:type",Object),_.q("design:paramtypes",[])],iE.prototype,"textAriaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],iE);
_.Y(iE,"ytd-notification-multi-action-renderer",function(){if(Zfx!==void 0)return Zfx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Zfx=l},{mode:1});var uyi;var wr=function(){return _.B.apply(this,arguments)||this};
_.m(wr,_.B);wr.prototype.ready=function(){var l=this;_.ud(this.hostElement).querySelector("#undo").addEventListener("tap",function(){l.onUndoTap()})};
wr.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wr.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],wr);
_.Y(wr,"ytd-notification-text-renderer",function(){if(uyi!==void 0)return uyi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return uyi=l},{mode:1});var C9q;var Ad=function(){var l=_.B.apply(this,arguments)||this;l.mouseOverDelayJobId=0;l.fadeInImageDelayJobId=0;l.startTimeMs=-1;l.loadingStartTimeMs=-1;l.loadingEndTimeMs=-1;l.hasVideoPreview=!1;return l};
_.m(Ad,_.B);_.X=Ad.prototype;_.X.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.X.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.X.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.X.showThumbnail=function(){var l=this;this.csn=_.P9();_.hg("fmth");_.UD.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.WF(_.UD,function(){l.loadingStartTimeMs=(0,_.VZ)();var e=_.ud(l.hostElement).querySelector("#thumbnail");e.complete?l.displayMouseOverImage():e.addEventListener("load",_.id(l,l.displayMouseOverImage))},150):_.oB(_.ud(this.hostElement).querySelector("#play"),"show",!0)};
_.X.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.X.onTap=function(){this.removeVideoPreview()};
_.X.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var l=this.videoId,e=this.csn,O=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,E=this.startTimeMs,J=this.hasVideoPreview,z=_.cf(this.trackingParams),M={isMovingThumbnail:J};J&&E>0&&(O>0&&(M.movingThumbnailLoadingDurationMs=Math.round(O)),M.durationHoveredMs=Math.round((0,_.VZ)()-E));l&&(M.videoId=l);_.En(e,z,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:M});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.X.removeVideoPreview=function(){_.UD.cancelJob(this.mouseOverDelayJobId);_.UD.cancelJob(this.fadeInImageDelayJobId);var l=_.ud(this.hostElement).querySelector("#thumbnail");_.oB(l,"fade-in",!1);l.removeEventListener("load",_.id(this,this.displayMouseOverImage));l=_.ud(this.hostElement).querySelector("#play");_.oB(l,"fade-in",!1);_.oB(l,"show",!1)};
_.X.displayMouseOverImage=function(){var l=_.ud(this.hostElement).querySelector("#thumbnail"),e=_.ud(this.hostElement).querySelector("#play");this.isImageAvailable(l)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.VZ)(),this.startTimeMs=(0,_.VZ)(),this.fadeInImageDelayJobId=_.WF(_.UD,function(){_.oB(l,"fade-in",!0)},50)):_.oB(e,"fade-in",!0)};
_.X.computeThumbnail=function(l,e){var O;l&&l.movingThumbnailDetails&&l.movingThumbnailDetails.thumbnails&&e?O=_.up(l.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):O=e?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(O)return _.nU(O)};
_.X.isImageAvailable=function(l){return!(!l.src||l.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||l.naturalWidth===120)};
Ad.prototype.onTap=Ad.prototype.onTap;Ad.prototype.dataChanged=Ad.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ad.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Ad.prototype,"csn",void 0);_.L([_.T(),_.q("design:type",Object)],Ad.prototype,"trackingParams",void 0);
_.L([_.T(),_.q("design:type",String)],Ad.prototype,"videoId",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ad.prototype,"isAttachedAndDataSet",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"dataChanged",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ad.prototype,"onTap",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Ad);
_.Y(Ad,"ytd-moving-thumbnail-renderer",function(){if(C9q!==void 0)return C9q;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return C9q=l},{mode:1});var oYF;_.Ac=function(l){this.hostElement=l;this.eventSink=null;this.eventList=[]};
_.Ac.prototype.shouldForward=function(){var l,e;return(e=(l=this.eventSink)==null?void 0:l.isConnected)!=null?e:document.body.contains(this.eventSink)};
_.Ac.prototype.start=function(l,e){this.eventSink&&this.stop();for(var O=0;O<l.length;O++)this.hostElement.addEventListener(l[O],_.id(this,this.forwardEvent));var E;this.eventSink=(E=e.hostElement)!=null?E:e;this.eventList=l};
_.Ac.prototype.stop=function(){for(var l=0;l<this.eventList.length;l++)this.hostElement.removeEventListener(this.eventList[l],_.id(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Ac.prototype.forwardEvent=function(l,e){this.shouldForward()&&(l.stopPropagation(),this.eventSink instanceof Element?_.$u(this.eventSink,l.type,e):_.hG(new _.Hk("eventSink is not an element")))};_.nY={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Ac(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(l,e){this.forwarder_.start(l,e)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ae=function(){return _.B.apply(this,arguments)||this};
_.m(ae,_.B);_.X=ae.prototype;_.X.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=_.hT("HTML_DIR")==="rtl"?"right":"left"};
_.X.dataChanged=function(){this.popupOpen=!1};
_.X.computeAriaLabel=function(l){return _.I(l,VdR).label};
_.X.onTap=function(l){l.stopPropagation();l.preventDefault();this.data.command&&_.V2().resolve(_.Zh).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.X.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.X.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
ae.prototype.onPopupClosed=ae.prototype.onPopupClosed;ae.prototype.onPopupOpened=ae.prototype.onPopupOpened;ae.prototype.onTap=ae.prototype.onTap;ae.prototype.dataChanged=ae.prototype.dataChanged;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],ae.prototype,"eventForwardingBehavior",void 0);_.L([_.K(_.By),_.q("design:type",Object)],ae.prototype,"ironButtonState",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ae.prototype,"componentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],ae.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:-1}),_.q("design:type",Number)],ae.prototype,"tabindex",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.q("design:type",Object)],ae.prototype,"ariaLabel",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],ae.prototype,"disableTooltips",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ae.prototype,"popupOpen",void 0);
_.L([_.T(),_.q("design:type",Element)],ae.prototype,"eventSink",void 0);_.L([_.aB("#tooltip"),_.q("design:type",Object)],ae.prototype,"tooltip",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ae.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ae.prototype,"onTap",null);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ae.prototype,"onPopupOpened",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ae.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ae);
_.Y(ae,"ytd-thumbnail-overlay-button-renderer",function(){if(oYF!==void 0)return oYF;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return oYF=l},{mode:1});var $Qq;var kR=function(){return _.B.apply(this,arguments)||this};
_.m(kR,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kR.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],kR.prototype,"disableAnimation",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],kR.prototype,"rounded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],kR.prototype,"transparentBackground",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],kR.prototype,"noPadding",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],kR);
_.Y(kR,"ytd-thumbnail-overlay-endorsement-renderer",function(){if($Qq!==void 0)return $Qq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $Qq=l},{mode:1});var Wpq;var Ie=function(){return _.B.apply(this,arguments)||this};
_.m(Ie,_.B);Ie.prototype.computeIconPosition=function(l){return this.get("iconPosition",l)||null};
Ie.prototype.computeIconStyle=function(l){return this.get("iconStyle",l)||null};
Ie.prototype.computeIsIconStyleFilled=function(l){if(!l)return!1;var e;return l.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((e=l.icon)==null?void 0:e.iconType)==="ERROR_BLACK"};
_.L([_.T(),_.q("design:type",Object)],Ie.prototype,"data",void 0);_.L([_.T({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.q("design:type",Object)],Ie.prototype,"iconPosition",void 0);_.L([_.T({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.q("design:type",Object)],Ie.prototype,"iconStyle",void 0);_.L([_.T({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ie.prototype,"iconStyleFilled",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Ie);
_.Y(Ie,"ytd-thumbnail-overlay-icon-renderer",function(){if(Wpq!==void 0)return Wpq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Wpq=l},{mode:1});var dQ6;var mO=function(){return _.B.apply(this,arguments)||this};
_.m(mO,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mO.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],mO);
_.Y(mO,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(dQ6!==void 0)return dQ6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dQ6=l},{mode:1});var gY6;var ya=function(){var l=_.B.apply(this,arguments)||this;l.isPreviewLoading=!1;return l};
_.m(ya,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ya.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ya.prototype,"isPreviewLoading",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],ya);
_.Y(ya,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(gY6!==void 0)return gY6;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gY6=l},{mode:1});var ifq;var pY=function(){return _.B.apply(this,arguments)||this};
_.m(pY,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pY.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],pY);
_.Y(pY,"ytd-thumbnail-overlay-pinking-renderer",function(){if(ifq!==void 0)return ifq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ifq=l},{mode:1});var wr1;var KY=function(){var l=_.B.apply(this,arguments)||this;l.disableTooltips=!1;l.isLoading=!1;l.useExpandableTooltip=!1;l.toggled=!1;l.hovered=!1;l.mouseoverDelayJobId=0;l.toggleDelayJobId=0;l.expandAnimationDelayJobId=0;return l};
_.m(KY,_.B);_.X=KY.prototype;_.X.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");_.ud(this.hostElement).querySelector("#tooltip").position=_.hT("HTML_DIR")==="rtl"?"right":"left"};
_.X.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.UD.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.UD.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.UD.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.X.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.UD.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.UD.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.UD.cancelJob(this.expandAnimationDelayJobId)};
_.X.computeIcon=function(l,e,O){return(l=O?e:l)&&l.iconType?_.w6(l.iconType):void 0};
_.X.computeAriaLabel=function(l,e,O){return _.I(O?e:l,VdR).label};
_.X.computeTooltip=function(l,e,O){return O?e:l};
_.X.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.X.computeIconOnHover=function(l,e){if((l==null?0:l.iconType)&&!e)return _.w6(l.iconType)};
_.X.onTap=function(l){var e=this;l.stopPropagation();l.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(l=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(l),this.useExpandableTooltip&&(this.toggleDelayJobId=_.WF(_.UD,function(){e.hovered=!1;e.data&&!e.data.toggledServiceEndpoint&&(e.expandAnimationDelayJobId=_.WF(_.UD,function(){e.set("data.isToggled",
!1)},200))},2E3))};
_.X.onMouseenter=function(){var l=this;this.mouseoverDelayJobId=_.WF(_.UD,function(){l.hovered=!0},300)};
_.X.onMouseleave=function(){_.UD.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.X.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.X.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.X.onServiceRequestCompleted=function(l,e){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(e)||this.set("data.isToggled",!this.data.isToggled)};
_.X.serviceRequestWasSuccessful=function(l){return _.I(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.BC)?l.data.status==="STATUS_SUCCEEDED":!0};
KY.prototype.onServiceRequestCompleted=KY.prototype.onServiceRequestCompleted;KY.prototype.onPopupClosed=KY.prototype.onPopupClosed;KY.prototype.onPopupOpened=KY.prototype.onPopupOpened;KY.prototype.onMouseleave=KY.prototype.onMouseleave;KY.prototype.dataChanged=KY.prototype.dataChanged;_.L([_.K(_.By),_.q("design:type",Object)],KY.prototype,"ironButtonState",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],KY.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],KY.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],KY.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.q("design:type",Object)],KY.prototype,"ariaLabel",void 0);_.L([_.T(),_.q("design:type",Object)],KY.prototype,"disableTooltips",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],KY.prototype,"popupOpen",void 0);_.L([_.T(),_.q("design:type",Object)],KY.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Element)],KY.prototype,"eventSink",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KY.prototype,"useExpandableTooltip",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.q("design:type",Object)],KY.prototype,"toggled",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KY.prototype,"hovered",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.q("design:type",Object)],KY.prototype,"iconOnHover",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KY.prototype,"dataChanged",null);
_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KY.prototype,"onMouseleave",null);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KY.prototype,"onPopupOpened",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KY.prototype,"onPopupClosed",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],KY.prototype,"onServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],KY);
_.Y(KY,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(wr1!==void 0)return wr1;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wr1=l},{mode:_.Wf("kevlar_poly_si_batch_j053")?1:2});var AEi;var nYq=_.XO(function(l){var e=l.data;var O=l.thumbnailSize;var E=function(){return e().enableSegmentView};
return _.W("yt-thumbnail-overlay-progress-bar-view-model",{class:_.ax("ytThumbnailOverlayProgressBarHost",function(){return Qbp(O==null?void 0:O())})},_.W(_.A,{cond:E,
then:function(){return _.W("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.W("div",{class:_.Ix("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+e().startPercent+"%"}}),_.W("div",{class:_.Ix("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+e().segmentDurationPercent+"%"}},_.W("div",{class:_.Ix("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.W("div",null," ",function(){return e().segmentLabel})),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.W("div",{class:_.Ix("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.W(_.A,{cond:function(){return!E()&&e().startPercent},
then:function(){var J={};return _.W("div",{class:_.Ix("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(J.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.a("web_enable_modern_progress_bar_overlay"),J))},_.W("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+e().startPercent+"%"}}))}}))},"Q");
nYq.idomCompat=!0;var axH=_.XO(function(l){var e=_.iV(),O=_.Ld(function(J){var z,M,Z;a:{var u=(z=l.data())==null?void 0:z.animationActivationTargetId;z=((M=l.data())==null?void 0:M.animationActivationEntityKey)||"";M=(Z=l.data())==null?void 0:Z.animationActivationEntitySelectorType;if(z&&u)switch(M){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":J=_.wV(J.entities,"playerStateEntity",z);Z=_.V2().resolve(_.MG(_.NJ));u=!!(J&&J.videoId===u&&(Z==null?0:Z.isMiniplayerActive()));u={activated:u,playAnimation:u&&
J.playerState==="PLAYER_STATE_PLAYING"};break a}u=void 0}return u});
_.Gh(function(){var J;if((J=O())==null?0:J.activated){var z;if((z=O())==null?0:z.playAnimation){var M;(M=e.lottieEl)==null||M.goToAndPlay(0)}else{var Z;(Z=e.lottieEl)==null||Z.goToAndStop(0)}}},"MDTl2e");
var E=function(){var J,z=!((J=O())==null||!J.activated);if(l.data()){J=l.data();var M=void 0;J.icon&&(M=_.bcx(J.icon),M=$tt(M));var Z=void 0,u;if((u=J.backgroundColor)==null?0:u.lightTheme){var d;Z={backgroundColor:vc((d=J.backgroundColor)==null?void 0:d.lightTheme,"0.8")}}if(J.text||M||z){if(z&&J.lottieData&&e){d=J.lottieData;var g,w,n;u={animationConfig:{name:d.url,path:d.url,autoplay:(g=d.settings)==null?void 0:g.autoplay,loop:(n=(w=d.settings)==null?void 0:w.loop)!=null?n:!0},animationRef:e}}else u=
void 0;if(z)g=16;else b:switch(J.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":g=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":g=18;break b;default:g=16}z={type:g,text:z&&J.animatedText?J.animatedText:J.text,icon:M,customColors:Z,animation:u}}else z=void 0}else z=void 0;return z};
return _.W("yt-thumbnail-badge-view-model",{class:_.ax("yt-thumbnail-badge-view-model-wiz",l.class)},_.W(_.A,{cond:E,then:function(){return _.W(_.Je,{data:function(){return E()}})}}))},"R");var ko1=_.XO(function(l){var e={},O={};return _.W("yt-thumbnail-bottom-overlay-view-model",{class:_.ax("ytThumbnailBottomOverlayViewModelHost",(e.ytThumbnailBottomOverlayViewModelHostBackground=function(){return l.data().enableGradientBackground},e))},_.W(_.Tn,{data:function(){return l.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(E){return _.W(nYq,{data:E.data,
thumbnailSize:l.thumbnailSize})}}),_.W("div",{class:_.ax("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var E;
return xQp((E=l.thumbnailSize)==null?void 0:E.call(l))},(O.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var E;
return(E=l.isClip)==null?void 0:E.call(l)},O.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var E;
return!_.a("web_enable_modern_progress_bar_overlay")&&((E=l.thumbnailSize)==null?void 0:E.call(l))==="small"},O))},_.W(_.Tn,{data:function(){return l.data().badge}},{thumbnailBadgeViewModel:function(E){return _.W(axH,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.W(_.Tn,{data:function(){return l.data().badges}},{thumbnailBadgeViewModel:function(E){return _.W(axH,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
ko1.idomCompat=!0;_.Zw(ko1,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Vh,thumbnailSize:_.Vh,isClip:_.Vh}});var Ztx={calledOnce:!1,state:"visible"},ugt={calledOnce:!1,state:"hidden"};var jW=_.XO(function(l){var e=l.data;var O=l.className;l=l.alwaysShow;var E=_.e4("thumbnail-hover-overlay-view-model");_.xD(E,function(){return e().rendererContext});
var J=_.OtA(),z={};return _.W("thumbnail-hover-overlay-view-model",{el:E,class:_.ax("ytThumbnailHoverOverlayViewModelHost",O,(z.ytThumbnailHoverOverlayViewModelHostForceHover=l,z)),"aria-label":function(){var M;return(M=_.I(e().rendererContext,_.yu))==null?void 0:M.label},
role:function(){return _.Sp(e().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Sp(e().rendererContext)!==void 0?0:void 0},
"on:keypress":J},_.W("div",{class:_.ax("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(e().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.W(_.A,{cond:function(){return e().icon},
then:function(M){return _.W(_.Jm,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.W(_.A,{cond:function(){return e().text},
then:function(M){return _.W(_.zK,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
jW.idomCompat=!0;var Ixq=_.XO(function(l){var e=l.data;return _.W(_.Tn,{data:function(){return e==null?void 0:e().overlays}},{thumbnailHoverOverlayViewModel:jW})},"U");
Ixq.idomCompat=!0;var mQ1={};var yEq=_.XO(function(l){var e=l.data;var O=l.image;var E=l.state;var J=l.iconType;var z=l.overlays;var M=l.isOverlay;var Z=_.O0("div");l=_.b(_.AF(!0,void 0,"sUzEZ"));var u=l.next().value,d=l.next().value,g=function(){return!!e().onTap},w=_.Et(J,"LIVE");
_.Gh(function(){var k=e();requestAnimationFrame(function(){if(Z.value===null)var y=!0;else{var c=Z.value;y=k.badgeText;var f=$XW(k.size);y in mQ1?c=mQ1[y]:(c=c.clientWidth,mQ1[y]=c);(y=c>f)?Z.value.style.display="none":Z.value.style.visibility="visible"}d(y)})},"SpVcNb");
var n=function(){var k={};return k["yt-spec-avatar-shape__image"]=!0,k["yt-spec-avatar-shape__image--ads-app"]=e().type===1,k};
return _.W("yt-avatar-shape",null,_.W("div",{el:_.zk(dXt(g,{keydown:function(k){if(k.key==="Enter"){var y;(y=k.currentTarget)==null||y.click()}},
click:function(k){var y,c;return void((c=(y=e()).onTap)==null?void 0:c.call(y,k))}})),
class:function(){var k={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},y=e();k=(k[y.clusterLayoutConfig?w_t(y.clusterLayoutConfig):Ajt(y.size)]=!0,k["yt-spec-avatar-shape__button--tappable"]=g(),k);(y=e().avatarButtonCustomClassName)&&(k[y]=!0);return _.Ix(k)},
"aria-label":function(){return g()?e().accessibilityText:""},
role:function(){return g()?"button":void 0},
tabindex:function(){return g()?0:void 0}},_.W("div",{class:function(){var k,y=e(),c=E==null?void 0:E(),f=M==null?void 0:M(),P=!((k=y.decorations)==null||!k.includes(2)||y.size!=="medium"&&y.size!=="large"),h=y.size==="tiny"||y.size==="extra-small",N,t,r,D,b2={};
k=(b2["yt-spec-avatar-shape--live-ring"]=!!(((N=y.decorations)==null?0:N.includes(0))&&avx(y.size)),b2["yt-spec-avatar-shape--stories-watched"]=P&&!(c==null||!c.storiesWatched),b2["yt-spec-avatar-shape--stories-unwatched"]=P&&!(c==null?0:c.storiesWatched),b2["yt-spec-avatar-shape--background-border"]=kfp(y.decorations)&&!h,b2["yt-spec-avatar-shape--background-border-thin"]=kfp(y.decorations)&&h,b2["yt-spec-avatar-shape__on-select-border"]=!((t=y.decorations)==null||!t.includes(4)),b2["yt-spec-avatar-shape__white-border"]=
!((r=y.decorations)==null||!r.includes(5)),b2["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((D=y.decorations)==null?0:D.includes(5))&&h),b2["yt-spec-avatar-shape--is-overlay"]=!!f,b2);return _.Ix(k)},
style:function(){a:{var k=e().clusterLayoutConfig;if(k){b:{var y=k.numAvatarsInCluster;var c=k.avatarIndex;if(c!==y-1){switch(k.clusterSize){case "small":k="32";break;case "medium":k="36";break;case "40":k="40";break;default:y=void 0;break b}y="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+k+"x"+k+"_avatars_"+y+"_index_"+c+".svg"}else y=void 0}if(y){y=_.HF({"-webkit-mask-image":"url("+y+")","mask-image":"url("+y+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}y=void 0}return y}},_.W("div",{class:function(){var k={};
var y=e();k=(k[y.clusterLayoutConfig?g9q(y.clusterLayoutConfig):it2(y.size)]=!0,k["yt-spec-avatar-shape--no-margin"]=kfp(e().decorations),k);return _.Ix(k)}},_.W(_.Jm,{data:O,
alt:function(){return!g()&&e().accessibilityText?e().accessibilityText:""},
targetWidth:function(){return n9p(e().size)},
targetHeight:function(){return n9p(e().size)},
className:function(){return _.Ix(n())}}),_.W(_.A,{cond:function(){var k;
return((k=e().decorations)==null?void 0:k.includes(0))&&avx(e().size)},
then:function(){return _.W("div",{class:function(){var k={};k=(k["yt-spec-avatar-shape__live-badge"]=!0,k["yt-spec-avatar-shape__live-badge--badge-small"]=e().size==="small",k["yt-spec-avatar-shape__live-badge--badge-medium"]=e().size==="medium"||e().size==="48",k["yt-spec-avatar-shape__live-badge--badge-large"]=e().size==="large",k["yt-spec-avatar-shape__live-badge--badge-extra-large"]=e().size==="extra-large"||e().size==="extra-extra-large"||e().size==="giant",k);return _.Ix(k)}},_.W(_.A,{cond:function(){return e().badgeText},
then:function(k){return _.W("div",{class:"yt-spec-avatar-shape__badge-text",el:Z},k)}}),_.W(_.A,{cond:u,
then:function(){return _.W("div",{class:"yt-spec-avatar-shape__badge-icon"},_.W(_.cF,{icon:w,size:function(){a:switch(e().size){case "extra-large":var k=16;break a;default:k=13}return k}}))}}))}}),_.W(_.A,{cond:function(){var k,y;
return((k=e().decorations)==null?void 0:k.includes(1))||((y=e().decorations)==null?void 0:y.includes(0))&&!avx(e().size)},
then:function(){return _.W("div",{class:function(){var k=e(),y,c,f={};var P=(f["yt-spec-avatar-shape__live-dot"]=!((y=k.decorations)==null||!y.includes(0)||avx(k.size)),f["yt-spec-avatar-shape__new-content"]=!((c=k.decorations)==null||!c.includes(1)),f);return _.Ix(P)}})}}),_.W(_.A,{cond:function(){return!!z},
then:function(){return _.W("div",{class:function(){var k={};k=Object.assign((k["yt-spec-avatar-shape__image-overlays"]=!0,k),n());return _.Ix(k)}},z==null?void 0:z())}})))))},"V");
yEq.idomCompat={callbacks:{overlays:!0}};_.Hp=_.XO(function(l){function e(){O().endpoint&&_.r6(O().endpoint)}
var O=l.data;var E=l.decorations;var J=l.avatarButtonCustomClassName;var z=l.isOverlay;var M=l.clusterLayoutConfig;return _.W("avatar-view-model",null,_.W(_.A,{cond:function(){return O().image},
then:function(Z){return _.W(yEq,{data:function(){return mXg({data:O(),onTap:O().endpoint?e:void 0,decorations:E==null?void 0:E(),badgeText:void 0,accessibilityText:O().accessibilityText,avatarButtonCustomClassName:J==null?void 0:J(),clusterLayoutConfig:M==null?void 0:M()})},
image:Z,iconType:"RADAR_LIVE",overlays:function(){return _.W(Ixq,{data:O})},
isOverlay:z})}}))},"W");
_.Hp.idomCompat=!0;_.cp=_.XO(function(l){var e=l.data;l=l.className;var O=_.O0("yt-decorated-avatar-view-model"),E=function(){return _.I(e().avatar,_.l3)},J=_.mF(function(){var z,M=e(),Z=E(),u=_.Sp(e().rendererContext),d=(z=O.value)!=null?z:void 0,g;
if(Z){d={data:M,avatar:Z,onTap:u,element:d};z=d.data;M=d.avatar;Z=d.onTap;u=d.element;d=d.commandController;Z=Z?jht(Z,u,d):void 0;u=[];z.liveData&&u.push(0);var w;d=(w=z.liveData)==null?void 0:w.liveBadgeText;w=(g=_.I(z.rendererContext,_.yu))==null?void 0:g.label;g=mXg({data:M,onTap:Z,decorations:u,badgeText:d,accessibilityText:w?w:z.a11yLabel})}else g={size:"medium"};return g},void 0,"H8tk9d");
return _.W("yt-decorated-avatar-view-model",{class:_.ax("yt-decorated-avatar-view-model-wiz",l),el:O},_.W(_.A,{cond:function(){var z;return(z=E())==null?void 0:z.image},
then:function(z){return _.W(yEq,{data:J,image:z,iconType:"RADAR_LIVE",overlays:function(){return _.W(Ixq,{data:E})}})}}))},"X");
_.cp.idomCompat=!0;_.Ff=_.XO(function(l){var e=function(){var u;return Object.assign({},l.data(),(u=l.overrides)==null?void 0:u.call(l))},O=_.e4("yt-avatar-stack-view-model"),E=function(){return O&&_.Qz(e().rendererContext)};
_.xD(O,function(){return e().rendererContext});
var J=function(){var u=e().avatars,d,g;return(g=(d=(u==null?0:u[0])?_.I(u[0],_.l3):void 0)==null?void 0:d.avatarImageSize)!=null?g:"AVATAR_SIZE_UNKNOWN"},z=function(){return KjA(e())},M=function(){if(e().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var u=void 0;
else if((u=l.decorations)==null?0:u.call(l))u=l.decorations();else{u=e();var d=0;u.avatars&&(d+=u.avatars.length);u.decoratedText&&(d+=1);u=d>1?[3]:[]}return u},Z={};
return _.W("yt-avatar-stack-view-model",{el:O,class:_.ax("yt-avatar-stack-view-model-wiz",l.className,(Z["yt-avatar-stack-view-model-wiz--tappable"]=E,Z["yt-avatar-stack-view-model-wiz--is-overlay"]=l.isOverlay,Z["yt-avatar-stack-view-model-wiz--medium-text"]=l.useMediumText,Z)),tabindex:function(){return E()?0:void 0},
role:function(){return E()?"link":void 0},
"aria-label":function(){var u,d;return(d=(u=_.I(e().rendererContext,_.yu))==null?void 0:u.label)!=null?d:""}},_.W(_.A,{cond:function(){var u;
return e().avatars&&!((u=l.hideAvatar)==null?0:u.call(l))},
then:function(){return _.W("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.W(_.A,{cond:function(){return e().decoratedText},
then:function(u){var d={};return _.W("div",{class:_.ax("yt-avatar-stack-view-model-wiz__text-container",(d["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return J()==="AVATAR_SIZE_XXS"||J()==="AVATAR_SIZE_XS"},d["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var g;
return((g=l.isOverlay)==null?void 0:g.call(l))&&(J()==="AVATAR_SIZE_XXS"||J()==="AVATAR_SIZE_XS")},d)),
style:_.HF({width:function(){return z().avatarSizeInPx+"px"},
height:function(){return z().avatarSizeInPx+"px"}})},_.W(_.zK,{text:u,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.W("div",{style:function(){return _.HF(z().avatarStackStyle)()},
class:function(){return z().avatarStackClass}},_.W(_.Tn,{data:function(){return z().avatars.reverse()}},{avatarViewModel:function(u,d){return _.W("div",{style:function(){var g,w;
return _.HF((w=(g=z()).avatarStyle)==null?void 0:w.call(g,d()))()},
class:function(){return z().avatarClass}},_.W(_.Hp,{data:u.data,
decorations:M,avatarButtonCustomClassName:function(){return z().avatarButtonCustomClassName},
isOverlay:l.isOverlay,clusterLayoutConfig:function(){var g,w;return(w=(g=z()).clusterLayoutConfig)==null?void 0:w.call(g,d())}}))},
decoratedAvatarViewModel:function(u,d){return _.W("div",{style:function(){var g,w;return _.HF((w=(g=z()).avatarStyle)==null?void 0:w.call(g,d()))()},
class:function(){return z().avatarClass}},_.W(_.cp,{data:u.data}))}})))}}),_.W(_.A,{cond:function(){return e().text},
then:function(u){return _.W(_.zK,{text:u,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.Ff.idomCompat=!0;_.Zw(_.XO(function(l){var e=l.data;var O=l.thumbnailSize;return _.W("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.W("div",{class:_.ax("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return HtM(O==null?void 0:O())})},_.W(_.Tn,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(E){return _.W(_.Ff,{data:E.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.lB,
thumbnailSize:_.lB}});var pr0=_.XO(function(l){l=_.J3(l,{hidden:!1});var e=l.data;return _.W("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:l.hidden},_.W(_.zK,{text:function(){return e().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.W(_.A,{cond:function(){return e().subtitle},
then:function(){return _.W(_.zK,{text:function(){return e().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
pr0.idomCompat=!0;_.Zw(pr0,"yt-thumbnail-overlay-title-view-model",{props:{data:_.lB,hidden:_.lB}});var KpC=_.XO(function(l){l=_.J3(l,{isClip:!1});var e=l.data,O=l.thumbnailSize,E={};return _.W("yt-thumbnail-overlay-badge-view-model",{class:_.ax("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(e().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var J="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:J="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return J},function(){return cj2(O==null?void 0:O())},(E["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
l.isClip,E))},_.W(_.Tn,{data:function(){return e().thumbnailBadges}},{thumbnailBadgeViewModel:function(J){return _.W(axH,{data:J.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
KpC.idomCompat=!0;_.Zw(KpC,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.lB,thumbnailSize:_.lB,isClip:_.lB}});_.Z8(Fj8);_.ip(Fj8,"yt-page-indicator-view-model",{propNames:["data"]});var fY=function(){var l=_.B.apply(this,arguments)||this;l.eventSink=function(){return l};
l.disableInteraction=!1;l.noRoundedCorners=!1;l.isPreviewLoading=!1;l.isOriginalAspectRatio=!1;l.computedObjectFit=!1;l.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return l};
_.m(fY,_.B);_.X=fY.prototype;
_.X.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:_.a("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"}}};
_.X.onImageLoaded=function(){this.loaded=!0};
_.X.onImageUnloaded=function(){this.loaded=!1};
_.X.computeRichThumbnail=function(l,e,O,E){if(l&&e&&!E&&!_.a("disable_moving_thumbs_handling")&&!O)return e};
_.X.computeImageWidth=function(l,e){return e||9999};
_.X.computeIsOriginalAspectRatio=function(l){return l};
_.X.computeIsLive=function(l){if(l==null?0:l.badges)for(var e=0;e<l.badges.length;e++){var O=l.badges[e];if(O.metadataBadgeRenderer&&O.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(l==null?0:l.thumbnailOverlays)for(e=0;e<l.thumbnailOverlays.length;e++)if(O=l.thumbnailOverlays[e],O.thumbnailOverlayTimeStatusRenderer&&O.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.X.computeObjectFit=function(l,e){return e||(l?"CONTAIN":"")};
_.X.computeNavigationEndpoint=function(l,e,O){return l?e:O};
_.X.computeHasClip=function(l){l=_.b(l||[]);for(var e=l.next();!e.done;e=l.next())if(e.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.X.computeOverlayColor=function(l){var e;return(l==null?0:(e=l.darkColorPalette)==null?0:e.section2Color)?l.darkColorPalette.section2Color:l==null?void 0:l.sampledThumbnailColor};
_.Ji.Object.defineProperties(fY.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return jPd(this.width)}}});
fY.prototype.onImageUnloaded=fY.prototype.onImageUnloaded;fY.prototype.onImageLoaded=fY.prototype.onImageLoaded;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],fY.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(MEx),_.q("design:type",Object)],fY.prototype,"ytdThumbnailBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],fY.prototype,"componentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],fY.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fY.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],fY.prototype,"circular",void 0);
_.L([_.T({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.q("design:type",Object)],fY.prototype,"richThumbnail",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.q("design:type",Boolean)],fY.prototype,"hasClip",void 0);_.L([_.T(),_.q("design:type",Object)],fY.prototype,"eventSink",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],fY.prototype,"queued",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],fY.prototype,"richGridThumbnail",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],fY.prototype,"useExpandableTooltip",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],fY.prototype,"useUntranslatedNavigationEndpoint",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fY.prototype,"disableInteraction",void 0);
_.L([_.T({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.q("design:type",Object)],fY.prototype,"computedNavigationEndpoint",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],fY.prototype,"nowPlayingEqualizerOnly",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],fY.prototype,"hidePlaybackStatus",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],fY.prototype,"objectFit",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fY.prototype,"noRoundedCorners",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],fY.prototype,"watchFeedThumbnail",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fY.prototype,"isPreviewLoading",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.q("design:type",Object)],fY.prototype,"isOriginalAspectRatio",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.q("design:type",Object)],fY.prototype,"computedObjectFit",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.q("design:type",Boolean)],fY.prototype,"isLiveVideo",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],fY.prototype,"loaded",void 0);_.L([_.T({computed:"computeOverlayColor(data.thumbnail)"}),_.q("design:type",Object)],fY.prototype,"overlayColor",void 0);_.L([_.T({selector:_.$Sd}),_.q("design:type",Boolean)],fY.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.T(),_.q("design:type",Number)],fY.prototype,"width",void 0);
_.L([_.R("inlinePreviewIsEnabled"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],fY.prototype,"isPreviewDisabled",null);_.L([_.R("width"),_.q("design:type",String),_.q("design:paramtypes",[])],fY.prototype,"thumbnailSize",null);_.L([_.wP("image-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fY.prototype,"onImageLoaded",null);
_.L([_.wP("image-unloaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fY.prototype,"onImageUnloaded",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-thumbnail"})],fY);
var jbq=_.$0()(fY,"ytd-thumbnail",function(){if(AEi===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);AEi=l}l=AEi;return l},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var shx=function(l){var e=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12852_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12852_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(O){Hfq(e,O)};
this.onLockupMouseLeaveFn=function(O){O=O.relatedTarget;var E,J;((E=document.getElementsByTagName("ytd-video-preview"))==null?0:(J=E.item(0))==null?0:J.contains(O))||(e.terminateVideoPreview(),Re(e))};
this.onThumbnailMouseDownFn=function(){e.terminateVideoPreview();Re(e)};
this.onTouchStart=function(){e.JSC$12852_touched=!0};
this.mediaRenderer=l.mediaRenderer;this.thumbnailElement=l.thumbnailElement;this.lockupElement=l.lockupElement;this.videoPreviewOptsInput=l.videoPreviewOpts;cE1(this);TD(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)):
_.hG(Error("Ch")):_.hG(Error("Dh")):Fpk(this)},CN=function(l){Fpk(l);
var e;(e=l.lockupElement)==null||e.removeEventListener("mouseenter",l.onMouseMoveFn);var O;(O=l.lockupElement)==null||O.removeEventListener("mouseleave",l.onLockupMouseLeaveFn);var E;(E=l.lockupElement)==null||E.removeEventListener("touchstart",l.onTouchStart);var J;(J=l.thumbnailElement)==null||J.removeEventListener("mousedown",l.onThumbnailMouseDownFn);Re(l)},cE1=function(l){l.inlinePreviewIsEnabledForUser=_.Om().getState().ui.inlinePreviewIsEnabled;
l.unsubscribeFromInlinePreviewIsEnabled=_.kw(_.Om(),_.$Sd,function(e){(l.inlinePreviewIsEnabledForUser=e)||Re(l)});
l.JSC$12852_unsubscribeFromInlinePreviewIsActive=_.kw(_.Om(),_.oU8,function(e){(l.inlinePreviewIsActive=e)||Re(l)})},Fpk=function(l){l.unsubscribeFromInlinePreviewIsEnabled();
l.unsubscribeFromInlinePreviewIsEnabled=function(){};
l.JSC$12852_unsubscribeFromInlinePreviewIsActive();l.JSC$12852_unsubscribeFromInlinePreviewIsActive=function(){}},Hfq=function(l,e){e.buttons>0||(e=_.Cv("kevlar_lockup_hover_delay",-1),l.JSC$12852_touched&&e>=0?(_.UD.cancelJob(l.videoPreviewJobId),l.videoPreviewJobId=_.WF(_.UD,function(){fxk(l)},e),l.JSC$12852_touched=!1):fxk(l))},fIL=function(l){l.videoPreviewJobId=_.WF(_.UD,function(){var e,O,E,J;
return _.V(function(z){if(z.nextAddress==1){if(!TD(l))return z.return();e=l.getVideoPreviewOpts();if(!e)return z.return();e.isAutoplay=!0;return(E=(O=_.dQ(l.mediaRenderer.hostElement,"yt-open-video-preview-action",[e]))&&O[0])?_.C(z,O[0],3):z.jumpTo(2)}z.nextAddress!=2&&(E=z.yieldResult===1);E&&Rrq((J=l.mediaRenderer)==null?void 0:J.data);_.Cl(z)})})},fxk=function(l){!l.previewTriggered&&TD(l)&&(l.inlinePreviewIsActive&&l.terminateVideoPreview(),l.previewTriggered=!0,l.mediaRenderer.isInlinePreviewTriggered=
!0,_.UD.cancelJob(l.videoPreviewJobId),l.videoPreviewJobId=_.WF(_.UD,function(){var e,O,E,J;
return _.V(function(z){if(z.nextAddress==1){if(!TD(l))return z.return();e=l.getVideoPreviewOpts();return e?(E=(O=_.dQ(l.mediaRenderer.hostElement,"yt-open-video-preview-action",[e]))&&O[0])?_.C(z,O[0],3):z.jumpTo(2):z.return()}z.nextAddress!=2&&(E=z.yieldResult===1);E&&Rrq((J=l.mediaRenderer)==null?void 0:J.data);_.Cl(z)})}))};
shx.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var l,e;if((e=(l=this.videoPreviewOptsInput)==null?void 0:l.videoPreviewData)!=null)l=e;else if(l=this.mediaRenderer.data)if(fvq(l))l={inlinePlaybackEndpoint:_.t3(l.inlinePlayerData.onVisible),navigationEndpoint:_.t3(l.onTap),thumbnail:"image"in l?l.image:l.thumbnail,thumbnailOverlays:void 0,accessibilityText:Tjd(l)};else if("multipleInlinePlaybackEndpoint"in l){var O=_.I(_.I(l.multipleInlinePlaybackEndpoint,Z3C),uDq);if(O!=
null&&O.playerDescriptors){e=[];O=_.b(O.playerDescriptors);for(var E=O.next();!E.done;E=O.next())E=E.value,e.push({inlinePlaybackEndpoint:E.inlinePlaybackEndpoint,navigationEndpoint:E.navigationEndpoint,thumbnail:E.thumbnail,thumbnailOverlays:E.thumbnailOverlays,accessibilityText:Tjd(l)});l=e}else l=void 0}else l={inlinePlaybackEndpoint:l.inlinePlaybackEndpoint,navigationEndpoint:l.navigationEndpoint,thumbnail:l.thumbnail,thumbnailOverlays:l.thumbnailOverlays,accessibilityText:Tjd(l)};else l=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:l,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var TD=function(l){var e;if(e=l.inlinePreviewIsEnabledForUser)e=(l=l.mediaRenderer.data)?"inlinePlaybackEndpoint"in l&&l.inlinePlaybackEndpoint||fvq(l)&&l.inlinePlayerData||"multipleInlinePlaybackEndpoint"in l&&l.multipleInlinePlaybackEndpoint?!0:!1:!1;return e};
shx.prototype.terminateVideoPreview=function(){_.Wb(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Re=function(l){_.UD.cancelJob(l.videoPreviewJobId);l.inlinePreviewIsActive=!1;l.previewTriggered=!1;l.mediaRenderer.isInlinePreviewTriggered=!1};var R8q=_.E9(["#"]),sM=function(){var l=_.B.apply(this,arguments)||this;l.isDisabled=!1;return l};
_.m(sM,_.B);_.X=sM.prototype;_.X.configureRendererStamper=function(){return{"data.menu":dr,"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"}}}};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.getMetadata=function(l){var e=[];if(l.metadataText&&Object.keys(l.metadataText).length>0){var O=this.ytRendererBehavior.getSimpleString(l.metadataText);l.upcomingEventData&&l.upcomingEventData.upcomingEventText&&(O=_.LT(O,Number(l.upcomingEventData.startTime)));e.push(O)}else l.shortViewCountText&&e.push(this.ytRendererBehavior.getSimpleString(l.shortViewCountText)),l.publishedTimeText&&e.push(this.ytRendererBehavior.getSimpleString(l.publishedTimeText)),l.upcomingEventData&&l.upcomingEventData.upcomingEventText&&
(O=this.ytRendererBehavior.getSimpleString(l.upcomingEventData.upcomingEventText),e.push(_.LT(O,Number(l.upcomingEventData.startTime))));return e};
_.X.calculateBylineText=function(l){return l.shortBylineText?l.shortBylineText:l.bylineText?l.bylineText:null};
_.X.calculateIsDisabled=function(l){return!!l.isDisabled};
_.X.computeHrefWithDefault=function(l){return this.ytComponentBehavior.computeHref_(l)||_.IH(R8q)};
_.X.onDetailsTap=function(l){var e=this.data&&this.data.navigationEndpoint;e&&!_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.a("kevlar_grid_video_renderer_killswitch")?_.$u(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.X.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12857_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:_.ud(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ud(this.hostElement).querySelector("ytd-thumbnail")})};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$12857_inlinePreviewHoverListener)==null||CN(l)};
_.X.computeThumbnailWidth=function(l,e){return e&&e>0?e:l?360:210};
_.X.computeShowChannelThumbnail=function(l,e){var O;return e&&!!(l==null?0:(O=l.channelThumbnailSupportedRenderers)==null?0:O.channelThumbnailWithLinkRenderer)};
_.Ji.Object.defineProperties(sM.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$12857_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
sM.prototype.dataChanged=sM.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sM.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],sM.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.qO),_.q("design:type",Object)],sM.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],sM.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sM.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],sM.prototype,"noEndpoints",void 0);_.L([_.T({computed:"calculateBylineText(data)"}),_.q("design:type",Object)],sM.prototype,"bylineText",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],sM.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],sM.prototype,"isDownloading",void 0);_.L([_.T({reflectToAttribute:!0,value:0}),_.q("design:type",Number)],sM.prototype,"width",void 0);_.L([_.T({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.q("design:type",Object)],sM.prototype,"isDisabled",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sM.prototype,"dataChanged",null);_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sM.prototype,"isHovered",null);_.L([_.U({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],sM);
_.Y(sM,"ytd-grid-video-renderer",function(){if(Mwk!==void 0)return Mwk;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Mwk=l},{mode:_.Wf("kevlar_poly_si_batch_j047")?1:2});var Twi;var GD=function(){var l=_.B.apply(this,arguments)||this;l.roundedContainer=!0;l.skipRoundingTop=!1;l.disableTopPadding=!1;l.amsterdamEnabled=_.a("enable_desktop_amsterdam_info_panels");return l};
_.m(GD,_.B);GD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
GD.prototype.onClick=function(l){var e,O=(e=this.data)==null?void 0:e.sourceEndpoint;!_.Eh(_.ey(l),this.hostElement,["A".toString()])&&O&&_.$u(this.hostElement,"yt-navigate",{endpoint:O})};
_.Ji.Object.defineProperties(GD.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 l;return!((l=this.data)==null||!l.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.data)==null?void 0:l.paragraphMaxLines)!=null?e:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],GD.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GD.prototype,"showVerticalDividers",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GD.prototype,"roundedContainer",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GD.prototype,"skipRoundingTop",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],GD.prototype,"disableTopPadding",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GD.prototype,"amsterdamEnabled",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],GD.prototype,"showMetadataAtTop",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],GD.prototype,"showMetadataBelowTitle",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.menu"),_.q("design:type",Object),_.q("design:paramtypes",[])],GD.prototype,"hasMenu",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.truncateParagraphs"),_.q("design:type",Object),_.q("design:paramtypes",[])],GD.prototype,"truncateParagraphs",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.paragraphMaxLines"),_.q("design:type",Number),_.q("design:paramtypes",[])],GD.prototype,"paragraphMaxLines",null);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.q("design:type",Object),_.q("design:paramtypes",[])],GD.prototype,"background",null);_.L([_.U({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],GD);
_.Y(GD,"ytd-info-panel-content-renderer",function(){if(Twi!==void 0)return Twi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Twi=l},{mode:_.Wf("kevlar_poly_si_batch_j076")?1:2});var sb1;var GoF;var Bwq;var P90;var Bp=function(){return _.B.apply(this,arguments)||this};
_.m(Bp,_.B);Bp.prototype.computeStyle=function(l){return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Bp.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],Bp.prototype,"style_",void 0);_.L([_.Ps({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Bp);
_.Y(Bp,"yt-channel-thumbnail-with-link-renderer",function(){if(P90===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Bwq===void 0&&(Bwq=document.createElement("template"));var E=Bwq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);P90=l}l=P90;return l},{mode:2});var Pp=function(){var l=_.B.apply(this,arguments)||this;l.modernTypography=_.a("web_modern_typography");return l};
_.m(Pp,_.B);Pp.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"}}}};
Pp.prototype.computeTitleStyle=function(l){return l||null};
Pp.prototype.computeAvatarStyle=function(l){return l||null};
Pp.prototype.computeShowNavigationButton=function(l,e){return!(l==null||!l.navigationButton||e)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Pp.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.q("design:type",String)],Pp.prototype,"titleStyle",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.q("design:type",String)],Pp.prototype,"avatarStyle",void 0);_.L([_.T(),_.q("design:type",Boolean)],Pp.prototype,"hideNavigationButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Pp.prototype,"isModernSd",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Pp.prototype,"modernTypography",void 0);
_.L([_.U({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Pp);
_.Y(Pp,"ytd-rich-list-header-renderer",function(){if(GoF!==void 0)return GoF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GoF=l},{mode:_.Wf("kevlar_poly_si_batch_j058")?1:2});var UM=function(){return _.B.apply(this,arguments)||this};
_.m(UM,_.B);UM.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]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],UM.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],UM.prototype,"isSearch",void 0);_.L([_.U({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],UM);
_.Y(UM,"ytd-preview-card-renderer",function(){if(sb1!==void 0)return sb1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return sb1=l},{mode:1});var UQi;var YR=function(){return _.B.apply(this,arguments)||this};
_.m(YR,_.B);YR.prototype.configureRendererStamper=function(){return{"data.menu":dr}};
YR.prototype.dataChanged=function(){var l=this.get("colorExtractionPalette.section1Color",this.data);l=_.t$(l);_.dP(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":l})};
YR.prototype.computeCardStyle=function(l){return this.get("style.value",l)||null};
YR.prototype.dataChanged=YR.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],YR.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],YR.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.q("design:type",String)],YR.prototype,"cardStyle",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YR.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],YR);
_.Y(YR,"ytd-compact-channel-recommendation-card-renderer",function(){if(UQi!==void 0)return UQi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return UQi=l},{mode:1});var YXF;var h8F;var hd=function(){var l=_.B.apply(this,arguments)||this;l.alignAuto=!1;l.collapsed=!0;l.isToggled=!1;l.alwaysCollapsed=!1;l.canToggle=!0;l.collapsedHeight=80;l.disableToggle=!1;l.alwaysToggleable=!1;l.reversed=!1;l.shouldUseNumberOfLines=!1;l.recomputeOnResize=!1;l.canToggleJobId=0;l.lastReversed=!1;return l};
_.m(hd,_.B);_.X=hd.prototype;_.X.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.X.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.X.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var l=_.ud(this.hostElement),e=l.childNodes,O=document.createDocumentFragment(),E=l.childNodes.length-1;E>=0;E--)_.ud(O).appendChild(e[E]);_.a("enable_shadydom_free_scoped_node_methods")?_.C1(this.hostElement).appendChild(O):l.appendChild(O)}};
_.X.ready=function(){var l=this;_.N7(function(){l.initChildrenObserver()},1)};
_.X.detached=function(){this.detachObserver()};
_.X.toggle=function(l,e){this.canToggle&&(this.isToggled=e,_.$u(this.hostElement,"yt-refit"),l&&l.stopPropagation())};
_.X.reset=function(){this.childrenChanged()};
_.X.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.X.computeIsMoreVisible=function(l,e){return l&&!e};
_.X.computeShouldUseNumberOfLines=function(l){try{return!!l&&window.CSS.supports("-webkit-line-clamp","1")}catch(e){}return!1};
_.X.computeIsLessVisible=function(l,e){return l&&e};
_.X.observeCollapsedHeightAndMaxLines=function(){var l=this.collapsedHeight,e=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.dP(this.hostElement,{"--ytd-expander-max-lines":""+e,"--ytd-expander-collapsed-height":""}):_.dP(this.hostElement,{"--ytd-expander-collapsed-height":l+"px","--ytd-expander-max-lines":""})};
_.X.handleMoreTap=function(l){this.disableToggle||(_.$u(this.hostElement,"yt-expander-more-tapped"),this.toggle(l,!0))};
_.X.handleLessTap=function(l){_.$u(this.hostElement,"yt-expander-less-tapped");this.toggle(l,!1)};
_.X.initChildrenObserver=function(){var l=this;this.observer=new MutationObserver(function(){l.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.X.childrenChanged=function(){var l=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){$7(function(){l.canToggleJobId=0;l.calculateCanCollapse()})}))};
_.X.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};
_.X.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.X.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("collapsed-changed",this.collapsed))};
_.X.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("is-toggled-changed",this.isToggled))};
_.X.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("can-toggle-changed",this.canToggle))};
_.Ji.Object.defineProperties(hd.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
hd.prototype.canToggleChangedForBinding=hd.prototype.canToggleChangedForBinding;hd.prototype.isToggledChangedForBinding=hd.prototype.isToggledChangedForBinding;hd.prototype.collapsedChangedForBinding=hd.prototype.collapsedChangedForBinding;hd.prototype.observeCollapsedHeightAndMaxLines=hd.prototype.observeCollapsedHeightAndMaxLines;hd.prototype.onIronResize=hd.prototype.onIronResize;hd.prototype.reversedChanged=hd.prototype.reversedChanged;hd.prototype.toggledChanged=hd.prototype.toggledChanged;
hd.prototype.alwaysToggleableChanged=hd.prototype.alwaysToggleableChanged;_.L([_.K(_.sl),_.q("design:type",Object)],hd.prototype,"ironResizableBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],hd.prototype,"alignAuto",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],hd.prototype,"collapsed",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"isToggled",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"alwaysCollapsed",void 0);
_.L([_.T(),_.q("design:type",Object)],hd.prototype,"canToggle",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"collapsedHeight",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"disableToggle",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"alwaysToggleable",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"reversed",void 0);_.L([_.T(),_.q("design:type",Number)],hd.prototype,"maxNumberOfLines",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.q("design:type",Object)],hd.prototype,"shouldUseNumberOfLines",void 0);_.L([_.T(),_.q("design:type",Object)],hd.prototype,"recomputeOnResize",void 0);_.L([_.aB("#content"),_.q("design:type",HTMLDivElement)],hd.prototype,"content",void 0);_.L([_.y0("alwaysToggleable"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"alwaysToggleableChanged",null);
_.L([_.y0("isToggled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"toggledChanged",null);_.L([_.R("canToggleJobId"),_.q("design:type",Object),_.q("design:paramtypes",[])],hd.prototype,"isResetting",null);_.L([_.AA("reversed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"reversedChanged",null);
_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"onIronResize",null);_.L([_.AA("maxNumberOfLines","collapsedHeight"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"observeCollapsedHeightAndMaxLines",null);_.L([_.AA("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"collapsedChangedForBinding",null);
_.L([_.AA("isToggled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"isToggledChangedForBinding",null);_.L([_.AA("canToggle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hd.prototype,"canToggleChangedForBinding",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-expander"})],hd);
_.Y(hd,"ytd-expander",function(){if(h8F!==void 0)return h8F;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return h8F=l},{mode:1});var LY=function(){return _.B.apply(this,arguments)||this};
_.m(LY,_.B);LY.prototype.computeIsCarousel=function(l){return!!l.isCarousel};
LY.prototype.observeLightsourcePalette=function(){var l,e=(l=this.data)==null?void 0:l.vibrantsourceColorPaletteData;e&&_.PF(this.hostElement,e)};
LY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
LY.prototype.observeLightsourcePalette=LY.prototype.observeLightsourcePalette;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],LY.prototype,"data",void 0);_.L([_.T({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],LY.prototype,"isCarousel",void 0);
_.L([_.AA("data.vibrantsourceColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LY.prototype,"observeLightsourcePalette",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],LY);
_.Y(LY,"ytd-media-upsell-renderer",function(){if(YXF!==void 0)return YXF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YXF=l},{mode:2});var LpH;var td=function(){var l=_.B.apply(this,arguments)||this;l.JSC$12885_playerEvents=new Map;l.listeningToPlayer=!1;l.startX=0;l.active=!1;l.shouldShowButtons=_.a("web_buttons_hidden_killswitch");l.isHighlighted=!1;l.useHighlightStyling=_.a("web_enable_deeper_metadata_highlight_styling");l.modern=_.a("kevlar_modern_sd");l.enableProblemWalkthrough=_.a("problem_walkthrough_sd");return l};
_.m(td,_.B);_.X=td.prototype;
_.X.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}}}}}};
_.X.created=function(){this.JSC$12885_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.X.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.id(this,this.onRepeatButtonToggle));_.a("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.id(this,this.onActiveUpdate))};
_.X.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.id(this,this.onRepeatButtonToggle));_.a("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.id(this,this.onActiveUpdate))};
_.X.onDataChanged=function(){this.removePlayerListeners()};
_.X.onColorPaletteChange=function(){var l={},e;if(_.R4()==="USER_INTERFACE_THEME_DARK"&&((e=this.data)==null?0:e.darkColorPalette)){var O=this.data.darkColorPalette;l["--ytd-macro-markers-list-item-background-color"]=_.qv(this.get("section2Color",O))}else{var E;_.R4()==="USER_INTERFACE_THEME_LIGHT"&&((E=this.data)==null?0:E.lightColorPalette)&&(O=this.data.lightColorPalette,l["--ytd-macro-markers-list-item-background-color"]=_.qv(this.get("section3Color",O)))}O?(l["--ytd-macro-markers-list-item-title-color"]=
_.qv(this.get("primaryTitleColor",O)),l["--ytd-macro-markers-list-item-secondary-color"]=_.qv(this.get("secondaryTitleColor",O)),l["--ytd-macro-markers-list-item-timestamp-background-color"]=_.qv(this.get("section1Color",O)),this.customButtonProperties={customColors:{color:_.qv(this.get("primaryTitleColor",O))}},this.useColorSampling=!0):(l["--ytd-macro-markers-list-item-background-color"]="initial",l["--ytd-macro-markers-list-item-title-color"]="initial",l["--ytd-macro-markers-list-item-secondary-color"]=
"initial",l["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.dP(this.hostElement,l)};
_.X.onEndpointMouseDown=function(l){this.startX=l.clientX};
_.X.onEndpointClick=function(l){var e=this,O,E,J;return _.V(function(z){if(z.nextAddress==1){if(e.startX!==l.clientX)return l.preventDefault(),z.return();e.data&&e.ytRendererBehavior.logExplicitClick(e.data);if(!e.seekWithAnimationOnClick)return z.jumpTo(0);if(l.button!==0||l.shiftKey||l.altKey||l.metaKey||l.ctrlKey||_.Eh(_.ey(l),e.hostElement,["BUTTON".toString()]))return z.return();l.stopPropagation();l.preventDefault();return e.data?_.C(z,_.Mc().getPlayerPromise(),3):z.return()}O=z.yieldResult;
J=(E=_.I(e.data.onTap,_.ej))==null?void 0:E.startTimeSeconds;J!==void 0&&O.seekToTimeWithAnimation(J*1E3,_.lG(e.data.title));_.Cl(z)})};
_.X.computeLayout=function(l){return l};
_.X.computeIsHighlighted=function(l){return!!l};
_.X.computeCarouselType=function(l){return l};
_.X.hideModernCarousel=function(l){return this.modern&&this.hideThumbnail(l)};
_.X.hideThumbnail=function(l){return this.enableProblemWalkthrough&&l!==null&&l==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.X.onRepeatButtonToggle=function(l){var e=this;l.detail.toggled&&_.Mc().getPlayerPromise().then(function(O){e.ytPlayerListenerBehavior.listenToPlayerEvents(O,e.JSC$12885_playerEvents);e.listeningToPlayer=!0})};
_.X.onLoopRangeChange=function(l){var e=_.ud(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(e){var O=e.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",e.polymerController.data);if(O){var E=Number(O.endTimeMs);if(Number(O.startTimeMs)!==(l==null?void 0:l.startTimeMs)||E!==(l==null?void 0:l.endTimeMs))e.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.X.removePlayerListeners=function(){var l=this;this.listeningToPlayer&&_.Mc().getPlayerPromise().then(function(e){l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(e,l.JSC$12885_playerEvents);l.listeningToPlayer=!1})};
_.X.onActiveUpdate=function(l){this.active=l.detail.active};
td.prototype.onColorPaletteChange=td.prototype.onColorPaletteChange;td.prototype.onDataChanged=td.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],td.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],td.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],td.prototype,"useCustomColors",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],td.prototype,"active",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],td.prototype,"shouldShowButtons",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.q("design:type",String)],td.prototype,"layout",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.q("design:type",Object)],td.prototype,"isHighlighted",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],td.prototype,"useHighlightStyling",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],td.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],td.prototype,"enableProblemWalkthrough",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.q("design:type",String)],td.prototype,"carouselType",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],td.prototype,"useColorSampling",void 0);_.L([_.T(),_.q("design:type",Boolean)],td.prototype,"seekWithAnimationOnClick",void 0);_.L([_.T(),_.q("design:type",Object)],td.prototype,"customButtonProperties",void 0);
_.L([_.aB("#repeat-button"),_.q("design:type",HTMLElement)],td.prototype,"repeatButton",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],td.prototype,"onDataChanged",null);_.L([_.AA("data.lightColorPalette","data.darkColorPalette"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],td.prototype,"onColorPaletteChange",null);_.L([_.U({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],td);
_.Y(td,"ytd-macro-markers-list-item-renderer",function(){if(LpH!==void 0)return LpH;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return LpH=l},{mode:1});var twF;var qX1;var ql=function(){var l=_.B.apply(this,arguments)||this;l.modernTypography=_.a("web_modern_typography");return l};
_.m(ql,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ql.prototype,"modernTypography",void 0);_.L([_.T(),_.q("design:type",Object)],ql.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],ql);
_.Y(ql,"ytd-title-and-button-list-header-renderer",function(){if(qX1!==void 0)return qX1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qX1=l},{mode:1});var vYH;var NwH=new _.Xa("BUTTON_RENDERER_WIZ_TOKEN"),rE1=new _.Xa("BUTTON_RENDERER_TOKEN");_.vp=_.XO(function(l){var e=_.V2().resolve(_.MG(NwH));if(e)return _.W(e,Object.assign({},l));var O=_.V2().resolve(rE1);return O?_.W($jx,null,function(){return _.W(JP,null,function(){var E,J,z,M,Z,u,d,g,w,n,k,y;return void O(l.data(),{onButtonClickCallback:l.onButtonClickCallback,shouldShowIcons:(E=l.shouldShowIcons)==null?void 0:E.call(l),icon:(J=l.icon)==null?void 0:J.call(l),processAllEndpoints:(z=l.processAllEndpoints)==null?void 0:z.call(l),preventDefault:(M=l.preventDefault)==null?void 0:M.call(l),
stopPropagation:(Z=l.stopPropagation)==null?void 0:Z.call(l),disableButtonRendererClickHandling:(u=l.disableButtonRendererClickHandling)==null?void 0:u.call(l),className:(d=l.className)==null?void 0:d.call(l),buttonOverrides:(g=l.buttonOverrides)==null?void 0:g.call(l),forceModernIconButton:(w=l.forceModernIconButton)==null?void 0:w.call(l),isSubscribe:(n=l.isSubscribe)==null?void 0:n.call(l),alignByText:(k=l.alignByText)==null?void 0:k.call(l),forceDisabled:(y=l.forceDisabled)==null?void 0:y.call(l)})})}):
_.W(_.ZB,null)},"ba");
_.vp.idomCompat=!0;var DQF=_.XO(function(l){var e=l.data,O=_.Et(l.useSquareAspectRatio,!1);return _.W("dismissed-mini-game-card-view-model",null,_.W(_.A,{cond:function(){var E,J;return(E=e().responseText)==null?void 0:(J=E.runs)==null?void 0:J.length},
then:function(){var E={};return _.W("div",{class:_.ax("yt-mini-game-card-view-model__dismissed-card",(E["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!O()},E["yt-mini-game-card-view-model--dismissed-square-card"]=O,E))},_.W("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.W(_.A,{cond:function(){return e().responseText.runs[0].text},
then:function(J){return _.W("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:J},J)}}),_.W(_.Tn,{data:function(){return e().buttons}},{buttonRenderer:_.vp,
buttonViewModel:_.hM})))}}))},"ca");var Oti=_.XO(function(l){l=_.J3(l,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var e=l.data,O=l.useFullWidth,E=l.isDesktopWeb,J=l.addSearchResultTopMargin,z=function(){return e().layout},M=function(){return e().title},Z=function(){return e().metadataText?e().metadataText:e().genre},u=function(){return e().channelName},d=function(){return e().image},g=function(){return e().colorPalette},w=function(){return e().actionButton},n=function(){return e().overflowButton},
k=function(){return e().avatar},y=function(){var h={};
h=_.ax("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(h["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return E()},h));
return _.W("div",{class:h},_.W(SXx,{imageData:d,colorPalette:g}),_.W(Qbx,{onTap:function(){return e().onTap},
imageData:d,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.W(_.A,{cond:function(){return!E()},
then:function(){return _.W(_.ZB,null,_.W(xQx,{layout:z,colorPalette:g,isDesktopWeb:E,overflowButton:n,avatar:k,onTap:function(){return e().onTap},
genre:Z,title:M,channelName:u,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}),_.W(Nl,{actionButton:w}))}}))},c=function(){var h={};
h=_.ax((h["yt-mini-game-card-view-model--search-result-desktop"]=function(){return E()},h["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!E()},h["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return J()},h));
return _.W("div",{class:h},y(),_.W(lvx,{description:function(){return e().description},
isDesktopWeb:E,title:M,genre:Z,onTap:function(){return e().onTap},
actionButton:w,overflowButton:n,avatar:k,channelName:u}))},f=function(){var h=function(){var t;
return(t=e().entityRedesignExperiments)==null?void 0:t.changePlayablesLayoutWithCta},N={};
N=_.ax("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(N["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return h()},N["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return E()},N["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return E()&&e().width===135},N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return E()},N["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!h()&&E()&&e().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--big-metadata-font"]=function(){return e().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--use-full-width"]=function(){return O()},N["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!w()},N));
return _.W("div",{class:N},_.W(_.A,{cond:function(){return h()},
then:function(){return _.W(_.ZB,null,_.W(erS,{entityRedesignExperiments:function(){return e().entityRedesignExperiments},
colorPalette:g,isDesktopWeb:E,onTap:function(){return e().onTap},
accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
actionButton:w,imageData:d}),_.W(xQx,{layout:z,colorPalette:g,isDesktopWeb:E,overflowButton:n,avatar:k,onTap:function(){return e().onTap},
genre:Z,title:M,channelName:u,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}),_.W(_.A,{cond:function(){return!!h()===!1&&w()},
then:function(){return _.W(Nl,{actionButton:w})}}))},
else:function(){return _.W(_.ZB,null,_.W(SXx,{imageData:d,colorPalette:g}),_.W(Qbx,{onTap:function(){return e().onTap},
imageData:d,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.W(xQx,{layout:z,colorPalette:g,isDesktopWeb:E,overflowButton:n,avatar:k,onTap:function(){return e().onTap},
genre:Z,title:M,channelName:u,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}),_.W(Nl,{actionButton:w}))}}))},P=function(){var h={};
h=_.ax("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(h["yt-mini-game-card-view-model--square-card-desktop"]=function(){return E()},h["yt-mini-game-card-view-model--use-full-width"]=function(){return O()},h));
return _.W("div",{class:h},_.W(Qbx,{onTap:function(){return e().onTap},
imageData:d,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:E}),_.W(xQx,{layout:z,colorPalette:g,isDesktopWeb:E,overflowButton:n,avatar:k,onTap:function(){return e().onTap},
genre:Z,title:M,channelName:u,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}))};
return _.W("mini-game-card-view-model",{class:l.className},_.W(_.cK,null,_.W(_.jD,{when:function(){return z()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return f()}),_.W(_.jD,{when:function(){return z()==="MINI_APP_LAYOUT_SQUARE"}},function(){return P()}),_.W(_.jD,{when:function(){return z()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return c()})))},"da");
Oti.idomCompat=!0;var Nl=_.XO(function(l){var e=_.Et(l.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.W(_.Tn,{data:l.actionButton},{buttonViewModel:function(O){return _.W("div",{class:e},_.W(_.hM,{data:O.data}))}})},"ea"),Qbx=_.XO(function(l){var e=l.onTap;
var O=l.imageData;var E=l.accessibilityText;var J=l.overlayBadgeText;var z=l.iconName;var M=l.unplayableInlinePlaybackIconName;l=l.isDesktopWeb;return _.W(_.$8,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:e},_.W(_.Jm,{data:O,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(E==null?void 0:E())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.W(E9S,{overlayBadgeText:J,iconName:z,unplayableInlinePlaybackIconName:M,isDesktopWeb:l}))},"fa"),E9S=_.XO(function(l){var e=l.overlayBadgeText;
var O=l.iconName;var E=l.unplayableInlinePlaybackIconName;var J=l.isDesktopWeb;return _.W("div",{class:"yt-mini-game-card-view-model__badge-container"},_.W(_.A,{cond:O,then:function(z){return _.W("div",{class:"yt-mini-game-card-view-model__badge"},_.W("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.W(_.cF,{icon:z,className:"yt-mini-game-card-view-model__icon"}),_.W("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},e)))}}),_.W(_.A,{cond:function(){return!O()&&
e()},
then:function(){return _.W("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},e)}}),_.W(_.A,{cond:function(){return E()&&J()},
then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.W(_.cF,{icon:E,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),SXx=_.XO(function(l){var e=l.colorPalette;
var O=l.imageData;var E=function(){return e().vibrantColorPalette?e().vibrantColorPalette.section2Color:e().sectionTwoColor};
return _.W(_.ZB,null,_.W("div",{class:"yt-mini-game-card-view-model__background-base",style:_.HF({"background-color":function(){return vc(E(),"1")}})}),_.W("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.HF({"background-image":function(){return"url("+O().sources[0].url+")"}})}),_.W("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.HF({background:function(){return"linear-gradient(180deg,\n    "+vc(E(),".8")+" 0%,\n    "+vc(E(),".4")+" 25%,\n    "+vc(e().vibrantColorPalette?e().vibrantColorPalette.section4Color:e().sectionFourColor,".8")+" 100%)"}})}))},"ha"),xQx=_.XO(function(l){var e=l.layout;
var O=l.colorPalette;var E=l.overflowButton;var J=l.avatar;var z=l.onTap;var M=l.title;var Z=l.channelName;var u=l.entityRedesignExperiments;var d=l.genre;var g=function(){var n;return e()!=="MINI_APP_LAYOUT_SQUARE"&&((n=O())==null?0:n.textPrimaryColor)?"color: "+vc(O().textPrimaryColor,".7"):""},w=function(){var n;
return u==null?void 0:(n=u())==null?void 0:n.changePlayablesLayoutWithCta};
return _.W("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.W(_.A,{cond:J,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.Tn,{data:J},{avatarViewModel:_.Hp}))}}),_.W(_.$8,{command:z,
className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:M},M),_.W(_.A,{cond:J,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.W("span",{class:"yt-mini-game-card-view-model__genre",title:Z,style:g},Z),_.W("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:g},d))},
else:function(){return _.W(_.A,{cond:w,then:function(){return _.W("span",{class:"yt-mini-game-card-view-model__genre",title:d},d)},
else:function(){return _.W("span",{class:"yt-mini-game-card-view-model__genre",title:d,style:g},d)}})}})),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.Tn,{data:E},{buttonViewModel:function(n){var k=n.data;
return _.W(_.hM,{data:function(){return Object.assign({},k(),{customFontColor:w()?void 0:k().customFontColor})}})}})))},"ia"),erS=_.XO(function(l){var e=l.entityRedesignExperiments;
var O=l.colorPalette;var E=l.isDesktopWeb;var J=l.onTap;var z=l.accessibilityText;var M=l.overlayBadgeText;var Z=l.iconName;var u=l.unplayableInlinePlaybackIconName;var d=l.actionButton;l=l.imageData;var g=function(){var w;return e==null?void 0:(w=e())==null?void 0:w.changePlayablesLayoutWithCta};
return _.W("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.W(SXx,{imageData:l,colorPalette:O}),_.W(Qbx,{onTap:J,imageData:l,accessibilityText:z,overlayBadgeText:M,iconName:Z,unplayableInlinePlaybackIconName:u,isDesktopWeb:E}),_.W(_.A,{cond:function(){return(g==null?void 0:g())&&(d==null?void 0:d())},
then:function(){return _.W(Nl,{actionButton:d})}}))},"ja"),lvx=_.XO(function(l){var e=l.description;
var O=l.isDesktopWeb;var E=l.title;var J=l.genre;var z=l.onTap;var M=l.actionButton;var Z=l.overflowButton;var u=l.avatar;l=l.channelName;var d={};d=_.ax("yt-mini-game-card-view-model--search-result-metadata-wrapper",(d["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=O,d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=O,d["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!O()},d));
var g={};g=_.ax("yt-mini-game-card-view-model__search-result-info-row",(g["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!O()},g));
return _.W("div",{class:d},_.W("div",{class:g},_.W(_.$8,{command:z,className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:E},E),_.W("span",{class:"yt-mini-game-card-view-model__genre",title:J},J)),_.W(Nl,{actionButton:M,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.Tn,{data:Z},{buttonViewModel:_.hM}))),_.W("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.W("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.Tn,{data:u},{avatarViewModel:function(w){var n=w.data;return _.W(_.Hp,{data:function(){return Object.assign({},n(),{avatarImageSize:O()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.W(_.$8,{command:z,
className:"yt-mini-game-card-view-model__description"},_.W("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},l)),_.W(_.$8,{command:z,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.W("div",null)))),_.W(_.A,{cond:O,then:function(){return _.W(_.$8,{command:z,className:"yt-mini-game-card-view-model__description"},e)}}))},"ka");_.Zw(Oti,"mini-game-card-view-model",{props:{data:_.lB,className:_.lB,useFullWidth:_.lB,isDesktopWeb:_.lB,addSearchResultTopMargin:_.lB}});_.Zw(DQF,"dismissed-mini-game-card-view-model",{props:{data:_.lB,useSquareAspectRatio:_.lB}});var rr=function(){var l=_.B.apply(this,arguments)||this;l.isSearch=!1;l.isRichGrid=!1;return l};
_.m(rr,_.B);_.X=rr.prototype;_.X.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.X.dismissibleItemOnYtServiceRequestSent=function(l,e){e.actions&&this.dismissibleItemProcessActions(l,e.actions)};
_.X.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.X.dataChanged=function(){this.dismissibleItemReset()};
_.X.dismissibleItemProcessActions=function(l,e){for(var O=0;O<e.length;O++){var E=e[O];_.I(E,_.Kp)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.I(E,_.Kp)),l.stopPropagation())}};
_.X.dismissibleItemHandleReplaceEnclosingAction=function(l){this.dismissedRenderer=l.item;this.isDismissed=!0};
_.Ji.Object.defineProperties(rr.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var l;return!!this.data&&!((l=this.dismissedRenderer)==null?0:l.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.dismissedRenderer)==null||!l.notificationMultiActionRenderer)}}});
rr.prototype.dataChanged=rr.prototype.dataChanged;rr.prototype.dismissibleItemOnRequestSent=rr.prototype.dismissibleItemOnRequestSent;rr.prototype.dismissibleItemOnYtServiceRequestSent=rr.prototype.dismissibleItemOnYtServiceRequestSent;_.L([_.T(),_.q("design:type",Object)],rr.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rr.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],rr.prototype,"isDismissed",void 0);
_.L([_.T(),_.q("design:type",Object)],rr.prototype,"dismissedRenderer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rr.prototype,"isRichGrid",void 0);_.L([_.R("data.layout"),_.q("design:type",Object),_.q("design:paramtypes",[])],rr.prototype,"useSquareAspectRatio",null);_.L([_.R("data","dismissedRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],rr.prototype,"showCard",null);
_.L([_.R("data","dismissedRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],rr.prototype,"showDismissed",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],rr.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.L([_.wP("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],rr.prototype,"dismissibleItemOnRequestSent",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rr.prototype,"dataChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],rr);
_.Y(rr,"ytd-mini-game-card-view-model",function(){if(vYH!==void 0)return vYH;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return vYH=l},{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var Jjq;var X_1;var DE=function(){return _.Xc.apply(this,arguments)||this};
_.m(DE,_.Xc);DE.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
DE.prototype.getContinuationUrl=function(l){var e={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.e7(l,e)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],DE.prototype,"data",void 0);_.L([_.Ps({is:"yt-reload-continuation",noInjection:!0})],DE);var zrk;var bt1;var SW=function(){var l=_.B.apply(this,arguments)||this;l.notificationData={};return l};
_.m(SW,_.B);_.X=SW.prototype;_.X.isMenuExpanded=function(l){return l&&l.length<=1?"undefined":"false"};
_.X.dataChanged_=function(){this.selected=void 0;var l=this.computeSelectedIndex_(this.data);l>=0&&(this.selected=l);l=this.data&&this.data.length>1;_.oB(this.hostElement,"has-items",l);_.ud(this.hostElement).querySelector("#label").tabIndex=l?0:-1};
_.X.onDropdownOpen=function(){var l=_.P9();if(this.parentTrackingParams&&this.data){var e=_.cf(this.parentTrackingParams);this.data.forEach(function(O){l&&e&&O.trackingParams&&(O=_.cf(O.trackingParams),_.DG(l,e,O),_.xu(l,[O]))})}else this.parentTrackingParams||_.hG(new _.Hk("No parent tracking params passed in for yt-dropdown-menu."))};
_.X.hasNotification=function(l){var e;if(l.targetId&&((e=this.notificationData)==null?0:e.targetId)){var O;return l.targetId===((O=this.notificationData)==null?void 0:O.targetId)}};
_.X.computeSelectedIndex_=function(l){if(l)for(var e=0,O=l.length;e<O;e++)if(l[e].selected)return e;return-1};
_.X.computeLabel_=function(l){return this.data&&l!=void 0?this.data[l].title:""};
_.X.computeShowIcon_=function(l,e){return!e&&!!l};
_.X.computeVerticalOffset_=function(l){return l?36:0};
_.X.computeEndpoint_=function(l){return l.endpoint||l.navigationEndpoint};
_.X.onLabelClick_=function(l){this.data&&this.data.length<=1?l.stopPropagation():this.menuExpanded="true"};
_.X.onIronActivate_=function(l){l=l.detail.item;var e=_.ud(this.hostElement).querySelector("#repeat").itemForElement(l);if(e&&e.trackingParams){var O=_.P9(),E=_.cf(e.trackingParams);O&&_.On(O,E)}if(e&&e.serviceEndpoint)_.a("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(e.serviceEndpoint):_.ii(this.hostElement,[e.serviceEndpoint]),_.$u(this.hostElement,"yt-playlist-reloading");else a:{if((e=l.querySelector("yt-supported-renderers"))&&
(e=e.rendererElement)&&e.is=="yt-reload-continuation"){e.trigger();break a}(l=l.querySelector("yt-reload-continuation"))&&l.trigger()}};
_.X.onTap_=function(l){l.preventDefault()};
_.X.onItemTap_=function(l){this.ytEndpointBehavior.onEndpointTap_(l)};
_.X.onLinkFocus_=function(l){try{var e=l.target}catch(E){}if(e){var O=e.querySelector("tp-yt-paper-item");O&&_.rP(this,"focus",function(){O.focus()})}};
_.X.onMenuClose_=function(){this.menuExpanded="false"};
_.X.isLabelIconActive_=function(l){return l==="true"};
_.X.computeHasSubtitle_=function(l){return!!l};
_.X.computeHrefForItem_=function(l){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(l))};
_.X.updateSelectedFromBinding=function(l){this.selected=l.detail.value};
_.Ji.Object.defineProperties(SW.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
SW.prototype.onMenuClose_=SW.prototype.onMenuClose_;SW.prototype.onTap_=SW.prototype.onTap_;SW.prototype.onIronActivate_=SW.prototype.onIronActivate_;SW.prototype.onDropdownOpen=SW.prototype.onDropdownOpen;SW.prototype.dataChanged_=SW.prototype.dataChanged_;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],SW.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],SW.prototype,"ytEndpointBehavior",void 0);
_.L([_.T(),_.q("design:type",Array)],SW.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],SW.prototype,"parentTrackingParams",void 0);_.L([_.T(),_.q("design:type",Object)],SW.prototype,"selected",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],SW.prototype,"useLabel",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],SW.prototype,"useComputedAriaLabel",void 0);_.L([_.T(),_.q("design:type",String)],SW.prototype,"icon",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],SW.prototype,"iconLabel",void 0);_.L([_.T(),_.q("design:type",String)],SW.prototype,"ariaLabel",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],SW.prototype,"disabled",void 0);_.L([_.T({computed:"isMenuExpanded(data)"}),_.q("design:type",String)],SW.prototype,"menuExpanded",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],SW.prototype,"closeOnActivate",void 0);
_.L([_.T({reflectToAttribute:!0,value:_.a("web_modern_buttons")}),_.q("design:type",Boolean)],SW.prototype,"modernButtons",void 0);_.L([_.T(),_.q("design:type",Object)],SW.prototype,"notificationData",void 0);_.L([_.R("ariaLabel, selected"),_.T(),_.q("design:type",String),_.q("design:paramtypes",[])],SW.prototype,"computedAriaLabel",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],SW.prototype,"dataChanged_",null);
_.L([_.wP("paper-dropdown-open"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],SW.prototype,"onDropdownOpen",null);_.L([_.wP("iron-activate"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],SW.prototype,"onIronActivate_",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],SW.prototype,"onTap_",null);
_.L([_.wP("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],SW.prototype,"onMenuClose_",null);_.L([_.Ps({is:"yt-dropdown-menu",disableElementRegistration:!0})],SW);
_.Y(SW,"yt-dropdown-menu",function(){if(bt1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;zrk===void 0&&(zrk=document.createElement("template"));var E=zrk;O.call(e,E.content.cloneNode(!0),l.content.firstChild);bt1=l}l=bt1;return l},{mode:2});var Qa=function(){var l=_.B.apply(this,arguments)||this;l.hasNotification=!1;return l};
_.m(Qa,_.B);Qa.prototype.computeId=function(l){return l};
Qa.prototype.computeHorizontalAlign=function(l){return l?"right":"left"};
Qa.prototype.computeAccessibilityLabel=function(l){var e,O;return((e=l.accessibility)==null?void 0:(O=e.accessibilityData)==null?void 0:O.label)||null};
Qa.prototype.notificationDataChanged=function(){var l;this.hasNotification=!!this.notificationData&&!((l=this.data)==null?0:l.icon)};
Qa.prototype.notificationDataChanged=Qa.prototype.notificationDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.q5.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],Qa.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qa.prototype,"data",void 0);_.L([_.T({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",String)],Qa.prototype,"id",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],Qa.prototype,"isRightAligned",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Qa.prototype,"disabled",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Qa.prototype,"closeOnActivate",void 0);_.L([_.T(),_.q("design:type",Object)],Qa.prototype,"notificationData",void 0);_.L([_.T(),_.q("design:type",Object)],Qa.prototype,"hasNotification",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],Qa.prototype,"useComputedAriaLabel",void 0);_.L([_.AA("notificationData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qa.prototype,"notificationDataChanged",null);_.L([_.Ps({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Qa);
_.Y(Qa,"yt-sort-filter-sub-menu-renderer",function(){if(X_1===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Jjq===void 0&&(Jjq=document.createElement("template"));var E=Jjq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);X_1=l}l=X_1;return l},{mode:2});_.Z8(BjM);
var MX1=_.XO(function(l){var e=l.children;var O=l.className;var E=l.style;var J=l.role;var z=l.ariaSelected;var M=l.ariaLabel;var Z=l.ariaHidden;var u=l.ariaLabelledby;var d=l.ariaDescribedby;var g=l.command;var w=l.elementsCommand;var n=l.forceNewState;var k=l.tabIdentifier;var y=l.target;var c=l.tabIndex;var f=l.stopPropagation;l=_.mF(function(){var P=_.vf({innertubeCommand:g==null?void 0:g(),elementsCommand:w==null?void 0:w(),forceNewState:n==null?void 0:n(),stopPropagation:(f==null?void 0:f())!==
!1});P||(P={});P["aria-hidden$"]=Z==null?void 0:Z();var h;P.tabindex$=(h=c==null?void 0:c())!=null?h:P.tabindex$;var N;P["force-new-state$"]=(N=n==null?void 0:n())!=null?N:P["force-new-state$"];var t;P.role$=(t=J==null?void 0:J())!=null?t:P.role$;var r;P["aria-hidden$"]=(r=Z==null?void 0:Z())!=null?r:P["aria-hidden$"];var D;P.target$=(D=y==null?void 0:y())!=null?D:P.target$;return P},void 0,"SU0Mnc");
return _.W(_.$8,{aTagConfig:l,className:O,style:E,ariaLabel:M,ariaLabelledby:u,ariaDescribedby:d,ariaSelected:z,tabIdentifier:k},e)},"la");var VXq=_.yh(PUq);_.Z8(PUq);_.Zw(VXq,"place-data-view-model",{props:{data:_.lB}});var Zt6=new _.Xa("INLINE_PLAYBACK_HOOK_TOKEN");var ugF=function(l){this.setActiveSlideIndex=l;this.jobIds=[];this.isSlideshowPlaying=!1},$XS=function(l,e){l.isSlideshowPlaying||(l.isSlideshowPlaying=!0,CUq(l),o9H(l,e,0))},CUq=function(l){_.WF(_.UD,function(){l.setActiveSlideIndex(0)},1)},o9H=function(l,e,O){l.jobIds.push(_.WF(_.UD,function(){var E=O<e-1?O+1:0;
l.setActiveSlideIndex(E);o9H(l,e,E)},1800))};var Wj6=new _.Xa("IMAGE_ON_LOAD_HANDLER_TOKEN");var dXF=_.XO(function(l){return _.W("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.W(_.A,{cond:function(){var e;return(e=l.data())==null?void 0:e.thumbnail},
then:function(e){return _.W(_.Jm,{data:e,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.g9C=_.XO(function(l){var e=l.data;var O=l.lockupExperiments;l={};return _.W("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.W("div",{class:_.ax("ytThumbnailOverlayButtonViewModelButton",(l.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var E;return O&&((E=O())==null?void 0:E.useLegacySizedIconButton)},l))},_.W(_.Tn,{data:function(){return e().overlayButton}},{buttonViewModel:function(E){return _.W(_.hM,{data:E.data,
buttonOverrides:function(){var J;return O&&((J=O())==null?0:J.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.g9C.idomCompat=!0;var itq=_.XO(function(l){return _.W("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.pd(function(e){e.preventDefault();return!1})},_.W(_.Tn,{data:function(){return l.data().buttons}},{toggleButtonViewModel:function(e){return _.W("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.W(_.sh,{data:e.data}))}}))},"oa");
itq.idomCompat=!0;var w_F=_.XO(function(l){var e=function(){var O;return((O=_.I(l.data().rendererContext,_.yu))==null?void 0:O.label)||""};
return _.W("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.W(_.A,{cond:function(){return l.data().image},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.W(_.Jm,{data:function(){return l.data().image},
alt:e}))}}),_.W(_.A,{cond:function(){return l.data().text},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return l.data().text})}}))},"pa");_.xR=_.XO(function(l){var e=[],O=function(){var n,k;return jPd((n=l.width)==null?void 0:n.call(l),(k=l.height)==null?void 0:k.call(l))},E=_.V2().resolve(_.MG(Wj6)),J=_.e4("yt-thumbnail-view-model",function(){e.push("elRef.value set");
var n;(n=l.playbackRef)==null||n.call(l,{thumbnailElRef:J,thumbnail:l.data().image,thumbnailOverlays:l.data().overlays,thumbnailSize:O()})});
_.sC(function(){e.push("onInit");_.B3(function(){e.push("onCleanup")})});
var z=_.Ld(YJg),M=function(){var n,k;return(k=(n=l.aspectRatio)==null?void 0:n.call(l))!=null?k:0},Z=function(){return(l.data().image?_.z$x(l.data().image):M())<=1&&M()===0},u=function(){return Z()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},d=function(){J.value||_.hG(new _.Hk("Thumbnail elRef.value is null",e.join("\n")));
E&&J.value&&E(J.value)},g=function(){var n,k;
return((n=l.hovered)==null?void 0:n.call(l))&&O()!=="large"&&((k=l.data().overlays)==null?void 0:k.some(function(y){return _.I(y,CSH)}))},w={};
return _.W("yt-thumbnail-view-model",{class:_.ax("yt-thumbnail-view-model",l.className,function(){return tXM(M())},function(){var n,k;
a:{var y=O(),c=(n=l.disableRounding)==null?void 0:n.call(l);n=(k=l.isClip)==null?void 0:k.call(l);if(!c&&!n)switch(y){case "large":k="yt-thumbnail-view-model--large";break a;case "small":k="yt-thumbnail-view-model--small";break a;default:k="yt-thumbnail-view-model--medium";break a}k=void 0}return k},(w["yt-thumbnail-view-model--cinematic"]=Z,w)),
style:_.HF({"background-color":function(){var n,k=Z()?(n=l.data().backgroundColor)==null?void 0:n.lightTheme:void 0;return k?vc(k,"1"):void 0}}),
el:J},_.W(_.A,{cond:Z,then:function(){return _.W("div",{class:"yt-thumbnail-view-model__blurred-image"},_.W(_.Jm,{data:function(){return l.data().image},
alt:"",contentMode:u,targetWidth:l.width,onload:d}))}}),_.W("div",{class:"yt-thumbnail-view-model__image"},_.W(_.Jm,{data:function(){return l.data().image},
alt:"",contentMode:u,targetWidth:l.width,onload:d}),null),_.W(_.Tn,{data:function(){return g()?void 0:l.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:pr0,thumbnailOverlayBadgeViewModel:function(n){return _.W(KpC,{data:n.data,thumbnailSize:O,isClip:l.isClip})},
thumbnailBottomOverlayViewModel:function(n){return _.W(ko1,{data:n.data,thumbnailSize:O,isClip:l.isClip})},
thumbnailOverlayFullViewModel:w_F,thumbnailOverlayButtonViewModel:function(n){return _.W(_.g9C,{data:n.data,lockupExperiments:l.lockupExperiments})}}),_.W(_.Tn,{data:function(){var n;
return((n=l.hovered)==null?0:n.call(l))?l.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(n){return _.W(jW,{data:n.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:itq}),_.W(_.Tn,{data:function(){var n;return((n=l.hovered)==null?0:n.call(l))&&z()?l.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:dXF}),_.W(_.A,{cond:l.isClip,then:function(){return _.W("div",{class:"yt-pinking"},_.W("svg",{class:"yt-pinking__pinking-left"},_.W("defs",null,_.W("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.W("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.W("svg",{class:"yt-pinking__pinking-right"},_.W("defs",null,_.W("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.W("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.xR.idomCompat={callbacks:{playbackRef:!0}};var AjF=_.XO(function(l){var e=_.b(_.AF(-1,void 0,"IOLZ0b")),O=e.next().value,E=e.next().value;_.sC(function(){var J=new ugF(E);$XS(J,l.data().thumbnails.length);_.B3(function(){if(J.isSlideshowPlaying){J.isSlideshowPlaying=!1;for(var z=J.jobIds,M=0,Z=z.length;M<Z;M++)_.UD.cancelJob(z[M]);J.jobIds.length=0}})});
return _.W("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.W(_.Tn,{data:function(){return l.data().thumbnails}},{thumbnailViewModel:function(J,z){return _.W("div",{class:function(){var M=!l.data().primaryThumbnail,Z=z(),u=O(),d=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
M&&Z===0&&d.push("yt-collection-thumbnail-slideshow--first-slide");Z<=u&&d.push("yt-collection-thumbnail-slideshow--show-slide");return d.join(" ")}},_.W(_.xR,{data:J.data,
disableRounding:l.disableRounding}))}}))},"ra");
AjF.idomCompat=!0;var qJV=new _.Xa("DWELL_DETECTOR_REGISTRY_TOKEN");var av6=_.XO(function(l){var e=NjL(l.triggeringElement),O=function(){return!!l.data().primaryThumbnail};
return _.W("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.W(n9x,{stackEnabled:O,thumbnailSize:function(){var E,J;return jPd((E=l.width)==null?void 0:E.call(l),(J=l.height)==null?void 0:J.call(l))},
doubleStack:l.doubleStack,stackColor:function(){return l.data().stackColor}},_.W("div",null,_.W(_.Tn,{data:function(){return l.data().primaryThumbnail}},{thumbnailViewModel:function(E){var J={};
return _.W(_.xR,{data:E.data,width:l.width,height:l.height,aspectRatio:l.aspectRatio,disableRounding:l.disableRounding,className:_.ax((J["yt-collection-thumbnail-view-model--has-stacks"]=O,J)),hovered:l.hovered,playbackRef:l.playbackRef})}}),_.W(_.A,{cond:function(){var E;
return e()&&((E=l.data().thumbnails)==null?void 0:E.length)},
then:function(){return _.W("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.W(AjF,{data:l.data,disableRounding:function(){return!O()}}))}}))))},"sa");
av6.idomCompat={callbacks:{playbackRef:!0}};
var n9x=_.XO(function(l){var e=l.children;var O=l.stackEnabled;var E=l.thumbnailSize;var J=l.doubleStack;var z=l.stackColor;var M,Z=(M=_.V2().resolve(_.MG(_.lp)))==null?void 0:M();return _.W(_.A,{cond:O,then:function(){return _.W(xM0,{data:function(){var u,d;return{experimentEnabled:!0,thumbnailSize:E(),doubleStack:J==null?void 0:J(),color:Z?z==null?void 0:(u=z())==null?void 0:u.darkTheme:z==null?void 0:(d=z())==null?void 0:d.lightTheme,enableResponsiveMode:!1}}},e)},
else:function(){return e}})},"ta");var kfx=new _.Xa("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ec;_.lo={calledOnce:!0,state:"visible"};ec={calledOnce:!0,state:"hidden"};_.Oz=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;var E=l.className;var J=l.delayedClassName;l=l.animationEntityKey;var z=_.e4("ad-button-view-model"),M=_.Et(l,""),Z=_.kD(k6p,M),u=function(){var D,b2;return(b2=(D=Z())==null?void 0:D.value)!=null?b2:!1},d=function(){_.Ot(_.IK("booleanEntity",M(),{key:M(),
value:!0}));P=void 0};
l=_.b(_.jN(u));var g=l.next().value,w=l.next().value;l=_.b(_.jN(u));var n=l.next().value,k=l.next().value;l=_.b(_.jN(function(){var D;return u()?(D=e().styleTransitionConfig)==null?void 0:D.destinationStyle:void 0}));
var y=l.next().value,c=l.next().value,f=function(){var D=Object.assign({},e(),y()&&{style:y()}),b2,$V,gT=D.label,mx=(b2=D.interaction)==null?void 0:($V=b2.accessibility)==null?void 0:$V.label;b2=D.iconImage?D.label&&D.label.content?D.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:gT,accessibilityLabel:mx,style:Qhp(D.style),type:xXd(D.style),state:"active",size:SJx(D.size),iconPosition:b2,disabled:!1,aTagConfig:DXV(D,O)}},P;
_.VR(z,{visibilityCallback:function(D){var b2,$V=(b2=e().interaction)==null?void 0:b2.onFirstVisible;D&&$V&&_.r6($V)},
showOption:_.lo});var h=function(){return FY(f(),!!e().iconImage)};
E=_.ax(function(){return"ytwAdButtonViewModelHost"},function(){return e().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var D=!!e().delayedAppearanceConfig,b2=g();
return D?b2?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var D=!!e().delayedAppearanceConfig,b2=n();
return D?b2?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!e().delayedAppearanceConfig||g()?J==null?void 0:J():""},E!=null?E:"");
var N=function(){var D,b2=(D=e().delayedAppearanceConfig)==null?void 0:D.delayedInvisibleSeconds;b2&&(P=_.pT(_.UD,function(){w(!0);t()},b2*1E3))},t=function(){var D,b2=(D=e().delayedAppearanceConfig)==null?void 0:D.delayedVisibleSeconds;
b2&&(P=_.pT(_.UD,function(){k(!0);r()},b2*1E3))},r=function(){var D,b2=(D=e().styleTransitionConfig)==null?void 0:D.styleTransitionSeconds,$V,gT=($V=e().styleTransitionConfig)==null?void 0:$V.destinationStyle;
b2&&gT?P=_.pT(_.UD,function(){c(gT);d()},b2*1E3):d()};
_.sC(function(){var D;((D=e().delayedAppearanceConfig)==null?0:D.transitionDurationSeconds)&&z.value.style.setProperty("transition-duration",e().delayedAppearanceConfig.transitionDurationSeconds+"s");N()});
_.B3(function(){P&&_.UD.cancelJob(P)});
return _.W("ad-button-view-model",{class:E,el:z},_.W(_.A,{cond:f,then:function(){return _.W(Ms,{data:f,icon:function(){return _.W(_.A,{cond:function(){return e().iconImage},
then:function(D){return _.W(_.Jm,{data:D,alt:"",targetWidth:h,targetHeight:h,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var Ivk=_.XO(function(l){var e=l.data;l=_.e4("ad-button-group-view-model");_.VR(l,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});var O={};return _.W("ad-button-group-view-model",{class:_.ax("ytwAdButtonGroupViewModelHost",(O.ytwAdButtonGroupViewModelHostCompactWidth=function(){return e().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},O)),
el:l},_.W("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.W(_.Tn,{data:function(){return e().secondaryAdButton}},{adButtonViewModel:function(E){return _.W(_.Oz,{data:E.data})}})),_.W("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.W(_.Tn,{data:function(){return e().primaryAdButton}},{adButtonViewModel:function(E){return _.W(_.Oz,{data:E.data})}})))},"va");var mXS=_.XO(function(l){var e=function(){var O;return((O=l.data())==null?void 0:O.answers)||[]};
return _.W("yt-survey-icons",{class:"ytSurveyIconsHost"},_.W("div",{class:"ytSurveyIconsHeader"},_.W("div",{class:"ytSurveyIconsTitle"},function(){var O;return(O=l.data())==null?void 0:O.text}),_.W("div",null,_.W(Ms,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var O;(O=l.onDismiss)==null||O.call(l)}}},
iconName:"DISMISSAL"}))),_.W("div",null,_.W("div",{class:"ytSurveyIconsAnswers"},_.W(_.KH,{each:function(){return e()},
keyBy:"INDEX"},function(O,E){return _.W("div",null,_.W(Ms,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var J;(J=l.onSelect)==null||J.call(l,O(),E)}}},
icon:function(){return _.W(_.cF,{icon:function(){var J,z;return(J=O())==null?void 0:(z=J.icon)==null?void 0:z.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.W("div",{class:"ytSurveyIconsAnswersText"},_.W("div",null,function(){return e().length?e()[0].text:""}),_.W("div",null,function(){return e().length?e()[e().length-1].text:""}))))},"wa");var yjH=_.XO(function(l){var e=_.b(_.AF(!1,void 0,"s8HkOb")),O=e.next().value,E=e.next().value,J=_.kD(jbV,function(){var Z;return(Z=l.data().keys)==null?void 0:Z.surveyEntityKey}),z=_.kD(Hf2,function(){var Z;
return(Z=l.data().keys)==null?void 0:Z.surveyStateEntityKey});
_.lg("ytd-slimline-survey-show-action",function(){E(!1)});
var M=function(){var Z,u;var d=(Z=z())==null?void 0:(u=Z.questionStack)==null?void 0:u[0];if(d!==void 0){var g,w;return(g=J())==null?void 0:(w=g.questions)==null?void 0:w[d]}};
e={};return _.W("yt-slimline-survey-view-model",{class:_.ax("ytSlimlineSurveyViewModelHost",(e.ytSlimlineSurveyViewModelCollapsed=function(){return O()},e))},_.W("div",{class:"ytSlimlineSurveyViewModelContainer"},_.W(_.A,{cond:function(){var Z;
return((Z=M())==null?void 0:Z.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.W(mXS,{data:function(){return M()},
onSelect:function(Z,u){var d,g;return _.V(function(w){E(!0);if(g=(d=l.data())==null?void 0:d.onSelectRating)_.r6(g),_.Ot(TuS(u));_.Cl(w)})},
onDismiss:function(){E(!0)}})}})))},"xa");var p_1=_.XO(function(l){return _.W("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.W(_.Tn,{data:function(){var e;return(e=l.data())==null?void 0:e.attachments}},{flexibleActionsViewModel:function(e){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(ojx,{data:e.data,
layout:function(){var O;return((O=l.lockupStyle())==null?void 0:O.arrangement)===1?0:1},
justifyContentOverride:function(){var O;return((O=l.lockupStyle())==null?void 0:O.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(e){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(yjH,{data:e.data}))},
expandableMetadataViewModel:function(e){e=e.data;var O;return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},(O=_.V2().resolve(_.MG(kfx)))==null?void 0:O({data:e}))},
adButtonGroupViewModel:function(e){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(Ivk,{data:e.data}))}}))},"ya");var XUx=_.Cv("rich_grid_min_item_width",310),Erq=_.Cv("rich_grid_max_item_width",500);var grd=_.XO(function(l){var e=l.data;return _.W("br-nz-badge-shape",{class:_.ax(function(){return orT(e().brNzRatingBadgeType)}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},function(){var O;
return(O=e())==null?void 0:O.text})},"za");_.Z8(ijd);var Kji,jhF;Kji=_.XO(function(l){var e=function(){var O=l.data(),E,J;return O?dP2(O,!((E=l.workaroundShortsIsThumbnailBadge)==null||!E.call(l)),(J=l.modern)==null?void 0:J.call(l)):void 0};
return _.W("yt-badge-view-model",{class:_.ax("yt-badge-view-model-wiz",l.class)},_.W(_.cK,null,_.W(_.jD,{when:function(){var O;return!((O=e())==null||!O.brNzRatingBadgeType)}},function(){return _.W(grd,{data:function(){return e()}})}),_.W(_.jD,{when:function(){return!!e()&&!e().brNzRatingBadgeType}},function(){return _.W(_.Je,{data:function(){return e()}})})))},"Aa");
jhF=_.a("web_enable_sink_yt_badge_view_model")?Kji:ijd;_.MU=_.a("web_enable_sink_yt_badge_view_model")?Kji:_.yh(ijd);Kji.idomCompat=!0;var Att,wUt;Att=16/9;wUt=2/3;_.VD=_.XO(function(l){var e=l.data;var O=l.className;var E=l.imageSizeConfig;var J=l.notifyOnLoaded;l=_.e4("yt-content-preview-image-view-model");var z=function(){return e().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M=function(){var k;
return _.Qz((k=e())==null?void 0:k.rendererContext)},Z={};
Z=(Z["yt-content-preview-image-view-model-wiz"]=!0,Z["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return z()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Z["yt-content-preview-image-view-model-wiz--tappable"]=function(){return M()},Z);
var u=function(){var k,y;return(y=(k=_.I(e().rendererContext,_.yu))==null?void 0:k.label)!=null?y:""},d=function(){return aQx(e())},g=function(){var k=nrd(z(),e().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",E==null?void 0:E(),kFp(d()),e().layoutWidth,e().layoutHeight),y=Object.assign({},k);
k.width&&(y.width=Math.round(k.width));k.height&&(y.height=Math.round(k.height));k.maxWidth&&(y.maxWidth=Math.round(k.maxWidth));k.maxHeight&&(y.maxHeight=Math.round(k.maxHeight));return y},w=_.mF(function(){return g().height},void 0,"QOtei"),n=_.mF(function(){return g().width},void 0,"rKpuNc");
_.xD(l,function(){var k;return(k=e())==null?void 0:k.rendererContext});
return _.W("yt-content-preview-image-view-model",{el:l,role:function(){return M()?"link":void 0},
tabindex:function(){return M()?0:void 0},
class:_.ax(O,Z,function(){var k=z();var y=E==null?void 0:E();k=k==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||k==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||k==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||k==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(y==null?void 0:y.size)!=null&&y.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(y==null?void 0:y.size)!=null&&y.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return k}),
style:function(){var k=g(),y=[];k.width&&y.push("width: "+k.width+"px");k.height&&y.push("height: "+k.height+"px");k.maxWidth&&y.push("max-width: "+k.maxWidth+"px");k.maxHeight&&y.push("max-height: "+k.maxHeight+"px");k.fullWidth&&y.push("width: 100%");return y.join(";")}},_.W(_.A,{cond:d,
then:function(k){return _.W(_.Jm,{data:k,alt:u,"data-disabled$":function(){return!u()},
notifyOnLoaded:J,targetWidth:n,targetHeight:w,preserveWidth:function(){return!!n()},
preserveHeight:function(){return!!w()}})}}),_.W(_.Tn,{data:function(){var k;
return(k=e())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:jW,
thumbnailOverlayButtonViewModel:_.g9C}))},"Ba");
_.VD.idomCompat=!0;var cjq=_.XO(function(l){var e=l.data;var O=l.className;var E=l.useSmallLayout;var J=l.useMediumText;l=_.e4("yt-attribution-view-model");var z={};J=(z["yt-attribution-view-model-wiz"]=!0,z["yt-attribution-view-model-wiz--medium-text"]=J,z);_.xD(l,function(){var M;return(M=e())==null?void 0:M.rendererContext});
return _.W("yt-attribution-view-model",{el:l,class:_.ax(O,J)},_.W(_.A,{cond:function(){return _.Qz(e().rendererContext)},
then:function(){return _.W("button",{class:"yt-attribution-view-model-wiz--tappable"},_.W(Ht0,{data:e,useSmallLayout:E}))},
else:function(){return _.W(Ht0,{data:e,useSmallLayout:E})}}))},"Ca"),Ht0=_.XO(function(l){var e=l.data;
var O=l.useSmallLayout;var E=function(){return{size:(O==null?0:O())?16:24}};
return _.W(_.ZB,null,_.W(_.Tn,{data:function(){return e().contentPreviewImage}},{contentPreviewImageViewModel:function(J){return _.W(_.VD,{data:J.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:E})}}),_.W(_.Tn,{data:function(){return e().badge}},{badgeViewModel:function(J){return _.W(_.MU,{data:J.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.W(_.A,{cond:function(){return e().text},
then:function(){return _.W(_.zK,{text:function(){return e().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.W(_.A,{cond:function(){return e().suffix},
then:function(){return _.W(_.zK,{text:function(){return e().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
cjq.idomCompat=!0;var Hjq=_.jp({avatarStackViewModel:_.Ff,badgeViewModel:jhF});_.Z8(fQu);var FjH,fvC,RrC,Tjq,sh6,Gf0;FjH=_.XO(function(l){var e=l.delimiter;var O=l.max;var E=l.index;var J=l.isStandalone;return _.W(_.A,{cond:function(){return O()-1>E()},
then:function(){var z={};return _.W("span",{class:_.ax("yt-content-metadata-view-model-wiz__delimiter",(z["yt-content-metadata-view-model-wiz__delimiter--standalone"]=J,z)),"aria-hidden":!0},e)}})},"Ea");
fvC=_.XO(function(l){var e=l.metadataPart;var O=l.maxLines;return _.W(_.zK,{text:function(){return e().text},
linkInheritColor:!0,className:function(){return RYp(O())},
userInput:!0})},"Fa");
RrC=_.XO(function(l){var e=l.metadataPart;var O=l.maxLines;return _.W(_.A,{cond:function(){return e().tooltip},
then:function(E){return _.W("span",{title:E,role:"tooltip"},_.W(fvC,{metadataPart:e,maxLines:O}))},
else:function(){return _.W(fvC,{metadataPart:e,maxLines:O})}})},"Ga");
Tjq=_.XO(function(l){var e=l.metadataPart;var O=l.isOverlay;var E=l.useMediumText;var J=l.hideAvatar;var z=function(){return e().maxLines!==void 0?e().maxLines:1};
return _.W(_.ZB,null,_.W(_.Tn,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(M){return _.W(_.Ff,{data:M.data,
isOverlay:O,useMediumText:E,hideAvatar:J})},
badgeViewModel:_.MU}),_.W(_.A,{cond:function(){return e().text},
then:function(){return _.W(RrC,{metadataPart:e,maxLines:z})}}))},"Ha");
sh6=_.XO(function(l){var e=l.metadataRow;var O=l.isInline;var E=l.delimiter;var J=l.isOverlay;var z=l.useMediumText;var M=l.extensions;var Z=function(){var d;return mPV(M==null?void 0:(d=M())==null?void 0:d.lockupMetadata,e())},u=function(){return e().metadataParts||[]};
l={};return _.W("div",{class:_.ax("yt-content-metadata-view-model-wiz__metadata-row",(l["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=O,l["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var d;return ytu(M==null?void 0:(d=M())==null?void 0:d.lockupMetadata,e())},l["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var d;
return!!(M==null?0:(d=M())==null?0:d.lockupMetadata)&&e().badges&&!e().metadataParts},l))},_.W(_.Tn,{data:function(){return e().badges}},{badgeViewModel:function(d){return _.W("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.W(_.MU,{data:d.data}))}}),_.W(_.KH,{each:u},function(d,g){return _.W(_.ZB,null,_.W(Tjq,{metadataPart:d,
isOverlay:J,useMediumText:z,hideAvatar:Z}),_.W(FjH,{delimiter:E,max:function(){return u().length},
index:g,isStandalone:!1}))}),_.W(_.A,{cond:function(){return e().isSpacerRow&&!O()},
then:function(){return _.W("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
Gf0=_.XO(function(l){var e=_.J3(l,{layout:0,isOverlay:!1});l=e.className;var O=e.data,E=e.layout,J=e.isOverlay,z=e.useMediumText,M=e.extensions;e=_.e4("yt-content-metadata-view-model");var Z=function(){return E()===0};
_.xD(e,function(){return O().rendererContext});
var u=function(){return O().metadataRows||[]},d={};
return _.W("yt-content-metadata-view-model",{class:_.ax(l,"yt-content-metadata-view-model-wiz",(d["yt-content-metadata-view-model-wiz--inline"]=Z,d["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Qz(O().rendererContext)},d["yt-content-metadata-view-model-wiz--medium-text"]=z,d)),
el:e},_.W(_.KH,{each:u},function(g,w){return _.W(_.ZB,null,_.W(sh6,{metadataRow:g,isInline:Z,delimiter:function(){return O().delimiter},
isOverlay:J,useMediumText:z,extensions:M}),_.W(_.A,{cond:function(){return Z()&&!g.isSpacerRow},
then:function(){return _.W(FjH,{delimiter:function(){return O().delimiter},
max:function(){return u().length},
index:w,isStandalone:!0})}}))}))},"Ja");
_.Bj0=_.a("web_enable_sink_yt_content_metadata_view_model")?Gf0:_.yh(fQu);Gf0.idomCompat=!0;var PUC=_.XO(function(l){var e={};return _.W("yt-lockup-metadata-view-model",{class:_.ax("yt-lockup-metadata-view-model-wiz",function(){a:{var O=l.lockupStyle();if(O==null?0:O.isOverlay)O="yt-lockup-metadata-view-model-wiz--overlay";else switch(O==null?void 0:O.arrangement){case 1:O="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:O="yt-lockup-metadata-view-model-wiz--vertical"}}return O},function(){a:{var O=l.lockupStyle();
if(O==null?0:O.isTiny)O="yt-lockup-metadata-view-model-wiz--tiny";else switch(O==null?void 0:O.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":O="yt-lockup-metadata-view-model-wiz--compact";break a;default:O="yt-lockup-metadata-view-model-wiz--standard"}}return O},(e["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var O;
return(O=l.lockupStyle())==null?void 0:O.isOverlay},e["yt-lockup-metadata-view-model-wiz--card"]=function(){var O;
return(O=l.lockupStyle())==null?void 0:O.isCard},e["yt-lockup-metadata-view-model-wiz--centered"]=function(){var O;
return(O=l.lockupStyle())==null?void 0:O.isCentered},e["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var O;
return(O=l.lockupStyle())==null?void 0:O.typographyBump},e["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var O;
return(O=l.lockupStyle())==null?void 0:O.useLegacyTypography},e["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var O;
return(O=l.lockupStyle())==null?void 0:O.useRichGridLegacyTypography},e))},_.W(_.Tn,{data:function(){return l.data().image}},{avatarStackViewModel:function(O){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.W(_.Ff,{data:O.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(O){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.W(_.Hp,{data:O.data}))},
decoratedAvatarViewModel:function(O){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.W(_.cp,{data:O.data}))}}),_.W("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.W("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var O;return(O=l.data().title)==null?void 0:O.content}},_.W(_.A,{cond:function(){return l.data().title},
then:function(O){return _.W(_.$8,{command:l.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:l.lockupAccessibilityLabel},_.W(_.zK,{text:O}))}})),_.W("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.W(_.Tn,{data:function(){return l.data().metadata}},{contentMetadataViewModel:function(O){return _.W(_.Bj0,{data:O.data,
layout:1,useMediumText:function(){var E,J;return((E=l.lockupStyle())==null?void 0:E.typographyBump)||((J=l.lockupStyle())==null?void 0:J.useRichGridLegacyTypography)},
extensions:function(){var E,J;return{lockupMetadata:{byline:{hideAvatar:((E=l.lockupStyle())==null?void 0:E.arrangement)===0,addPadding:((J=l.lockupStyle())==null?void 0:J.arrangement)===1}}}}})}})),_.W(_.Tn,{data:function(){return l.data().attribution}},{attributionViewModel:function(O){return _.W("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.W(cjq,{data:O.data,
useSmallLayout:!0}))}})),_.W("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.W(_.Tn,{data:function(){return l.data().menuButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
buttonOverrides:function(){var E;return((E=l.lockupStyle())==null?0:E.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
PUC.idomCompat=!0;var UX6=_.XO(function(l){var e=_.e4("notification-multi-action-renderer");_.RU(function(){requestAnimationFrame(function(){_.EW(e.value)})});
var O={},E={},J={};return _.W("notification-multi-action-renderer",{class:_.ax("ytNotificationMultiActionRendererHost",(O.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var z;return(z=l.useLegacyShelfStyle)==null?void 0:z.call(l)},O)),
el:e},_.W("span",{"aria-live":"polite",class:_.ax("ytNotificationMultiActionRendererTextContainer",(E.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var z;return(z=l.useLegacyShelfStyle)==null?void 0:z.call(l)},E))},_.W(_.zK,{text:function(){return l.data().responseText}})),_.W("div",{class:_.ax("ytNotificationMultiActionRendererButtonContainer",(J.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var z;
return(z=l.useLegacyShelfStyle)==null?void 0:z.call(l)},J))},_.W(_.Tn,{data:function(){var z;
return(z=l.data().buttons)==null?void 0:z.map(function(M){if(M=M.buttonRenderer){var Z,u=Object,d=u.assign,g=(Z=M.icon)==null?void 0:Z.iconType;Z=(Z=M.command||M.serviceEndpoint||M.navigationEndpoint)?{innertubeCommand:Z}:void 0;M={buttonViewModel:d.call(u,{},{iconName:g,onTap:Z,trackingParams:M.trackingParams,titleFormatted:M.text?_.Ut(M.text):void 0},TB2(M))}}else M=void 0;return M}).filter(function(M){return!!M})}},{buttonViewModel:function(z,M){return _.W("div",null,_.W(_.hM,{data:z.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var Z;return((Z=l.useModernStyles)==null?0:Z.call(l))?{type:M()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var YJS=_.XO(function(l){var e=_.e4("notification-text-renderer");_.RU(function(){requestAnimationFrame(function(){_.EW(e.value)})});
return _.W("notification-text-renderer",{el:e,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.W(_.zK,{text:function(){return l.data().successResponseText}}))},"Ma");_.hrq=_.XO(function(l){var e=_.kD(y9L,function(){var E;return sSp((E=l.contentId)==null?void 0:E.call(l))}),O=function(){var E;
return _.I((E=e())==null?void 0:E.command,_.Kp)};
return _.W(_.A,{cond:function(){var E;if(!(E=O())){var J;E=_.I((J=e())==null?void 0:J.command,dJ0)}return E},
then:function(){return _.W(_.A,{cond:O,then:function(){var E={};return _.W("div",{class:_.ax("ytDismissibleItemReplacedContent",function(){var J;return GFd((J=l.aspectRatio)==null?void 0:J.call(l))})},_.W("div",{class:_.ax((E.ytDismissibleItemAspectRatioContainer=function(){var J;
return((J=l.aspectRatio)==null?void 0:J.call(l))!==void 0},E))},_.W(_.Tn,{data:function(){var J;
return(J=O())==null?void 0:J.item}},{notificationMultiActionRenderer:function(J){return _.W(UX6,{data:J.data,
useModernStyles:l.useModernStyle,useLegacyShelfStyle:l.useLegacyShelfStyle})},
notificationTextRenderer:YJS})))}})},
else:l.children})},"Na");_.Lj0=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;l=_.O0("ad-avatar-view-model");var E=function(){var z;return((z=e().interaction)==null?0:z.onTap)?function(M){var Z;rj8(M,(Z=e().interaction)==null?void 0:Z.onTap,O)}:void 0},J=function(){var z,M=e(),Z=E(),u=(z=_.I(e().rendererContext,_.yu))==null?void 0:z.label;
a:switch(M.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":z=1;break a;default:z=0}return{size:UPx(M.size),type:z,onTap:Z,accessibilityText:u}};
_.VR(l,{visibilityCallback:function(z){var M,Z=(M=e().interaction)==null?void 0:M.onFirstVisible;z&&Z&&_.r6(Z)},
showOption:_.lo});return _.W("ad-avatar-view-model",{class:function(){var z;return((z=e().interaction)==null?0:z.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:l},_.W(_.A,{cond:function(){return e().image},
then:function(z){return _.W(yEq,{data:J,image:z})}}))},"Oa");_.Zi=_.XO(function(l){l=_.J3(l,{hasDot:!1});var e=Object.assign({},l),O=l.data,E=l.hasDot;l=l.customCommandResolver;var J=(delete e.data,delete e.hasDot,delete e.customCommandResolver,e);e=function(){return O().style};
e!==void 0&&e!==null||_.Nz(Error("Eh"));e=_.e4("ad-badge-view-model");_.O6(e,function(){return O().interaction},l);
return _.W("ad-badge-view-model",{class:_.ax(function(){var z;return((z=O().interaction)==null?0:z.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var z=J.adRenderingContextType();
O();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:e},_.W(_.Je,{data:function(){var z;O();return{type:2,text:(z=O().label)==null?void 0:z.content,adsIncludeDot:E(),isOverlay:O().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var tX0;_.uo=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;var E=l.adRenderingContextType;l=_.e4("ad-details-line-view-model");_.O6(l,function(){return e().interaction},O);
_.VR(l,{visibilityCallback:function(J){var z,M=(z=e().interaction)==null?void 0:z.onFirstVisible;J&&M&&_.r6(M)},
showOption:_.lo});return _.W("ad-details-line-view-model",{class:function(){var J;return((J=e().interaction)==null?0:J.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:l},_.W(_.A,{cond:function(){return e().style},
then:function(J){return _.W(_.KH,{each:function(){var z;return((z=e())==null?void 0:z.attributes)||[]},
keyBy:"INDEX"},function(z){return _.W(tX0,{attribute:z,style:J,adRenderingContextType:function(){return E()}})})}}))},"Qa");
tX0=_.XO(function(l){var e=l.attribute;var O=l.style;var E=l.adRenderingContextType;return _.W(_.A,{cond:function(){return e().text},
then:function(J){return _.W(_.zK,{text:J,className:function(){var z=E();O();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var qJq=_.XO(function(l){var e=l.data;var O=l.typographyBump;var E=function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
l={};return _.W(_.ZB,null,_.W("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.W(_.zK,{text:function(){return e().headline},
className:_.ax("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(l.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return E==null?void 0:E()},l.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(O==null?void 0:O())&&!(E==null?0:E())},l)),
linkInheritColor:!0}),_.W(_.A,{cond:function(){return e().description},
then:function(J){var z={};return _.W(_.zK,{text:J,className:_.ax("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return E==null?void 0:E()},z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(O==null?void 0:O())&&!(E==null?0:E())},z)),
linkInheritColor:!0})}}),_.W(_.A,{cond:function(){return e().secondaryDescription},
then:function(J){var z={};return _.W(_.zK,{text:J,className:_.ax("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return O==null?void 0:O()},z)),
linkInheritColor:!0})}}),_.W("div",{class:function(){return E()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.W(_.A,{cond:function(){return e().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.W(_.Tn,{data:function(){return e().adAvatar}},{adAvatarViewModel:_.Lj0}))}}),_.W(_.Tn,{data:function(){return e().adBadge}},{adBadgeViewModel:function(J){return _.W(_.Zi,{data:J.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.W(_.Tn,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.W(_.uo,{data:J.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}}))),_.W("div",{class:function(){return E()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.W(_.Tn,{data:function(){return e().menu}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
buttonOverrides:function(){a:switch(e().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var z="S";break a;default:z="M"}return{size:z}}})}})))},"Sa"),v9q=_.XO(function(l){var e=l.data;
var O=l.noBottomMargin;var E=l.useVideoLockupTopPadding;var J=l.typographyBump;l={};l=_.ax("ytwFeedAdMetadataViewModelHostMetadata",(l.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return O==null?void 0:O()},l.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return E==null?void 0:E()},l));
var z=function(){return e().adBadge};
z!==void 0&&z!==null||_.Nz(Error("Fh"));z={};var M={};return _.W(_.ZB,null,_.W(_.A,{cond:function(){return e().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.W(_.Tn,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(Z){return _.W(_.Lj0,{data:Z.data})}}))}}),_.W("div",{class:l},_.W("div",{class:_.ax("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return J==null?void 0:J()},z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(J==
null?void 0:J())&&_.a("web_enable_typography_bump_v2")},z))},_.W(_.zK,{text:function(){return e().headline},
linkInheritColor:!0})),_.W(_.A,{cond:function(){return e().description},
then:function(Z){return _.W(_.zK,{text:Z,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.W("div",{class:function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.a("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.W(_.Tn,{data:function(){return e().adBadge}},
{adBadgeViewModel:function(Z){return _.W(_.Zi,{data:Z.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.W(_.Tn,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(Z){return _.W(_.uo,{data:Z.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}})),_.W(_.A,{cond:function(){return e().secondaryDescription},
then:function(Z){return _.W(_.zK,{text:Z,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.W("div",{class:_.ax("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return E==null?void 0:E()},M))},_.W(_.Tn,{data:function(){return e().menu}},{buttonViewModel:_.hM})))},"Ta"),NjR=_.XO(function(l){var e=l.data;
var O=l.noBottomMargin;var E=l.listenToTapEvent;var J=l.setTouchEndHandler;var z=l.useVideoLockupTopPadding;var M=l.typographyBump;var Z=_.e4("feed-ad-metadata-view-model");_.O6(Z,function(){return e().interaction},void 0,function(){return E==null?void 0:E()});
l=_.b(_.AF(!1,void 0,"qjt0Xc"));var u=l.next().value,d=l.next().value;l=_.pd(function(){(J==null?0:J())&&!u()&&(Z.value.click(),d(!0),setTimeout(function(){d(!1)},100));
return!1});
_.VR(Z,{visibilityCallback:function(g){var w,n=(w=e().interaction)==null?void 0:w.onFirstVisible;g&&n&&_.r6(n)},
showOption:_.lo});return _.W("feed-ad-metadata-view-model",{class:function(){var g;return((g=e().interaction)==null?0:g.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:Z,"on:touchend":l},_.W(_.cK,null,_.W(_.jD,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.W(qJq,{data:e,
typographyBump:M})}),_.W(_.jD,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.W(v9q,{data:e,
noBottomMargin:O,useVideoLockupTopPadding:z,typographyBump:M})})))},"Ua");var rjH;_.Cw=_.XO(function(l){return _.W("yt-lockup-view-model",{class:_.ax(l.className)},_.W(_.hrq,{contentId:function(){return l.data().contentId},
useModernStyle:!0,aspectRatio:function(){var e,O;return((e=l.containerType)==null?void 0:e.call(l))!==3?uAL(l.data().contentType,(O=l.force16By9ThumbnailAspectRatio)==null?void 0:O.call(l)):void 0}},function(){return _.W(rjH,Object.assign({},l))}))},"Va");
rjH=_.XO(function(l){l=_.J3(l,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var e=l.data,O=l.containerLayoutConfig,E=l.containerType,J=l.sizing,z=l.protectBackground,M=l.typographyBump,Z=l.force16By9ThumbnailAspectRatio,u=l.thumbnailFixedWidth,d=l.thumbnailTargetWidth,g=l.lockupExperiments,w=l.elementsPerRow;
l=_.e4("div");_.xD(l,function(){var cx;return(cx=e())==null?void 0:cx.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 n=_.Ld(hrV),k=_.V2().resolve(_.MG(Zt6)),y=k?{}:void 0,c=function(){var cx,tq,Px;return(Px=(tq=_.I((cx=e())==null?void 0:cx.rendererContext,_.yu))==null?void 0:tq.label)!=null?Px:void 0},f=function(){var cx=O==null?void 0:O(),tq;
if(cx==null?0:cx.containerType){var Px=(tq=e())==null?void 0:tq.contentType;tq=g();var S0=M(),QH=d(),pR=z();cx=Object.assign({},C7t(MI2(cx),zYq(cx.responsiveSize),S0,Px,cx.force16By9ThumbnailAspectRatio,QH,pR,tq),{thumbnailFixedWidth:cx.contentPreviewWidth})}else cx=C7t(E(),J(),M(),(Px=e())==null?void 0:Px.contentType,Z(),d(),z(),g());return cx};
k&&y&&k({enabled:function(){return n()},
itemPlaybackModel:function(){return e().itemPlayback},
thumbnailElRef:function(){return y.thumbnailElRef},
containerElRef:l,options:function(){var cx,tq=(cx=_.I(e().metadata,zfC))==null?void 0:cx.endorsement;cx=y.thumbnailOverlays||[];tq&&cx.push(tq);var Px,S0;return{thumbnail:y.thumbnail,thumbnailOverlays:cx,accessibilityText:c(),thumbnailSize:y.thumbnailSize,enableRounding:f().isCollection,containPlayerWithinThumbnail:f().isCollection,trackingParams:(Px=_.I(e().rendererContext,_.p4))==null?void 0:(S0=Px.loggingDirectives)==null?void 0:S0.trackingParams}}});
var P=0;k=_.b(_.AF(!1,void 0,"BKBkhb"));var h=k.next().value,N=k.next().value;k=_.b(_.AF(!1,void 0,"GK0mq"));var t=k.next().value,r=k.next().value;k=_.pd(function(){var cx=n()&&e().itemPlayback;t()?(_.UD.cancelJob(P),P=_.UD.addJob(function(){N(!cx)},8,32)):N(!cx);
return!0});
var D=_.pd(function(){P&&(_.UD.cancelJob(P),P=0);N(!1)});
_.B3(function(){P&&(_.UD.cancelJob(P),P=0)});
var b2=P7p(function(){r(!0)}),$V=b2.touchFeedbackEvents,gT=b2.touchFeedbackOnPointerUp,mx=b2.touchFeedbackOnPointerDown;
b2=b2.touchFeedbackOnPointerLeave;var jM={};return _.W("div",{el:l,class:_.ax("yt-lockup-view-model-wiz",function(){a:{var cx=f();if(cx.isOverlay)cx="yt-lockup-view-model-wiz--overlay";else switch(cx.arrangement){case 1:cx="yt-lockup-view-model-wiz--horizontal";break a;default:cx="yt-lockup-view-model-wiz--vertical"}}return cx},function(){a:{var cx=f();
if(cx.isOverlay)cx="yt-lockup-view-model-wiz--overlay";else{switch(cx.collectionStackNumber){case 1:cx="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:cx="yt-lockup-view-model-wiz--collection-stack-2";break a}cx=void 0}}return cx},(jM["yt-lockup-view-model-wiz--card"]=function(){return f().isCard},jM["yt-lockup-view-model-wiz--compact"]=function(){return f().isTiny||f().sizing!=="STANDARD"},jM["yt-lockup-view-model-wiz--protect-background"]=z,jM["yt-lockup-view-model-wiz--add-margins"]=
function(){return f().addMarginForFullbleed},jM["yt-lockup-view-model-wiz--centered"]=function(){return f().isCentered},jM["yt-lockup-view-model-wiz--fullbleed"]=function(){return f().fullbleed},jM["yt-lockup-view-model-wiz--single-column-grid"]=function(){return w()===1&&E()===2},jM["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var cx;
return(cx=g())==null?void 0:cx.useRichGridLegacyMargin},jM)),
"on:mousedown":mx,"on:mouseleave":D,"on:mouseup":gT,"on:mouseover":k,"on:touchstart":mx,"on:touchend":gT,"on:pointerleave":b2},_.W(_.$8,{command:function(){var cx;return _.Sp((cx=e())==null?void 0:cx.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return u()&&f().arrangement===1?"width: "+u():""}},_.W(_.Tn,{data:function(){var cx;
return(cx=e())==null?void 0:cx.contentImage}},{thumbnailViewModel:function(cx){return _.W(_.xR,{data:cx.data,
aspectRatio:function(){return f().aspectRatio},
disableRounding:function(){return f().disableRounding},
width:d,hovered:h,isClip:function(){var tq;return((tq=e())==null?void 0:tq.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:UXx(y),lockupExperiments:function(){return g()}})},
collectionThumbnailViewModel:function(cx){return _.W(av6,{data:cx.data,aspectRatio:function(){return f().aspectRatio},
disableRounding:function(){return f().disableRounding},
width:d,doubleStack:function(){return f().collectionStackNumber===2},
hovered:h,playbackRef:UXx(y)})},
decoratedAvatarViewModel:_.cp})),_.W("div",{class:"yt-lockup-view-model-wiz__metadata"},_.W(_.Tn,{data:function(){var cx;return(cx=e())==null?void 0:cx.metadata}},{lockupMetadataViewModel:function(cx){return _.W(PUC,{data:cx.data,
lockupStyle:f,lockupCommand:function(){var tq;return _.Sp((tq=e())==null?void 0:tq.rendererContext)},
lockupAccessibilityLabel:function(){return c()}})},
feedAdMetadataViewModel:function(cx){return _.W(NjR,{data:cx.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:M})}}),_.W(_.Tn,{data:function(){var cx;
return(cx=e())==null?void 0:cx.attachmentSlot}},{lockupAttachmentsViewModel:function(cx){return _.W(p_1,{data:cx.data,
lockupStyle:f})}})),_.W(_.Rx,{model:function(){a:{switch(f().collectionStackNumber){case 1:var cx=8;
break a;case 2:cx=12;break a}cx=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:cx}},
pointerDownEvent:$V.pointerDownEvent,pointerUpEvent:$V.pointerUpEvent,pointerLeaveEvent:$V.pointerLeaveEvent}))},"Wa");
_.Cw.idomCompat=!0;_.Zw(_.Cw,"yt-lockup-view-model",{props:{data:_.lB,containerLayoutConfig:_.lB,containerType:_.lB,sizing:_.lB,protectBackground:_.lB,typographyBump:_.lB,thumbnailFixedWidth:_.lB,thumbnailTargetWidth:_.lB,force16By9ThumbnailAspectRatio:_.lB,className:_.lB,lockupExperiments:_.lB,elementsPerRow:_.lB}});var q4T;_.Z8(QS2);var DXq=_.yh(QS2,{callbacks:{onExpandClick:!0}});var JVp=_.jp({buttonViewModel:_.hM}),SJ6=_.yh(Oyx);_.Z8(Oyx);_.Z8(lzg);_.Z8(eXx);_.Zw(SJ6,"yt-video-attribute-view-model",{props:{data:_.lB,className:_.lB}});var oW=function(){var l=_.B.apply(this,arguments)||this;l.useHighlightStyling=_.a("web_enable_deeper_metadata_highlight_styling");l.isSearch=!1;l.JSC$13088_lastScrollContainerWidth=NaN;l.pageLoadingFromNavigation=!1;l.currentIndex=0;l.supportComponentResize=!1;return l};
_.m(oW,_.B);_.X=oW.prototype;
_.X.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}}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.id(this,this.onPageChange))};
_.X.detached=function(){document.removeEventListener("yt-page-type-changed",_.id(this,this.onPageChange))};
_.X.getItemsPath=function(){return"data.cards"};
_.X.onIronResize=function(){this.updateListStyles()};
_.X.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var l;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(l=this.data)==null?void 0:l.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.a("problem_walkthrough_sd")&&!!this.centerItems};
_.X.computeCardListStyle=function(l){return l||null};
_.X.computeEmpty=function(l){return!this.get("cards.length",l)};
_.X.computeThumbnailStyle=function(l){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",l)||null};
_.X.computeHasSubtitle=function(l){return!!this.get("header.richListHeaderRenderer.subtitle",l)};
_.X.computeInitialCountNumber=function(l){return this.hasSquareMiniApp&&l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.X.computeUseFloorScrolling=function(l){return l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.X.computeHasGameCard=function(l){return(l=this.get("cards",l))?l.some(function(e){return e.gameCardRenderer}):!1};
_.X.computeCenterHeaderTitle=function(l){return!(l==null||!l.centerHeaderTitle)};
_.X.computeHasPortraitMiniApp=function(l){return(l=l==null?void 0:l.cards)?l.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.X.computeHasSquareMiniApp=function(l){return(l=l==null?void 0:l.cards)?l.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.X.computeHasSkinnyWidthPortraitMiniApp=function(l){return(l=l==null?void 0:l.cards)?l.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.width===135}):!1};
_.X.computeCenterItems=function(l){return!!l};
_.X.computeHasInfoPanel=function(l){var e;return l==null?void 0:(e=l.cards)==null?void 0:e.some(function(O){return O.infoPanelContentRenderer})};
_.X.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.X.getItemByIndex=function(l){var e=this.items.children;return e&&e.length>l?e[l]:void 0};
_.X.onPageChange=function(){var l=this;this.pageLoadingFromNavigation=!0;_.UD.addJob(function(){l.pageLoadingFromNavigation=!1;_.dQ(l.hostElement,"yt-terminate-video-preview-action")},8)};
_.X.updateListStyles=function(){if(_.a("problem_walkthrough_sd")&&this.JSC$13088_scrollContainer!==void 0){var l=this.JSC$13088_scrollContainer.clientWidth;l!==this.JSC$13088_lastScrollContainerWidth&&(this.JSC$13088_lastScrollContainerWidth=l,_.dP(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(l*.8,415)+"px"}),_.$u(this.hostElement,"iron-resize"))}};
_.Ji.Object.defineProperties(oW.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.a("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!((l=this.data)==null?0:(e=l.cards)==null?0:(O=e[0])==null?0:O.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!((l=this.data)==null?0:(e=l.cards)==null?0:(O=e[0])==null?0:O.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return _.a("enable_desktop_amsterdam_info_panels")&&!!((l=this.data)==null?0:(e=l.cards)==null?0:(O=e[0])==null?0:O.infoPanelContentRenderer)}}});
oW.prototype.dataChanged=oW.prototype.dataChanged;oW.prototype.onIronResize=oW.prototype.onIronResize;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],oW.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.K(_.B8),_.q("design:type",Object)],oW.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],oW.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],oW.prototype,"useCustomColors",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],oW.prototype,"useHighlightStyling",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.q("design:type",Object)],oW.prototype,"cardListStyle",void 0);_.L([_.T({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.q("design:type",Boolean)],oW.prototype,"empty",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.q("design:type",Boolean)],oW.prototype,"hasSubtitle",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.q("design:type",Boolean)],oW.prototype,"thumbnailStyle",void 0);_.L([_.T({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.q("design:type",Boolean)],oW.prototype,"hasGameCard",void 0);_.L([_.T({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.q("design:type",Boolean)],oW.prototype,"centerHeaderTitle",void 0);
_.L([_.T({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.q("design:type",Boolean)],oW.prototype,"hasPortraitMiniApp",void 0);_.L([_.T({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.q("design:type",Boolean)],oW.prototype,"hasSquareMiniApp",void 0);_.L([_.T({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.q("design:type",Boolean)],oW.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.L([_.T({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.q("design:type",Boolean)],oW.prototype,"hasInfoPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],oW.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],oW.prototype,"inlineStructuredDescription",void 0);_.L([_.aB("#scroll-container"),_.q("design:type",HTMLDivElement)],oW.prototype,"JSC$13088_scrollContainer",void 0);
_.L([_.T({computed:"computeInitialCountNumber(data.style.type)"}),_.q("design:type",Number)],oW.prototype,"initialCount",void 0);_.L([_.T({computed:"computeUseFloorScrolling(data.style.type)"}),_.q("design:type",Boolean)],oW.prototype,"useFloorScrolling",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.q("design:type",Boolean)],oW.prototype,"centerItems",void 0);_.L([_.T(),_.q("design:type",Object)],oW.prototype,"pageLoadingFromNavigation",void 0);
_.L([_.T(),_.q("design:type",Object)],oW.prototype,"currentIndex",void 0);_.L([_.T(),_.q("design:type",Number)],oW.prototype,"scrollCount",void 0);_.L([_.T(),_.q("design:type",Object)],oW.prototype,"supportComponentResize",void 0);_.L([_.aB("#items"),_.q("design:type",HTMLDivElement)],oW.prototype,"items",void 0);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oW.prototype,"onIronResize",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oW.prototype,"dataChanged",null);_.L([_.T({reflectToAttribute:!0}),_.R("inlineStructuredDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oW.prototype,"hideNavigationButton",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oW.prototype,"modernChapters",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oW.prototype,"hasVideoAttributeViewModels",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],oW.prototype,"modernInfoPanels",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],oW);
_.Y(oW,"ytd-horizontal-card-list-renderer",function(){if(twF!==void 0)return twF;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return twF=l},{mode:_.Wf("kevlar_poly_si_batch_j072")?1:2});var Qhx=_.XO(function(l){var e=l.data;var O={};return _.W("video-summary-content-view-model",{class:_.ax("video-summary-content-view-model-wiz",l.className,(O["video-summary-content-view-model-wiz--is-search"]=l.isSearch,O))},_.W(_.KH,{each:function(){var E=[],J=e().paragraphs;if(J==null||!J.length)return[];for(var z=0;z<J.length;z++){var M=_.I(J[z],uBC),Z=void 0;z>0&&(Z=_.I(J[z-1],uBC));Z&&!!Z.marker===!!M.marker?E[E.length-1].paragraphs.push(M):E.push({isList:!!M.marker,paragraphs:[M]})}return E},
keyBy:"INDEX"},function(E){return _.W(_.A,{cond:function(){return E().isList},
then:function(){return _.W("ul",{class:"video-summary-content-view-model-wiz__list"},_.W(_.KH,{each:function(){return E().paragraphs},
keyBy:"INDEX"},function(J){return _.W("li",{class:"video-summary-content-view-model-wiz__list-item"},_.W(_.zK,{text:function(){return J().text}}))}))},
else:function(){return _.W(_.KH,{each:function(){return E().paragraphs},
keyBy:"INDEX"},function(J){return _.W("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.W(_.zK,{text:function(){return J().text}}))})}})}),_.W(_.A,{cond:function(){return!!_.I(e().likeButtonViewModel,_.Bi)&&!!_.I(e().dislikeButtonViewModel,_.Pi)},
then:function(){return _.W("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.W("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.W(_.TB,{data:function(){return _.I(e().likeButtonViewModel,_.Bi)},
disableIconAnimation:!0})),_.W(_.FK,{data:function(){return _.I(e().dislikeButtonViewModel,_.Pi)}}))}}))},"Xa");
Qhx.idomCompat=!0;_.Zw(Qhx,"video-summary-content-view-model",{props:{data:_.lB,isSearch:_.lB,className:_.lB}});var $_=function(){var l=_.B.apply(this,arguments)||this;var e,O;l.isExpanded=(O=(e=l.data)==null?void 0:e.isExpanded)!=null?O:!1;l.disableExpand=!1;l.showProminentLabel=!1;l.showRightSideLabel=!0;l.toggleExpandableContent=function(E){l.disableExpand||(E.stopPropagation(),_.JM(_.ey(E),l.hostElement,["info","expanded-subtitle"])||(l.isExpanded=!l.isExpanded,l.ytRendererBehavior.logExplicitClick(l.data),l.JSC$13099_cardList&&!_.a("expandable_metadata_a11y_fix_ks")&&_.OK(l,function(){_.OW(l.hostElement)})))};
l.useSquareThumbnail=!1;l.startX=0;return l};
_.m($_,_.B);_.X=$_.prototype;_.X.computeUseSquareThumbnail=function(){var l;return(l=this.data)==null?void 0:l.useSquareThumbnail};
_.X.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"}}}}};
_.X.dataChanged=function(){if(this.data){var l,e;this.isExpanded=(e=(l=this.data)==null?void 0:l.isExpanded)!=null?e:!1;var O,E,J,z;if(l=this.isDarkTheme()?(O=this.data)==null?void 0:(E=O.colorData)==null?void 0:E.darkColorPalette:(J=this.data)==null?void 0:(z=J.colorData)==null?void 0:z.lightColorPalette){var M,Z;if((M=this.data)==null?0:(Z=M.colorData)==null?0:Z.vibrantColorPalette)l.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.PF(this.hostElement,l)}}};
_.X.isExpandedChanged=function(){this.isExpanded&&this.JSC$13099_cardList&&_.$u(this.JSC$13099_cardList,"iron-resize")};
_.X.computeIsExpanded=function(l){return!!l.isExpanded};
_.X.computeShowProminentLabel=function(l,e){var O;return!!(l==null?0:(O=l.header)==null?0:O.showLeadingCollapsedLabel)&&!e};
_.X.computeShowRightSideLabel=function(l,e){var O;return!(l==null?0:(O=l.header)==null?0:O.showLeadingCollapsedLabel)&&!e};
_.X.captureContentClick=function(l){if(!this.disableExpand)if(_.a("expandable_metadata_fix_killswitch")){var e=l.target;_.M0S(e,"ytd-macro-markers-list-item-renderer")||l.stopPropagation();(e==null?void 0:e.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.JM(_.ey(l),this.hostElement,["items"])||_.Eh(_.ey(l),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.X.timestampClick=function(l){l.stopPropagation();var e,O;(l=(e=this.data)==null?void 0:(O=e.header)==null?void 0:O.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(l)};
_.X.onDown=function(l){l.stopPropagation();this.startX=l.detail?l.detail.x:0};
_.X.onUp=function(l){this.skipKeyInteraction(l)&&l.stopPropagation()};
_.X.skipKeyInteraction=function(l){var e=l.target;if((e==null?void 0:e.id)==="scroll-container"||(e==null?void 0:e.id)==="items"||l.detail&&l.detail.x!==this.startX)return!0;l=_.ey(l);l=_.b(l);for(e=l.next();!e.done;e=l.next()){e=e.value;if(e===this.hostElement)break;if(e.hasAttribute&&e.hasAttribute("skip-key-interaction"))return!0}return!1};
_.X.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Ji.Object.defineProperties($_.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.I((l=this.data)==null?void 0:l.expandedContent,Zni)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.I((l=this.data)==null?void 0:l.expandedContent,_.bpF)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.useCustomColors)&&!((e=this.data)==null||!e.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!((l=this.data)==null?0:(e=l.header)==null?0:e.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!((l=this.data)==null?0:(e=l.header)==null?0:e.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!((l=this.data)==null?0:(e=l.header)==null?0:e.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
$_.prototype.onUp=$_.prototype.onUp;$_.prototype.onDown=$_.prototype.onDown;$_.prototype.isExpandedChanged=$_.prototype.isExpandedChanged;$_.prototype.dataChanged=$_.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$_.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$_.prototype,"isExpanded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$_.prototype,"disableExpand",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],$_.prototype,"isSearch",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],$_.prototype,"isWatch",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.q("design:type",Object)],$_.prototype,"showProminentLabel",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.q("design:type",Object)],$_.prototype,"showRightSideLabel",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"hasVideoSummary",null);_.L([_.T({value:!1,reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"hasLockupViewModel",null);_.L([_.T({reflectToAttribute:!0}),_.R("data","isWatch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"useCustomColors",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"showInfoButton",null);_.L([_.R("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"showTimestamp",null);_.L([_.R("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"showExpandedSubtitle",null);
_.L([_.R("data","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$_.prototype,"showThumbnail",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],$_.prototype,"useVppShoppingDestinationStyle",null);_.L([_.T(),_.q("design:type",Object)],$_.prototype,"toggleExpandableContent",void 0);_.L([_.aB("ytd-horizontal-card-list-renderer"),_.q("design:type",Object)],$_.prototype,"JSC$13099_cardList",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.q("design:type",Object)],$_.prototype,"useSquareThumbnail",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$_.prototype,"dataChanged",null);_.L([_.AA("isExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$_.prototype,"isExpandedChanged",null);
_.L([_.wP("down"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$_.prototype,"onDown",null);_.L([_.wP("up"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$_.prototype,"onUp",null);_.L([_.U({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],$_);
_.Y($_,"ytd-expandable-metadata-renderer",function(){if(e8x!==void 0)return e8x;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return e8x=l},{mode:1});var xXq,lQk=function(){if(xXq!==void 0)return xXq;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return xXq=l};_.Zw(_.Ff,"yt-avatar-stack-view-model",{props:{className:_.lB,data:_.lB,overrides:_.lB,isOverlay:_.lB,useMediumText:_.lB,decorations:_.lB,hideAvatar:_.lB}});_.Y7("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Wd=function(){var l=_.B.apply(this,arguments)||this;l.disableExpand=!1;l.shouldShowChannelInfo=!1;l.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return l};
_.m(Wd,_.B);_.X=Wd.prototype;_.X.computeUseSearchUi=function(){var l,e;return this.isSearch||((l=this.data)==null?void 0:(e=l.style)==null?void 0:e.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.X.computeUseThreeLineTitle=function(){var l;return((l=this.data)==null?void 0:l.maxTitleLines)===3};
_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.a("polymer_video_renderer_defer_menu")&&!rd1?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"}}}};
_.X.attached=function(){_.oB(this.hostElement,"blue-links",_.a("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.$T(_.ud(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var l=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;l&&((e=_.I(l.commandMetadata,_.fp))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(l);this.updateInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13104_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:this.JSC$13104_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$13104_inlinePreviewHoverListener)==null||CN(l)};
_.X.onTextWrapperClick=function(l){var e,O,E=this.hideTranslation?(e=this.data)==null?void 0:e.untranslatedNavigationEndpoint:(O=this.data)==null?void 0:O.navigationEndpoint;e=_.JM(_.ey(l),this.hostElement,["expandable-metadata"]);!E||e&&!_.a("expandable_metadata_fix_killswitch")||_.Eh(_.ey(l),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.$u(this.hostElement,"yt-navigate",{endpoint:E})};
_.X.computeThumbnailWidth=function(l,e,O,E,J){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:E?J==="MASSIVE"?600:J==="BIG"?500:J==="MEDIUM"?450:420:O?360:e?128:l?210:246};
_.X.computeUseBiggerThumbs=function(l){return l&&_.a("enable_desktop_search_bigger_thumbs")};
_.X.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.X.computeVideoStyle=function(){if(_.a("enable_video_style")){var l,e;return(l=this.data)==null?void 0:(e=l.style)==null?void 0:e.value}};
_.X.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.X.handleHideItemSectionVideosByIdCommand=function(l){var e;l=(e=_.I(l,Fhi))==null?void 0:e.videoId;this.data&&this.data.videoId===l&&(this.isHidden=!0)};
_.X.getMetadataSnippetContainerClass=function(l){return l?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.X.computeTitleText=function(l,e,O){return l?O:e};
_.X.computeDescriptionSnippet=function(l,e,O){return l?O:e};
_.X.computeSnippetText=function(l,e,O){return l?O:e};
_.X.computeNavigationEndpoint=function(l,e){return l?e==null?void 0:e.untranslatedNavigationEndpoint:e==null?void 0:e.navigationEndpoint};
_.X.hideInlineTitleIcon=function(l,e){return l||!e};
_.Ji.Object.defineProperties(Wd.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 l;return(l=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?l:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!(this==null?0:(l=this.data)==null?0:(e=l.channelThumbnailSupportedRenderers)==null?0:(O=e.channelThumbnailWithLinkRenderer)==null?0:O.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.I((l=this.data)==null?void 0:l.avatar,MKH)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$13104_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Ji.Object.defineProperties(Wd,{template:{configurable:!0,enumerable:!0,get:function(){return lQk()}}});
Wd.prototype.dataChanged=Wd.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Wd.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Wd.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.qO),_.q("design:type",Object)],Wd.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Wd.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Wd.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Wd.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Wd.prototype,"isBackstageVideo",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Wd.prototype,"isPostCompactVideo",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Wd.prototype,"isHistory",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Wd.prototype,"isRichGridVideoPost",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Wd.prototype,"isHidden",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Wd.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.q("design:type",Boolean)],Wd.prototype,"useSearchUi",void 0);_.L([_.T({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.q("design:type",Boolean)],Wd.prototype,"useThreeLineTitle",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.q("design:type",Boolean)],Wd.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.q("design:type",Object)],Wd.prototype,"videoStyle",void 0);_.L([_.T({computed:"computeDisableExpand(videoStyle)"}),_.q("design:type",Object)],Wd.prototype,"disableExpand",void 0);
_.L([_.T({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.q("design:type",Object)],Wd.prototype,"shouldShowChannelInfo",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],Wd.prototype,"biggerThumbsStyle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.q("design:type",String)],Wd.prototype,"inlineTitleIcon",void 0);_.L([_.T({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.q("design:type",Object)],Wd.prototype,"computedNavigationEndpoint",void 0);_.L([_.T({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(l,e){return _.wV(l.entities,"searchVideoResultEntity",e)}}),
_.q("design:type",Object)],Wd.prototype,"searchVideoResultEntity",void 0);_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],Wd.prototype,"thumbnail",void 0);_.L([_.aB("#dismissible"),_.q("design:type",HTMLElement)],Wd.prototype,"JSC$13104_dismissibleMedia",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wd.prototype,"dataChanged",null);
_.L([_.R("searchVideoResultEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wd.prototype,"hideTranslation",null);_.L([_.R("searchVideoResultEntity"),_.q("design:type",Array),_.q("design:paramtypes",[])],Wd.prototype,"hiddenBadgeGroups",null);_.L([_.R("data","useAvatar"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wd.prototype,"shouldShowChannelThumbnail",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wd.prototype,"useAvatar",null);
_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wd.prototype,"isHovered",null);_.L([_.U({is:"ytd-video-renderer",disableElementRegistration:!0})],Wd);_.Y(Wd,"ytd-video-renderer",function(){return lQk()},{mode:_.Wf("kevlar_poly_si_batch_j047")?1:2});var dZ=function(){var l=_.B.apply(this,arguments)||this;l.editDialog=null;l.roundedContainer=!0;l.isLoading=!1;l.isRichGrid=!1;l.isRichGridRepost=!1;l.reduceSidePaddings=_.a("reduce_side_paddings_in_shelf");l.JSC$13111_spinnerEl=null;return l};
_.m(dZ,_.B);_.X=dZ.prototype;
_.X.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"}}}};
_.X.contentTextChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){var l=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var e=0,O=this.data.actions&&this.data.actions.length;e<O;e++)this.openEditDialog(_.I(this.data.actions[e],EhF));if((e=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(e=this.get("buttonRenderer.hint.hintRenderer.hintId",e))&&e.startsWith("share-post-hint")){var E=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(E){_.XJ.getInstance();var J=zl(_.xp(_.ml("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.UD.addLowPriorityJob(function(){_.wQ(l.hostElement,J,E)})}}}};
_.X.updatePoll=function(l){l>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.X.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13111_spinnerEl||(this.JSC$13111_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ud(this.hostElement).appendChild(this.JSC$13111_spinnerEl));this.JSC$13111_spinnerEl&&(this.JSC$13111_spinnerEl.active=this.isLoading)};
_.X.onYtNavigate=function(l){var e=this.get("updateCommentDialogEndpoint",l.detail.endpoint);e&&(this.openEditDialog(e),l.stopPropagation())};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.onYtCommentPollRevert=function(l,e){e&&this.updatePoll(e.selectedChoiceIndex)};
_.X.onYtServiceRequestSent=function(l,e){var O;e.endpoint&&(_.I(e.endpoint,AH1)||_.I(e.endpoint,wXF)&&((O=_.I(e.endpoint,wXF))==null||!O.clientActions))&&(this.isLoading=!0);if(e.actions)for(l=0;l<e.actions.length;l++)O=e.actions[l],_.I(O,cC)&&(O=this.get("updateBackstagePollAction.selectedChoiceIndex",O),O==void 0&&(O=-1),this.updatePoll(O))};
_.X.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.X.openEditDialog=function(l){l&&l.dialog&&(this.editDialog=l.dialog,l=this.editDialogEl.firstElementChild)&&(l.focus(),l.openDialog&&l.openDialog())};
_.X.computeIsPostHidden=function(l,e){return!!l||e};
_.X.computeSurfaceType=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeUsesCompactLockup=function(l){return l==="BACKSTAGE_SURFACE_TYPE_HOME"||l==="BACKSTAGE_SURFACE_TYPE_SEARCH"||l==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||l==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||l==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||l==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.X.computeShowWithoutToolbar=function(l){return!l.actionButtons&&!l.actionMenu};
_.X.computePostAttachment=function(l){if(l.backstageAttachment){if(_.I(l.backstageAttachment,l3q))return"poll";if(_.I(l.backstageAttachment,G70))return"quiz";if(_.I(l.backstageAttachment,_.Lp))return"video";if(_.I(l.backstageAttachment,B9S))return"uploaded-videos";if(_.I(l.backstageAttachment,cc6))return l.contentText?"image":"image-only";if(_.I(l.backstageAttachment,fKi))return"playlist"}return"none"};
_.X.computePostTabIndex=function(l){return l?0:-1};
_.X.computeButtonTooltipPosition=function(l){return this.computeUsesCompactLockup(l)?"top":"bottom"};
_.X.computeHasText=function(l){return!(l==null||!l.contentText)};
_.X.onTap=function(l){var e,O;if(((e=this.data)==null?0:e.navigationEndpoint)&&((O=this.data)==null?void 0:O.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var E;((E=this.data)==null?0:E.navigationEndpoint)&&!_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Ji.Object.defineProperties(dZ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.voteCount)||_.xp("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.I(this.data.backstageAttachment,l3q))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.I(this.data.backstageAttachment,B9S))}}});
dZ.prototype.onYtServiceRequestCompleted=dZ.prototype.onYtServiceRequestCompleted;dZ.prototype.onYtServiceRequestSent=dZ.prototype.onYtServiceRequestSent;dZ.prototype.onYtCommentPollRevert=dZ.prototype.onYtCommentPollRevert;dZ.prototype.onYtCommentboxDismiss=dZ.prototype.onYtCommentboxDismiss;dZ.prototype.onYtNavigate=dZ.prototype.onYtNavigate;dZ.prototype.isLoadingChanged=dZ.prototype.isLoadingChanged;dZ.prototype.dataChanged=dZ.prototype.dataChanged;dZ.prototype.contentTextChanged=dZ.prototype.contentTextChanged;
_.L([_.K(_.B8),_.q("design:type",Object)],dZ.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dZ.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],dZ.prototype,"editDialog",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dZ.prototype,"roundedContainer",void 0);_.L([_.T(),_.q("design:type",Object)],dZ.prototype,"isLoading",void 0);_.L([_.T({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.q("design:type",String)],dZ.prototype,"surface",void 0);
_.L([_.T({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.q("design:type",Boolean)],dZ.prototype,"usesCompactLockup",void 0);_.L([_.T({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],dZ.prototype,"showWithoutToolbar",void 0);_.L([_.T({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.q("design:type",String)],dZ.prototype,"attachment",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dZ.prototype,"isRichGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dZ.prototype,"isRichGridRepost",void 0);_.L([_.T({reflectToAttribute:!0,value:_.a("use_better_post_dismissals")}),_.q("design:type",Boolean)],dZ.prototype,"useBetterPostDismissals",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dZ.prototype,"reduceSidePaddings",void 0);
_.L([_.T({computed:"computeHasText(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],dZ.prototype,"hasText",void 0);_.L([_.aB("#expander"),_.q("design:type",Object)],dZ.prototype,"expander",void 0);_.L([_.aB("#action-buttons"),_.q("design:type",Object)],dZ.prototype,"actionButtons",void 0);_.L([_.aB("#edit-dialog"),_.q("design:type",HTMLElement)],dZ.prototype,"editDialogEl",void 0);
_.L([_.AA("data.contentText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"contentTextChanged",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"dataChanged",null);_.L([_.AA("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"isLoadingChanged",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],dZ.prototype,"onYtNavigate",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dZ.prototype,"onYtCommentboxDismiss",null);_.L([_.wP("yt-comment-poll-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],dZ.prototype,"onYtCommentPollRevert",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],dZ.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],dZ.prototype,"onYtServiceRequestCompleted",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],dZ.prototype,"voteCount",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],dZ.prototype,"commentCount",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dZ.prototype,"hasPoll",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],dZ.prototype,"hasUploadedVideo",null);_.L([_.U({is:"ytd-post-renderer",disableElementRegistration:!0})],dZ);
_.Y(dZ,"ytd-post-renderer",function(){if(kt0!==void 0)return kt0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kt0=l},{mode:1});var eYi;var OjC;var gZ=function(){return _.B.apply(this,arguments)||this};
_.m(gZ,_.B);gZ.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],gZ.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],gZ.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gZ.prototype,"data",void 0);
_.L([_.T({value:"$.items.children"}),_.q("design:type",String)],gZ.prototype,"itemsPath",void 0);_.L([_.T({value:1}),_.q("design:type",Number)],gZ.prototype,"initialCount",void 0);_.L([_.T(),_.q("design:type",String)],gZ.prototype,"surface",void 0);_.L([_.U({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gZ);
_.Y(gZ,"ytd-post-multi-image-renderer",function(){if(OjC!==void 0)return OjC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return OjC=l},{mode:_.Wf("kevlar_poly_si_batch_j079")?1:2});var ErC={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},io=function(){var l=_.B.apply(this,arguments)||this;l.hasInlineCommentSection=!1;l.editDialog=null;l.isLoading=!1;l.shouldHideAuthor=!1;l.shouldShowVideoTime=!1;
l.isInEngagementPanel=!1;l.hideBorder=!1;l.usesFullLockup=!1;l.shouldShowMenuInCompactView=!1;l.JSC$13127_spinnerEl=null;l.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return l};
_.m(io,_.B);_.X=io.prototype;_.X.configureRendererStamper=function(){return ErC};
_.X.computeIsPollHeaderEnabled=function(l){return(l==null?void 0:l.pollMetadataIcon)!=null};
_.X.getPublishTimeStampString=function(l,e){e=new Date((Number(e)-60*((new Date).getTimezoneOffset()-(new Date(Number(e)*1E3)).getTimezoneOffset()))*1E3);e=(new So(10)).format(e);if(l&&l.runs&&l.runs.length)for(var O=0;O<l.runs.length;O++)l.runs[O].text&&(l.runs[O].text=l.runs[O].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",e));return l};
_.X.created=function(){this.JSC$13127_spinnerEl=null};
_.X.contentTextChanged=function(){this.expander.reset()};
_.X.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var l;if((l=this.data)==null?0:l.actions){l=_.b(this.data.actions);for(var e=l.next();!e.done;e=l.next())this.openEditDialog(_.I(e.value,EhF))}};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){_.ud(this.hostElement).querySelector("#action-buttons").reply()};
_.X.updatePoll=function(l,e){e&&this.set("data.pollMetadataVoteCountText",e);this.hasInlineCommentSection&&(l=l>=0,e=_.ud(this.hostElement).querySelector("#action-buttons"),l?e.reply():e.hideReplyDialog())};
_.X.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13127_spinnerEl||(this.JSC$13127_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ud(this.hostElement).appendChild(this.JSC$13127_spinnerEl));this.JSC$13127_spinnerEl&&(this.JSC$13127_spinnerEl.active=this.isLoading)};
_.X.onYtNavigate=function(l){var e=this.get("updateCommentDialogEndpoint",l.detail.endpoint);e&&(this.openEditDialog(e),l.stopPropagation())};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.onYtCommentPollRevert=function(l,e){e&&this.updatePoll(e.selectedChoiceIndex,e.totalVotes)};
_.X.onYtServiceRequestSent=function(l,e){l.stopPropagation();l=_.I(e.endpoint,wXF);if(_.I(e.endpoint,AH1)||l&&!l.clientActions)this.isLoading=!0;if(e.actions)for(l=0;l<e.actions.length;l++){var O=e.actions[l],E=_.I(O,cC);E&&(O=this.get("updateBackstagePollAction.selectedChoiceIndex",O),O===void 0&&(O=-1),this.updatePoll(O,E.totalVotes))}};
_.X.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.X.openEditDialog=function(l){l&&l.dialog&&(this.editDialog=l.dialog,l=this.editDialogElement.firstElementChild)&&(l.focus(),l.openDialog&&l.openDialog())};
_.X.computeIsBodyHidden=function(l,e){return!!l||e};
_.Ji.Object.defineProperties(io.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var l,e;if((l=this.data)==null?0:(e=l.pollMetadataIcon)==null?0:e.iconType)return _.w6(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.voteCount)||_.xp("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.I(this.data.backstageAttachment,l3q))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.I(this.data.backstageAttachment,G70))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.I(this.data.backstageAttachment,B9S))}}});
io.prototype.onYtServiceRequestCompleted=io.prototype.onYtServiceRequestCompleted;io.prototype.onYtServiceRequestSent=io.prototype.onYtServiceRequestSent;io.prototype.onYtCommentPollRevert=io.prototype.onYtCommentPollRevert;io.prototype.onYtCommentboxDismiss=io.prototype.onYtCommentboxDismiss;io.prototype.onYtNavigate=io.prototype.onYtNavigate;io.prototype.isLoadingChanged=io.prototype.isLoadingChanged;io.prototype.dataChanged=io.prototype.dataChanged;io.prototype.contentTextChanged=io.prototype.contentTextChanged;
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],io.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],io.prototype,"rendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],io.prototype,"rendererstamperBehavior",void 0);_.L([_.aB("#contentTextExpander"),_.q("design:type",Object)],io.prototype,"expander",void 0);
_.L([_.aB("#edit-dialog"),_.q("design:type",Element)],io.prototype,"editDialogElement",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"hasInlineCommentSection",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"editDialog",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"isLoading",void 0);
_.L([_.T({computed:"computeIsPollHeaderEnabled(data)"}),_.q("design:type",Boolean)],io.prototype,"isPollHeaderEnabled",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"shouldHideAuthor",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"shouldShowVideoTime",void 0);_.L([_.T(),_.q("design:type",Object)],io.prototype,"isInEngagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],io.prototype,"hideBorder",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],io.prototype,"usesFullLockup",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],io.prototype,"shouldShowMenuInCompactView",void 0);_.L([_.R("isInEngagementPanel"),_.q("design:type",Number),_.q("design:paramtypes",[])],io.prototype,"postTextMaxLines",null);_.L([_.R("data.icon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],io.prototype,"pollIcon",null);
_.L([_.AA("data.contentText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],io.prototype,"contentTextChanged",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],io.prototype,"dataChanged",null);_.L([_.AA("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],io.prototype,"isLoadingChanged",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],io.prototype,"onYtNavigate",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],io.prototype,"onYtCommentboxDismiss",null);_.L([_.wP("yt-comment-poll-revert"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],io.prototype,"onYtCommentPollRevert",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],io.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],io.prototype,"onYtServiceRequestCompleted",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],io.prototype,"voteCount",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],io.prototype,"commentCount",null);_.L([_.R("data.backstageAttachment"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],io.prototype,"hasPoll",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],io.prototype,"hasQuiz",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],io.prototype,"hasUploadedVideo",null);
_.L([_.U({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],io);
_.Y(io,"ytd-backstage-post-renderer",function(){if(eYi!==void 0)return eYi;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return eYi=l},{mode:1});var JtH;var wZ=function(){var l=_.B.apply(this,arguments)||this;l.editDialog=null;l.showExpandButton=!1;l.isRichGrid=!1;l.usesFullLockup=!1;return l};
_.m(wZ,_.B);_.X=wZ.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.X.computeShowExpandButton=function(l){return this.usesCompactLockup||l&&l.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.X.computeUsesCompactLockup=function(l){return!!l.condensedContent};
_.X.computeShowFullContentText=function(l){return!l};
_.X.onYtNavigate=function(l){l=this.get("updateCommentDialogEndpoint",l.detail.endpoint);this.openEditDialog(l)};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null};
_.X.openEditDialog=function(l){l&&l.dialog&&(this.editDialog=l.dialog,l=this.repostEditDialogEl.firstElementChild)&&(l.focus(),l.openDialog&&l.openDialog())};
_.X.onTap=function(l){if(this.data){var e=null;this.usesCompactLockup&&!_.Eh(_.ey(l)||[],this.hostElement,["YT-IMG-SHADOW"])?e=this.get("navigationEndpoint",this.data):l.target===this.moreButtonEl&&(e=this.get("navigationEndpoint",l.target.data));e&&_.$u(this.hostElement,"yt-navigate",{endpoint:e})}};
wZ.prototype.onYtCommentboxDismiss=wZ.prototype.onYtCommentboxDismiss;wZ.prototype.onYtNavigate=wZ.prototype.onYtNavigate;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wZ.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],wZ.prototype,"editDialog",void 0);_.L([_.T({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],wZ.prototype,"usesCompactLockup",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wZ.prototype,"showExpandButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wZ.prototype,"isRichGrid",void 0);
_.L([_.T({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.q("design:type",Boolean)],wZ.prototype,"showFullContentText",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wZ.prototype,"usesFullLockup",void 0);_.L([_.aB("#more"),_.q("design:type",Object)],wZ.prototype,"moreButtonEl",void 0);_.L([_.aB("#repost-content-text"),_.q("design:type",HTMLElement)],wZ.prototype,"repostContentTextEl",void 0);
_.L([_.aB("#repost-edit-dialog"),_.q("design:type",HTMLElement)],wZ.prototype,"repostEditDialogEl",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wZ.prototype,"dataChanged",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],wZ.prototype,"onYtNavigate",null);
_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wZ.prototype,"onYtCommentboxDismiss",null);_.L([_.U({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],wZ);
_.Y(wZ,"ytd-shared-post-renderer",function(){if(JtH!==void 0)return JtH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return JtH=l},{mode:1});var XU1;var zYC;var AQ=function(){return _.B.apply(this,arguments)||this};
_.m(AQ,_.B);AQ.prototype.attached=function(){var l=this;this.networkStatusManager||(this.networkStatusManager=new _.xP,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){l.onlineHandler()}))};
AQ.prototype.detached=function(){var l=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){l.onlineHandler()}),delete this.networkStatusManager)};
AQ.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AQ.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],AQ);
_.Y(AQ,"ytd-reload-page-button-renderer",function(){if(zYC!==void 0)return zYC;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return zYC=l},{mode:1});var bj1={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"},nw=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(nw,_.B);_.X=nw.prototype;_.X.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.X.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.X.computeHasBodyText=function(l){return!!l.bodyText};
_.X.computeButtons=function(l){var e=[];l.ctaButton&&e.push(l.ctaButton);l.secondaryButton&&e.push(l.secondaryButton);return e};
_.X.computeRendererStyle=function(l){return l.style?l.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():l.icon?"":"no-icon"};
_.X.getIconName=function(l,e){e=e===void 0?!1:e;if(l===void 0)return"";l=this.get("icon.iconType",l);var O;_.a("enable_hlp_client_icon_pick")?O=this.getThemedIcon(l,e):O=l;(e=bj1[O])||(e="yt-icons");return[e,O].join(":")};
_.X.getThemedIcon=function(l,e){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(l)?e?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(l)?e?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":l};
_.X.isThumbnail=function(l){return!!l.thumbnail};
_.X.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],nw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nw.prototype,"data",void 0);
_.L([_.T({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],nw.prototype,"rendererStyle",void 0);_.L([_.T({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.q("design:type",String)],nw.prototype,"iconName",void 0);_.L([_.T({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],nw.prototype,"thumbnail",void 0);_.L([_.T({computed:"computeButtons(data)"}),_.q("design:type",Array)],nw.prototype,"buttons",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],nw.prototype,"isDarkTheme",void 0);_.L([_.T({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],nw.prototype,"hasBodyText",void 0);_.L([_.U({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],nw);
_.Y(nw,"ytd-background-promo-renderer",function(){if(XU1!==void 0)return XU1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return XU1=l},{mode:1});var MIq;var aW=function(){var l=_.B.apply(this,arguments)||this;l.collections=_.a("web_modern_collections_v2");return l};
_.m(aW,_.B);_.Ji.Object.defineProperties(aW.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J,z;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(l=this.data)==null?void 0:(e=l.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(E=O.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(z=J.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],aW.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],aW.prototype,"collections",void 0);_.L([_.R("data","collections"),_.q("design:type",Object),_.q("design:paramtypes",[])],aW.prototype,"collectionStack",null);_.L([_.U({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],aW);
_.Y(aW,"ytd-compact-station-renderer",function(){if(MIq!==void 0)return MIq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return MIq=l},{mode:1});var VIH;var k_=function(){var l=_.B.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.m(k_,_.B);k_.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]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],k_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],k_.prototype,"isRichGrid",void 0);_.L([_.U({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],k_);
_.Y(k_,"ytd-grid-channel-renderer",function(){if(VIH!==void 0)return VIH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return VIH=l},{mode:1});var Zjk;var IW=function(){return _.B.apply(this,arguments)||this};
_.m(IW,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],IW.prototype,"data",void 0);_.L([_.U({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],IW);
_.Y(IW,"ytd-grid-movie-playlist-renderer",function(){if(Zjk!==void 0)return Zjk;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Zjk=l},{mode:1});var uAR;var mq=function(){var l=_.B.apply(this,arguments)||this;l.downloadProgress=0;l.transferState="TRANSFER_STATE_UNKNOWN";l.modernButtons=_.a("web_modern_buttons");l.useModernCollectionsV2=_.a("web_modern_collections_v2");return l};
_.m(mq,_.B);mq.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
mq.prototype.configureRendererStamper=function(){return{"data.menu":dr}};
mq.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
mq.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.a("woffle_playlist_renderer_killswitch")){var l,e=M9g(this.entityInfo,this.transferState,this.downloadProgress,(l=this.data)==null?void 0:l.playlistId,this.isOnline);l=e.viewPlaylistText;var O=e.badges;e=e.thumbnailOverlays;this.isDownloads=!!l||!!O;this.set("data.viewPlaylistText",l);O&&O.length>0&&this.set("data.badges",O);e&&e.length>0&&this.set("data.thumbnailOverlays",
e)}};
_.Ji.Object.defineProperties(mq.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 l;return!((l=this.data)==null?0:l.menu)}}});
mq.prototype.transferStateChanged=mq.prototype.transferStateChanged;mq.prototype.dataChanged=mq.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],mq.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],mq.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T({selector:_.kWW,selectorArgs:["data.playlistId"]}),_.q("design:type",Object)],mq.prototype,"downloadProgress",void 0);_.L([_.T({selector:_.hY,selectorArgs:["data.playlistId"]}),_.q("design:type",Object)],mq.prototype,"transferState",void 0);_.L([_.T({selector:anA,selectorArgs:["data.playlistId"]}),_.q("design:type",Object)],mq.prototype,"entityInfo",void 0);_.L([_.T({selector:dSL}),_.q("design:type",Boolean)],mq.prototype,"isOnline",void 0);
_.L([_.T(),_.q("design:type",Object)],mq.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],mq.prototype,"downloadRenderData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],mq.prototype,"modernButtons",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],mq.prototype,"isDownloads",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mq.prototype,"useModernCollectionsV2",void 0);
_.L([_.R("transferState"),_.T({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],mq.prototype,"downloadState",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],mq.prototype,"menuHidden",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mq.prototype,"dataChanged",null);
_.L([_.y0("transferState","downloadProgress","isOnline"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mq.prototype,"transferStateChanged",null);_.L([_.U({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],mq);
_.Y(mq,"ytd-grid-playlist-renderer",function(){if(uAR!==void 0)return uAR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return uAR=l},{mode:1});var C7F;var yD=function(){var l=_.B.apply(this,arguments)||this;l.collections=_.a("web_modern_collections_v2");return l};
_.m(yD,_.B);yD.prototype.configureRendererStamper=function(){return{"data.menu":dr,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Ji.Object.defineProperties(yD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(l=this.data)==null?void 0:(e=l.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(E=O.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(z=J.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],yD.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],yD.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yD.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],yD.prototype,"collections",void 0);_.L([_.R("data","collections"),_.q("design:type",Object),_.q("design:paramtypes",[])],yD.prototype,"collectionStack",null);_.L([_.U({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],yD);
_.Y(yD,"ytd-grid-radio-renderer",function(){if(C7F!==void 0)return C7F;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return C7F=l},{mode:1});var or1;var pw=function(){var l=_.B.apply(this,arguments)||this;l.useModernCollectionsV2=_.a("web_modern_collections_v2");return l};
_.m(pw,_.B);pw.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
pw.prototype.computeNavigationEndpoint=function(l){return UkT(l==null?void 0:l.navigationEndpoint)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],pw.prototype,"ytdLockupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pw.prototype,"data",void 0);_.L([_.T({computed:"computeNavigationEndpoint(data)"}),_.q("design:type",Object)],pw.prototype,"computedNavigationEndpoint",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pw.prototype,"useModernCollectionsV2",void 0);_.L([_.U({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],pw);
_.Y(pw,"ytd-grid-show-renderer",function(){if(or1!==void 0)return or1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return or1=l},{mode:1});var $P1;_.Kw=function(l){this.playerClient=l};
_.WEi=function(l,e,O){O=O===void 0?{}:O;return l.playerClient.setOption("ad",e,O)};
_.Kw.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Kw.prototype.executeCommand=function(l,e){this.getOptions().includes("executeCommand")?_.WEi(this,"executeCommand",{command:l,layoutId:e}):_.VP("Calling executeCommand when adModule is not loaded")};var jc=function(){return _.B.apply(this,arguments)||this};
_.m(jc,_.B);jc.prototype.getLayoutId=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
jc.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var l=_.bV(),e=this.getLayoutId(),O=this.data.clickthroughEndpoint;l&&e&&_.a("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?l.getPlayerPromise().then(function(E){(new _.Kw(E)).executeCommand(O,e)}):_.$u(this.hostElement,"yt-navigate",{endpoint:O})}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jc.prototype,"data",void 0);_.L([_.U({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],jc);
_.Y(jc,"ytd-shopping-companion-item-renderer",function(){if($P1!==void 0)return $P1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $P1=l},{mode:1});var dPq;var Hd=function(){var l=_.B.apply(this,arguments)||this;l.isExpandableContent=!1;return l};
_.m(Hd,_.B);_.Ji.Object.defineProperties(Hd.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?void 0:l.price)||((e=this.data)==null?void 0:(O=e.dealsData)==null?void 0:O.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var l,e;if((l=this.data)!=null&&l.dealsData&&((e=this.data)==null||!e.priceReplacementText)){l=this.data.dealsData;var O,E,J;return((O=l.salesData)==null?void 0:O.originalPrice)||((E=l.priceDropData)==null?void 0:E.referencePrice)||((J=l.promotionData)==null?void 0:J.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var l,e;return(l=this.data)==null?void 0:(e=l.dealsData)==null?void 0:e.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Hd.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Hd.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Hd.prototype,"isExpandableContent",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"showCta",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"ctaText",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"hasPriceTopPosition",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"hasPriceBottomPosition",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"useNewStyle",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"showPriceReplacementText",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"priceValue",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"showDeal",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"showAffiliateDisclaimer",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"useSaleStyle",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"useFromBrandCtaStyle",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"useFromVendorCtaStyle",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Hd.prototype,"useShoppingCollectionCtaStyle",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Hd);
_.Y(Hd,"ytd-vertical-product-card-renderer",function(){if(dPq!==void 0)return dPq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dPq=l},{mode:1});var grq;var cd=function(){return _.B.apply(this,arguments)||this};
_.m(cd,_.B);cd.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],cd.prototype,"ytdLockupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cd.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],cd);
_.Y(cd,"ytd-grid-movie-renderer",function(){if(grq!==void 0)return grq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return grq=l},{mode:1});var ijq;var F3=function(){var l=_.B.apply(this,arguments)||this;l.rounded=!0;l.itemStyle="small-item";return l};
_.m(F3,_.B);F3.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var l,e,O,E,J=(e=_.I((l=this.data)==null?void 0:l.buttonCommand,_.pp))==null?void 0:(O=e.item)==null?void 0:(E=O.notificationTextRenderer)==null?void 0:E.successResponseText;J&&_.XAt(this.hostElement,J)}};
_.Ji.Object.defineProperties(F3.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.isProductPlaceholder)!==void 0&&((e=this.data)==null?void 0:e.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],F3.prototype,"rounded",void 0);_.L([_.T(),_.q("design:type",Object)],F3.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],F3.prototype,"itemStyle",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"hasPrice",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"hasPriceReplacementText",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"hasAdditionalFeesText",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"hasAffiliateDisclaimer",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"isProductPlaceholder",null);
_.L([_.T(),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"hideOpenInNewIcon",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],F3.prototype,"ariaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],F3);
_.Y(F3,"ytd-merch-shelf-item-renderer",function(){if(ijq!==void 0)return ijq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ijq=l},{mode:1});var wUF=_.XO(function(l){var e=_.e4("button-card-view-model");_.xD(e,function(){return l.data().rendererContext});
return _.W("button-card-view-model",{el:e,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return l.data().title},
role:"button"},_.W(_.Rx,{model:{}}),_.W("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.W("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.W(_.A,{cond:function(){return l.data().image},
then:function(O){return _.W(_.Jm,{data:O,alt:function(){var E;return(E=l.data().title)!=null?E:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.W("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return l.data().title})))},"Ya");_.a("web_button_view_model_wcw_registration_killswitch")||_.Zw(wUF,"button-card-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){l=_.J3(l,{className:void 0});var e=l.data;l=l.className;var O=_.mF(function(){return e().onTapCommand},void 0,"NprDr");
return _.W("ytd-shopping-item-card",{class:_.ax("ytdShoppingItemCardHost",l)},_.W(_.$8,{command:O,className:"ytdShoppingItemCardHostLink"},_.W("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.W(_.Tn,{data:function(){return e().thumbnailViewModel}},{thumbnailViewModel:function(E){return _.W(_.xR,{data:E.data,
aspectRatio:3})}})),_.W("div",null,_.W("p",{class:"ytdShoppingItemCardHostItemTitle"},_.W(_.zK,{text:function(){return e().itemTitle}})),_.W("p",{class:"ytdShoppingItemCardHostPrice"},_.W(_.zK,{text:function(){return e().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.lB,
className:_.lB}});var AtF={isAdsVideo:!0},nrq={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},aQ1={showPlayerControls:!1,videoPreviewDurationMs:15E3},kFx={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.a("web_shorts_imp_fullwidth_killswitch")};var u3=null,zXu={};var V5u="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(" "),fw={},Zyx=(fw.FEwhat_to_watch="home",fw.FEhashtag="hashtag",fw.FEtrending="trending",fw.FEhistory="history",fw.SPunlimited="premium",fw.FEmemberships_and_purchases="paid_memberships",fw.SPredeem_code="redeem",fw.SPverify_location="locate",fw.SPminor_moment="minor_moment",
fw.FEmini_app_container="mini_app",fw.FEnews_destination="news",fw.SPopen_in_app="open_in_app",fw.FEexplore="explore",fw.FEsubscriptions="subscriptions",fw.FEsfv_audio_pivot="sfv_audio_pivot",fw.FEplaylist_aggregation="playlist_aggregation",fw);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");_.Ag("init");var IQS=function(){},KEk=_.XO(function(l){var e=l.data;
var O=l.inlineMetadata;var E=l.aspectRatio;var J=l.scrimStyle;var z=l.className;var M=l.useDefaultStyle;var Z=new IQS,u=_.a("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=_.mF(function(){return(M==null?0:M())?u==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),g=_.mF(function(){return _.UB(O)||d()||!1},void 0,"GaU7Ef"),w=function(){return(J==null?void 0:J())!==void 0?J==null?void 0:J():1},n=_.mF(function(){return e().belowThumbnailMetadata||
!g()},void 0,"vsyhaf");
l=_.e4("ytm-shorts-lockup-view-model",function(r){Z&&(Z.hostElement=r,f())});
_.VR(l,{visibilityCallback:function(r){var D=e().onFirstVisible;r&&D&&_.r6(D)},
showOption:{calledOnce:!0,state:"visible"}});z=_.ax("shortsLockupViewModelHost",z);var k=_.e4("div"),y={};y=_.ax(function(){return d(),"shortsLockupViewModelHostThumbnailContainer"},(y.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.UB(E)===1},y.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.UB(E)===2},y.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!d()},y.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.a("web_shorts_2_by_3_lockups_study")&&!_.a("desktop_search_enable_two_by_three_shorts_aspect_ratio")},y));
var c,f=function(){if(Z){var r;(r=c)==null||CN(r);var D;Z.hostElement&&((D=Z.data)==null?0:D.inlinePlayerData)&&(c=eA({mediaRenderer:Z,lockupElement:Z.hostElement,thumbnailElement:k.value,videoPreviewOpts:kFx}))}};
_.Gh(function(){Z&&(Z.data=e(),f())},"zGfw4b");
var P=_.mF(function(){return e().thumbnail},void 0,"H4vZOb"),h=_.mF(function(){return e().badge},void 0,"I1QWQc"),N=_.mF(function(){return e().onTap},void 0,"eB6nuc"),t={};
return _.W("ytm-shorts-lockup-view-model",{el:l,class:z},_.W(_.ZB,null,_.W(_.$8,{command:N,className:_.ax("shortsLockupViewModelHostEndpoint",(t.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!n()},t),"reel-item-endpoint",""),
ariaHidden:function(){return!g()},
tabIndex:function(){return g()?0:-1}},_.W("div",{el:k,
class:y},_.W(_.A,{cond:P,then:function(){return _.W(_.Jm,{data:function(){var r;return(r=P==null?void 0:P())!=null?r:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.W(_.A,{cond:g,
then:function(){return _.W(mPq,{data:e,scrimStyle:w,useDefaultStyle:M})}}),_.W(_.Tn,{data:h},{badgeViewModel:function(r){return _.W(_.MU,{data:r.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.W(_.A,{cond:function(){return g()&&e().menuOnTap},
then:function(){return _.W(ytk,{data:e,inlineMetadata:!0})}}),_.W(_.A,{cond:n,
then:function(){return _.W(pUH,{data:e,useDefaultStyle:M})}})))},"$a"),mPq=_.XO(function(l){var e=l.data;
var O=l.scrimStyle;var E=l.useDefaultStyle;var J=_.a("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=E&&_.a("web_hide_primary_text_for_pivot_panel"),M=_.mF(function(){return(E==null?0:E())?J==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
l={};l=_.ax("shortsLockupViewModelHostInlineMetadata",(l.shortsLockupViewModelHostMetadataRounded=function(){return!M()},l.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(O==null?void 0:O())===3&&!_.a("enable_shorts_lockup_new_scrim")},l.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(O==null?void 0:O())===3&&_.a("enable_shorts_lockup_new_scrim")},l.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(O==null?void 0:O())===2||(O==null?void 0:
O())===4},l.shortsLockupViewModelHostShowOverPlayer=function(){return!0},l),"image-overlay-text");
var Z={};return _.W("div",{class:l},_.W("h3",{class:_.ax("shortsLockupViewModelHostMetadataTitle",(Z.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(O==null?void 0:O())===4},Z)),
"aria-label":function(){return e().accessibilityText}},_.W(_.A,{cond:function(){var u;
return!((u=e().overlayMetadata)==null||!u.primaryText)&&!z},
then:function(){return _.W(_.zK,{text:function(){var u;return(u=e().overlayMetadata)==null?void 0:u.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.W(_.A,{cond:function(){var u;
return(u=e().overlayMetadata)==null?void 0:u.secondaryText},
then:function(){return _.W(jS6,{data:e,scrimStyle:O,className:void 0})}}))},"ab"),pUH=_.XO(function(l){var e=l.data;
var O=l.useDefaultStyle;var E=_.a("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.mF(function(){return(O==null?0:O())?E==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
l=_.ax(function(){return J()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var z,M=_.pd(function(){var w;(w=z)==null||w.click();return!1}),Z=_.mF(function(){return e().belowThumbnailMetadata||e().overlayMetadata},void 0,"leqnzc"),u=function(){var w;
return(w=Z())==null?void 0:w.avatar},d={},g={};
return _.W("div",{class:_.ax(l,(d.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!u()},d)),
"on:click":M},_.W(_.Tn,{data:u},{avatarViewModel:function(w){return _.W("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.W(_.Hp,{data:w.data}))}}),_.W("div",null,_.W("h3",{class:_.ax("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(g.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var w,n;
return!((w=Z())==null?0:(n=w.primaryText)==null?0:n.content)},g)),
"aria-label":function(){return e().accessibilityText}},_.W(_.$8,{ref:function(w){return void(z=w)},
command:function(){return e().onTap},
className:_.ax("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var w,n;return(w=Z())==null?void 0:(n=w.primaryText)==null?void 0:n.content}},_.W(_.A,{cond:function(){var w;
return(w=Z())==null?void 0:w.primaryText},
then:function(w){return _.W(_.zK,{text:w,noEndpoints:!0,noStyleRuns:!0})}}))),_.W(_.A,{cond:function(){var w;
return(w=Z())==null?void 0:w.secondaryText},
then:function(w){return _.W("div",{class:_.ax("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.W(_.zK,{text:w,noStyleRuns:!0}))}})),_.W(_.A,{cond:function(){return e().menuOnTap},
then:function(){return _.W(ytk,{data:e,inlineMetadata:!1})}}))},"bb"),jS6=_.XO(function(l){var e=l.data;
var O=l.scrimStyle;l=l.className;var E={};return _.W("div",{class:_.ax((E.shortsLockupViewModelHostMetadataSubhead=function(){return(O==null?void 0:O())!==4},E.shortsLockupViewModelHostMetadataSubheadNew=_.a("enable_shorts_lockup_new_scrim"),E.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(O==null?void 0:O())===4},E),l),
"aria-hidden":"true"},_.W(_.zK,{text:function(){var J;return(J=e().overlayMetadata)==null?void 0:J.secondaryText},
noStyleRuns:!0}))},"cb"),ytk=_.XO(function(l){var e=l.data;
var O=l.inlineMetadata;l={};l=_.ax((l.shortsLockupViewModelHostInlineMetadataMenu=function(){return O()},l.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!O()},l.shortsLockupViewModelHostShowOverPlayer=function(){return!0},l),"image-overlay-text");
return _.W("div",{class:l},_.W(Ms,{data:function(){return{style:O()?"overlay":"mono",accessibilityLabel:e().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(E){E.preventDefault();E.stopPropagation();var J=_.vf({elementsCommand:e().menuOnTap,forceNewState:!0});if(J==null?0:J.onclick)J.onclick(E)}}},
iconName:"MORE_VERT"}))},"db");var HjC=_.XO(function(l){var e=l.data;var O=l.inlineMetadata;var E=l.aspectRatio;var J=l.scrimStyle;var z=l.className;var M=l.useDefaultStyle;l=_.mF(function(){var Z=e().entityId;return Z?Z.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.W("ytm-shorts-lockup-view-model-v2",{class:_.ax("shortsLockupViewModelHost",z)},_.W(_.hrq,{contentId:l,aspectRatio:function(){return(E==null?void 0:E())===1?1:(E==null?void 0:E())===2?2:4}},function(){return _.W(KEk,{data:e,
inlineMetadata:O,aspectRatio:E,scrimStyle:J,className:z,useDefaultStyle:M})}))},"eb");_.Zw(HjC,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Vh,inlineMetadata:_.Vh,aspectRatio:_.Vh,scrimStyle:_.Vh,className:_.Vh,useDefaultStyle:_.Vh}});var ct6=16/9*210,RW=function(){var l=_.B.apply(this,arguments)||this;l.isExpandableContent=!1;l.hideShelfHeader=!1;l.engagementPanel=!1;l.buttonClasses=["arrow"];l.isSearch=!1;l.disableScrollEventListener=!1;l.containsLockup=!1;l.overrideArrowPositionForProductCard=!1;l.overrideArrowPositionForShoppingItemCard=!1;l.overrideArrowPositionForReelItems=!1;l.overrideArrowPositionForGridMovie=!1;l.overrideArrowPositionToCenter=!1;l.isSearchPostShelf=!1;l.overrideArrowPositionForMixedShelf=!1;l.overrideArrowPositionForMixedShelfShortsOnly=
!1;l.hasBigThumbsReelItems=!1;l.shouldUseMixedListHeight=!1;l.shouldUseShortsListHeight=!1;l.gridVideoWidth=0;l.isSearchVodShelf=!1;l.disableWheelScroll=!1;l.sizing="COMPACT";l.shortsLockupAspectRatio=0;return l};
_.m(RW,_.B);_.X=RW.prototype;
_.X.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]]"}}}}};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.a("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.X.computeInitialCountNumber=function(l){if(!l)return 6;var e=l.items.some(function(z){return!!z.topicRecommendationsChipRenderer}),O=l.items.some(function(z){return!!z.displayAdRenderer}),E=this.computeShouldListItemsHaveEqualHeight(l),J=l.items.some(function(z){return!!z.gridPlaylistRenderer});
l=l.items.some(function(z){return!!z.shoppingItemCardViewModel});
return e?9:O?8:J||E?10:l?7:6};
_.X.computeContainsPost=function(l){return!!l&&!!l.items&&l.items.some(function(e){return!!e.postRenderer})};
_.X.computeContainsLockup=function(){if(_.a("web_horizontal_list_lockup_arrow_killswitch"))return!1;var l,e;return(l=this.data)==null?void 0:(e=l.items)==null?void 0:e.some(function(O){return!!O.lockupViewModel})};
_.X.maybeUpdateLockupAspectRatio=function(){var l,e;if(this.computeContainsLockup()&&((l=this.data)==null?0:(e=l.items)==null?0:e.length)){var O;l=uAL((O=this.data.items[0].lockupViewModel)==null?void 0:O.contentType,this.data.force16By9ThumbnailAspectRatio);O=Hmx(l);O=this.computeLockupWidth()/O;_.dP(this.hostElement,{"--yt-horizontal-list-content-height":O+"px"})}};
_.X.computeOverrideArrowPositionForProductCard=function(l){if(this.isExpandableContent)return!1;var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){return!!O.verticalProductCardRenderer}))};
_.X.computeOverrideArrowPositionForShoppingItemCard=function(l){var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){return!!O.shoppingItemCardViewModel}))};
_.X.computeOverrideArrowPositionForReelItemRenderer=function(l){return this.containsReelItemRenderer(l)};
_.X.computeHasBigThumbsReelItems=function(l,e){return l&&this.containsReelItemRenderer(e)};
_.X.computeShouldListItemsHaveEqualHeight=function(l){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(l==null?void 0:l.itemSizeConstraint)};
_.X.computeShouldListItemsHaveShortsHeight=function(l){return this.computeShouldListItemsHaveEqualHeight(l)&&!this.containsGridVideoRenderer(l)};
_.X.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.X.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.X.containsReelItemRenderer=function(l){var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){return!(!O.reelItemRenderer&&!O.shortsLockupViewModel)}))};
_.X.containsGridVideoRenderer=function(l){var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){return!!O.gridVideoRenderer||!!O.lockupViewModel}))};
_.X.computeContainsGridMovieRenderer=function(l){var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){return!!O.gridMovieRenderer}))};
_.X.computeOverrideArrowPositionToCenter=function(l){return this.computeIsSearchPostShelf(l)};
_.X.computeIsSearchPostShelf=function(l){var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){var E,J;return((J=(E=O.postRenderer)==null?void 0:E.surface)!=null?J:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.X.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(l){var e;return!!(l==null?0:(e=l.items)==null?0:e.some(function(O){var E,J,z;return((z=(E=O.backgroundPromoRenderer)==null?void 0:(J=E.style)==null?void 0:J.value)!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.X.computeIsSearchVodShelf=function(l,e){return l&&this.containsGridVideoRenderer(e)};
_.X.computeDisableWheelScroll=function(l,e){return this.computeIsSearchVodShelf(l,e)};
_.X.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.X.computeShortsLockupAspectRatio=function(){return 1};
_.X.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.dP(this.hostElement,{"--ytd-reel-item-thumbnail-height":ct6+"px"})};
RW.prototype.dataChanged=RW.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],RW.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],RW.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],RW.prototype,"isExpandableContent",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"hideShelfHeader",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"engagementPanel",void 0);_.L([_.T(),_.q("design:type",Array)],RW.prototype,"buttonClasses",void 0);_.L([_.T(),_.q("design:type",Object)],RW.prototype,"isSearch",void 0);
_.L([_.T(),_.q("design:type",Object)],RW.prototype,"disableScrollEventListener",void 0);_.L([_.T({computed:"computeInitialCountNumber(data)"}),_.q("design:type",Number)],RW.prototype,"initialCount",void 0);_.L([_.T({computed:"computeContainsPost(data)"}),_.q("design:type",Boolean)],RW.prototype,"supportComponentResize",void 0);_.L([_.T({computed:"computeContainsPost(data)"}),_.q("design:type",Boolean)],RW.prototype,"containsPost",void 0);
_.L([_.T({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"containsLockup",void 0);_.L([_.T({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],RW.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.L([_.T({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionForProductCard",void 0);_.L([_.T({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.L([_.T({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionForReelItems",void 0);_.L([_.T({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionForGridMovie",void 0);
_.L([_.T({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionToCenter",void 0);_.L([_.T({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"isSearchPostShelf",void 0);_.L([_.T({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.L([_.T({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.L([_.T({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"hasBigThumbsReelItems",void 0);
_.L([_.T({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"shouldUseMixedListHeight",void 0);_.L([_.T({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"shouldUseShortsListHeight",void 0);_.L([_.T({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"gridVideoWidth",void 0);
_.L([_.T({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"isSearchVodShelf",void 0);_.L([_.T({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.q("design:type",Object)],RW.prototype,"disableWheelScroll",void 0);_.L([_.T({computed:"computeSizing(isSearch)"}),_.q("design:type",Object)],RW.prototype,"sizing",void 0);
_.L([_.T({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.q("design:type",Object)],RW.prototype,"shortsLockupAspectRatio",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RW.prototype,"dataChanged",null);
_.Y(RW,"yt-horizontal-list-renderer",function(){if(sN6===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);sN6=l}l=sN6;return l},{mode:1});var FE6;var fQk=[10,12,14,16,18,20,24,28,32,36],RYx=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Tm=function(){var l=_.B.apply(this,arguments)||this;l.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";l.hideOverflow=!1;l.useRoboto=!1;l.fontClass="";l.overflown=!1;l.actionMap={"yt-window-resized":"resize"};return l};
_.m(Tm,_.B);_.X=Tm.prototype;
_.X.attached=function(){var l=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();_.OK(this,function(){l.resize()});
if(!_.gs){var e,O,E;(e=document)==null||(O=e.fonts)==null||(E=O.ready)==null||E.then(function(){l.resize()})}};
_.X.dataChanged=function(){this.resize()};
_.X.guideIsExpandedChanged=function(){this.resize()};
_.X.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 l=this.getMaxNumLines(),e=this.getMinFont(),O=this.getMaxFont(),E=this.useRoboto?fQk:RYx;for(E=E.filter(function(z){return z<=O&&z>=e});E.length>1;){var J=Math.floor(E.length/2);
this.updateFontSize(E[J]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=l)E=E.slice(J,E.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>l)E=E.slice(0,J);else break}this.updateFontSize(E[E.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(l)}};
_.X.handleOverflow=function(l){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>l&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",l.toString()))};
_.X.updateFontSize=function(l){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+l;this.textNode.classList.add(this.fontClass)};
_.X.getMaxFont=function(){var l=this.useRoboto?fQk:RYx;l=l[l.length-1];return this.maxFontSize&&this.maxFontSize<=l?this.maxFontSize:l};
_.X.getMinFont=function(){var l=(this.useRoboto?fQk:RYx)[0];return this.minFontSize&&this.minFontSize>=l?this.minFontSize:l};
_.X.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.X.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.X.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.lG(this.text).split("\n").length-1:Infinity};
_.X.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("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Tm.prototype.guideIsExpandedChanged=Tm.prototype.guideIsExpandedChanged;Tm.prototype.dataChanged=Tm.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Tm.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Tm.prototype,"text",void 0);
_.L([_.T(),_.q("design:type",String)],Tm.prototype,"fontFamily",void 0);_.L([_.T(),_.q("design:type",Number)],Tm.prototype,"maxWidth",void 0);_.L([_.T(),_.q("design:type",Number)],Tm.prototype,"maxHeight",void 0);_.L([_.T(),_.q("design:type",Number)],Tm.prototype,"maxFontSize",void 0);_.L([_.T(),_.q("design:type",Number)],Tm.prototype,"minFontSize",void 0);_.L([_.T(),_.q("design:type",Number)],Tm.prototype,"maxLines",void 0);_.L([_.T(),_.q("design:type",Object)],Tm.prototype,"hideOverflow",void 0);
_.L([_.T({selector:_.ZpL}),_.q("design:type",Boolean)],Tm.prototype,"guideIsExpanded",void 0);_.L([_.aB("#container"),_.q("design:type",HTMLElement)],Tm.prototype,"containerNode",void 0);_.L([_.aB("#text"),_.q("design:type",HTMLElement)],Tm.prototype,"textNode",void 0);_.L([_.y0("text"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Tm.prototype,"dataChanged",null);
_.L([_.y0("guideIsExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Tm.prototype,"guideIsExpandedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Tm);
_.Y(Tm,"yt-dynamic-sizing-formatted-string",function(){if(FE6!==void 0)return FE6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return FE6=l},{mode:1});var TBq;_.sSx=function(l){_.l2.call(this,l)};
_.m(_.sSx,_.l2);var GFq=function(l){_.l2.call(this,l)};
_.m(GFq,_.sSx);var sz=function(){return _.B.apply(this,arguments)||this};
_.m(sz,_.B);sz.prototype.onTapSuspendedChannel=function(){var l;if((l=this.data)!=null&&l.serviceEndpoint){var e,O;(l=(O=_.I((e=this.data)==null?void 0:e.serviceEndpoint,_.Db))==null?void 0:O.url)?_.DC(l,void 0,void 0,window.top):(e=new GFq("Did not handle suspended account tap. No appealUrl."),_.UW(e))}else e=new GFq("Did not handle suspended account tap. No serviceEndpoint."),_.UW(e)};
sz.prototype.onTap=function(){var l=this,e=_.yN(),O,E=(O=_.mX(e,{veType:7116}))!=null?O:void 0;_.rg(e,{visualElement:E});_.Nv();this.saveRoleText();var J;if((J=this.data)==null?0:J.youtubeSuspended)this.onTapSuspendedChannel();else{var z=!1,M,Z;(e=(Z=_.I((M=this.data)==null?void 0:M.serviceEndpoint,_.yH1))==null?void 0:Z.supportedTokens)&&e.forEach(function(u){if(u.accountSigninToken)if(z=!0,l.onAccountItemTap)l.onAccountItemTap(u.accountSigninToken.signinUrl);else _.DC(u.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!z){if(M=this.get("serviceEndpoint",this.data))z=!0,this.ytComponentBehavior.resolveCommand(M);z||_.YE(new GFq("Did not handle account switch tap. No token."))}}};
sz.prototype.saveRoleText=function(){if(this.data){var l=this.data,e=l.channelDelegationRole;if(e){var O,E=(O=_.I(l==null?void 0:l.serviceEndpoint,_.yH1))==null?void 0:O.supportedTokens;if(!E){var J,z,M,Z;E=(J=_.I(l==null?void 0:l.serviceEndpoint,_.Fn))==null?void 0:(z=J.popup)==null?void 0:(M=z.confirmDialogRenderer)==null?void 0:(Z=M.confirmButton)==null?void 0:Z.buttonRenderer;var u;E=(u=_.I(E==null?void 0:E.command,_.nz))==null?void 0:u.commands;if(!E)return;var d;E=(d=_.I(E[1],_.yH1))==null?
void 0:d.supportedTokens}if(E){u=void 0;d=_.b(E);for(E=d.next();!E.done;E=d.next())if(E=E.value,E.datasyncIdToken){u=E.datasyncIdToken.datasyncIdToken;break}if(u){var g;a:{if(_.lT8()&&(d=_.$dV(u+"::pom"))){d=new ca(d);break a}d=void 0}(g=d)==null||g.set("role_text",e);if((olp?olp:window.location).href.indexOf("studio")!==-1&&(g=eMT())){d=g.src?(new URL(g.src)).origin:"*";var w;(w=g.contentWindow)==null||w.postMessage({action:"save_pom_role",datasyncId:u,roleText:e},d)}}}}}};
_.Ji.Object.defineProperties(sz.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.data)==null?void 0:(e=l.accountPhoto)==null?void 0:e.thumbnails;return O&&O.length>0&&(O[0].height===36||O[0].height===48)?O[0].height:40}}});
sz.prototype.onTap=sz.prototype.onTap;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sz.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sz.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Function)],sz.prototype,"onAccountItemTap",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sz.prototype,"enableRingForActiveAccount",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],sz.prototype,"thumbnailSize",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sz.prototype,"onTap",null);_.L([_.U({is:"ytd-account-item-renderer",disableElementRegistration:!0})],sz);
_.Y(sz,"ytd-account-item-renderer",function(){if(TBq!==void 0)return TBq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return TBq=l},{mode:1});var BBR;var Gm=function(){return _.B.apply(this,arguments)||this};
_.m(Gm,_.B);Gm.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.V2().resolve(_.Zh).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Gm.prototype,"data",void 0);_.L([_.U({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Gm);
_.Y(Gm,"ytd-identity-chip-renderer",function(){if(BBR!==void 0)return BBR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BBR=l},{mode:1});var P7x;var UP6;var Y4q;var hY6;var Bd=function(){var l=_.B.apply(this,arguments)||this;l.richItemMinWidth=_.Cv("wn_grid_min_item_width",310);l.isShorts=!1;l.isWatchNext=!1;l.isExploreHub=!1;return l};
_.m(Bd,_.B);_.Ji.Object.defineProperties(Bd.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var l=[],e=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.dP(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var O;if(((O=this.data)==null?0:O.rows)&&e)for(e*=this.data.rows,O=0;O<e;O++)l.push({});return l}}});
_.L([_.K(_.sY),_.q("design:type",Object)],Bd.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Bd.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Bt,value:3}),_.q("design:type",Number)],Bd.prototype,"itemsPerRow",void 0);_.L([_.T({selector:_.VKT,value:6}),_.q("design:type",Number)],Bd.prototype,"slimItemsPerRow",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Number)],Bd.prototype,"richItemMinWidth",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],Bd.prototype,"miniMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Bd.prototype,"isShorts",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Bd.prototype,"isWatchNext",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Bd.prototype,"isExploreHub",void 0);
_.L([_.R("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.q("design:type",Array),_.q("design:paramtypes",[])],Bd.prototype,"cardItems",null);_.L([_.U({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Bd);
_.LE1=_.$0()(Bd,"ytd-ghost-grid-renderer",function(){if(hY6===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);hY6=l}l=hY6;return l},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Zw(_.XO(function(l){var e=_.J3(l,{numberOfComments:3}).numberOfComments,O=_.J3(l,{isInitialLoad:!1}).isInitialLoad,E=_.J3(l,{engagementPanel:!1}).engagementPanel,J=function(){return Math.min(Number(e==null?void 0:e())||20,20)};
return _.W("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.W(_.A,{cond:function(){return!(E==null?0:E())&&(O==null?void 0:O())},
then:function(){return _.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.W("div",{class:_.ax("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.W("div",{class:_.ax("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.ax("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.W("div",{class:_.ax("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.W("div",{class:"ytGhostCommentsComments"},_.W(_.KH,{each:function(){return Array((J==null?void 0:J())||3)}},function(){return _.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsHost"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.ax("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.W("div",{class:_.ax("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.ax("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:"ytGhostCommentsGhostLikeDislike"},_.W("div",{class:_.ax("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.ax("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.lB,
isInitialLoad:_.lB,engagementPanel:_.lB}});_.Y7("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Pd=function(){var l=_.B.apply(this,arguments)||this;l.isOverridable=!1;l.spinnerActive=!1;l.showButton=!1;l.isCommentsSection=!1;l.engagementPanel=!0;l.isShortsGrid=!1;l.isShortsPage=!1;l.isWatchPage=!1;l.ghostCardExperimentEnabled=_.a("show_ghost_comments_shorts_watch")||_.a("show_ghost_comments_desktop_watch");l.originalShowButton=!1;l.endOfList=!1;return l};
_.m(Pd,_.B);_.X=Pd.prototype;_.X.resetIntersectionObserver=function(){var l;(l=this.observer)==null||l.disconnect();this.observer=void 0};
_.X.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var l,e;((l=this.data)==null?void 0:l.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((e=this.data)==null?0:e.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.X.initializeIntersectionObserver=function(){var l=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(e){e=_.b(e);for(var O=e.next();!O.done;O=e.next())O.value.isIntersecting&&(l.triggerContinuation(),l.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.X.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.X.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var l;((l=this.data)==null?0:l.continuationEndpoint)&&(l=_.I(this.data.continuationEndpoint,_.qj))&&this.ytdReduxBehavior.dispatch(_.oM({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:l}}))};
_.X.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.X.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.X.onServiceRequestCompleted=function(l,e){if(!_.a("kevlar_hide_spinner_on_empty_continuation_killswitch")){var O;(O=e.actions)!=null&&O.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.X.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.X.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.X.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.X.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var l=3;if(this.engagementPanel){var e,O,E;l=Math.floor(((((e=this.hostElement)==null?void 0:(O=e.parentElement)==null?void 0:(E=O.parentElement)==null?void 0:E.scrollHeight)||108)-108)/108);l=this.isInitialLoad?Math.max(l,3):3}e=[].concat(_.kA(this.hostElement.querySelectorAll("yt-ghost-comments")));e=_.b(e);for(O=e.next();!O.done;O=e.next())O=O.value,O.numberOfComments=l,O.isInitialLoad=this.isInitialLoad,O.engagementPanel=
this.engagementPanel}};
_.X.detached=function(){this.resetIntersectionObserver()};
_.Ji.Object.defineProperties(Pd.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.a("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.a("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Pd.prototype.numberOfGhostCommentsChanged=Pd.prototype.numberOfGhostCommentsChanged;Pd.prototype.continuationTriggerOffsetChanged=Pd.prototype.continuationTriggerOffsetChanged;Pd.prototype.showButtonChanged=Pd.prototype.showButtonChanged;Pd.prototype.onYtServiceRequestCompletedForButtonRenderer=Pd.prototype.onYtServiceRequestCompletedForButtonRenderer;Pd.prototype.onServiceRequestCompleted=Pd.prototype.onServiceRequestCompleted;Pd.prototype.onYtServiceRequestSentForButtonRenderer=Pd.prototype.onYtServiceRequestSentForButtonRenderer;
Pd.prototype.observeData=Pd.prototype.observeData;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Dl.YtVisibilityBehavior),_.q("design:type",Object)],Pd.prototype,"ytVisibilityBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Pd.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],Pd.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"isOverridable",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"spinnerActive",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"showButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Pd.prototype,"isCommentsSection",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Pd.prototype,"engagementPanel",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"isShortsGrid",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.CS8}),_.q("design:type",Object)],Pd.prototype,"isShortsPage",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Un}),_.q("design:type",Object)],Pd.prototype,"isWatchPage",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Pd.prototype,"ghostCardExperimentEnabled",void 0);
_.L([_.T(),_.q("design:type",Number)],Pd.prototype,"continuationTriggerOffset",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"endOfList",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Pd.prototype,"isInitialLoad",void 0);_.L([_.aB("ytd-button-renderer"),_.q("design:type",_.ek)],Pd.prototype,"buttonRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],Pd.prototype,"buttonOverrides",void 0);
_.L([_.T(),_.R("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.q("design:type",Object),_.q("design:paramtypes",[])],Pd.prototype,"isShortsCommentsSection",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pd.prototype,"observeData",null);
_.L([_.wP("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pd.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],Pd.prototype,"onServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-completed-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pd.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.L([_.y0("showButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pd.prototype,"showButtonChanged",null);
_.L([_.y0("continuationTriggerOffset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pd.prototype,"continuationTriggerOffsetChanged",null);_.L([_.AA("isInitialLoad","engagementPanel"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pd.prototype,"numberOfGhostCommentsChanged",null);_.L([_.U({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Pd);
_.Y(Pd,"ytd-continuation-item-renderer",function(){if(Y4q!==void 0)return Y4q;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Y4q=l},{mode:1});var tIR;var Uz=function(){var l=_.B.apply(this,arguments)||this;l.downloadProgress=0;l.transferState="TRANSFER_STATE_UNKNOWN";l.downloadState="DOWNLOAD_STATE_UNKNOWN";l.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";l.offlineVideoPolicyExpirationTimestamp=0;l.downloadedVideoPlaybackPosition=0;return l};
_.m(Uz,_.B);Uz.prototype.dataChanged=function(){var l;this.videoData=_.I((l=this.data)==null?void 0:l.renderer,XXk);this.transferStateChanged()};
Uz.prototype.downloadProgressChanged=function(){if(this.entityInfo){var l=Object.assign({},this.videoData),e=V9q(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),O=e.publishedTimeText,E=e.badges;l.shortViewCountText=e.shortViewCountText;l.publishedTimeText=O;l.badges=E;this.set("videoData",l)}};
Uz.prototype.transferStateChanged=function(){if(this.entityInfo){var l=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",e=_.KO(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!pO(this.entityInfo.policyEntity),O=Object.assign({},this.videoData),E=V9q(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),J=E.publishedTimeText,z=E.badges;O.shortViewCountText=
E.shortViewCountText;O.publishedTimeText=J;O.badges=z;O.isDisabled=e;O.isWatched=this.downloadedVideoPlaybackPosition>0;O.navigationEndpoint=e?void 0:B9g(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var M;l&&((M=this.videoData)==null?0:M.videoId)&&!_.a("dl_resume_click_killswitch")&&(O.isDisabled=!1,O.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});O.thumbnailOverlays=b6x(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",O)}};
Uz.prototype.transferStateChanged=Uz.prototype.transferStateChanged;Uz.prototype.downloadProgressChanged=Uz.prototype.downloadProgressChanged;Uz.prototype.dataChanged=Uz.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Uz.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Uz.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],Uz.prototype,"videoData",void 0);_.L([_.T({selector:LO,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"downloadProgress",void 0);_.L([_.T(),_.q("design:type",Number)],Uz.prototype,"relativeDateReference",void 0);_.L([_.T({selector:_.Yp,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"transferState",void 0);
_.L([_.T({selector:FVM,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"downloadState",void 0);_.L([_.T({selector:ipT,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"offlinePolicyAction",void 0);_.L([_.T({selector:wCq,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.L([_.T({selector:tY,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"downloadedVideoPlaybackPosition",void 0);_.L([_.T({selector:nUp,selectorArgs:["videoData.videoId"]}),_.q("design:type",Object)],Uz.prototype,"entityInfo",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Uz.prototype,"isDownloading",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uz.prototype,"dataChanged",null);
_.L([_.y0("downloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uz.prototype,"downloadProgressChanged",null);_.L([_.y0("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uz.prototype,"transferStateChanged",null);
_.L([_.U({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Uz);
_.Y(Uz,"ytd-downloaded-video-grid-video-renderer",function(){if(tIR!==void 0)return tIR;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tIR=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var q41;var Y_=function(){};
Y_.prototype.resolve=function(l,e){var O=this;return _.V(function(E){return _.C(E,O.resolveCommand(l,e),0)})};var vr1,hQ;vr1=DMT(function(l){return l.targetId},{shouldPersist:!1});
hQ=vr1.updateData;_.NBk=vr1.useUpdatableData;var rt0,DPS;rt0=DMT(function(l){return l.targetId});
DPS=rt0.updateData;_.S4q=rt0.useUpdatableData;var QSq=oI2.bind(null,hQ),xPq=oI2.bind(null,DPS);(function(l,e,O){var E=_.I(O==null?void 0:O.updatedRenderer,_.Ro1);return E?l({targetId:e},function(){return E}):!1}).bind(null,hQ);var Lw=function(){};
_.m(Lw,Y_);Lw.prototype.resolveCommand=function(l){var e;return _.V(function(O){e=_.I(l,_.ABg);if(!e)return O.return();QSq(e.targetId,e);_.Cl(O)})};var tQ=function(){var l=_.IB.apply(this,arguments)||this;l.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return l};
_.m(tQ,_.IB);_.X=tQ.prototype;_.X.configureContinuationPathMap=function(){return{}};
_.X.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.X.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.X.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.X.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.X.handleAppendContinuationItemsAction=function(l){var e=_.I(l,_.ohS);if(this.data&&this.data.targetId&&e&&this.continuationPathMap&&e.targetId===this.data.targetId){var O=FXV(l),E=O&&this.continuationPathMap[O];if(E&&O)if(l=this.get(E,this.data)){a:{for(O=0;O<l.length;O++){var J=l[O],z=void 0,M=!!_.I((z=_.I(J,S9S))==null?void 0:z.content,_.eLk);if(_.I(J,_.o2)||M)break a}O=l.length}E="data."+E;e.continuationItems?O===l.length-1?(this.pop(E),this.push.apply(this,[E].concat(_.kA(e.continuationItems)))):
O===l.length?this.push.apply(this,[E].concat(_.kA(e.continuationItems))):this.splice.apply(this,[E,O,1].concat(_.kA(e.continuationItems))):this.splice(E,O,1);(_.a("web_enable_voting_animation")||_.a("enable_music_web_cairo_voting_animation"))&&_.$u(this.hostElement,"yt-append-continuation-items-action-finished");_.$u(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.hG(new _.Hk("append continuation items does not exist",O));else _.hG(new _.Hk("append continuation path does not exist",
O))}};
_.X.handleReloadContinuationItemsCommand=function(l){var e=_.I(l,_.ABg);if(this.data&&e){if(_.a("web_explore_hub")||_.a("web_client_explore_hub")||_.a("web_explore_hub_on_hover")||_.a("web_client_explore_hub_on_hover"))try{_.V2().resolve(Lw).resolveCommand(l)}catch(z){}if(this.data.targetId&&this.continuationPathMap&&e.targetId===this.data.targetId&&(!_.a("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||e.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var O,E=
(O=e.slot)==null?void 0:O.replace("RELOAD_CONTINUATION_SLOT_","");O=(l=FXV(l)+"-"+(E==null?void 0:E.toLowerCase()))&&this.continuationPathMap[l];if(!O||!l||!E)_.hG(new _.Hk("reload continuation path does not exist",l));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(e)){if(e.replaceWithFirstItem){var J;this.set("data."+O,((J=e.continuationItems)==null?0:J.length)?e.continuationItems[0]:{})}else this.set("data."+O,e.continuationItems?e.continuationItems:
[]);this.continuationIsReloading=!1;_.$u(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.X.handleShowReloadUiCommand=function(l){l=_.I(l,pWF);var e;((e=this.data)==null?0:e.targetId)&&(l==null?0:l.targetId)&&l.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
tQ.prototype.observeData=tQ.prototype.observeData;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],tQ.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],tQ.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tQ.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],tQ.prototype,"continuationIsReloading",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tQ.prototype,"observeData",null);_.L([_.m0()],tQ);_.qU=[_.va.YtComponentBehavior,_.ZH.YtActionHandlerBehavior,tQ.prototype];_.vd={};_.vd.YtNextContinuationBehavior=[_.XP.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",_.id(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.id(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(l,e){l.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,e,{}):(l={locationRetrieved:function(O){this.makeNextContinuationRequest_(O,e,{})}.bind(this)},_.$u(this.hostElement,"yt-retrieve-location",l))},
makeNextContinuationRequest_:function(l,e,O){_.hg("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();l=e(l);var E;this.canUseContextualNetworkManager_()&&(E=this.getNetworkManager());E||(E=_.V2().resolve(_.Pc));e=_.Dw.instance;if(_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&e){E=_.Em([l.startsWith("/")?l.substr(1):l]);var J,z;O=_.PJ(e,{},E,O==null?void 0:(J=O.context)==null?void 0:(z=J.clickTracking)==null?void 0:z.clickTrackingParams).then(function(M){return{response:M}})}else O=
this.nextContinuation.usePost?E.postData(l,O):E.fetchData(l);
O.then(this.updateNextContinuationData_.bind(this,l));this.pendingContinuationRequest_=O;this.startListeningForNavigate_()},
updateNextContinuationData_:function(l,e){var O=this;_.hg("ncl");this.pendingContinuationRequest_=void 0;if(e){var E={};this.nextContinuation&&(E=this.nextContinuation);if(e.response&&e.response.continuationContents&&e.response.continuationContents[E.continuationType]){l=e.response.continuationContents[E.continuationType];var J=E.header||"data.header",z=l[E.responseHeaderKey||"header"];z&&this.set(J,z);J=E.contentsArray||"data.contents";z=this.getContents_(l,E.responseContentsKey||"contents")||[];
this.pathExists_(J)?(z.unshift(J),this.push.apply(this,z)):this.set(J,z);z&&($EL(_.yN(),e.response,this.hostElement,function(M){_.Wb(O.hostElement,"yt-store-grafted-ve-action",[M])}),_.$u(this.hostElement,"yt-next-continuation-data-updated",{continuationData:e,
page:this,contentsArray:J}));this.set(E.continuationsArray||"data.continuations",l[E.responseContinuationsKey||"continuations"]||[])}else e.reload?_.hG(new _.Hk("Reloading from continuation is unsupported")):e.responseContext&&e.responseContext.errors||(delete e.xsrf_token,delete e.timing,delete e.endpoint,delete e.csn,e.responseContext&&delete e.responseContext.serviceTrackingParams,J={request:_.xd(l,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(e).sort()},e.response&&(J.responseContentKeys=
Object.keys(e.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(J.continuationType=this.nextContinuation.continuationType.substr(0,256)),e=new _.Hk("Malformed continuation",J),l.indexOf("/comment_service_ajax")==0?_.hG(e):_.UW(e)),this.set(E.continuationsArray||"data.continuations",[])}else _.YE(new _.Hk("Missing continuation response",l))},
getContents_:function(l,e){e=e.split(".");return _.mm.getValueByKeys(l,e)},
pathExists_:function(l){var e=this;l=l.toString().split(".");for(var O=0;O<l.length;O++)if(e=e[l[O]],e===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var lzS;var eX6;var NU=function(){var l=_.B.apply(this,arguments)||this;l.triggered_=!1;return l};
_.m(NU,_.B);_.X=NU.prototype;_.X.attached=function(){this.maybeTriggerAutoload()};
_.X.detached=function(){this.hasBeenTriggered_=!1};
_.X.onPrescanVisible=function(){this.onShow()};
_.X.onShow=function(){this.showButton||this.trigger()};
_.X.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.$u(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.X.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.X.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.X.computeLabel_=function(l,e){return l===void 0?null:l.label||!e?l.label:this.showMoreText_};
_.X.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.X.getContinuationUrl=function(l){var e={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.e7(l,e)};
_.X.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
NU.prototype.showButtonChanged_=NU.prototype.showButtonChanged_;NU.prototype.observeData_=NU.prototype.observeData_;_.L([_.K(_.Dl.YtVisibilityBehavior),_.q("design:type",Object)],NU.prototype,"ytVisibilityBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NU.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],NU.prototype,"showButton",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],NU.prototype,"showIcon",void 0);_.L([_.T({computed:"computeLabel_(data, showButton)"}),_.q("design:type",Object)],NU.prototype,"label",void 0);_.L([_.T({value:_.xp(_.ml("SHOW_MORE",void 0,"Show More"))}),_.q("design:type",Object)],NU.prototype,"showMoreText_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],NU.prototype,"spinnerActive_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],NU.prototype,"hasBeenTriggered_",void 0);
_.L([_.T({value:void 0}),_.q("design:type",String)],NU.prototype,"observeVisibleOption",void 0);_.L([_.T({value:void 0}),_.q("design:type",String)],NU.prototype,"observeHiddenOption",void 0);_.L([_.T({value:"observe_once"}),_.q("design:type",Object)],NU.prototype,"observePrescanOption",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NU.prototype,"observeData_",null);
_.L([_.AA("showButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NU.prototype,"showButtonChanged_",null);_.L([_.Ps({is:"yt-next-continuation",disableElementRegistration:!0})],NU);
_.Y(NU,"yt-next-continuation",function(){if(eX6===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;lzS===void 0&&(lzS=document.createElement("template"));var E=lzS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);eX6=l}l=eX6;return l},{mode:2});var Oy6;var EIx;var rZ=function(){return _.B.apply(this,arguments)||this};
_.m(rZ,_.B);rZ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rZ.prototype,"data",void 0);_.L([_.Ps({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],rZ);
_.Y(rZ,"yt-music-pass-small-feature-info-renderer",function(){if(EIx===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Oy6===void 0&&(Oy6=document.createElement("template"));var E=Oy6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);EIx=l}l=EIx;return l},{mode:2});_.Y7("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Di=function(){var l=_.B.apply(this,arguments)||this;l.isCollapsible=!1;l.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return l};
_.m(Di,_.B);_.X=Di.prototype;_.X.computeIsCollapsible=function(l){return!!(((l==null?0:l.showMoreText)||(l==null?0:l.visibleRowCount))&&(l==null?0:l.isCollapsible))};
_.X.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"}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.X.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.X.onIronResize=function(){var l=this;_.rP(this,"updateGridInitItems",function(){l.maybeUpdateInitialItemsDisplayed()})};
_.X.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var l=this.getVisibleWidth();l!==0&&(l=Math.floor(l/214)*(this.data.visibleRowCount||2),l!==this.initialCount&&(this.initialCount=l,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.X.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.X.computeExpandVisible=function(l,e,O,E){return l&&e&&O&&!!E&&!!E.showMoreText};
_.X.computeShowMoreButton=function(l){return{text:l,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.X.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.X.initCollapsed=function(){var l=this;this.ytLazyListBehavior.canShowMore=!1;var e;(this.collapsed=!((e=this.data)==null||!e.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.OK(this,function(){_.dQ(l.hostElement,"yt-refit-popups-action")})};
_.X.fillRestIfNotCollapsible=function(){var l=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!l||this.ytLazyListBehavior.fillRemainingListItems()};
_.X.computeViewAllHidden=function(l,e){return l||!e.viewAllEndpoint};
Di.prototype.fillRestIfNotCollapsible=Di.prototype.fillRestIfNotCollapsible;Di.prototype.initCollapsed=Di.prototype.initCollapsed;Di.prototype.onIronResize=Di.prototype.onIronResize;Di.prototype.persistentGuideChanged=Di.prototype.persistentGuideChanged;_.L([_.K(_.sl),_.q("design:type",Object)],Di.prototype,"ironResizableBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],Di.prototype,"ytLazyListBehavior",void 0);_.L([_.K(_.vd.YtNextContinuationBehavior),_.q("design:type",Object)],Di.prototype,"ytNextContinuationBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],Di.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.K(_.qU),_.q("design:type",Object)],Di.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Di.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],Di.prototype,"collapsed",void 0);_.L([_.T(),_.q("design:type",Number)],Di.prototype,"initialCount",void 0);_.L([_.T({computed:"computeShowMoreButton(data.showMoreText)"}),_.q("design:type",Object)],Di.prototype,"showMoreButton",void 0);
_.L([_.T({computed:"computeIsCollapsible(data)"}),_.q("design:type",Object)],Di.prototype,"isCollapsible",void 0);_.L([_.aB("#items"),_.q("design:type",HTMLElement)],Di.prototype,"items",void 0);_.L([_.y0("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Di.prototype,"persistentGuideChanged",null);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Di.prototype,"onIronResize",null);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Di.prototype,"initCollapsed",null);_.L([_.y0("canShowMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Di.prototype,"fillRestIfNotCollapsible",null);_.L([_.U({is:"ytd-grid-renderer",disableElementRegistration:!0})],Di);
_.Y(Di,"ytd-grid-renderer",function(){if(q41!==void 0)return q41;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return q41=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var Sc=function(){return _.B.apply(this,arguments)||this};
_.m(Sc,_.B);
Sc.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"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sc.prototype,"data",void 0);_.L([_.U({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Sc);
_.Y(Sc,"ytd-carousel-ad-renderer",function(){if(UP6!==void 0)return UP6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return UP6=l},{mode:1});var JVx;var QD=function(){return _.B.apply(this,arguments)||this};
_.m(QD,_.B);_.X=QD.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,QD.JSC$13301_CLICK_LOCATION_ID_MAP))};
_.X.onSitelinkTap=function(l){l.stopPropagation();var e,O,E=l==null?void 0:(e=l.model)==null?void 0:(O=e.item)==null?void 0:O.onTap;E&&this.ytSparklesClickLocationBehavior.handleClick(E,l,!1)};
_.X.onTap=function(l){var e=this.data&&this.data.content&&this.data.content.navigationEndpoint;e&&this.ytSparklesClickLocationBehavior.handleClick(e,l,!1)};
_.X.sendImpression=function(){if(this.data&&this.data.content)for(var l=_.b(this.data.content.impressionEndpoints||[]),e=l.next();!e.done;e=l.next()){e=_.b(e.value.loggingUrls||[]);for(var O=e.next();!O.done;O=e.next())O=O.value,O.baseUrl&&QZ(O.baseUrl,O.attributionSrcMode)}};
QD.prototype.onTap=QD.prototype.onTap;QD.prototype.dataChanged=QD.prototype.dataChanged;QD.JSC$13301_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"]]);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],QD.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],QD.prototype,"data",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QD.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],QD.prototype,"onTap",null);_.L([_.U({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],QD);
_.Y(QD,"ytd-promoted-sparkles-text-search-renderer",function(){if(JVx!==void 0)return JVx;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return JVx=l},{mode:1});var XAF;var x_=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-mute-ad-action":"handleMuteAd"};return l};
_.m(x_,_.B);_.X=x_.prototype;
_.X.configureRendererStamper=function(){return{"data.menu":{id:_.a("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]]"}}}}}};
_.X.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.X.computeHasAdBadge=function(l){return!(l==null||!l.adBadge)};
_.X.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",x_.JSC$13310_DEFAULT_AD_BADGE_RENDERER),_.oB(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,x_.JSC$13310_CLICK_LOCATION_ID_MAP))};
_.X.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var l;(((l=this.data)==null?void 0:l.impressionCommands)||[]).forEach(function(e){e=_.b(e.loggingUrls||[]);for(var O=e.next();!O.done;O=e.next())O=O.value,O.baseUrl&&QZ(O.baseUrl,O.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.X.onTap=function(l){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint,E;(e=(E=this.data)==null?void 0:E.thumbnailNavigationEndpoint)&&_.JM(_.ey(l),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(e,l,!1):O&&this.ytSparklesClickLocationBehavior.handleClick(O,l,!1)};
_.X.handleMuteAd=function(){this.collapsed=!0};
_.X.attached=function(){var l=this;_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.a("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Ji.Object.defineProperties(x_.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var l;return!(((l=this.data)==null?void 0:l.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var l;return!(((l=this.data)==null?void 0:l.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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}}});
x_.prototype.dataChanged=x_.prototype.dataChanged;
x_.JSC$13310_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"]]);
x_.JSC$13310_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ml("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.L([_.K(TE),_.q("design:type",Object)],x_.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.K([_.ZH.YtActionHandlerBehavior]),_.q("design:type",Object)],x_.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],x_.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],x_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],x_.prototype,"collapsed",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],x_.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],x_.prototype,"biggerThumbsStyle",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.q("design:type",Boolean)],x_.prototype,"fixAlignmentSmallScreens",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs_square")}}),
_.q("design:type",Boolean)],x_.prototype,"useBiggerThumbsSquare",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.mediaHoverOverlay"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"hideHoverOverlay",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"webSearchLayout",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"webSearchLayoutLandscape",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"webSearchLayoutSquare",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"sparklesCtaNoBackground",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.actionButton"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"hideActionButton",null);_.L([_.T({computed:"computeButtonOverride(uiUpdate)"}),_.q("design:type",Object)],x_.prototype,"buttonOverride",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.q("design:type",Boolean)],x_.prototype,"hasNewAdBadge",void 0);_.L([_.R("data.promotedSparklesWebStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],x_.prototype,"useRoundedBadge",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],x_.prototype,"dataChanged",null);_.L([_.U({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],x_);
_.Y(x_,"ytd-promoted-sparkles-web-renderer",function(){if(XAF!==void 0)return XAF;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return XAF=l},{mode:1});var zXk;var lw=function(){return _.B.apply(this,arguments)||this};
_.m(lw,_.B);_.X=lw.prototype;_.X.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]]"}}}}}};
_.X.computeShowCta=function(l){return!(l==null||!l.ctaRenderer)};
_.X.onCtaClick=function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.ctaRenderer)==null?void 0:(O=e.buttonRenderer)==null?void 0:O.command;E&&this.ytComponentBehavior.resolveCommand(E)};
_.X.onWatchButtonClick=function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.watchButtonRenderer)==null?void 0:(O=e.buttonRenderer)==null?void 0:O.command;E&&this.ytComponentBehavior.resolveCommand(E)};
_.X.onTap=function(){};
_.X.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",lw.JSC$13313_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",lw.JSC$13313_DEFAULT_CLICK_LOCATION_BEHAVIOR,lw.JSC$13313_CLICK_LOCATION_ID_MAP),this.thumbnail)){var l=this.thumbnail.getElementsByTagName("a");l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href")}};
_.X.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var l=_.b(this.data.impressionUrls),e=l.next();!e.done;e=l.next())e=e.value,dvA(e,i0g(e));this.data.impressionsFired=!0}};
_.X.maybeComputeHref=function(){return null};
_.X.computeIsShortDR=function(l){return!(l==null||!l.watchButtonRenderer)&&!(l==null||!l.ctaRenderer)&&!!this.enableShortDR};
_.X.computeIsNewUiOrShortDr=function(l){return!!this.enableUiUpdate||this.computeIsShortDR(l)};
_.X.computeIsNewUiAndNotShortDr=function(l){return!!this.enableUiUpdate&&!this.computeIsShortDR(l)};
_.X.computeHideAvatar=function(l){return!((l==null?0:l.channelThumbnail)&&this.computeIsNewUiOrShortDr(l))};
_.X.onClick=function(l){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint;if(this.enableShortDR&&O&&(_.I(O,_.ej)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(O,l,!!_.I(O,_.ej)),l.stopPropagation();else if(O&&_.I(O,_.ej))this.ytSparklesClickLocationBehavior.handleClick(O,l,!0),l.stopPropagation();else if(O){var E,J;((E=this.data)==null?0:E.navigationEndpoint)&&((J=this.data)==null?0:J.adPlaybackContextParams)&&bnV(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(O)}};
_.X.computeButtonOverride=function(l){if(this.computeIsNewUiOrShortDr(l))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.X.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.X.onThumbnailContainerClick=function(l){this.onClick(l)};
_.X.computeThumbnailWidth=function(l,e){return l?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:360};
_.X.attached=function(){var l=this;_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.a("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
lw.prototype.dataChanged=lw.prototype.dataChanged;lw.prototype.onTap=lw.prototype.onTap;lw.JSC$13313_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ml("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};lw.JSC$13313_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
lw.JSC$13313_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"}];_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.L([_.K(TE),_.q("design:type",Object)],lw.prototype,"ytdActiveViewBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],lw.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],lw.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lw.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],lw.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_video_display_compact_button_group_for_desktop_search")}}),
_.q("design:type",Boolean)],lw.prototype,"enableShortDR",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_vac_ui_update_for_desktop_search")}}),
_.q("design:type",Boolean)],lw.prototype,"enableUiUpdate",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],lw.prototype,"biggerThumbsStyle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.q("design:type",Boolean)],lw.prototype,"showCta",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.q("design:type",Boolean)],lw.prototype,"isShortDr",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.q("design:type",Boolean)],lw.prototype,"isShortDrOrNewUi",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.q("design:type",Boolean)],lw.prototype,"isNewUiAndNotShortDr",void 0);_.L([_.T({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],lw.prototype,"buttonOverride",void 0);_.L([_.T({computed:"computeSecondaryButtonOverride(data)"}),_.q("design:type",Object)],lw.prototype,"secondaryButtonOverride",void 0);_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],lw.prototype,"thumbnail",void 0);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lw.prototype,"onTap",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lw.prototype,"dataChanged",null);_.L([_.U({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],lw);
_.Y(lw,"ytd-promoted-video-renderer",function(){if(zXk!==void 0)return zXk;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zXk=l},{mode:1});var by6;var eg=function(){var l=_.B.apply(this,arguments)||this;l.useRoundedBadge=!0;l.sitelinkIds=[];return l};
_.m(eg,_.B);_.X=eg.prototype;
_.X.configureRendererStamper=function(){return{"data.menu":{id:_.a("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]]"}}}}}};
_.X.dataChanged=function(){var l;(l=this.data)!=null&&l.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,eg.JSC$13320_CLICK_LOCATION_ID_MAP)};
_.X.onTap=function(l){var e,O=(e=this.data)==null?void 0:e.navigationCommand;O&&!_.JM(_.ey(l),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(O,l,!1)};
_.X.onSitelinkTap=function(l){var e,O,E=l==null?void 0:(e=l.model)==null?void 0:(O=e.item)==null?void 0:O.onTap;E&&this.ytSparklesClickLocationBehavior.handleClick(E,l,!1)};
_.X.configureSitelinkClickTargets=function(){var l=this,e,O,E=(e=this.data)==null?void 0:(O=e.clickLocationTargets)==null?void 0:O.find(function(J){return J.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
E&&_.ud(this.hostElement).querySelectorAll(".sitelink").forEach(function(J){_.oB(J,"yt-simple-endpoint",!0);l.sitelinkIds.push(J.id);var z,M;(z=l.ytSparklesClickLocationBehavior)==null||(M=z.clickTargetMap)==null||M.set(J.id,E)})};
_.X.sendImpression=function(){var l,e,O=((l=this.data)==null?void 0:(e=l.impressionCommand)==null?void 0:e.loggingUrls)||[];l=_.b(O);for(e=l.next();!e.done;e=l.next())e=e.value,e.baseUrl&&QZ(e.baseUrl,e.attributionSrcMode)};
_.X.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Ji.Object.defineProperties(eg.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
eg.prototype.onTap=eg.prototype.onTap;eg.prototype.dataChanged=eg.prototype.dataChanged;eg.JSC$13320_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"]]);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],eg.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eg.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],eg.prototype,"showFavicon",null);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],eg.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],eg.prototype,"biggerThumbsStyle",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.q("design:type",Boolean)],eg.prototype,"enableThumbnailScalingFix",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eg.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],eg.prototype,"onTap",null);_.L([_.U({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],eg);
_.Y(eg,"ytd-text-image-no-button-layout-renderer",function(){if(by6!==void 0)return by6;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return by6=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var M5i;var O_=function(){var l=_.B.apply(this,arguments)||this;l.isInlinePlaybackState=!1;l.uiUpdate=_.a("web_modern_buttons");l.hideCta=_.a("hide_cta_for_home_web_video_ads");l.noBottomMargin=!1;l.animateInTimeStamp=_.Cv("hide_cta_for_home_web_video_ads_animate_in_time");l.animateInCta=!1;l.isHovered=!1;l.player=null;l.JSC$13327_playerEvents=new Map;l.JSC$13327_preventProgressSaveTimer=null;l.delayedCtaJobId=null;return l};
_.m(O_,_.B);_.X=O_.prototype;_.X.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]]"}}}}}};
_.X.attached=function(){this.JSC$13327_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13327_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.a("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.X.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13327_playerEvents)};
_.X.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",O_.JSC$13326_DEFAULT_CLICK_LOCATION_BEHAVIOR,O_.JSC$13326_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.X.hoverChanged=function(){var l=this;this.delayedCtaJobId&&(_.UD.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.a("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.pT(_.UD,function(){l.buttonContainer.classList.add("show-delayed-buttons")},_.Cv("delayed_cta_on_web_delay_milliseconds")))};
_.X.setPlayer=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return(e=_.dQ(l.hostElement,"yt-get-inline-preview-player-action"))&&e[0]?_.C(O,e[0].getPlayerPromise(),3):O.jumpTo(0);l.player=O.yieldResult;l.ytPlayerListenerBehavior.listenToPlayerEvents(l.player,l.JSC$13327_playerEvents);_.Cl(O)})};
_.X.onPlaybackStart=function(){var l=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13327_preventProgressSaveTimer=_.WF(_.UD,function(){l.JSC$13327_preventProgressSaveTimer=null},1E4))};
_.X.onVideoProgress=function(l){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&l>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.X.resetPreventProgressSaveTimer=function(){_.UD.cancelJob(this.JSC$13327_preventProgressSaveTimer);this.JSC$13327_preventProgressSaveTimer=null};
_.X.getSimpleString=function(l){return _.lG(l)};
_.X.onClick=function(l){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint,E;e=(E=this.data)==null?void 0:E.channelEndpoint;var J,z;(E=(z=_.I((J=this.data)==null?void 0:J.adCtaButton,_.YU))==null?void 0:z.command)&&_.JM(_.ey(l),this.hostElement,["call-to-action"])?_.a("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(E,l,!1):e&&_.JM(_.ey(l),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(e,l,!1):!_.JM(_.ey(l),this.hostElement,["secondary-button"])&&O&&(_.a("enable_short_dr_for_desktop_launchable")?(J=!!_.I(O,_.ej),this.isInlinePlaybackState&&J&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(O,l,J)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(O,l,!0)))}};
_.X.updateWatchEndpointStartTime=function(){var l,e;this.player&&((l=this.data)==null?0:l.inlinePlaybackEndpoint)&&((e=this.data)==null?0:e.navigationEndpoint)&&!this.JSC$13327_preventProgressSaveTimer&&(l=Math.floor(this.player.getCurrentTime()),_.I(this.data.navigationEndpoint,_.ej).startTimeSeconds=l,_.I(this.data.inlinePlaybackEndpoint,_.ej).startTimeSeconds=l)};
_.X.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.X.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Ji.Object.defineProperties(O_.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.a("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.watchButton)&&!((e=this.data)==null||!e.adCtaButton)}}});
O_.prototype.hoverChanged=O_.prototype.hoverChanged;O_.prototype.dataChanged=O_.prototype.dataChanged;
O_.JSC$13326_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"]]);
O_.JSC$13326_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"}];
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],O_.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],O_.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],O_.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],O_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],O_.prototype,"isInlinePlaybackState",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],O_.prototype,"miniMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],O_.prototype,"uiUpdate",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],O_.prototype,"hideCta",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],O_.prototype,"noBottomMargin",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],O_.prototype,"animateInCta",void 0);_.L([_.T({computed:"computeButtonOverride(uiUpdate)"}),_.q("design:type",Object)],O_.prototype,"buttonOverride",void 0);
_.L([_.T({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.q("design:type",Object)],O_.prototype,"secondaryButtonOverride",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],O_.prototype,"isHovered",void 0);_.L([_.aB("#button-container"),_.q("design:type",HTMLElement)],O_.prototype,"buttonContainer",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],O_.prototype,"typographyBump",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("typographyBump"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],O_.prototype,"typographyBumpV2",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],O_.prototype,"dataChanged",null);_.L([_.AA("isHovered"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],O_.prototype,"hoverChanged",null);
_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],O_.prototype,"isButtonGroup",null);_.L([_.U({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],O_);
_.Y(O_,"ytd-ad-inline-playback-meta-block",function(){if(M5i!==void 0)return M5i;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return M5i=l},{mode:_.Wf("kevlar_poly_si_batch_j065")?1:2});var V5k;var E_=function(){var l=_.B.apply(this,arguments)||this;l.noBottomMargin=!1;l.isInlinePreviewTriggered=!1;l.JSC$13332_activeViewMeasurementDataResolver=_.x7();return l};
_.m(E_,_.B);_.X=E_.prototype;_.X.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){var l=this;this.updateInlinePreviewHoverListeners();this.JSC$13332_activeViewMeasurementDataResolver.promise.then(function(e){l.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)});
_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){this.clearInlinePreviewHoverListeners();_.a("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13332_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:this.JSC$13332_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:AtF})};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$13332_inlinePreviewHoverListener)==null||CN(l)};
_.X.onDataChanged=function(){var l;((l=this.data)==null?0:l.activeView)&&this.JSC$13332_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",E_.JSC$13331_DEFAULT_CLICK_LOCATION_BEHAVIOR,E_.JSC$13331_CLICK_LOCATION_ID_MAP);this.thumbnail&&(l=this.thumbnail.getElementsByTagName("a"),l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href"));var e,O;if(((e=this.data)==
null?0:e.hasAutoplay)||((O=this.data)==null?0:O.forceImpAutoplay)){var E;(E=this.JSC$13332_inlinePreviewHoverListener)==null||fIL(E)}};
_.X.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.X.onThumbnailContainerClick=function(l){if(this.data&&this.data.navigationEndpoint){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(O,l,!!_.I(O,_.ej));l.stopPropagation()}};
_.X.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.X.impressionLog=function(){var l=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,O,E=(O=_.I((e=this.data)==null?void 0:e.onImpression,_.nz))==null?void 0:O.commands;E&&(E.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;l.ytComponentBehavior.resolveCommand(J)}),this.data.impressionsFired=!0)}};
_.Ji.Object.defineProperties(E_.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$13332_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
E_.prototype.onTypographyBumpChanged=E_.prototype.onTypographyBumpChanged;E_.prototype.onDataChanged=E_.prototype.onDataChanged;E_.JSC$13331_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);E_.JSC$13331_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"}];
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],E_.prototype,"ytComponentBehavior",void 0);_.L([_.K(TE),_.q("design:type",Object)],E_.prototype,"ytdActiveViewBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],E_.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.qO),_.q("design:type",Object)],E_.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],E_.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],E_.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],E_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],E_.prototype,"noBottomMargin",void 0);
_.L([_.T(),_.q("design:type",Object)],E_.prototype,"isInlinePreviewTriggered",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],E_.prototype,"miniMode",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],E_.prototype,"typographyBump",void 0);_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],E_.prototype,"thumbnail",void 0);_.L([_.aB("#dismissible"),_.q("design:type",HTMLElement)],E_.prototype,"JSC$13332_dismissibleMedia",void 0);
_.L([_.aB("ytd-ad-inline-playback-meta-block"),_.q("design:type",HTMLElement)],E_.prototype,"adInlinePlaybackMetaBlock",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],E_.prototype,"onDataChanged",null);_.L([_.y0("typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],E_.prototype,"onTypographyBumpChanged",null);
_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],E_.prototype,"isHovered",null);_.L([_.U({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],E_);
_.Y(E_,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(V5k!==void 0)return V5k;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return V5k=l},{mode:1});var Zy1;var Jh=function(){var l=_.B.apply(this,arguments)||this;l.isInlinePreviewTriggered=!1;l.JSC$13335_activeViewMeasurementDataResolver=_.x7();return l};
_.m(Jh,_.B);_.X=Jh.prototype;_.X.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.attached=function(){var l=this;this.updateInlinePreviewHoverListeners();this.JSC$13335_activeViewMeasurementDataResolver.promise.then(function(e){l.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)})};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13335_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:this.JSC$13335_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:AtF})};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$13335_inlinePreviewHoverListener)==null||CN(l)};
_.X.onDataChanged=function(){var l;((l=this.data)==null?0:l.activeView)&&this.JSC$13335_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Jh.JSC$13334_DEFAULT_CLICK_LOCATION_BEHAVIOR,Jh.JSC$13334_CLICK_LOCATION_ID_MAP);this.thumbnail&&(l=this.thumbnail.getElementsByTagName("a"),l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href"))};
_.X.onThumbnailContainerClick=function(l){if(this.data&&this.data.navigationEndpoint){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(O,l,!0);l.stopPropagation()}};
_.X.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.X.impressionLog=function(){var l=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,O,E=(O=_.I((e=this.data)==null?void 0:e.onImpression,_.nz))==null?void 0:O.commands;E&&(E.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;_.V2().resolve(_.Zh).resolveCommand(J,{form:{element:l.hostElement}})}),this.data.impressionsFired=!0)}};
_.Ji.Object.defineProperties(Jh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$13335_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Jh.prototype.onDataChanged=Jh.prototype.onDataChanged;Jh.JSC$13334_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Jh.JSC$13334_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"}];_.L([_.K(TE),_.q("design:type",Object)],Jh.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Jh.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],Jh.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Jh.prototype,"ytdReduxBehavior",void 0);
_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],Jh.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Jh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Jh.prototype,"isInlinePreviewTriggered",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],Jh.prototype,"miniMode",void 0);_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],Jh.prototype,"thumbnail",void 0);
_.L([_.aB("#dismissible"),_.q("design:type",HTMLElement)],Jh.prototype,"JSC$13335_dismissibleMedia",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jh.prototype,"onDataChanged",null);_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Jh.prototype,"isHovered",null);_.L([_.U({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Jh);
_.Y(Jh,"ytd-video-display-full-buttoned-renderer",function(){if(Zy1!==void 0)return Zy1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Zy1=l},{mode:1});var nk=function(l,e,O,E){E=E===void 0?!1:E;_.l2.call(this,l);this.adsClientErrorMessage=O;this.aggressivelySample=E;this.args=[];e&&this.args.push(e)};
_.m(nk,_.l2);var w$=function(l,e,O,E){E=E===void 0?!1:E;_.l2.call(this,l);this.adsClientErrorMessage=O;this.aggressivelySample=E;this.args=[];e&&this.args.push(e)};
_.m(w$,_.l2);var uTC=function(l){_.y6.call(this);var e=this;this.initializationFunction=l;this.instance=null;this.addOnDisposeCallback(function(){_.Q9(e.instance);e.instance=null})};
_.m(uTC,_.y6);uTC.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.VP("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var azd=function(){var l=new Map;[].forEach(function(e){l.set(e.JSC$26954_getType(),e)})};new Promise(function(){});var gIV=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"]]),WTu=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"}]]),CD1=function(l){this.experimentApiProvider=l;l=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=l<.1};var Xt=function(l,e,O,E){_.y6.call(this);this.adsControlFlowEventListeners=e;this.adEventLogger=O;this.experimentApiProvider=E;this.adsControlFlowManagerHelper=l(this,this,this,this,this);_.oQ(this,this.adsControlFlowManagerHelper);l=_.b(e);for(e=l.next();!e.done;e=l.next())_.oQ(this,e.value)};
_.m(Xt,_.y6);var oIq=function(l,e,O,E){zs(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",e,O,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E);l=_.b(l.adsControlFlowEventListeners);for(E=l.next();!E.done;E=l.next())oIq(E.value,e,O)};
_.X=Xt.prototype;_.X.onOpportunityProcessedExternallyManaged=function(l,e,O,E){zs(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",l,O,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E)};
_.X.onSlotReceivedExternallyManaged=function(l,e){bw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",l,e)};
_.X.onSlotEntered=function(l){if(MN(this.adsControlFlowManagerHelper,l)!=null){bw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",l);this.adsControlFlowManagerHelper.onSlotEntered(l);for(var e=_.b(this.adsControlFlowEventListeners),O=e.next();!O.done;O=e.next())O.value.onSlotEntered(l);if(MN(this.adsControlFlowManagerHelper,l)!=null&&MN(this.adsControlFlowManagerHelper,l).isOccupyingSlotType()&&V3(this.adsControlFlowManagerHelper,l)&&!$ER(this.adsControlFlowManagerHelper,l)){var E;Zk(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",l,(E=V3(this.adsControlFlowManagerHelper,l))!=null?E:void 0);l=MN(this.adsControlFlowManagerHelper,l);l.slotLifecycleStage!=="entered"&&uw(l.slot,l.slotLifecycleStage,"enterLayoutForSlot");l.slotLifecycleStage="rendering";l.registeredLayoutRenderingAdapter.startRendering(l.layout)}}};
_.X.onSlotExited=function(l){if(MN(this.adsControlFlowManagerHelper,l)!=null){bw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);this.adsControlFlowManagerHelper.onSlotExited(l);for(var e=_.b(this.adsControlFlowEventListeners),O=e.next();!O.done;O=e.next())O.value.onSlotExited(l);MN(this.adsControlFlowManagerHelper,l)!=null&&MN(this.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests&&WTk(this,l)}};
_.X.onLayoutReceivedExternallyManaged=function(l,e,O){l.managerLayer!=="core"&&Zk(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",l,e,O)};
var dEq=function(l,e,O){if(MN(l.adsControlFlowManagerHelper,e)!=null){Zk(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,O);l=_.b(l.adsControlFlowEventListeners);for(var E=l.next();!E.done;E=l.next())dEq(E.value,e,O)}};
Xt.prototype.onLayoutExited=function(l,e,O){if(MN(this.adsControlFlowManagerHelper,l)!=null){Zk(this.adEventLogger,dEV(O),l,e);this.adsControlFlowManagerHelper.onLayoutExited(l,e);for(var E=_.b(this.adsControlFlowEventListeners),J=E.next();!J.done;J=E.next())J.value.onLayoutExited(l,e,O);(O=V3(this.adsControlFlowManagerHelper,l))&&e.layoutId===O.layoutId&&gIq(this,l)}};
Xt.prototype.disposeInternal=function(){var l=iyi(this.adsControlFlowManagerHelper);l=_.b(l);for(var e=l.next();!e.done;e=l.next())WTk(this,e.value);_.y6.prototype.disposeInternal.call(this)};
var WTk=function(l,e){if(MN(l.adsControlFlowManagerHelper,e)!=null)if(MN(l.adsControlFlowManagerHelper,e).JSC$26985_isSlotExitRequested()||MN(l.adsControlFlowManagerHelper,e).JSC$26985_isLayoutExitRequested())MN(l.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(MN(l.adsControlFlowManagerHelper,e).isOccupyingSlotType())MN(l.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0,gIq(l,e);else if(MN(l.adsControlFlowManagerHelper,e).JSC$26985_isSlotFillRequested())MN(l.adsControlFlowManagerHelper,
e).markedForUnscheduleAfterOutboundAdapterRequests=!0,MN(l.adsControlFlowManagerHelper,e)!=null&&(bw(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",e),e=MN(l.adsControlFlowManagerHelper,e),e.fulfillmentLifecycleStage="fill_cancel_requested",e.registeredFulfillmentAdapter.cancelSlotFilling());else{var O=V3(l.adsControlFlowManagerHelper,e),E;l.experimentApiProvider.get();(E=_.a("h5_enable_layout_unscheduling_events"))&&(O?wAi(l,e,O):_.VP(Error("Ih"),e,O,void 0,!1));bw(l.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",e);var J=MN(l.adsControlFlowManagerHelper,e),z=e.slotEntryTrigger,M=J.registeredSlotEntryTriggerAdapters.get(z.triggerId);M&&(M.unregisterTrigger(z),J.registeredSlotEntryTriggerAdapters.delete(z.triggerId));z=_.b(e.slotFulfillmentTriggers);for(M=z.next();!M.done;M=z.next()){M=M.value;var Z=J.registeredFulfillmentTriggerAdapters.get(M.triggerId);Z&&(Z.unregisterTrigger(M),J.registeredFulfillmentTriggerAdapters.delete(M.triggerId))}z=_.b(e.slotExpirationTriggers);
for(M=z.next();!M.done;M=z.next())if(M=M.value,Z=J.registeredExpirationTriggerAdapters.get(M.triggerId))Z.unregisterTrigger(M),J.registeredExpirationTriggerAdapters.delete(M.triggerId);J.hasLayout()&&(z=J.layout,Cq(J,z.layoutExitNormalTriggers),Cq(J,z.layoutExitSkipTriggers),Cq(J,z.layoutExitMuteTriggers),Cq(J,z.layoutExitUserInputSubmittedTriggers),Cq(J,z.layoutExitUserCancelledTriggers));J.registeredFulfillmentAdapter=void 0;J.registeredSlotAdapter!=null&&(J.registeredSlotAdapter.release(),J.registeredSlotAdapter=
void 0);J.registeredLayoutRenderingAdapter!=null&&(J.registeredLayoutRenderingAdapter.release(),J.registeredLayoutRenderingAdapter=void 0);J=l.adsControlFlowManagerHelper;MN(J,e)&&(J=AVS(J,e.slotType+"_"+e.slotPhysicalPosition))&&J.delete(e.slotId);bw(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);l=_.b(l.adsControlFlowEventListeners);for(J=l.next();!J.done;J=l.next())J=J.value,J.onSlotUnscheduled(e),O&&!E&&wAi(J,e,O)}},wAi=function(l,e,O){Zk(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
e,O);
Zk(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",e,O);l=_.b(l.adsControlFlowEventListeners);for(var E=l.next();!E.done;E=l.next())E=E.value,O&&wAi(E,e,O)},gIq=function(l,e){if(MN(l.adsControlFlowManagerHelper,e)!=null&&MN(l.adsControlFlowManagerHelper,e).isOccupyingSlotType()){var O=V3(l.adsControlFlowManagerHelper,e);
if(O&&$ER(l.adsControlFlowManagerHelper,e)){if(MN(l.adsControlFlowManagerHelper,e)!=null){var E=l.adEventLogger,J;var z=((J=WTu.get("abandoned"))==null?void 0:J.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Zk(E,z,e,O);l=MN(l.adsControlFlowManagerHelper,e);l.slotLifecycleStage!=="rendering"&&uw(l.slot,l.slotLifecycleStage,"exitLayout");l.slotLifecycleStage="rendering_stop_requested";l.registeredLayoutRenderingAdapter.stopRendering(O,"abandoned")}}else{bw(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
e);try{E=MN(l.adsControlFlowManagerHelper,e);if(!E)throw new w$("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");E.slotLifecycleStage!=="enter_requested"&&E.slotLifecycleStage!=="entered"&&E.slotLifecycleStage!=="rendering"&&uw(E.slot,E.slotLifecycleStage,"exitSlot");E.slotLifecycleStage="exit_requested";if(E.registeredSlotAdapter===void 0)throw E.slotLifecycleStage="scheduled",new w$("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
E.registeredSlotAdapter.exit()}catch(M){M instanceof w$&&M.adsClientErrorMessage?(nI0(l.adEventLogger,M.adsClientErrorMessage,e),_.VP(M,e,void 0,void 0,M.aggressivelySample)):(nI0(l.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",e),_.VP(M,e))}}}};var oo=function(l,e,O,E,J,z){_.y6.call(this);this.registry=l;this.experimentApiProvider=z;this.slotMap=new Map};
_.m(oo,_.y6);var AVS=function(l,e){return(l=l.slotMap.get(e))?l:new Map},MN=function(l,e){return AVS(l,e.slotType+"_"+e.slotPhysicalPosition).get(e.slotId)},iyi=function(l){var e=[];
l.slotMap.forEach(function(O){O=_.b(O.values());for(var E=O.next();!E.done;E=O.next())e.push(E.value.slot)});
return e};
oo.prototype.onSlotEntered=function(l){l=MN(this,l);l.slotLifecycleStage!=="enter_requested"&&uw(l.slot,l.slotLifecycleStage,"onSlotEntered");l.slotLifecycleStage="entered"};
var $ER=function(l,e){l=MN(l,e);return l.hasLayout()&&l.isRendering()},V3=function(l,e){(l=MN(l,e))?l.hasLayout()&&!l.layout&&_.VP("Unexpected empty layout",e):_.VP("Unexpected undefined slotState",e);
return(l==null?void 0:l.layout)||null};
oo.prototype.onSlotExited=function(l){l=MN(this,l);l.slotLifecycleStage!=="exit_requested"&&uw(l.slot,l.slotLifecycleStage,"onSlotExited");l.slotLifecycleStage="scheduled"};
oo.prototype.onLayoutExited=function(l,e){l=MN(this,l);l.isPrimaryLayout(e)&&(l.slotLifecycleStage!=="rendering_stop_requested"&&uw(l.slot,l.slotLifecycleStage,"onLayoutExited"),l.slotLifecycleStage="entered")};
var Cq=function(l,e){e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=l.registeredLayoutExitTriggerAdapters.get(O.triggerId);E&&(E.unregisterTrigger(O),l.registeredLayoutExitTriggerAdapters.delete(O.triggerId))}},uw=function(l,e,O){_.VP("Slot stage was "+e+" when calling method "+O,l)};var kIR=function(l){_.y6.call(this);this.deps=l;this.JSC$13384_adsControlFlowManager=azq(this)};
_.m(kIR,_.y6);var azq=function(l){var e=new Xt(function(O,E,J,z){return new oo(l.deps.registry,O,E,J,z,l.deps.experimentApiProvider)},new Set(nIM(l.deps.registry).concat(l.deps.listeners)),l.deps.adEventLogger,l.deps.experimentApiProvider);
_.oQ(l,e);return e};var IzS=function(l,e){_.y6.call(this);this.experimentApiProvider=l;this.eventLoggingSettingsProvider=e;this.eventCount=0};
_.m(IzS,_.y6);IzS.prototype.logEvent=function(l){zs(this,l)};
var bw=function(l,e,O,E){zs(l,e,void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,void 0,E)},Zk=function(l,e,O,E,J){zs(l,e,void 0,void 0,void 0,O,E?E:void 0,void 0,void 0,O.adSlotLoggingData,E?E.adLayoutLoggingData:void 0,void 0,J)},nI0=function(l,e,O){zs(l,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:e})},zs=function(l,e,O,E,J,z,M,Z,u,d,g,w,n){n=n===void 0?0:n;
mEx(l.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",z,"layout:",M,"ping:",Z,"Opportunity:",{opportunityType:O,associatedSlotId:E,slotsFromOpportunity:J,triggerBundle:u,adSlotLoggingData:d,adLayoutLoggingData:g});try{var k=function(){l.experimentApiProvider.get();if(e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||_.VP("Empty PACF event type",z,M);var y=l.eventLoggingSettingsProvider.get();var c;(c=y.alwaysIncludeDebugData)||(y.experimentApiProvider.get(),c=
!1);y=c;c={eventType:e,eventOrder:++l.eventCount};var f={};z&&(f.slotData=wAA(y,z));if(M){var P={type:M.layoutType,controlFlowManagerLayer:gIV.get(M.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y&&(P.debugData={layoutId:M.layoutId});f.layoutData=P}Z&&(f.pingData={pingDispatchStatus:Z.dispatchStatus,serializedAdPingMetadata:Z.ping.serializedAdPingMetadata,pingIndex:Z.index});u&&(f.triggerData=iyA(u.trigger,u.category));O&&(f.opportunityData=AVg(y,O,E,J));c.adClientData=f;d&&(c.serializedSlotAdServingData=
d.serializedSlotAdServingDataEntry);g&&(c.serializedAdServingData=g.serializedAdServingDataEntry);w&&(c.errorInfo=w);_.Bm("adsClientStateChange",{adsClientEvent:c})}};
n&&n>0?_.fZ(_.Gi(),function(){return k()},n):k()}catch(y){mEx(l.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.fZ(_.Gi(),function(){_.VP(y instanceof Error?y:String(y),z,M,{pacf_message:"exception during pacf logging"})})}};var yVR=function(l,e){IzS.call(this,l,e)};
_.m(yVR,IzS);var pAR=function(){},mEx=function(l,e){return _.a(e)};var jR6=function(){var l=new KTi;this.JSC$13403_adsControlFlowManager=(new kIR(l)).JSC$13384_adsControlFlowManager},KTi=function(){_.y6.call(this);
var l=this;this.experimentApiProvider=new uTC(function(){return new pAR});
var e=new uTC(function(){return new CD1(l.experimentApiProvider)});
this.adEventLogger=new yVR(this.experimentApiProvider,e);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.m(KTi,_.y6);var Hy0=function(){},cV1,$m=function(){cV1||(cV1=new Hy0);
return cV1},W4=function(l){if(!l.JSC$13414_externallyManagedSlotAdapterCallback){var e=(new jR6).JSC$13403_adsControlFlowManager;
l.JSC$13414_externallyManagedSlotAdapterCallback=e}return l.JSC$13414_externallyManagedSlotAdapterCallback},FTR=function(l,e,O){var E=e.opportunityType,J=Error("Jh");
if(E!==void 0){var z=W4(l);oIq(z,E,void 0,O)}else _.VP(J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});z=[];if(e.adSlotAndLayoutMetadata!==void 0){e=_.b(e.adSlotAndLayoutMetadata);for(var M=e.next();!M.done;M=e.next()){var Z=M.value;if(M=Z.adSlotMetadata)if(z.push(M),l.onSlotReceivedExternallyManaged(M,O),Z.adLayoutMetadata){Z=_.b(Z.adLayoutMetadata);for(var u=Z.next();!u.done;u=Z.next())l.onLayoutReceivedExternallyManaged(M,u.value,O)}else O>0&&_.VP("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else O>0&&_.VP("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else O>0&&_.VP("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(E!==void 0)l.onOpportunityProcessedExternallyManaged(E,z,void 0,O);else _.VP(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Hy0.prototype.onSlotReceivedExternallyManaged=function(l,e){l=Ae(l);if(l instanceof w$)_.VP(l,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else W4(this).onSlotReceivedExternallyManaged(l,e)};
Hy0.prototype.onLayoutReceivedExternallyManaged=function(l,e,O){l=Ae(l);e=kIL(e);if(l instanceof w$)_.VP(l,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(e instanceof nk)_.VP(e,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else W4(this).onLayoutReceivedExternallyManaged(l,e,O)};
Hy0.prototype.onOpportunityProcessedExternallyManaged=function(l,e,O,E){var J=[];e=_.b(e);for(var z=e.next();!z.done;z=e.next())z=Ae(z.value),z instanceof w$?_.VP(z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):J.push(z);W4(this).onOpportunityProcessedExternallyManaged(l,J,O,E)};
var fzq=function(l,e){e=Ae(e);if(e instanceof w$)_.VP(e,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var O=W4(l);bw(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);O=_.b(O.adsControlFlowEventListeners);for(var E=O.next();!E.done;E=O.next())E=MN(E.value,e),E.slotLifecycleStage!=="not_scheduled"&&uw(E.slot,E.slotLifecycleStage,"onSlotScheduled"),E.slotLifecycleStage="scheduled";l=W4(l);bw(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);l=_.b(l.adsControlFlowEventListeners);
for(O=l.next();!O.done;O=l.next())O.value.onSlotEntered(e)}},RX1=function(l,e){e=Ae(e);
if(e instanceof w$)_.VP(e,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var O=W4(l);bw(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);O=_.b(O.adsControlFlowEventListeners);for(var E=O.next();!E.done;E=O.next())E.value.onSlotExited(e);l=W4(l);bw(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);l=_.b(l.adsControlFlowEventListeners);for(O=l.next();!O.done;O=l.next())O.value.onSlotUnscheduled(e)}},TWq=function(l,e,O){e=Ae(e);
O=kIL(O);if(e instanceof w$)_.VP(e,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(O instanceof nk)_.VP(O,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var E=W4(l);Zk(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",e,O);E=_.b(E.adsControlFlowEventListeners);for(var J=E.next();!J.done;J=E.next())J.value.onLayoutScheduled(e,O);l=W4(l);Zk(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,O);l=_.b(l.adsControlFlowEventListeners);
for(E=l.next();!E.done;E=l.next())dEq(E.value,e,O)}},dq=function(l,e,O){e=Ae(e);
O=kIL(O);if(e instanceof w$)_.VP(e,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(O instanceof nk)_.VP(O,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var E=W4(l);Zk(E.adEventLogger,dEV("normal"),e,O);E=_.b(E.adsControlFlowEventListeners);for(var J=E.next();!J.done;J=E.next())J.value.onLayoutExited(e,O,"normal");l=W4(l);l=_.b(l.adsControlFlowEventListeners);for(E=l.next();!E.done;E=l.next())wAi(E.value,e,O)}};_.gq=_.XO(function(l){var e=_.J3(l,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});l=Object.assign({},e);var O=e.data;e=e.customCommandResolver;var E=(delete l.data,delete l.customCommandResolver,l),J=_.e4("ad-image-view-model");_.O6(J,function(){return O().interaction},e,function(){var Z;
return(Z=E.listenToTapEvent)==null?void 0:Z.call(E)});
_.VR(J,{visibilityCallback:function(Z){var u,d=(u=O().interaction)==null?void 0:u.onFirstVisible;Z&&(d&&_.r6(d),E.setOnErrorHandler()&&Izg(J))},
showOption:_.lo});l=_.b(_.AF(!1,void 0,"eiYvIe"));var z=l.next().value,M=l.next().value;return _.W("ad-image-view-model",{class:function(){var Z,u=[((Z=O().interaction)==null?0:Z.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],d;((d=E.isGridViewEnabled)==null?0:d.call(E))&&u.push("ytwAdImageViewModelHostInGridView");return u.join(" ")},
el:J,"on:touchend":_.pd(function(){var Z;((Z=E.setTouchEndHandler)==null?0:Z.call(E))&&!z()&&(J.value.click(),M(!0),setTimeout(function(){M(!1)},100));
return!1})},_.W("div",{class:"ytwAdImageViewModelHostImageContainer"},_.W(_.Jm,{data:function(){var Z;
return{sources:O().imageSources,contentMode:(Z=O().imageProperties)==null?void 0:Z.contentMode}},
alt:function(){var Z,u;return((Z=O().interaction)==null?void 0:(u=Z.accessibility)==null?void 0:u.label)||""},
targetHeight:E.targetHeight,targetWidth:E.targetWidth,preserveHeight:E.preserveHeight,preserveWidth:E.preserveWidth,useWidth:E.useWidth,style:function(){var Z,u;return"vertical-align: bottom;"+(((Z=O().background)==null?0:Z.color)?"background-color:"+_.t$((u=O().background)==null?void 0:u.color)+";":"")},
className:function(){return E.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var Z,u;return(u=(Z=E.setDraggable)==null?void 0:Z.call(E))!=null?u:void 0}})))},"gb");var sR0=_.XO(function(l){var e=l.data,O=l.listenToTapEvent,E=_.e4("ad-button-hover-overlay-view-model");_.a("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.O6(E,function(){return e().interaction},void 0,function(){return O==null?void 0:O()});
_.VR(E,{visibilityCallback:function(z){var M,Z=(M=e().interaction)==null?void 0:M.onFirstVisible;z&&Z&&_.r6(Z)},
showOption:_.lo});var J=function(){};
return _.W("ad-button-hover-overlay-view-model",{"on:click":_.pd(function(){if(_.a("enable_web_home_top_landscape_image_layout_legacy_click_command")){var z,M=(z=e().interaction)==null?void 0:z.onTap;M&&_.$u(E.value,"yt-navigate",{endpoint:_.t3(M)})}}),
class:function(){var z;return((z=e().interaction)==null?0:z.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:E},function(){return _.a("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.W(_.Tn,{data:function(){return e().button}},{adButtonViewModel:function(z){return _.W(_.Oz,{data:z.data,
customCommandResolver:J})}}):_.W(_.Tn,{data:function(){return e().button}},{adButtonViewModel:_.Oz})}())},"hb");var a9;_.Zw(_.XO(function(l){var e=l.data;var O=_.e4("compact-landscape-no-button-layout-view-model");_.a("stop_av_measurement_on_detach")&&_.B3(function(){I9(O)});
_.O6(O,function(){return e().interaction},void 0,function(){return!0});
_.VR(O,{visibilityCallback:function(z){if(z){var M;(z=(M=e().interaction)==null?void 0:M.onFirstVisible)&&_.r6(z);var Z;if(M=(Z=e().adLayoutData)==null?void 0:Z.activeViewData)kJ(O,M),_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I9(O)})}else _.a("stop_av_measurement_on_detach")&&I9(O)},
showOption:_.lo,hideOption:ec});l=_.b(_.AF(!1,void 0,"yzu6qe"));var E=l.next().value,J=l.next().value;return _.W("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:O,"on:mouseenter":_.pd(function(){J(!0)}),
"on:mouseleave":_.pd(function(){J(!1)})},_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.HF({"max-width":function(){return _.a("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.W("div",{class:function(){var z;
a:{var M;switch((z=_.I(e().thumbnailImage,pnq))==null?void 0:(M=z.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":z="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":z="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}z=void 0}return z}},_.W(_.Tn,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(z){return _.W(_.gq,
{data:z.data,
listenToTapEvent:!0,setTouchEndHandler:_.a("enable_top_landscape_image_experiment_dom_id_web")})}})),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.A,{cond:function(){var z,M,Z;
return(z=_.I(e().thumbnailImage,pnq))==null?void 0:(M=z.imageProperties)==null?void 0:(Z=M.overlayIcon)==null?void 0:Z.iconImage},
then:function(z){return _.W(_.Jm,{data:z,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.W("div",{class:function(){return E()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.W(_.Tn,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(z){return _.W(sR0,
{data:z.data,
listenToTapEvent:!0})}}))),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.W(_.Tn,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(z){return _.W(NjR,{data:z.data,
listenToTapEvent:!0,setTouchEndHandler:_.a("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=_.e4("square-image-layout-view-model");_.a("stop_av_measurement_on_detach")&&_.B3(function(){I9(O)});
var E=_.Ld(_.vi);_.O6(O,function(){return e().interaction});
_.VR(O,{visibilityCallback:function(M){if(M){var Z;(M=(Z=e().interaction)==null?void 0:Z.onFirstVisible)&&_.r6(M);var u;if(Z=(u=e().adLayoutData)==null?void 0:u.activeViewData)kJ(O,Z),_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I9(O)})}else _.a("stop_av_measurement_on_detach")&&I9(O)},
showOption:_.lo,hideOption:ec});l={};var J={},z={};return _.W("square-image-layout-view-model",{class:_.ax("ytwSquareImageLayoutViewModelHost",(l.ytwSquareImageLayoutViewModelHostColumn=E,l)),el:O},_.W("div",{class:_.ax("ytwSquareImageLayoutViewModelHostImage",(J.ytwSquareImageLayoutViewModelHostColumnImage=E,J))},function(){return _.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(M){return _.W(_.gq,{data:M.data,
isGridViewEnabled:E,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.W("div",{class:_.ax("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=E,z))},_.W(_.Tn,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:NjR}),function(){return _.W(_.Tn,{data:function(){return e().adButton}},{adButtonViewModel:function(M){var Z={};
return _.W(_.Oz,{data:M.data,className:_.ax((Z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=E,Z))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=l.noBottomMargin;var E=l.typographyBump;var J=_.e4("top-landscape-image-layout-view-model");_.a("stop_av_measurement_on_detach")&&_.B3(function(){I9(J)});
_.a("enable_web_home_top_landscape_image_layout_level_click")&&_.O6(J,function(){return e().interaction},void 0,function(){return!0});
l=function(){return e().interaction};
l!==void 0&&l!==null||_.Nz(Error("Kh"));_.VR(J,{visibilityCallback:function(d){if(d){var g;(d=(g=e().interaction)==null?void 0:g.onFirstVisible)&&_.r6(d);var w;if(g=(w=e().adLayoutData)==null?void 0:w.activeViewData)kJ(J,g),_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I9(J)})}else _.a("stop_av_measurement_on_detach")&&I9(J)},
showOption:_.lo,hideOption:ec});var z=function(){var d,g,w;return(d=_.I(e().thumbnailImage,pnq))==null?void 0:(g=d.background)==null?void 0:(w=g.backgroundImageSource)==null?void 0:w.imageSources};
l=_.b(_.AF(!1,void 0,"GIwTMc"));var M=l.next().value,Z=l.next().value,u=function(){return M()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.W("top-landscape-image-layout-view-model",{class:function(){var d;return((d=e().interaction)==null?0:d.onTap)&&_.a("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:J,"on:mouseenter":_.pd(function(){Z(!0)}),
"on:mouseleave":_.pd(function(){Z(!1)})},_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.W(_.A,{cond:function(){return z()&&z().length>0},
then:function(){return _.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.HF({top:"0","background-image":function(){return"url("+String(z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.W(_.A,{cond:function(){return!!e().adButtonHoverOverlay},
then:function(){return _.W("div",{class:u},_.W(_.Tn,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:sR0}))}}),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.W(_.Tn,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(d){return _.W(_.gq,{data:d.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.a("enable_web_home_top_landscape_image_layout_level_click")})}})),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.Jm,{data:{sources:[{clientResource:{imageName:_.a("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.W(_.Tn,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.W(NjR,{data:d.data,
noBottomMargin:function(){return O==null?void 0:O()},
listenToTapEvent:function(){return _.a("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return E==null?void 0:E()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.lB,
noBottomMargin:_.lB,typographyBump:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=l.typographyBump;var E=_.e4("video-display-button-group-layout-view-model");_.VR(E,{visibilityCallback:function(J){if(J){var z;(J=(z=e().interaction)==null?void 0:z.onFirstVisible)&&_.r6(J);var M;z=(M=e().adLayoutData)==null?void 0:M.activeViewData;!_.a("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&z&&kJ(E,z)}},
showOption:_.lo,hideOption:ec});return _.W("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:E},_.W("div",null,_.W(_.Tn,{data:function(){return e().videoLockup}},{lockupViewModel:function(J){return _.W(_.Cw,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:O})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.lB,
noBottomMargin:_.lB,typographyBump:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=l.className;var E=l.typographyBump;var J=_.e4("video-display-compact-button-group-layout-view-model");_.VR(J,{visibilityCallback:function(z){if(z){var M;(z=(M=e().interaction)==null?void 0:M.onFirstVisible)&&_.r6(z);var Z;(M=(Z=e().adLayoutData)==null?void 0:Z.activeViewData)&&kJ(J,M)}},
showOption:_.lo});return _.W("video-display-compact-button-group-layout-view-model",{el:J,class:_.ax("videoDisplayCompactButtonGroupLayoutViewModelHost",O)},_.W(_.Tn,{data:function(){return e().videoLockup}},{lockupViewModel:function(z){return _.W(_.Cw,{data:z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:E})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.lB,
className:_.lB,typographyBump:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=l.typographyBump;var E=_.e4("video-display-full-layout-view-model");_.VR(E,{visibilityCallback:function(J){if(J){var z;(J=(z=e().interaction)==null?void 0:z.onFirstVisible)&&_.r6(J);var M;z=(M=e().adLayoutData)==null?void 0:M.activeViewData;!_.a("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&z&&kJ(E,z)}},
showOption:_.lo,hideOption:ec});return _.W("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:E},_.W("div",null,_.W(_.Tn,{data:function(){return e().videoLockup}},{lockupViewModel:function(J){return _.W(_.Cw,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:O})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.lB,
noBottomMargin:_.lB,typographyBump:_.lB}});_.GIq=_.XO(function(l){var e=l.data;l=_.e4("ad-card-badge-view-model");return _.W("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:l},_.W(_.A,{cond:function(){return e().imageBadge},
then:function(O){return _.W(_.Jm,{data:O,alt:""})}}))},"ob");var BWH=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;l=_.e4("carousel-ad-card-image-view-model");_.O6(l,function(){return e().interaction},O);
_.VR(l,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});return _.W("carousel-ad-card-image-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:l,"aria-label":function(){var E,J;return(E=e().interaction)==null?void 0:(J=E.accessibility)==null?void 0:J.label}},_.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.W(_.gq,{data:E.data,
customCommandResolver:O})}}),_.W("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.W(_.Tn,{data:function(){return e().badge}},{adCardBadgeViewModel:_.GIq})),_.W(_.Rx,{model:{color:4}}))},"pb");var PDi=_.XO(function(l){var e=_.b(_.AF(0,void 0,"o9Bzd")),O=e.next().value;e.next();var E=e.next().value,J=_.b(_.AF(!1,void 0,"KLdzYe"));e=J.next().value;var z=J.next().value,M;_.B3(function(){clearTimeout(M)});
J=_.pd(function(){var d;((d=l.animate)==null?0:d.call(l))?(z(!0),M=setTimeout(function(){z(!1);Z()},200)):Z();
return!1});
var Z=function(){E(function(d){return(d+l.numShownItems())%l.data().length})},u={};
return _.W("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.W("div",{class:_.ax("ytwHorizontalCarouselCarouselWrapper")},_.W("div",{class:_.ax("ytwHorizontalCarouselCarouselInnerWrapper",(u.ytwHorizontalCarouselAnimating=e,u))},_.W(_.KH,{each:l.data,keyBy:"INDEX"},function(d,g){return _.W("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.HF({"flex-basis":function(){return"calc((100% - (8px * "+(l.numShownItems()-1)+")) / "+l.numShownItems()+")"},
order:function(){var w=g-O();w<0&&(w+=l.data().length);return w}})},l.children(d,g))}))),_.W("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":J},l.nextButton()))},"qb");var UEx=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;var E=l.expansive;l=_.e4("carousel-ad-card-collection-view-model");_.VR(l,{visibilityCallback:function(J){var z,M=(z=e().interaction)==null?void 0:z.onFirstVisible;J&&M&&_.r6(M)},
showOption:_.lo});return _.W("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:l},_.W(PDi,{data:function(){var J;return((J=e())==null?void 0:J.carouselAdCards)||[]},
nextButton:function(){return _.W(_.Tn,{data:function(){return e().nextButton}},{buttonViewModel:function(J){var z=J.data;
return _.W(_.hM,{data:function(){return(E==null?0:E())?Object.assign({},z(),{style:"mono"}):z()},
className:_.a("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(J){return _.W(_.Tn,{data:J},{carouselAdCardImageViewModel:function(z){return _.W(BWH,{data:z.data,customCommandResolver:O})}})}))},"rb");var YiH=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;var E=l.className;var J=l.buttonClassName;var z=l.animationEntityKey;var M=l.expansive;return _.W("carousel-button-view-model",{class:_.ax("ytwCarouselButtonViewModelHost",E)},_.W(_.Tn,{data:function(){return e().carousel}},{carouselAdCardCollectionViewModel:function(Z){return _.W(UEx,{data:Z.data,
customCommandResolver:O,expansive:M})}}),_.W(_.Tn,{data:function(){return e().button}},{adButtonViewModel:function(Z){var u=Z.data;
return _.W(_.Oz,{data:function(){return(M==null?0:M())?Object.assign({},u(),{style:"AD_BUTTON_STYLE_TONAL"}):u()},
className:J,customCommandResolver:O,animationEntityKey:z})}}))},"sb");_.hXx=_.XO(function(l){var e=l.data;l=l.className;var O=_.e4("pivot-button-view-model");_.sC(function(){var E;((E=e())==null?0:E.backgroundColor)&&O.value.setAttribute("data-background-color",String(e().backgroundColor))});
return _.W("pivot-button-view-model",{el:O,class:_.ax("ytwPivotButtonViewModelHost",l)},_.W(_.$8,{command:function(){var E=e();E=E.onClickCommand?_.t3(E.onClickCommand):E.contentDescription?_.Xv(E.contentDescription):void 0;return E},
ariaLabel:function(){return e().contentDescription}},_.W(_.A,{cond:function(){return e().thumbnail},
then:function(E){return _.W(_.Jm,{data:E,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.W(_.A,{cond:function(){return e().icon},
then:function(E){return _.W(_.cF,{icon:function(){return E().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.LTS=_.XO(function(l){var e=l.data;var O=l.buttonShapeOverrideables;return _.W("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.W(_.Tn,{data:function(){return e().buttonViewModels}},{buttonViewModel:function(E){return _.W(_.hM,{data:E.data,
buttonOverrides:O})},
likeButtonViewModel:function(E){return _.W(_.TB,{data:E.data,buttonShapeOverrideables:O})},
dislikeButtonViewModel:function(E){return _.W(_.FK,{data:E.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(E){return _.W(_.sh,{data:E.data,buttonShapeOverrides:O})}}))},"ub");var t5i=_.XO(function(l){var e=l.avatar;var O=l.headline;var E=l.badge;var J=l.description;var z=l.expansive;l={};return _.W("yt-ad-metadata-shape",{class:_.ax("ytAdMetadataShapeHost",(l.ytAdMetadataShapeHostLarge=z,l))},_.W("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.W(_.A,{cond:e,then:function(M){return _.W(_.Lj0,{data:function(){return(z==null?0:z())?Object.assign({},M(),{size:"AD_AVATAR_SIZE_MPLUS"}):M()}})}}),_.W("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.W(_.zK,{text:O,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.W(_.A,{cond:E,then:function(M){return _.W(_.Zi,{data:function(){return(z==null?0:z())?Object.assign({},M(),{style:"AD_BADGE_STYLE_STARK"}):M()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.W("h2",{class:"ytAdMetadataShapeHostDescription"},_.W(_.zK,{text:J,
linkInheritColor:!0})))},"vb");var qiq=_.XO(function(l){var e=l.data;var O=l.onShow;var E=l.expansive;l=_.e4("reels-ad-card-buttoned-view-model");_.O6(l,function(){return e().interaction});
_.sC(function(){var z,M=(z=e().animatedRenderingConfig)==null?void 0:z.delayedSecondsToVisible;if(M){var Z=setTimeout(O,M*1E3);_.B3(function(){clearTimeout(Z)})}});
var J={};return _.W("reels-ad-card-buttoned-view-model",{class:_.ax(function(){var z;return((z=e().interaction)==null?0:z.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(J.ytwReelsAdCardButtonedViewModelHostExpansive=E,J)),
el:l},_.W(t5i,{avatar:function(){return _.I(e().avatar,mJS)},
headline:function(){return e().headline},
badge:function(){return _.I(e().adBadge,ycq)},
description:function(){return e().description},
expansive:E}),_.W(_.Tn,{data:function(){return e().ctaButton}},{adButtonViewModel:function(z){var M=z.data;
return _.W(_.Oz,{data:function(){return(E==null?0:E())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_FILLED"}):M()}})}}))},"wb");var vIS=_.XO(function(l){var e=l.data;l=l.expansive;var O=_.e4("reels-ad-metadata-view-model");_.a("web_ad_metadata_clickable")&&_.O6(O,function(){return e().interaction});
var E={};E=_.Ix("ytwReelsAdMetadataViewModelHost",(E.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.a("web_ad_metadata_clickable"),E));return _.W("reels-ad-metadata-view-model",{class:E,el:O},_.W(t5i,{avatar:function(){return _.I(e().avatar,mJS)},
headline:function(){return e().headline},
badge:function(){return _.I(e().adBadge,ycq)},
description:function(){return e().description},
expansive:l}))},"xb");var NWk={iconPosition:"icon-with-label",size:"L"},rVx=_.XO(function(l){var e=l.data;var O=l.overlayDensity;l=_.e4("reels-player-overlay-layout-view-model");var E=_.Et(O,0),J=function(){var w;return(w=e().reelsAdCardButtonedEntityKey)!=null?w:""},z=function(){return J()+"/ad_button"},M=_.kD(k6p,J),Z=function(){var w,n;
return(n=(w=M())==null?void 0:w.value)!=null?n:!1},u=_.Ld(cVT),d=function(){return Object.assign({},NWk,(u()||E()===2)&&{style:"overlay-dark"})};
O={};var g={};return _.W("reels-player-overlay-layout-view-model",{class:_.ax("ytwReelsPlayerOverlayLayoutViewModelHost",(O.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!e().extension},O.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},O)),
"overlay-density":function(){return String(E())},
el:l},_.W("div",{class:_.ax("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(g.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},g))},_.W("div",{"aria-hidden":function(){return Z()},
class:_.ax("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return Z()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.HF({"transition-duration":function(){return RXT(e())}})},_.W(_.Tn,{data:function(){return e().adMetadata}},{reelsAdMetadataViewModel:function(w){return _.W(vIS,{data:w.data,
expansive:function(){return E()===1}})}}),_.W(_.A,{cond:function(){return e().extension},
then:function(w){return _.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.W(_.Tn,{data:w},{adButtonViewModel:function(n){return _.W(_.Oz,{data:n.data,animationEntityKey:z,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(n){return _.W(YiH,{data:n.data,animationEntityKey:z,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return E()===1}})}}))}})),_.W("div",{"aria-hidden":function(){return!Z()},
class:_.ax("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return Z()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.HF({"transition-duration":function(){return RXT(e())}})},_.W(_.Tn,{data:function(){return e().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(w){return _.W(qiq,{data:w.data,
onShow:function(){_.Ot(_.IK("booleanEntity",J(),{key:J(),value:!0}))},
expansive:function(){return E()===1}})}}))),_.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.W(_.Tn,{data:function(){return e().actions}},{reelActionBarViewModel:function(w){return _.W(_.LTS,{data:w.data,
buttonShapeOverrideables:d})}}),_.W(_.Tn,{data:function(){return e().menu}},{buttonViewModel:function(w){return _.W(_.hM,{data:w.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},d(),{type:"tonal"})}})}}),_.W(_.Tn,{data:function(){return e().pivotButton}},{pivotButtonViewModel:function(w){return _.W(_.hXx,{data:w.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.Zw(rVx,"reels-player-overlay-layout-view-model",{props:{data:_.lB,overlayDensity:_.lB}});var iw=function(){var l=_.B.apply(this,arguments)||this;l.noBottomMargin=!1;l.overlayDensity=0;return l};
_.m(iw,_.B);_.X=iw.prototype;
_.X.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.a("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]]"}}}}}};
_.X.ready=function(){var l=this;Svx(function(){l.isAttached&&g$(l.JSC$13458_storedAdSlotMetadata,l.JSC$13458_storedAdLayoutMetadata,l.adSlotMetadata,l.adLayoutMetadata)&&dq($m(),l.JSC$13458_storedAdSlotMetadata,l.JSC$13458_storedAdLayoutMetadata)})};
_.X.attached=function(){g$(this.JSC$13458_storedAdSlotMetadata,this.JSC$13458_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&TWq($m(),this.JSC$13458_storedAdSlotMetadata,this.JSC$13458_storedAdLayoutMetadata)};
_.X.detached=function(){g$(this.JSC$13458_storedAdSlotMetadata,this.JSC$13458_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dq($m(),this.JSC$13458_storedAdSlotMetadata,this.JSC$13458_storedAdLayoutMetadata)};
_.X.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.X.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13458_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13458_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13458_storedAdLayoutMetadata!==void 0&&this.JSC$13458_storedAdSlotMetadata!==void 0&&dq($m(),this.JSC$13458_storedAdSlotMetadata,this.JSC$13458_storedAdLayoutMetadata),TWq($m(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13458_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13458_storedAdSlotMetadata=this.adSlotMetadata)};
_.Ji.Object.defineProperties(iw.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.adLayoutMetadata}}});
iw.prototype.onAdMetadataChanged=iw.prototype.onAdMetadataChanged;iw.prototype.onTypographyBumpChanged=iw.prototype.onTypographyBumpChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iw.prototype,"rendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],iw.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],iw.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],iw.prototype,"noBottomMargin",void 0);_.L([_.T(),_.q("design:type",Object)],iw.prototype,"overlayDensity",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],iw.prototype,"typographyBump",void 0);_.L([_.R("data.adLayoutMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],iw.prototype,"adLayoutMetadata",null);_.L([_.T(),_.q("design:type",Object)],iw.prototype,"adSlotMetadata",void 0);
_.L([_.aB("ytd-video-display-full-buttoned-and-button-group-renderer"),_.q("design:type",HTMLElement)],iw.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.L([_.AA("typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iw.prototype,"onTypographyBumpChanged",null);_.L([_.AA("adLayoutMetadata","adSlotMetadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iw.prototype,"onAdMetadataChanged",null);
_.L([_.U({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],iw);
_.Y(iw,"ytd-in-feed-ad-layout-renderer",function(){if(P7x!==void 0)return P7x;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return P7x=l},
{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var DEq;var Sik;var wq=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return l};
_.m(wq,_.B);_.X=wq.prototype;_.X.computeHasLiveDescription=function(l){return!(l==null||!l.liveDescription)};
_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.X.onYtToggleButton=function(l){var e,O=(e=this.data)==null?void 0:e.videoReminderEntityKey;O&&this.ytdReduxBehavior.dispatch(_.IK("upcomingEventReminderStateEntity",O,{key:O,state:l.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.X.attached=function(){this.updateChannelBanner()};
_.X.dataChanged=function(){this.updateChannelBanner()};
_.X.videoReminderStateChanged=function(){var l;this.videoReminderState&&_.I((l=this.data)==null?void 0:l.cta,_.hK)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.X.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var l=_.up(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);l&&(l.startsWith("//")&&(l="https:"+l),this.hostElement.classList.add("channel-banner"),_.dP(this.hostElement,{"--ytvmh-channel-banner":"url("+l+")"}))}else _.a("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.X.onPlayerReady=function(){this.onIronResize()};
_.X.maybeFlushDebouncer=function(){_.a("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(l){var e;l=(e=l.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0];km8(l==null?void 0:l.polymerController)})};
_.X.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var l=_.ud(this.hostElement).querySelector("#live-description"),e;l&&((e=this.data)==null?0:e.shortLiveDescription)&&l.clientWidth<l.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
wq.prototype.onIronResize=wq.prototype.onIronResize;wq.prototype.videoReminderStateChanged=wq.prototype.videoReminderStateChanged;wq.prototype.dataChanged=wq.prototype.dataChanged;wq.prototype.onYtToggleButton=wq.prototype.onYtToggleButton;_.L([_.K(_.sl),_.q("design:type",Object)],wq.prototype,"ironResizableBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],wq.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wq.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.videoReminderEntityKey"],selector:nCp}),_.q("design:type",Object)],wq.prototype,"videoReminderState",void 0);
_.L([_.T({reflectToAttribute:!0,value:_.a("web_modern_buttons")}),_.q("design:type",Boolean)],wq.prototype,"rounded",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.q("design:type",Boolean)],wq.prototype,"hasLiveDescription",void 0);_.L([_.T({reflectToAttribute:!0,value:_.a("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.q("design:type",Boolean)],wq.prototype,"resizableAdBannerSafariFix",void 0);
_.L([_.T({reflectToAttribute:!0,value:_.a("align_three_dot_menu_with_title_description")}),_.q("design:type",Boolean)],wq.prototype,"menuFix",void 0);_.L([_.kT("yt-formatted-string"),_.q("design:type",Array)],wq.prototype,"formattedStrings",void 0);_.L([_.aB("#cta-button"),_.q("design:type",HTMLElement)],wq.prototype,"ctaButton",void 0);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],wq.prototype,"onYtToggleButton",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wq.prototype,"dataChanged",null);_.L([_.AA("videoReminderState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wq.prototype,"videoReminderStateChanged",null);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wq.prototype,"onIronResize",null);
_.L([_.U({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],wq);
_.Y(wq,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Sik!==void 0)return Sik;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Sik=l},{mode:1});var QRF;var Ah=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};l.isLocked=!1;return l};
_.m(Ah,_.B);_.X=Ah.prototype;_.X.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.X.onExpandedChanged=function(){this.expanded&&_.dQ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.X.onMouseOver=function(){this.maybeExpand()};
_.X.onTap=function(){this.maybeExpand()};
_.X.onExpandableTileExpanding=function(l){l!==this&&(this.expanded=!1)};
_.X.onExpandableTileLockAndCollapse=function(l){this.isLocked=!0;l!==this&&(this.expanded=!1)};
_.X.onExpandableTileUnlock=function(){this.isLocked=!1};
Ah.prototype.onTap=Ah.prototype.onTap;Ah.prototype.onMouseOver=Ah.prototype.onMouseOver;Ah.prototype.onExpandedChanged=Ah.prototype.onExpandedChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ah.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ah.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ah.prototype,"expanded",void 0);_.L([_.y0("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ah.prototype,"onExpandedChanged",null);_.L([_.wP("mouseover"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ah.prototype,"onMouseOver",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ah.prototype,"onTap",null);
_.L([_.U({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Ah);
_.Y(Ah,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(QRF!==void 0)return QRF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return QRF=l},{mode:1});var xEx;var nq=function(){var l=_.B.apply(this,arguments)||this;l.buttonOverrides={style:"overlay"};l.useYtdPlayer=_.a("use_ytd_player_for_desktop_masthead");l.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};l.playbackFinished=!1;l.JSC$13470_playerManager=null;l.JSC$13470_mastheadCounter=new pIq;return l};
_.m(nq,_.B);_.X=nq.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$13470_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13470_playerManager=new FJ)};
_.X.ready=function(){var l=this;this.JSC$13470_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var e=_.ud(this.hostElement).querySelector("#player");this.useYtdPlayer?e.style.display="none":(this.ytdPlayer.style.display="none",Mcq(this.JSC$13470_playerManager,e,function(){l.onPlaybackEnded()}),_.ud(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var O;
((O=l.data)==null?0:O.navigationEndpoint)&&_.$u(l.hostElement,"yt-navigate",{endpoint:l.data.navigationEndpoint})}))};
_.X.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13470_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.X.attached=function(){var l=this;_.N7(function(){l.maybePlayVideo()})};
_.X.maybePlayVideo=function(){var l=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$13470_playerManager.playVideo(),this.getPlayerPromise().then(function(){l.JSC$13470_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.X.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13470_playerManager.stopVideo()};
_.X.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var l,e={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((l=this.data.playbackStartMs)!=null?l:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(e);this.setupYtdPlayer()}else ZwS(this.JSC$13470_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(VcS(this.JSC$13470_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.X.getPlayerPromise=function(){return this.JSC$13470_playerManager.getPlayerPromise()};
_.X.onYtToggleButton=function(l){this.useYtdPlayer?this.toggleMute(l.detail.toggled):l.detail.toggled?this.JSC$13470_playerManager.mute():this.JSC$13470_playerManager.unMute()};
_.X.onYtNavigate=function(l){var e=dO8(l.detail.endpoint),O=glu(this.data.clickthroughReportingData);e&&O&&(l.detail.endpoint.watchEndpoint?l.detail.tempData=O:_.bi(e,O,30))};
_.X.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.X.onExpandedChanged=function(){this.expanded?(_.dQ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.X.onMouseOver=function(){this.maybeExpand()};
_.X.onTap=function(){this.maybeExpand()};
_.X.onExpandableTileExpanding=function(l){l!==this&&(this.stopVideo(),this.expanded=!1)};
_.X.onExpandableTileLockAndCollapse=function(l){l!==this&&(this.isLocked=!0,this.expanded=!1)};
_.X.onExpandableTileUnlock=function(){this.isLocked=!1};
_.X.lockAndCollapseExpandableTiles=function(){_.Wb(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.X.unlockExpandableTiles=function(){_.Wb(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.X.setupYtdPlayer=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.ytdPlayer.getPlayerPromise(),2);e=O.yieldResult;e.addEventListener("onStateChange",function(E){l.onPlayerStateChange(E)});
e.addEventListener("onCueRangeExit",function(E){l.onCueRangeExit(E)});
_.Cl(O)})};
_.X.onPlayerStateChange=function(l){if(l===1&&(l=this.ytdPlayer.getPlayer())){var e=l.getCurrentTime(),O,E,J=e+((E=(O=this.data)==null?void 0:O.playbackDurationMs)!=null?E:0)/1E3;l.addCueRange("playback",e,J);this.JSC$13470_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.X.onCueRangeExit=function(l){l==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.X.toggleMute=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.ytdPlayer.getPlayerPromise(),2);O=E.yieldResult;l?O.mute():O.unMute();_.Cl(E)})};
nq.prototype.onTap=nq.prototype.onTap;nq.prototype.onMouseOver=nq.prototype.onMouseOver;nq.prototype.onExpandedChanged=nq.prototype.onExpandedChanged;nq.prototype.onYtNavigate=nq.prototype.onYtNavigate;nq.prototype.onYtToggleButton=nq.prototype.onYtToggleButton;nq.prototype.dataChanged=nq.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nq.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],nq.prototype,"expanded",void 0);_.L([_.T(),_.q("design:type",Object)],nq.prototype,"buttonOverrides",void 0);
_.L([_.T(),_.q("design:type",Object)],nq.prototype,"useYtdPlayer",void 0);_.L([_.aB("#ytd-player"),_.q("design:type",Object)],nq.prototype,"ytdPlayer",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nq.prototype,"dataChanged",null);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],nq.prototype,"onYtToggleButton",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],nq.prototype,"onYtNavigate",null);_.L([_.y0("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nq.prototype,"onExpandedChanged",null);_.L([_.wP("mouseover"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nq.prototype,"onMouseOver",null);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nq.prototype,"onTap",null);_.L([_.U({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],nq);
_.Y(nq,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(xEx!==void 0)return xEx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return xEx=l},{mode:1});var loH;var ao=function(){return _.B.apply(this,arguments)||this};
_.m(ao,_.B);ao.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ao.prototype.onShow=function(){var l=_.ud(this.hostElement).querySelector("#live-description"),e;l&&((e=this.data)==null?0:e.shortLiveDescription)&&l.clientWidth<l.scrollWidth&&this.hostElement.classList.add("short-live-description")};
ao.prototype.onYtToggleButton=function(l){var e,O=(e=this.data)==null?void 0:e.videoReminderEntityKey;O&&this.ytdReduxBehavior.dispatch(_.IK("upcomingEventReminderStateEntity",O,{key:O,state:l.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
ao.prototype.videoReminderStateChanged=function(){var l;this.videoReminderState&&_.I((l=this.data)==null?void 0:l.cta,_.hK)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
ao.prototype.videoReminderStateChanged=ao.prototype.videoReminderStateChanged;ao.prototype.onYtToggleButton=ao.prototype.onYtToggleButton;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ao.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ao.prototype,"data",void 0);
_.L([_.T({selectorArgs:["data.videoReminderEntityKey"],selector:nCp}),_.q("design:type",Object)],ao.prototype,"videoReminderState",void 0);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ao.prototype,"onYtToggleButton",null);_.L([_.AA("videoReminderState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ao.prototype,"videoReminderStateChanged",null);
_.L([_.U({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],ao);
_.Y(ao,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(loH!==void 0)return loH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return loH=l},{mode:_.Wf("kevlar_poly_si_batch_j065")?1:2});var eC0;var km=function(){var l=_.B.apply(this,arguments)||this;l.useYtdPlayer=_.a("use_ytd_player_for_desktop_masthead");l.buttonOverrides={style:"overlay"};l.JSC$13478_playerManager=null;l.JSC$13478_mastheadCounter=new pIq;l.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return l};
_.m(km,_.B);_.X=km.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$13478_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13478_playerManager=new FJ)};
_.X.ready=function(){var l=this;this.JSC$13478_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var e;(e=this.embeddedPlayer)==null||e.remove()}else{var O;(O=this.ytdPlayer)==null||O.remove();Mcq(this.JSC$13478_playerManager,this.embeddedPlayer,function(){l.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){l.data&&l.data.navigationEndpoint&&_.$u(l.hostElement,"yt-navigate",{endpoint:l.data.navigationEndpoint})})}};
_.X.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13478_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.X.dataChanged=function(){var l=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var e=!this.data.disableAutoPlayback,O,E={autoplay:e,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((O=this.data.playbackStartMs)!=null?O:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(e?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else ZwS(this.JSC$13478_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(VcS(this.JSC$13478_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13478_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Wb(l.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");l.JSC$13478_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.X.getPlayerPromise=function(){return this.JSC$13478_playerManager.getPlayerPromise()};
_.X.onYtToggleButton=function(l){this.useYtdPlayer?this.toggleMute(l.detail.toggled):l.detail.toggled?this.JSC$13478_playerManager.mute():this.JSC$13478_playerManager.unMute()};
_.X.onYtNavigate=function(l){var e=dO8(l.detail.endpoint),O=glu(this.data.clickthroughReportingData);e&&O&&(l.detail.endpoint.watchEndpoint?l.detail.tempData=O:_.bi(e,O,30))};
_.X.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13478_playerManager.stopVideo()};
_.X.setupYtdPlayer=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.ytdPlayer.getPlayerPromise(),2);e=O.yieldResult;e.addEventListener("onStateChange",function(E){l.onPlayerStateChange(E)});
e.addEventListener("onCueRangeExit",function(E){l.onCueRangeExit(E)});
_.Cl(O)})};
_.X.onPlayerStateChange=function(l){if(l===1&&(l=this.ytdPlayer.getPlayer())){var e=l.getCurrentTime(),O,E,J=e+((E=(O=this.data)==null?void 0:O.playbackDurationMs)!=null?E:0)/1E3;l.addCueRange("playback",e,J);_.Wb(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13478_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.X.onCueRangeExit=function(l){l==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.X.toggleMute=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.ytdPlayer.getPlayerPromise(),2);O=E.yieldResult;l?O.mute():O.unMute();_.Cl(E)})};
_.Ji.Object.defineProperties(km.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var l,e;if(!((l=this.data)==null?0:(e=l.accessibilityData)==null?0:e.label))return"Ad primary link";var O,E;return _.ml("AD_TITLE",{title:(O=this.data)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label})}}});
km.prototype.onYtMastheadHidden=km.prototype.onYtMastheadHidden;km.prototype.onYtNavigate=km.prototype.onYtNavigate;km.prototype.onYtToggleButton=km.prototype.onYtToggleButton;km.prototype.dataChanged=km.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],km.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],km.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],km.prototype,"useYtdPlayer",void 0);_.L([_.aB("ytd-toggle-button-renderer"),_.q("design:type",Object)],km.prototype,"muteButton",void 0);_.L([_.T(),_.q("design:type",Object)],km.prototype,"buttonOverrides",void 0);
_.L([_.R("data.accessibilityData.label"),_.q("design:type",String),_.q("design:paramtypes",[])],km.prototype,"titleAriaLabel",null);_.L([_.aB("#replay-button"),_.q("design:type",Object)],km.prototype,"replayButton",void 0);_.L([_.aB("#player-container"),_.q("design:type",Object)],km.prototype,"playerContainer",void 0);_.L([_.aB("#player"),_.q("design:type",Object)],km.prototype,"embeddedPlayer",void 0);_.L([_.aB("#ytd-player"),_.q("design:type",Object)],km.prototype,"ytdPlayer",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],km.prototype,"dataChanged",null);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],km.prototype,"onYtToggleButton",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],km.prototype,"onYtNavigate",null);
_.L([_.wP("yt-masthead-hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],km.prototype,"onYtMastheadHidden",null);_.L([_.U({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],km);
_.Y(km,"ytd-video-masthead-ad-primary-video-renderer",function(){if(eC0!==void 0)return eC0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return eC0=l},{mode:2});var OVq;var Io=function(){var l=_.B.apply(this,arguments)||this;l.collapsed=!1;l.impressionResolver=_.x7();l.JSC$13482_activeViewMeasurementDataResolver=_.x7();l.actionMap={"yt-mute-ad-action":"handleMuteAd"};return l};
_.m(Io,_.B);_.X=Io.prototype;_.X.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"}}}};
_.X.ready=function(){var l=this;_.ud(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){l.expandAd()});
this.hostElement.addEventListener("yt-action",function(e){if(e.detail.actionName==="yt-service-request"){var O=e.detail.args[1];O.videoMastheadAdMuteCommand&&(l.collapseAd(O.videoMastheadAdMuteCommand.encryptedMastheadId),e.stopPropagation())}})};
_.X.attached=function(){var l=this;_.N7(function(){l.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(e){if(!l.collapsed){e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,QZ(O.baseUrl,O.attributionSrcMode);l.data.impressionCommand=void 0}});
this.JSC$13482_activeViewMeasurementDataResolver.promise.then(function(e){l.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)});
_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.dataChanged=function(){var l;((l=this.data.impressionCommand)==null?0:l.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var e;((e=this.data)==null?0:e.activeView)&&this.JSC$13482_activeViewMeasurementDataResolver.resolve(this.data.activeView);(l=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(l.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.X.computeWidescreen=function(l){var e;return!!(l&&((e=_.I(l,Ac6))==null?0:e.isWidescreen))};
_.X.computeExpandable=function(l){return!!(l&&l.length>0)};
_.X.onIronResize=function(){if(this.expandable){var l=_.ud(this.hostElement).querySelector("#expandable-tile-container :first-child");l&&!l.expanded&&(l.expanded=!0)}};
_.X.handleMuteAd=function(){this.collapseAd(null)};
_.X.restoreCollapsedState=function(l){this.collapsed=_.Kz().get("HIDDEN_MASTHEAD_ID")===l};
_.X.collapseAd=function(l){if(l){var e=_.Kz();e.set("HIDDEN_MASTHEAD_ID",l);e.save()}(l=_.ud(this.hostElement).querySelector("#video"))&&_.$u(l,"yt-masthead-hidden");this.collapsed=!0};
_.X.expandAd=function(){var l=_.Kz();l.set("HIDDEN_MASTHEAD_ID",!1);l.save();location.reload()};
_.X.detached=function(){_.a("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Io.prototype.onIronResize=Io.prototype.onIronResize;Io.prototype.dataChanged=Io.prototype.dataChanged;_.L([_.K(_.sl),_.q("design:type",Object)],Io.prototype,"ironResizableBehavior",void 0);_.L([_.K(TE),_.q("design:type",Object)],Io.prototype,"ytdActiveViewBehavior",void 0);_.L([_.K(_.UY),_.q("design:type",Object)],Io.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Io.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.q("design:type",Boolean)],Io.prototype,"widescreen",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.q("design:type",Boolean)],Io.prototype,"expandable",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Io.prototype,"collapsed",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Io.prototype,"dataChanged",null);
_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Io.prototype,"onIronResize",null);_.L([_.U({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Io);
_.Y(Io,"ytd-video-masthead-ad-v3-renderer",function(){if(OVq!==void 0)return OVq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return OVq=l},{mode:2});var mk=function(){return _.B.apply(this,arguments)||this};
_.m(mk,_.B);_.X=mk.prototype;_.X.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.X.ready=function(){var l=this;Svx(function(){l.isAttached&&g$(l.JSC$13487_storedAdSlotMetadata,l.JSC$13487_storedAdLayoutMetadata,l.adSlotMetadata,l.adLayoutMetadata)&&dq($m(),l.JSC$13487_storedAdSlotMetadata,l.JSC$13487_storedAdLayoutMetadata)})};
_.X.attached=function(){g$(this.JSC$13487_storedAdSlotMetadata,this.JSC$13487_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&TWq($m(),this.JSC$13487_storedAdSlotMetadata,this.JSC$13487_storedAdLayoutMetadata)};
_.X.detached=function(){g$(this.JSC$13487_storedAdSlotMetadata,this.JSC$13487_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dq($m(),this.JSC$13487_storedAdSlotMetadata,this.JSC$13487_storedAdLayoutMetadata)};
_.X.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13487_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13487_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13487_storedAdLayoutMetadata!==void 0&&this.JSC$13487_storedAdSlotMetadata!==void 0&&dq($m(),this.JSC$13487_storedAdSlotMetadata,this.JSC$13487_storedAdLayoutMetadata),TWq($m(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13487_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13487_storedAdSlotMetadata=this.adSlotMetadata)};
_.Ji.Object.defineProperties(mk.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.adLayoutMetadata}}});
mk.prototype.onAdMetadataChanged=mk.prototype.onAdMetadataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mk.prototype,"data",void 0);_.L([_.R("data.adLayoutMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],mk.prototype,"adLayoutMetadata",null);
_.L([_.T(),_.q("design:type",Object)],mk.prototype,"adSlotMetadata",void 0);_.L([_.AA("adLayoutMetadata","adSlotMetadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mk.prototype,"onAdMetadataChanged",null);_.L([_.U({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],mk);
_.Y(mk,"ytd-page-top-ad-layout-renderer",function(){if(DEq!==void 0)return DEq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return DEq=
l},{mode:_.Wf("kevlar_poly_si_batch_j070")?1:2});var E20;var y3=function(){var l=_.B.apply(this,arguments)||this;l.noBottomMargin=!1;l.overlayDensity=0;l.typographyBump=!1;return l};
_.m(y3,_.B);_.X=y3.prototype;
_.X.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.X.ready=function(){var l=this;Svx(function(){l.isAttached&&l.adSlotMetadata&&RX1($m(),l.adSlotMetadata)})};
_.X.attached=function(){if(this.adSlotMetadata){var l;if(this.adSlotMetadata===((l=this.data)==null?void 0:l.adSlotMetadata))fzq($m(),this.adSlotMetadata);else{var e;_.hG(Error("Lh`"+this.adSlotMetadata+"`"+((e=this.data)==null?void 0:e.adSlotMetadata)))}}};
_.X.detached=function(){this.adSlotMetadata&&RX1($m(),this.adSlotMetadata)};
_.X.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.X.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&RX1($m(),this.adSlotMetadata),fzq($m(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Ji.Object.defineProperties(y3.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var l,e,O=_.I((l=this.data)==null?void 0:(e=l.fulfillmentContent)==null?void 0:e.fulfilledLayout,_.aL1),E;return(l=(E=_.I(O==null?void 0:O.renderingContent,nxi))==null?void 0:E.layout)?l.toLowerCase().replace(/_/g,"-"):""}}});
y3.prototype.onAdSlotMetadataChanged=y3.prototype.onAdSlotMetadataChanged;y3.prototype.onTypographyBumpChanged=y3.prototype.onTypographyBumpChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],y3.prototype,"rendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],y3.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],y3.prototype,"noBottomMargin",void 0);_.L([_.T(),_.q("design:type",Object)],y3.prototype,"overlayDensity",void 0);_.L([_.T(),_.q("design:type",Object)],y3.prototype,"typographyBump",void 0);_.L([_.aB("ytd-in-feed-ad-layout-renderer"),_.q("design:type",HTMLElement)],y3.prototype,"inFeedAdLayoutRenderer",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],y3.prototype,"layout",null);_.L([_.AA("typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y3.prototype,"onTypographyBumpChanged",null);_.L([_.AA("data.adSlotMetadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y3.prototype,"onAdSlotMetadataChanged",null);
_.L([_.U({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],y3);
_.Y(y3,"ytd-ad-slot-renderer",function(){if(E20!==void 0)return E20;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return E20=l},{mode:_.Wf("kevlar_poly_si_batch_j077")?
1:2});var JsH;var pq=function(){return _.B.apply(this,arguments)||this};
_.m(pq,_.B);_.X=pq.prototype;_.X.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"}}}};
_.X.maybeComputeHref=function(l){return _.a("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(l)};
_.X.onTap=function(){_.a("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&bnV(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.X.onThumbnailContainerClick=function(l){this.onClick(l)};
_.X.onClick=function(l){if(_.a("enable_handle_watch_endpoint_click_for_vdc")){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint;O&&_.I(O,_.ej)&&(this.ytSparklesClickLocationBehavior.handleClick(O,l,!1),l.stopPropagation())}};
_.X.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var l=_.b(this.data.impressionUrls),e=l.next();!e.done;e=l.next())e=e.value,dvA(e,i0g(e));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.a("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",pq.JSC$13495_DEFAULT_CLICK_LOCATION_BEHAVIOR,pq.JSC$13495_CLICK_LOCATION_ID_MAP),this.thumbnail&&(l=this.thumbnail.getElementsByTagName("a"),
l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href")))}};
_.X.attached=function(){var l=this;_.a("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.X.detached=function(){_.a("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Ji.Object.defineProperties(pq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.a("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.a("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
pq.prototype.dataChanged=pq.prototype.dataChanged;pq.prototype.onTap=pq.prototype.onTap;pq.JSC$13495_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
pq.JSC$13495_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"}];_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.L([_.K(TE),_.q("design:type",Object)],pq.prototype,"ytdActiveViewBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],pq.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],pq.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.T({selector:_.vi}),_.q("design:type",Object)],pq.prototype,"isGridViewEnabled",void 0);_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pq.prototype,"watchFeedBigThumbs",null);_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],pq.prototype,"thumbnailWidth",null);_.L([_.T(),_.q("design:type",Object)],pq.prototype,"data",void 0);
_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],pq.prototype,"thumbnail",void 0);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pq.prototype,"onTap",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pq.prototype,"dataChanged",null);_.L([_.U({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],pq);
_.Y(pq,"ytd-compact-promoted-video-renderer",function(){if(JsH!==void 0)return JsH;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return JsH=l},{mode:1});var X$q;_.Y7("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Kq=function(){return _.B.apply(this,arguments)||this};
_.m(Kq,_.B);Kq.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Kq.prototype,"data",void 0);_.L([_.U({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Kq);
_.Y(Kq,"ytd-search-pyv-renderer",function(){if(X$q!==void 0)return X$q;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return X$q=l},{mode:1});var zCx;_.Y7("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var jg=function(){var l=_.B.apply(this,arguments)||this;l.roundedContainer=!0;l.JSC$13503_handleOpenPostCommentDialogActionAfterStamp=!1;l.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return l};
_.m(jg,_.B);_.X=jg.prototype;
_.X.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}}};
_.X.onStampFinished=function(){this.JSC$13503_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){var l=_.ud(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");l?l.openDialog():this.JSC$13503_handleOpenPostCommentDialogActionAfterStamp=!0};
_.X.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.X.computeHideBorder=function(){return this.isInEngagementPanel};
_.X.computeIsCompact=function(){return this.isInEngagementPanel};
_.X.computeUsesCompactLockup=function(l){return l==="BACKSTAGE_SURFACE_TYPE_HOME"||l==="BACKSTAGE_SURFACE_TYPE_SEARCH"||l==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||l==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||l==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||l==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.X.computeUsesFullLockup=function(){var l,e=(l=this.data)==null?void 0:l.post,O;l=(O=_.I(e,FCi))==null?void 0:O.surface;var E;O=(E=_.I(e,RhF))==null?void 0:E.originalPost;var J;if(E=l||((J=_.I(O,FCi))==null?void 0:J.surface))return!this.computeUsesCompactLockup(E)&&this.useUpdatedRepostUi;var z;return((z=_.I(e,RhF))==null?void 0:z.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Ji.Object.defineProperties(jg.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var l,e;return((e=_.I((l=this.data)==null?void 0:l.post,FCi))==null?void 0:e.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.useUpdatedRepostUi}}});
jg.prototype.onYtCommentModerationPanelEmpty=jg.prototype.onYtCommentModerationPanelEmpty;jg.prototype.onStampFinished=jg.prototype.onStampFinished;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],jg.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],jg.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jg.prototype,"roundedContainer",void 0);_.L([_.T({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.q("design:type",Boolean)],jg.prototype,"hideBorder",void 0);_.L([_.T({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.q("design:type",Boolean)],jg.prototype,"isCompact",void 0);
_.L([_.T({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.q("design:type",Boolean)],jg.prototype,"usesFullLockup",void 0);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jg.prototype,"onStampFinished",null);
_.L([_.wP("ytd-comment-moderation-panel-empty"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],jg.prototype,"onYtCommentModerationPanelEmpty",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jg.prototype,"isInEngagementPanel",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],jg.prototype,"useUpdatedRepostUi",null);
_.L([_.U({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],jg);
_.Y(jg,"ytd-backstage-post-thread-renderer",function(){if(zCx!==void 0)return zCx;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zCx=l},{mode:1});var bVi;var H4=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(H4,_.B);H4.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
H4.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var l=this.data.thumbnail.thumbnails;this.isDarkTheme&&(l=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(l=_.up(l,24,void 0,"height"))?l:void 0}};
H4.prototype.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
H4.prototype.computeHasText=function(){var l;return!((l=this.data)==null||!l.text)};
_.Ji.Object.defineProperties(H4.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.nU(this.bannerImageUrl))+'");'}}});
H4.prototype.computeHasText=H4.prototype.computeHasText;H4.prototype.computeBannerImageUrl=H4.prototype.computeBannerImageUrl;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],H4.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],H4.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],H4.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],H4.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",String)],H4.prototype,"bannerImageUrl",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.q("design:type",Boolean)],H4.prototype,"hasText",void 0);_.L([_.AA("data","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H4.prototype,"computeBannerImageUrl",null);
_.L([_.AA("data.text"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],H4.prototype,"computeHasText",null);_.L([_.R("bannerImageUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],H4.prototype,"bannerStyle",null);_.L([_.U({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],H4);
_.Y(H4,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(bVi!==void 0)return bVi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return bVi=l},{mode:1});var MPx;var c4=function(){return _.B.apply(this,arguments)||this};
_.m(c4,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],c4.prototype,"data",void 0);_.L([_.U({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],c4);
_.Y(c4,"ytd-backstage-zero-state-renderer",function(){if(MPx!==void 0)return MPx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return MPx=l},{mode:1});var VP0;var Ft=function(){return _.B.apply(this,arguments)||this};
_.m(Ft,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ft.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],Ft.prototype,"icon",void 0);_.L([_.U({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Ft);
_.Y(Ft,"ytd-post-filter-zero-state-renderer",function(){if(VP0!==void 0)return VP0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return VP0=l},{mode:1});var ZVC;var uhk={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},fq=function(){return _.B.apply(this,arguments)||this};
_.m(fq,_.B);fq.prototype.configureRendererStamper=function(){return uhk};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fq.prototype,"rendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fq.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],fq.prototype,"icon",void 0);_.L([_.U({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],fq);
_.Y(fq,"ytd-post-scheduling-zero-state-renderer",function(){if(ZVC!==void 0)return ZVC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ZVC=l},{mode:1});var ChS;var Ro=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return l};
_.m(Ro,_.B);Ro.prototype.onTabsActivate=function(l){this.data&&this.data.tabs&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[l.detail.selected].navigationEndpoint})};
Ro.prototype.shouldShowTotalCount=function(l){return l&&l.totalCount!==void 0};
Ro.prototype.handleUpdatePostsTotalCountAction=function(l){var e=this.get(["data.tabs",1,"totalCount"]),O=this.get("updatePostsTotalCountAction.updateType",l);l=this.get("updatePostsTotalCountAction.number",l);e!==void 0&&O!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&l&&(O==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(e)+l):O==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(e)-l))};
_.Ji.Object.defineProperties(Ro.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var l=0,e=this.data.tabs.length;l<e;l++)if(this.data.tabs[l].selected)return l;return 0}}});
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ro.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ro.prototype,"rendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ro.prototype,"data",void 0);_.L([_.R("data.tabs"),_.q("design:type",Number),_.q("design:paramtypes",[])],Ro.prototype,"selected",null);_.L([_.U({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Ro);
_.Y(Ro,"ytd-post-stream-filter-renderer",function(){if(ChS!==void 0)return ChS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ChS=l},{mode:1});var o2H;var Ts=function(){return _.B.apply(this,arguments)||this};
_.m(Ts,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ts.prototype,"kevlarBehaviors",void 0);_.L([_.T(),_.q("design:type",Object)],Ts.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Ts);
_.Y(Ts,"ytd-channel-age-gate-renderer",function(){if(o2H!==void 0)return o2H;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return o2H=l},{mode:1});var $WS;_.Y7("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var s_=function(){var l=_.B.apply(this,arguments)||this;l.data=null;return l};
_.m(s_,_.B);s_.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Ji.Object.defineProperties(s_.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?0:(e=l.title)==null?0:(O=e.runs)==null?0:O.length)?147:160}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],s_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],s_.prototype,"imageSizePx",null);_.L([_.U({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],s_);
_.Y(s_,"ytd-channel-owner-empty-state-renderer",function(){if($WS!==void 0)return $WS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return $WS=l},{mode:1});var WdC;var dWF;var Gs=function(){var l=_.B.apply(this,arguments)||this;l.boundSubmitSearch=function(){l.submitSearch()};
l.boundClearSearch=function(){l.clearSearch()};
return l};
_.m(Gs,_.B);_.X=Gs.prototype;_.X.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]]"}}}}}};
_.X.toggleClearButton=function(){this.hideClearButton=ItA||!this.input.value};
_.X.submitOnEnterKeyUp=function(l){l.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.X.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.X.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.X.submit=function(){_.$u(this.hostElement,"search-query-changed",this.input.value)};
Gs.prototype.toggleClearButton=Gs.prototype.toggleClearButton;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Gs.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Gs.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Gs.prototype,"hideClearButton",void 0);_.L([_.T(),_.q("design:type",Object)],Gs.prototype,"boundSubmitSearch",void 0);_.L([_.T(),_.q("design:type",Object)],Gs.prototype,"boundClearSearch",void 0);_.L([_.aB("#input"),_.q("design:type",Object)],Gs.prototype,"input",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gs.prototype,"toggleClearButton",null);
_.L([_.U({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Gs);
_.Y(Gs,"ytd-channel-switcher-search-box-renderer",function(){if(dWF!==void 0)return dWF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dWF=l},{mode:1});var g2H;var B4=function(){var l=_.B.apply(this,arguments)||this;l.boundSubmit=function(){l.submit()};
return l};
_.m(B4,_.B);_.X=B4.prototype;_.X.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"}}}}};
_.X.ready=function(){var l=this;this.form.addEventListener("submit",function(e){return l.onSubmit(e)})};
_.X.onSubmit=function(l){l.preventDefault();return!1};
_.X.toggleClearButton=function(){this.hideClearButton=ItA||!this.input.value};
_.X.submitOnEnterKeyUp=function(l){l.keyCode===13&&this.submit()};
_.X.submit=function(){var l=this.data.endpoint,e=(0,_.mm.unsafeClone)(l);_.I(e,_.ms)?_.I(e,_.ms).query=this.input.value:_.I(e,_.yF)&&(_.I(e,_.yF).query=this.input.value);var O=_.I(e.commandMetadata,_.V4);(O==null?0:O.url)?(O.url=_.qr(O.url,"query",this.input.value),_.$u(this.hostElement,"yt-navigate",{endpoint:e})):_.I(e,WCS)?(_.I(e,WCS).channelSwitcherQuery=this.input.value,_.V2().resolve(_.Zh).resolveCommand(e,{form:{element:this.hostElement}})):(l=Error("Mh`"+JSON.stringify(l)),_.UW(l))};
_.X.getUrl=function(l){return this.get("commandMetadata.webCommandMetadata.url",l)};
B4.prototype.toggleClearButton=B4.prototype.toggleClearButton;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],B4.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],B4.prototype,"hideClearButton",void 0);
_.L([_.T(),_.q("design:type",Object)],B4.prototype,"boundSubmit",void 0);_.L([_.aB("#form"),_.q("design:type",HTMLFormElement)],B4.prototype,"form",void 0);_.L([_.aB("#input"),_.q("design:type",Object)],B4.prototype,"input",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],B4.prototype,"toggleClearButton",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],B4);
_.Y(B4,"ytd-search-box-renderer",function(){if(g2H!==void 0)return g2H;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return g2H=l},{mode:2});var P4=function(){var l=_.B.apply(this,arguments)||this;l.showSearchBox=!0;return l};
_.m(P4,_.B);P4.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],P4.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],P4.prototype,"showSearchBox",void 0);_.L([_.U({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],P4);
_.Y(P4,"ytd-channel-switcher-header-renderer",function(){if(WdC!==void 0)return WdC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return WdC=l},{mode:1});var iVq;var w$S;var U_=function(){var l=_.B.apply(this,arguments)||this;l.isDisplayed=!0;return l};
_.m(U_,_.B);_.X=U_.prototype;_.X.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.dataChanged=function(){this.isDisplayed=!0};
_.X.computeType=function(l){return l||"UNKNOWN"};
_.X.onYtServiceRequestCompleted=function(l){l.stopPropagation();this.isDisplayed=!1};
_.X.onClose=function(){this.isDisplayed=!1};
U_.prototype.onYtServiceRequestCompleted=U_.prototype.onYtServiceRequestCompleted;U_.prototype.dataChanged=U_.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],U_.prototype,"data",void 0);
_.L([_.T({computed:"computeType(data.type)",reflectToAttribute:!0}),_.q("design:type",String)],U_.prototype,"type",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],U_.prototype,"isDisplayed",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],U_.prototype,"dataChanged",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],U_.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],U_);
_.Y(U_,"ytd-alert-with-button-renderer",function(){if(w$S!==void 0)return w$S;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return w$S=l},{mode:1});var Ym=function(){var l=_.B.apply(this,arguments)||this;l.noResult=!1;l.enableAlertBanner=!1;l.dismissedAlertBanner=!1;l.hideCreateChannelButton=!1;l.boundDismissAlertBanner=function(){l.dismissAlertBanner()};
l.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return l};
_.m(Ym,_.B);_.X=Ym.prototype;_.X.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.X.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.X.updateChannelSwitcherAction=function(l){var e;l=(e=_.I(l,D3S))==null?void 0:e.page;_.I(l,rZk)!==void 0&&(this.data=_.I(l,rZk))};
_.X.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]]"}}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.X.searchQueryChanged=function(l,e){if(this.data&&this.data.contents&&this.data.contents.length){l=[];var O=[];this.hideCreateChannelButton=this.noResult=!1;for(var E=document.querySelectorAll("ytd-account-item-renderer"),J=_.b(E),z=J.next();!z.done;z=J.next())z=z.value,O.push(z),z.style.display="block";this.resetRightBorder(O);if(e){this.hideCreateChannelButton=!0;for(O=1;O<this.data.contents.length;O++)if(z=this.data.contents[O],_.I(z,CYC)){var M=void 0,Z=void 0;J=(M=_.I(z,CYC))==null?void 0:(Z=
M.accountName)==null?void 0:Z.simpleText;Z=M=void 0;z=(M=_.I(z,CYC))==null?void 0:(Z=M.channelHandle)==null?void 0:Z.simpleText;(M=E[O-1])&&J&&_.u2(J,e)?l.push(M):_.a("enable_handle_search_on_channel_switcher")&&M&&z&&_.u2(z.toString(),e.toString())?l.push(M):M.style.display="none"}l.length===0&&(this.noResult=!0);this.resetRightBorder(l)}}};
_.X.resetRightBorder=function(l){for(var e=0;e<l.length;e++)l[e].style.borderRight=!this.hideCreateChannelButton&&(e+2)%3===0||this.hideCreateChannelButton&&(e+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.X.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.X.setShowSearchBox=function(l){if(l&&l.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var e=0;e<l.contents.length;e++)_.I(l.contents[e],_.o2)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.X.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Ji.Object.defineProperties(Ym.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null?0:l.contents)}}});
Ym.prototype.onContinuationItemsUpdated=Ym.prototype.onContinuationItemsUpdated;Ym.prototype.searchQueryChanged=Ym.prototype.searchQueryChanged;Ym.prototype.onDataChanged=Ym.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ym.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],Ym.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ym.prototype,"data",void 0);_.L([_.aB("ytd-channel-switcher-header-renderer"),_.q("design:type",Object)],Ym.prototype,"channelSwitcherHeaderRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],Ym.prototype,"noResult",void 0);
_.L([_.T(),_.q("design:type",Object)],Ym.prototype,"enableAlertBanner",void 0);_.L([_.T(),_.q("design:type",Object)],Ym.prototype,"dismissedAlertBanner",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ym.prototype,"hideCreateChannelButton",void 0);_.L([_.R("data.contents"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ym.prototype,"isLoading",null);_.L([_.T(),_.q("design:type",Object)],Ym.prototype,"boundDismissAlertBanner",void 0);
_.L([_.T({computed:"computeButtonOverride()"}),_.q("design:type",Object)],Ym.prototype,"buttonOverride",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ym.prototype,"onDataChanged",null);_.L([_.wP("search-query-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,String]),_.q("design:returntype")],Ym.prototype,"searchQueryChanged",null);
_.L([_.wP("yt-next-continuation-data-updated"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ym.prototype,"onContinuationItemsUpdated",null);_.L([_.U({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Ym);
_.Y(Ym,"ytd-channel-switcher-page-renderer",function(){if(iVq!==void 0)return iVq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iVq=l},{mode:1});var As0;var n2x;var hh=function(){var l=_.B.apply(this,arguments)||this;l.images=[];l.selectedImageIndex=0;return l};
_.m(hh,_.B);_.X=hh.prototype;
_.X.ready=function(){_.f4(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.f4(this.JSC$13548_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.f4(this.JSC$13548_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.f4(this.JSC$13548_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.X.onThumbnailClick=function(l){if(l=l.event_.detail)this.selectedImageIndex=this.images.indexOf(l)};
_.X.updateImageThumbnails=function(l){l=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:l.event_.detail});this.images.splice(this.selectedImageIndex,1,l);this.images=[].concat(_.kA(this.images))};
_.X.cancelImageRepositions=function(){this.selectedImageIndex=0;_.$u(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.X.saveImageRepositions=function(){this.selectedImageIndex=0;_.$u(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Ji.Object.defineProperties(hh.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var l=this;return(this.images||[]).map(function(e,O){return{image:e,selected:O===l.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("ytd-backstage-image-preview-renderer"),_.q("design:type",Object)],hh.prototype,"JSC$13548_imagePreviewContainer",void 0);_.L([_.aB(".thumbnail-images-container"),_.q("design:type",HTMLElement)],hh.prototype,"thumbnailImagesContainer",void 0);_.L([_.T(),_.q("design:type",Array)],hh.prototype,"images",void 0);
_.L([_.T(),_.q("design:type",Object)],hh.prototype,"repositionInstructions",void 0);_.L([_.T(),_.q("design:type",Object)],hh.prototype,"selectedImageIndex",void 0);_.L([_.R("images","selectedImageIndex"),_.q("design:type",Array),_.q("design:paramtypes",[])],hh.prototype,"thumbnailRendererDatas",null);_.L([_.R("images","selectedImageIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],hh.prototype,"selectedImageData",null);
_.L([_.U({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],hh);
_.Y(hh,"ytd-backstage-multi-image-reposition-renderer",function(){if(n2x!==void 0)return n2x;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return n2x=l},{mode:1});var Lq=function(l,e){_.Kx.call(this);this.uploadUrl=l;this.channelId=e;this.imagesUploadData=[]};
_.m(Lq,_.Kx);Lq.prototype.getAllUploadStatuses=function(){var l=this,e,O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,ao0(l),2);e=J.yieldResult;O=e.get("succeed");E=e.get("failed");return J.return(O.concat(E))})};
var IoS=function(l){var e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,ao0(l),2);e=E.yieldResult;O=e.get("failed");O.length>0&&kd0(l,O);return E.return(l.getAllUploadStatuses())})},ao0=function(l){var e,O,E,J,z,M,Z;
return _.V(function(u){if(u.nextAddress==1)return e=new Map,_.C(u,Promise.allSettled(l.imagesUploadData.map(function(d){return d.uploadPromise})),2);
O=u.yieldResult;E=[];J=_.b(O);for(z=J.next();!z.done;z=J.next())M=z.value,M.status==="fulfilled"&&E.push(M.value);Z=l.imagesUploadData.map(function(d){return d.image}).filter(function(d){return E.every(function(g){return g.id!==d.id})});
e.set("succeed",E);e.set("failed",Z);return u.return(e)})},kd0=function(l,e){e=_.b(e);
for(var O=e.next();!O.done;O=e.next()){var E=l;O=O.value;mWH(E,O.id)>=0&&E.cancel(O.id);var J=new ysq(O),z=_.lLk(E.uploadUrl,{"X-YouTube-ChannelId":E.channelId},O.imageBlob);J.transfer=z;J.uploadPromise=p$0(z,O);E.imagesUploadData.push(J);z.run()}};
Lq.prototype.cancel=function(l){var e=mWH(this,l);e!==-1&&((e=this.imagesUploadData[e].transfer)&&e.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(O){return O.image.id!==l}))};
var mWH=function(l,e){return l.imagesUploadData.findIndex(function(O){return O.image.id===e})},p$0=function(l,e){return new Promise(function(O,E){l.listen("l",function(){var J=l.getResponseText();
J?(J=JSON.parse(J).encryptedBlobId,e.encryptedBlobId=J,O(e)):E("upload failed")});
l.listen("n",function(){E("upload failed")})})},ysq=function(l){this.image=l};var TWV=function(l,e,O,E,J){this.id=l;this.imageBlob=e;this.localImageSrc=O;this.naturalWidth=E;this.naturalHeight=J;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 Kdq=[".jpeg",".jpg",".png"],th=function(){var l=_.B.apply(this,arguments)||this;l.showImagesPreview=!1;l.pollOptions=[];l.errorMessage="";l.optionPlaceholderText="";l.optionDefaultText="";l.JSC$13559_imageId=0;l.maxFileSizeMb=0;l.maxAspectRatio=0;l.invalidFileSizeError="";l.invalidAspectRatioError="";l.invalidFileTypeError="";l.imageSelector=new iS(null,"single_file",Kdq);return l};
_.m(th,_.B);_.X=th.prototype;_.X.ready=function(){_.f4(this.imageSelector,"j",this.onImageSelect,!1,this);_.f4(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.f4(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.X.dataChanged=function(){var l,e,O=_.I((l=this.data)==null?void 0:(e=l.cellTemplate)==null?void 0:e.onEmptyCellTap,NU0);if(O&&O.uploadUrl&&O.channelId){var E;this.maxFileSizeMb=((E=O.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0;var J;this.maxAspectRatio=((J=O.imageValidationInfo)==null?void 0:J.allowedMaxAspectRatio)||0;var z;this.invalidFileSizeError=this.getSimpleString((z=this.data)==null?void 0:z.invalidFileSizeError);var M;this.invalidAspectRatioError=this.getSimpleString((M=this.data)==
null?void 0:M.invalidAspectRatioError);var Z;this.invalidFileTypeError=this.getSimpleString((Z=this.data)==null?void 0:Z.invalidFileTypeError);this.uploadManager=new Lq(O.uploadUrl,O.channelId)}};
_.X.onEditorInfoChange=function(){this.optionPlaceholderText=_.lG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.lG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.X.observeAddImageError=function(){this.errorMessage!==""&&_.$u(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.X.onPollOptionsChange=function(){for(var l=!1,e=[],O=0;O<this.pollOptions.length;O++){var E=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(O+1);this.pollOptions[O].placeholderText!==E?(l=!0,e.push(Object.assign({},this.pollOptions[O],{placeholderText:E}))):e.push(this.pollOptions[O])}l&&(this.pollOptions=e);this.isValid()?_.$u(this.hostElement,"yt-commentbox-post-enable"):_.$u(this.hostElement,"yt-commentbox-post-disable")};
_.X.createPollOptions=function(l){var e=[],O;l=(O=l==null?void 0:l.minPollOptions)!=null?O:0;for(O=0;O<l;O++)e.push(this.createPollOption());return e};
_.X.onImageSelect=function(l){var e=this,O,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1){if(e.selectedImageIndex===void 0)return u.jumpTo(0);O=l.files[0];e.errorMessage="";E=e.validateImage(O);if(E!=="")return e.errorMessage=E,u.return();J=new Qu(e.maxAspectRatio,!1,!0);return _.C(u,J.transform(O),3)}if(u.nextAddress!=4)return z=u.yieldResult,z.transformedData?z.invalidAspectRatio?(e.errorMessage=e.invalidAspectRatioError,u.return()):_.C(u,sRM(e.JSC$13559_imageId,l.files[0],z.transformedData),
4):(e.errorMessage=e.invalidFileTypeError,u.return());M=u.yieldResult;e.JSC$13559_imageId++;kd0(e.uploadManager,[M]);Z=Object.assign({},e.pollOptions[e.selectedImageIndex],{image:M});e.pollOptions.splice(e.selectedImageIndex,1,Z);e.refreshPollOptions();_.$u(e.hostElement,"yt-backstage-poll-image-select");_.Cl(u)})};
_.X.validateImage=function(l){return l.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.X.refreshPollOptions=function(){this.pollOptions=[].concat(_.kA(this.pollOptions))};
_.X.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.kA(this.pollOptions),[this.createPollOption()]))};
_.X.onRemovePollOption=function(l){var e=this.pollOptions[l.model.index];e&&e.image&&this.uploadManager.cancel(e.image.id);this.pollOptions.splice(l.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.$u(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.X.onTextInput=function(){this.refreshPollOptions()};
_.X.onImageButtonClick=function(l){this.selectedImageIndex=l.model.index;this.imageSelector.click()};
_.X.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.X.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.X.saveImageRepositions=function(l){l=l.event_.detail;for(var e=0,O=[],E=_.b(this.pollOptions),J=E.next();!J.done;J=E.next())J=J.value,J.image!==void 0?(J=Object.assign({},J,{image:l[e]}),O.push(J),e++):O.push(J);this.showImagesPreview=!1;this.pollOptions=[].concat(_.kA(O))};
_.X.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 l=0,e=_.b(this.pollOptions),O=e.next();!O.done;O=e.next())if(O=O.value,O.optionText.trim()!==""||O.image!==void 0){if(!O.image||this.hasCustomOptionText&&O.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;l++}return l>=Number(this.editorInfo.minPollOptions)};
_.X.getAllUploadStatuses=function(){var l=this,e,O,E,J;return _.V(function(z){if(z.nextAddress==1)return _.C(z,l.uploadManager.getAllUploadStatuses(),2);e=z.yieldResult;O=_.b(e);for(E=O.next();!E.done;E=O.next())if(J=E.value,J.encryptedBlobId===void 0)return z.return(IoS(l.uploadManager));return z.return(e)})};
_.X.getPostCreateOptions=function(){for(var l=[],e=_.b(this.pollOptions),O=e.next();!O.done;O=e.next())O=O.value,O.image!==void 0&&l.push({text:this.hasCustomOptionText?O.optionText:O.placeholderText,image:O.image});return l};
_.X.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.X.createButtonRenderer=function(l,e){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleString(l)}},isDisabled:e}};
_.X.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.X.computeThumbnailRendererData=function(l){return l?{image:l,selected:!1}:void 0};
_.X.getSimpleString=function(l){return _.lG(l)};
_.X.updateOptionTextFromBinding=function(l){if(l.target){var e=Array.from(_.ud(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(l.target);if(e>=0){var O;this.pollOptions[e].optionText=(O=l.detail.value)!=null?O:""}}};
_.Ji.Object.defineProperties(th.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var l,e;return this.pollOptions.length<((e=(l=this.editorInfo)==null?void 0:l.maxPollOptions)!=null?e:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(l){return l.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(l){return l.image}).map(function(l){return l.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(l){return l.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.data)==null?void 0:l.addOptionButtonText;return e?this.createButtonRenderer(e,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.data)==null?void 0:l.repositionImagesButtonLabel;return e?this.createButtonRenderer(e,!this.hasImages):void 0}}});
th.prototype.onPollOptionsChange=th.prototype.onPollOptionsChange;th.prototype.observeAddImageError=th.prototype.observeAddImageError;th.prototype.onEditorInfoChange=th.prototype.onEditorInfoChange;th.prototype.dataChanged=th.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("ytd-backstage-multi-image-reposition-renderer"),_.q("design:type",Object)],th.prototype,"imageRepositionContainer",void 0);
_.L([_.T(),_.q("design:type",Object)],th.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],th.prototype,"editorInfo",void 0);_.L([_.T(),_.q("design:type",Lq)],th.prototype,"uploadManager",void 0);_.L([_.T(),_.q("design:type",Object)],th.prototype,"showImagesPreview",void 0);_.L([_.T(),_.q("design:type",Array)],th.prototype,"pollOptions",void 0);_.L([_.T(),_.q("design:type",Object)],th.prototype,"errorMessage",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],th.prototype,"dataChanged",null);_.L([_.y0("editorInfo"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],th.prototype,"onEditorInfoChange",null);_.L([_.AA("errorMessage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],th.prototype,"observeAddImageError",null);
_.L([_.y0("pollOptions"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],th.prototype,"onPollOptionsChange",null);_.L([_.R("pollOptions","editorInfo"),_.q("design:type",Object),_.q("design:paramtypes",[])],th.prototype,"isAllowedToAddOption",null);_.L([_.R("pollOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],th.prototype,"hasImages",null);
_.L([_.R("pollOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],th.prototype,"imagesToReposition",null);_.L([_.R("pollOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],th.prototype,"hasCustomOptionText",null);_.L([_.R("data","isAllowedToAddOption"),_.q("design:type",Object),_.q("design:paramtypes",[])],th.prototype,"addOptionButton",null);_.L([_.R("data","hasImages"),_.q("design:type",Object),_.q("design:paramtypes",[])],th.prototype,"repositionImagesButton",null);
_.L([_.U({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],th);
_.Y(th,"ytd-backstage-image-poll-editor-renderer",function(){if(As0!==void 0)return As0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return As0=l},{mode:2});var jG6={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 HVq;var qN=function(){var l=_.B.apply(this,arguments)||this;l.a11yConfig=jG6;l.imageDisplayOffsetTop=0;l.imageDisplayOffsetLeft=0;l.pickerDisplayOffsetTop=0;l.pickerDisplayOffsetLeft=0;l.showPreviewContainer=!0;l.startPicker=!1;l.repositionOptional=!1;l.editOnlyMode=!1;l.savedImageDisplayOffsetTop=0;l.savedImageDisplayOffsetLeft=0;return l};
_.m(qN,_.B);_.X=qN.prototype;_.X.created=function(){_.qZ.requestAvailability()};
_.X.ready=function(){};
_.X.onArrowKeysDown=function(l){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){l.detail.keyboardEvent.preventDefault();var e=0,O=0,E="";switch(l.detail.keyboardEvent.key){case "ArrowUp":GId(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?E=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":GId(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?E=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":GId(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?E=this.a11yConfig.reachRightOfImage:O=this.imageWidth*.05*-1;break;case "ArrowRight":GId(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?E=this.a11yConfig.reachLeftOfImage:O=this.imageWidth*.05}E&&_.ml(E)&&_.$u(this.hostElement,"iron-announce",{text:_.ml(E)});if(O||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),l=_.ml(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+O)),l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),l=_.ml(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})),l&&_.$u(this.hostElement,"iron-announce",{text:l})}};
_.X.getPreviewPosition=function(l,e,O,E){return Math.round(100*(l+e*.5-O)/E)};
_.X.calculateDisplayPosition=function(){var l=this.imageData.naturalWidth,e=this.imageData.naturalHeight;this.displayScale=Math.max(200/l,200/e);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var O=l*this.displayScale*this.imageData.previewCoordinates.left,E=e*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=e>l?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-O;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=l>e?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-E;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=l*this.displayScale;this.imageHeight=e*this.displayScale};
_.X.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.X.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.X.getSignedPosition=function(l,e,O){return e==="X"&&_.hT("HTML_DIR")==="rtl"?O==="-"?l+"px":l*-1+"px":O==="-"?l*-1+"px":l+"px"};
_.X.pickerMove=function(l){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var e=this.pickerOffsetX-l.clientX,O=this.pickerOffsetY-l.clientY;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
O)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.X.pickerMoveStart=function(l){this.startPicker=!0;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY};
_.X.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var l=this.generateCropPreview();l&&_.$u(this.hostElement,"ytd-backstage-image-preview-coordinates-update",l)};
_.X.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.$u(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.X.deleteImage=function(){_.$u(this.hostElement,"ytd-backstage-image-preview-delete")};
_.X.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.X.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var l=this.generateCropPreview();l&&_.$u(this.hostElement,"ytd-backstage-image-preview-coordinates-save",l)};
_.X.getPreviewOffset=function(l,e,O){return e&&l?(O==="X"&&_.hT("HTML_DIR")==="rtl"?300/e*l:300/e*l*-1)+"px":"0px"};
_.X.getSimpleText=function(l){return l?_.lG(l):""};
_.X.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}};
_.Ji.Object.defineProperties(qN.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.ml(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.ml(this.a11yConfig.verticalRepositionInstruction)}l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.ml(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.ml(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 l,e,O=(l=this.instruction)==null?void 0:(e=l.previewInstruction)==null?void 0:e.editButtonLabel;return O?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J=this.editOnlyMode?(l=this.instruction)==null?void 0:(e=l.editInstruction)==null?void 0:e.saveImagesButtonLabel:(O=this.instruction)==null?void 0:(E=O.editInstruction)==null?void 0:E.saveButtonLabel;return J?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.instruction)==null?void 0:(e=l.previewInstruction)==null?void 0:e.deleteButtonLabel;return O?{size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.instruction)==null?void 0:(e=l.editInstruction)==null?void 0:e.cancelButtonLabel;l=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return O?{style:l,size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}: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"}}});
qN.prototype.onEditOnlyModeUpdate=qN.prototype.onEditOnlyModeUpdate;qN.prototype.onImageChange=qN.prototype.onImageChange;_.L([_.T(),_.q("design:type",TWV)],qN.prototype,"imageData",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"instruction",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"a11yConfig",void 0);_.L([_.T(),_.q("design:type",Number)],qN.prototype,"imageWidth",void 0);_.L([_.T(),_.q("design:type",Number)],qN.prototype,"imageHeight",void 0);
_.L([_.T(),_.q("design:type",Number)],qN.prototype,"displayScale",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"imageDisplayOffsetTop",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"showPreviewContainer",void 0);
_.L([_.T(),_.q("design:type",Object)],qN.prototype,"startPicker",void 0);_.L([_.T(),_.q("design:type",Number)],qN.prototype,"pickerOffsetX",void 0);_.L([_.T(),_.q("design:type",Number)],qN.prototype,"pickerOffsetY",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"repositionOptional",void 0);_.L([_.T(),_.q("design:type",Object)],qN.prototype,"editOnlyMode",void 0);_.L([_.aB("#picker-container"),_.q("design:type",HTMLElement)],qN.prototype,"JSC$13572_pickerContainer",void 0);
_.L([_.aB("#picker"),_.q("design:type",HTMLElement)],qN.prototype,"picker",void 0);_.L([_.aB("#preview-clipper"),_.q("design:type",HTMLElement)],qN.prototype,"previewClipper",void 0);_.L([_.aB("#image-in-picker-background"),_.q("design:type",HTMLImageElement)],qN.prototype,"JSC$13572_imageInBackground",void 0);_.L([_.aB("#image-in-picker"),_.q("design:type",HTMLImageElement)],qN.prototype,"JSC$13572_imageInPicker",void 0);
_.L([_.aB("#image-in-preview-clipper"),_.q("design:type",HTMLImageElement)],qN.prototype,"JSC$13572_imageInPreviewClipper",void 0);_.L([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],qN.prototype,"altLabelForImage",null);_.L([_.R("imageHeight","imageWidth"),_.q("design:type",Number),_.q("design:paramtypes",[])],qN.prototype,"pickerSize",null);
_.L([_.R("imageHeight","imageWidth"),_.q("design:type",Object),_.q("design:paramtypes",[])],qN.prototype,"imageOrientationStyle",null);_.L([_.R("instruction"),_.q("design:type",Object),_.q("design:paramtypes",[])],qN.prototype,"editButton",null);_.L([_.R("instruction","editOnlyMode"),_.q("design:type",Object),_.q("design:paramtypes",[])],qN.prototype,"saveButton",null);_.L([_.R("instruction"),_.q("design:type",Object),_.q("design:paramtypes",[])],qN.prototype,"deleteButton",null);
_.L([_.R("instruction","editOnlyMode"),_.q("design:type",Object),_.q("design:paramtypes",[])],qN.prototype,"cancelButton",null);_.L([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.q("design:type",Number),_.q("design:paramtypes",[])],qN.prototype,"cropOffsetTop",null);_.L([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.q("design:type",Number),_.q("design:paramtypes",[])],qN.prototype,"cropOffsetLeft",null);
_.L([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],qN.prototype,"pickerBackgroundStyle",null);_.L([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],qN.prototype,"pickerDisplayStyle",null);_.L([_.R("cropOffsetLeft","cropOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],qN.prototype,"imageInPickerStyle",null);
_.L([_.R("cropOffsetLeft","cropOffsetTop","pickerSize"),_.q("design:type",String),_.q("design:paramtypes",[])],qN.prototype,"previewClipperStyle",null);_.L([_.y0("imageData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qN.prototype,"onImageChange",null);_.L([_.y0("editOnlyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qN.prototype,"onEditOnlyModeUpdate",null);
_.L([_.R("showPreviewContainer"),_.q("design:type",String),_.q("design:paramtypes",[])],qN.prototype,"pickerModeStyle",null);_.L([_.U({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],qN);
_.Y(qN,"ytd-backstage-image-preview-renderer",function(){if(HVq!==void 0)return HVq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return HVq=l},{mode:1});var cs1;var Fd6={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 foC;var RC0;var v4=function(){var l=_.B.apply(this,arguments)||this;l.a11yConfig=Fd6;l.imageDisplayOffsetTop=0;l.imageDisplayOffsetLeft=0;l.pickerDisplayOffsetTop=0;l.pickerDisplayOffsetLeft=0;l.cropCoordinatesSaved=!1;l.previewSize=0;l.startPicker=!1;l.repositionOptional=!1;return l};
_.m(v4,_.B);_.X=v4.prototype;_.X.created=function(){_.qZ.requestAvailability()};
_.X.ready=function(){};
_.X.onArrowKeysDown=function(l){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){l.detail.keyboardEvent.preventDefault();var e=0,O=0,E="";switch(l.detail.keyboardEvent.key){case "ArrowUp":BW8(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?E=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":BW8(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?E=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":BW8(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?E=this.a11yConfig.reachRightOfImage:O=this.imageWidth*.05*-1;break;case "ArrowRight":BW8(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?E=this.a11yConfig.reachLeftOfImage:O=this.imageWidth*.05}E&&_.ml(E)&&_.$u(this.hostElement,"iron-announce",{text:_.ml(E)});if(O||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),l=_.ml(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+O)),l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),l=_.ml(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})),l&&_.$u(this.hostElement,"iron-announce",{text:l})}};
_.X.getPreviewPosition=function(l,e,O,E){return Math.round(100*(l+e*.5-O)/E)};
_.X.displayImage=function(){var l=this.JSC$13583_pickerContainer.getBoundingClientRect().width,e=this.JSC$13583_pickerContainer.getBoundingClientRect().height,O=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),E=this.JSC$13583_imageInBackground.naturalWidth,J=this.JSC$13583_imageInBackground.naturalHeight;this.displayScale=Math.max(O/E,O/J);this.imageWidth=E*this.displayScale;this.imageHeight=J*this.displayScale;this.pickerDisplayOffsetLeft=(l-O)/2;this.pickerDisplayOffsetTop=
(e-O)/2;this.imageDisplayOffsetLeft=J>E?this.pickerDisplayOffsetLeft:(l-this.imageWidth)/2;this.imageDisplayOffsetTop=E>J?this.pickerDisplayOffsetTop:(e-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.X.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13583_imageInBackground.src=this.imageData.toString(),this.JSC$13583_imageInPicker.src=this.imageData.toString(),this.JSC$13583_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.X.getSignedPosition=function(l,e,O){return e==="X"&&_.hT("HTML_DIR")==="rtl"?O==="-"?l+"px":l*-1+"px":O==="-"?l*-1+"px":l+"px"};
_.X.pickerMove=function(l){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var e=this.pickerOffsetX-l.clientX,O=this.pickerOffsetY-l.clientY;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
O)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.X.pickerMoveStart=function(l){this.startPicker=!0;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY};
_.X.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.X.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.$u(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.X.getPreviewOffset=function(l,e,O,E){return e&&l&&O?(E==="X"&&_.hT("HTML_DIR")==="rtl"?O/e*l:O/e*l*-1)+"px":"0px"};
_.X.getSimpleText=function(l){return l?_.lG(l):""};
_.X.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var l=this.cropOffsetTop/this.imageHeight,e=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,O=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,E=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ud(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.$u(this.hostElement,"yt-img-crop-coordinates-update",{top:l,right:e,bottom:O,left:E})}};
_.Ji.Object.defineProperties(v4.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.ml(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.ml(this.a11yConfig.verticalRepositionInstruction)}l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.ml(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.ml(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 l,e=(l=this.learnMore.runs[0])==null?void 0:l.navigationEndpoint,O;return((O=_.I(e,_.Db))==null?void 0:O.url)||void 0}}}});
v4.prototype.onImageDataChange=v4.prototype.onImageDataChange;_.L([_.T(),_.q("design:type",Object)],v4.prototype,"imageData",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"instruction",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"a11yConfig",void 0);_.L([_.T(),_.q("design:type",Number)],v4.prototype,"imageWidth",void 0);_.L([_.T(),_.q("design:type",Number)],v4.prototype,"imageHeight",void 0);_.L([_.T(),_.q("design:type",Number)],v4.prototype,"displayScale",void 0);
_.L([_.T(),_.q("design:type",Object)],v4.prototype,"imageDisplayOffsetTop",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"cropCoordinatesSaved",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"previewSize",void 0);
_.L([_.T(),_.q("design:type",Object)],v4.prototype,"startPicker",void 0);_.L([_.T(),_.q("design:type",Number)],v4.prototype,"pickerOffsetX",void 0);_.L([_.T(),_.q("design:type",Number)],v4.prototype,"pickerOffsetY",void 0);_.L([_.T(),_.q("design:type",Object)],v4.prototype,"repositionOptional",void 0);_.L([_.aB("#picker-container"),_.q("design:type",HTMLElement)],v4.prototype,"JSC$13583_pickerContainer",void 0);_.L([_.aB("#picker"),_.q("design:type",HTMLElement)],v4.prototype,"picker",void 0);
_.L([_.aB("#image-in-picker-background"),_.q("design:type",HTMLImageElement)],v4.prototype,"JSC$13583_imageInBackground",void 0);_.L([_.aB("#image-in-picker"),_.q("design:type",HTMLImageElement)],v4.prototype,"JSC$13583_imageInPicker",void 0);_.L([_.aB("#image-in-preview-clipper"),_.q("design:type",HTMLImageElement)],v4.prototype,"JSC$13583_imageInPreviewClipper",void 0);_.L([_.aB("#full-image-as-preview"),_.q("design:type",HTMLImageElement)],v4.prototype,"imageAsPreview",void 0);
_.L([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],v4.prototype,"altLabelForImage",null);_.L([_.R("imageHeight","imageWidth"),_.q("design:type",Number),_.q("design:paramtypes",[])],v4.prototype,"pickerSize",null);_.L([_.R("imageHeight","imageWidth"),_.q("design:type",Object),_.q("design:paramtypes",[])],v4.prototype,"imageOrientationStyle",null);
_.L([_.R("instruction.previewInstruction.editButtonLabel"),_.q("design:type",Object),_.q("design:paramtypes",[])],v4.prototype,"editButton",null);_.L([_.R("instruction.editInstruction.saveButtonLabel"),_.q("design:type",Object),_.q("design:paramtypes",[])],v4.prototype,"saveButton",null);_.L([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.q("design:type",Number),_.q("design:paramtypes",[])],v4.prototype,"cropOffsetTop",null);
_.L([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.q("design:type",Number),_.q("design:paramtypes",[])],v4.prototype,"cropOffsetLeft",null);_.L([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],v4.prototype,"pickerBackgroundStyle",null);_.L([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],v4.prototype,"pickerDisplayStyle",null);
_.L([_.R("cropOffsetLeft","cropOffsetTop"),_.q("design:type",String),_.q("design:paramtypes",[])],v4.prototype,"imageInPickerStyle",null);_.L([_.R("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.q("design:type",String),_.q("design:paramtypes",[])],v4.prototype,"previewClipperStyle",null);_.L([_.AA("imageData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v4.prototype,"onImageDataChange",null);
_.L([_.R("cropCoordinatesSaved"),_.q("design:type",String),_.q("design:paramtypes",[])],v4.prototype,"pickerModeStyle",null);_.L([_.R("instruction.editInstruction.learnMore"),_.q("design:type",Object),_.q("design:paramtypes",[])],v4.prototype,"learnMore",null);_.L([_.R("learnMore"),_.q("design:type",Object),_.q("design:paramtypes",[])],v4.prototype,"learnMoreUrl",null);_.L([_.Ps({is:"yt-img-crop-picker",disableElementRegistration:!0})],v4);
_.Y(v4,"yt-img-crop-picker",function(){if(RC0===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;foC===void 0&&(foC=document.createElement("template"));var E=foC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);RC0=l}l=RC0;return l},{mode:2});var NN=function(){var l=_.B.apply(this,arguments)||this;l.errorMessage="";l.hasPreview=!1;l.isBackstagePost=!1;l.dismissButtonOverrides={size:"XS"};return l};
_.m(NN,_.B);_.X=NN.prototype;_.X.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"}}}};
_.X.detached=function(){this.removeOverlay()};
_.X.setPreview=function(l){_.ud(this.hostElement).querySelector("#preview-picker").imageData=l;this.hasPreview=!0;_.$u(this.hostElement,"yt-backstage-image-select-preview")};
_.X.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var l=_.ud(this.hostElement).querySelector("#dropzone");l.classList.remove("dragover");l.classList.remove("error");_.$u(this.hostElement,"yt-backstage-image-select-cancel")};
_.X.setupOverlay=function(){var l=this.imageUploadEndpoint;this.removeOverlay();if(l&&l.imageValidationInfo){var e=_.ud(this.hostElement).querySelector("#dropzone"),O=_.ud(this.hostElement).querySelector("#select");this.overlay=new ly(l.uploadUrl,l.channelId,l.imageValidationInfo.maxFileSizeMb,l.imageValidationInfo.allowedMaxAspectRatio,e,O,!0);_.f4(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.f4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.f4(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.f4(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.f4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.X.removeOverlay=function(){this.overlay&&(_.px(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.px(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.px(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.px(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.px(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.X.onDragOver=function(l){var e=_.ud(this.hostElement).querySelector("#dropzone");_.oB(e,"dragover",l.value)};
_.X.onPreview=function(l){this.setPreview(l.value)};
_.X.onImageError=function(l){if(l.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var e;l=(e=this.data)==null?void 0:e.fileSizeError}else if(l.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var O;l=(O=this.data)==null?void 0:O.invalidError}else if(l.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var E;l=(E=this.data)==null?void 0:E.invalidAspectRatioError}else return;this.errorMessage=_.lG(l);_.ud(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.X.onImageAlert=function(l){this.onImageError(l)};
_.X.uploadPromise=function(){var l=this,e=this.overlay&&this.overlay.uploadPromise();if(e)return e.catch(function(){throw Error(l.data?_.lG(l.data.uploadFailureError):"");})};
_.Ji.Object.defineProperties(NN.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var l,e;if((l=this.data)==null?0:(e=l.icon)==null?0:e.iconType)return _.w6(this.data.icon.iconType)}}});
NN.prototype.setupOverlay=NN.prototype.setupOverlay;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],NN.prototype,"rendererStamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NN.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],NN.prototype,"imageUploadEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],NN.prototype,"errorMessage",void 0);
_.L([_.T(),_.q("design:type",ly)],NN.prototype,"overlay",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NN.prototype,"hasPreview",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NN.prototype,"isBackstagePost",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],NN.prototype,"selectionCancel",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],NN.prototype,"previewCancel",null);
_.L([_.R("data.icon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],NN.prototype,"icon",null);_.L([_.T(),_.q("design:type",Object)],NN.prototype,"dismissButtonOverrides",void 0);_.L([_.AA("imageUploadEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NN.prototype,"setupOverlay",null);_.L([_.U({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],NN);
_.Y(NN,"ytd-backstage-image-select-renderer",function(){if(cs1!==void 0)return cs1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return cs1=l},{mode:1});var Tz1;var sGC;var rq=function(){var l=_.B.apply(this,arguments)||this;l.selected=!1;return l};
_.m(rq,_.B);_.X=rq.prototype;_.X.computeSelected=function(l){return l==null?void 0:l.selected};
_.X.computeTransform=function(l,e,O){var E,J,z=(J=(E=this.imageContainer)==null?void 0:E.getBoundingClientRect())!=null?J:{width:0,height:0};E=Math.max(z.width/e,z.height/O);O=O*E*l.top;return"translateX("+this.getSignedPosition(e*E*l.left,"X","-")+") translateY("+this.getSignedPosition(O,"Y","-")+")"};
_.X.getSignedPosition=function(l,e,O){return e==="X"&&_.hT("HTML_DIR")==="rtl"?O==="-"?l+"px":l*-1+"px":O==="-"?l*-1+"px":l+"px"};
_.X.onClick=function(){var l;_.$u(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(l=this.data)==null?void 0:l.image)};
_.X.onKeyPress=function(l){if(l.keyCode===13)this.onClick()};
_.Ji.Object.defineProperties(rq.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:(e=l.image)==null?void 0:e.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)!=null&&l.image){var e;l=(e=this.data)==null?void 0:e.image;return l.previewCoordinates.top!==0||l.previewCoordinates.left!==0?(e=this.computeTransform(l.previewCoordinates,l.naturalWidth,l.naturalHeight),l.naturalHeight>=l.naturalWidth?"width:inherit;transform:"+e+";":"height:inherit;transform:"+e+";"):l.naturalHeight>=l.naturalWidth?"width:inherit;":"height:inherit;"}}}});
rq.prototype.onKeyPress=rq.prototype.onKeyPress;_.L([_.aB(".image-container"),_.q("design:type",HTMLElement)],rq.prototype,"imageContainer",void 0);_.L([_.T(),_.q("design:type",Object)],rq.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.q("design:type",Object)],rq.prototype,"selected",void 0);_.L([_.R("data.image"),_.q("design:type",Object),_.q("design:paramtypes",[])],rq.prototype,"thumbnailUrl",null);
_.L([_.R("data.image","data.image.previewCoordinates"),_.q("design:type",Object),_.q("design:paramtypes",[])],rq.prototype,"thumbnailStyle",null);_.L([_.wP("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],rq.prototype,"onKeyPress",null);_.L([_.U({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],rq);
_.Y(rq,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(sGC!==void 0)return sGC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return sGC=l},{mode:2});var Dk=function(l,e,O){O=O===void 0?!1:O;_.Kx.call(this);var E=this;this.dropZoneOverlay=new gt(l);this.selectOverlay=O?new iS(e,"multiple_file",["image/*"]):new iS(e,"single_file",["image/*"]);this.handler=new _.ue(this);_.oQ(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(e,"click",function(){E.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.m(Dk,_.Kx);Dk.prototype.onChange=function(l){var e;(e=l.files)!=null&&e.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:l.files}))};var Sg=function(){var l=_.B.apply(this,arguments)||this;l.addImageErrorMessage="";l.errorMessage="";l.images=[];l.selectedImageIndex=0;l.modern=_.a("web_modern_buttons");l.maxNumImagesPerPost=_.Cv("max_num_images_per_post_web_ui");l.JSC$13598_imageId=0;return l};
_.m(Sg,_.B);_.X=Sg.prototype;_.X.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.$u(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.X.observeDragToReorder=function(){var l=this;if(this.showImagesPreview){var e,O=Qlx(_.XJ.getInstance(),(e=this.data)==null?void 0:e.dragToReorderTooltip);_.UD.addLowPriorityJob(function(){_.wQ(l.hostElement,O,l.thumbnailDragDropArea)})}};
_.X.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}}};
_.X.computeThumbnail=function(l){return(l==null?void 0:l.localImageSrc)||void 0};
_.X.onRendererstamperFinished=function(){_.P0R(this.ytReorderableBehavior,_.ud(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ud(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.X.handleDrop=function(l){var e=l.currDragItem;if(e!=null&&e.data){l=this.images[this.selectedImageIndex];var O=e.data.image,E=this.images.indexOf(O)||0;e=_.Up(e.parentNode.children,e);this.images.splice(E,1);this.images.splice(e,0,O);this.images=[].concat(_.kA(this.images));this.selectedImageIndex=this.images.indexOf(l)}};
_.X.setUpImagePicker=function(){var l=this.imageUploadEndpoint;l&&l.imageValidationInfo&&(this.uploadManager=new Lq(l.uploadUrl,l.channelId),this.initialPicker||(this.initialPicker=new Dk(this.dropzone,this.selectLink,!0),_.f4(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Dk(this.addImageButtonContainer,this.addImageSelectButton),_.f4(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.f4(this.JSC$13598_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.f4(this.JSC$13598_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.f4(_.ud(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.X.detached=function(){this.initialPicker&&(_.px(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.px(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.X.onInitialSelectImages=function(l){var e=this;return _.V(function(O){return _.C(O,e.onSelectImages(l,!1),0)})};
_.X.onAddImage=function(l){var e=this;return _.V(function(O){return _.C(O,e.onSelectImages(l,!0),0)})};
_.X.onSelectImages=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D;return _.V(function(b2){switch(b2.nextAddress){case 1:e?O.addImageErrorMessage="":(O.images=[],O.errorMessage="");E=l.detail;J=O.validateImages([].concat(_.kA(E)));if(J!=="")return e?O.addImageErrorMessage=J:O.errorMessage=J,b2.return();z=[].concat(_.kA(E)).map(function($V){return(new Qu(O.maxAspectRatio,!1,!0)).transform($V)});
return _.C(b2,Promise.allSettled(z),2);case 2:M=b2.yieldResult,Z=_.b(M.entries()),u=Z.next();case 3:if(u.done){b2.jumpTo(5);break}d=u.value;g=_.b(d);w=g.next().value;n=g.next().value;k=w;y=n;if(y.status!=="fulfilled"){P=f=c=void 0;e?O.addImageErrorMessage=_.lG((c=O.data)==null?void 0:c.invalidError):O.errorMessage=O.errorMessage===""?_.lG((f=O.data)==null?void 0:f.invalidError):_.lG((P=O.data)==null?void 0:P.multiFileError);b2.jumpTo(4);break}h=y.value;h.cropped&&_.$u(O.hostElement,"yt-backstage-multi-image-cropped");
if(h.invalidAspectRatio){r=t=N=void 0;e?O.addImageErrorMessage=_.lG((N=O.data)==null?void 0:N.invalidAspectRatioError):O.errorMessage=O.errorMessage===""?_.lG((t=O.data)==null?void 0:t.invalidAspectRatioError):_.lG((r=O.data)==null?void 0:r.multiFileError);b2.jumpTo(4);break}return _.C(b2,sRM(O.JSC$13598_imageId,l.detail[k],h.transformedData),8);case 8:D=b2.yieldResult,O.images.push(D),O.JSC$13598_imageId++;case 4:u=Z.next();b2.jumpTo(3);break;case 5:if(O.errorMessage!==""||O.addImageErrorMessage!==
"")return b2.return();e?kd0(O.uploadManager,[O.images[O.images.length-1]]):kd0(O.uploadManager,O.images);O.images=[].concat(_.kA(O.images));O.selectedImageIndex=e?Math.max(O.images.length-1,0):0;_.$u(O.hostElement,"yt-backstage-multi-image-select");_.Cl(b2)}})};
_.X.onThumbnailClick=function(l){if(l=l.event_.detail)this.selectedImageIndex=this.images.indexOf(l)};
_.X.validateImages=function(l){if(l.length>this.maxNumImagesPerPost){var e;return _.lG((e=this.data)==null?void 0:e.multiImageExceedMaxImageCountError)}var O=1048576*this.maxFileSizeMb;l=l.filter(function(z){return z.size>O}).length;
if(l===0)return"";var E,J;l=l>1?(E=this.data)==null?void 0:E.multiFileError:(J=this.data)==null?void 0:J.fileSizeError;return _.lG(l)};
_.X.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.kA(this.images));this.selectedImageIndex=0};
_.X.repositionImage=function(l){this.images[this.selectedImageIndex].previewCoordinates=l.event_.detail;this.images=[].concat(_.kA(this.images))};
_.X.getAllUploadStatuses=function(){var l=this,e,O,E,J;return _.V(function(z){if(z.nextAddress==1)return _.C(z,l.uploadManager.getAllUploadStatuses(),2);e=z.yieldResult;O=_.b(e);for(E=O.next();!E.done;E=O.next())if(J=E.value,J.encryptedBlobId===void 0)return z.return(IoS(l.uploadManager));return z.return(e)})};
_.X.hasImages=function(){return this.images.length>0};
_.X.cancel=function(){for(var l=this.uploadManager,e=_.b(l.imagesUploadData),O=e.next();!O.done;O=e.next())l.cancel(O.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.$u(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Ji.Object.defineProperties(Sg.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.imageUploadEndpoint)==null?void 0:(e=l.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.imageUploadEndpoint)==null?void 0:(e=l.imageValidationInfo)==null?void 0:e.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var l,e;if((l=this.data)==null?0:(e=l.icon)==null?0:e.iconType)return _.w6(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.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 l=this;return(this.images||[]).map(function(e,O){return{renderer:{image:e,selected:O===l.selectedImageIndex}}})}}});
Sg.prototype.setUpImagePicker=Sg.prototype.setUpImagePicker;Sg.prototype.onRendererstamperFinished=Sg.prototype.onRendererstamperFinished;Sg.prototype.observeDragToReorder=Sg.prototype.observeDragToReorder;Sg.prototype.observeAddImageError=Sg.prototype.observeAddImageError;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Sg.prototype,"rendererStamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.U06),_.q("design:type",Object)],Sg.prototype,"ytReorderableBehavior",void 0);_.L([_.aB("#dropzone"),_.q("design:type",HTMLElement)],Sg.prototype,"dropzone",void 0);_.L([_.aB("#select-link"),_.q("design:type",HTMLElement)],Sg.prototype,"selectLink",void 0);_.L([_.aB("#thumbnail-drag-drop-area"),_.q("design:type",HTMLElement)],Sg.prototype,"thumbnailDragDropArea",void 0);_.L([_.aB("#add-image-button-container"),_.q("design:type",HTMLElement)],Sg.prototype,"addImageButtonContainer",void 0);
_.L([_.aB("#add-image-button"),_.q("design:type",HTMLElement)],Sg.prototype,"addImageSelectButton",void 0);_.L([_.aB("#image-preview-container"),_.q("design:type",Object)],Sg.prototype,"JSC$13598_imagePreviewContainer",void 0);_.L([_.T(),_.q("design:type",Object)],Sg.prototype,"addImageErrorMessage",void 0);_.L([_.T(),_.q("design:type",Object)],Sg.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Sg.prototype,"errorMessage",void 0);
_.L([_.T(),_.q("design:type",Object)],Sg.prototype,"imageUploadEndpoint",void 0);_.L([_.T(),_.q("design:type",Array)],Sg.prototype,"images",void 0);_.L([_.T(),_.q("design:type",Dk)],Sg.prototype,"initialPicker",void 0);_.L([_.T(),_.q("design:type",Dk)],Sg.prototype,"addImagePicker",void 0);_.L([_.T(),_.q("design:type",Lq)],Sg.prototype,"uploadManager",void 0);_.L([_.T(),_.q("design:type",Object)],Sg.prototype,"selectedImageIndex",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sg.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sg.prototype,"maxNumImagesPerPost",void 0);_.L([_.R("imageUploadEndpoint"),_.q("design:type",Number),_.q("design:paramtypes",[])],Sg.prototype,"maxAspectRatio",null);_.L([_.R("imageUploadEndpoint"),_.q("design:type",Number),_.q("design:paramtypes",[])],Sg.prototype,"maxFileSizeMb",null);
_.L([_.R("data.icon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sg.prototype,"dropIcon",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sg.prototype,"selectionCancel",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sg.prototype,"previewCancel",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sg.prototype,"dataForAddImageButton",null);
_.L([_.R("errorMessage"),_.q("design:type",String),_.q("design:paramtypes",[])],Sg.prototype,"dropzoneClass",null);_.L([_.R("images"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Sg.prototype,"showImagesPreview",null);_.L([_.R("images"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Sg.prototype,"containMaxImages",null);_.L([_.AA("addImageErrorMessage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sg.prototype,"observeAddImageError",null);
_.L([_.AA("showImagesPreview"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sg.prototype,"observeDragToReorder",null);_.L([_.R("images","selectedImageIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sg.prototype,"selectedImageData",null);_.L([_.R("images","selectedImageIndex"),_.q("design:type",Array),_.q("design:paramtypes",[])],Sg.prototype,"thumbnailRenderers",null);
_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sg.prototype,"onRendererstamperFinished",null);_.L([_.AA("imageUploadEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sg.prototype,"setUpImagePicker",null);_.L([_.U({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Sg);
_.Y(Sg,"ytd-backstage-multi-image-select-renderer",function(){if(Tz1!==void 0)return Tz1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Tz1=l},{mode:1});var Gd6;var BzC;var PhH;var Q3=function(){var l=_.B.apply(this,arguments)||this;l.boundCaptureFocus=function(e){l.onCaptureFocus(e)};
return l};
_.m(Q3,_.B);_.X=Q3.prototype;_.X.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.X.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.X.onCaptureFocus=function(l){_.ey(l).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.X.getIconType=function(l){return l?"yt-icons:"+l.toLowerCase():null};
_.X.onSelect=function(){var l;if((l=this.data)==null?0:l.onSelectCommand)if(_.a("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var e;((e=_.I(this.data.onSelectCommand.commandMetadata,_.V4))==null?0:e.url)?_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.V2().resolve(_.Zh).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Ji.Object.defineProperties(Q3.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.lG(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}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Q3.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Q3.prototype,"data",void 0);_.L([_.aB("#item"),_.q("design:type",HTMLElement)],Q3.prototype,"item",void 0);_.L([_.R("data.label"),_.q("design:type",String),_.q("design:paramtypes",[])],Q3.prototype,"label",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Q3.prototype,"value",null);_.L([_.U({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Q3);
_.Y(Q3,"ytd-privacy-dropdown-item-renderer",function(){if(PhH!==void 0)return PhH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return PhH=l},{mode:1});var xm=function(){var l=_.B.apply(this,arguments)||this;l.value="";l.label="";l.disabled=!1;return l};
_.m(xm,_.B);_.X=xm.prototype;_.X.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"}}}};
_.X.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.X.dataChanged=function(){this.reset()};
_.X.valueChanged=function(){var l;if(this.value&&(l=this.data)!=null&&l.entries){l=_.b(this.data.entries);for(var e=l.next();!e.done;e=l.next())if((e=this.getRendererForEntry(e.value))&&this.getItemRendererValue(e)===this.value){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}}};
_.X.setInitialLabel=function(){if(this.data&&this.data.entries)for(var l=_.b(this.data.entries),e=l.next();!e.done;e=l.next())if(e=this.getRendererForEntry(e.value)){if(e.isSelected){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}this.data.label&&(this.label=this.data.label)}};
_.X.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var l=_.b(this.data.entries),e=l.next();!e.done;e=l.next()){e=this.getRendererForEntry(e.value);var O=void 0;if((O=e)==null?0:O.isSelected)return this.getItemRendererValue(e)||-1}return-1};
_.X.getItemRendererValue=function(l){return"stringValue"in l||"int32Value"in l?l.stringValue||l.int32Value||null:null};
_.X.getRendererForEntry=function(l){return l.dropdownItemRenderer||l.privacyDropdownItemRenderer||l.navigationDropdownItemRenderer||null};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("value-changed",this.value))};
_.X.updateValueFromBinding=function(l){this.value=l.detail.value};
xm.prototype.valueChangedForBinding=xm.prototype.valueChangedForBinding;xm.prototype.valueChanged=xm.prototype.valueChanged;xm.prototype.dataChanged=xm.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],xm.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],xm.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],xm.prototype,"value",void 0);_.L([_.T(),_.q("design:type",Object)],xm.prototype,"label",void 0);_.L([_.aB("#entries"),_.q("design:type",Object)],xm.prototype,"entries",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xm.prototype,"disabled",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xm.prototype,"dataChanged",null);
_.L([_.y0("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xm.prototype,"valueChanged",null);_.L([_.AA("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xm.prototype,"valueChangedForBinding",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],xm);
_.Y(xm,"ytd-flat-dropdown-renderer",function(){if(BzC!==void 0)return BzC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BzC=l},{mode:1});var UWk;var ll=function(){var l=_.B.apply(this,arguments)||this;l.quizOptions=[];l.explanationPlaceholderText="";l.optionPlaceholderText="";l.correctAnswerIndex=-1;l.isMarkAnswerTooltipShown=!1;l.timer=0;return l};
_.m(ll,_.B);_.X=ll.prototype;_.X.dataChanged=function(){this.optionPlaceholderText=_.lG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.lG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.X.onMarkCorrectAnswer=function(l){var e,O=((e=this.quizOptions[this.correctAnswerIndex])==null?void 0:e.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[l.model.index]=Object.assign({},this.quizOptions[l.model.index],{explanationText:O,isCorrect:!0});this.correctAnswerIndex=l.model.index;this.quizOptions=[].concat(_.kA(this.quizOptions))};
_.X.updatePlaceholderTexts=function(){for(var l=!1,e=[],O=0;O<this.quizOptions.length;O++){var E=this.optionPlaceholderText+" "+(O+1),J=void 0;((J=this.quizOptions[O])==null?void 0:J.placeholderText)!==E?(l=!0,e.push(Object.assign({},this.quizOptions[O],{placeholderText:E}))):e.push(this.quizOptions[O])}l&&(this.quizOptions=e);this.isValid()?_.$u(this.hostElement,"yt-commentbox-post-enable"):_.$u(this.hostElement,"yt-commentbox-post-disable")};
_.X.getSimpleString=function(l){return _.lG(l)};
_.X.createQuizOptions=function(l){var e=[],O;l=(O=l==null?void 0:l.minQuizOptions)!=null?O:0;for(O=0;O<l;O++)e.push(this.createQuizOption());return e};
_.X.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.kA(this.quizOptions),[this.createQuizOption()]))};
_.X.onInput=function(){this.quizOptions=[].concat(_.kA(this.quizOptions))};
_.X.onExplanationInput=function(){_.$u(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.X.onRemoveQuizOption=function(l){this.quizOptions.splice(l.model.index,1);l.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:l.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.kA(this.quizOptions));this.quizOptions.length===0&&_.$u(this.hostElement,"yt-quiz-attachment-dismiss")};
_.X.updateHintRenderer=function(){var l=this;clearTimeout(this.timer);this.timer=setTimeout(function(){l.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.X.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var l=0,e=0,O=_.b(this.quizOptions),E=O.next();!E.done;E=O.next()){E=E.value;var J=void 0;if(((J=E.optionText)==null?void 0:J.trim())!==""||E.isCorrect){E.isCorrect&&e++;J=void 0;if(this.hasCustomOptionText&&((J=E.optionText)==null?void 0:J.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;l++}}return l>=
Number(this.editorInfo.minQuizOptions)&&e===1};
_.X.getPostCreateOptions=function(){for(var l=[],e=_.b(this.quizOptions),O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;((E=O.optionText)==null?void 0:E.trim())!==""&&l.push({pollOption:{text:O.optionText,explanation:O.explanationText},isCorrect:O.isCorrect})}return l};
_.X.getExplanationText=function(){var l;return((l=this.quizOptions[this.correctAnswerIndex])==null?void 0:l.explanationText)||""};
_.X.maybeDisplayMarkAnswerEduToolTip=function(){var l,e,O,E,J,z,M;this.shouldShowMarkAnswerTooltip()&&((l=this.editorInfo)==null?0:(e=l.markAnswerButton)==null?0:(O=e.buttonRenderer)==null?0:(E=O.hint)==null?0:(J=E.hintRenderer)==null?0:(z=J.content)==null?0:(M=z.bubbleHintRenderer)==null?0:M.text)&&(_.XJ.getInstance(),l=zl(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,(l==null?void 0:l.length)>0&&this.optionSelectors&&_.aX(l[0],this.optionSelectors[0]))};
_.X.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var l=0,e=_.b(this.quizOptions),O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;((E=O.optionText)==null?void 0:E.trim())!==""&&l++;if(O.isCorrect)return!1}return l<2?!1:!0};
_.X.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.X.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.X.updateOptionTextFromBinding=function(l){if(l.target){var e=Array.from(_.ud(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(l.target);if(e>=0){var O;this.quizOptions[e].optionText=(O=l.detail.value)!=null?O:""}}};
_.Ji.Object.defineProperties(ll.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.editorInfo)==null?void 0:(e=l.addOptionButton)==null?void 0:e.buttonRenderer;O&&(O.style="STYLE_SUGGESTIVE",O.size="SIZE_SMALL",O.isDisabled=!this.isAllowedToAddOption);return(O==null?0:O.text)?O:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var l,e;return this.quizOptions.length<((e=(l=this.editorInfo)==null?void 0:l.maxQuizOptions)!=null?e:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(l){var e;return(e=l.optionText)==null?void 0:e.trim()})}}});
ll.prototype.updatePlaceholderTexts=ll.prototype.updatePlaceholderTexts;ll.prototype.dataChanged=ll.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],ll.prototype,"editorInfo",void 0);_.L([_.T(),_.q("design:type",Array)],ll.prototype,"quizOptions",void 0);_.L([_.T(),_.q("design:type",Object)],ll.prototype,"explanationPlaceholderText",void 0);_.L([_.kT(".option-selector-button"),_.q("design:type",Array)],ll.prototype,"optionSelectors",void 0);
_.L([_.y0("editorInfo"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ll.prototype,"dataChanged",null);_.L([_.R("editorInfo","isAllowedToAddOption","quizOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],ll.prototype,"addAnswerButton",null);_.L([_.R("editorInfo","quizOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],ll.prototype,"isAllowedToAddOption",null);
_.L([_.y0("quizOptions"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ll.prototype,"updatePlaceholderTexts",null);_.L([_.R("quizOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],ll.prototype,"hasCustomOptionText",null);_.L([_.U({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],ll);
_.Y(ll,"ytd-backstage-quiz-editor-renderer",function(){if(UWk!==void 0)return UWk;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return UWk=l},{mode:2});var Y21;var hCq=(TK.FIRSTDAYOFWEEK+1)%7;var Ldq;var tP0=[],q2q=0,v2q=0;q2q=0;v2q=24;if(.25*(v2q-q2q)<0)Ldq=[];else{for(var Nz1=q2q;Nz1<v2q;Nz1+=.25)tP0.push(Nz1);Ldq=tP0}var rsx=Ldq.map(function(l){l=l*60*60;return{secondsSinceMidnight:l,text:(new So(7)).format(new Date(0,0,0,0,0,l))}});var DWS;var ex=function(){var l=_.B.apply(this,arguments)||this;l.skipNextOpenDialog=!1;l.errorMessage="";return l};
_.m(ex,_.B);_.X=ex.prototype;_.X.attached=function(){var l=this,e=new MutationObserver(function(){l.JSC$13641_calendarMain.scrollHeight>0&&(e.disconnect(),l.calendarConfig&&l.calendarConfig.selectedDate&&l.scrollToDate())});
e.observe(this.JSC$13641_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){e.disconnect()},1E3)};
_.X.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.X.onDateTextChange=function(){if(this.calendarConfig){var l=this.validateDateText();l.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(l.details)):this.textbox.setAttribute("invalid","")}};
_.X.handleDayClick=function(l){l.model.day.date&&(this.commitDate(l.model.day.date),this.dialog.close())};
_.X.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var l=NWu(this.calendarConfig.selectedDate,this.renderData);l!==void 0&&this.JSC$13641_calendarMain.scrollToIndex(l)}};
_.X.scrollToNextMonth=function(){this.JSC$13641_calendarMain.scrollToIndex(this.JSC$13641_calendarMain.firstVisibleIndex+1)};
_.X.scrollToPrevMonth=function(){this.JSC$13641_calendarMain.firstVisibleIndex===0&&this.JSC$13641_calendarMain.scrollTo(0,0);this.JSC$13641_calendarMain.scrollToIndex(this.JSC$13641_calendarMain.firstVisibleIndex-1)};
_.X.onFormSubmit=function(l){l.preventDefault();this.calendarConfig&&(l=this.validateDateText(),l.isValid&&(this.commitDate(l.details),this.dialog.close()))};
_.X.onEscOrClickingOutside=function(l){l=l.detail.path&&!!l.detail.path.length&&l.detail.path[0];if(l.classList.contains("ytd-calendar-date-picker")){l===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var e=0;e<this.dropdownButton.children.length;e++)this.dropdownButton.children[e]===l&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}l=this.textbox.value!==this.dateText;e=this.validateDateText();l&&e.isValid&&this.commitDate(e.details);this.dialog.close();this.textbox.value=
this.dateText};
_.X.commitDate=function(l){this.calendarConfig&&(this.set("calendarConfig.selectedDate",l),_.$u(this.hostElement,"ytd-calendar-date-selected",l))};
_.X.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var l=this.textbox.value;var e=new Date;l=(new o28(2)).parse(l,e,{validate:!0})===l.length?qi2(e):void 0;if(!l)return this.errorMessage=_.ml("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};e=this.calendarConfig.start;var O=this.calendarConfig.end;if(UEp(l,e))return this.errorMessage=_.ml("ENTER_DATE_OR_LATER",{allowed_date:t5A(e)}),{isValid:!1,details:void 0};if(UEp(O,l))return this.errorMessage=
_.ml("ENTER_DATE_OR_EARLIER",{allowed_date:t5A(O)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:l}};
_.Ji.Object.defineProperties(ex.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?t5A(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var l=this.calendarConfig,e=[],O=0;O<7;O++)e.push(TK.NARROWWEEKDAYS[(O+hCq)%7]);O=[];for(var E=new Date(l.start.year,l.start.month);E.getFullYear()<l.end.year||E.getFullYear()===l.end.year&&E.getMonth()<=l.end.month;){var J=O,z=J.push,M=E.getFullYear(),Z=E.getMonth(),u=l,d=void 0,g=[],w=Object.freeze({extraCssClass:"invisible",debugClass:""}),n=new Date(M,Z),k=qi2(n);n=n.getDay();for(var y=qi2(new Date);k.month===
Z;){n!==hCq&&d||(d=Array.from({length:7}).fill(w),g.push(d));var c={date:{year:M,month:Z,day:k.day},extraCssClass:"",debugClass:""};u.selectedDate&&c.date&&PDA(c.date,u.selectedDate)&&(c.extraCssClass+=" selected");if(UEp(k,u.start)||UEp(u.end,k))c.extraCssClass+=" disabled";PDA(k,y)&&(c.extraCssClass+=" today");c.extraCssClass=c.extraCssClass.trim();d[(n-hCq+7)%7]=c;k=hXp(k);n=(n+1)%7}z.call(J,{weeks:g,monthLabel:TK.SHORTMONTHS[Z]+" "+M,year:M,month:Z,monthLabelExtraCssClass:g[0][2]===w?"shift-down-label":
""});E.setMonth(E.getMonth()+1)}return{months:O,daysOfWeekLabel:e}}}}});
ex.prototype.onEscOrClickingOutside=ex.prototype.onEscOrClickingOutside;ex.prototype.scrollToDate=ex.prototype.scrollToDate;_.L([_.T(),_.q("design:type",Object)],ex.prototype,"calendarConfig",void 0);_.L([_.T(),_.q("design:type",Object)],ex.prototype,"skipNextOpenDialog",void 0);_.L([_.T(),_.q("design:type",Object)],ex.prototype,"errorMessage",void 0);_.L([_.aB("#textbox"),_.q("design:type",HTMLInputElement)],ex.prototype,"textbox",void 0);
_.L([_.aB("#calendar-dialog"),_.q("design:type",Object)],ex.prototype,"dialog",void 0);_.L([_.aB("#calendar-main"),_.q("design:type",Object)],ex.prototype,"JSC$13641_calendarMain",void 0);_.L([_.aB("#date-picker"),_.q("design:type",HTMLElement)],ex.prototype,"dropdownButton",void 0);_.L([_.R("calendarConfig.selectedDate"),_.q("design:type",String),_.q("design:paramtypes",[])],ex.prototype,"dateText",null);
_.L([_.R("calendarConfig","calendarConfig.selectedDate"),_.q("design:type",Object),_.q("design:paramtypes",[])],ex.prototype,"renderData",null);_.L([_.AA("renderData","calendarConfig.selectedDate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ex.prototype,"scrollToDate",null);_.L([_.wP("iron-overlay-canceled"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ex.prototype,"onEscOrClickingOutside",null);
_.L([_.Ps({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ex);
_.Y(ex,"ytd-calendar-date-picker",function(){if(DWS!==void 0)return DWS;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DWS=l},{mode:2});var S2S=_.ml("UTC_OFFSET_FORMAT",{utc_offset:(new So("Z")).format(new Date)}),QG6=(new Date).getTimezoneOffset()*-60,xWi=new Date,ldS,eKF=Dr(xWi.getTimezoneOffset());ldS=z70(MoF(eKF,xWi));var OaR=_.ml("LOCAL_TIME_GMT_LABEL",{gmt_text:ldS.replace("+0","+").replace("-0","-").replace(":00","")}),Oe=function(){var l=_.B.apply(this,arguments)||this;l.selectedTimeIndex=0;l.selectedTimezoneIndex=0;l.timeOfDayOptions=rsx;return l};
_.m(Oe,_.B);_.X=Oe.prototype;_.X.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var l=LTg();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=l,this.selectedTimeIndex=0;else{var e=vIg(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},l,{selectedDate:e.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(O){return O.secondsSinceMidnight===e.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.X.onDatePicked=function(l){this.selectedDate=l.detail};
_.X.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.$u(this.hostElement,"ytd-date-time-selection-cancelled")};
_.X.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var l=this.selectedDate;l=new Date(l.year,l.month,l.day);_.$u(this.hostElement,"ytd-date-time-selection-update",Math.floor(l.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+l.getTimezoneOffset()*60))}};
_.X.getTimezoneFormat=function(l){return l.localizedDisplayText?l.localizedDisplayText:_.ml("TIMEZONE_FORMAT",{utc_offset_text:""+l.localizedUtcOffset,city_name:""+l.localizedName})};
_.X.updateSelectedTimeIndexFromBinding=function(l){this.selectedTimeIndex=l.detail.value};
_.X.updateSelectedTimezoneIndexFromBinding=function(l){this.selectedTimezoneIndex=l.detail.value};
_.Ji.Object.defineProperties(Oe.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=this.data.timezoneOptions;var e={name:"Etc/Unknown",localizedName:_.ml("LOCAL_TIME_LABEL"),localizedUtcOffset:S2S,utcOffsetSec:""+QG6,localizedDisplayText:OaR};l?l.length&&l[0].name!==e.name&&(l[0].localizedDisplayText||(e.localizedDisplayText=""),l.unshift(e)):l=[e];return l}}},
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]}}});
Oe.prototype.onDateTimeTimezoneChange=Oe.prototype.onDateTimeTimezoneChange;Oe.prototype.onDatePicked=Oe.prototype.onDatePicked;Oe.prototype.updateDefaultSelectedValue=Oe.prototype.updateDefaultSelectedValue;_.L([_.T(),_.q("design:type",Object)],Oe.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Oe.prototype,"calendarConfig",void 0);_.L([_.T(),_.q("design:type",Object)],Oe.prototype,"selectedDate",void 0);_.L([_.T(),_.q("design:type",Object)],Oe.prototype,"selectedTimeIndex",void 0);
_.L([_.T(),_.q("design:type",Object)],Oe.prototype,"selectedTimezoneIndex",void 0);_.L([_.aB("#time-listbox"),_.q("design:type",Object)],Oe.prototype,"timeListBox",void 0);_.L([_.aB("#timezone-listbox"),_.q("design:type",Object)],Oe.prototype,"timezoneListBox",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Oe.prototype,"rendererStamperBehavior",void 0);_.L([_.R("data.timezoneOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],Oe.prototype,"timeZones",null);
_.L([_.y0("data","timeZones"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Oe.prototype,"updateDefaultSelectedValue",null);_.L([_.R("selectedTimezoneIndex","timeZones"),_.q("design:type",Object),_.q("design:paramtypes",[])],Oe.prototype,"selectedTimezone",null);_.L([_.R("selectedTimeIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],Oe.prototype,"selectedTime",null);
_.L([_.wP("ytd-calendar-date-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Oe.prototype,"onDatePicked",null);_.L([_.AA("selectedTimezone","selectedTime","selectedDate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Oe.prototype,"onDateTimeTimezoneChange",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Oe);
_.Y(Oe,"ytd-date-time-picker-renderer",function(){if(Y21!==void 0)return Y21;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Y21=l},{mode:1});var EtH;var Ee=function(){var l=_.B.apply(this,arguments)||this;l.boundOnTapDismissButton=function(){l.dismissTapHandler()};
l.dismissButtonOverrides={size:"XS"};return l};
_.m(Ee,_.B);Ee.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}}}}}};
Ee.prototype.dismissTapHandler=function(){_.$u(this.hostElement,"yt-backstage-attachment-dismissed")};
Ee.prototype.computeAttachmentType=function(l){return l?l.backstageImageRenderer?"image":l.videoRenderer?"video":"none":"none"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ee.prototype,"attachmentPreview",void 0);_.L([_.T(),_.q("design:type",Object)],Ee.prototype,"dismissButton",void 0);_.L([_.T(),_.q("design:type",Object)],Ee.prototype,"boundOnTapDismissButton",void 0);
_.L([_.T(),_.q("design:type",Object)],Ee.prototype,"dismissButtonOverrides",void 0);_.L([_.T({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.q("design:type",String)],Ee.prototype,"attachmentType",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Ee);
_.Y(Ee,"ytd-backstage-dismissable-attachment",function(){if(EtH!==void 0)return EtH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return EtH=l},{mode:1});var J41;var JU=function(){var l=_.B.apply(this,arguments)||this;l.selectedVideoId=void 0;l.picker=void 0;l.dismissButtonOverrides={size:"XS"};l.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return l};
_.m(JU,_.B);_.X=JU.prototype;_.X.onServiceRequestCompleted=function(l){l.stopPropagation()};
_.X.handleAddVideoPreviewAction=function(l){l=this.get("addVideoPreviewAction",l);this.onGetVideoPreviewSuccess(l)};
_.X.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}}}}}};
_.X.onLaunchVideoPicker=function(l){var e=this,O=_.lG(this.get("addVideoLinkAction.title",l)),E=this.get("addVideoLinkAction.onePickHostId",l);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",l);E&&(this.picker||(O=_.Eoi(_.wu2(E).setTitle(O).addView(xhS()).addView(QQC()),function(J){e.onPickVideo(J)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",l)||O.addView("youtube"),this.picker=O.build()),this.picker.setVisible(!0))};
_.X.onPickVideo=function(l){if(l)if(l.action==="cancel")_.$u(this.hostElement,"yt-video-link-button-cancel");else if(l.action==="picked"){l=l.docs;if(!l||l.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(l=(l==null?0:l.length)?l[0]:void 0)?l.id:void 0;this.setVideoPreview()}};
_.X.setVideoPreview=function(){var l=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){l.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.X.onGetVideoPreviewSuccess=function(l){if(l&&l.videoPreview&&l.cancelButton)this.videoPreview=l.videoPreview,this.cancelButton=l.cancelButton,_.$u(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.X.onGetVideoPreviewError=function(){this.cancel()};
_.X.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.$u(this.hostElement,"yt-video-link-cancel")};
_.X.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
JU.prototype.onServiceRequestCompleted=JU.prototype.onServiceRequestCompleted;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],JU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],JU.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],JU.prototype,"videoPreview",void 0);_.L([_.T(),_.q("design:type",Object)],JU.prototype,"cancelButton",void 0);_.L([_.T(),_.q("design:type",Object)],JU.prototype,"getVideoPreviewCommand",void 0);_.L([_.T(),_.q("design:type",Object)],JU.prototype,"dismissButtonOverrides",void 0);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],JU.prototype,"onServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],JU);
_.Y(JU,"ytd-backstage-video-link-attachment",function(){if(J41!==void 0)return J41;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return J41=l},{mode:1});var XVS;var zKS;var ba1;var Xz=function(){return _.B.apply(this,arguments)||this};
_.m(Xz,_.B);Xz.prototype.dataChanged=function(){this.active=!1};
Xz.prototype.onTap=function(){_.$u(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Xz.prototype.identity=function(l){return l};
_.Ji.Object.defineProperties(Xz.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;if((l=this.data)==null?0:(e=l.image)==null?0:(O=e.thumbnails)==null?0:(E=O[0])==null?0:E.url)return l=this.data.image.thumbnails[0].url,l.startsWith("data:image/svg+xml")?oH(l):_.nU(l)}}});
Xz.prototype.dataChanged=Xz.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],Xz.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Xz.prototype,"active",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Xz.prototype,"dataChanged",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Xz.prototype,"imageSrc",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Xz);
_.Y(Xz,"ytd-emoji-suggestion",function(){if(ba1!==void 0)return ba1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ba1=l},{mode:1});var Mmq=/.*([:@#].*?)$/,zN=function(){var l=_.B.apply(this,arguments)||this;l.suggestions=[];l.suggestionIndex=-1;l.JSC$13669_lastSuggestionRange=null;return l};
_.m(zN,_.B);_.X=zN.prototype;_.X.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.X.getSuggestions=function(l){var e=[],O=YqH(this.emojiManager,l.substr(0,3));if(O)for(var E in O)if(E.toLocaleLowerCase().indexOf(l)===0){var J=O[E];if(J&&J.emojiId){J=Y8(this.emojiManager,J.emojiId);var z=void 0,M=void 0,Z=void 0,u=void 0,d=((z=J)==null?0:z.isCustomEmoji)?(M=J)==null?void 0:(Z=M.shortcuts)==null?void 0:Z[0]:(u=J)==null?void 0:u.emojiId;z=void 0;e.push({suggestion:{image:(z=J)==null?void 0:z.image,alt:d,text:E}});if(e.length>=64)break}}return e?e.sort(function(g,w){return w.suggestion.text<
g.suggestion.text?-1:w.suggestion.text===g.suggestion.text?0:1}):null};
_.X.insertSuggestion=function(l){_.$u(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13669_lastSuggestionRange,text:l.alt});this.dropdown.opened=!1};
_.X.updateSuggestionsAtCaret=function(l){this.updateSuggestions(l,this.retrieveTextBeforeRange(l))};
_.X.offsetStartOfRangeBy=function(l,e){l.startOffset>=e&&l.setStart(l.startContainer,l.startOffset-e)};
_.X.updateSuggestions=function(l,e){var O=this;this.JSC$13669_lastSuggestionRange&&(this.JSC$13669_lastSuggestionRange.detach(),this.JSC$13669_lastSuggestionRange=null);if((e=Mmq.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2||e===":_")&&(this.offsetStartOfRangeBy(l,e.length),this.JSC$13669_lastSuggestionRange=l,(l=this.getSuggestions(e))&&l.length)){this.suggestions=l;_.OK(this,function(){O.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(l.length-1);return}this.dropdown.opened=!1};
_.X.onKeyDown=function(l){if(this.dropdown.opened)switch(l.key){case "Escape":this.dropdown.opened=!1;l.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);l.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);l.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),l.preventDefault()}};
_.X.onKeyUp=function(l,e){switch(l.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(e);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(e)}};
_.X.onKeyPress=function(l){l.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),l.preventDefault())};
_.X.changeSuggestionIndex=function(l){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(l+this.suggestions.length)%this.suggestions.length,l=this.dropdownContent.children[this.suggestionIndex],l.active=!0,this.dropdownContent.scrollTop=l.offsetTop)};
_.X.retrieveTextBeforeRange=function(l){var e=l.startContainer;return e&&e.nodeType===Node.TEXT_NODE?e.textContent.substr(0,l.startOffset):""};
zN.prototype.onKeyPress=zN.prototype.onKeyPress;zN.prototype.onKeyUp=zN.prototype.onKeyUp;zN.prototype.onKeyDown=zN.prototype.onKeyDown;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Array)],zN.prototype,"suggestions",void 0);_.L([_.T(),_.q("design:type",_.Pu)],zN.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",Number)],zN.prototype,"verticalSuggestionsOffset",void 0);
_.L([_.aB("#dropdown"),_.q("design:type",Object)],zN.prototype,"dropdown",void 0);_.L([_.aB("#dropdown-content"),_.q("design:type",HTMLDivElement)],zN.prototype,"dropdownContent",void 0);_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],zN.prototype,"onKeyDown",null);_.L([_.wP("keyup"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent,Range]),_.q("design:returntype")],zN.prototype,"onKeyUp",null);
_.L([_.wP("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],zN.prototype,"onKeyPress",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-emoji-input"})],zN);
_.Y(zN,"ytd-emoji-input",function(){if(zKS!==void 0)return zKS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zKS=l},{mode:2});var VmR;var bl=function(){var l=_.B.apply(this,arguments)||this;l.hasMaxOptions=!1;return l};
_.m(bl,_.B);_.X=bl.prototype;_.X.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.X.setPrefilledChoices=function(l){var e=this;this.set("pollOptions",[]);var O;for(O=0;O<Math.min(l.length,this.data.maxPollOptions);O++)this.push("pollOptions",l[O].substring(0,this.data.maxPollOptionChars));for(;O<this.data.minPollOptions;O++)this.push("pollOptions","");this.hasMaxOptions=O>=this.data.maxPollOptions;_.OK(this,function(){for(var E=e.pollOptions,J=_.ud(e.hostElement).querySelectorAll(".poll-option-input"),z=0;z<J.length;z++)J[z].value=E[z]})};
_.X.focusChanged=function(){_.dP(this.hostElement)};
_.X.onInput=function(){var l=this;_.rP(this,"onInput",function(){l.isValid()?_.$u(l.hostElement,"yt-commentbox-post-enable"):_.$u(l.hostElement,"yt-commentbox-post-disable")},300)};
_.X.setPollOptions=function(){var l=[],e,O=((e=this.data)==null?0:e.minPollOptions)?this.data.minPollOptions:0;for(e=0;e<O;e++)l.push("");return l};
_.X.addPollOption=function(){var l=this;_.$u(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.UD.addLowPriorityJob(function(){var e;(e=_.ud(l.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||e.focus()})};
_.X.onRemovePollOption=function(l){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.$u(this.hostElement,"yt-poll-attachment-dismiss")):(l=this.repeat.indexForElement(l.target.parentNode),l!==null&&(this.splice("pollOptions",l,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.$u(this.hostElement,"yt-commentbox-post-enable"))))};
_.X.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.X.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var l=0,e=this.pollOptions.length;l<e;l++)if(this.pollOptions[l].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.X.getPollOptions=function(){return this.pollOptions};
_.X.setPollOptionsFromInputs=function(){for(var l=_.ud(this.hostElement).querySelectorAll(".poll-option-input"),e=0;e<l.length;e++)this.pollOptions[e]=l[e].value.trim()};
_.X.clearPollOptions=function(){var l=_.ud(this.hostElement).querySelectorAll(".poll-option-input");l=_.b(l);for(var e=l.next();!e.done;e=l.next())e.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.X.getSimpleString=function(l){return _.lG(l)};
_.X.updateValueFromBinding=function(l){if(l.target&&this.pollOptions){var e=Array.from(_.ud(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(l.target);if(e>=0){var O;this.pollOptions[e]=(O=l.detail.value)!=null?O:"";this.notifyPath("pollOptions."+e)}}};
bl.prototype.dataChanged=bl.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bl.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Array)],bl.prototype,"pollOptions",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],bl.prototype,"hasMaxOptions",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],bl.prototype,"enableCreationBox",void 0);
_.L([_.aB("#repeat"),_.q("design:type",TV)],bl.prototype,"repeat",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bl.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-poll-attachment"})],bl);
_.Y(bl,"ytd-poll-attachment",function(){if(VmR!==void 0)return VmR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return VmR=l},{mode:2});var Za1;var ubC;var C60;var otR;var M$=function(){return _.B.apply(this,arguments)||this};
_.m(M$,_.B);_.Ji.Object.defineProperties(M$.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],M$.prototype,"rendererBehaviors",void 0);_.L([_.T(),_.q("design:type",Object)],M$.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],M$.prototype,"focused",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("focused"),_.q("design:type",Object),_.q("design:paramtypes",[])],M$.prototype,"ariaSelected",null);_.L([_.Ps({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],M$);
_.Y(M$,"yt-user-mention-suggestion-renderer",function(){if(otR===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;C60===void 0&&(C60=document.createElement("template"));var E=C60;O.call(e,E.content.cloneNode(!0),l.content.firstChild);otR=l}l=otR;return l},{mode:2});var $_F;var W_q;var V_=function(){var l=_.B.apply(this,arguments)||this;l.focusedSuggestionIndex=-1;return l};
_.m(V_,_.B);_.X=V_.prototype;_.X.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.X.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.X.setFocusedSuggestionIndex=function(l){!this.data||!this.data.suggestions||l<0||l>=this.data.suggestions.length||(this.focusedSuggestionIndex=l,l=this.getSuggestionId(l),this._setFocusedSuggestionId(l))};
_.X.advanceSuggestion=function(l){this.focusedSuggestionIndex===-1||l!==-1&&l!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+l),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.X.ensureSuggestionVisible=function(l){l=this.getSuggestionId(l);l=_.ud(this.hostElement).querySelector("[id="+l+"]");l!=null&&(l.offsetTop<this.hostElement.scrollTop?l.scrollIntoView(!0):l.offsetTop+l.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&l.scrollIntoView(!1))};
_.X.getSuggestionId=function(l){return"user-mention-suggestion-"+l};
_.X.onSuggestionTap=function(l){var e=_.I(l.model.item,h21);this.ytRendererBehavior.logExplicitClick(e);_.$u(this.hostElement,"yt-user-mention-suggestion-selected",{data:e,index:l.model.index})};
_.X.onSuggestionMouseMove=function(l){l.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(l.model.index)};
_.X.isSuggestionFocused=function(l,e){return l===e};
_.X.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.X.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("focused-suggestion-id-changed",this.focusedSuggestionId))};
V_.prototype.focusedSuggestionIdChangedForBinding=V_.prototype.focusedSuggestionIdChangedForBinding;V_.prototype.onDomChange=V_.prototype.onDomChange;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],V_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],V_.prototype,"focusedSuggestionIndex",void 0);_.L([_.T({readOnly:!0}),_.q("design:type",String)],V_.prototype,"focusedSuggestionId",void 0);
_.L([_.wP("dom-change"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],V_.prototype,"onDomChange",null);_.L([_.AA("focusedSuggestionId"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V_.prototype,"focusedSuggestionIdChangedForBinding",null);_.L([_.Ps({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],V_);
_.Y(V_,"yt-user-mention-suggestions-dropdown",function(){if(W_q===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;$_F===void 0&&($_F=document.createElement("template"));var E=$_F;O.call(e,E.content.cloneNode(!0),l.content.firstChild);W_q=l}l=W_q;return l},{mode:2});var ZD=function(){var l=_.B.apply(this,arguments)||this;l.suggestionsResponse=null;l.activeMention=null;l.selectionChangeListener=l.onSelectionChange.bind(l);l.handlesEnabled=_.a("enable_handles_in_mention_suggest_posts");l.handlesInMentionSuggestionsEnabled=_.a("handles_in_mention_suggest_posts");l.zeroPrefixMentionSuggestionEnabled=_.a("enable_zero_prefix_mention_suggestion_web");l.pendingQuery=null;l.flowNonce=null;return l};
_.m(ZD,_.B);_.X=ZD.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.X.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.X.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.X.hasSuggestions=function(l){return!!(l&&l.suggestions&&l.suggestions.length>0)};
_.X.onInput=function(){var l=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var e=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),O=this.activeMention.JSC$9287_getText().slice(-1)===" ",E=this.activeMention.JSC$9287_getText().slice(-2,-1)===" ",J="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9287_getText().slice(-2,-1))>=
0;J=this.zeroPrefixMentionSuggestionEnabled&&J;if(this.activeMention.isCollapsed()||(e||E||J)&&O)this.cancelActiveMention();else{var z=this.activeMention.JSC$9287_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.rP(this,"requestSuggestions",function(){l.requestSuggestions(z)},100)}}}};
_.X.onServiceRequestSent=function(l){l.stopPropagation()};
_.X.onServiceRequestCompleted=function(l){l.stopPropagation();l=l.detail.data;l.query&&(!this.pendingQuery||this.pendingQuery!==l.query)||!this.zeroPrefixMentionSuggestionEnabled&&l.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=l,this.hasSuggestions(l)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.X.onServiceRequestError=function(l){l.stopPropagation()};
_.X.onUserMentionSuggestionSelected=function(l){this.selectSuggestion(l.detail.data,l.detail.index)};
_.X.onSelectionChange=function(){if(this.activeMention){var l=_.H1(),e=this.activeMention.JSC$9287_containsRange(l);l=l&&this.containsHelper(this.dropdown,l.getContainer());e||l||this.cancelActiveMention()}};
_.X.containsHelper=function(l,e){var O;if(((O=window.ShadyDOM)==null?void 0:O.noPatch)===!0)return l.contains(e);for(;e;){if(e===l)return!0;e=e instanceof ShadowRoot?e.host:e.parentNode}return!1};
_.X.maybeStartSuggest=function(){var l=_.H1();if(l&&l.isCollapsed()){var e=l.JSC$9287_getStartNode(),O=l.JSC$9287_getStartOffset();if(e instanceof Text&&!(O<1)){var E=e.textContent;!(E=E&&E.charAt(O-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(E)<0||(this.activeMention=_.hH(e,O-1,l.JSC$9287_getEndNode(),l.JSC$9287_getEndOffset()),this.flowNonce=sK(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.X.updateActiveMention=function(){if(this.activeMention){var l=_.H1();l&&l.isCollapsed()&&(this.activeMention=_.hH(this.activeMention.JSC$9287_getStartNode(),this.activeMention.JSC$9287_getStartOffset(),l.JSC$9287_getEndNode(),l.JSC$9287_getEndOffset()))}};
_.X.requestSuggestions=function(l){if(this.activeMention){var e={suggestions_query:l};this.pendingQuery=l;_.ii(this.hostElement,[this.suggestionsEndpoint,e])}};
_.X.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()};
_.X.focusPreviousSuggestion=function(l){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),l.preventDefault())};
_.X.focusNextSuggestion=function(l){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),l.preventDefault())};
_.X.selectFocusedSuggestion=function(l){if(this.hasSuggestions(this.suggestionsResponse)){var e=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.I(e,h21)&&(this.selectSuggestion(_.I(e,h21),this.dropdown.focusedSuggestionIndex),l.preventDefault())}};
_.X.selectSuggestion=function(l,e){if(l){var O=this.activeMention;if(O){var E=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&l.handle?_.PY(E,"\u00a0\u2068@"+l.handle+"\u2069\u00a0"):this.handlesEnabled?_.PY(E,"\u00a0"+l.displayName+"\u00a0"):_.PY(E,"\u00a0@"+l.displayName+"\u00a0");yS(E,"/channel/"+l.channelId);E.classList.add("yt-formatted-string","yt-simple-endpoint");E.setAttribute("spellcheck","false");O.isCollapsed()||O.JSC$9287_removeContents();O.insertNode(E,!0);l=document.createTextNode(" ");
E.parentNode.insertBefore(l,E.nextSibling);window.getSelection().collapse(l,1);e={suggestionSelected:{suggestionIndex:e}};if(this.zeroPrefixMentionSuggestionEnabled){var J;e.suggestionSelected.isZeroPrefix=((J=this.suggestionsResponse)==null?void 0:J.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",e);this.cancelActiveMention();_.$u(this.hostElement,"yt-mention-inserted")}}};
_.X.getPositionTarget=function(l){return l&&l.getBrowserRangeObject()};
_.X.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.X.onFocusedSuggestionIdChanged=function(l){var e=_.kBu(this.hostElement)[0];e&&(l.detail.value?e.setAttribute("aria-activedescendant",l.detail.value):e.removeAttribute("aria-activedescendant"))};
_.X.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.X.logGELEvent=function(l,e){l={eventType:l,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};e&&(l=Object.assign(l,e));_.Bm("userMentionAutoCompleteBoxEvent",l)};
ZD.prototype.onDomChange=ZD.prototype.onDomChange;ZD.prototype.onUserMentionSuggestionSelected=ZD.prototype.onUserMentionSuggestionSelected;ZD.prototype.onServiceRequestError=ZD.prototype.onServiceRequestError;ZD.prototype.onServiceRequestCompleted=ZD.prototype.onServiceRequestCompleted;ZD.prototype.onServiceRequestSent=ZD.prototype.onServiceRequestSent;ZD.prototype.onInput=ZD.prototype.onInput;_.L([_.K(_.po),_.q("design:type",Object)],ZD.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],ZD.prototype,"suggestionsEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],ZD.prototype,"suggestionsResponse",void 0);_.L([_.T(),_.q("design:type",Object)],ZD.prototype,"activeMention",void 0);_.L([_.aB("#dropdown"),_.q("design:type",Object)],ZD.prototype,"dropdown",void 0);_.L([_.aB("#iron-dropdown"),_.q("design:type",Object)],ZD.prototype,"ironDropdown",void 0);
_.L([_.wP("input"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ZD.prototype,"onInput",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZD.prototype,"onServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZD.prototype,"onServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZD.prototype,"onServiceRequestError",null);_.L([_.wP("yt-user-mention-suggestion-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZD.prototype,"onUserMentionSuggestionSelected",null);
_.L([_.wP("dom-change"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ZD.prototype,"onDomChange",null);_.L([_.Ps({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],ZD);
_.Y(ZD,"yt-user-mention-autosuggest-input",function(){if(ubC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Za1===void 0&&(Za1=document.createElement("template"));var E=Za1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);ubC=l}l=ubC;return l},{mode:2});var ul=null;
_.RB({is:"ytd-commentbox",_template:function(){if(XVS!==void 0)return XVS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return XVS=l},
behaviors:[_.egW.YtHostElementBehavior,_.po,_.ZH.YtActionHandlerBehavior,_.va.YtComponentBehavior,_.VG.YtRendererstamperBehavior,_.bmk.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(l,e){return _.wV(l.entities,"aadcGuidelinesStateEntityPayload",e)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(l,e){return _.wV(l.entities,"commentboxStateEntity",e)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.hb}},
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:_.a("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.a("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",_.id(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(l){this.fire(l?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(l){this.set("submitButtonDisabled",void 0);this.clear();l&&this.computeIsEmojiButtonDisplayed_(l)&&(l=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&l.updateEmojiCategories()},
observePrefilledImage_:function(l,e,O){this.isValidPrefilledImage_(l,e,O)&&(this.prefilledAttachment_="image",this.prefilledImageData_=e,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(l,e){this.isValidPrefilledVideo_(l,e)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(l){l&&l.pollData&&l.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(l.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.gI();this.focus()},
detached:function(){document.removeEventListener("tap",_.id(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(l){l=l.detail;l=l.isCustomEmoji?l.shortcuts[0]:l.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,l);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var l=_.H1();if(l){l=l.getBrowserRangeObject();for(var e=l.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return l;e=e.parentNode}}l=this.getEditableTextArea_();l=_.Yn(l,l.childNodes.length);l.select();return l.getBrowserRangeObject()},
insertTextWithEmojis_:function(l,e,O){(e=this.emojiManager.createDocumentFragment(e,!0,!1,O===void 0?!0:O))&&e.childNodes.length!==0&&(l.collapsed||l.deleteContents(),O=e.lastChild,l.insertNode(e),_.pbF(O).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var l=_.H1();if(l){var e=l.JSC$9287_getStartNode(),O=l.JSC$9287_getEndNode();if(rVp(e)&&rVp(O)){var E=l.JSC$9287_getStartOffset(),J;if(_.n2&&e.nodeType===Node.ELEMENT_NODE&&(J=_.BTR(e)))_.Yn(J,0).select();else{J=pk(e)?e:_.R7(e,pk);var z=pk(O)?O:_.R7(O,pk);if(J||z)if(l.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){l=!0;E===e.length&&(l=!1);if(ul==="end"||ul==="right")l=!1;e=e.parentNode;l=[].concat(_.kA(e.parentNode.childNodes)).indexOf(e)+(l?0:1);_.Yn(e.parentNode,l).select()}}else J?
J.previousSibling&&J.previousSibling.length>0?_.hH(O,l.JSC$9287_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),J.parentNode.insertBefore(e,J),_.hH(O,l.JSC$9287_getEndOffset(),e,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.hH(e,l.JSC$9287_getStartOffset(),z.nextSibling,1).select():(O=document.createTextNode("\u200b"),z.parentNode.insertBefore(O,z.nextSibling),_.hH(e,l.JSC$9287_getStartOffset(),O,O.length).select()));ul=null}}else ul=
null}else ul=null},
leftKeyPressed_:function(){ul="left"},
rightKeyPressed_:function(){ul="right"},
endKeyPressed_:function(){ul="end"},
maybeDeleteChip_:function(){var l=eCM(!0);if(l){var e=_.H1(),O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();_.sf(O,e,l,l.childNodes.length).select()}},
maybeBackspaceChip_:function(){var l=eCM(!1);if(l){var e=_.H1(),O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();_.sf(O,e,l,0).select()}},
maybeBackspaceChipWordMode_:function(l){var e=_.H1();if(e.isCollapsed()){var O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();var E=OV2(O,e,!0);E&&(_.sf(O,e,E,0).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(l){var e=_.H1();if(e.isCollapsed()){var O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();var E=OV2(O,e,!1);E&&(_.sf(O,e,E,E.childNodes.length).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
onTap_:function(l){if(!l.defaultPrevented&&(l.currentTarget.tagName==="YTD-COMMENTBOX"&&pk(l.target)&&l.preventDefault(),this.isEmojiPickerDisplayed)){var e=this.$$("#emojis"),O=this.$$("#emoji-button"),E=this.getEditableTextArea_();if((l=l.path?l.path:l.composedPath&&l.composedPath())&&!l.includes(e)&&!l.includes(E)&&!l.includes(O))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(l,e,O){return l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e!==void 0&&e.encryptedBlobId!==null&&e.sourceExternalVideoId!==null&&O!==void 0&&O.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(l,e){return l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!e&&!!e.videoRenderer&&!!e.videoRenderer.videoId},
isValidPrefilledAttachment_:function(l,e,O){return this.isValidPrefilledImage_(l,e,O)||this.isValidPrefilledVideo_(l,O)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.a("enable_multi_image_post_creation")){var l=this.$$("ytd-backstage-multi-image-select-renderer");l&&l.hasImages()&&l.cancel()}else(l=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&l.cancel();(l=this.$["poll-attachment"])&&this.hasPoll_&&l.clearPollOptions();(l=this.$["image-poll-attachment"])&&this.hasImagePoll_&&l.resetPollOptions();(l=this.$["quiz-attachment"])&&this.hasQuiz_&&l.resetQuizOptions();
(l=this.$["video-link-attachment"])&&this.hasVideo_&&l.cancel();(l=this.$["access-restrictions-selector"].firstElementChild)&&l.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 _.ud(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ud(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(l,e){l=Siu(l,this.emojiManager,e).cloneNode(!0);for(e=l.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var O=_.f3();_.vVq(O,e);e=O.nextSibling;break;case "DIV":(O=e.lastChild)&&e.nextSibling&&_.GP(_.f3(),O);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.s8(_.f3(),e);O&&O.nodeName==="BR"&&_.wk(O);O=e;e.hasChildNodes()?(e=e.firstChild,
_.NTR(O)):(e=e.nextSibling,_.wk(O));break;default:e=e.nextSibling}return E2M(l)},
onAddImageError_:function(l){l.stopPropagation();this.errorMessage_=_.xp(l.detail)},
setTextAreaValue_:function(l){l||(l="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof l==="string"&&(l={runs:[{text:l}]});e.text=l},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ul=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var l=this.getEditableTextArea_();l&&(_.Yn(l,l.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.hT("HTML_DIR")==="rtl"){var l=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";l.setAttribute("dir",e)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var l;return Zx8((l=this.$["quiz-attachment"])==null?void 0:l.getExplanationText())||Zx8(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var l=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(l=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(l,!0);this.updateCharCount_();this.setSubmitButton_();l=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=l.scrollHeight>l.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var l=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:l})},
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(l){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(l)},
onPasteEmoji_:function(l){l.preventDefault();l.stopImmediatePropagation();l=l.clipboardData.getData("text/plain");this.insertText_(l,!1,!1)},
insertText_:function(l,e,O){e=e===void 0?!1:e;O=O===void 0?!0:O;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&l){var E=this.getInputRange_().cloneRange();this.emojiManager&&E&&(e&&this.emojiInput.offsetStartOfRangeBy(E,l.length),this.insertTextWithEmojis_(E,l,O),DE2(this.getEditableTextArea_().lastChild)||(E=this.getInputRange_().cloneRange()),E&&(this.emojiInput.updateSuggestions(E,l),this.updateSuggestionOffset_(E)))}},
setSubmitButton_:function(){if(this.data){var l=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",e=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(l||e){var O=this.getTextAreaValue().trim();e=O===this.previousText_;O=!O||this.aboveCharLimit_;l&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(O=this.aboveCharLimit_);this.submitButtonDisabled=
e||O||!this.getTextLength();l&&_.a("enable_post_scheduling")&&(this.submitButtonDisabled=e&&!this.scheduledPublishTimeSec_||O)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.lG,computeCreationBoxClass_:function(l){return l?"focused":"not-focused"},
computeFooterMessageClass_:function(l,e){return e?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(l,e){return e?e:l},
computeFooterMessageHidden_:function(l,e){return!e&&!l},
computePlaceholderText_:function(l,e,O){return(O==="video"||O==="image")&&(l==null?0:l.prefilledPlaceholderText)?l==null?void 0:l.prefilledPlaceholderText:e==="poll"||e==="image-poll"?l==null?void 0:l.pollPostPlaceholderText:e==="quiz"?l==null?void 0:l.quizPostPlaceholderText:e==="image"?l==null?void 0:l.imagePostPlaceholderText:l==null?void 0:l.placeholderText},
computeHideAttachmentButtons_:function(l,e,O,E){return l===void 0?!1:E&&this.getSimpleString(E)===this.getSimpleString(l.rateLimitErrorMessage)?!0:e!=="none"||O!=="none"||!l.videoLinkButton&&!l.pollButton&&!l.imagePollButton&&!l.quizButton&&!l.imageButton},
computeHideDismissableAttachment_:function(l){return l!=="image"&&l!=="video"},
computeHasVideo_:function(l){return l==="video"},
computeHasImage_:function(l){return l==="image"},
computeHasPoll_:function(l){return l==="poll"},
computeHasImagePoll_:function(l){return l==="image-poll"},
computeHasQuiz_:function(l){return l==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(l){return l&&l.backstageAttachment?l.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!l.backstageAttachment.quizRenderer&&!l.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(l){if(this.isValidPrefilledAttachment_(l.purpose,l.prefilledImageData,l.backstageAttachment))return l.backstageAttachment},
computeEditAttachment_:function(l){if(this.computePrefilledContent_(l)===void 0)return l.backstageAttachment},
computeAuthorThumbnailDimension_:function(l,e){return l&&!e?24:40},
computeImageUploadEndpoint_:function(l){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",l)},
computeRateLimitErrorCommands_:function(l){var e,O;return l==null?void 0:(e=l.advancedTierFeatures)==null?void 0:(O=e.rateLimit)==null?void 0:O.rateLimitCommands},
computeIsBackstageComment_:function(l){return!(!l||l!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(l){return this.get("submitButton.buttonRenderer.serviceEndpoint",l)||this.get("replyButton.buttonRenderer.serviceEndpoint",l)||this.get("postButton.buttonRenderer.serviceEndpoint",l)},
computeSubmitButtonOverride:function(){if(_.a("web_modern_buttons")){var l,e;return{segmentedPosition:this.dropdownSchedulePanel_||!((l=this.data)==null?0:(e=l.postOptionsMenu)==null?0:e.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.a("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(l,e){l=this.get("submitButton.buttonRenderer",l)||this.get("replyButton.buttonRenderer",l)||this.get("postButton.buttonRenderer",l);e&&(l=e);l&&(l=Object.assign({},l),l.serviceEndpoint=void 0,l.isDisabled=this.submitButtonDisabled);return l},
computeHasExternalLinksAccess_:function(l){if(_.a("enable_rfa_external_links")){var e,O,E;return(E=l==null?void 0:(e=l.advancedTierFeatures)==null?void 0:(O=e.externalLinks)==null?void 0:O.allowExternalLinks)!=null?E:!0}return!0},
computeIsEmojiButtonDisplayed_:function(l){return l.emojiButton&&l.emojiPicker&&l.emojiPicker.emojiPickerRenderer&&l.emojiPicker.emojiPickerRenderer.categories?l.emojiPicker.emojiPickerRenderer.categories.find(function(e){return e.emojiPickerCategoryRenderer?e.emojiPickerCategoryRenderer.emojiIds&&e.emojiPickerCategoryRenderer.emojiIds.length>0:e.emojiPickerUpsellCategoryRenderer?e.emojiPickerUpsellCategoryRenderer.emojis&&e.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(l){return l.charLimit?l.charLimit:null},
computeDropdownSchedulingPanel_:function(l,e){if(l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e)return e},
computeInlineSchedulingPanel_:function(l,e){if(l==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&e)return e},
computeHideAuthorThumbnail_:function(l,e){return l||this.computeUseIdentityChip_(e)},
computeHideIdentityChipRenderer_:function(l,e){return l||!this.computeUseIdentityChip_(e)},
computeUseIdentityChip_:function(l){return!!l&&!!l.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(l){var e,O,E,J;(l==null?0:(e=l.detail)==null?0:(O=e.endpoint)==null?0:O.ypcGetOffersEndpoint)||(l==null?0:(E=l.detail)==null?0:(J=E.endpoint)==null?0:J.ypcOffersEndpoint)?(l.stopPropagation(),_.ii(this,[l.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",l)&&(l.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(l){this.addedAttachment="video";this.selectedVideoId_=l.detail.videoId},
commentboxStateEntityChanged_:function(l){var e=this;(l==null?void 0:l.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(l==null?void 0:l.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){e.focus()})},
onYtServiceRequestSent_:function(l,e){if(e.actions)for(l=_.b(e.actions),e=l.next();!e.done;e=l.next())e.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(l){this.isLoading=!1;var e=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",l),O,E,J,z=l==null?void 0:(O=l.detail)==null?void 0:(E=O.data)==null?void 0:(J=E.actionResult)==null?void 0:J.commentboxStateEntityKey;if(e)this.errorMessage_=e;else if(z){var M;this.dismissData_=l==null?void 0:(M=l.detail)==null?void 0:M.data;this.commentboxStateKey_=z}else{this.clear();var Z;this.fire("yt-commentbox-dismiss",l==null?void 0:(Z=l.detail)==
null?void 0:Z.data)}},
onYtServiceRequestError_:function(l){l.stopPropagation();this.isLoading=!1;var e,O;if(((e=this.data)==null?void 0:e.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((O=this.data)==null?void 0:O.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(e=this.get("detail.error.args",l)||[],e.length>1&&e[1].message){this.handlePostsServiceRequestError_(e[1].message);return}(l=this.get("detail.error.message",l))?this.errorMessage_=this.data.errorMessage||_.xp(l):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(l){if(_.a("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var e=_.b(this.rateLimitErrorCommands),O=e.next();!O.done;O=e.next())if(O=O.value,O.errorLabel===l){_.aX(O.command,this.hostElement);return}this.errorMessage_=_.xp(l)},
submitIfNotBackstagePost_:function(l){if(!this.isBackstagePost)this.onSubmit_(l)},
onSubmit_:function(l){var e=this,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f;return _.V(function(P){switch(P.nextAddress){case 1:l.stopPropagation();if(!e.serviceEndpoint||!e.isValidInput_())return P.return();if(e.shouldShowPostAadcNotice_())return e.showPostAadcNotice_(),P.return();if(e.shouldShowCommentAadcNotice_())return e.showCommentAadcNotice_(),P.return();if(!(e.$$("ytd-backstage-multi-image-select-renderer")&&e.hasImage_&&_.a("enable_multi_image_post_creation"))){P.jumpTo(2);break}O=e.$$("ytd-backstage-multi-image-select-renderer");
return _.C(P,O.getAllUploadStatuses(),3);case 3:E=P.yieldResult;if(!E)return P.return();J=_.b(E);for(z=J.next();!z.done;z=J.next())if(M=z.value,M.encryptedBlobId===void 0)return e.isLoading=!1,u=Z=void 0,e.errorMessage_=(u=(Z=e.imageUploadEndpoint_)==null?void 0:Z.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?u:null,P.return();return P.return(e.submitForm_(void 0,void 0,void 0,void 0,O.images,e.taggedVideoId_));case 2:if(!e.hasImagePoll_||!e.$["image-poll-attachment"]){P.jumpTo(4);
break}return _.C(P,e.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:d=P.yieldResult;if(!d)return P.return();g=_.b(d);for(w=g.next();!w.done;w=g.next())if(n=w.value,!n.encryptedBlobId)return e.isLoading=!1,k=void 0,e.errorMessage_=(k=e.data.errorMessage)!=null?k:null,P.return();case 4:c=(y=e.$$("ytd-backstage-image-select-renderer"))&&y.uploadPromise(),f=e.getSharedPostId_(),c?c.then(function(){e.submitForm_.apply(e,_.kA(_.ke.apply(0,arguments)))}).catch(function(h){e.isLoading=!1;
e.errorMessage_=_.xp(h.message)}):e.selectedVideoId_?e.submitForm_(void 0,e.selectedVideoId_):e.prefilledAttachment_==="image"?e.submitForm_(e.prefilledImageData_.encryptedBlobId,void 0,void 0,e.prefilledImageData_.sourceExternalVideoId,void 0,e.taggedVideoId_):e.prefilledAttachment_==="video"?e.submitForm_(void 0,e.data.backstageAttachment.videoRenderer.videoId):f?e.submitForm_(void 0,void 0,f):e.taggedVideoId_!==void 0?e.submitForm_(void 0,void 0,void 0,void 0,void 0,e.taggedVideoId_):e.submitForm_(),
_.Cl(P)}})},
openSchedulingPanel:function(l){l&&l.scheduleButton&&l.scheduleButton.buttonRenderer&&(this.scheduleButton_=l.scheduleButton.buttonRenderer);l&&l.dateTimePicker&&this.set("data.schedulingDateTimePicker",l.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(l){l.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(l){l.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(l){l.stopPropagation();l.detail.alertMessage&&(this.alertMessage_=l.detail.alertMessage)},
onImageSelected_:function(l){l.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(l){l.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(l){l.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(l.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(l){l.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(l){var e=this.$["video-link-attachment"];e&&e.onLaunchVideoPicker(l)},
onAttachmentDismiss_:function(l){l.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"&&_.a("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.a("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 l;if(this.addedAttachment==="image-poll"&&((l=this.$["image-poll-attachment"])==null||!l.isValid()))return!1;var e;if(this.addedAttachment==="quiz"&&((e=this.$["quiz-attachment"])==null||!e.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;l=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(l=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")l=!0;return l||!!this.getTextAreaValue().trim()},
submitForm_:function(l,e,O,E,J,z){var M=this.getTextAreaValue().trim(),Z={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&M===this.previousText_&&(M=void 0);M!==void 0&&(Z.comment_text=M);this.isLoading=!0;z!=void 0&&(Z.tagged_video_id=z);l?(Z.image_blob_id=l,this.imagePreviewCoordinates_&&(Z.image_preview_coordinates=this.imagePreviewCoordinates_)):e?Z.attached_video_id=e:O?Z.shared_post_id=O:J&&J.length>0&&(Z.images_data=J.map(function(u){return{encryptedBlobId:u.encryptedBlobId,
previewCoordinates:u.previewCoordinates}}));
E&&(Z.source_video_id=E);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(Z.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(Z.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(Z.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.a("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(Z.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.a("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(Z.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.ii(this,[this.serviceEndpoint,Z])},
onIsInputFocusChanged_:function(l,e){l?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(l){var e=this.getEditableTextArea_();[].concat(_.kA(l.dataTransfer.items)).forEach(function(O){O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(E){e.appendChild(document.createTextNode(E))})});
l.preventDefault()},
preventDefault_:function(l){l.preventDefault()},
onSuggestionInsert_:function(l){this.insertTextWithEmojis_(l.detail.range,l.detail.text)},
onEmojiSuggestionClick_:function(l){this.emojiInput.insertSuggestion(l.detail)},
computeSubmitButtonClass_:function(l,e){return!e||l?"":"with-options"},
updateSuggestionOffset_:function(l){if(this.emojiInput&&_.ud(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,O=l.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-O)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;l=l.getBoundingClientRect().left-e;_.ud(this.emojiInput).querySelector("#dropdown").style.marginLeft=l+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(l){if(_.a("enable_post_scheduling")&&this.data&&this.data.purpose){l=l.detail;if(Math.floor(Date.now()/1E3)>=l)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var e=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(e)||e!==l?this.scheduledPublishTimeSec_=l:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=l;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var l=["image-button","image-poll-button","poll-button"];_.a("enable_quiz_creation")&&l.push("quiz-button");_.a("auto_convert_posts_video_tag")||l.push("video-link-button");return l},
getButtonRenderer:function(l,e){if(l)switch(e){case "video-link-button":var O;return((O=l.videoLinkButton)==null?void 0:O.buttonRenderer)||void 0;case "image-button":var E;return((E=l.imageButton)==null?void 0:E.buttonRenderer)||void 0;case "poll-button":var J;return((J=l.pollButton)==null?void 0:J.buttonRenderer)||void 0;case "image-poll-button":var z;return((z=l.imagePollButton)==null?void 0:z.buttonRenderer)||void 0;case "quiz-button":var M;return((M=l.quizButton)==null?void 0:M.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var l;return(l=this.data)==null||!l.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var l,e;return!((l=this.data)==null||!l.openAadcDialog)&&!((e=this.aadcGuidelinesState_)==null||!e.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.hT("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var l;((l=this.data)==null?0:l.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.qx("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(l){l.clickTrackingParams&&_.yN().clickCommand(l);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Wb(this,"yt-close-popup-action")},
onHideIdentityChip:function(l){var e;this.set("data.placeholderText",(e=l.hideIdentityChipAction)==null?void 0:e.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var CW=function(){var l=_.B.apply(this,arguments)||this;l.isOpen=!1;l.modern=_.a("web_modern_buttons");l.roundedContainer=!0;l.dropdownButtonOverride=_.a("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;l.inPopupContainer=!1;l.isCommentboxLoading=!1;var e=["image-button","image-poll-button","poll-button"];_.a("enable_quiz_creation")&&e.push("quiz-button");_.a("auto_convert_posts_video_tag")||e.push("video-link-button");l.attachmentButtonIds=e;l.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 l};
_.m(CW,_.B);_.X=CW.prototype;_.X.computeButtonOverride=function(){var l;return((l=this.data)==null?0:l.postOptionsMenu)&&_.a("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.X.configureRendererStamper=function(){var l={"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]]"}}}}};_.a("auto_convert_posts_video_tag")||(l["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return l};
_.X.ready=function(){var l=this,e=_.ud(this.hostElement).querySelector("#placeholder-area"),O=function(E){l.onOpen(E)};
e.addEventListener("tap",O);e.addEventListener("keypress",O)};
_.X.showButtonEduTooltip=function(){var l,e,O,E,J,z,M;if(_.a("enable_quiz_creation")&&((l=this.data)==null?0:(e=l.quizButton)==null?0:(O=e.buttonRenderer)==null?0:(E=O.hint)==null?0:(J=E.hintRenderer)==null?0:(z=J.content)==null?0:(M=z.bubbleHintRenderer)==null?0:M.text)&&(_.XJ.getInstance(),l=zl(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(l==null?void 0:
l.length)>0)){this.ytComponentBehavior.resolveCommand(l[0],{form:{element:this.quizButton}});return}var Z;if((Z=this.data)==null?0:Z.imagePollButtonTooltip)if(_.XJ.getInstance(),Z=zl(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(Z==null?void 0:Z.length)>0){this.ytComponentBehavior.resolveCommand(Z[0],{form:{element:this.imagePollButton}});return}var u;_.a("enable_multi_image_post_creation")&&
((u=this.data)==null?0:u.multiImageButtonTooltip)&&(_.XJ.getInstance(),u=zl(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}}))};
_.X.onCreatePollAction=function(l){_.I(l,e1q)&&(this.JSC$13724_commentbox.addedAttachment="poll",this.openDialog())};
_.X.onAddVideoLinkAction=function(l){if(_.I(l,lZC))this.JSC$13724_commentbox.onAddVideoLink(l)};
_.X.onShowSchedulingPanelCommand=function(l){(l=_.I(l,j26))&&this.openSchedulingPanel(l)};
_.X.onCreateImagePollCommand=function(l){_.I(l,T9x)&&(this.JSC$13724_commentbox.openImagePollComponent(),this.openDialog())};
_.X.onCreateQuizCommand=function(l){_.I(l,sFF)&&(this.JSC$13724_commentbox.openQuizComponent(),this.openDialog())};
_.X.openSchedulingPanel=function(l){_.a("enable_post_scheduling")&&(this.openDialog(),this.JSC$13724_commentbox.openSchedulingPanel(l))};
_.X.onCreateCommentAction=function(l){this.get("createCommentAction.contents",l)&&(this.JSC$13724_commentbox.clear(),this.closeDialog())};
_.X.onOpen=function(l){l instanceof KeyboardEvent&&l.type==="keypress"&&l.keyCode!==13&&l.keyCode!==32||(this.data.prepareAccountEndpoint?_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.X.onYtCommentboxDismiss=function(){this.closeDialog()};
_.X.onYtCommentboxLoadingStart=function(l){l.stopPropagation();this.isCommentboxLoading=!0};
_.X.onYtCommentboxLoadingEnd=function(l){l.stopPropagation();this.isCommentboxLoading=!1};
_.X.onYtVideoLinkButtonCancel=function(l){l.stopPropagation();this.onOpen(l)};
_.X.onYtVideoLinkSelected=function(l){l.stopPropagation();this.onOpen(l)};
_.X.onIronSelect=function(l){l.stopPropagation();l.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=l.detail.item.value&&(this.accessRestriction?(this.accessRestriction=l.detail.item.value,this.onOpen(l)):this.accessRestriction=l.detail.item.value)};
_.X.onYtNavigate=function(l){this.get("detail.endpoint.backstageImageUploadEndpoint",l)&&(this.JSC$13724_commentbox.addedAttachment="image",this.JSC$13724_commentbox.submitButtonDisabled=!0,this.onOpen(l))};
_.X.onRequestSent=function(l){if(_.a("web_button_rework"))for(var e=_.b(l.detail),O=e.next();!O.done;O=e.next())_.I(O.value,NU0)&&(this.JSC$13724_commentbox.addedAttachment="image",this.JSC$13724_commentbox.submitButtonDisabled=!0,this.onOpen(l))};
_.X.openDialog=function(){this.JSC$13724_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13724_commentbox.focus()};
_.X.onPopupClosed=function(){_.XJ.getInstance()};
_.X.computeCreationDisabled=function(l){return!!l};
_.X.computeIsCreationDialog=function(l){return!!l&&l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.X.computeDisabledPostButton=function(l){if(!l)return null;l.isDisabled=!0;return l};
_.X.computeIsCreationDialogWithHeader=function(l){return!this.inPopupContainer&&!!l&&!!l.authorText&&l.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.X.computeIsHeaderHidden=function(l,e){return!l||e};
_.X.computeDropdownRendererClasses=function(l){return l?["text-secondary-style"]:[]};
_.X.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var l=_.ud(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;l&&l.reset()};
CW.prototype.onPopupClosed=CW.prototype.onPopupClosed;CW.prototype.onRequestSent=CW.prototype.onRequestSent;CW.prototype.onYtNavigate=CW.prototype.onYtNavigate;CW.prototype.onIronSelect=CW.prototype.onIronSelect;CW.prototype.onYtVideoLinkSelected=CW.prototype.onYtVideoLinkSelected;CW.prototype.onYtVideoLinkButtonCancel=CW.prototype.onYtVideoLinkButtonCancel;CW.prototype.onYtCommentboxLoadingEnd=CW.prototype.onYtCommentboxLoadingEnd;CW.prototype.onYtCommentboxLoadingStart=CW.prototype.onYtCommentboxLoadingStart;
CW.prototype.onYtCommentboxDismiss=CW.prototype.onYtCommentboxDismiss;CW.prototype.showButtonEduTooltip=CW.prototype.showButtonEduTooltip;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CW.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CW.prototype,"isOpen",void 0);_.L([_.T({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],CW.prototype,"buttonOverride",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CW.prototype,"modern",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CW.prototype,"roundedContainer",void 0);_.L([_.T(),_.q("design:type",Object)],CW.prototype,"dropdownButtonOverride",void 0);_.L([_.T({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.q("design:type",Boolean)],CW.prototype,"creationDisabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],CW.prototype,"enableCreationBox",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.q("design:type",Boolean)],CW.prototype,"isCreationDialog",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CW.prototype,"inPopupContainer",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.q("design:type",Boolean)],CW.prototype,"isCreationDialogWithHeader",void 0);_.L([_.T(),_.q("design:type",Object)],CW.prototype,"accessRestriction",void 0);
_.L([_.T({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.q("design:type",Array)],CW.prototype,"dropdownRendererClasses",void 0);_.L([_.T(),_.q("design:type",Object)],CW.prototype,"isCommentboxLoading",void 0);_.L([_.T(),_.q("design:type",Array)],CW.prototype,"attachmentButtonIds",void 0);_.L([_.aB("#image-button"),_.q("design:type",HTMLElement)],CW.prototype,"imageButton",void 0);
_.L([_.aB("#image-poll-button"),_.q("design:type",HTMLElement)],CW.prototype,"imagePollButton",void 0);_.L([_.aB("#quiz-button"),_.q("design:type",HTMLElement)],CW.prototype,"quizButton",void 0);_.L([_.aB("#commentbox"),_.q("design:type",Object)],CW.prototype,"JSC$13724_commentbox",void 0);_.L([_.AA("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CW.prototype,"showButtonEduTooltip",null);
_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onYtCommentboxDismiss",null);_.L([_.wP("yt-commentbox-loading-start"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onYtCommentboxLoadingStart",null);
_.L([_.wP("yt-commentbox-loading-end"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onYtCommentboxLoadingEnd",null);_.L([_.wP("yt-video-link-button-cancel"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onYtVideoLinkButtonCancel",null);
_.L([_.wP("yt-video-link-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onYtVideoLinkSelected",null);_.L([_.wP("iron-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onIronSelect",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onYtNavigate",null);
_.L([_.wP("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],CW.prototype,"onRequestSent",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CW.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],CW);
_.Y(CW,"ytd-backstage-post-dialog-renderer",function(){if(Gd6!==void 0)return Gd6;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Gd6=l},{mode:1});var d_F;var gtH;var ov=function(){return _.B.apply(this,arguments)||this};
_.m(ov,_.B);_.X=ov.prototype;_.X.computeHeartButtonStyle=function(l){return(l==null?0:l.styleType)?l.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.X.onYtButtonTap=function(){if(this.data.isEnabled){var l=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(l=this.getEndpoint(l))&&_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})}else(l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(l)};
_.X.toggle=function(l){this.set("data.isHearted",l!==void 0?l:!this.data.isHearted)};
_.X.getEndpoint=function(l){var e,O=(e=this.data)==null?void 0:e.heartEndpoint,E;e=(E=this.data)==null?void 0:E.unheartEndpoint;if(O&&e)return l?e:O};
_.X.computeButtonAccessibility=function(l,e){var O,E,J=l==null?void 0:(O=l.heartedAccessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label,z,M;l=l==null?void 0:(z=l.unheartedAccessibility)==null?void 0:(M=z.accessibilityData)==null?void 0:M.label;return e?J:l};
_.Ji.Object.defineProperties(ov.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 l;return _.a("kevlar_system_icons")&&!((l=this.data)==null||!l.isHearted)}}});
ov.prototype.onYtButtonTap=ov.prototype.onYtButtonTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],ov.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ov.prototype,"data",void 0);_.L([_.R("data.isHearted"),_.q("design:type",Object),_.q("design:paramtypes",[])],ov.prototype,"heartTooltip",null);
_.L([_.R("data.isHearted"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ov.prototype,"iconFilled",null);_.L([_.T({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.q("design:type",String)],ov.prototype,"buttonAccessibility",void 0);_.L([_.T({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],ov.prototype,"heartButtonStyle",void 0);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ov.prototype,"onYtButtonTap",null);_.L([_.U({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ov);
_.Y(ov,"ytd-creator-heart-renderer",function(){if(gtH!==void 0)return gtH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gtH=l},{mode:1});var $W=function(){var l=_.B.apply(this,arguments)||this;l.hasCreatorReply=!1;l.buttonOverrides={size:"S",iconPosition:"icon-only"};l.replyButtonOverrides={size:"S",type:"text"};l.forceIconButton=!_.a("web_modern_buttons");l.modern=_.a("web_modern_buttons");l.buttonTooltipPosition="bottom";l.systemIcons=_.a("kevlar_system_icons");l.replyDialog=null;return l};
_.m($W,_.B);_.X=$W.prototype;
_.X.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]]"}}}}}};
_.X.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.X.dataChange=function(){this.replyDialog&&_.ud(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var l,e,O;this.isLiked=this.systemIcons&&!!((l=this.data)==null?0:(e=l.likeButton)==null?0:(O=e.toggleButtonRenderer)==null?0:O.isToggled)};
_.X.computeShowVoteCountBeginning=function(l,e){return l===void 0||e===void 0?!0:l.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.X.computeShowVoteCountEnd=function(l,e){return l===void 0||e===void 0?!0:l.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.X.computeShowCommentCount=function(l,e){return l===void 0||e===void 0?!0:l.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.X.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.X.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.X.showReplyDialog=function(l){l&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ud(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=l,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.X.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.X.onRequestSent=function(l){if(_.a("web_button_rework")){l=_.b(l.detail);for(var e=l.next();!e.done;e=l.next())(e=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",e.value))&&this.showReplyDialog(e)}};
_.X.onYtNavigate=function(l){var e,O;(l=(e=_.I(l.detail.endpoint,_.DD6))==null?void 0:(O=e.dialog)==null?void 0:O.commentReplyDialogRenderer)&&this.showReplyDialog(l)};
_.X.onYtServiceRequestSent=function(l,e){l.stopPropagation();if(e.actions)for(l=0;l<e.actions.length;l++){var O=_.I(e.actions[l],JZ1);O&&this.handleUpdateCommentVoteAction(O)}};
_.X.handleUpdateCommentVoteAction=function(l){this.voteCount=l.voteCount||_.xp("0");l.voteStatus==="LIKE"?this.JSC$13735_ytdDislikeToggleButtonRenderer.toggle(!1):l.voteStatus==="DISLIKE"?this.JSC$13735_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13735_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13735_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.X.computeReplyButtonHidden=function(l){return l};
_.X.computeReplyButtonBeginning=function(l){return(l==null?0:l.replyButton)&&l.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?l.replyButton:void 0};
_.X.computeReplyButtonEnd=function(l){return(l==null?0:l.replyButton)&&l.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?l.replyButton:void 0};
_.X.computeActionButtonStyle=function(l){return(l==null?0:l.style)?l.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.X.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.X.onYtToggleButton=function(l){var e,O;this.isLiked=this.systemIcons&&!!((e=l.detail)==null?0:(O=e.actions)==null?0:O.like)};
$W.prototype.onYtToggleButton=$W.prototype.onYtToggleButton;$W.prototype.onButtonTooltipPositionChanged=$W.prototype.onButtonTooltipPositionChanged;$W.prototype.onYtServiceRequestSent=$W.prototype.onYtServiceRequestSent;$W.prototype.onYtNavigate=$W.prototype.onYtNavigate;$W.prototype.onRequestSent=$W.prototype.onRequestSent;$W.prototype.onYtCommentboxDismiss=$W.prototype.onYtCommentboxDismiss;$W.prototype.dataChange=$W.prototype.dataChange;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"voteCount",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"commentCount",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"replyThumbnail",void 0);
_.L([_.T(),_.q("design:type",Object)],$W.prototype,"hasCreatorReply",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$W.prototype,"enableCreationBox",void 0);_.L([_.T({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],$W.prototype,"actionButtonsStyle",void 0);_.L([_.T({computed:"computeReplyButtonBeginning(data)"}),_.q("design:type",Object)],$W.prototype,"replyButtonBeginning",void 0);
_.L([_.T({computed:"computeReplyButtonEnd(data)"}),_.q("design:type",Object)],$W.prototype,"replyButtonEnd",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"buttonOverrides",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"replyButtonOverrides",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"forceIconButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$W.prototype,"useCommentIcon",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$W.prototype,"modern",void 0);_.L([_.T(),_.q("design:type",Object)],$W.prototype,"buttonTooltipPosition",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$W.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$W.prototype,"isLiked",void 0);_.L([_.aB("ytd-button-renderer"),_.q("design:type",Object)],$W.prototype,"ytdReplyButtonRenderer",void 0);
_.L([_.aB("#like-button"),_.q("design:type",Object)],$W.prototype,"JSC$13735_ytdLikeToggleButtonRenderer",void 0);_.L([_.aB("#dislike-button"),_.q("design:type",Object)],$W.prototype,"JSC$13735_ytdDislikeToggleButtonRenderer",void 0);_.L([_.aB("#reply-dialog"),_.q("design:type",HTMLElement)],$W.prototype,"replyDialogElement",void 0);_.L([_.aB("#reply-button"),_.q("design:type",HTMLElement)],$W.prototype,"replyButtonElement",void 0);
_.L([_.aB("#reply-button-end"),_.q("design:type",HTMLElement)],$W.prototype,"replyButtonEndElement",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$W.prototype,"dataChange",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$W.prototype,"onYtCommentboxDismiss",null);
_.L([_.wP("yt-service-request-sent-button-renderer"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$W.prototype,"onRequestSent",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$W.prototype,"onYtNavigate",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],$W.prototype,"onYtServiceRequestSent",null);_.L([_.AA("buttonTooltipPosition"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$W.prototype,"onButtonTooltipPositionChanged",null);
_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$W.prototype,"onYtToggleButton",null);_.L([_.U({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],$W);
_.Y($W,"ytd-comment-action-buttons-renderer",function(){if(d_F!==void 0)return d_F;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return d_F=l},{mode:1});var ia1;var WN=function(){return _.B.apply(this,arguments)||this};
_.m(WN,_.B);WN.prototype.focus=function(){_.ud(this.hostElement).querySelector("#commentbox").focus()};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WN.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],WN.prototype,"zeroStepChannelCreationRenderer",void 0);_.L([_.U({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],WN);
_.Y(WN,"ytd-comment-dialog-renderer",function(){if(ia1!==void 0)return ia1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ia1=l},{mode:1});var wV6;var db=function(){var l=_.B.apply(this,arguments)||this;l.buttonOverrides={size:"S",iconPosition:"icon-only"};l.replyButtonOverrides={size:"S",type:"text"};return l};
_.m(db,_.B);_.X=db.prototype;_.X.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.X.detached=function(){this.replyBox&&this.replyBox.remove()};
_.X.showReplyDialog=function(l){if(l){var e=this.replyBox;e||(e=document.createElement("ytd-comment-reply-dialog-renderer"),e.id="replybox",_.ud(this.replyDialogDiv).appendChild(e));e.data=l;this.replyDialogDiv.hidden=!1;e.openDialog()}};
_.X.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.X.onYtServiceRequestSent=function(l,e){l.stopPropagation();if(e.actions)for(var O=0;O<e.actions.length;O++){var E=_.I(e.actions[O],JZ1);E?this.handleUpdateCommentVoteAction(E):l.target===this.heartButton&&this.toggleHeartState()}};
_.X.handleUpdateCommentVoteAction=function(l){var e;(e=this.toolbarState)!=null&&e.key&&this.ytdReduxBehavior.dispatch(_.Gn("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:l.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":l.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.X.toggleHeartState=function(){var l;(l=this.toolbarState)!=null&&l.key&&this.ytdReduxBehavior.dispatch(_.Gn("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Ji.Object.defineProperties(db.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return(((l=this.toolbarState)==null?void 0:l.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(e=this.toolbarData)==null?void 0:e.likeCountLiked:(O=this.toolbarData)==null?void 0:O.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.prepareAccountCommand)!==void 0&&!_.a("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e=_.I((l=this.toolbarSurface)==null?void 0:l.prepareAccountCommand,_.L4),O,E,J,z,M,Z,u,d,g;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((O=this.toolbarSharedData)==null||!O.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:e!=null?e:_.I((J=this.toolbarSurface)==null?void 0:J.likeCommand,_.L4),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.I((z=this.toolbarSurface)==null?void 0:z.unlikeCommand,_.L4),defaultCommand:this.isVisiblyDisabled?_.I((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.L4):void 0,defaultTooltip:(Z=this.toolbarData)==null?void 0:Z.likeInactiveTooltip,toggledTooltip:(u=this.toolbarData)==null?void 0:u.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(d=this.toolbarData)==null?void 0:d.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(g=this.toolbarSharedData)==null?void 0:g.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e=_.I((l=this.toolbarSurface)==null?void 0:l.prepareAccountCommand,_.L4),O,E,J,z,M,Z,u,d,g,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((O=this.toolbarSharedData)==null||!O.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((E=this.toolbarState)==null?void 0:E.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.I((J=this.toolbarSurface)==null?void 0:J.dislikeCommand,_.L4),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.I((z=this.toolbarSurface)==null?void 0:z.undislikeCommand,_.L4),defaultCommand:this.isVisiblyDisabled?_.I((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.L4):void 0,defaultTooltip:(Z=this.toolbarData)==null?void 0:Z.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?(d=this.toolbarSharedData)==null?void 0:d.dislikeReplyButtonA11y:(g=this.toolbarSharedData)==null?void 0:g.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e,O;if(((l=this.toolbarState)==null?void 0:l.heartState)!==void 0&&((e=this.toolbarState)==null?void 0:e.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((O=this.toolbarState)==null?void 0:O.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var E,J,z,M,Z,u,d,g,w,n,k,y,c,f;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(E=this.toolbarData)==null?void 0:E.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.I((u=this.toolbarSurface)==null?void 0:u.heartCommand,
_.L4),unheartEndpoint:this.isVisiblyDisabled?void 0:_.I((d=this.toolbarSurface)==null?void 0:d.unheartCommand,_.L4),disabledEndpoint:this.isVisiblyDisabled?_.I((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.L4):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(w=this.toolbarData)==null?void 0:w.heartActiveTooltip,unheartedTooltip:(n=this.toolbarData)==null?void 0:n.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((k=
this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(y=this.toolbarSharedData)==null?void 0:y.unheartButtonA11y:(c=this.toolbarSharedData)==null?void 0:c.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.toolbarSurface)==null||!l.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(l=this.commentStrings)==null?void 0:l.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.I((e=this.toolbarSurface)==null?void 0:e.replyCommand,_.L4),command:this.isVisiblyDisabled?_.I((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,
_.L4):this.isSubscribersOnlyComments?_.I((E=this.toolbarSurface)==null?void 0:E.subscribersOnlySnackbarCommand,_.L4):void 0}}}});
db.prototype.onYtServiceRequestSent=db.prototype.onYtServiceRequestSent;db.prototype.hideReplyDialogDiv=db.prototype.hideReplyDialogDiv;_.L([_.T(),_.q("design:type",Object)],db.prototype,"commentStrings",void 0);_.L([_.T(),_.q("design:type",Boolean)],db.prototype,"isReply",void 0);_.L([_.T(),_.q("design:type",Object)],db.prototype,"toolbarData",void 0);_.L([_.T(),_.q("design:type",Object)],db.prototype,"toolbarSharedData",void 0);
_.L([_.T(),_.q("design:type",String)],db.prototype,"toolbarStateKey",void 0);_.L([_.T(),_.q("design:type",String)],db.prototype,"toolbarSurfaceKey",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],db.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],db.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.aB("#reply-dialog"),_.q("design:type",HTMLElement)],db.prototype,"replyDialogDiv",void 0);_.L([_.aB("#replybox"),_.q("design:type",Object)],db.prototype,"replyBox",void 0);_.L([_.aB("ytd-creator-heart-renderer"),_.q("design:type",Object)],db.prototype,"heartButton",void 0);_.L([_.T({selector:function(l,e){return _.wV(l.entities,"engagementToolbarStateEntityPayload",e)},
selectorArgs:["toolbarStateKey"]}),_.q("design:type",Object)],db.prototype,"toolbarState",void 0);_.L([_.T({selector:aJp,selectorArgs:["toolbarSurfaceKey"]}),_.q("design:type",Object)],db.prototype,"toolbarSurface",void 0);_.L([_.T(),_.q("design:type",Object)],db.prototype,"buttonOverrides",void 0);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],db.prototype,"hideReplyDialogDiv",null);
_.L([_.R("toolbarData","toolbarState"),_.q("design:type",String),_.q("design:paramtypes",[])],db.prototype,"likeCount",null);_.L([_.R("likeCount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],db.prototype,"showLikeCount",null);_.L([_.R("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],db.prototype,"isVisiblyDisabled",null);_.L([_.R("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],db.prototype,"isSubscribersOnlyComments",null);
_.L([_.R("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],db.prototype,"hasPrepareAccountCommand",null);_.L([_.R("toolbarData","toolbarState","toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],db.prototype,"likeToggleButtonRenderer",null);_.L([_.R("isReply","toolbarData","toolbarState","toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],db.prototype,"dislikeToggleButtonRenderer",null);
_.L([_.R("toolbarData","toolbarState","toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],db.prototype,"creatorHeartSupportedRenderer",null);_.L([_.R("toolbarSurface"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],db.prototype,"hasReplyCommand",null);_.L([_.R("toolbarSurface","commentStrings","isVisiblyDisabled"),_.q("design:type",Object),_.q("design:paramtypes",[])],db.prototype,"replyButtonRenderer",null);
_.L([_.T(),_.q("design:type",Object)],db.prototype,"replyButtonOverrides",void 0);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],db.prototype,"onYtServiceRequestSent",null);_.L([_.U({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],db);
_.Y(db,"ytd-comment-engagement-bar",function(){if(wV6!==void 0)return wV6;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wV6=l},{mode:1});var A4q;var gb=function(){return _.B.apply(this,arguments)||this};
_.m(gb,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gb.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],gb);
_.Y(gb,"ytd-comment-inline-thumbnail-renderer",function(){if(A4q!==void 0)return A4q;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return A4q=l},{mode:1});var ntq;var adS=function(){return _.B.apply(this,arguments)||this};
_.m(adS,_.B);_.L([_.T(),_.q("design:type",Object)],adS.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],adS);
_.Y(adS,"ytd-comment-pause-composer-renderer",function(){if(ntq!==void 0)return ntq;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ntq=l},{mode:1});var kOi;var Idq;var il=function(){var l=_.B.apply(this,arguments)||this;l.isOpen=!1;return l};
_.m(il,_.B);_.X=il.prototype;_.X.dataChanged=function(){this.isOpen=!1};
_.X.onTap=function(){this.data&&(this.data.navigationEndpoint?_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.X.focus=function(){this.JSC$13761_commentbox.focus()};
_.X.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.X.openDialog=function(){this.isOpen=!0;this.JSC$13761_commentbox.focus();this.JSC$13761_commentbox.maybeHeightChanged()};
il.prototype.onYtCommentboxDismiss=il.prototype.onYtCommentboxDismiss;il.prototype.dataChanged=il.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],il.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],il.prototype,"isOpen",void 0);_.L([_.aB("#commentbox"),_.q("design:type",Object)],il.prototype,"JSC$13761_commentbox",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],il.prototype,"dataChanged",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],il.prototype,"onYtCommentboxDismiss",null);_.L([_.U({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],il);
_.Y(il,"ytd-comment-reply-dialog-renderer",function(){if(Idq!==void 0)return Idq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Idq=l},{mode:1});var m_C;var wb=function(){return _.B.apply(this,arguments)||this};
_.m(wb,_.B);_.Ji.Object.defineProperties(wb.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.data)==null?void 0:(e=l.icon)==null?void 0:e.iconType;return O?"yt-icons:"+O.toLowerCase():null}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wb.prototype,"data",void 0);_.L([_.T(),_.R("data.icon"),_.q("design:type",Object),_.q("design:paramtypes",[])],wb.prototype,"icon",null);_.L([_.U({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],wb);
_.Y(wb,"ytd-pinned-comment-badge-renderer",function(){if(m_C!==void 0)return m_C;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return m_C=l},{mode:1});var y4q;var pVF={},K_q={input:!0,meta:!0,br:!0,link:!0,img:!0},AU=null;pVF.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(){AU==null&&(AU=document.createElement("tp-yt-paper-tooltip"),AU.offset=8,AU.fitToVisibleBounds=!0)},
onMouseOver_:function(l){if(l=_.R7(l.target,function(J){return J==this||J.getAttribute&&J.getAttribute("shared-tooltip-text")}.bind(this),!0)){var e=l.getAttribute("shared-tooltip-text");
if(e){var O=this,E=null;l!=this&&(l.tagName.toLowerCase()in K_q?O=l.parentElement:O=l,l.id&&(E=l.id));this.polymerController.createTooltipIfRequired_();if(AU.parentElement!=O||AU.for!=E)(0,_.Ws)(AU).textContent=e,_.ud(O).appendChild(AU),AU.for=E,AU.animationDelay=this.polymerController.sharedTooltipAnimationDelay,AU.position=this.polymerController.sharedTooltipPosition}}}};var nW=function(){return _.B.apply(this,arguments)||this};
_.m(nW,_.B);nW.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]]"}}}}}};
nW.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
nW.prototype.colorChanged=function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.color)==null?void 0:(O=e.basicColorPaletteData)==null?void 0:O.foregroundBodyColor;E&&(this.rgbBadgeColor=_.t$(E));_.ud(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
nW.prototype.tooltipChanged=function(){var l;((l=this.data)==null?0:l.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
nW.prototype.tooltipChanged=nW.prototype.tooltipChanged;nW.prototype.colorChanged=nW.prototype.colorChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(pVF.YtSharedTooltipBehavior),_.q("design:type",Object)],nW.prototype,"ytSharedTooltipBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nW.prototype,"data",void 0);
_.L([_.T({value:"#4285F4"}),_.q("design:type",String)],nW.prototype,"rgbBadgeColor",void 0);_.L([_.AA("data.color"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nW.prototype,"colorChanged",null);_.L([_.AA("data.tooltip"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nW.prototype,"tooltipChanged",null);_.L([_.U({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],nW);
_.Y(nW,"ytd-sponsor-comment-badge-renderer",function(){if(y4q!==void 0)return y4q;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return y4q=l},{mode:1});var jYS;var Haq;var av=function(){return _.B.apply(this,arguments)||this};
_.m(av,_.B);av.prototype.computeState=function(l){switch(l==null?void 0:l.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"}};
av.prototype.updateStateIdentifier=function(l){if(this.viewModel.triStateKey){var e=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Gn("triStateButtonStateEntityPayload",e,{key:e,stateIdentifier:l}))}};
av.prototype.onClick=function(){var l=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(){l.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){l.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Ji.Object.defineProperties(av.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 l;return((l=this.data)==null?void 0:l.buttonText)||""}}});
_.L([_.T(),_.q("design:type",Object)],av.prototype,"viewModel",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],av.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],av.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.L([_.T({selector:kY8,selectorArgs:["viewModel.triStateKey"]}),_.q("design:type",Object)],av.prototype,"triStateButtonStateEntity",void 0);
_.L([_.T({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.q("design:type",String)],av.prototype,"state",void 0);_.L([_.R("viewModel","state"),_.q("design:type",Object),_.q("design:paramtypes",[])],av.prototype,"data",null);_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],av.prototype,"buttonText",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],av);
_.Y(av,"ytd-tri-state-button-view-model",function(){if(Haq!==void 0)return Haq;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Haq=l},{mode:1});var c40;var F_0;var kW=function(){var l=_.B.apply(this,arguments)||this;l.defaultIconToFilled=!_.a("kevlar_fill_comment_chip_icon_killswitch");return l};
_.m(kW,_.B);kW.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
kW.prototype.dataChanged=function(){if(this.data){var l,e;((l=this.data.chipColorPalette)==null?0:l.backgroundColor)&&((e=this.data.chipColorPalette)==null?0:e.foregroundTitleColor)&&_.dP(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.qv(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.qv(this.data.chipColorPalette.foregroundTitleColor)});var O;((O=this.data)==null?0:O.command)?(_.dP(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.dP(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}};
kW.prototype.onTap=function(){var l;if(this.data&&(l=this.data)!=null&&l.command){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.command)}};
kW.prototype.getIconSize=function(){return _.a("kevlar_fill_comment_chip_icon_killswitch")?24:12};
kW.prototype.onTap=kW.prototype.onTap;kW.prototype.dataChanged=kW.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],kW.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.po),_.q("design:type",Object)],kW.prototype,"ironA11yKeysBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kW.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],kW.prototype,"basePriceText",void 0);_.L([_.T(),_.q("design:type",Object)],kW.prototype,"chipIcon",void 0);_.L([_.T(),_.q("design:type",Object)],kW.prototype,"defaultIconToFilled",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kW.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kW.prototype,"onTap",null);
_.L([_.Ps({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],kW);
_.Y(kW,"yt-pdg-comment-chip-renderer",function(){if(F_0===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;c40===void 0&&(c40=document.createElement("template"));var E=c40;O.call(e,E.content.cloneNode(!0),l.content.firstChild);F_0=l}l=F_0;return l},{mode:2});var Iv=function(){var l=_.B.apply(this,arguments)||this;l.useSmallAvatars=_.a("small_avatars_for_comments");l.webWatchCompactComments=_.a("web_watch_compact_comments");l.editDialog=null;return l};
_.m(Iv,_.B);_.X=Iv.prototype;_.X.onShow=function(){_.hg("cmv",void 0,"wn_comments")};
_.X.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"}}}};
_.X.detached=function(){this.editDialog=null;this.expander.reset()};
_.X.updateBackgroundColor=function(){if(this.backgroundColor){var l={"--ytd-comment-paid-background-color":_.qv(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.dP(this.hostElement,l)}else _.dP(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.X.resetExpander=function(){var l;(l=this.expander)==null||l.reset()};
_.X.openEditDialog=function(l){l.dialog&&(this.editDialog=l.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.X.onYtNavigate=function(l){var e=l.detail.endpoint;if(e=_.I(e,_.S7H)||_.I(e,_.Qs1))l.stopPropagation(),this.openEditDialog(e)};
_.X.onYtCommentboxDismiss=function(){this.editDialog=null;_.dP(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.X.onAuthorThumbnailClicked=function(){var l=this;_.a("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(e,O){l.onAuthorThumbnailEndpointSuccess(O)},
onServerError:function(e,O){_.hG(new _.Hk("Failed to resolve the command",O))}}})};
_.X.onAuthorThumbnailEndpointSuccess=function(l){if((l=l==null?void 0:l.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(l,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();l=l==null?void 0:l.clickTrackingParams;var e=_.B9();l&&e&&_.yN().graftServerVe(l,e)}};
_.X.logScreenVe=function(){_.on(_.yN(),66557)};
_.X.onYtCommentboxResize=function(l){var e;(l==null?0:(e=l.detail)==null?0:e.height)&&_.dP(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":l.detail.height+"px"})};
_.Ji.Object.defineProperties(Iv.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 l,e=(l=this.commentEntity)==null?void 0:l.author;return e&&(e.isCreator||e.isVerified||e.isArtist)?{renderer:{authorEndpoint:e.channelPageEndpoint?_.I(e.channelPageEndpoint,_.L4):_.I(e.channelCommand,_.L4),authorText:{runs:[{text:e.displayName}]},color:e.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:e.isArtist?{iconType:"AUDIO_BADGE"}:
e.isVerified?{iconType:e.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:e.isArtist||e.isVerified?e.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.commentEntity)==null?void 0:l.author;return e!=null&&e.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:e.sponsorBadgeUrl}]},tooltip:e.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var l;return _.I((l=this.commentSurfaceEntity)==null?void 0:l.pdgCommentChip,_.yfR)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var l;return this.voiceReplyContainerViewModel&&((l=this.voiceReplyContainerViewModel)==null?void 0:l.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return _.I((l=this.commentSurfaceEntity)==null?void 0:l.voiceReplyContainerViewModel,u4S)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var l;return this.voiceReplyContainerViewModel&&(l=this.voiceReplyContainerViewModel)!=null&&l.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.commentSurfaceEntity)==null?void 0:l.commentBackgroundColor)!=null?e:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.a("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var l,e;return(((l=this.commentEntity)==null?void 0:(e=l.properties)==null?void 0:e.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var l,e;if(_.a("enable_profile_cards_on_comments")&&((l=this.commentEntity)==null?0:(e=l.author)==null?0:e.profileCardEndpoint)&&this.viewModel.allowProfileCard){var O,E;return _.I((O=this.commentEntity)==null?void 0:(E=O.author)==null?void 0:E.profileCardEndpoint,_.L4)}var J,z;return _.I((J=this.commentEntity)==null?void 0:(z=J.avatar)==null?void 0:z.endpoint,_.L4)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var l,e;if(_.a("enable_profile_cards_on_comments")&&((l=this.commentEntity)==null?0:(e=l.author)==null?0:e.channelPageEndpoint)){var O,E;return _.I((O=this.commentEntity)==null?void 0:(E=O.author)==null?void 0:E.channelPageEndpoint,_.L4)}var J,z;return _.I((J=this.commentEntity)==null?void 0:(z=J.avatar)==null?void 0:z.endpoint,_.L4)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J=(l=this.commentEntity)==null?void 0:(e=l.avatar)==null?void 0:(O=e.image)==null?void 0:(E=O.sources)==null?void 0:E[0];return J?{thumbnails:[{url:J.url,width:J.width,height:J.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.commentEntity)==null?0:(e=l.author)==null?0:e.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.commentEntity)==null?void 0:(e=l.author)==null?void 0:e.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.commentEntity)==null?void 0:(e=l.properties)==null?void 0:e.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var l;return _.I((l=this.commentSurfaceEntity)==null?void 0:l.publishedTimeCommand,_.L4)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var l,e;if(((l=this.commentEntity)==null?0:l.translatedContent)&&((e=this.translateButtonState)==null?void 0:e.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var O;if((O=this.voiceReplyContainerViewModel)==null?0:O.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var E,J;return((E=this.commentEntity)==null?void 0:(J=E.properties)==null?void 0:J.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.commentSharedEntity)==null?void 0:(e=l.strings)==null?void 0:e.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.commentSharedEntity)==null?void 0:(e=l.strings)==null?void 0:e.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.commentEntity)==null||!l.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var l,e,O=(e=_.I((l=this.viewModel)==null?void 0:l.translateButton,Z2x))!=null?e:{},E,J,z,M,Z,u,d,g,w,n,k;return Object.assign({},O,{untoggledStateData:Object.assign({},O.untoggledStateData,{buttonText:(E=this.commentEntity)==null?void 0:(J=E.translateData)==null?void 0:J.text}),togglingStateData:Object.assign({},O.togglingStateData,{buttonText:(z=this.commentSharedEntity)==null?
void 0:(M=z.strings)==null?void 0:M.translatingText}),toggledStateData:Object.assign({},O.toggledStateData,{buttonText:(Z=this.commentSharedEntity)==null?void 0:(u=Z.strings)==null?void 0:u.seeOriginalText}),transitionCommand:((d=this.commentEntity)==null?0:d.translatedContent)?void 0:_.I((g=this.commentEntity)==null?void 0:(w=g.translateData)==null?void 0:w.translateComment,_.L4),triStateKey:(n=this.commentEntity)==null?void 0:(k=n.properties)==null?void 0:k.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((e=_.I(_.I((l=this.toolbarSurface)==null?void 0:l.menuCommand,_.L4),xD6))==null?void 0:(O=e.menu)==null?void 0:O.menuRenderer)||null}}});
Iv.prototype.onYtCommentboxResize=Iv.prototype.onYtCommentboxResize;Iv.prototype.onYtCommentboxDismiss=Iv.prototype.onYtCommentboxDismiss;Iv.prototype.onYtNavigate=Iv.prototype.onYtNavigate;Iv.prototype.resetExpander=Iv.prototype.resetExpander;Iv.prototype.updateBackgroundColor=Iv.prototype.updateBackgroundColor;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Iv.prototype,"ytdReduxBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#author-thumbnail > button"),_.q("design:type",HTMLElement)],Iv.prototype,"authorThumbnailAnchor",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("viewModel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iv.prototype,"linked",null);
_.L([_.R("viewModel","linked"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"linkedCommentBadge",null);_.L([_.T({reflectToAttribute:!0}),_.R("viewModel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iv.prototype,"pinned",null);_.L([_.R("viewModel","pinned"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"pinnedCommentBadge",null);
_.L([_.R("commentEntity","commentSharedEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"authorCommentBadge",null);_.L([_.T({reflectToAttribute:!0}),_.R("authorCommentBadge"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"hasAuthorBadge",null);_.L([_.R("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"sponsorCommentBadge",null);
_.L([_.T({reflectToAttribute:!0}),_.R("sponsorCommentBadge"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"hasSponsorBadge",null);_.L([_.R("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"pdgCommentChipRenderer",null);_.L([_.T({reflectToAttribute:!0}),_.R("voiceReplyContainerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"hasVoiceReply",null);
_.L([_.R("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"voiceReplyContainerViewModel",null);_.L([_.R("voiceReplyContainerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"voiceReplyUnavailableText",null);_.L([_.T(),_.q("design:type",Object)],Iv.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"viewModel",null);
_.L([_.T({selector:function(l,e){return _.wV(l.entities,"commentSharedEntityPayload",e)},
selectorArgs:["viewModel.sharedKey"]}),_.q("design:type",Object)],Iv.prototype,"commentSharedEntity",void 0);_.L([_.T({selector:function(l,e){return _.wV(l.entities,"commentEntityPayload",e)},
selectorArgs:["viewModel.commentKey"]}),_.q("design:type",Object)],Iv.prototype,"commentEntity",void 0);_.L([_.T({selector:function(l,e){return _.wV(l.entities,"commentSurfaceEntityPayload",e)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.q("design:type",Object)],Iv.prototype,"commentSurfaceEntity",void 0);_.L([_.T({selector:aJp,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.q("design:type",Object)],Iv.prototype,"toolbarSurface",void 0);_.L([_.T({selector:kY8,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.q("design:type",Object)],Iv.prototype,"translateButtonState",void 0);
_.L([_.R("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"backgroundColor",null);_.L([_.T({reflectToAttribute:!0}),_.R("viewModel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iv.prototype,"optimalReadingWidthComments",null);_.L([_.aB("ytd-expander"),_.q("design:type",Object)],Iv.prototype,"expander",void 0);
_.L([_.AA("backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iv.prototype,"updateBackgroundColor",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iv.prototype,"useSmallAvatars",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iv.prototype,"webWatchCompactComments",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"isReply",null);
_.L([_.R("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"authorThumbnailEndpoint",null);_.L([_.R("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"authorNameEndpoint",null);_.L([_.R("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"authorThumbnail",null);_.L([_.R("commentEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],Iv.prototype,"authorTextClass",null);
_.L([_.R("commentEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],Iv.prototype,"authorChannelName",null);_.L([_.R("commentEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"publishedTime",null);_.L([_.R("commentSurfaceEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"publishedTimeCommand",null);
_.L([_.R("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"contentText",null);_.L([_.AA("contentText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iv.prototype,"resetExpander",null);_.L([_.R("commentEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iv.prototype,"shouldShowReadMoreInitially",null);
_.L([_.R("commentSharedEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],Iv.prototype,"expandText",null);_.L([_.R("commentSharedEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],Iv.prototype,"collapseText",null);_.L([_.R("commentEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iv.prototype,"shouldShowTranslateButton",null);
_.L([_.R("commentEntity","commentSharedEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"translateButton",null);_.L([_.R("toolbarSurface"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iv.prototype,"overflowMenuRenderer",null);_.L([_.T(),_.q("design:type",Object)],Iv.prototype,"editDialog",void 0);_.L([_.aB("ytd-comment-dialog-renderer"),_.q("design:type",Object)],Iv.prototype,"editCommentDialogContainer",void 0);
_.L([_.aB("ytd-comment-reply-dialog-renderer"),_.q("design:type",Object)],Iv.prototype,"editReplyDialogContainer",void 0);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Iv.prototype,"onYtNavigate",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Iv.prototype,"onYtCommentboxDismiss",null);
_.L([_.wP("yt-commentbox-resize"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Iv.prototype,"onYtCommentboxResize",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Iv);
_.Y(Iv,"ytd-comment-view-model",function(){if(jYS!==void 0)return jYS;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return jYS=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var mK=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_modern_buttons");l.isWatchGrid=_.a("kevlar_watch_grid");l.buttonOverrides={style:"call-to-action"};l.JSC$13807_spinnerEl=null;return l};
_.m(mK,_.B);_.X=mK.prototype;_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.X.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]]"}}}}}};
_.X.attached=function(){this.isShowRepliesVisible=!0};
_.X.dataChanged=function(){var l=this.expanderContents;l&&(l.hidden=!0);this.isLoading=!1};
_.X.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.X.isLoadingChanged=function(){this.isLoading&&!this.JSC$13807_spinnerEl&&(this.JSC$13807_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ud(this.expanderContents).appendChild(this.JSC$13807_spinnerEl));this.JSC$13807_spinnerEl&&(this.JSC$13807_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var l;(l=this.contents)==null||l.classList.remove("reloading")}};
_.X.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var l=_.I(this.data.viewReplies,_.YU);l&&this.ytRendererBehavior.logExplicitClick(l)};
_.X.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var l=_.I(this.data.hideReplies,_.YU);l&&this.ytRendererBehavior.logExplicitClick(l)};
_.X.isShowMoreChanged=function(){var l=_.ud(this.hostElement).querySelector("#expander-contents");l&&(l.hidden=this.isShowRepliesVisible)};
_.X.computeAlign=function(){if(this.modern){var l;return!((l=this.data)==null?0:l.viewRepliesCreatorThumbnail)}};
_.Ji.Object.defineProperties(mK.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.data)==null?void 0:l.contents;return!!e&&e.length>0&&!!e[e.length-1].continuationItemRenderer}}});
mK.prototype.isShowMoreChanged=mK.prototype.isShowMoreChanged;mK.prototype.isLoadingChanged=mK.prototype.isLoadingChanged;mK.prototype.triggerFirstContinuation=mK.prototype.triggerFirstContinuation;mK.prototype.dataChanged=mK.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.qU),_.q("design:type",Object)],mK.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mK.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mK.prototype,"modern",void 0);_.L([_.T(),_.q("design:type",Boolean)],mK.prototype,"isLoading",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],mK.prototype,"isShowRepliesVisible",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],mK.prototype,"useNewFormatting",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mK.prototype,"isWatchGrid",void 0);_.L([_.T(),_.q("design:type",Object)],mK.prototype,"buttonOverrides",void 0);_.L([_.aB("#expander-contents"),_.q("design:type",HTMLElement)],mK.prototype,"expanderContents",void 0);_.L([_.aB("ytd-continuation-item-renderer"),_.q("design:type",Object)],mK.prototype,"continuationItemRenderer",void 0);_.L([_.aB("#contents"),_.q("design:type",HTMLElement)],mK.prototype,"contents",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mK.prototype,"dataChanged",null);_.L([_.R("data.contents"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],mK.prototype,"hasContinuation",null);_.L([_.wP("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mK.prototype,"triggerFirstContinuation",null);
_.L([_.AA("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mK.prototype,"isLoadingChanged",null);_.L([_.AA("isShowRepliesVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mK.prototype,"isShowMoreChanged",null);_.L([_.U({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],mK);
_.Y(mK,"ytd-comment-replies-renderer",function(){if(kOi!==void 0)return kOi;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kOi=l},{mode:1});var fdS;var y_=function(){var l=_.B.apply(this,arguments)||this;l.isOpen=!1;l.commentDialog=null;l.useSmallAvatars=_.a("small_avatars_for_comments");l.useSmallAvatarsEngagementPanelOnly=_.a("small_avatars_for_comments_ep");l.placeholderFocusListener=null;l.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return l};
_.m(y_,_.B);_.X=y_.prototype;_.X.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]]"}}}}}};
_.X.ready=function(){var l=this,e=_.ud(this.hostElement).querySelector("#placeholder-area"),O=_.ud(this.hostElement).querySelector("#simplebox-placeholder"),E=function(J){J.stopPropagation();J instanceof KeyboardEvent&&J.type==="keypress"&&J.keyCode!==13&&J.keyCode!==32||l.openDialog()};
this.placeholderFocusListener=E;O.addEventListener("focus",this.placeholderFocusListener);e.addEventListener("tap",E);e.addEventListener("keypress",E)};
_.X.maybeRemoveFocusEventListener=function(){var l;(l=this.data)!=null&&l.prepareAccountEndpoint&&!_.a("web_comments_simplebox_modal_focus_on_tap_ks")&&(l=_.ud(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(l.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.X.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.X.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.a("web_comment_simplebox_resolve_polymer_command_ks")?_.n4.instance.resolveCommand(this.data.prepareAccountEndpoint):_.aX(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.ud(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.X.onYtCommentboxDismiss=function(l){l.stopPropagation();this.isOpen=!1};
_.X.onCreateCommentAction=function(l){this.get("createCommentAction.contents",l)&&(this.isOpen=!1)};
_.X.computeCommentDialog=function(l){return{placeholderText:l.placeholderText,authorThumbnail:l.authorThumbnail,submitButton:l.submitButton,imageButton:l.imageButton,cancelButton:l.cancelButton,emojiButton:l.emojiButton,emojis:l.emojis,emojiPicker:l.emojiPicker,aadcGuidelinesStateEntityKey:l.aadcGuidelinesStateEntityKey,openAadcDialog:l.openAadcDialog,unicodeEmojisUrl:l.unicodeEmojisUrl}};
_.X.onHideIdentityChip=function(l){_.I(l,O2R)&&this.set("data.placeholderText",_.I(l,O2R).placeholderText)};
y_.prototype.onYtCommentboxDismiss=y_.prototype.onYtCommentboxDismiss;y_.prototype.dataChanged=y_.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],y_.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],y_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],y_.prototype,"isOpen",void 0);_.L([_.T(),_.q("design:type",Object)],y_.prototype,"commentDialog",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],y_.prototype,"engagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],y_.prototype,"useSmallAvatars",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],y_.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],y_.prototype,"enableCreationBox",void 0);_.L([_.T(),_.q("design:type",Boolean)],y_.prototype,"showCreateDialog",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y_.prototype,"dataChanged",null);
_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],y_.prototype,"onYtCommentboxDismiss",null);_.L([_.U({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],y_);
_.Y(y_,"ytd-comment-simplebox-renderer",function(){if(fdS!==void 0)return fdS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return fdS=l},{mode:1});var RKx;_.Y7("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var pW=function(){var l=_.B.apply(this,arguments)||this;l.addHoverEffect=_.a("swatcheroo_comments_hover_effect");return l};
_.m(pW,_.B);pW.prototype.onTap=function(l){if(this.addHoverEffect&&!this.engagementPanel&&!_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||_.aX({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
pW.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Ji.Object.defineProperties(pW.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)!=null&&l.commentViewModel)return _.I(this.data.commentViewModel,VRH)}}});
pW.prototype.onTap=pW.prototype.onTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pW.prototype,"addHoverEffect",void 0);_.L([_.T(),_.q("design:type",Object)],pW.prototype,"data",void 0);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],pW.prototype,"commentViewModel",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],pW.prototype,"engagementPanel",void 0);_.L([_.wP("tap"),_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],pW.prototype,"onTap",null);_.L([_.U({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],pW);
_.Y(pW,"ytd-comment-thread-renderer",function(){if(RKx!==void 0)return RKx;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return RKx=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var TOx;var KW=function(){var l=_.B.apply(this,arguments)||this;l.modernTypography=_.a("web_modern_typography");l.compactHeader=_.a("web_watch_compact_comments_header");l.hidePanelButton=!1;l.isPostSchedulingEnabled=_.a("enable_post_scheduling");l.hasFinishedStamping=!1;l.JSC$13825_handleOpenPostCommentDialogActionAfterStamp=!1;l.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return l};
_.m(KW,_.B);_.X=KW.prototype;
_.X.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"}}}};
_.X.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.X.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13825_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.X.onYtServiceRequestSent=function(l,e){if(!_.a("kevlar_command_handler")&&e.actions)for(l=0;l<e.actions.length;l++){var O=e.actions[l];_.I(O,j26)&&_.ud(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.I(O,j26))}};
_.X.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var l;if(this.getPrefilledBackstagePostDialog((l=this.data)==null?void 0:l.actions)){_.ud(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var e=_.ud(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;e&&_.OK(this,function(){e.focus();e.openDialog&&e.openDialog()})}}else this.hasActionsChange=!0};
_.X.computeIsBackstage=function(l){return l};
_.X.onYtCommentboxDismiss=function(){_.ud(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.X.removePrefilledDialog=function(l){if(l==null?0:l.actions){for(var e=l.actions.length-1;e>=0;e--){var O=void 0;((O=_.I(l.actions[e],r6x))==null?0:O.dialog)&&delete l.actions[e]}this.set("data",void 0);this.set("data",l)}};
_.X.getPrefilledBackstagePostDialog=function(l){if(l)for(var e=0;e<l.length;e++){var O=l[e],E=void 0;if((E=_.I(O,r6x))==null?0:E.dialog)return _.I(O,r6x).dialog}return null};
_.X.computeBackstagePostDialog=function(l){return l&&(this.getPrefilledBackstagePostDialog(l.actions)||l.createRenderer)};
_.X.dataChanged=function(){if(this.data){var l=this.data.customEmojis,e=this.data.unicodeEmojisUrl;_.hb.clear();e&&_.sgx(_.hb,e);l&&_.hb.load(l)}};
_.X.handleSignalActionOpenPostCommentDialogAction=function(){var l=_.ud(this.hostElement).querySelector("ytd-comment-simplebox-renderer");l?l.openDialog():this.JSC$13825_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Ji.Object.defineProperties(KW.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.a("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J,z,M;return!this.hidePanelButton&&_.a("kevlar_watch_comments_panel_button")&&((M=_.I((l=this.data)==null?void 0:(e=l.sortMenu)==null?void 0:(O=e.sortFilterSubMenuRenderer)==null?void 0:(E=O.subMenuItems)==null?void 0:(J=E[0])==null?void 0:(z=J.serviceEndpoint)==null?void 0:z.commandMetadata,_.V4))==null?void 0:M.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.ml("MINIPLAYER_EXPAND_LABEL"),text:_.xp(_.ml("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
KW.prototype.dataChanged=KW.prototype.dataChanged;KW.prototype.onYtCommentboxDismiss=KW.prototype.onYtCommentboxDismiss;KW.prototype.observePrefilledBackstagePostDialog=KW.prototype.observePrefilledBackstagePostDialog;KW.prototype.onYtServiceRequestSent=KW.prototype.onYtServiceRequestSent;KW.prototype.onStampFinished=KW.prototype.onStampFinished;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],KW.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],KW.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KW.prototype,"modernTypography",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KW.prototype,"compactHeader",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],KW.prototype,"engagementPanel",void 0);_.L([_.T(),_.q("design:type",Object)],KW.prototype,"hidePanelButton",void 0);_.L([_.T({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.q("design:type",Boolean)],KW.prototype,"isBackstage",void 0);_.L([_.T({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.q("design:type",Object)],KW.prototype,"backstagePostDialog",void 0);
_.L([_.T(),_.q("design:type",Object)],KW.prototype,"isPostSchedulingEnabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data","showCommentsPanelButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],KW.prototype,"useSpaceBetween",null);_.L([_.T({reflectToAttribute:!0}),_.R("data","hidePanelButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],KW.prototype,"showCommentsPanelButton",null);
_.L([_.R("data","showCommentsPanelButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],KW.prototype,"commentsPanelButtonData",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KW.prototype,"onStampFinished",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],KW.prototype,"onYtServiceRequestSent",null);
_.L([_.AA("data.actions"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KW.prototype,"observePrefilledBackstagePostDialog",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],KW.prototype,"onYtCommentboxDismiss",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KW.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],KW);
_.Y(KW,"ytd-comments-header-renderer",function(){if(TOx!==void 0)return TOx;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return TOx=l},{mode:1});var sY0;var jx=function(){return _.B.apply(this,arguments)||this};
_.m(jx,_.B);_.L([_.T(),_.q("design:type",Object)],jx.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],jx);
_.Y(jx,"ytd-destination-button-renderer",function(){if(sY0!==void 0)return sY0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return sY0=l},{mode:1});var GOS;var HN=function(){var l=_.B.apply(this,arguments)||this;l.isRichGrid=!1;l.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};l.modernTypography=_.a("web_modern_typography");return l};
_.m(HN,_.B);_.X=HN.prototype;_.X.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.X.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.X.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.X.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var l;if((l=this.data)==null||!l.isExpanded){l=this.hostElement.clientWidth;var e;if(l&&(e=this.data)!=null&&e.destinationButtons){e=Math.floor((l+4)/214);l=this.data.destinationButtons.length;var O=Math.ceil(l/e);this.fullyVisibleRows=l%e===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}}}};
_.X.updateRichGridDestinationButtonsVisibility=function(){var l,e;if(this.isRichGrid&&((l=this.data)==null||!l.isExpanded)&&(e=this.data)!=null&&e.destinationButtons){l=this.richGridItemsPerRow+1;e=this.data.destinationButtons.length;var O=Math.ceil(e/l);this.fullyVisibleRows=e%l===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}};
_.X.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
HN.prototype.updateRichGridDestinationButtonsVisibility=HN.prototype.updateRichGridDestinationButtonsVisibility;_.L([_.T(),_.q("design:type",Object)],HN.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Number)],HN.prototype,"fullyVisibleRows",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],HN.prototype,"isShowMoreVisible",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HN.prototype,"isRichGrid",void 0);
_.L([_.T({selector:_.Bt,value:0}),_.q("design:type",Number)],HN.prototype,"richGridItemsPerRow",void 0);_.L([_.T(),_.q("design:type",Object)],HN.prototype,"gridStateActionMap",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],HN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],HN.prototype,"ytdReduxBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HN.prototype,"modernTypography",void 0);_.L([_.AA("data","richGridItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HN.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.L([_.U({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],HN);
_.Y(HN,"ytd-destination-shelf-renderer",function(){if(GOS!==void 0)return GOS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GOS=l},{mode:1});var BO1;var cN=function(){return _.B.apply(this,arguments)||this};
_.m(cN,_.B);cN.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cN.prototype,"data",void 0);_.L([_.U({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],cN);
_.Y(cN,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(BO1!==void 0)return BO1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return BO1=l},{mode:1});var P61;var Fz=function(){var l=_.B.apply(this,arguments)||this;l.disableAnimation=!1;l.isSlimlineSurvey=!1;l.isSlimlineSurveyFollowUp=!1;l.isShortsStyle=!1;return l};
_.m(Fz,_.B);Fz.prototype.onTap=function(l){l.preventDefault();this.data&&_.$u(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Ji.Object.defineProperties(Fz.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 l,e,O,E,J;return((l=this.data)==null?0:l.checked)?(e=this.data)==null?void 0:(O=e.onStateIcon)==null?void 0:O.iconType:(E=this.data)==null?void 0:(J=E.defaultStateIcon)==null?void 0:J.iconType}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Fz.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Fz.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Fz.prototype,"disableAnimation",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Fz.prototype,"isSlimlineSurvey",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Fz.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Fz.prototype,"isShortsStyle",void 0);_.L([_.R("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fz.prototype,"isAnimatedIcon",null);
_.L([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.q("design:type",Number),_.q("design:paramtypes",[])],Fz.prototype,"iconSize",null);_.L([_.R("isShortsStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Fz.prototype,"isDarkTheme",null);_.L([_.R("data.checked"),_.q("design:type",Object),_.q("design:paramtypes",[])],Fz.prototype,"icon",null);_.L([_.U({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Fz);
_.Y(Fz,"ytd-rating-survey-option-renderer",function(){if(P61!==void 0)return P61;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return P61=l},{mode:2});var U_q;var fW=function(){var l=_.B.apply(this,arguments)||this;l.firstResponseText=null;l.lastResponseText=null;l.selectedNonStarOption=null;l.hideOptions=!1;l.hideUndoButton=!0;l.disableAnimation=!1;l.showResponseRangeText=!1;l.selectedRatingIndex=-1;l.isSlimlineSurvey=!1;l.isSlimlineSurveyFollowUp=!1;l.isShortsStyle=!1;l.slimlineSurveyRatingSelectedIndex=-1;return l};
_.m(fW,_.B);_.X=fW.prototype;_.X.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.X.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.X.onOptionChange=function(l,e){var O=this;l=e.onStateIcon&&e.defaultStateIcon&&e.onStateIcon.iconType===e.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(M,Z){M.responseText===e.responseText?O.isSlimlineSurvey?(O.selectedRatingIndex=Z,O.ytdReduxBehavior.dispatch(TuS(Z))):(O.setSurveyOptionValue(Z,!0,"checked"),O.setSurveyOptionValue(Z,!0,"selected")):(O.setSurveyOptionValue(Z,!1,"checked"),O.setSurveyOptionValue(Z,
!1,"selected"))});
else if(l)this.selectedNonStarOption=e,this.hideOptions=!0;else{var E=this.ytRendererBehavior.getSimpleString(e.responseText),J=!0;this.getOptionRenderers().forEach(function(M,Z){O.setSurveyOptionValue(Z,J,"checked");O.setSurveyOptionValue(Z,!1,"selected");O.ytRendererBehavior.getSimpleString(M.responseText)===E&&(J=!1,O.setSurveyOptionValue(Z,!0,"selected"))})}l=e.responseEndpoint;
var z;e.followUpCommand&&(z=_.I(e.followUpCommand,kP1));this.isSlimlineSurvey?(this.resetComponent(),_.Wb(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Wb(this.hostElement,"ytd-inline-survey-rating-select-action",[l,z])};
_.X.showSelectedOption=function(){var l=this;_.UD.addJob(function(){var e=l.getOptionRenderers()[l.slimlineSurveyRatingSelectedIndex];l.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),e)},8,100)};
_.X.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(l){var e;return(e=_.I(l,mCi))!=null?e:{}}):[]};
_.X.onUndoClick=function(){this.resetComponent();_.Wb(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.X.setSurveyOptionValue=function(l,e,O){this.notifyPath("data.ratings."+l+".ratingSurveyOptionRenderer."+O);this.set("data.ratings."+l+".ratingSurveyOptionRenderer."+O,e)};
_.X.resetComponent=function(){var l=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var e=this.getOptionRenderers(),O,E;this.firstResponseText=(E=(O=e[0])==null?void 0:O.responseText)!=null?E:null;var J,z;this.lastResponseText=(z=(J=e[e.length-1])==null?void 0:J.responseText)!=null?z:null;e.forEach(function(M,Z){l.setSurveyOptionValue(Z,!1,"checked");l.setSurveyOptionValue(Z,!1,"selected")})};
_.Ji.Object.defineProperties(fW.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
fW.prototype.onOptionChange=fW.prototype.onOptionChange;fW.prototype.dataChanged=fW.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],fW.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],fW.prototype,"firstResponseText",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"lastResponseText",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"selectedNonStarOption",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"hideOptions",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"hideUndoButton",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"disableAnimation",void 0);
_.L([_.T(),_.q("design:type",Object)],fW.prototype,"showResponseRangeText",void 0);_.L([_.T(),_.q("design:type",Object)],fW.prototype,"selectedRatingIndex",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fW.prototype,"isSlimlineSurvey",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fW.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fW.prototype,"isShortsStyle",void 0);_.L([_.T({selector:function(l){return l.ui.slimlineSurveyRatingSelectedIndex}}),
_.q("design:type",Object)],fW.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.L([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],fW.prototype,"isSingleSelect",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fW.prototype,"dataChanged",null);
_.L([_.wP("ytd-rating-survey-option-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],fW.prototype,"onOptionChange",null);_.L([_.U({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],fW);
_.Y(fW,"ytd-rating-survey-renderer",function(){if(U_q!==void 0)return U_q;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return U_q=l},{mode:1});var Yyi;var hK1;var L_i;var ZVq=(TK.FIRSTDAYOFWEEK+1)%7,tmF=function(l,e,O,E){var J="";if(E.selection&&zCp(E.selection))FL(l,E.selection)&&(J+=" selected");else if(E.selection&&bVA(E.selection)){var z=E.selection.selectionState||"START_DATE";FL(l,E.selection.start)&&(J+=" period-start ",z==="START_DATE"&&(J+="selected"));FL(l,E.selection.end)&&(J+=" period-end ",z==="END_DATE"&&(J+="selected"));fk(l,E.selection.start)||fk(E.selection.end,l)||(J+=" highlighted")}if(fk(e,E.start)||fk(E.end,e))J+=" disabled";E.circleToday&&
FL(e,O)&&(J+=" today");return J};var Rv=function(){return _.B.apply(this,arguments)||this};
_.m(Rv,_.B);_.X=Rv.prototype;_.X.attached=function(){var l=this;_.OK(this,function(){l.JSC$13859_calendarMain.scrollHeight>0&&(l.calendarConfig.selection?l.scrollToDate(MPp(l.calendarConfig.selection)):l.scrollToDate(l.calendarConfig.end))})};
_.X.updateSelection=function(l){l=uhu(Object.assign({},this.calendarConfig,{selection:l}),tmF);this.splice.apply(this,["renderData.months",0,l.length].concat(_.kA(l)))};
_.X.scrollToDate=function(l){this.renderData&&(l=ChW(l,this.renderData),l!==void 0&&this.JSC$13859_calendarMain.scrollToIndex(l))};
_.X.scrollToNextMonth=function(){this.JSC$13859_calendarMain.scrollToIndex(this.JSC$13859_calendarMain.firstVisibleIndex+1)};
_.X.scrollToPrevMonth=function(){this.JSC$13859_calendarMain.firstVisibleIndex===0&&this.JSC$13859_calendarMain.scrollTo(0,0);this.JSC$13859_calendarMain.scrollToIndex(this.JSC$13859_calendarMain.firstVisibleIndex-1)};
_.X.handleDayClick=function(l){_.Wb(this.hostElement,"ytd-calendar-date-clicked",[l.model.day.date])};
_.X.handleDayMouseDown=function(l){l.preventDefault();_.Wb(this.hostElement,"ytd-calendar-date-mousedown",[l.model.day.date])};
_.X.handleDayMouseUp=function(l){_.Wb(this.hostElement,"ytd-calendar-date-mouseup",[l.model.day.date])};
_.X.handleDayMouseEnter=function(l){l.preventDefault();_.Wb(this.hostElement,"ytd-calendar-date-mouseenter",[l.model.day.date])};
_.X.handleDayMouseLeave=function(l){_.Wb(this.hostElement,"ytd-calendar-date-mouseleave",[l.model.day.date])};
_.Ji.Object.defineProperties(Rv.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var l=this.calendarConfig,e=tmF;e=e===void 0?tmF:e;for(var O=[],E=0;E<7;E++)O.push(TK.NARROWWEEKDAYS[(E+ZVq)%7]);return{months:uhu(l,e),daysOfWeekLabel:O}}}});
_.L([_.T(),_.q("design:type",Object)],Rv.prototype,"calendarConfig",void 0);_.L([_.aB("#calendar-main"),_.q("design:type",Object)],Rv.prototype,"JSC$13859_calendarMain",void 0);_.L([_.R("calendarConfig"),_.q("design:type",Object),_.q("design:paramtypes",[])],Rv.prototype,"renderData",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Rv);
_.Y(Rv,"ytd-scrollable-calendar",function(){if(L_i!==void 0)return L_i;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return L_i=l},{mode:2});var qyH;var vtq;var TN=function(){var l=_.B.apply(this,arguments)||this;l.hideCharCounter=!1;l.hideLabel=!1;l.noLabelFloat=!1;l.autoValidate=!0;l.invalid=!1;l.disabled=!1;l.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return l};
_.m(TN,_.B);_.X=TN.prototype;_.X.reset=function(l){this.value=l&&this.data?this.data.value=l:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.X.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.X.focusTextInput=function(){this.input.focus()};
_.X.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()};
_.X.valueChanged=function(){var l,e;if(((l=this.data)==null?0:l.value)||((e=this.data)==null?void 0:e.value)==="")this.value=this.data.value;else{var O;((O=this.data)==null?void 0:O.value)!==void 0||this.value||(this.value="")}};
_.X.computeLabel=function(l,e){return e?"":_.lG(l)};
_.X.computeAriaLabel=function(l,e){return e?_.lG(l):""};
_.X.computeErrorMessage=function(l,e,O,E){!l&&e?l=O||this.strings.REQUIRED_LABEL:(l=_.lG(E),l=_.ZW(l,"&")?"document"in _.Op?HDu(l):cOp(l):l);return l};
_.X.computeType=function(l){return l==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.X.onTextValueChanged=function(l){this.value=l.detail.value;var e;(e=this.onValueChanged)==null||e.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.X.handleUpdateTextInputFormFieldRendererCommand=function(l){(l=_.I(l,tRS))&&this.data&&this.data.id===l.id&&(l.invalid!==void 0&&(this.invalid=l.invalid),l.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",l.invalidValueErrorMessage))};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("value-changed",this.value))};
_.X.updateInvalidFromBinding=function(l){this.invalid=l.detail.value};
_.Ji.Object.defineProperties(TN.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var l;return!((l=this.data)==null||!l.isMultiline)}}});
TN.prototype.valueChangedForBinding=TN.prototype.valueChangedForBinding;TN.prototype.valueChanged=TN.prototype.valueChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],TN.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],TN.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],TN.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],TN.prototype,"value",void 0);_.L([_.T(),_.q("design:type",String)],TN.prototype,"pattern",void 0);_.L([_.T(),_.q("design:type",String)],TN.prototype,"errorMessage",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],TN.prototype,"componentStyle",void 0);_.L([_.T(),_.q("design:type",Object)],TN.prototype,"hideCharCounter",void 0);
_.L([_.T(),_.q("design:type",Object)],TN.prototype,"hideLabel",void 0);_.L([_.T(),_.q("design:type",Object)],TN.prototype,"noLabelFloat",void 0);_.L([_.T(),_.q("design:type",Function)],TN.prototype,"onValueChanged",void 0);_.L([_.T(),_.q("design:type",Boolean)],TN.prototype,"isMultilineOverride",void 0);_.L([_.T(),_.q("design:type",Object)],TN.prototype,"autoValidate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TN.prototype,"invalid",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TN.prototype,"disabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],TN.prototype,"enableOverlayTheme",void 0);_.L([_.T({value:{REQUIRED_LABEL:_.ml("REQUIRED_LABEL",void 0,"Required")}}),_.q("design:type",Object)],TN.prototype,"strings",void 0);_.L([_.aB("#input"),_.q("design:type",Object)],TN.prototype,"input",void 0);
_.L([_.R("data","isMultilineOverride"),_.q("design:type",Object),_.q("design:paramtypes",[])],TN.prototype,"isMultiline",null);_.L([_.y0("data.value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TN.prototype,"valueChanged",null);_.L([_.AA("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TN.prototype,"valueChangedForBinding",null);_.L([_.Ps({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],TN);
_.Y(TN,"yt-text-input-form-field-renderer",function(){if(vtq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;qyH===void 0&&(qyH=document.createElement("template"));var E=qyH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);vtq=l}l=vtq;return l},{mode:2});var se=function(){var l=_.B.apply(this,arguments)||this;l.data=void 0;l.selectionState="START_DATE";l.isStartDateInvalid=!1;l.isEndDateInvalid=!1;l.autoapply=!1;l.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 l};
_.m(se,_.B);_.X=se.prototype;_.X.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"}}}}};
_.X.focus=function(){this.startDateInput.focus()};
_.X.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:R9(this.data.selection.start),end:R9(this.data.selection.end)})};
_.X.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.X.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.VC(this.selectionState)}};
_.X.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.X.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.X.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.X.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var l=this.calendar.calendarConfig,e=l.end;l=$WW({start:l.start,end:this.endDate||e},this.startDateInput.value||"");this.isStartDateInvalid=!l.isValid;l.isValid&&(l=l.value,this.selection=this.endDate?{start:l,end:this.endDate}:l,this.calendar.scrollToDate(l));this.updateInvalidState()}};
_.X.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var l=this.calendar.calendarConfig,e=l.start;l=$WW({start:this.startDate||e,end:l.end},this.endDateInput.value||"");this.isEndDateInvalid=!l.isValid;l.isValid&&(l=l.value,this.selection={start:this.startDate,end:l},this.calendar.scrollToDate(l));this.updateInvalidState()}};
_.X.handleCalendarDateClicked=function(l){var e=this.selection&&MPp(this.selection),O=this.selection&&VPM(this.selection);e&&!fk(l,e)&&this.selectionState==="END_DATE"?(this.selection={start:e,end:l},this.selectionState="START_DATE"):(O&&!fk(O,l)?this.selection={start:l,end:O}:this.selection=l,this.selectionState="END_DATE")};
_.X.handleCalendarDateMouseDown=function(l){this.selection&&!zCp(this.selection)&&(this.dragPivot=FL(l,this.selection.start)?this.selection.end:FL(l,this.selection.end)?this.selection.start:l)};
_.X.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.X.handleCalendarDateMouseEnter=function(l){this.dragPivot&&(this.selection={start:function(e,O){return fk(e,O)?e:O}(this.dragPivot,l),
end:function(e,O){return fk(e,O)?O:e}(this.dragPivot,l)},this.dragPivot||(this.selectionState="START_DATE"))};
_.X.handleCalendarDateMouseLeave=function(){};
_.X.handleCalendarSubmitDateRange=function(){this.selection&&!zCp(this.selection)&&_.Wb(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.X.updateInvalidState=function(){var l=function(e,O){O?e.setAttribute("invalid",""):e.removeAttribute("invalid")};
l(this.startDateInput,this.isStartDateInvalid);l(this.endDateInput,this.isEndDateInvalid)};
_.X.updateDateStrings=function(){this.selection&&(zCp(this.selection)?X$V(this.selection):(X$V(this.selection.start),X$V(this.selection.end)))};
_.X.updateCalendarSelection=function(l){this.calendar.updateSelection(Object.assign({},l,{selectionState:this.selectionState}))};
_.X.updateIsStartDateInvalidFromBinding=function(l){this.isStartDateInvalid=l.detail.value};
_.X.updateIsEndDateInvalidFromBinding=function(l){this.isEndDateInvalid=l.detail.value};
_.X.updateStartDateStringFromBinding=function(){};
_.X.updateEndDateStringFromBinding=function(){};
_.Ji.Object.defineProperties(se.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:R9(this.data.dateRangeStart),end:R9(this.data.dateRangeEnd),selection:{start:R9(this.data.selection.start),end:R9(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&MPp(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&VPM(this.selection)}}});
se.prototype.resetTextboxes=se.prototype.resetTextboxes;se.prototype.observeSelection=se.prototype.observeSelection;se.prototype.dataChanged=se.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],se.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],se.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#calendar"),_.q("design:type",Object)],se.prototype,"calendar",void 0);
_.L([_.aB("#start-date"),_.q("design:type",Object)],se.prototype,"startDateInput",void 0);_.L([_.aB("#end-date"),_.q("design:type",Object)],se.prototype,"endDateInput",void 0);_.L([_.T(),_.q("design:type",Object)],se.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],se.prototype,"selection",void 0);_.L([_.T(),_.q("design:type",String)],se.prototype,"selectionState",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],se.prototype,"calendarConfig",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],se.prototype,"errorMessage",null);_.L([_.R("selection"),_.q("design:type",Object),_.q("design:paramtypes",[])],se.prototype,"startDate",null);_.L([_.R("selection"),_.q("design:type",Object),_.q("design:paramtypes",[])],se.prototype,"endDate",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],se.prototype,"dataChanged",null);
_.L([_.AA("selection","selectionState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],se.prototype,"observeSelection",null);_.L([_.AA("selectionState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],se.prototype,"resetTextboxes",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],se);
_.Y(se,"ytd-date-period-picker-renderer",function(){if(hK1!==void 0)return hK1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return hK1=l},{mode:1});var GN=function(){var l=_.B.apply(this,arguments)||this;var e={};l.actionMap=(e["ytd-date-period-picker-apply"]="handleDateRangeUpdated",e);return l};
_.m(GN,_.B);GN.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
GN.prototype.handleDateRangeUpdated=function(){};
_.L([_.T(),_.q("design:type",Object)],GN.prototype,"data",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],GN.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],GN.prototype,"rendererstamperBehavior",void 0);_.L([_.U({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],GN);
_.Y(GN,"ytd-report-history-section-header-renderer",function(){if(Yyi!==void 0)return Yyi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Yyi=l},{mode:1});var NOq;var r4q;var D_x;var BN=function(){return _.B.apply(this,arguments)||this};
_.m(BN,_.B);_.Ji.Object.defineProperties(BN.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?0:(e=l.icon)==null?0:e.iconType)?_.w6(this.data.icon.iconType):""}}});
_.L([_.T(),_.q("design:type",Object)],BN.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],BN.prototype,"icon",null);_.L([_.U({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],BN);
_.Y(BN,"ytd-report-history-table-text-cell-renderer",function(){if(D_x!==void 0)return D_x;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return D_x=l},{mode:1});var PN=function(){return _.B.apply(this,arguments)||this};
_.m(PN,_.B);PN.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PN.prototype,"data",void 0);_.L([_.U({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],PN);
_.Y(PN,"ytd-report-history-table-reason-cell-renderer",function(){if(r4q!==void 0)return r4q;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return r4q=l},{mode:1});var Ue=function(){return _.B.apply(this,arguments)||this};
_.m(Ue,_.B);Ue.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"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ue.prototype,"rendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ue.prototype,"data",void 0);_.L([_.U({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Ue);
_.Y(Ue,"ytd-report-history-table-cell-renderer",function(){if(NOq!==void 0)return NOq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return NOq=l},{mode:1});var Sy1;var YW=function(){var l=_.B.apply(this,arguments)||this;l.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 l};
_.m(YW,_.B);YW.prototype.onDataChanged=function(){var l;if((l=this.data)==null?0:l.style)this.componentStyle=this.getStyleName(this.data.style)};
YW.prototype.getCellForColumn=function(l){return this.cells.find(function(e){var O;return((O=_.I(e==null?void 0:e.cell,K4C)||_.I(e==null?void 0:e.cell,pY6))==null?void 0:O.columnId)===l.type})};
YW.prototype.getClassForColumn=function(l){switch(l){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
YW.prototype.getStyleName=function(l){switch(l){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Ji.Object.defineProperties(YW.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.cells)||[]).map(function(e){return _.I(e,yrk)})}}});
YW.prototype.onDataChanged=YW.prototype.onDataChanged;_.L([_.T(),_.q("design:type",Object)],YW.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Array)],YW.prototype,"columnRenderData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],YW.prototype,"componentStyle",void 0);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],YW.prototype,"cells",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YW.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],YW);
_.Y(YW,"ytd-report-history-table-row-renderer",function(){if(Sy1!==void 0)return Sy1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Sy1=l},{mode:1});var QYF;var x_q;var Wdq={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},dWt={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var hU=function(){return _.B.apply(this,arguments)||this};
_.m(hU,_.B);hU.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"}}}}}};
hU.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Ji.Object.defineProperties(hU.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.columns)?n2p(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return w$g(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var l=this.tableSpec,e=Wdq;e=e===void 0?dWt:e;e=AsM(l.columnDimensions,l.columnsToShow||[],e);l=0;e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,l+=O.minWidth+O.paddingLeft+O.paddingRight;return l}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.L([_.K(_.qU),_.q("design:type",Object)],hU.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hU.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],hU.prototype,"tableSpec",null);_.L([_.R("tableSpec"),_.q("design:type",Array),_.q("design:paramtypes",[])],hU.prototype,"columnRenderData",null);
_.L([_.R("tableSpec"),_.q("design:type",Number),_.q("design:paramtypes",[])],hU.prototype,"totalMinWidth",null);_.L([_.R("totalMinWidth"),_.q("design:type",String),_.q("design:paramtypes",[])],hU.prototype,"tableWidthStyle",null);_.L([_.U({is:"ytd-table-renderer",disableElementRegistration:!0})],hU);
_.Y(hU,"ytd-table-renderer",function(){if(x_q!==void 0)return x_q;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return x_q=l},{mode:1});var LW=function(){return _.B.apply(this,arguments)||this};
_.m(LW,_.B);LW.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}}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],LW.prototype,"data",void 0);_.L([_.U({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],LW);
_.Y(LW,"ytd-report-reason-history-modal-renderer",function(){if(QYF!==void 0)return QYF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return QYF=l},{mode:1});var l50;var eZR;var OsC;var tU=function(){return _.B.apply(this,arguments)||this};
_.m(tU,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tU.prototype,"data",void 0);_.L([_.U({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],tU);
_.Y(tU,"ytd-profile-column-stats-entry-renderer",function(){if(OsC!==void 0)return OsC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return OsC=l},{mode:1});var Ei6;var q$=function(){return _.B.apply(this,arguments)||this};
_.m(q$,_.B);q$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],q$.prototype,"data",void 0);_.L([_.U({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],q$);
_.Y(q$,"ytd-profile-column-stats-renderer",function(){if(Ei6!==void 0)return Ei6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Ei6=l},{mode:1});var J2x;var vN=function(){return _.B.apply(this,arguments)||this};
_.m(vN,_.B);_.Ji.Object.defineProperties(vN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.useThumbnailSize)return 80;var e,O;l=(e=this.data)==null?void 0:(O=e.thumbnail)==null?void 0:O.thumbnails;var E;return l&&((E=l[0])==null?void 0:E.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.useThumbnailSize)return 80;var e,O;l=(e=this.data)==null?void 0:(O=e.thumbnail)==null?void 0:O.thumbnails;var E;return l&&((E=l[0])==null?void 0:E.height)||80}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vN.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],vN.prototype,"componentStyle",void 0);_.L([_.R("data.useThumbnailSize"),_.q("design:type",Object),_.q("design:paramtypes",[])],vN.prototype,"thumbnailWidth",null);
_.L([_.R("data.useThumbnailSize"),_.q("design:type",Object),_.q("design:paramtypes",[])],vN.prototype,"thumbnailHeight",null);_.L([_.U({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],vN);
_.Y(vN,"ytd-profile-column-user-info-renderer",function(){if(J2x!==void 0)return J2x;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return J2x=l},{mode:1});var N$=function(){return _.B.apply(this,arguments)||this};
_.m(N$,_.B);N$.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]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],N$.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],N$.prototype,"componentStyle",void 0);_.L([_.U({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],N$);
_.Y(N$,"ytd-profile-column-renderer",function(){if(eZR!==void 0)return eZR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return eZR=l},{mode:1});var rb=function(){var l=_.B.apply(this,arguments)||this;l.componentStyle="NON_CENTERED_PROFILE";return l};
_.m(rb,_.B);rb.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
rb.prototype.getIcon=function(l){return l?"settings:"+l.toLowerCase():null};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rb.prototype,"data",void 0);_.L([_.U({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],rb);
_.Y(rb,"ytd-page-introduction-renderer",function(){if(l50!==void 0)return l50;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return l50=l},{mode:1});var XMC;var DD=function(){return _.B.apply(this,arguments)||this};
_.m(DD,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],DD.prototype,"data",void 0);_.L([_.U({is:"ytd-report-description-renderer",disableElementRegistration:!0})],DD);
_.Y(DD,"ytd-report-description-renderer",function(){if(XMC!==void 0)return XMC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return XMC=l},{mode:1});var zZH;var bsR;var Sx=function(){return _.B.apply(this,arguments)||this};
_.m(Sx,_.B);Sx.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sx.prototype,"data",void 0);_.L([_.U({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Sx);
_.Y(Sx,"ytd-video-report-renderer",function(){if(bsR!==void 0)return bsR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return bsR=l},{mode:1});var Mhq;_.Y7("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Y7("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Q_=function(){return _.B.apply(this,arguments)||this};
_.m(Q_,_.B);Q_.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]]"}}}}}};
Q_.prototype.computeMessageStyle=function(l){return l};
Q_.prototype.computeButtonOverride=function(l){var e;if((l==null?0:(e=l.style)==null?0:e.value)&&l.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Q_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Q_.prototype,"shelf",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Q_.prototype,"panel",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.q("design:type",Boolean)],Q_.prototype,"componentStyle",void 0);_.L([_.T({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],Q_.prototype,"buttonOverride",void 0);_.L([_.U({is:"ytd-message-renderer",disableElementRegistration:!0})],Q_);
_.Y(Q_,"ytd-message-renderer",function(){if(Mhq!==void 0)return Mhq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Mhq=l},{mode:1});var xW=function(){return _.B.apply(this,arguments)||this};
_.m(xW,_.B);xW.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"}}}};
xW.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
xW.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Ji.Object.defineProperties(xW.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!(((l=this.data)==null?0:l.header)&&((e=this.data)==null?0:e.table))}}});
xW.prototype.onRequestError=xW.prototype.onRequestError;_.L([_.K(_.qU),_.q("design:type",Object)],xW.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xW.prototype,"data",void 0);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xW.prototype,"isUnifiedReportHistory",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xW.prototype,"onRequestError",null);_.L([_.U({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],xW);
_.Y(xW,"ytd-report-history-section-renderer",function(){if(zZH!==void 0)return zZH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zZH=l},{mode:1});var Vh0;var lx=function(){var l=_.B.apply(this,arguments)||this;l.answerExpanded=!1;return l};
_.m(lx,_.B);lx.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lx.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lx.prototype,"answerExpanded",void 0);_.L([_.U({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],lx);
_.Y(lx,"ytd-handles-claiming-faq-renderer",function(){if(Vh0!==void 0)return Vh0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Vh0=l},{mode:1});var Zs1;var uIk=function(){return _.B.apply(this,arguments)||this};
_.m(uIk,_.B);_.L([_.T(),_.q("design:type",Object)],uIk.prototype,"data",void 0);_.L([_.U({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],uIk);
_.Y(uIk,"ytd-handles-claiming-faq-section-renderer",function(){if(Zs1!==void 0)return Zs1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Zs1=l},{mode:1});var CRC;var ei=function(){var l=_.B.apply(this,arguments)||this;l.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";l.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";l.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";l.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";l.leftSquiggly=l.leftSquigglyLight;l.rightSquiggly=l.rightSquigglyLight;
l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};l.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return l};
_.m(ei,_.B);_.X=ei.prototype;_.X.updateLeftSquigglyStyle=function(){_.dP(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.X.updateRightSquigglyStyle=function(){_.dP(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.X.ready=function(){var l=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(l)};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.set("isDarkTheme",l),l?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
ei.prototype.updateRightSquigglyStyle=ei.prototype.updateRightSquigglyStyle;ei.prototype.updateLeftSquigglyStyle=ei.prototype.updateLeftSquigglyStyle;_.L([_.T(),_.q("design:type",Object)],ei.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],ei.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",String)],ei.prototype,"leftSquiggly",void 0);_.L([_.T(),_.q("design:type",String)],ei.prototype,"rightSquiggly",void 0);
_.L([_.AA("leftSquiggly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ei.prototype,"updateLeftSquigglyStyle",null);_.L([_.AA("rightSquiggly"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ei.prototype,"updateRightSquigglyStyle",null);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ei.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ei.prototype,"actionButtonOverride",void 0);_.L([_.U({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],ei);
_.Y(ei,"ytd-handles-claiming-header-renderer",function(){if(CRC!==void 0)return CRC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return CRC=l},{mode:1});var oiq;var OO=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};l.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";l.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";l.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";l.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
l.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";l.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";l.image0SquigglyBackground=l.image0LightSquigglyBackground;l.image1SquigglyBackground=l.image1LightSquigglyBackground;l.image3SquigglyBackground=l.image3LightSquigglyBackground;return l};
_.m(OO,_.B);_.X=OO.prototype;_.X.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.X.onDataChanged=function(){this.updateTitleAndImages()};
_.X.onThemeChanged=function(){this.updateTitleAndImages()};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l)};
_.X.updateImage0SquigglyBackground=function(){_.dP(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.X.updateImage1SquigglyBackground=function(){_.dP(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.X.updateImage3SquigglyBackground=function(){_.dP(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.X.updateTitleAndImages=function(){var l,e;((l=this.data)==null?void 0:(e=l.titleImages)==null?void 0:e.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
OO.prototype.updateImage3SquigglyBackground=OO.prototype.updateImage3SquigglyBackground;OO.prototype.updateImage1SquigglyBackground=OO.prototype.updateImage1SquigglyBackground;OO.prototype.updateImage0SquigglyBackground=OO.prototype.updateImage0SquigglyBackground;OO.prototype.onThemeChanged=OO.prototype.onThemeChanged;OO.prototype.onDataChanged=OO.prototype.onDataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],OO.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],OO.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"title0",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"title1",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"title2",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"title3",void 0);
_.L([_.T(),_.q("design:type",Object)],OO.prototype,"title4",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"image0",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"image1",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"image2",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"image3",void 0);_.L([_.T(),_.q("design:type",Object)],OO.prototype,"image4",void 0);_.L([_.T(),_.q("design:type",String)],OO.prototype,"image0SquigglyBackground",void 0);
_.L([_.T(),_.q("design:type",String)],OO.prototype,"image1SquigglyBackground",void 0);_.L([_.T(),_.q("design:type",String)],OO.prototype,"image3SquigglyBackground",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OO.prototype,"onDataChanged",null);_.L([_.AA("isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OO.prototype,"onThemeChanged",null);
_.L([_.AA("image0SquigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OO.prototype,"updateImage0SquigglyBackground",null);_.L([_.AA("image1SquigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OO.prototype,"updateImage1SquigglyBackground",null);
_.L([_.AA("image3SquigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OO.prototype,"updateImage3SquigglyBackground",null);_.L([_.U({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],OO);
_.Y(OO,"ytd-handles-claiming-title-images-section-renderer",function(){if(oiq!==void 0)return oiq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return oiq=l},{mode:1});var $nS;var EO=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(EO,_.B);EO.prototype.ready=function(){var l=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(l)};
EO.prototype.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l)};
EO.prototype.onCopyButtonClick=function(){var l=this,e,O,E;return _.V(function(J){return(e=l.data)!=null&&e.primaryChannelUrl?_.C(J,navigator.clipboard.writeText(((O=l.data)==null?0:O.encodedChannelUrl)?l.data.encodedChannelUrl:"https://"+_.lG((E=l.data)==null?void 0:E.primaryChannelUrl)),0):J.jumpTo(0)})};
_.L([_.T(),_.q("design:type",Object)],EO.prototype,"data",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],EO.prototype,"ytComponentBehavior",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],EO.prototype,"isDarkTheme",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],EO);
_.Y(EO,"ytd-handles-claiming-update-social-renderer",function(){if($nS!==void 0)return $nS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return $nS=l},{mode:1});var WN0;var Jo=function(){var l=_.B.apply(this,arguments)||this;l.JSC$13954_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";l.JSC$13954_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};l.squigglyBackground=l.JSC$13954_squigglyBackgroundLight;return l};
_.m(Jo,_.B);Jo.prototype.updateSquigglyBackgroundStyle=function(){_.dP(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Jo.prototype.ready=function(){var l=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",l);this.squigglyBackground=l?this.JSC$13954_squigglyBackgroundDark:this.JSC$13954_squigglyBackgroundLight};
Jo.prototype.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.set("isDarkTheme",l),this.squigglyBackground=l?this.JSC$13954_squigglyBackgroundDark:this.JSC$13954_squigglyBackgroundLight)};
Jo.prototype.updateSquigglyBackgroundStyle=Jo.prototype.updateSquigglyBackgroundStyle;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Jo.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Jo.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Jo.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",String)],Jo.prototype,"squigglyBackground",void 0);_.L([_.AA("squigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Jo.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.U({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Jo);
_.Y(Jo,"ytd-handles-claiming-vanity-info-renderer",function(){if(WN0!==void 0)return WN0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return WN0=l},{mode:1});var dn1;var XM=function(){var l=_.B.apply(this,arguments)||this;l.JSC$13957_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";l.JSC$13957_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";l.squigglyBackground=l.JSC$13957_squigglyBackgroundLight;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(XM,_.B);_.X=XM.prototype;_.X.ready=function(){var l=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(l)};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.set("isDarkTheme",l),this.squigglyBackground=l?this.JSC$13957_squigglyBackgroundDark:this.JSC$13957_squigglyBackgroundLight)};
_.X.updateSquigglyBackgroundStyle=function(){_.dP(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.X.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.X.detached=function(){this.stop()};
_.X.stop=function(){this.playerElement.stop()};
_.X.setupVideoPlayer=function(){var l=this,e,O;return _.V(function(E){e=l.data.videoId;O="http://i1.ytimg.com/vi/"+e+"/maxresdefault.jpg";l.playerElement.loadVideoWithPlayerVars({video_id:e,iurlhq:O});_.Cl(E)})};
XM.prototype.onDataChanged=XM.prototype.onDataChanged;XM.prototype.updateSquigglyBackgroundStyle=XM.prototype.updateSquigglyBackgroundStyle;_.L([_.T({value:!1}),_.q("design:type",Boolean)],XM.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",String)],XM.prototype,"squigglyBackground",void 0);_.L([_.aB("#player"),_.q("design:type",Object)],XM.prototype,"playerElement",void 0);_.L([_.T(),_.q("design:type",Object)],XM.prototype,"data",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.AA("squigglyBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XM.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XM.prototype,"onDataChanged",null);
_.L([_.U({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],XM);
_.Y(XM,"ytd-handles-claiming-video-item-renderer",function(){if(dn1!==void 0)return dn1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dn1=l},{mode:1});var giR;var bx=function(){var l=_.IB.apply(this,arguments)||this;l.dragging=!1;l.dragMouseStart=0;l.dragOffsetStart=0;l.containerWidthDiff=0;l.boundPrevClick=function(){l.set("offset",z$(l,l.offset-(l.scrollDistance||320)))};
l.boundNextClick=function(){l.set("offset",z$(l,l.offset+(l.scrollDistance||320)))};
l.boundScrollContainerMouseDown=function(e){l.dragMouseStart=e.clientX;l.dragOffsetStart=l.offset;l.dragging=!0};
l.boundScrollContainerDrag=function(e){l.dragging&&l.set("offset",z$(l,l.dragOffsetStart-(e.clientX-l.dragMouseStart)))};
l.boundMouseUp=function(){l.onMouseUp()};
l.boundWheelScroll=function(e){var O=0;Math.abs(e.deltaX)>=Math.abs(e.deltaY)?O=e.deltaX:e.shiftKey&&(O=e.deltaY);O!==0&&(l.offset+=O,e.stopPropagation(),e.preventDefault())};
l.boundChipCloudChipScrollIntoView=function(e){(e=e.detail)&&l.scrollChipIntoView(e)};
return l};
_.m(bx,_.IB);bx.prototype.attached=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container");l.addEventListener("wheel",this.boundWheelScroll);l.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);l.style.touchAction="pan-y";l.addEventListener("pointerdown",this.boundScrollContainerMouseDown);l.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
bx.prototype.detached=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container");l.removeEventListener("wheel",this.boundWheelScroll);l.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);l.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);l.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
bx.prototype.reset=function(){this.set("offset",0);_.OK(this,this.setContainerWidthDiff);Mp(this)};
var z$=function(l,e){return Math.min(Math.max(e,0),l.containerWidthDiff)};
bx.prototype.onMouseUp=function(){this.dragging=!1};
bx.prototype.transformContainer=function(){this.offset=z$(this,this.offset);var l=_.hT("HTML_DIR")==="rtl"?"":"-";_.ud(this.hostElement).querySelector("#chips").style.transform="translateX("+l+this.offset+"px)";Mp(this)};
var Mp=function(l){_.OK(l,l.setButtonsState)};
bx.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=z$(this,this.offset));this.atStart=this.offset<=0};
bx.prototype.setContainerWidthDiff=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container"),e=_.ud(this.hostElement).querySelector("#chips");l&&e&&(this.containerWidthDiff=e.clientWidth-l.clientWidth)};
bx.prototype.scrollChipIntoView=function(l){var e=_.ud(this.hostElement).querySelector("#scroll-container");if(e){var O=this.atStart?0:106,E=this.atEnd?0:106;l.offsetLeft<this.offset+O?this.offset=z$(this,l.offsetLeft-O):l.offsetLeft+l.clientWidth>this.offset+e.clientWidth-E&&(this.offset=z$(this,l.offsetLeft+l.clientWidth+E-e.clientWidth))}};
bx.prototype.transformContainer=bx.prototype.transformContainer;_.L([_.T({value:0}),_.q("design:type",Number)],bx.prototype,"offset",void 0);_.L([_.T({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],bx.prototype,"atStart",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],bx.prototype,"atEnd",void 0);_.L([_.T(),_.q("design:type",Number)],bx.prototype,"scrollDistance",void 0);
_.L([_.AA("offset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bx.prototype,"transformContainer",null);_.L([_.m0()],bx);var is6;var wM1;var a51=_.XO(function(l){var e=l.data;l=_.b(_.AF(!1,void 0,"icHmSe"));var O=l.next().value,E=l.next().value;l={};l=_.ax("ytChipShapeChip",function(){a:switch(e==null?void 0:e().state){case 0:var z="ytChipShapeActive";break a;case 1:z="ytChipShapeDisabled";break a;default:z="ytChipShapeInactive"}return z},function(){var z=e().type===1||e().type===2,M=e();
return z||M!=null&&M.startIcon?M==null||!M.startIcon||M!=null&&M.text?z?"ytChipShapeEndIconPadding":(M==null?0:M.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(l.ytChipShapeFocused=function(){var z;
return O()&&((z=e())==null?void 0:z.state)!==1},l));
var J=function(z){if((e==null?void 0:e().state)!==1){var M,Z;(Z=(M=e()).onTap)==null||Z.call(M,z)}};
return _.W("chip-shape",{class:"ytChipShapeHost","on:focusin":_.pd(function(){var z=_.V2().resolve(_.MG(_.of));if(z){E(z.isKeyBoardInUse());var M,Z;(Z=(M=e()).onFocusIn)==null||Z.call(M)}return!1}),
"on:focusout":_.pd(function(){E(!1);return!1})},_.W(A21,{shouldWrapInButton:function(){return e().type!==2},
selected:function(){return e().state===0},
onClick:J,isDropdown:function(){return e().type===1},
accessibilityLabel:function(){return e().accessibilityLabel}},_.W("div",{class:l},_.W(_.A,{cond:function(){return e().startIcon},
then:function(){return _.W(_.cF,{icon:function(){var z;return(z=e())==null?void 0:z.startIcon},
className:function(){return e().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),_.W("span",{class:"ytChipShapeText"}," ",function(){return e().text}),_.W(niR,{shape:e,
onClick:J}))))},"zb");
a51.idomCompat=!0;var A21=_.XO(function(l){var e=_.pd(function(O){l.onClick(O);return!1});
return _.W(_.A,{cond:l.shouldWrapInButton,then:function(){return _.W("button",{class:"ytChipShapeButtonReset","on:click":e,role:function(){return l.isDropdown()?"combobox":"tab"},
"aria-label":l.accessibilityLabel,"aria-selected":l.selected},l.children)},
else:function(){return l.children}})},"Ab"),niR=_.XO(function(l){var e=l.shape;
var O=l.onClick;var E=_.pd(function(J){O(J);return!1});
return _.W(_.cK,null,_.W(_.jD,{when:function(){return e().type===1}},function(){return _.W(_.cF,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.W(_.jD,{when:function(){return e().type===2}},function(){return _.W("button",{class:"ytChipShapeButtonReset",
"on:click":E},_.W(_.cF,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.W(_.jD,{when:function(){return e().type===0}},function(){return _.W(_.ZB,null)}))},"Bb");_.Zw(a51,"chip-shape",{props:{data:_.lB}});var V1=function(){var l=_.B.apply(this,arguments)||this;l.disableDeselectEvent=!1;l.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return l};
_.m(V1,_.B);_.X=V1.prototype;_.X.onSelectChipCommand=function(l){if(!this.selected&&this.data&&(l=_.I(l,TsR),l.targetId&&l.targetId===this.data.targetId))this.onTap()};
_.X.onFilterChipTransformCommand=function(l){if(!this.selected&&this.data){var e;(l=(e=_.I(l,BdR))==null?void 0:e.chipUniqueId)&&l===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.X.dataChanged=function(){var l=this;_.OK(this,function(){l.data&&l.data.isSelected&&!l.selected&&(l.scrollChipIntoView(),l.onTap())})};
_.X.computeChipStyle=function(l){return l!=null?l:"STYLE_DEFAULT"};
_.X.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Wb(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Wb(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.X.onFocus=function(){var l=_.V2().resolve(_.MG(_.of));l&&l.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.X.scrollChipIntoView=function(){_.$u(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Ji.Object.defineProperties(V1.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return p$M({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
V1.prototype.onFocus=V1.prototype.onFocus;V1.prototype.onTap=V1.prototype.onTap;V1.prototype.dataChanged=V1.prototype.dataChanged;_.L([_.K(_.Hy),_.q("design:type",Object)],V1.prototype,"ironButtonState",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],V1.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],V1.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.po),_.q("design:type",Object)],V1.prototype,"ironA11yKeysBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],V1.prototype,"disableDeselectEvent",void 0);_.L([_.T(),_.q("design:type",Object)],V1.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.icon"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],V1.prototype,"hasIcon",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.uniqueId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],V1.prototype,"isGnomeChip",null);_.L([_.T({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.q("design:type",String)],V1.prototype,"chipStyle",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],V1.prototype,"selected",void 0);
_.L([_.R("data","selected"),_.q("design:type",Object),_.q("design:paramtypes",[])],V1.prototype,"chipShapeData",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V1.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V1.prototype,"onTap",null);
_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V1.prototype,"onFocus",null);_.L([_.Ps({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],V1);
_.Y(V1,"yt-chip-cloud-chip-renderer",function(){if(wM1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;is6===void 0&&(is6=document.createElement("template"));var E=is6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);wM1=l}l=wM1;return l},{mode:2});var Zj=function(){var l=_.B.apply(this,arguments)||this;l.isDarkTheme=!1;l.notSticky=!1;l.transparentBackground=!1;l.shouldHide=!1;l.disableSticky=!1;l.fluidWidth=!1;l.isClipList=!1;l.defaultChipIndex=0;l.isPlaylist=!1;l.playlistVotingAnimationEnabled=_.a("web_enable_voting_animation");l.toolbarHeight=0;l.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return l};
_.m(Zj,_.B);_.X=Zj.prototype;
_.X.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.X.attached=function(){var l=this;document.addEventListener("scroll",_.id(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var e;this.toolbarHeight=((e=document.querySelector("ytd-masthead"))==null?void 0:e.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(O){l.handleIntersect(O)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){l.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.X.detached=function(){var l;(l=this.intersectionObserver)==null||l.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect();document.removeEventListener("scroll",_.id(this,this.updateChipBarWidthAndTop))};
_.X.dataChanged=function(){var l=this,e,O,E;((E=_.I((e=this.data)==null?void 0:(O=e.contents)==null?void 0:O[0],Enq))==null?void 0:E.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var J=this.findSelectedChipIndex();this.selectedIndex!==J&&(this.selectedIndex=-1);_.OK(this,function(){l.selectedIndex=J;l.updating=!1;l.ytScrollableChipCloudBehavior.reset()})};
_.X.findSelectedChipIndex=function(){var l;if((l=this.data)==null||!l.contents)return 0;l=this.data.contents;for(var e=0;e<l.length;e++){var O=void 0;if((O=_.I(l[e],Enq))==null?0:O.isSelected)return e}return 0};
_.X.computeStyle=function(l){return l};
_.X.handleChipCloudChipSelectAction=function(l){l=this.JSC$13976_chipsSelector.indexOf(l);l>-1&&this.JSC$13976_chipsSelector.selectIndex(l)};
_.X.handleChipCloudChipDeselectAction=function(){if(_.a("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],Enq))==null?void 0:O.navigationEndpoint;E&&_.Wb(this.hostElement,"yt-browse-section-list-reload-endpoint",[E]);this.JSC$13976_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.X.onGuideIsExpandedChanged=function(){var l=this.ytScrollableChipCloudBehavior;_.OK(l,l.setContainerWidthDiff);Mp(this.ytScrollableChipCloudBehavior)};
_.X.onResize=function(){var l=this.ytScrollableChipCloudBehavior;_.OK(l,l.setContainerWidthDiff);Mp(this.ytScrollableChipCloudBehavior)};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.X.handleIntersect=function(l){this.notSticky=this.isChannelPageGrid||this.disableSticky||l[0].intersectionRatio===1};
_.X.updateDimensions=function(){var l=this.ytRendererBehavior.parentComponent;if(l){var e,O=(e=l.headerElement)!=null?e:l;_.dP(this.hostElement,{"--ytd-rich-grid-chips-bar-width":O.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.X.updateSelectedIndexFromBinding=function(l){this.selectedIndex=l.detail.value};
_.X.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var l;(l=this.sortFilterHeaderRendererElement)==null||l.setAttribute("is-playlist-page-with-filters","")}};
_.X.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(BuH(!this.notSticky))};
_.Ji.Object.defineProperties(Zj.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 l,e,O=(l=this.data)==null?void 0:(e=l.contents)==null?void 0:e.find(function(E){return _.I(E,MJi)});
return{sortFilterHeaderRenderer:_.I(O,MJi)}}}});
Zj.prototype.dispatchChipBarIsSticky=Zj.prototype.dispatchChipBarIsSticky;Zj.prototype.isPlaylistPageChanged=Zj.prototype.isPlaylistPageChanged;Zj.prototype.updateChipBarWidthAndTop=Zj.prototype.updateChipBarWidthAndTop;Zj.prototype.onResize=Zj.prototype.onResize;Zj.prototype.onGuideIsExpandedChanged=Zj.prototype.onGuideIsExpandedChanged;Zj.prototype.dataChanged=Zj.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Zj.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],Zj.prototype,"ironResizableBehavior",void 0);_.L([_.K(),_.q("design:type",bx)],Zj.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Zj.prototype,"ytdReduxBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Zj.prototype,"data",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],Zj.prototype,"selectedIndex",void 0);_.L([_.T({value:320}),_.q("design:type",Number)],Zj.prototype,"scrollDistance",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"notSticky",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"transparentBackground",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.q("design:type",String)],Zj.prototype,"componentStyle",void 0);_.L([_.T({selector:_.ZpL}),_.q("design:type",Boolean)],Zj.prototype,"guideIsExpanded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"shouldHide",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"disableSticky",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"fluidWidth",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"isClipList",void 0);_.L([_.T(),_.q("design:type",Object)],Zj.prototype,"defaultChipIndex",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Zj.prototype,"isPlaylist",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Zj.prototype,"playlistVotingAnimationEnabled",void 0);_.L([_.aB("#chips"),_.q("design:type",Object)],Zj.prototype,"JSC$13976_chipsSelector",void 0);_.L([_.aB("ytd-sort-filter-header-renderer"),_.q("design:type",HTMLElement)],Zj.prototype,"sortFilterHeaderRendererElement",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Zj.prototype,"updating",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zj.prototype,"dataChanged",null);_.L([_.AA("guideIsExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zj.prototype,"onGuideIsExpandedChanged",null);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zj.prototype,"onResize",null);
_.L([_.y0("isChannelPageGrid","disableSticky","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zj.prototype,"updateChipBarWidthAndTop",null);_.L([_.R("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zj.prototype,"isChannelPageGrid",null);_.L([_.R("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zj.prototype,"isHashtagLandingPage",null);
_.L([_.AA("isPlaylistPage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zj.prototype,"isPlaylistPageChanged",null);_.L([_.R("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zj.prototype,"isPlaylistPage",null);_.L([_.R("componentStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Zj.prototype,"isDisableDeselectEvent",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Zj.prototype,"sortFilterHeaderRendererData",null);_.L([_.T({reflectToAttribute:!0,selector:_.gUT}),_.q("design:type",String)],Zj.prototype,"frostedGlassMode",void 0);_.L([_.AA("notSticky"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Zj.prototype,"dispatchChipBarIsSticky",null);_.L([_.U({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Zj);
_.Y(Zj,"ytd-feed-filter-chip-bar-renderer",function(){if(giR!==void 0)return giR;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return giR=l},{mode:1});var kX6;var I5q=_.XO(function(l){var e=l.data;var O=l.buttonIndex;var E=l.selectedIndex;var J=l.onSelect;var z=function(){return O()===E()},M=function(){var Z,u;
return(u=(Z=e().text)==null?void 0:Z.content)!=null?u:""};
l=_.erW();return _.W("yt-toggleable-image-button-view-model",{class:function(){var Z={};Z=(Z["toggleable-image-button-view-model-wiz"]=!0,Z[""]=!0,Z["toggleable-image-button-view-model-wiz__semi-transparent"]=E()!==-1&&!z(),Z);return _.Ix(Z)},
tabindex:0,"aria-label":M,"aria-pressed":z,role:"button","on:keydown":l,"on:click":_.pd(function(){J(e().onSubmitCommand);return!1})},_.W(_.A,{cond:function(){return e().logo},
then:function(Z){return _.W(_.Jm,{data:Z,className:function(){var u={};u=(u["toggleable-image-button-view-model-wiz__image"]=!0,u["toggleable-image-button-view-model-wiz__circular-radius"]=!(!e().backgroundColor||!e().backgroundColorDarkMode),u["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(z()&&e().backgroundColor&&e().backgroundColorDarkMode),u);return _.Ix(u)},
alt:M,useWidth:!1,style:function(){if(z()&&e().backgroundColor&&e().backgroundColorDarkMode){var u=vc(Number(e().backgroundColorDarkMode),"1");var d=vc(Number(e().backgroundColor),"1");u="background: linear-gradient(180deg,"+u+","+d+") border-box;"}else u="";return u}})}}),_.W(_.Rx,{model:{borderRadius:"16px"}}),_.W("p",{class:function(){var Z={};
Z=(Z["toggleable-image-button-view-model-wiz__label"]=!0,Z["toggleable-image-button-view-model-wiz__bold-text"]=z(),Z);return _.Ix(Z)}},_.W(_.zK,{text:function(){return e().text}})))},"Cb");
I5q.idomCompat=!0;var y2S=_.XO(function(l){var e=l.data;l=_.b(_.AF({index:-1,command:{}},void 0,"Zcqtsb"));var O=l.next().value,E=l.next().value;return _.W("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.W("div",{class:"nudge-form-view-model-wiz__form-options"},_.W(_.Tn,{data:function(){return e().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(J,z){return _.W(I5q,{data:J.data,buttonIndex:z,selectedIndex:function(){return O().index},
onSelect:function(M){E({index:z(),command:M})}})}})),_.W(_.zK,{text:function(){return e().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.W("div",{class:"nudge-form-view-model-wiz__submit"},_.W(_.Tn,{data:function(){return e().submitButton}},{buttonViewModel:function(J){return _.W(mnk,{data:J.data,
isDisabled:function(){return O().index===-1},
onClick:function(){_.r6(O().command)}})}})))},"Db");
y2S.idomCompat=!0;var mnk=_.XO(function(l){var e=_.mF(function(){return Object.assign({},l.data(),{state:l.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.W(_.hM,{data:e,onClick:l.onClick})},"Eb");_.Zw(y2S,"yt-nudge-form-view-model",{props:{data:_.lB}});var ux=function(){var l=_.B.apply(this,arguments)||this;l.roundedContainer=!0;l.buttonUpdate=_.a("web_modern_buttons");l.isDarkMode=!1;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return l};
_.m(ux,_.B);_.X=ux.prototype;_.X.computeNudgeStyle=function(l){return l?"modernized-nudge":""};
_.X.handleDarkModeToggledAction=function(l){this.isDarkMode=l};
_.X.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.X.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"}}}};
_.X.computeIsHorizontalButtons=function(l){return l?!!l.applyModernizedStyle&&!!l.enableHorizontalButtons&&!!l.secondaryButton:!1};
_.Ji.Object.defineProperties(ux.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.data)==null?void 0:l.backgroundStyle)!=null?e:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.data)==null?void 0:l.contentsLocation)!=null?e:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null?0:l.lightIconImage)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],ux.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ux.prototype,"actionHandlerBehavior",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("isHideEnclosingAction"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ux.prototype,"isHidden",null);_.L([_.T(),_.q("design:type",Object)],ux.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ux.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ux.prototype,"buttonUpdate",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.q("design:type",String)],ux.prototype,"nudgeStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.trimStyle"),_.q("design:type",String),_.q("design:paramtypes",[])],ux.prototype,"trimStyle",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.backgroundStyle"),_.q("design:type",String),_.q("design:paramtypes",[])],ux.prototype,"backgroundStyle",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.contentsLocation"),_.q("design:type",String),_.q("design:paramtypes",[])],ux.prototype,"contentsLocation",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.disableDropShadow"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ux.prototype,"noShadow",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.lightIconImage"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ux.prototype,"noIcon",null);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.q("design:type",Boolean)],ux.prototype,"isHorizontalButtons",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Object)],ux.prototype,"isDarkMode",void 0);_.L([_.U({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],ux);
_.Y(ux,"ytd-feed-nudge-renderer",function(){if(kX6!==void 0)return kX6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return kX6=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var pMq;var KNR;var CG=function(){var l=_.B.apply(this,arguments)||this;l.collapsed=!1;l.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return l};
_.m(CG,_.B);CG.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"}}}};
CG.prototype.handleRatingSelect=function(){var l;((l=this.data)==null?0:l.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
CG.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],CG.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],CG.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.B8),_.q("design:type",Object)],CG.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CG.prototype,"collapsed",void 0);_.L([_.U({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],CG);
_.Y(CG,"ytd-slimline-survey-renderer",function(){if(KNR!==void 0)return KNR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return KNR=l},{mode:1});var jER;var o$=function(){return _.B.apply(this,arguments)||this};
_.m(o$,_.B);o$.prototype.maybeGetBackgroundColor=function(l){return this.isDarkMode?l.section2Color:l.section3Color};
o$.prototype.colorPaletteChanged=function(){var l=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;l&&(l==null?0:l.secondaryTitleColor)&&this.maybeGetBackgroundColor(l)?(this.hostElement.style.backgroundColor=_.t$(this.maybeGetBackgroundColor(l)),this.hostElement.style.color=_.t$(l.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
o$.prototype.colorPaletteChanged=o$.prototype.colorPaletteChanged;_.L([_.K(_.sY),_.q("design:type",Object)],o$.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],o$.prototype,"data",void 0);_.L([_.T({selector:function(l){return l.ui.darkModeIsEnabled}}),
_.q("design:type",Boolean)],o$.prototype,"isDarkMode",void 0);_.L([_.T(),_.q("design:type",Object)],o$.prototype,"lightColorPalette",void 0);_.L([_.T(),_.q("design:type",Object)],o$.prototype,"darkColorPalette",void 0);_.L([_.AA("darkColorPalette","lightColorPalette","data","isDarkMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],o$.prototype,"colorPaletteChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],o$);
_.Y(o$,"ytd-endorsement-header-renderer",function(){if(jER!==void 0)return jER;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return jER=l},{mode:1});_.Zw(_.cp,"yt-decorated-avatar-view-model",{props:{data:_.lB,className:_.lB}});var $y=function(){var l=_.B.apply(this,arguments)||this;l.fullHeight=_.a("web_rich_grid_media_full_height");l.showChannelAvatar=!0;l.hasPlaylistThumbnail=!1;l.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};l.prepareThumbnailForPageTransition=function(){_.a("web_thumbnail_to_watch_transition")&&(l.thumbnail.style.viewTransitionName="thumbnail-to-watch",l.cleanupThumbnailAfterPageTransition(l.thumbnail))};
return l};
_.m($y,_.B);_.X=$y.prototype;
_.X.configureRendererStamper=function(){return{lazyLoadMenu:dr,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"}}}};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.shouldLazyLoadMenu=function(){var l=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.a("kevlar_modern_downloads_page")||!l};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14002_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:this.JSC$14002_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.X.getVideoPreviewOpts=function(){var l={},e;if((e=this.data)==null?0:e.multipleInlinePlaybackEndpoint)l=aQ1;this.isRadio&&(l=nrq);return _.a("web_thumbnail_to_watch_transition")?Object.assign({},l,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):l};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$14002_inlinePreviewHoverListener)==null||CN(l)};
_.X.getOwner=function(){var l,e,O;return((l=this.data)==null?void 0:(e=l.channelThumbnailSupportedRenderers)==null?void 0:e.channelThumbnailWithLinkRenderer)||_.I((O=this.data)==null?void 0:O.showProviderChannelThumbnail,DJx)};
_.X.updateLockupSize=function(){var l;((l=this.getOwner())==null?0:l.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.X.getFeedbackEndpoint=function(l){if(_.I(l,_.Yx))return l;var e,O;l=(O=(e=_.I(l,_.nz))==null?void 0:e.commands)!=null?O:[];e=_.b(l);for(O=e.next();!O.done;O=e.next())if(O=this.getFeedbackEndpoint(O.value))return O;return null};
_.X.computeNavigationEndpoint=function(l){return UkT(l==null?void 0:l.navigationEndpoint)};
_.X.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var l=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(l)!==JSON.stringify(this.data)&&this.set("data",l)}};
_.X.onDataChanged=function(){var l=this,e=this.getOwner();if(e){this.set("data.owner",e);var O,E,J,z,M,Z=((O=this.data)==null?void 0:(E=O.shortBylineText)==null?void 0:(J=E.runs)==null?void 0:(z=J[0])==null?void 0:z.text)||((M=e.name)==null?void 0:M.simpleText);this.set("data.owner.title",Z)}var u,d,g,w,n,k;e=((u=this.data)==null?void 0:(d=u.thumbnailRenderer)==null?void 0:d.playlistVideoThumbnailRenderer)||((g=this.data)==null?void 0:(w=g.thumbnailRenderer)==null?void 0:w.playlistCustomThumbnailRenderer)||
((n=this.data)==null?void 0:(k=n.thumbnailRenderer)==null?void 0:k.showCustomThumbnailRenderer);var y;((y=this.data)==null?0:y.thumbnail)||!e||this.set("data.thumbnail",e.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){l.updateLockupSize()});
var c;if(u=((c=this.data)==null?void 0:c.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(u);var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.X.onHiddenChanged=function(){this.updateLockupSize()};
_.X.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Wb(this.hostElement,"yt-terminate-video-preview-action");else{var l;(l=this.videoTitleLink)==null||l.focus()}};
_.X.metadataColorChanged=function(){var l;if(this.metadataColor&&((l=this.videoTitle)==null?0:l.style))this.videoTitle.style.color=_.t$(this.metadataColor);else{var e,O;!this.metadataColor&&((e=this.videoTitle)==null?0:(O=e.style)==null?0:O.color)&&(this.videoTitle.style.color="")}};
_.X.onDetailsClick=function(l){var e=this.computedNavigationEndpoint;e&&(_.Eh(_.ey(l),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.$u(this.hostElement,"yt-navigate",{endpoint:e}))};
_.X.cleanupThumbnailAfterPageTransition=function(l){_.Ymd(document,"yt-page-type-changed",function(){l.style.viewTransitionName=""})};
_.X.onRendererTap=function(){this.prepareThumbnailForPageTransition();var l,e,O=((l=this.data)==null?void 0:l.serviceEndpoint)||this.getFeedbackEndpoint((e=this.data)==null?void 0:e.navigationEndpoint);O&&_.I(O,_.Yx)&&this.ytComponentBehavior.resolveCommand(O)};
_.X.onMouseDown=function(l){var e=l.target,O=this.computedNavigationEndpoint,E;l=e.href||((E=_.I(O==null?void 0:O.commandMetadata,_.V4))==null?void 0:E.url);E=e.data||O;l&&E&&PM8(l,E)};
_.X.computeVideoTitleText=function(){var l;if((l=this.data)==null?0:l.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.X.computeHasPlaylistThumbnail=function(l){var e,O,E,J,z;if((((e=l.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((O=l.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer)||((E=l.thumbnailRenderer)==null?0:E.showCustomThumbnailRenderer)||((J=l.thumbnailRenderer)==null?0:J.playlistVideoThumbnailRenderer)||((z=l.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer))&&l.thumbnailOverlays)for(e=0;e<l.thumbnailOverlays.length;e++)if(O=void 0,(O=l.thumbnailOverlays[e])==
null?0:O.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Ji.Object.defineProperties($y.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.a("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var l;return(l=this.data)==null?void 0:l.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var l;return(l=this.data)==null?void 0:l.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$14002_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.k1(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.videoId)||((e=this.data)==null?void 0:e.playlistId)||""}}});
$y.prototype.onMouseDown=$y.prototype.onMouseDown;$y.prototype.metadataColorChanged=$y.prototype.metadataColorChanged;$y.prototype.onIsDismissedChanged=$y.prototype.onIsDismissedChanged;$y.prototype.onHiddenChanged=$y.prototype.onHiddenChanged;$y.prototype.onDataChanged=$y.prototype.onDataChanged;$y.prototype.handleReloadDownloadsInfo=$y.prototype.handleReloadDownloadsInfo;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$y.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],$y.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],$y.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],$y.prototype,"ytdReduxBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],$y.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],$y.prototype,"entitySelectorType",void 0);_.L([_.T(),_.q("design:type",Boolean)],$y.prototype,"noEndpoints",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],$y.prototype,"isRadio",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],$y.prototype,"miniMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$y.prototype,"fullHeight",void 0);
_.L([_.T(),_.q("design:type",Boolean)],$y.prototype,"showDarkVideoMetadata",void 0);_.L([_.T(),_.q("design:type",Boolean)],$y.prototype,"showLightVideoMetadata",void 0);_.L([_.T(),_.q("design:type",Number)],$y.prototype,"metadataColor",void 0);_.L([_.T(),_.q("design:type",Object)],$y.prototype,"showChannelAvatar",void 0);_.L([_.T(),_.q("design:type",Boolean)],$y.prototype,"hidden",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],$y.prototype,"showYtInteraction",void 0);
_.L([_.T(),_.q("design:type",String)],$y.prototype,"dismissedContentId",void 0);_.L([_.T({selectorArgs:["dismissedContentId"],selector:y9L}),_.q("design:type",Object)],$y.prototype,"dismissActionToReplayEntity",void 0);
_.L([_.T({selectorArgs:["entitySelectorType","mediaId"],selector:function(l,e,O){if(_.a("kevlar_modern_downloads_page")&&O&&e&&e!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var E=nUp(l,O);if(E){e=_.Yp(l,O);var J=LO(l,O),z=FVM(l,O);l=tY(l,O);var M=V9q(E,e,J,z);J=M.shortViewCountText;var Z=M.publishedTimeText;M=M.badges;var u=l>0;z=b6x(E,e,z,l);E=_.KO(e)||e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!pO(E.policyEntity)?
void 0:B9g(O,l,E.videoEntity.lengthSeconds);e==="TRANSFER_STATE_PAUSED_BY_USER"&&O&&!_.a("dl_resume_click_killswitch")&&(E={offlineVideoEndpoint:{videoId:O,action:"ACTION_RESUME"}});O={shortViewCountText:J,publishedTimeText:Z,badges:M,isWatched:u,navigationEndpoint:E,thumbnailOverlays:z}}else O=void 0;return O;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(e=anA(l,O))if(E=_.hY(l,O),z=_.kWW(l,O),E!=="TRANSFER_STATE_UNKNOWN"){O=M9g(e,E,z,O,dSL(l));break a}O=void 0}return O;default:_.hG(new _.Hk("Error: entitySelectorType defined but not matched in selector.",
l,e))}}}),
_.q("design:type",Object)],$y.prototype,"entityDrivenState",void 0);_.L([_.T({computed:"computeVideoTitleText(data)"}),_.q("design:type",Object)],$y.prototype,"videoTitleText",void 0);_.L([_.T({computed:"computeHasPlaylistThumbnail(data)"}),_.q("design:type",Object)],$y.prototype,"hasPlaylistThumbnail",void 0);_.L([_.T({computed:"computeNavigationEndpoint(data)"}),_.q("design:type",Object)],$y.prototype,"computedNavigationEndpoint",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],$y.prototype,"typographyBump",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("typographyBump"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$y.prototype,"typographyBumpV2",null);_.L([_.aB("#video-title"),_.q("design:type",HTMLElement)],$y.prototype,"videoTitle",void 0);_.L([_.aB("#video-title-link"),_.q("design:type",HTMLElement)],$y.prototype,"videoTitleLink",void 0);
_.L([_.aB("#thumbnail"),_.q("design:type",HTMLElement)],$y.prototype,"thumbnail",void 0);_.L([_.aB("#dismissible"),_.q("design:type",HTMLElement)],$y.prototype,"JSC$14002_dismissibleMedia",void 0);_.L([_.R("data.menu"),_.q("design:type",Object),_.q("design:paramtypes",[])],$y.prototype,"lazyLoadMenu",null);_.L([_.R("data.menu"),_.q("design:type",Object),_.q("design:paramtypes",[])],$y.prototype,"immediateLoadMenu",null);
_.L([_.y0("entityDrivenState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$y.prototype,"handleReloadDownloadsInfo",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$y.prototype,"onDataChanged",null);_.L([_.y0("hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$y.prototype,"onHiddenChanged",null);
_.L([_.AA("isDismissed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$y.prototype,"onIsDismissedChanged",null);_.L([_.AA("metadataColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$y.prototype,"metadataColorChanged",null);_.L([_.wP("mousedown"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],$y.prototype,"onMouseDown",null);
_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$y.prototype,"isHovered",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$y.prototype,"useAvatar",null);_.L([_.R("data","entitySelectorType"),_.q("design:type",String),_.q("design:paramtypes",[])],$y.prototype,"mediaId",null);_.L([_.U({is:"ytd-rich-grid-media",disableElementRegistration:!0})],$y);
var Hsk=_.$0()($y,"ytd-rich-grid-media",function(){if(pMq!==void 0)return pMq;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return pMq=l},{mode:_.Wf("kevlar_poly_si_batch_j072")?1:2});var c20;var WS=function(){var l=_.B.apply(this,arguments)||this;l.removeMaxWidth=!0;l.insetMetadata=!1;return l};
_.m(WS,_.B);_.X=WS.prototype;_.X.configureRendererStamper=function(){return{innerMenu:dr,outerMenu:Object.assign({},dr,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.onDataChanged=function(){var l,e=((l=this.data)==null?void 0:l.trackingParams)||"";e&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(e));var O;((O=this.dismissActionToReplayEntity)==null?0:O.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14007_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:this.JSC$14007_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:kFx})};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$14007_inlinePreviewHoverListener)==null||CN(l)};
_.X.onRendererTap=function(){var l,e,O=(l=this.data)==null?void 0:(e=l.serviceEndpoints)==null?void 0:e[0];_.I(O,_.Yx)&&this.componentBehavior.resolveCommand(O)};
_.X.onDetailsClick=function(l){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint;O&&(_.Eh(_.ey(l),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(O))};
_.X.onShow=function(){var l=this.data;l.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(l.onFirstVisibleCommand),delete l.onFirstVisibleCommand)};
_.Ji.Object.defineProperties(WS.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var l;return this.insetMetadata?void 0:(l=this.data)==null?void 0:l.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var l;return this.insetMetadata?(l=this.data)==null?void 0:l.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var l=this.data;if(l!=null&&l.badge&&(l=_.I(l.badge,Dk6))){var e,O,E;return[{metadataBadgeRenderer:{label:((e=l.label)==null?void 0:(O=e.runs)==null?void 0:O[0].text)||((E=l.label)==null?void 0:E.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var l=this.data;return Object.assign({},l.headline,{accessibility:l.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return this.isSlimShort?(l=this.computedTitle)==null?void 0:(e=l.accessibility)==null?void 0:(O=e.accessibilityData)==null?void 0:O.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.a("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$14007_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
WS.prototype.onDataChanged=WS.prototype.onDataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],WS.prototype,"componentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],WS.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.B8),_.q("design:type",Object)],WS.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],WS.prototype,"ytdReduxBehavior",void 0);_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],WS.prototype,"thumbnail",void 0);_.L([_.aB("#dismissible"),_.q("design:type",HTMLElement)],WS.prototype,"JSC$14007_dismissibleMedia",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],WS.prototype,"removeMaxWidth",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],WS.prototype,"insetMetadata",void 0);_.L([_.T(),_.q("design:type",String)],WS.prototype,"dismissedContentId",void 0);_.L([_.T({selectorArgs:["dismissedContentId"],selector:y9L}),_.q("design:type",Object)],WS.prototype,"dismissActionToReplayEntity",void 0);_.L([_.R("insetMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],WS.prototype,"thumbnailObjectFit",null);
_.L([_.R("data","insetMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],WS.prototype,"innerMenu",null);_.L([_.R("data","insetMetadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],WS.prototype,"outerMenu",null);_.L([_.T(),_.q("design:type",Object)],WS.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],WS.prototype,"miniMode",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WS.prototype,"onDataChanged",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],WS.prototype,"shortsBadges",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],WS.prototype,"isShort",null);
_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],WS.prototype,"isSlimShort",null);_.L([_.R("data","isShort"),_.q("design:type",Object),_.q("design:paramtypes",[])],WS.prototype,"computedTitle",null);_.L([_.R("isSlimShort","computedTitle"),_.q("design:type",Object),_.q("design:paramtypes",[])],WS.prototype,"computedAccessibilityLabel",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],WS.prototype,"shouldForce2By3",null);_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],WS.prototype,"isHovered",null);_.L([_.U({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],WS);
_.Y(WS,"ytd-rich-grid-slim-media",function(){if(c20!==void 0)return c20;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return c20=l},{mode:_.Wf("kevlar_poly_si_batch_j063")?1:2});var FNq;var f5q;var dF=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(dF,_.B);dF.prototype.computeIcon=function(l){return l&&l.iconType?"yt-sys-icons:"+l.iconType.toLowerCase():""};
dF.prototype.onMouseEnter=function(){this.isHovered=!0};
dF.prototype.onMouseLeave=function(){this.isHovered=!1};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],dF.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dF.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],dF.prototype,"isHovered",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dF.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],dF);
_.Y(dF,"ytd-expand-on-hover-card-renderer",function(){if(f5q!==void 0)return f5q;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return f5q=l},{mode:1});var RZk,Tm1=function(){if(RZk!==void 0)return RZk;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return RZk=l};_.Y7("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var gF=function(){var l=_.B.apply(this,arguments)||this;l.compactStyle=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(gF,_.B);_.X=gF.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.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"}}}};
_.X.computeHideDot=function(l){return!(l&&l.subscriberCountText&&l.videoCountText)||this.compactStyle};
_.X.hasDualButtons=function(l){return l&&l.purchaseButton&&l.subscribeButton};
_.X.backgroundColorChanged=function(){if(this.data!==void 0){var l=this.data.backgroundColor;this.isDarkTheme&&(l=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=l!=null?_.t$(l):"transparent"}};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.onTap=function(l){var e,O,E=((e=this.data)==null?void 0:e.navigationEndpoint)||((O=this.data)==null?void 0:O.serviceEndpoint);_.I(E,_.o9)&&(E&&_.V2().resolve(_.Zh).resolveCommand(E,{form:{element:this.hostElement}}),l.preventDefault())};
_.X.computeChannelEndpoint=function(l){return _.I(l,_.o9)?null:l};
_.X.computeHrefEndpoint=function(l){return _.I(l,_.o9)?null:this.componentBehavior.computeHref_(l)};
_.X.computeChannelRendererStyle=function(l){return l};
_.X.computeIconSize=function(l){return l?108:136};
_.Ji.Object.defineProperties(gF,{template:{configurable:!0,enumerable:!0,get:function(){return Tm1()}}});
gF.prototype.backgroundColorChanged=gF.prototype.backgroundColorChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],gF.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],gF.prototype,"componentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],gF.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],gF.prototype,"isDarkTheme",void 0);_.L([_.T({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.q("design:type",String)],gF.prototype,"channelRendererStyle",void 0);_.L([_.T({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],gF.prototype,"dualButtons",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],gF.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],gF.prototype,"biggerThumbStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],gF.prototype,"compactStyle",void 0);_.L([_.AA("data","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gF.prototype,"backgroundColorChanged",null);_.L([_.U({is:"ytd-channel-renderer",disableElementRegistration:!0})],gF);_.Y(gF,"ytd-channel-renderer",function(){return Tm1()},{mode:1});var sE6;var GX0;_.Y7("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var ix=function(){var l=_.B.apply(this,arguments)||this;l.displayItemCount=2;l.collections=_.a("web_modern_collections_v2");l.hasPlaylistThumbnail=!1;l.stackThumbnailSize="large";return l};
_.m(ix,_.B);_.X=ix.prototype;_.X.attached=function(){this.updateInlinePreviewHoverListeners()};
_.X.detached=function(){this.clearInlinePreviewHoverListeners()};
_.X.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.X.computeFirstVideos=function(l,e){return l&&e?l.slice(0,e):[]};
_.X.computeThumbnailWidth=function(l,e){return l?e==="BIG"?500:e==="MASSIVE"?600:e==="MEDIUM"?450:420:360};
_.X.computeThumbnailHeight=function(l,e){return l?e==="BIG"?280:e==="MASSIVE"?337:234:202};
_.X.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$14020_inlinePreviewHoverListener)==null||CN(l)};
_.X.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14020_inlinePreviewHoverListener=eA({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:aQ1,thumbnailElement:this.thumbnail})};
_.X.computeHasPlaylistThumbnail=function(l){var e,O;if((((e=l.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((O=l.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer))&&l.thumbnailOverlays)for(e=0;e<l.thumbnailOverlays.length;e++)if(O=void 0,(O=l.thumbnailOverlays[e])==null?0:O.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Ji.Object.defineProperties(ix.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$14020_inlinePreviewHoverListener)==null?0:TD(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ix.prototype.dataChanged=ix.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],ix.prototype,"ytdLockupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ix.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],ix.prototype,"displayItemCount",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],ix.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],ix.prototype,"biggerThumbsStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ix.prototype,"collections",void 0);_.L([_.T({computed:"computeHasPlaylistThumbnail(data)"}),_.q("design:type",Object)],ix.prototype,"hasPlaylistThumbnail",void 0);_.L([_.T(),_.q("design:type",String)],ix.prototype,"stackThumbnailSize",void 0);_.L([_.aB("ytd-thumbnail"),_.q("design:type",HTMLElement)],ix.prototype,"thumbnail",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ix.prototype,"dataChanged",null);_.L([_.R("lockupIsHovered"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ix.prototype,"isHovered",null);_.L([_.U({is:"ytd-radio-renderer",disableElementRegistration:!0})],ix);
_.Y(ix,"ytd-radio-renderer",function(){if(GX0!==void 0)return GX0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GX0=l},{mode:_.Wf("kevlar_poly_si_batch_j058")?1:2});var BmH;_.Y7("itemSectionRenderer","showRenderer","ytd-show-renderer");var wF=function(){return _.B.apply(this,arguments)||this};
_.m(wF,_.B);wF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wF.prototype.computeThumbnailWidth=function(l){return l?360:246};
wF.prototype.computeUseProminentThumbs=function(l){return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wF.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],wF.prototype,"isSearch",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.q("design:type",Boolean)],wF.prototype,"useProminentThumbs",void 0);_.L([_.U({is:"ytd-show-renderer",disableElementRegistration:!0})],wF);
_.Y(wF,"ytd-show-renderer",function(){if(BmH!==void 0)return BmH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BmH=l},{mode:1});_.Y7("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Ao=function(){var l=_.B.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.m(Ao,_.B);Ao.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"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ao.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ao.prototype,"isRichGrid",void 0);_.L([_.U({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Ao);
_.Y(Ao,"ytd-feed-entry-renderer",function(){if(sE6!==void 0)return sE6;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return sE6=l},{mode:1});var PRS;var nG=function(){return _.B.apply(this,arguments)||this};
_.m(nG,_.B);nG.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.L([_.K(_.sY),_.q("design:type",Object)],nG.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],nG.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Bt,value:3}),_.q("design:type",Number)],nG.prototype,"itemsPerRow",void 0);
_.L([_.U({is:"ytd-link-card-renderer",disableElementRegistration:!0})],nG);
_.Y(nG,"ytd-link-card-renderer",function(){if(PRS!==void 0)return PRS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return PRS=l},{mode:1});var Unk;var a$=function(){return _.B.apply(this,arguments)||this};
_.m(a$,_.B);_.X=a$.prototype;_.X.configureRendererStamper=function(){return{"data.menu":dr,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.X.onRendererTap=function(l){if(!this.ytdDismissibleItemBehavior.isDismissed){var e,O=(e=this.data)==null?void 0:e.navigationEndpoint;O&&!_.Eh(_.ey(l),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(O)?_.Eh(_.ey(l),this.hostElement,["A"])||_.$u(this.hostElement,"yt-navigate",{endpoint:O}):this.ytComponentBehavior.resolveCommand(O,{}))}};
_.X.maybeComputeHref=function(l){return this.ytComponentBehavior.computeHref_(l,!0)};
_.X.getNavigationCommand=function(l){return this.isNavigationCommand(l)?l:null};
_.X.isNavigationCommand=function(l){return l?_.I(l,_.ms)||_.I(l,_.ej)||_.I(l,_.Db)?!0:!1:!1};
a$.prototype.onRendererTap=a$.prototype.onRendererTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],a$.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],a$.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],a$.prototype,"data",void 0);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],a$.prototype,"onRendererTap",null);_.L([_.U({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],a$);
_.Y(a$,"ytd-lumiere-promo-item-image-renderer",function(){if(Unk!==void 0)return Unk;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Unk=l},{mode:1});var YQH;var ky=function(){return _.B.apply(this,arguments)||this};
_.m(ky,_.B);ky.prototype.computeLandscapeThumbnail=function(){var l;return((l=this.data)==null?void 0:l.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ky.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ky.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],ky.prototype,"miniMode",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Bt}),_.q("design:type",Number)],ky.prototype,"itemsPerRow",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.q("design:type",Boolean)],ky.prototype,"landscapeThumbnail",void 0);_.L([_.U({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ky);
_.Y(ky,"ytd-lumiere-shelf-details-renderer",function(){if(YQH!==void 0)return YQH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YQH=l},{mode:_.Wf("kevlar_poly_si_batch_j076")?1:2});var hZ1;var I$=function(){return _.B.apply(this,arguments)||this};
_.m(I$,_.B);I$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],I$.prototype,"data",void 0);_.L([_.U({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],I$);
_.Y(I$,"ytd-primetime-promo-details-renderer",function(){if(hZ1!==void 0)return hZ1;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return hZ1=l},{mode:1});var LNq;var mL=function(){return _.B.apply(this,arguments)||this};
_.m(mL,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mL.prototype,"data",void 0);_.L([_.U({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],mL);
_.Y(mL,"ytd-panel-show-style-metadata-renderer",function(){if(LNq!==void 0)return LNq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return LNq=l},{mode:1});var thF;var y1=function(){return _.B.apply(this,arguments)||this};
_.m(y1,_.B);_.X=y1.prototype;_.X.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.X.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.X.computeThumbnail=function(l){if(l)return l.smallFormFactorBackgroundThumbnail||l.largeFormFactorBackgroundThumbnail};
_.X.maybeComputeHref=function(l){return this.ytComponentBehavior.computeHref_(l,!0)};
_.X.isNavigationCommand=function(l){return l?_.I(l,_.ms)||_.I(l,_.ej)||_.I(l,_.Db)?!0:!1:!1};
_.X.getNavigationCommand=function(l){return this.isNavigationCommand(l)?l:null};
y1.prototype.onPanelTap=y1.prototype.onPanelTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],y1.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],y1.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],y1.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0,value:_.a("web_modern_buttons")}),_.q("design:type",Boolean)],y1.prototype,"modernButtons",void 0);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],y1.prototype,"onPanelTap",null);_.L([_.U({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],y1);
_.Y(y1,"ytd-primetime-promo-panel-renderer",function(){if(thF!==void 0)return thF;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return thF=l},{mode:1});_.Zw(_.XO(function(l){l=_.J3(l,{data:{},useFullWidth:!1});var e=l.data,O=l.useFullWidth,E=function(){return e().caption},J=function(){return e().image},z=function(){return _.t3(e().onTap)};
l={};l=_.ax("ytTeaserCardViewModelHost",(l.ytTeaserCardViewModelUseFullWidth=function(){return O()},l));
return _.W("teaser-card-view-model",{class:l},_.W(_.A,{cond:function(){return z()},
then:function(){return _.W(MX1,{className:"ytTeaserCardViewModelLink",command:z,forceNewState:!0,useATagConfig:!0},_.W("div",{class:"ytTeaserCardViewModelImageContainer"},_.W(_.A,{cond:J,then:function(M){return _.W(_.Jm,{data:M,className:"ytTeaserCardViewModelImage",alt:""})}})),_.W("p",{class:"ytTeaserCardViewModelCaption"},E))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.lB,
useFullWidth:_.lB}});var qQH=new _.Xa("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Zw(_.XO(function(l){var e=l.data;var O=l.showYtInteractionInContent;var E=function(){return!!e().selectableFeedback};
l=_.b(_.AF(!1,void 0,"nblDw"));var J=l.next().value,z=l.next().value;_.sC(function(){var n=_.I(e().primaryButton,_.ci);(n==null?0:n.isToggled)&&z(n.isToggled)});
l=_.pd(function(n){if(!E())return!1;if(J()){var k;var y=(k=e().selectableFeedback)==null?void 0:k.onDeselect}else{var c;y=(c=e().selectableFeedback)==null?void 0:c.onSelect}y&&_.r6(y,{form:{element:n.target}});z(!J());if(n=_.I(e().primaryButton,_.ci))n.isToggled=J();return!1});
var M=function(){if(!E()){var n,k=(n=e().loggingDirectives)==null?void 0:n.trackingParams;k&&_.gn(_.V2().resolve(_.Hu),k)}},Z=_.OtA(),u=function(){var n;
return E()?(n=e().selectableFeedback)==null?void 0:n.a11yLabel:void 0},d=function(){return E()?{toggled:J()}:{}},g=_.V2().resolve(_.MG(qQH)),w={};
return _.W("yt-feedback-item-renderer",{class:_.ax("ytFeedbackItemRendererHost",(w.ytFeedbackItemRendererSelectableFeedback=E,w)),"on:click":l,"on:keydown":Z,title:u,"aria-label":u,"aria-pressed":function(){return E()?J():void 0},
tabindex:function(){return E()?0:void 0},
role:function(){return E()?"button":void 0}},_.W("div",{class:"ytFeedbackItemRendererContentContainer"},_.W(_.Tn,{data:function(){return e().content}},{videoRenderer:function(n){return _.W(g,{data:n.data,
showYtInteraction:O})},
lockupViewModel:function(n){return _.W(_.Cw,{data:n.data,containerType:2})}})),_.W("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.W(_.Tn,{data:function(){return e().primaryButton}},{toggleButtonViewModel:function(n){return _.W(_.sh,{data:n.data,
buttonShapeOverrides:d,disableExplicitClickLogging:!0,onToggle:M})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.lB,
showYtInteractionInContent:_.lB}});var pG=function(){var l=_.B.apply(this,arguments)||this;l.isShortsGrid=!1;l.isCompactGrid=!1;l.isShortsPanelGrid=!1;l.renderedFromRichGrid=!1;l.isInFirstColumn=!1;l.noGutterMargins=!1;l.isInlineGroupItem=!1;l.insetMetadata=!1;l.noBottomMarginInAds=_.a("web_no_bottom_margin_for_home_ad_buttons");l.force16By9ThumbnailAspectRatio=!1;l.useCompactList=!1;l.containerType=2;l.thumbnailTargetWidth=9999;l.isResponsiveGrid=!1;l.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};l.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};l.hoverListener=l.hover.bind(l);l.leaveListener=l.leave.bind(l);l.highlighted=!1;l.JSC$14055_unsubscribeFromInlinePreviewIsActive=function(){};
return l};
_.m(pG,_.B);_.X=pG.prototype;_.X.computeContainerType=function(){return this.useCompactList?3:2};
_.X.computeThumbnailTargetWidth=function(){var l;return(l=this.itemWidth)!=null?l:9999};
_.X.updateIsInFirstColumn=function(){var l;this.isInFirstColumn=((l=this.data)==null?void 0:l.colIndex)===0};
_.X.observerContainerType=function(){if(this.lockup){var l=this.lockup;l.containerType=this.containerType;l.sizing=this.sizing;l.typographyBump=this.typographyBump;l.itemWidth=this.itemWidth}this.richGridMedia&&_.a("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.a("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.X.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.X.leave=function(l){l=l.relatedTarget;var e=document.querySelector("ytd-video-preview");l&&e&&_.C1(e).contains(l)||this.removeAndCleanupHighlight()};
_.X.hover=function(){var l;if(!this.highlighted&&(!_.a("web_enable_rich_item_on_focus_effect")||(l=this.data)!=null&&l.onFocusEffect)){var e,O;((e=this.data)==null?void 0:(O=e.onFocusEffect)==null?void 0:O.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(l=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:l,boxShadow:"0 0 0 10px "+l}));var E,J;((E=this.data)==null?void 0:(J=E.onFocusEffect)==null?void 0:
J.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.X.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};
_.X.registerHoverHighlightListeners=function(){var l=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14055_unsubscribeFromInlinePreviewIsActive=_.kw(_.Om(),_.oU8,function(e){l.highlighted&&!e&&l.removeAndCleanupHighlight()})};
_.X.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14055_unsubscribeFromInlinePreviewIsActive()};
_.X.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.X.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.X.getBackgroundColor=function(){var l,e,O=(l=this.data)==null?void 0:(e=l.onFocusEffect)==null?void 0:e.onFocusColor;if(O){if(document.documentElement.hasAttribute("dark")&&(O==null?0:O.darkTheme))return _.t$(O==null?void 0:O.darkTheme);if(O==null?0:O.lightTheme)return _.t$(O==null?void 0:O.lightTheme)}};
_.X.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var l=_.P9(),e,O,E;l&&((e=this.data)==null?0:e.trackingParams)&&((O=this.data)==null?void 0:O.colIndex)!=null&&((E=this.data)==null?void 0:E.rowIndex)!=null&&_.JY(l,_.cf(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.X.isSlimMediaRenderer=function(l){return!!_.I(l==null?void 0:l.content,_.y66)||!!_.I(l==null?void 0:l.content,mDk)||!!_.I(l==null?void 0:l.content,_.U1)||!!_.I(l==null?void 0:l.content,v3C)};
_.X.isPostRenderer=function(){var l,e;return!!_.I((l=this.data)==null?void 0:l.content,fLF)||!!_.I((e=this.data)==null?void 0:e.content,RhF)};
_.X.computeIsGameCardShelf=function(){var l;return!!_.I((l=this.data)==null?void 0:l.content,R9R)};
_.X.computeIsMiniGameCardShelf=function(){var l,e;return!!_.I((l=this.data)==null?void 0:l.content,DCk)||!!_.I((e=this.data)==null?void 0:e.content,S8i)};
_.X.computeIsTeaserCard=function(){var l;return!!_.I((l=this.data)==null?void 0:l.content,S8i)};
_.X.computeIsSelectableFeedbackItem=function(){var l,e;return!((e=_.I((l=this.data)==null?void 0:l.content,_.xCq))==null||!e.selectableFeedback)};
_.X.computeContainsLumierePosters=function(){var l,e;return((e=_.I((l=this.data)==null?void 0:l.content,tdH))==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.X.computeIsExpandOnHoverCardShelf=function(){var l;return!!_.I((l=this.data)==null?void 0:l.content,LCx)};
_.X.computeIsLinkCardShelf=function(){var l;return!!_.I((l=this.data)==null?void 0:l.content,l1q)};
_.X.computeIsReelItemStyleAvatarCircle=function(l){var e;return((e=_.I(l==null?void 0:l.content,_.U1))==null?void 0:e.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.X.computeIsLinkCardFullWidth=function(l,e){var O;return((O=_.I(l==null?void 0:l.content,l1q))==null?void 0:O.useFullWidth)||e<=2};
_.Ji.Object.defineProperties(pG.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.a("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.a("web_enable_rich_item_on_focus_effect")||_.a("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}}});
pG.prototype.richGridHoverHighlightChanged=pG.prototype.richGridHoverHighlightChanged;pG.prototype.observerContainerType=pG.prototype.observerContainerType;pG.prototype.updateIsInFirstColumn=pG.prototype.updateIsInFirstColumn;_.L([_.K(_.sY),_.q("design:type",Object)],pG.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],pG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],pG.prototype,"ytdLockupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.q("design:type",Boolean)],pG.prototype,"isPost",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.q("design:type",Boolean)],pG.prototype,"containsLumierePosters",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.q("design:type",Boolean)],pG.prototype,"isSlimMedia",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.q("design:type",Boolean)],pG.prototype,"isGameCardShelf",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.q("design:type",Boolean)],pG.prototype,"isMiniGameCardShelf",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.q("design:type",Boolean)],pG.prototype,"isTeaserCard",void 0);_.L([_.T({computed:"computeIsSelectableFeedbackItem(data)"}),_.q("design:type",Boolean)],pG.prototype,"isSelectableFeedbackItem",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"isShortsGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],pG.prototype,"isSlimGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"isCompactGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"isShortsPanelGrid",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.q("design:type",Boolean)],pG.prototype,"isExpandOnHoverCardShelf",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.q("design:type",Boolean)],pG.prototype,"isLinkCardShelf",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Bt,value:3}),_.q("design:type",Number)],pG.prototype,"itemsPerRow",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"renderedFromRichGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"isInFirstColumn",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"noGutterMargins",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"isInlineGroupItem",void 0);_.L([_.T(),_.q("design:type",Object)],pG.prototype,"insetMetadata",void 0);
_.L([_.T(),_.q("design:type",Object)],pG.prototype,"noBottomMarginInAds",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],pG.prototype,"isShelfItem",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.q("design:type",Boolean)],pG.prototype,"isReelItemStyleAvatarCircle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.q("design:type",Boolean)],pG.prototype,"isLinkCardFullWidth",void 0);
_.L([_.T(),_.q("design:type",Object)],pG.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"useCompactList",void 0);_.L([_.T(),_.q("design:type",String)],pG.prototype,"sizing",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],pG.prototype,"typographyBump",void 0);_.L([_.T(),_.q("design:type",Number)],pG.prototype,"itemWidth",void 0);_.L([_.T(),_.q("design:type",Boolean)],pG.prototype,"isHomeShelf",void 0);
_.L([_.T(),_.q("design:type",Boolean)],pG.prototype,"isHomeGrid",void 0);_.L([_.aB("yt-lockup-view-model"),_.q("design:type",HTMLElement)],pG.prototype,"lockup",void 0);_.L([_.aB("ytd-rich-grid-media"),_.q("design:type",HTMLElement)],pG.prototype,"richGridMedia",void 0);_.L([_.aB("ytd-ad-slot-renderer"),_.q("design:type",HTMLElement)],pG.prototype,"adSlotRenderer",void 0);_.L([_.T({computed:"computeContainerType(useCompactList)"}),_.q("design:type",Object)],pG.prototype,"containerType",void 0);
_.L([_.T({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.q("design:type",Object)],pG.prototype,"thumbnailTargetWidth",void 0);_.L([_.R("showYtInteractionOnRichItem"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pG.prototype,"showYtInteractionOnRichGridMedia",null);_.L([_.R("isSelectableFeedbackItem","richGridHoverHighlight"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pG.prototype,"showYtInteractionOnRichItem",null);
_.L([_.R("typographyBump","isHomeGrid"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pG.prototype,"richTypographyBump",null);_.L([_.T({reflectToAttribute:!0}),_.R("isShortsGrid","isCompactGrid"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],pG.prototype,"richGridHoverHighlight",null);_.L([_.R("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.q("design:type",Number),_.q("design:paramtypes",[])],pG.prototype,"shortsLockupViewModelAspectRatio",null);
_.L([_.R("isInlineGroupItem"),_.q("design:type",Number),_.q("design:paramtypes",[])],pG.prototype,"shortsLockupViewModelScrimStyle",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pG.prototype,"updateIsInFirstColumn",null);_.L([_.AA("containerType","sizing","typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pG.prototype,"observerContainerType",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pG.prototype,"isResponsiveGrid",void 0);_.L([_.T(),_.q("design:type",Object)],pG.prototype,"lockupExperiments",void 0);_.L([_.AA("richGridHoverHighlight"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pG.prototype,"richGridHoverHighlightChanged",null);_.L([_.U({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],pG);
_.vi1=_.$0()(pG,"ytd-rich-item-renderer",function(){if(FNq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);FNq=l}l=FNq;return l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var TzT={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Ld2=_.xp(_.ml("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var NmR;var KG=function(){var l=_.B.apply(this,arguments)||this;l.useResponsiveGrid=!1;l.hidden=!1;l.standardShelfMargins=_.a("web_rich_grid_standard_shelf_margins");l.isShowMoreHidden=!1;l.isExpanded=!1;l.isInnerShelf=!1;l.allVideosCount=0;l.allPlaylistCount=0;l.haveSmartDownloadsCompleted=!1;l.isShowLessHidden=!0;l.restrictContentsOverflow=!1;l.firstShownIndex=0;l.horizontalOffset=0;l.atEnd=!0;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};l.nextClick=function(){var e;(e=l.data)!=null&&e.contents&&(l.firstShownIndex+=l.currentElementsPerRow,l.updateHorizontalOffset(),l.updateHorizontalItemVisibility())};
l.previousClick=function(){var e;(e=l.data)!=null&&e.contents&&(l.firstShownIndex-=l.currentElementsPerRow,l.updateHorizontalOffset(),l.updateHorizontalItemVisibility())};
return l};
_.m(KG,_.B);_.X=KG.prototype;
_.X.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.hT("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.X.attached=function(){this.requestElementsPerRow()};
_.X.refreshGridLayoutNew=function(){var l;if((l=this.data)!=null&&l.contents&&this.containerWidth){var e;((e=this.data.responsiveContainerConfiguration)==null?0:e.responsiveSize)?(l=_.v2d(this.data.responsiveContainerConfiguration,this.containerWidth),l=_.E6(Object.assign({},l,{standardUnitMinWidth:this.standardUnitMinWidth}))):l=_.E6({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=l.typographyBump;if(this.elementsPerRow!==
l.numItems||this.gutter!==l.gutter)this.elementsPerRow=l.numItems,this.gutter=l.gutter,this.itemWidth=l.itemWidth,_.dP(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":l.gutter+"px"})}};
_.X.computeSizing=function(){if(!this.isLumiere){var l=_.bjT(this.data);if(l)return l;if(_.a("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.X.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.X.computeButton=function(l){var e=_.I(l,_.YU);l=Object.assign({},_.I(l,_.YU));return e?(l.text||(l.text={simpleText:l.tooltip}),l.style="STYLE_MONO_OUTLINE",l.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",l):e};
_.X.onRowIndexChange=function(){var l=_.P9(),e,O;((e=this.data)==null?0:e.trackingParams)&&((O=this.data)==null?void 0:O.rowIndex)!=null&&l&&_.JY(l,_.cf(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.X.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var l,e=((l=this.getRichItemRenderers()[0])==null?void 0:l.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*e;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
_.X.onUpdateElementsPerRowAction=function(l,e,O,E,J,z){if(this.containerWidth!==z&&(this.containerWidth=z,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&l&&e&&O&&E&&J&&(this.elementsPerRow!==l||this.postsPerRow!==e||this.slimItemsPerRow!==O||this.gameCardsPerRow!==E||this.miniGameCardsPerRow!==J)&&(this.elementsPerRow=l,this.postsPerRow=e,this.slimItemsPerRow=O,this.gameCardsPerRow=E,this.miniGameCardsPerRow=J,this.updateItemVisibility())};
_.X.getRichItemRenderers=function(){return _.ud(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.X.updateItemVisibility=function(){var l=this;if(this.data&&this.data.contents){var e=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(E,J){var z;((z=l.data)==null?0:z.isExpanded)?(E.hidden=J>e-1,E.ytRendererBehavior.markDirty()):E.hidden=J>l.currentElementsPerRow-1||J>e-1});
var O=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||O||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||O||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.X.setHeightToSingleRow=function(){var l=this.getRichItemRenderers(),e=Number.parseInt(getComputedStyle(l[0]).marginBottom,10)||0;l=l.slice(0,this.currentElementsPerRow).reduce(function(O,E){return Math.max(O,E.getBoundingClientRect().height+e)},0);
this.contents.style.height=l+"px"};
_.X.focusNextExpandedItem=function(){var l;((l=this.data)==null?0:l.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.X.focusItem=function(l,e){var O=this.getRichItemRenderers();if(O[l]&&(l=O[l].querySelector(".focus-on-expand"))){if(e){var E;(E=O[this.currentElementsPerRow])==null||E.scrollIntoView({behavior:"smooth",block:"center"})}l.focus({preventScroll:!0})}};
_.X.onDataChange=function(){var l=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var e;if((e=this.data)==null?0:e.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.OK(this,function(){l.updateItemVisibility()});
var O;if((O=this.data)==null?0:O.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.dP(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),e=0;e<this.data.contents.length;e++)O=_.I(this.data.contents[e],_.R6)||{},O.colIndex=e,O.rowIndex=this.data.rowIndex};
_.X.handleRerenderDownloadsData=function(){_.a("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())};
_.X.blockInlinePreview=function(l){var e=this,O;return _.V(function(E){(O=e.inlinePreviewIsEnabled)&&e.ytdReduxBehavior.dispatch(_.GEq(!1));return E.return(new Promise(function(J){l(function(){O&&e.ytdReduxBehavior.dispatch(_.GEq(!0));J()})}))})};
_.X.expandShelf=function(){var l=this;if(this.data){var e,O=(e=_.I(this.data.showMoreButton,_.YU))==null?void 0:e.trackingParams;O&&_.gn(_.yN(),O);this.data.isExpanded=!0;this.blockInlinePreview(function(E){l.setHeightToSingleRow();l.updateItemVisibility();l.contents.style.height=l.contents.scrollHeight+"px";_.UD.addJob(function(){l.contents.style.height="auto";l.focusNextExpandedItem();E()},2,200)})}};
_.X.collapseShelf=function(){var l=this;return _.V(function(e){if(e.nextAddress==1){if(!l.data)return e.return();l.data.isExpanded=!1;return _.C(e,l.blockInlinePreview(function(O){l.contents.style.height=l.contents.scrollHeight+"px";l.setHeightToSingleRow();_.UD.addJob(function(){l.updateItemVisibility();l.contents.style.height="auto";O()},2,200)}),2)}_.$u(l.hostElement,"yt-rich-shelf-renderer-collapse",l.data.trackingParams);
l.focusItem(0,!1);_.Cl(e)})};
_.X.updateArrowButtonStatus=function(){var l=this.getRichItemRenderers().length;if(!_.a("web_rich_shelf_renderer_use_data_contents_killswitch")){var e,O;l=((e=this.data)==null?void 0:(O=e.contents)==null?void 0:O.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=l};
_.X.onChildElementFocus=function(l){this.hasChevronButtons&&(l=l.target.closest("#contents > *"),this.contents.contains(l)&&(l.offsetLeft<this.horizontalOffset?this.previousClick():l.offsetLeft+l.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.X.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.hT("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.X.updateHorizontalOffset=function(){var l=this.getRichItemRenderers(),e=l.length;if(!_.a("web_rich_shelf_renderer_use_data_contents_killswitch")){var O,E;e=((O=this.data)==null?void 0:(E=O.contents)==null?void 0:E.length)||0}var J;l=((J=l[0])==null?void 0:J.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>e?this.firstShownIndex=e-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*l};
_.X.isSlimMediaShelfRenderer=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!!(_.I(E,_.y66)||_.I(E,mDk)||_.I(E,_.U1)||_.I(E,v3C))};
_.X.isGameCardShelf=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!!_.I(E,R9R)};
_.X.isGnomeShelf=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!!_.I(E,_.xCq)};
_.X.isMiniGameCardShelf=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!!_.I(E,DCk)||!!_.I(E,S8i)};
_.X.hasGameBoxArtAvatarStyle=function(){var l;return((l=this.data)==null?void 0:l.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.X.hasRoundedGameBoxArtAvatarStyle=function(){var l;return((l=this.data)==null?void 0:l.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.X.isShortsShelf=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!!_.I(E,_.U1)||!!_.I(E,v3C)};
_.X.isPostShelfRenderer=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!(!_.I(E,fLF)&&!_.I(E,RhF))};
_.X.isLumiereShelf=function(){var l,e,O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6);return!!_.I(O==null?void 0:O.content,tdH)};
_.X.isLumiereShelfWithPosters=function(){var l,e,O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6),E;return((E=_.I(O==null?void 0:O.content,tdH))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.X.isExpandOnHoverCardShelf=function(){var l,e,O,E=(O=_.I((l=this.data)==null?void 0:(e=l.contents)==null?void 0:e[0],_.R6))==null?void 0:O.content;return!!_.I(E,LCx)};
_.X.computeHasFeaturedBadge=function(){var l,e,O=_.I((l=this.data)==null?void 0:(e=l.badges)==null?void 0:e[0],_.x3S);return O?O.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.X.computeHasPaygatedFeaturedBadge=function(){var l,e,O=_.I((l=this.data)==null?void 0:(e=l.badges)==null?void 0:e[0],_.x3S);return O?(O==null?void 0:O.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.X.computeHeaderHidden=function(){var l,e,O,E,J,z;return!((l=this.data)==null?0:l.icon)&&!((e=this.data)==null?0:e.title)&&!((O=this.data)==null?0:O.subtitle)&&!((E=this.data)==null?0:E.thumbnail)&&!((J=this.data)==null?0:J.badges)&&!((z=this.data)==null?0:z.menu)};
_.X.showCtaButton=function(){var l;return!((l=this.data)==null||!l.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.X.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.X.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.X.computeForce16By9ThumbnailAspectRatio=function(){var l,e;return((l=this.data)==null?void 0:(e=l.responsiveContainerConfiguration)==null?void 0:e.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.X.onSectionReactiveDismissal=function(l,e,O){var E,J;var z=(E=this.data)==null?void 0:(J=E.targetingContext)==null?void 0:J.targetGroupId;this&&z&&e.targetGroupId&&z.includes(e.targetGroupId)?(E=this.rowIndex,l=E===void 0?!1:!(e.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&E<=l)):l=!1;l&&(this.hidden=O)};
_.Ji.Object.defineProperties(KG.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var l=this.elementsPerRow;this.isPostShelfRenderer()?l=this.postsPerRow:this.isSlimMediaShelfRenderer()?l=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?l=this.slimItemsPerRow-1:this.isGameCardShelf()?l=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(l=this.miniGameCardsPerRow);return l}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.a("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.previousButton)&&!((e=this.data)==null||!e.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var l;return((l=_.V2().resolve(_.XZ).getCurrentPage())==null?void 0:l.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return!((l=this.data)==null?0:(e=l.thumbnail)==null?0:(O=e.accessibility)==null?0:(E=O.accessibilityData)==null?0:E.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
KG.prototype.onChildElementFocus=KG.prototype.onChildElementFocus;KG.prototype.handleRerenderDownloadsData=KG.prototype.handleRerenderDownloadsData;KG.prototype.onDataChange=KG.prototype.onDataChange;KG.prototype.onRowIndexChange=KG.prototype.onRowIndexChange;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.B8),_.q("design:type",Object)],KG.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],KG.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],KG.prototype,"ytdReduxBehavior",void 0);_.L([_.T({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.q("design:type",Object)],KG.prototype,"useResponsiveGrid",void 0);_.L([_.T(),_.q("design:type",Object)],KG.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Number)],KG.prototype,"standardUnitMinWidth",void 0);_.L([_.T({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],KG.prototype,"elementsPerRow",void 0);_.L([_.T({value:3}),_.q("design:type",Number)],KG.prototype,"postsPerRow",void 0);_.L([_.T({value:6}),_.q("design:type",Number)],KG.prototype,"slimItemsPerRow",void 0);_.L([_.T({value:6}),_.q("design:type",Number)],KG.prototype,"gameCardsPerRow",void 0);
_.L([_.T({value:6}),_.q("design:type",Number)],KG.prototype,"miniGameCardsPerRow",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"hidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"standardShelfMargins",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"isShowMoreHidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"isExpanded",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"isInnerShelf",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.q("design:type",Boolean)],KG.prototype,"isShorts",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.q("design:type",Boolean)],KG.prototype,"isLumiere",void 0);_.L([_.T({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.q("design:type",Boolean)],KG.prototype,"hasBoxArtThumbnailStyle",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.q("design:type",Boolean)],KG.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.q("design:type",Boolean)],KG.prototype,"hasFeaturedBadge",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.q("design:type",Boolean)],KG.prototype,"hasPaygatedFeaturedBadge",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.q("design:type",Boolean)],KG.prototype,"isHeaderHidden",void 0);_.L([_.T({selector:_.AKT}),_.q("design:type",Object)],KG.prototype,"allVideosCount",void 0);_.L([_.T({selector:q2d}),_.q("design:type",Object)],KG.prototype,"allPlaylistCount",void 0);_.L([_.T({selector:Hpq}),_.q("design:type",Object)],KG.prototype,"haveSmartDownloadsCompleted",void 0);
_.L([_.T({selectorArgs:["entitySelectorType"],selector:function(l,e){if(_.a("kevlar_modern_downloads_page")&&e&&e!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var O=l.entities;switch(e){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":e=_.RM(O);l=GK(e);var E=_.jo(e);O=_.sn(O);O=_.Zr(Gdx(E,O,e.length));return{contents:l,subtitle:O};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return O=_.RM(O),{contents:GK(O)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return O=
_.T4(O),{contents:GK(O)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return O=_.QTu(O),{contents:GK(O)};default:_.hG(new _.Hk("Error: entitySelectorType defined but not matched in selector.",l,e))}}}}),
_.q("design:type",Object)],KG.prototype,"entityDrivenRichShelfData",void 0);_.L([_.T({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.q("design:type",Boolean)],KG.prototype,"hasTopCtaButton",void 0);_.L([_.T({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.q("design:type",Boolean)],KG.prototype,"hasBottomCtaButton",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.q("design:type",Boolean)],KG.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"isShowLessHidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KG.prototype,"restrictContentsOverflow",void 0);_.L([_.T({selector:_.$Sd}),_.q("design:type",Boolean)],KG.prototype,"inlinePreviewIsEnabled",void 0);
_.L([_.T({computed:"computeSizing(data)"}),_.q("design:type",String)],KG.prototype,"sizing",void 0);_.L([_.T(),_.q("design:type",Boolean)],KG.prototype,"typographyBump",void 0);_.L([_.T(),_.q("design:type",Number)],KG.prototype,"itemWidth",void 0);_.L([_.T(),_.q("design:type",Object)],KG.prototype,"firstShownIndex",void 0);_.L([_.T(),_.q("design:type",Object)],KG.prototype,"horizontalOffset",void 0);_.L([_.T(),_.q("design:type",Object)],KG.prototype,"atEnd",void 0);
_.L([_.aB("#contents"),_.q("design:type",HTMLElement)],KG.prototype,"contents",void 0);_.L([_.AA("data.rowIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KG.prototype,"onRowIndexChange",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KG.prototype,"onDataChange",null);
_.L([_.AA("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KG.prototype,"handleRerenderDownloadsData",null);_.L([_.wP("focusin"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],KG.prototype,"onChildElementFocus",null);_.L([_.T({reflectToAttribute:!0}),_.R("data","isHomePage"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],KG.prototype,"isTruncated",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],KG.prototype,"hideBottomDivider",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],KG.prototype,"hasChevronButtons",null);_.L([_.R("firstShownIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],KG.prototype,"previousButtonOverride",null);
_.L([_.R("atEnd"),_.q("design:type",Object),_.q("design:paramtypes",[])],KG.prototype,"nextButtonOverride",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],KG.prototype,"isHomePage",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],KG.prototype,"thumbnailAriaHidden",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],KG.prototype,"initiallyIsExpanded",null);
_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],KG.prototype,"entitySelectorType",null);_.L([_.U({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],KG);
_.r2q=_.$0()(KG,"ytd-rich-shelf-renderer",function(){if(NmR===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);NmR=l}l=NmR;return l},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var DnF;_.Zw(yjH,"yt-slimline-survey-view-model",{props:{data:_.lB}});var ji=function(){var l=_.B.apply(this,arguments)||this;l.tileLottieAnimationRef={};l.backgroundLottieAnimationRef={};l.isOnHoverBehaviorForLottieEnabled=!0;l.useBiggerShowcaseImage=_.a("enable_desktop_search_bigger_thumbs");l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return l};
_.m(ji,_.B);_.X=ji.prototype;_.X.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.X.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.X.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var l=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);l!==this.hasTile&&this.set("hasTile",l);l=this.hasLogo(this.data)||!!this.data.badgeText;l!==this.hasMetadata&&this.set("hasMetadata",l);l=this.data.overflowButton?!1:l;l!==this.showLogoImage&&this.set("showLogoImage",l);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.X.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.X.currentColorChanged=function(){this.updateButtonPalette()};
_.X.computeBackgroundStyle=function(l){if(l&&this.data){var e=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var O=_.Cd((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);O&&e.push('background-image: url("'+O+'");')}var E;((E=l.basicColorData)==null?void 0:E.backgroundColor)!==void 0&&e.push("background-color: "+_.qv(l.basicColorData.backgroundColor)+";");return e.join("")}};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l)};
_.X.getCurrentLogo=function(l,e){if(l)return e?l.darkLogoImage:l.lightLogoImage};
_.X.getCurrentStaticTileImage=function(l,e){if(this.hasStaticTile(l))return l.darkTileImage?e?l.darkTileImage:l.tileImage:l.tileImage};
_.X.computeTitleStyle=function(l){if(this.data&&this.data.title&&l&&l.basicColorData&&l.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.t$(l.basicColorData.foregroundTitleColor)+";"};
_.X.computeSubtitleStyle=function(l){if(this.data&&this.data.subtitle&&l&&l.basicColorData&&l.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.t$(l.basicColorData.foregroundBodyColor)+";"};
_.X.computeSupplementalStyle=function(l){if(this.data&&this.data.supplementalText&&l&&l.supplementalTextColor!==void 0)return l=_.t$(l.supplementalTextColor),"color:"+l+";--yt-endpoint-color:"+l+";--yt-endpoint-hover-color:"+l+";--yt-endpoint-visited-color:"+l+";--yt-formatted-string-bold-font-weight:700;"};
_.X.computeBadgeStyle=function(l){if(this.data&&this.data.badgeText&&l&&l.basicColorData&&l.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.t$(l.basicColorData.foregroundActivatedColor)+";"};
_.X.computeDismissIconStyle=function(l){var e,O;if((l==null?0:(e=l.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(l==null?0:(O=l.dismissButtonColorData)==null?0:O.backgroundColor))return"--yt-button-color:"+_.qv(l.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.qv(l.dismissButtonColorData.backgroundColor)+";"};
_.X.computeOverflowIconStyle=function(l){var e,O;if((l==null?0:(e=l.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(l==null?0:(O=l.dismissButtonColorData)==null?0:O.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.qv(l.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.qv(l.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.qv(l.dismissButtonColorData.foregroundTitleColor)+";"};
_.X.computeBannerStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeLocation=function(l){switch(l==null?void 0:l.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.X.shouldShowTileSection=function(l,e,O){return!this.shouldExpandLogo(l,e,O)&&e};
_.X.shouldShowExpandedLogoSection=function(l,e,O){return this.shouldExpandLogo(l,e,O)&&l!==void 0&&this.hasLogo(l)};
_.X.shouldExpandLogo=function(l,e,O){return l&&e?!1:O>=2};
_.X.hasStaticTile=function(l){return!(l==null||!l.tileImage)};
_.X.hasTileLottie=function(l){var e;return!!(l==null?0:(e=l.tileLottie)==null?0:e.url)};
_.X.hasLogo=function(l){return this.getCurrentLogo(l,this.isDarkTheme)!==void 0};
_.X.getLogoHeight=function(l){return this.logoWithPadding(l)?"26":"20"};
_.X.getExpandedLogoHeight=function(l){return this.logoWithPadding(l)?"31":"24"};
_.X.getLogoImageId=function(l){return this.logoWithPadding(l)?"logo-image-with-padding":"logo-image"};
_.X.hasBackgroundLottie=function(l){var e;return!!(l==null?0:(e=l.backgroundLottie)==null?0:e.url)};
_.X.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var l,e;(l=this.tileLottieAnimationRef)==null||(e=l.lottieEl)==null||e.play();var O,E;(O=this.backgroundLottieAnimationRef)==null||(E=O.lottieEl)==null||E.play()}};
_.X.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var l,e;(l=this.tileLottieAnimationRef)==null||(e=l.lottieEl)==null||e.pause();var O,E;(O=this.backgroundLottieAnimationRef)==null||(E=O.lottieEl)==null||E.pause()}};
_.X.pauseLottie=function(){var l,e;(l=this.tileLottieAnimationRef)==null||(e=l.lottieEl)==null||e.pause();var O,E;(O=this.backgroundLottieAnimationRef)==null||(E=O.lottieEl)==null||E.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.X.performPrimaryButtonAction=function(){var l,e,O;((l=this.data)==null?0:(e=l.primaryButton)==null?0:(O=e.buttonRenderer)==null?0:O.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
_.X.updateButtonPalette=function(){if(this.data&&this.currentColorData){var l;((l=this.data.dismissButton)==null?0:l.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var e;if((e=this.data.primaryButton)==null?0:e.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var O;if((O=this.data.secondaryButton)==
null?0:O.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 E;((E=this.data.primaryButton)==null?0:E.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var J;((J=this.data.secondaryButton)==null?0:J.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.X.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var l=this.getTileLottieDataBasedOnTheme(),e,O;if(l.url!==((e=this.tileLottiePlayerProps)==null?void 0:(O=e.animationConfig)==null?void 0:O.path)){var E,J;(E=this.tileLottieAnimationRef)==null||(J=E.lottieEl)==null||J.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=l.settings)==null?0:z.autoplay);var M,Z;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(Z=(M=l.settings)==null?void 0:M.autoplay)!=null?Z:!1,loop:this.getLottieLoopValue(l.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof l.url==="string"?this.tileLottiePlayerProps.animationConfig.path=l.url:this.tileLottiePlayerProps.animationConfig.animationData=l.url}}};
_.X.getOverflowButton=function(l){return _.I(l.overflowButton,QFx)};
_.X.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var l=this.getBackgroundLottieDataBasedOnTheme(),e,O;if(l.url!==((e=this.backgroundLottiePlayerProps)==null?void 0:(O=e.animationConfig)==null?void 0:O.path)){var E,J;(E=this.backgroundLottieAnimationRef)==null||(J=E.lottieEl)==null||J.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=l.settings)==null?0:z.autoplay);var M,Z;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(Z=(M=l.settings)==null?void 0:M.autoplay)!=null?Z:!1,loop:this.getLottieLoopValue(l.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof l.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=l.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
l.url}}};
_.X.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var l;((l=this.tileLottieAnimationRef)==null?void 0:l.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var e;((e=this.backgroundLottieAnimationRef)==null?void 0:e.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.X.getTileLottieDataBasedOnTheme=function(){var l;if(this.isDarkTheme&&((l=this.data)==null?0:l.darkThemeTileLottie))return this.data.darkThemeTileLottie;var e;return((e=this.data)==null?0:e.tileLottie)?this.data.tileLottie:{}};
_.X.getBackgroundLottieDataBasedOnTheme=function(){var l;if(this.isDarkTheme&&((l=this.data)==null?0:l.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var e;return((e=this.data)==null?0:e.backgroundLottie)?this.data.backgroundLottie:{}};
_.X.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l)};
_.X.getLottieLoopValue=function(l){return l?l.loop!==void 0?l.loop:l.loopCount?l.loopCount-1:!0:!0};
_.X.logoWithPadding=function(l){var e,O,E;return(l=(e=this.getCurrentLogo(l,this.isDarkTheme))==null?void 0:(O=e.thumbnails)==null?void 0:(E=O[0])==null?void 0:E.height)&&l%31===0?!0:!1};
ji.prototype.currentColorChanged=ji.prototype.currentColorChanged;ji.prototype.themeChanged=ji.prototype.themeChanged;ji.prototype.dataChanged=ji.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],ji.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ji.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ji.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"primaryButton",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"secondaryButton",void 0);
_.L([_.T({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],ji.prototype,"elementsPerRow",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],ji.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],ji.prototype,"hasTile",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],ji.prototype,"hasMetadata",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],ji.prototype,"showLogoImage",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"currentColorData",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.q("design:type",String)],ji.prototype,"bannerStyle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.q("design:type",String)],ji.prototype,"location",void 0);
_.L([_.T(),_.q("design:type",Object)],ji.prototype,"tileLottiePlayerProps",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"tileLottieAnimationRef",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"backgroundLottiePlayerProps",void 0);_.L([_.T(),_.q("design:type",Object)],ji.prototype,"backgroundLottieAnimationRef",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ji.prototype,"useBiggerShowcaseImage",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ji.prototype,"isHideEnclosingAction",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ji.prototype,"dataChanged",null);_.L([_.y0("isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ji.prototype,"themeChanged",null);
_.L([_.y0("currentColorData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ji.prototype,"currentColorChanged",null);_.L([_.U({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],ji);
_.Y(ji,"ytd-statement-banner-renderer",function(){if(DnF!==void 0)return DnF;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DnF=l},{mode:1});var SQF;var HS=function(){var l=_.B.apply(this,arguments)||this;l.isSearch=!1;l.hideShelfHeader=!1;l.engagementPanel=!1;l.disableMouseScroll=!0;l.useFloorScrolling=!0;l.modernTypography=_.a("web_modern_typography");return l};
_.m(HS,_.B);HS.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.ml("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.ml("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
HS.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
HS.prototype.onDataChanged=HS.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HS.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HS.prototype,"hideShelfHeader",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HS.prototype,"engagementPanel",void 0);_.L([_.T(),_.q("design:type",Object)],HS.prototype,"disableMouseScroll",void 0);_.L([_.T(),_.q("design:type",Object)],HS.prototype,"useFloorScrolling",void 0);_.L([_.T(),_.q("design:type",Object)],HS.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HS.prototype,"modernTypography",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HS.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],HS);
_.Y(HS,"ytd-reel-shelf-renderer",function(){if(SQF!==void 0)return SQF;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return SQF=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var QEx;var xnH=_.XO(function(l){var e=l.data;l=l.useSmallFont;var O={},E={};return _.W("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.W(_.A,{cond:function(){return e().favicon},
then:function(J){return _.W(_.Jm,{data:J,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.W("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.W(_.zK,{text:function(){return e().title},
className:_.ax("yt-channel-external-link-view-model-wiz__title",(O["yt-channel-external-link-view-model-wiz__title--title-small-font"]=l,O)),ellipsisTruncate:!0,userInput:!0}),_.W(_.zK,{text:function(){return e().link},
className:_.ax("yt-channel-external-link-view-model-wiz__link",(E["yt-channel-external-link-view-model-wiz__link--link-small-font"]=l,E)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
xnH.idomCompat=!0;_.Zw(xnH,"yt-channel-external-link-view-model",{props:{data:_.lB,useSmallFont:_.lB}});_.Y7("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var cS=function(){var l=_.B.apply(this,arguments)||this;l.revealButtonClass="button";l.businessEmailDisplayState="HIDE_SECTION";return l};
_.m(cS,_.B);_.X=cS.prototype;_.X.refit=function(){var l=this;_.N7(function(){_.dQ(l.hostElement,"yt-refit-popups-action")});
_.OK(this,function(){_.dQ(l.hostElement,"yt-refit-popups-action")})};
_.X.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Nd("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.X.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"};
_.X.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.X.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"}}}};
_.X.computeEmailHref=function(l){return"mailto:"+l};
_.X.computeSafeUrl=function(l){if(l)return _.nU(l)};
_.X.linkEndpoint=function(l){return _.I(l.onTap,_.L4)};
_.X.linkEndpointToHref=function(l){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(l))};
_.X.onYtServiceRequestCompleted=function(l){var e;if((e=l.detail.data)==null?0:e.businessEmail)this.businessEmail=l.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var O;if((O=l.detail.data)==null?0:O.errorMessage)this.businessEmailErrorMessage=l.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.X.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var l=this.JSC$14159_captchaTextarea.value;if(l){l={recaptcha_response_token:l,channel_id:this.metadata.channelId};var e=_.I(this.metadata.onBusinessEmailRevealClickCommand,_.L4);e&&this.ytComponentBehavior.resolveCommand(e,{form:l})}}};
_.X.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Ji.Object.defineProperties(cS.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var l;return _.I((l=this.data)==null?void 0:l.metadata,rcq)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.I(this.metadata.businessEmailRevealButton,_.Hi)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var l=new URL(this.metadata.canonicalChannelUrl);return l.host+l.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 _.I(this.metadata.learnMoreOnTap,_.L4)}}});
cS.prototype.onYtServiceRequestCompleted=cS.prototype.onYtServiceRequestCompleted;cS.prototype.businessEmailMetadataChanged=cS.prototype.businessEmailMetadataChanged;cS.prototype.refit=cS.prototype.refit;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],cS.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#g-recaptcha-response"),_.q("design:type",HTMLTextAreaElement)],cS.prototype,"JSC$14159_captchaTextarea",void 0);_.L([_.T(),_.q("design:type",Object)],cS.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],cS.prototype,"revealButtonClass",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],cS.prototype,"metadata",null);
_.L([_.R("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],cS.prototype,"revealButton",null);_.L([_.R("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],cS.prototype,"channelDisplayUrl",null);_.L([_.y0("metadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cS.prototype,"refit",null);_.L([_.R("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],cS.prototype,"formattedDescription",null);
_.L([_.R("metadata","learnMoreCommand"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],cS.prototype,"shouldRendereVerifiedPhoneStatus",null);_.L([_.R("metadata"),_.q("design:type",Object),_.q("design:paramtypes",[])],cS.prototype,"learnMoreCommand",null);_.L([_.T(),_.q("design:type",String)],cS.prototype,"businessEmailDisplayState",void 0);_.L([_.T(),_.q("design:type",String)],cS.prototype,"businessEmail",void 0);
_.L([_.T(),_.q("design:type",String)],cS.prototype,"businessEmailErrorMessage",void 0);_.L([_.y0("metadata"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cS.prototype,"businessEmailMetadataChanged",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cS.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],cS);
_.Y(cS,"ytd-about-channel-renderer",function(){if(QEx!==void 0)return QEx;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return QEx=l},{mode:1});var lIS;var FM=function(){return _.B.apply(this,arguments)||this};
_.m(FM,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FM.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],FM);
_.Y(FM,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(lIS!==void 0)return lIS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return lIS=l},{mode:1});var ezx;var fG=function(){return _.B.apply(this,arguments)||this};
_.m(fG,_.B);fG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],fG.prototype,"aligment",void 0);_.L([_.U({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],fG);
_.Y(fG,"ytd-channel-list-sub-menu-renderer",function(){if(ezx!==void 0)return ezx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ezx=
l},{mode:1});var O7S;var R$=function(){return _.B.apply(this,arguments)||this};
_.m(R$,_.B);R$.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],R$.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],R$);
_.Y(R$,"ytd-channel-sub-menu-renderer",function(){if(O7S!==void 0)return O7S;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return O7S=l},{mode:1});var EcF;var J16;var T$=function(){var l=_.B.apply(this,arguments)||this;l.isCompact=!1;return l};
_.m(T$,_.B);_.Ji.Object.defineProperties(T$.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var l,e;return((e=_.I((l=this.data)==null?void 0:l.endpoint,_.Db))==null?void 0:e.target)==="TARGET_NEW_WINDOW"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],T$.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],T$.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],T$.prototype,"isCompact",void 0);_.L([_.R("isCompact"),_.q("design:type",Number),_.q("design:paramtypes",[])],T$.prototype,"thumbnailWidth",null);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T$.prototype,"openNewWindow",null);_.L([_.U({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],T$);
_.Y(T$,"ytd-media-lockup-renderer",function(){if(J16!==void 0)return J16;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return J16=l},{mode:1});var XL1;var sO=function(){return _.B.apply(this,arguments)||this};
_.m(sO,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sO.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sO.prototype,"data",void 0);_.L([_.U({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],sO);
_.Y(sO,"ytd-structured-description-channel-lockup-renderer",function(){if(XL1!==void 0)return XL1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return XL1=l},{mode:1});var zzC;var G$=function(){var l=_.B.apply(this,arguments)||this;l.isCompact=!1;l.collections=_.a("web_modern_collections_v2");l.collectionsStackColor=_.a("modernize_structured_description_playlist_lockups_v2");return l};
_.m(G$,_.B);G$.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:_.a("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Ji.Object.defineProperties(G$.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J,z;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(l=this.data)==null?void 0:(e=l.thumbnail)==null?void 0:e.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(O=this.data)==null?void 0:(E=O.thumbnail)==null?void 0:E.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(J=this.data)==null?void 0:(z=J.thumbnail)==
null?void 0:z.vibrantColorPalette:void 0}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],G$.prototype,"componentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],G$.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],G$.prototype,"showSidePanelThumbnailOverlay",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],G$.prototype,"isCompact",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],G$.prototype,"collections",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],G$.prototype,"collectionsStackColor",void 0);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],G$.prototype,"twoLineTitle",null);
_.L([_.R("data","collections","collectionsStackColor"),_.q("design:type",Object),_.q("design:paramtypes",[])],G$.prototype,"collectionStack",null);_.L([_.U({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],G$);
_.Y(G$,"ytd-structured-description-playlist-lockup-renderer",function(){if(zzC!==void 0)return zzC;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zzC=l},{mode:1});var b7i;var BS=function(){return _.B.apply(this,arguments)||this};
_.m(BS,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],BS.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BS.prototype,"data",void 0);_.L([_.U({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],BS);
_.Y(BS,"ytd-structured-description-video-lockup-renderer",function(){if(b7i!==void 0)return b7i;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return b7i=l},{mode:2});var PS=function(){return _.B.apply(this,arguments)||this};
_.m(PS,_.B);
PS.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PS.prototype,"data",void 0);_.L([_.U({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],PS);
_.Y(PS,"ytd-compact-infocard-renderer",function(){if(EcF!==void 0)return EcF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return EcF=l},{mode:1});var MLS;var UO=function(){var l=_.B.apply(this,arguments)||this;l.useModernCollectionsV2=_.a("web_modern_collections_v2");return l};
_.m(UO,_.B);UO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Ji.Object.defineProperties(UO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.a("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.a("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.a("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],UO.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.L([_.T({selector:_.vi}),_.q("design:type",Object)],UO.prototype,"isGridViewEnabled",void 0);
_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UO.prototype,"watchFeedBigThumbs",null);_.L([_.R("isGridViewEnabled","data"),_.T({reflectToAttribute:!0,value:"168"}),_.q("design:type",String),_.q("design:paramtypes",[])],UO.prototype,"thumbnailWidth",null);_.L([_.R("isGridViewEnabled","data"),_.T({reflectToAttribute:!0,value:"94"}),_.q("design:type",String),_.q("design:paramtypes",[])],UO.prototype,"customThumbnailSize",null);
_.L([_.T(),_.q("design:type",Object)],UO.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],UO.prototype,"useModernCollectionsV2",void 0);_.L([_.U({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],UO);
_.Y(UO,"ytd-compact-playlist-renderer",function(){if(MLS!==void 0)return MLS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return MLS=l},{mode:1});var VLF;var Yy=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.roundedContainer=!0;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return l};
_.m(Yy,_.B);_.X=Yy.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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"}}}};
_.X.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.X.computeViewStyle=function(l){return l.style?l.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.X.onUpdateElementsPerRowAction=function(l){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&l===1};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
Yy.prototype.dataChanged=Yy.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Yy.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Yy.prototype,"actionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Yy.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Yy.prototype,"hideThumbnail",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.q("design:type",String)],Yy.prototype,"viewStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Yy.prototype,"darkerDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Yy.prototype,"roundedContainer",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Yy.prototype,"dataChanged",null);_.L([_.U({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Yy);
_.Y(Yy,"ytd-compact-promoted-item-renderer",function(){if(VLF!==void 0)return VLF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return VLF=l},{mode:1});var Z70;var ho=function(){var l=_.B.apply(this,arguments)||this;l.collections=_.a("web_modern_collections_v2");return l};
_.m(ho,_.B);ho.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ho.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ho.prototype.onYtNavigate=function(l,e){var O=this;if(e.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",e)){var E=this.get("watchEndpoint.videoId",e.endpoint),J=_.dQ(this.hostElement,"yt-get-current-video-id-action")[0];_.a("kevlar_mix_handle_first_endpoint_different")&&E&&J&&E!==J||(l.stopPropagation(),_.Mc().getPlayerPromise().then(function(z){if(z.getPlayerState()===0&&O.data.secondaryNavigationEndpoint)var M=O.data.secondaryNavigationEndpoint;else{M=
Object.assign({},e.endpoint);var Z=_.I(M.commandMetadata,_.V4);Z&&(z=Math.floor(z.getCurrentTime()),Z.url=_.e7(Z.url,{t:z}),!_.a("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(Z=_.I(M,_.ej)))&&(Z.startTimeSeconds=z)}_.$u(O.hostElement,"yt-navigate",{endpoint:M})}))}};
_.Ji.Object.defineProperties(ho.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.a("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.a("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(l=this.data)==null?void 0:(e=l.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(E=O.thumbnail)==null?void 0:E.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(z=J.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
ho.prototype.onYtNavigate=ho.prototype.onYtNavigate;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],ho.prototype,"ytEndpointBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],ho.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.qO),_.q("design:type",Object)],ho.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ho.prototype,"ytdReduxBehavior",void 0);_.L([_.T({selector:_.vi}),_.q("design:type",Object)],ho.prototype,"isGridViewEnabled",void 0);_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ho.prototype,"watchFeedBigThumbs",null);
_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],ho.prototype,"thumbnailWidth",null);_.L([_.T(),_.q("design:type",Object)],ho.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ho.prototype,"collections",void 0);_.L([_.R("data","collections"),_.q("design:type",Object),_.q("design:paramtypes",[])],ho.prototype,"collectionStack",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],ho.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ho);
_.Y(ho,"ytd-compact-radio-renderer",function(){if(Z70!==void 0)return Z70;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Z70=l},{mode:1});var u26;var LG=function(){return _.B.apply(this,arguments)||this};
_.m(LG,_.B);LG.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
LG.prototype.computeRendererStyle=function(l){return l.style?l.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.L([_.T(),_.q("design:type",Object)],LG.prototype,"data",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LG.prototype,"rendererBehavior",void 0);_.L([_.T({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.q("design:type",String)],LG.prototype,"rendererStyle",void 0);_.L([_.U({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],LG);
_.Y(LG,"ytd-compact-text-promo-renderer",function(){if(u26!==void 0)return u26;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return u26=l},{mode:1});var Cck;var to=function(){var l=_.B.apply(this,arguments)||this;l.isShortsStyle=!1;return l};
_.m(to,_.B);_.X=to.prototype;_.X.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"}}}};
_.X.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.$u(this.hostElement,"yt-disable-lockup-interaction"):_.$u(this.hostElement,"yt-enable-lockup-interaction"))};
_.X.isMetaBlockEmpty=function(l){return!l||!l.longBylineText&&!l.shortBylineText&&!l.shortViewCountText&&!l.viewCountText};
_.X.computeHasOneLineTitle=function(l){return this.forceOneLineTitle||!(l==null||!l.buttons)};
_.X.computeDisableInteraction=function(){var l;return!((l=this.data)==null?0:l.navigationEndpoint)};
_.X.hasSingularTopStandaloneBadge=function(){var l;return!((l=this.data)==null||!l.topStandaloneBadge)};
_.Ji.Object.defineProperties(to.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.a("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.a("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 l;return this.hasSingularTopStandaloneBadge()?[(l=this.data)==null?void 0:l.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var l;return this.shouldShowTopBadges?((l=this.data)==null?void 0:l.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
to.prototype.disableInteractionChanged=to.prototype.disableInteractionChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],to.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],to.prototype,"ytdLockupBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],to.prototype,"ytdReduxBehavior",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.q("design:type",Boolean)],to.prototype,"metaBlockEmpty",void 0);_.L([_.T({selector:_.vi}),_.q("design:type",Object)],to.prototype,"isGridViewEnabled",void 0);_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],to.prototype,"watchFeedBigThumbs",null);
_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],to.prototype,"thumbnailWidth",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],to.prototype,"isShortsStyle",void 0);_.L([_.T(),_.q("design:type",Object)],to.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.q("design:type",Boolean)],to.prototype,"hasOneLineTitle",void 0);
_.L([_.T(),_.q("design:type",Boolean)],to.prototype,"hideThumbnail",void 0);_.L([_.T(),_.q("design:type",Boolean)],to.prototype,"forceOneLineTitle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.q("design:type",Boolean)],to.prototype,"disableInteraction",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],to.prototype,"musicMetadataVideoLockup",void 0);
_.L([_.AA("disableInteraction"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],to.prototype,"disableInteractionChanged",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],to.prototype,"shouldShowTopBadges",null);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],to.prototype,"topBadges",null);
_.L([_.R("shouldShowTopBadges","data"),_.q("design:type",Array),_.q("design:paramtypes",[])],to.prototype,"inlineMetadataBadges",null);_.L([_.R("shouldShowTopBadges"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],to.prototype,"shouldShowBadgesBelowMetadata",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],to.prototype,"compactTitleClass",null);_.L([_.U({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],to);
_.Y(to,"ytd-compact-video-renderer",function(){if(Cck!==void 0)return Cck;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Cck=l},{mode:_.Wf("kevlar_poly_si_batch_j067")?1:2});var oc0;_.Y7("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var qp=function(){return _.B.apply(this,arguments)||this};
_.m(qp,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qp.prototype,"data",void 0);_.L([_.U({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],qp);
_.Y(qp,"ytd-counterfactual-renderer",function(){if(oc0!==void 0)return oc0;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return oc0=l},{mode:1});var $b6;var vS=function(){var l=_.B.apply(this,arguments)||this;l.hidden=!1;return l};
_.m(vS,_.B);vS.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.V2().resolve(_.Zh).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
vS.prototype.computeHidden=function(l){return!!l};
_.Ji.Object.defineProperties(vS.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}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vS.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.q("design:type",Object)],vS.prototype,"hidden",void 0);_.L([_.R("data.label"),_.q("design:type",String),_.q("design:paramtypes",[])],vS.prototype,"label",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],vS.prototype,"value",null);
_.L([_.U({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],vS);
_.Y(vS,"ytd-dropdown-item-renderer",function(){if($b6!==void 0)return $b6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $b6=l},{mode:1});var Wi6;var db1;var Np=function(){return _.B.apply(this,arguments)||this};
_.m(Np,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Np.prototype,"data",void 0);_.L([_.T({computed:"getSimpleString(data.label)"}),_.q("design:type",String)],Np.prototype,"label",void 0);_.L([_.U({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Np);
_.Y(Np,"ytd-navigation-dropdown-item-renderer",function(){if(db1!==void 0)return db1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return db1=l},{mode:1});var rF=function(){var l=_.B.apply(this,arguments)||this;l.disabled=!1;l.value="";l.noLabelFloat=!1;l.noUnderline=!1;l.usePrimaryColor=!1;l.hasBackground=!1;l.verticalAlign="top";l.autosize=!1;l.minAutosizeWidth=100;l.autosizeFont="14px Roboto";return l};
_.m(rF,_.B);_.X=rF.prototype;_.X.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"}}}};
_.X.open=function(){this.inputEl.open()};
_.X.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.X.dataChanged=function(){this.reset()};
_.X.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("value-changed",this.value))};
_.X.stopPropagation=function(l){l.stopPropagation()};
_.X.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var l=this.canvas.getContext("2d");l&&(l.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(l.measureText(this.inputEl.value).width)+24)+"px")}};
_.X.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var l=0,e=this.data.entries.length;l<e;l++){var O=this.data.entries[l],E;for(E in O)if(O.hasOwnProperty(E)){var J=O[E];if("isSelected"in J&&J.isSelected)return"stringValue"in J?J.stringValue||"":"int32Value"in J?J.int32Value||0:0}}return null};
_.X.updateValueFromBinding=function(l){this.value=l.detail.value};
_.Ji.Object.defineProperties(rF.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 l=0,e=this.data.entries.length;l<e;l++){var O=this.data.entries[l],E;for(E in O)if(O.hasOwnProperty(E)){var J=O[E];if("isSelected"in J&&J.isSelected&&"label"in J)return this.ytRendererBehavior.getSimpleString(J.label)}}return null}}});
rF.prototype.autoSizeLabel=rF.prototype.autoSizeLabel;rF.prototype.stopPropagation=rF.prototype.stopPropagation;rF.prototype.valueChangedForBinding=rF.prototype.valueChangedForBinding;rF.prototype.dataChanged=rF.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],rF.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],rF.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rF.prototype,"disabled",void 0);_.L([_.T(),_.q("design:type",Object)],rF.prototype,"value",void 0);_.L([_.T(),_.q("design:type",Object)],rF.prototype,"noLabelFloat",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rF.prototype,"noUnderline",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],rF.prototype,"theme",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rF.prototype,"usePrimaryColor",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rF.prototype,"hasBackground",void 0);_.L([_.T(),_.q("design:type",Object)],rF.prototype,"verticalAlign",void 0);_.L([_.T(),_.q("design:type",Object)],rF.prototype,"autosize",void 0);_.L([_.T(),_.q("design:type",Object)],rF.prototype,"minAutosizeWidth",void 0);_.L([_.T(),_.q("design:type",Object)],rF.prototype,"autosizeFont",void 0);
_.L([_.aB("#entries"),_.q("design:type",Object)],rF.prototype,"entries",void 0);_.L([_.aB("#input"),_.q("design:type",Object)],rF.prototype,"inputEl",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rF.prototype,"dataChanged",null);_.L([_.y0("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rF.prototype,"valueChangedForBinding",null);
_.L([_.wP("iron-overlay-opened"),_.wP("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],rF.prototype,"stopPropagation",null);_.L([_.wP("iron-select"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rF.prototype,"autoSizeLabel",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],rF.prototype,"label",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],rF);
_.Y(rF,"ytd-dropdown-renderer",function(){if(Wi6!==void 0)return Wi6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Wi6=l},{mode:1});var gcR;var Dj=function(){var l=_.B.apply(this,arguments)||this;l.isConstrainedList=!1;return l};
_.m(Dj,_.B);Dj.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"}}}};
Dj.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Dj.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Dj.prototype.computeViewAllHidden=function(l,e){return l||!e.viewAllEndpoint};
Dj.prototype.fillRestIfNoShowMore=Dj.prototype.fillRestIfNoShowMore;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],Dj.prototype,"ytLazyListBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Dj.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Dj.prototype,"isConstrainedList",void 0);_.L([_.y0("data","canShowMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Dj.prototype,"fillRestIfNoShowMore",null);_.L([_.U({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Dj);
_.Y(Dj,"ytd-expanded-shelf-contents-renderer",function(){if(gcR!==void 0)return gcR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gcR=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var i7q;var Si=function(){return _.B.apply(this,arguments)||this};
_.m(Si,_.B);Si.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Si.prototype,"data",void 0);_.L([_.U({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Si);
_.Y(Si,"ytd-feed-channel-filter-header-renderer",function(){if(i7q!==void 0)return i7q;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return i7q=l},{mode:1});var wL0;var A1S;var ncH;var Q1=function(){return _.B.apply(this,arguments)||this};
_.m(Q1,_.B);_.X=Q1.prototype;_.X.onClick=function(l){var e,O=(e=this.data)==null?void 0:e.sectionEndpoint;!_.Eh(_.ey(l),this.hostElement,["A".toString()])&&O&&_.$u(this.hostElement,"yt-navigate",{endpoint:O})};
_.X.computeHasSectionEndpoint=function(l){return(l==null?void 0:l.sectionEndpoint)!==void 0};
_.X.computeShowHeaderAsLink=function(l){return(l==null?void 0:l.header)!==void 0&&(l==null?void 0:l.sectionEndpoint)!==void 0};
_.X.computeShowSubheaderAsLink=function(l){return(l==null?void 0:l.subheader)!==void 0&&(l==null?void 0:l.sectionEndpoint)!==void 0&&(l==null?void 0:l.header)===void 0};
_.X.getHeaderAsLinkClass=function(l){var e=[],O;(l==null?0:(O=l.headerIcon)==null?0:O.iconType)&&e.push("header-link-active");return e.join(" ")};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Q1.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Q1.prototype,"data",void 0);
_.L([_.T({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Q1.prototype,"hasSectionEndpoint",void 0);_.L([_.T({computed:"computeShowHeaderAsLink(data)"}),_.q("design:type",Boolean)],Q1.prototype,"showHeaderAsLink",void 0);_.L([_.T({computed:"computeShowSubheaderAsLink(data)"}),_.q("design:type",Boolean)],Q1.prototype,"showSubheaderAsLink",void 0);_.L([_.U({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Q1);
_.Y(Q1,"ytd-medical-panel-section-renderer",function(){if(ncH!==void 0)return ncH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ncH=l},{mode:1});var xy=function(){var l=_.B.apply(this,arguments)||this;l.isExpanded=!1;l.roundedContainer=!0;l.skipRoundingTop=!1;l.toggleExpandableSection=function(){l.isExpanded=!l.isExpanded};
return l};
_.m(xy,_.B);
xy.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]]"}}}}}};
xy.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
xy.prototype.dataChanged=xy.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xy.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],xy.prototype,"isExpanded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xy.prototype,"roundedContainer",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xy.prototype,"skipRoundingTop",void 0);_.L([_.T(),_.q("design:type",Object)],xy.prototype,"toggleExpandableSection",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xy.prototype,"dataChanged",null);_.L([_.U({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],xy);
_.Y(xy,"ytd-medical-panel-content-renderer",function(){if(A1S!==void 0)return A1S;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return A1S=l},{mode:1});_.Y7("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ln=function(){var l=_.B.apply(this,arguments)||this;l.roundedContainer=!0;l.amsterdamEnabled=_.a("enable_desktop_amsterdam_info_panels");l.hasTitle=!1;l.linkIcon="OPEN_IN_NEW";l.isDismissed=!1;return l};
_.m(ln,_.B);
ln.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ln.prototype.computeHasTitle=function(l){return!(l==null||!l.title)};
ln.prototype.onClick=function(l){var e,O=(e=this.data)==null?void 0:e.headerEndpoint;!_.Eh(_.ey(l),this.hostElement,["BUTTON".toString()])&&O&&this.ytComponentBehavior.resolveCommand(O)};
_.Ji.Object.defineProperties(ln.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 l;return((l=this.data)==null?void 0:l.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.disableBottomDivider)||!((e=this.data)==null?0:e.title)}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ln.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ln.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ln.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ln.prototype,"amsterdamEnabled",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.q("design:type",Object)],ln.prototype,"hasTitle",void 0);
_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.q("design:type",Object),_.q("design:paramtypes",[])],ln.prototype,"background",null);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.titleStyle"),_.q("design:type",Object),_.q("design:paramtypes",[])],ln.prototype,"titleStyle",null);
_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data.titleStyle"),_.q("design:type",Object),_.q("design:paramtypes",[])],ln.prototype,"showLinkIcon",null);_.L([_.T(),_.q("design:type",String)],ln.prototype,"linkIcon",void 0);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ln.prototype,"hideDivider",null);
_.L([_.T({selectorArgs:["data.dismissStateEntityKey"],selector:function(l,e){l=_.wV(l.entities,"dismissState",e);return(l==null?void 0:l.isDismissed)||(l==null?void 0:l.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(l==null?void 0:l.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.q("design:type",Object)],ln.prototype,"isDismissed",void 0);_.L([_.U({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ln);
_.Y(ln,"ytd-info-panel-container-renderer",function(){if(wL0!==void 0)return wL0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wL0=l},{mode:1});var aI6;_.Y7("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var eG=function(){var l=_.B.apply(this,arguments)||this;l.modernTypography=_.a("web_modern_typography");return l};
_.m(eG,_.B);eG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eG.prototype.computeStyle=function(l){return l?l:""};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.q("design:type",String)],eG.prototype,"titleStyle",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],eG.prototype,"modernTypography",void 0);_.L([_.U({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],eG);
_.Y(eG,"ytd-item-section-header-renderer",function(){if(aI6!==void 0)return aI6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return aI6=l},{mode:1});var kA1;var IIS,mbF=function(){return IIS!==void 0?IIS:IIS=document.createElement("template")};
document.head.appendChild(mbF().content);var y1k;_.Oq=new _.Xa("VOTING_ANIMATION_CONTROLLER_TOKEN");var KiH=_.XO(function(l){var e=l.data;var O=_.e4("div"),E=_.e4("div");l=_.b(_.AF("VOTE_STATUS_NONE",void 0,"FVF7mc"));var J=l.next().value,z=l.next().value,M=_.kD(NzT,function(){var n;return(n=e())==null?void 0:n.entityKey}),Z=_.a("web_enable_voting_animation")||_.a("enable_music_web_cairo_voting_animation");
_.sC(function(){var n;((n=e().initialState)==null?0:n.status)&&z(e().initialState.status)});
var u=function(){var n,k,y=(k=(n=e().initialState)==null?void 0:n.votes)!=null?k:0,c;n=(c=e().initialState)==null?void 0:c.status;return n==="VOTE_STATUS_UPVOTED"?y-1:n==="VOTE_STATUS_DOWNVOTED"?y+1:y},d=function(){return J()==="VOTE_STATUS_UPVOTED"?u()+1:J()==="VOTE_STATUS_DOWNVOTED"?u()-1:u()},g=function(n){var k=n?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
z(k);var y=d(),c=_.V2().resolve(_.MG(_.Oq)),f=M();f&&(n&&(f==null?0:f.upvoteDefaultButtonOnTap)?_.r6(f.upvoteDefaultButtonOnTap,{form:{element:O.value},disableClickTracking:!0}):(f==null?0:f.upvoteToggledButtonOnTap)&&_.r6(f.upvoteToggledButtonOnTap,{form:{element:O.value},disableClickTracking:!0}));var P;n=(P=f==null?void 0:f.enableOptimisticReordering)!=null?P:e().enableOptimisticReordering;Z&&c&&e().itemId&&n&&pLH(c,e().itemId,y,k)},w=function(n){var k=n?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
z(k);var y=d(),c=_.V2().resolve(_.MG(_.Oq)),f=M();f&&(n&&(f==null?0:f.downvoteDefaultButtonOnTap)?_.r6(f.downvoteDefaultButtonOnTap,{form:{element:E.value},disableClickTracking:!0}):(f==null?0:f.downvoteToggledButtonOnTap)&&_.r6(f.downvoteToggledButtonOnTap,{form:{element:E.value},disableClickTracking:!0}));var P;n=(P=f==null?void 0:f.enableOptimisticReordering)!=null?P:e().enableOptimisticReordering;Z&&c&&e().itemId&&n&&pLH(c,e().itemId,y,k)};
l={};l=_.ax("ytVotingViewModelVoteCount",(l.ytVotingViewModelVoteCountDisabled=function(){return e().isDisabled},l));
return _.W("voting-view-model",{class:"ytVotingViewModelHost"},_.W("div",{el:O},_.W(_.Tn,{data:function(){var n=_.I(e().upvoteButton,_.ci);return{toggleButtonViewModel:Object.assign({},n,{isToggled:J()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(n){return _.W(_.sh,{data:n.data,
onToggle:g})}})),_.W("div",{class:l},function(){var n,k,y;
return J()==="VOTE_STATUS_UPVOTED"?(n=e().initialState)==null?void 0:n.compactVotesUpvoted:J()==="VOTE_STATUS_DOWNVOTED"?(k=e().initialState)==null?void 0:k.compactVotesDownvoted:(y=e().initialState)==null?void 0:y.compactVotes}),_.W("div",{el:E},_.W(_.Tn,{data:function(){var n=_.I(e().downvoteButton,_.ci);
return{toggleButtonViewModel:Object.assign({},n,{isToggled:J()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(n){return _.W(_.sh,{data:n.data,
onToggle:w})}})))},"Ib");_.Zw(_.XO(function(l){var e=l.data;return _.W("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.W("div",{class:_.ax("ytEngagementBarViewModelEngagementBarWrapper",l.className)},_.W(_.Tn,{data:function(){return e().actions}},{votingViewModel:KiH})))},"Jb"),"engagement-bar-view-model",{props:{data:_.lB,
className:_.lB}});var Eq=function(){var l=_.B.apply(this,arguments)||this;l.playlistVotingAnimationEnabled=_.a("web_enable_voting_animation");l.downloadProgress=0;l.transferState="TRANSFER_STATE_UNKNOWN";l.downloadState="DOWNLOAD_STATE_UNKNOWN";l.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";l.offlineVideoPolicyExpirationTimestamp=0;return l};
_.m(Eq,_.B);_.X=Eq.prototype;_.X.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"}}}};
_.X.canReorderChanged=function(){this.persistentDragHandle=_.a("kevlar_playlist_drag_handles")&&this.canReorder};
_.X.onDrag=function(){if(this.thumbnail){var l=_.ud(this.thumbnail).querySelector("yt-image");l&&(l.shouldRenderLazy=!1)}};
_.X.onMenuOverlayChanged=function(l,e){this.menuOpened=e};
_.X.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.X.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.X.onContentsTap=function(l){var e,O=(e=this.data)==null?void 0:e.serviceEndpoints;if(O&&O.length===1&&_.I(O[0],uTq)&&!_.Eh(_.ey(l),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(O[0]);else{var E;(e=(E=this.data)==null?void 0:E.navigationEndpoint)&&_.a("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?jJ6(_.V2().resolve(_.NJ),e):(_.n6().playlistSuggestionsShelfActivation=
!0,_.H7H(_.V2().resolve(_.NJ),e)):e&&!_.Eh(_.ey(l),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.a("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.$u(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))}};
_.X.computeStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeThumbnailWidth=function(l){return l==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.X.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=V9q(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))}};
_.X.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.X.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.X.dataChanged=function(){if(this.data){var l,e,O,E=((l=this.downloadRenderData)==null?void 0:l.badges)&&((e=this.downloadRenderData)==null?void 0:e.badges)!==((O=this.data)==null?void 0:O.badges),J,z,M;l=((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)&&((z=this.downloadRenderData)==null?void 0:z.thumbnailOverlays)!==((M=this.data)==null?void 0:M.thumbnailOverlays);(!this.downloadRenderData||E||l)&&this.downloadStateChanged()}};
_.X.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var l,e,O=(l=this.data.menu)==null?void 0:(e=l.menuRenderer)==null?void 0:e.items;if(O)for(l=_.b(O),e=l.next();!e.done;e=l.next())if(e=e.value,O=void 0,_.I((O=e.menuServiceItemRenderer)==null?void 0:O.serviceEndpoint,_.BC)){var E=O=void 0,J=void 0;e=(O=e)==null?void 0:(E=O.menuServiceItemRenderer)==null?void 0:(J=E.serviceEndpoint)==null?void 0:J.playlistEditEndpoint;J=E=void 0;if(O=(E=e)==null?void 0:(J=E.actions)==null?void 0:
J[0])E=void 0,O.setVideoId=(E=this.data)==null?void 0:E.setVideoId;J=E=O=void 0;if(e=(O=e)==null?void 0:(E=O.clientActions)==null?void 0:(J=E[0])==null?void 0:J.playlistRemoveVideosAction)O=void 0,e.setVideoIds=[(O=this.data)==null?void 0:O.setVideoId]}}};
_.Ji.Object.defineProperties(Eq.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Eq.prototype.setVideoIdChanged=Eq.prototype.setVideoIdChanged;Eq.prototype.dataChanged=Eq.prototype.dataChanged;Eq.prototype.downloadStateChanged=Eq.prototype.downloadStateChanged;Eq.prototype.onMenuOverlayChanged=Eq.prototype.onMenuOverlayChanged;Eq.prototype.canReorderChanged=Eq.prototype.canReorderChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Eq.prototype,"ytdReduxBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],Eq.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Eq.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Eq.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Eq.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Eq.prototype,"canReorder",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Eq.prototype,"menuOpened",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Eq.prototype,"handleIsHovered",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Eq.prototype,"persistentDragHandle",void 0);_.L([_.T(),_.q("design:type",Object)],Eq.prototype,"downloadRenderData",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],Eq.prototype,"styleType",void 0);_.L([_.T({computed:"computeThumbnailWidth(data.style)"}),_.q("design:type",Number)],Eq.prototype,"thumbnailWidth",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Eq.prototype,"isDownloads",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Eq.prototype,"playlistVotingAnimationEnabled",void 0);
_.L([_.T({selector:LO,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],Eq.prototype,"downloadProgress",void 0);_.L([_.T(),_.q("design:type",Number)],Eq.prototype,"relativeDateReference",void 0);_.L([_.T({selector:_.Yp,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],Eq.prototype,"transferState",void 0);_.L([_.T({selector:FVM,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],Eq.prototype,"downloadState",void 0);
_.L([_.T({selector:ipT,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],Eq.prototype,"offlinePolicyAction",void 0);_.L([_.T({selector:wCq,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],Eq.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.L([_.T({selector:nUp,selectorArgs:["data.videoId"]}),_.q("design:type",Object)],Eq.prototype,"entityInfo",void 0);_.L([_.T({selector:_.Pt}),_.q("design:type",Boolean)],Eq.prototype,"miniplayerIsActive",void 0);
_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],Eq.prototype,"playlistVideoId",null);_.L([_.aB("#thumbnail"),_.q("design:type",Object)],Eq.prototype,"thumbnail",void 0);_.L([_.y0("canReorder"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Eq.prototype,"canReorderChanged",null);
_.L([_.wP("yt-menu-overlay-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Boolean]),_.q("design:returntype")],Eq.prototype,"onMenuOverlayChanged",null);_.L([_.y0("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Eq.prototype,"downloadStateChanged",null);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Eq.prototype,"dataChanged",null);_.L([_.y0("data.setVideoId"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Eq.prototype,"setVideoIdChanged",null);_.L([_.U({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Eq);
_.Y(Eq,"ytd-playlist-video-renderer",function(){if(y1k!==void 0)return y1k;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);l.content.insertBefore(mbF().content.cloneNode(!0),l.content.firstChild);return y1k=l},{mode:1});var c1q;var Jk=function(){return _.B.apply(this,arguments)||this};
_.m(Jk,_.B);_.L([_.T(),_.q("design:type",Object)],Jk.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Jk.prototype,"rendererBehavior",void 0);_.L([_.U({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Jk);
_.Y(Jk,"ytd-premium-browse-footer-renderer",function(){if(c1q!==void 0)return c1q;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return c1q=l},{mode:1});var FiH;var XU=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return l};
_.m(XU,_.B);_.X=XU.prototype;_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.handleDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.computeHeaderLogoThumbnail=function(l,e){if(l)return e?l.darkLogo:l.lightLogo};
_.X.computeHeaderLogoHeight=function(l,e){var O,E,J;return(l=(O=this.computeHeaderLogoThumbnail(l,e))==null?void 0:(E=O.thumbnails)==null?void 0:(J=E[0])==null?void 0:J.height)&&l%31===0?"31":"24"};
_.X.computeHeaderLogoMarginBottom=function(l,e){return this.computeHeaderLogoHeight(l,e)==="24"?"0":"-7"};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],XU.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],XU.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],XU.prototype,"isDarkTheme",void 0);_.L([_.T({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.q("design:type",Object)],XU.prototype,"themeLogo",void 0);
_.L([_.T({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.q("design:type",String)],XU.prototype,"logoHeight",void 0);_.L([_.T({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.q("design:type",String)],XU.prototype,"logoMarginBottom",void 0);_.L([_.U({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],XU);
_.Y(XU,"ytd-primetime-promo-header-renderer",function(){if(FiH!==void 0)return FiH;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return FiH=l},{mode:1});var fIR;var TKx=_.XO(function(l){var e=_.pd(function(J){var z;(z=l.onClick)==null||z.call(l,J)}),O={},E={};
return _.W("yt-shelf-header-layout",{class:_.ax("shelf-header-layout-wiz",(O["shelf-header-layout-wiz--disable-horizontal-padding"]=l.disableHorizontalPadding,O["shelf-header-layout-wiz--disable-vertical-padding"]=l.disableVerticalPadding,O["shelf-header-layout-wiz--responsive"]=l.useResponsiveLayout,O["shelf-header-layout-wiz--narrow"]=function(){var J,z;return((J=l.useResponsiveLayout)==null?void 0:J.call(l))&&((z=l.forceSmallLayout)==null?void 0:z.call(l))},O["shelf-header-layout-wiz--is-overlay"]=
l.isOverlay,O["shelf-header-layout-wiz--tappable"]=!!l.onClick,O)),
"on:click":e,tabindex:l.onClick?0:void 0},_.W(_.A,{cond:l.leadingIcon,then:function(J){return _.W("div",{class:"shelf-header-layout-wiz__leading-icon"},_.W(_.cF,{icon:J}))},
else:function(){return _.W(_.A,{cond:l.hasLeadingImage,then:function(){var J,z={};return _.W("div",{class:_.ax("shelf-header-layout-wiz__leading-image",(z["shelf-header-layout-wiz__leading-image--circular-image"]=l.circularImage,z))},(J=l.leadingImage)==null?void 0:J.call(l))}})}}),_.W("div",{class:"shelf-header-layout-wiz__label-container"},_.W(_.A,{cond:l.hasSuperlabel,
then:function(){var J;return _.W("div",{class:"shelf-header-layout-wiz__superlabel"},(J=l.superlabel)==null?void 0:J.call(l))}}),_.W("div",{class:"shelf-header-layout-wiz__title-row"},_.W(Rzx,{text:l.title,
className:_.ax("shelf-header-layout-wiz__title",(E["shelf-header-layout-wiz__title--small-title"]=l.forceSmallLayout,E)),tagLevel:l.tagLevel}),_.W(_.A,{cond:l.hasDetail,then:function(){var J;return _.W("div",{class:"shelf-header-layout-wiz__detail"},(J=l.detail)==null?void 0:J.call(l))}})),_.W(_.A,{cond:l.hasSublabel,
then:function(){var J;return _.W("div",{class:"shelf-header-layout-wiz__sublabel"},(J=l.sublabel)==null?void 0:J.call(l))}})),_.W(_.A,{cond:l.hasTrailingActions,
then:function(){var J;return _.W("div",{class:"shelf-header-layout-wiz__trailing-actions"},(J=l.trailingActions)==null?void 0:J.call(l))}}))},"Kb");
TKx.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var Rzx=_.XO(function(l){var e=l.text;var O=l.className;var E=l.tagLevel;return _.W(_.cK,null,_.W(_.jD,{when:function(){return(E==null?void 0:E())===0}},function(){return _.W("h2",{class:O},e())}),_.W(_.jD,{when:function(){return(E==null?void 0:E())===1}},function(){return _.W("h3",{class:O},e())}),_.W(_.jD,{when:function(){return(E==null?void 0:E())===2}},function(){return _.W("h4",{class:O},e())}),_.W(_.HK,null,function(){return _.W("h2",{class:O},e())}))},"Lb");var BKq,sJk,GA1;_.z3=_.XO(function(l){var e=l.data;return _.W("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.HF({"background-color":function(){return rsp(e().backgroundColor)?_.qv(rsp(e().backgroundColor)):void 0}})},_.W(TKx,{hasDetail:!1,
title:function(){return _.W(_.zK,{text:function(){return e().headline}})},
hasTitle:!0,sublabel:function(){return _.W(sJk,{data:e})},
hasSublabel:function(){return!!e().sublabel||!!e().bottomBadge},
superlabel:function(){return _.W(GA1,{data:e})},
hasSuperlabel:function(){return!!e().superlabel||!!e().topBadge},
leadingImage:function(){return _.W(BKq,{leadingAccessory:function(){return e().leadingAccessory}})},
hasLeadingImage:function(){return!!e().leadingAccessory},
trailingActions:function(){return _.W(_.Tn,{data:function(){return e().trailingActions}},{flexibleActionsViewModel:c5})},
hasTrailingActions:function(){return!!e().trailingActions},
disableHorizontalPadding:l.disableHorizontalPadding,disableVerticalPadding:l.disableVerticalPadding,forceSmallLayout:l.forceSmallLayout,useResponsiveLayout:l.useResponsiveLayout,isOverlay:l.isOverlay,onClick:function(O){if(_.Qz(e().rendererContext)){var E=_.Sp(e().rendererContext);E&&_.qT(E,{form:{element:O.target,event:O}})}}}))},"Mb");
BKq=_.XO(function(l){var e=l.leadingAccessory;return _.W(_.ZB,null,_.W(_.A,{cond:function(){var O;return(O=e().image)!=null?O:_.XL(e().themedImage)},
then:function(O){return _.W(_.Jm,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.W(_.A,{cond:function(){return _.I(e().avatar,_.l3)},
then:function(O){return _.W(_.Hp,{data:O})}}))},"Nb");
sJk=_.XO(function(l){var e=l.data;return _.W(_.ZB,null,_.W(_.A,{cond:function(){return _.I(e().bottomBadge,Opi)},
then:function(O){var E={};return _.W(_.MU,{data:O,class:_.ax((E.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!O()&&!!e().sublabel},E))})}}),_.W(_.A,{cond:function(){return e().sublabel},
then:function(O){return _.W(_.zK,{text:O})}}))},"Ob");
GA1=_.XO(function(l){var e=l.data;return _.W(_.ZB,null,_.W(_.A,{cond:function(){return _.I(e().topBadge,Opi)},
then:function(O){var E={};return _.W(_.MU,{data:O,class:_.ax((E.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!O()&&!!e().superlabel},E))})}}),_.W(_.A,{cond:function(){return e().superlabel},
then:function(O){return _.W(_.zK,{text:O})}}))},"Pb");_.Zw(_.z3,"yt-section-header-view-model",{props:{data:_.lB,className:_.lB,disableHorizontalPadding:_.lB,disableVerticalPadding:_.lB,forceSmallLayout:_.lB,useResponsiveLayout:_.lB,isOverlay:_.lB}});_.Y7("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var bn=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return l};
_.m(bn,_.B);_.X=bn.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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"}}}};
_.X.onDataChange=function(){var l=this;_.OK(this,function(){l.updateItemVisibility()})};
_.X.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l,this.updateItemVisibility())};
_.X.updateItemVisibility=function(){var l=this;this.data&&this.data.panels&&_.ud(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(e,O){e.hidden=O>l.elementsPerRow-1})};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
bn.prototype.onDataChange=bn.prototype.onDataChange;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],bn.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],bn.prototype,"actionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],bn.prototype,"data",void 0);_.L([_.T({value:3}),_.q("design:type",Number)],bn.prototype,"elementsPerRow",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bn.prototype,"onDataChange",null);_.L([_.U({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],bn);
_.Y(bn,"ytd-primetime-promo-renderer",function(){if(fIR!==void 0)return fIR;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return fIR=l},{mode:1});var Pc1;var Mt=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return l};
_.m(Mt,_.B);Mt.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Mt.prototype.handleButtonRefreshAction=function(l){if(l=_.I(l,gxR))this.set("data.button",l.membershipButton),this.notifyPath("data.button")};
_.Ji.Object.defineProperties(Mt.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:(e=l.avatars)==null?void 0:e.slice(0,8))||[]}}});
_.L([_.T(),_.q("design:type",Object)],Mt.prototype,"data",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Mt.prototype,"rendererBehavior",void 0);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],Mt.prototype,"avatars",null);
_.L([_.U({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Mt);
_.Y(Mt,"ytd-recognition-shelf-renderer",function(){if(Pc1!==void 0)return Pc1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Pc1=l},{mode:1});var Ub1;var YF0;var Vp=function(){var l=_.B.apply(this,arguments)||this;l.modernButtons=_.a("web_modern_buttons");return l};
_.m(Vp,_.B);_.X=Vp.prototype;
_.X.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]]"}}}}}};
_.X.dataChanged=function(){this.collapsed=!0};
_.X.computeVisibleItems=function(l,e){return l!==void 0&&l.items?e?l.items.slice(0,this.data.collapsedItemCount):l.items:[]};
_.X.computeHideShowMore=function(l,e,O){return l>=e||!O};
_.X.computeHideShowAll=function(l,e,O){return!(l&&e)||O};
_.X.onMoreClick=function(){this.collapsed=!1};
_.Ji.Object.defineProperties(Vp.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.a("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.oy("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.a("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Vp.prototype.dataChanged=Vp.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Vp.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vp.prototype,"isSearch",void 0);
_.L([_.T({computed:"computeVisibleItems(data,collapsed)"}),_.q("design:type",Array)],Vp.prototype,"visibleItems",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],Vp.prototype,"collapsed",void 0);_.L([_.T({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.q("design:type",Boolean)],Vp.prototype,"hideShowMore",void 0);
_.L([_.T({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.q("design:type",Boolean)],Vp.prototype,"hideShowAll",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Vp.prototype,"modernButtons",void 0);_.L([_.R("isSearch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Vp.prototype,"typographyBump",null);
_.L([_.R("isSearch"),_.q("design:type",Object),_.q("design:paramtypes",[])],Vp.prototype,"lockupExperiments",null);_.L([_.R("isSearch"),_.q("design:type",String),_.q("design:paramtypes",[])],Vp.prototype,"thumbnailWidth",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vp.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Vp);
_.Y(Vp,"ytd-vertical-list-renderer",function(){if(YF0!==void 0)return YF0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return YF0=l},{mode:1});var hzH=_.E9(["#"]);_.Y7("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Z$=function(){var l=_.B.apply(this,arguments)||this;l.isConstrainedList=!1;l.modernTypography=_.a("web_modern_typography");return l};
_.m(Z$,_.B);_.X=Z$.prototype;
_.X.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"}}}};
_.X.computeThumbnailStyle=function(l){return l||""};
_.X.computePlaceAnnotationUnderTitle=function(){var l;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((l=this.data)==null?void 0:l.thumbnailStyle)||"")};
_.X.computeHrefWithDefault=function(l){return this.ytComponentBehavior.computeHref_(l)||_.IH(hzH)};
_.X.computeIsPromoShelf=function(l){var e;return(l=l==null?void 0:(e=l[0])==null?void 0:e.metadataBadgeRenderer)?l.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.X.computePlaceBadgeBesideTitle=function(l){var e;return(l==null?0:(e=l[0])==null?0:e.metadataBadgeRenderer)?!this.computeIsPromoShelf(l):!1};
_.X.computeMenuIcon=function(l){return this.computeIsPromoShelf(l)?"yt-icons:more_vert":"yt-icons:more"};
_.X.onDataChange=function(){var l,e;((l=this.data)==null?0:(e=l.content)==null?0:e.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.X.onLockupRequested=function(l){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&l.detail&&l.detail.videoIds){for(var e=this.data.content.gridRenderer.items,O=new Set,E=_.b(l.detail.videoIds),J=E.next();!J.done;J=E.next())O.add(J.value);l.detail.returnValue=e.filter(function(z){return z.gridVideoRenderer&&z.gridVideoRenderer.videoId&&O.has(z.gridVideoRenderer.videoId)}).map(function(z){return z.gridVideoRenderer})}};
_.X.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Z$.prototype.onLockupRequested=Z$.prototype.onLockupRequested;Z$.prototype.onDataChange=Z$.prototype.onDataChange;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Z$.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Z$.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],Z$.prototype,"ironResizableBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Z$.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Z$.prototype,"isSearch",void 0);_.L([_.T(),_.q("design:type",Object)],Z$.prototype,"isConstrainedList",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("kevlar_fluid_dismiss")}}),
_.q("design:type",Boolean)],Z$.prototype,"enableFluidDismiss",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.q("design:type",String)],Z$.prototype,"thumbnailStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Z$.prototype,"modernTypography",void 0);_.L([_.T({computed:"computeMenuIcon(data.badges)"}),_.q("design:type",String)],Z$.prototype,"menuIcon",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z$.prototype,"onDataChange",null);_.L([_.wP("yt-lockup-requested"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Z$.prototype,"onLockupRequested",null);_.L([_.U({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Z$);
_.Y(Z$,"ytd-shelf-renderer",function(){if(Ub1!==void 0)return Ub1;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Ub1=l},{mode:1});var Li0;var un=function(){return _.B.apply(this,arguments)||this};
_.m(un,_.B);un.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Ji.Object.defineProperties(un.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],un.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],un.prototype,"isPlaylist",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],un.prototype,"isClipList",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],un.prototype,"isPlaylistPageWithFilters",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],un.prototype,"hasTitle",null);_.L([_.T(),_.R("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.q("design:type",Object),_.q("design:paramtypes",[])],un.prototype,"isRightAligned",null);
_.L([_.U({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],un);
_.Y(un,"ytd-sort-filter-header-renderer",function(){if(Li0!==void 0)return Li0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Li0=l},{mode:1});var tLq;var Cc=function(){var l=_.B.apply(this,arguments)||this;l.enableRightArrowHidden=_.a("channel_details_shelf_resize_observer");return l};
_.m(Cc,_.B);Cc.prototype.attached=function(){var l=this;this.enableRightArrowHidden&&(this.JSC$14290_throttledOnResize=new _.b3(function(){l.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var e;
(e=l.JSC$14290_throttledOnResize)==null||e.fire()}),this.resizeObserver.observe(this.hostElement))};
Cc.prototype.detached=function(){if(this.enableRightArrowHidden){var l;(l=this.resizeObserver)==null||l.disconnect();var e;(e=this.JSC$14290_throttledOnResize)==null||e.dispose()}};
Cc.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]]"}}}}}};
Cc.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Ji.Object.defineProperties(Cc.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.a("enable_creator_details_shelf_m2")){var l=[],e;((e=this.data)==null?0:e.creatorVideosButton)&&l.push(this.data.creatorVideosButton);var O;((O=this.data)==null?0:O.creatorAboutButton)&&l.push(this.data.creatorAboutButton);e=_.b(this.data.creatorCustomUrlButtons||[]);for(O=e.next();!O.done;O=e.next())l.push(O.value);return l}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.a("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],Cc.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Cc.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Cc.prototype,"engagementPanel",void 0);
_.L([_.T(),_.q("design:type",Object)],Cc.prototype,"enableRightArrowHidden",void 0);_.L([_.R("enableRightArrowHidden","atEnd"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Cc.prototype,"hideRightArrow",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Cc.prototype,"creatorCustomUrlButtons",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data","creatorCustomUrlButtons"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Cc.prototype,"showCreatorCustomUrlButtons",null);_.L([_.R("showCreatorCustomUrlButtons"),_.q("design:type",Number),_.q("design:paramtypes",[])],Cc.prototype,"channelAvatarSize",null);_.L([_.U({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Cc);
_.Y(Cc,"ytd-video-description-infocards-section-renderer",function(){if(tLq!==void 0)return tLq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return tLq=l},{mode:_.Wf("kevlar_poly_si_batch_j067")?1:2});var qFi;var og=function(){return _.B.apply(this,arguments)||this};
_.m(og,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],og.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],og.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.infoIcon)"}),_.q("design:type",Object)],og.prototype,"infoIcon",void 0);_.L([_.U({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],og);
_.Y(og,"ytd-eom-settings-disclaimer-renderer",function(){if(qFi!==void 0)return qFi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return qFi=l},{mode:1});var vc1;var $g=function(){return _.B.apply(this,arguments)||this};
_.m($g,_.B);_.Ji.Object.defineProperties($g.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.suppressPaddingDisclaimer)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$g.prototype,"componentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$g.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],$g.prototype,"suppressPaddingDisclaimer",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],$g);
_.Y($g,"ytd-product-list-header-renderer",function(){if(vc1!==void 0)return vc1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return vc1=l},{mode:1});var NKq;var Wq=function(){return _.B.apply(this,arguments)||this};
_.m(Wq,_.B);Wq.prototype.computeThumbnailStyle=function(l){if(l&&(l=_.t$(l)))return"background-color:"+l+";"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Wq.prototype,"rendererBehaviors",void 0);_.L([_.T(),_.q("design:type",Object)],Wq.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Wq);
_.Y(Wq,"ytd-hashtag-tile-renderer",function(){if(NKq!==void 0)return NKq;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return NKq=l},{mode:1});var r11;var de=function(){return _.B.apply(this,arguments)||this};
_.m(de,_.B);de.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],de.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],de);
_.Y(de,"ytd-sponsorships-alert-renderer",function(){if(r11!==void 0)return r11;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return r11=l},{mode:1});var DbH;var ge=function(){return _.B.apply(this,arguments)||this};
_.m(ge,_.B);ge.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Ji.Object.defineProperties(ge.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.a("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.a("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.L([_.K(_.B8),_.q("design:type",Object)],ge.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],ge.prototype,"ytdLockupBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.L([_.T({selector:_.vi}),_.q("design:type",Object)],ge.prototype,"isGridViewEnabled",void 0);
_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ge.prototype,"watchFeedBigThumbs",null);_.L([_.R("isGridViewEnabled"),_.T({reflectToAttribute:!0}),_.q("design:type",String),_.q("design:paramtypes",[])],ge.prototype,"thumbnailWidth",null);_.L([_.T(),_.q("design:type",Object)],ge.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],ge);
_.Y(ge,"ytd-compact-movie-renderer",function(){if(DbH!==void 0)return DbH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return DbH=l},{mode:1});var SFS;var QJx;var xbH=_.hT("HTML_DIR")==="rtl",we=function(){var l=_.B.apply(this,arguments)||this;l.engagementPanel=!1;l.maxLines=2;l.expandButtonOffset=0;l.showExpandButton=!1;l.isTruncated=!1;l.isExpanded=!1;l.currentSnippetType=2;l.alwaysShowExpandButton=!1;l.JSC$14307_lastWidth=NaN;l.observer=null;l.left=0;l.right=0;l.mid=0;l.longestSnippetLength=0;l.isFinalSnippet=!1;l.isFirstMutation=!1;l.isResetMutation=!1;l.OVERFLOW_THRESHOLD=5;return l};
_.m(we,_.B);_.X=we.prototype;_.X.onClick=function(l){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;if((e=window.getSelection())==null||!e.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.X.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.X.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.X.updateTextOnSnippetTypeChange=function(){_.a("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.X.setUpBinarySearch=function(l){l=l*this.maxLines/8;this.left=0;var e,O;this.right=Math.min(l*2,(O=(e=this.simpleText)==null?void 0:e.length)!=null?O:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.X.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.X.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.hG(new _.Hk("AttributedSnippet is empty when the description is not empty",this.text))};
_.X.mutationCallback=function(){if(this.observer!=null){var l=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var e=Math.floor(l*this.maxLines/8);this.setSnippetText(this.text,e);e!==0||this.attributedTextIsEmpty()||_.hG(new _.Hk("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;l=l*this.maxLines/8;this.left=0;var O;this.right=Math.min(l*2,(O=(e=this.simpleText)==null?void 0:e.length)!=null?O: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)}}};
_.X.mutationObserve=function(l){var e=this;this.observer||(this.observer=new MutationObserver(function(){e.mutationCallback()}));
this.observer.observe(l,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.X.attached=function(){var l=this;_.OK(this,function(){l.resize()})};
_.X.isExpandedChanged=function(){_.$u(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.X.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)};
_.X.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var l="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((xbH?"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",l);this.snippetContainer.style.setProperty("mask-image",
l)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(xbH?"right":"left",this.expandButtonOffset+"px")};
_.X.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.X.setSnippetText=function(l,e){l||(l={});if(_.eN(l)){var O=x0(l,e);O.attachmentRuns||O.commandRuns||O.decorationRuns||O.styleRuns||O.alignment||O.lineBreakMode?this.attributedSnippetTextEl?(_.a("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=x0(l,e),this.attributedSnippetTextEl.headerRuns=s$V(e,this.headerRuns)):this.attributedSnippetText={data:x0(l,e),headerRuns:s$V(e,this.headerRuns)},this.currentSnippetType=0):_.hG(new _.Hk("Tried to set snippet text when HTML element was null",
l)):(this.plainSnippetText.textContent=Sb(l.content||"",e),this.currentSnippetType=2)}else{a:{O=DWg(l,e);if(O.runs){O=_.b(O.runs);for(var E=O.next();!E.done;E=O.next())if(E=E.value,E.bold||E.deemphasize||E.italics||E.strikethrough||E.textColor||E.navigationEndpoint||_.I(E,Y0)){O=!0;break a}}O=!1}O?this.formattedSnippetText?(this.formattedSnippetText.text=DWg(l,e),this.currentSnippetType=1):_.hG(new _.Hk("Tried to set snippet text when HTML element was null",l)):(this.plainSnippetText.textContent=
Sb(_.lG(l),e),this.currentSnippetType=2)}};
_.X.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.X.attributedTextIsEmpty=function(){var l=this.text;if(!_.eN(l))return!0;var e;return((e=l.content)==null?void 0:e.length)===0?!0:!1};
_.X.resize=function(l){if(this.snippetText){if(l===void 0?0:l)this.JSC$14307_lastWidth=NaN;var e=this.hostElement.offsetWidth;if(e!==this.JSC$14307_lastWidth&&!this.isExpanded)if(this.JSC$14307_lastWidth=e,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;l=0;var O,E;e=Math.min(e*this.maxLines/8*2,(E=(O=this.simpleText)==null?void 0:O.length)!=null?E:0)-1;for(O=0;l<=e;)E=Math.floor(l+(e-l)/2),this.setSnippetText(this.text,E),this.isOverflowing()?e=E-1:(l=E+1,O=E);this.setSnippetText(this.text,O);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.X.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.X.onExpandClick=function(){var l=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.a("inline_expander_reset_focus_killswitch")||_.OK(this,function(){var e;((e=_.V2().resolve(_.MG(_.of)))==null?0:e.isKeyBoardInUse())&&_.OW(l.hostElement)});
_.$u(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.X.onCollapseClick=function(){this.collapse();_.$u(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.X.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.X.computeExpandButtonOffset=function(){var l=this.expandSizer;return l?xbH?l.offsetParent?l.offsetParent.offsetWidth-l.offsetWidth-l.offsetLeft:0:l.offsetLeft:0};
_.Ji.Object.defineProperties(we.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.eN(this.text)?this.text.content||"":_.lG(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 _.eN(this.text)?!0:this.text&&_.a("web_replace_formatted_with_attributed_string")&&XSu(this.text)?(this.text=_.Ut(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}}});
we.prototype.onTextChanged=we.prototype.onTextChanged;we.prototype.updateMaskAndExpandButtonOffset=we.prototype.updateMaskAndExpandButtonOffset;we.prototype.updateSnippetContainerMaxHeight=we.prototype.updateSnippetContainerMaxHeight;we.prototype.isExpandedChanged=we.prototype.isExpandedChanged;we.prototype.updateTextOnSnippetTypeChange=we.prototype.updateTextOnSnippetTypeChange;we.prototype.updateIsFormattedExpanded=we.prototype.updateIsFormattedExpanded;we.prototype.updateIsAttributedExpanded=we.prototype.updateIsAttributedExpanded;
we.prototype.onClick=we.prototype.onClick;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],we.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],we.prototype,"text",void 0);_.L([_.T(),_.q("design:type",Array)],we.prototype,"headerRuns",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],we.prototype,"engagementPanel",void 0);_.L([_.T(),_.q("design:type",Object)],we.prototype,"maxLines",void 0);
_.L([_.T(),_.q("design:type",String)],we.prototype,"expandLabel",void 0);_.L([_.T(),_.q("design:type",String)],we.prototype,"collapseLabel",void 0);_.L([_.T(),_.q("design:type",Object)],we.prototype,"expandCommand",void 0);_.L([_.T(),_.q("design:type",Object)],we.prototype,"expandButtonOffset",void 0);_.L([_.R("text"),_.q("design:type",String),_.q("design:paramtypes",[])],we.prototype,"simpleText",null);
_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],we.prototype,"onClick",null);_.L([_.R("text","isExpanded"),_.q("design:type",Object),_.q("design:paramtypes",[])],we.prototype,"expandedText",null);_.L([_.R("headerRuns","isExpanded"),_.q("design:type",Object),_.q("design:paramtypes",[])],we.prototype,"expandedHeaderRuns",null);
_.L([_.R("text"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],we.prototype,"hasAttributedStringText",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],we.prototype,"showExpandButton",void 0);_.L([_.R("collapseLabel","isExpanded"),_.q("design:type",Object),_.q("design:paramtypes",[])],we.prototype,"showCollapseButton",null);_.L([_.T(),_.q("design:type",Object)],we.prototype,"isTruncated",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],we.prototype,"isExpanded",void 0);_.L([_.T(),_.q("design:type",Boolean)],we.prototype,"isAttributedExpanded",void 0);_.L([_.AA("isExpanded","hasAttributedStringText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"updateIsAttributedExpanded",null);_.L([_.T(),_.q("design:type",Boolean)],we.prototype,"isFormattedExpanded",void 0);
_.L([_.AA("isExpanded","hasAttributedStringText"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"updateIsFormattedExpanded",null);_.L([_.T(),_.q("design:type",Number)],we.prototype,"currentSnippetType",void 0);_.L([_.R("currentSnippetType"),_.q("design:type",Object),_.q("design:paramtypes",[])],we.prototype,"useAttributedSnippet",null);
_.L([_.R("currentSnippetType"),_.q("design:type",Object),_.q("design:paramtypes",[])],we.prototype,"useFormattedSnippet",null);_.L([_.R("currentSnippetType"),_.q("design:type",Object),_.q("design:paramtypes",[])],we.prototype,"usePlainSnippet",null);_.L([_.T(),_.q("design:type",Object)],we.prototype,"alwaysShowExpandButton",void 0);_.L([_.AA("currentSnippetType"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"updateTextOnSnippetTypeChange",null);
_.L([_.T(),_.q("design:type",Object)],we.prototype,"attributedSnippetText",void 0);_.L([_.aB("#snippet"),_.q("design:type",HTMLElement)],we.prototype,"snippetContainer",void 0);_.L([_.aB("#snippet-text"),_.q("design:type",HTMLElement)],we.prototype,"snippetText",void 0);_.L([_.aB("#plain-snippet-text"),_.q("design:type",HTMLElement)],we.prototype,"plainSnippetText",void 0);_.L([_.aB("#formatted-snippet-text"),_.q("design:type",Object)],we.prototype,"formattedSnippetText",void 0);
_.L([_.aB("#attributed-snippet-text"),_.q("design:type",Object)],we.prototype,"attributedSnippetTextEl",void 0);_.L([_.aB("#expand"),_.q("design:type",HTMLElement)],we.prototype,"expandButton",void 0);_.L([_.aB("#expand-sizer"),_.q("design:type",HTMLElement)],we.prototype,"expandSizer",void 0);_.L([_.y0("isExpanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"isExpandedChanged",null);
_.L([_.AA("isExpanded","maxLines"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"updateSnippetContainerMaxHeight",null);_.L([_.AA("isTruncated","showExpandButton","expandButtonOffset"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"updateMaskAndExpandButtonOffset",null);
_.L([_.y0("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],we.prototype,"onTextChanged",null);_.L([_.U({is:"ytd-text-inline-expander",disableElementRegistration:!0})],we);
_.Y(we,"ytd-text-inline-expander",function(){if(QJx===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);QJx=l}l=QJx;return l},{mode:2});var Ak=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return l};
_.m(Ak,_.B);Ak.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Ak.prototype.handleUpdateDescriptionAction=function(l){if(l=_.I(l,_.mSi))if(l.attributedDescription)this.set("data.attributedDescriptionBodyText",l.attributedDescription);else if(l.description){var e;((e=this.data)==null?0:e.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Ut(l.description)):this.set("data.descriptionBodyText",l.description)}};
_.Ji.Object.defineProperties(Ak.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.attributedDescriptionBodyText)||!((e=this.data)==null||!e.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.collapsedLineCount){var e;return(e=this.data)==null?void 0:e.collapsedLineCount}l=_.Cv("web_watch_description_collapsed_default_lines",12);if(_.a("ww_desc_line_page_size_ks"))return l;e=Math.round(_.K0().height*_.Cv("web_watch_description_screen_height_percentage",.5)/20);return Math.max(e,l)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return(O=(l=this.data)==null?void 0:l.descriptionBodyText)!=null?O:(e=this.data)==null?void 0:e.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.sourceAttributions}}});
Ak.prototype.panelContentVisibleChanged=Ak.prototype.panelContentVisibleChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ak.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ak.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ak.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Boolean)],Ak.prototype,"panelContentVisible",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ak.prototype,"engagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ak.prototype,"shortsPanel",void 0);_.L([_.aB("#inline-expander"),_.q("design:type",Object)],Ak.prototype,"inlineExpander",void 0);
_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ak.prototype,"panelContentVisibleChanged",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ak.prototype,"hasDescriptionText",null);_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],Ak.prototype,"collapsedLines",null);
_.L([_.R("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ak.prototype,"descriptionText",null);_.L([_.R("data","data.headerRuns"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ak.prototype,"headerRuns",null);_.L([_.R("data","data.sourceAttributions"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ak.prototype,"sourceAttributions",null);
_.L([_.U({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Ak);
_.Y(Ak,"ytd-expandable-video-description-body-renderer",function(){if(SFS!==void 0)return SFS;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return SFS=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var l4H;var eQH=_.XO(function(l){var e=l.data;return _.W("factoid-renderer",{class:"ytwFactoidRendererHost"},_.W("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return e().accessibilityText}},_.W("span",{class:"ytwFactoidRendererValue"},_.W(_.zK,{text:function(){return e().value}})),_.W("span",{class:"ytwFactoidRendererLabel"},_.W(_.zK,{text:function(){return e().label}}))))},"Qb");_.Zw(eQH,"factoid-renderer",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;return _.W("upload-time-factoid-renderer",null,_.W(_.Tn,{data:function(){return e().factoid}},{factoidRenderer:eQH}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.Vh}});_.Zw(_.XO(function(l){var e=l.data;return _.W("view-count-factoid-renderer",null,_.W(_.Tn,{data:function(){return e().factoid}},{factoidRenderer:eQH}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.Vh}});var nc=function(){var l=_.B.apply(this,arguments)||this;l.shortsPanel=!1;l.engagementPanel=!1;l.watchWhileSdp=_.a("shorts_desktop_watch_while_sdp");return l};
_.m(nc,_.B);nc.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"}}}}};
_.Ji.Object.defineProperties(nc.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var l;return(l=this.data)==null?void 0:l.channel}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],nc.prototype,"componentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nc.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],nc.prototype,"shortsPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],nc.prototype,"engagementPanel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],nc.prototype,"watchWhileSdp",void 0);_.L([_.R("shortsPanel","engagementPanel","data.channel"),_.q("design:type",Object),_.q("design:paramtypes",[])],nc.prototype,"showChannelInfo",null);_.L([_.U({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],nc);
_.Y(nc,"ytd-video-description-header-renderer",function(){if(l4H!==void 0)return l4H;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return l4H=l},{mode:1});var Oh1;var ag=function(){return _.B.apply(this,arguments)||this};
_.m(ag,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ag.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ag.prototype,"noPadding",void 0);_.L([_.T(),_.q("design:type",Object)],ag.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],ag);
_.Y(ag,"ytd-list-item-view-model",function(){if(Oh1!==void 0)return Oh1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Oh1=l},{mode:1});var ELk;var JS1;var XPC;var zQ1;var kg=function(){var l=_.B.apply(this,arguments)||this;l.adaptiveFullWidth=!1;l.modernButtons=_.a("web_modern_buttons");l.buttonOverrides={style:"call-to-action",type:"filled"};l.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return l};
_.m(kg,_.B);kg.prototype.handleSetTimestamp_=function(l){this.data&&this.data.shortUrl&&(_.ud(this.hostElement).querySelector("#share-url").value=l.isSet?_.NC(this.data.shortUrl,"t",l.timestamp):this.data.shortUrl)};
kg.prototype.handleSignalActionCopyShareUrl_=function(l,e){(_.a("killswitch_copy_link_target_check")||_.ud(this.hostElement).querySelector("#copy-button")===e)&&this.copyUrlToClipboard()};
kg.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ud(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
kg.prototype.computeStyle_=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kg.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.q("design:type",String)],kg.prototype,"rendererStyle",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kg.prototype,"adaptiveFullWidth",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kg.prototype,"modernButtons",void 0);_.L([_.T(),_.q("design:type",Object)],kg.prototype,"buttonOverrides",void 0);_.L([_.Ps({is:"yt-copy-link-renderer",disableElementRegistration:!0})],kg);
_.Y(kg,"yt-copy-link-renderer",function(){if(zQ1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;XPC===void 0&&(XPC=document.createElement("template"));var E=XPC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);zQ1=l}l=zQ1;return l},{mode:2});_.Y7("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Ig=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return l};
_.m(Ig,_.B);_.X=Ig.prototype;_.X.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.X.attached=function(){this.keyboardFocused=!1};
_.X.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var l=_.V2().resolve(_.MG(_.of));l&&(this.keyboardFocused=l.isKeyBoardInUse())}};
_.X.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.X.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}};
_.X.onChange_=function(){if(this.data){var l=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;l&&this.ytComponentBehavior.resolveCommand(l);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.X.handleUpdateToggleAction_=function(l){(l=_.I(l,cZ1))&&this.data&&l.targetId==this.data.targetId&&this.set("data.toggled",l.toggled)};
_.X.toBoolean_=function(l){return!!l};
_.X.reset=function(){};
_.X.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("data-changed",this.data))};
_.X.updateDataToggledFromBinding=function(l){this.set("data.toggled",l.detail.value)};
Ig.prototype.dataChangedForBinding=Ig.prototype.dataChangedForBinding;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ig.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ig.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Ig.prototype,"data",void 0);_.L([_.T({computed:"computeDescription_(data.*)"}),_.q("design:type",Object)],Ig.prototype,"description_",void 0);_.L([_.T({value:function(){return!!_.V2().resolve(_.MG(_.of))&&_.a("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.q("design:type",Boolean)],Ig.prototype,"useKeyboardFocused",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],Ig.prototype,"keyboardFocused",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ig.prototype,"dataChangedForBinding",null);_.L([_.Ps({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Ig);
_.Y(Ig,"yt-toggle-form-field-renderer",function(){if(JS1===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;ELk===void 0&&(ELk=document.createElement("template"));var E=ELk;O.call(e,E.content.cloneNode(!0),l.content.firstChild);JS1=l}l=JS1;return l},{mode:2});var bhS;var Muq;var me=function(){var l=_.B.apply(this,arguments)||this;l.isDarkTheme=!1;l.isSearch=!1;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.noTopMargin=_.a("kevlar_watch_no_top_margin");l.maskFade=_.a("web_watch_chips_mask_fade");l.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 l};
_.m(me,_.B);_.X=me.prototype;_.X.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}}}}}};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.X.dataChanged=function(){var l=this.getSelectedIndex();if(l>0)this.selected=l;else{this.selected=0;var e,O;(e=this.ytScrollableChipCloudBehavior)==null||(O=e.reset)==null||O.call(e)}};
_.X.getSelectedIndex=function(){var l;if((l=this.data)==null||!l.chips)return-1;l=-1;for(var e,O=0;O<((e=this.data)==null?void 0:e.chips.length);O++){var E=void 0,J=void 0;if((E=this.data)==null?0:(J=E.chips[O].chipCloudChipRenderer)==null?0:J.isSelected){l=O;break}}return l};
_.X.onResize=function(){var l=this.ytScrollableChipCloudBehavior;_.OK(l,l.setContainerWidthDiff);Mp(this.ytScrollableChipCloudBehavior)};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.handleRelatedChipCommand=function(l,e){l=this.JSC$14334_chipsSelector.indexOf(e);l!==-1&&this.JSC$14334_chipsSelector.selectIndex(l)};
_.X.handleChipCloudChipSelectAction=function(l){l=this.JSC$14334_chipsSelector.indexOf(l);l>-1&&this.JSC$14334_chipsSelector.selectIndex(l)};
_.X.handleChipCloudChipDeselectAction=function(){var l=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14334_chipsSelector&&((l==null?0:l.continuationCommand)?_.ii(this.hostElement,[l]):(l==null?0:l.searchEndpoint)?this.ytComponentBehavior.resolveCommand(l):l&&_.wQ(this.hostElement,[l],this.hostElement),this.JSC$14334_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.X.updateSelectedFromBinding=function(l){this.selected=l.detail.value};
me.prototype.onResize=me.prototype.onResize;me.prototype.dataChanged=me.prototype.dataChanged;me.prototype.isSearchChanged=me.prototype.isSearchChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],me.prototype,"actionHandlerBehavior",void 0);
_.L([_.K(_.sl),_.q("design:type",Object)],me.prototype,"ironResizableBehavior",void 0);_.L([_.K(),_.q("design:type",bx)],me.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],me.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],me.prototype,"data",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],me.prototype,"selected",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],me.prototype,"isDarkTheme",void 0);_.L([_.T({value:160}),_.q("design:type",Number)],me.prototype,"scrollDistance",void 0);_.L([_.T(),_.q("design:type",Object)],me.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],me.prototype,"darkerDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],me.prototype,"noTopMargin",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],me.prototype,"maskFade",void 0);_.L([_.aB("#chips"),_.q("design:type",Object)],me.prototype,"JSC$14334_chipsSelector",void 0);_.L([_.AA("isSearch"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],me.prototype,"isSearchChanged",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],me.prototype,"dataChanged",null);
_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],me.prototype,"onResize",null);_.L([_.Ps({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],me);
_.Y(me,"yt-chip-cloud-renderer",function(){if(Muq===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;bhS===void 0&&(bhS=document.createElement("template"));var E=bhS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Muq=l}l=Muq;return l},{mode:2});var VuS,ZhR=function(){return VuS!==void 0?VuS:VuS=document.createElement("template")};
document.head.appendChild(ZhR().content);var uHF;var CTx=document.head,oLq=CTx.appendChild,$2C;if(uHF===void 0){var W96=document.createElement("template");_.p(W96,"");W96.content.insertBefore(ZhR().content.cloneNode(!0),W96.content.firstChild);uHF=W96}$2C=uHF;oLq.call(CTx,$2C.content);var d2k=_.XO(function(l){var e=l.data;return _.W("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.W(_.A,{cond:function(){return _.XL(e().image)},
then:function(O){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.W(_.Jm,{data:O,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.W("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.W(_.zK,{text:function(){return e().title}})),_.W("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.W(_.zK,{text:function(){return e().subtitle}})))),_.W(_.A,{cond:function(){var O;
return(O=e())==null?void 0:O.hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var gL6=_.XO(function(l){var e=l.data;return _.W("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.W(_.Tn,{data:function(){var O;return(O=e().offerPlanDetailsItem)!=null?O:[]}},{offerPlanDetailsItemViewModel:function(O){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.W(d2k,{data:O.data}))}})),_.W("div",null,_.W(_.A,{cond:function(){return e().hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var ihq=_.XO(function(l){var e=l.data;l=_.b(_.AF(!1,void 0,"SpEGQd"));var O=l.next().value,E=l.next().value,J=_.pd(function(){E(!O());return!1}),z=function(){var M;
return(M=e().offerPlanDetailsContainer)!=null?M:[]};
return _.W("lp-complex-offer-card-details-view-model",null,_.W("div",null,_.W(_.A,{cond:function(){return O()},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":J,"aria-expanded":O},_.W(_.zK,{text:function(){return e().expandedTitle}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.W(_.Tn,{data:z},{offerPlanDetailsContainerViewModel:function(M){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.W(gL6,{data:M.data}))}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.W(_.zK,{text:function(){return e().legalText}})))},
else:function(){return _.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":J,"aria-expanded":O},_.W(_.zK,{text:function(){return e().collapsedTitle}}),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.W(_.cF,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var wPS=_.XO(function(l){var e=l.data;return _.W("lp-complex-offer-card-option-view-model",null,_.W("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.W(_.A,{cond:function(){return e().topDividerText},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.W(_.zK,{text:function(){return e().topDividerText}}))))}}),_.W(_.A,{cond:function(){return e().planPricingPrimary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.W(_.zK,{text:function(){return e().planPricingPrimary}}))}}),_.W(_.A,{cond:function(){return e().planPricingSecondary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.W(_.zK,{text:function(){return e().planPricingSecondary}}))}}),_.W(_.A,{cond:function(){return e().primaryButton},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.W(_.Tn,{data:function(){return e().primaryButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var ASq=_.XO(function(l){var e=l.data;var O=function(){var z;return((z=e())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
l={};var E={},J={};return _.W("ytm-lp-complex-offer-card-view-model",null,_.W("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.W("div",{class:_.ax((l.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=O,l),"ytmLpComplexOfferCardViewModelCardContainer")},_.W(_.A,{cond:function(){var z;return(z=e())==null?void 0:z.bannerText},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.W("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.W(_.zK,{text:function(){return e().bannerText}})))}}),_.W(_.A,{cond:function(){return _.XL(e().logo)},
then:function(z){var M={};return _.W("div",{class:_.ax((M.ytmLpComplexOfferCardViewModelLogoAlignLeft=O,M),"ytmLpComplexOfferCardViewModelLogo")},_.W(_.Jm,{data:z,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.W("div",{class:_.ax((E.ytmLpComplexOfferCardViewModelTitleAlignLeft=O,E),"ytmLpComplexOfferCardViewModelTitle")},_.W(_.zK,{text:function(){return e().title}})),_.W(_.A,{cond:function(){var z;
return(z=e())==null?void 0:z.subtitle},
then:function(){var z={};return _.W("div",{class:_.ax((z.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=O,z),"ytmLpComplexOfferCardViewModelSubtitle")},_.W(_.zK,{text:function(){return e().subtitle}}))}}),_.W(_.A,{cond:function(){return e().planPricingPrimary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.W(_.zK,{text:function(){return e().planPricingPrimary}}))}}),_.W(_.A,{cond:function(){return e().planPricingSecondary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.W(_.zK,{text:function(){return e().planPricingSecondary}}))}}),_.W(_.A,{cond:function(){return e().purchaseButton},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.W(_.Tn,{data:function(){return e().purchaseButton}},{buttonViewModel:function(z){return _.W(_.hM,{data:z.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.W(_.A,{cond:function(){var z;
return(z=e())==null?void 0:z.offerOptions},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.W(_.Tn,{data:function(){return e().offerOptions}},{lpComplexOfferCardOptionViewModel:wPS}))}}),_.W("div",{class:_.ax((J.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=O,J),"ytmLpComplexOfferCardViewModelLegalText")},_.W(_.zK,{text:function(){return e().legalText}})),_.W(_.A,{cond:function(){var z;
return(z=e())==null?void 0:z.offerCardDetails},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.W(_.Tn,{data:function(){return e().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:ihq}))}}))))},"Xb");var nLC=_.XO(function(l){var e=l.data;var O=function(){var M;return((M=e())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
l={};var E={},J={},z={};return _.W("ytm-lp-complex-offer-card-section-view-model",null,_.W("div",{class:_.ax("ytmLpComplexOfferCardSectionViewModelHost")},_.W("div",{class:_.ax((l.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=O,l),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.W("div",{class:_.ax((E.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=O,E),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.W("h2",{class:_.ax((J.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
O,J),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.W(_.zK,{text:function(){return e().title}}))),_.W(_.A,{cond:function(){var M;
return(M=e())==null?void 0:M.subtitle},
then:function(){var M={},Z={};return _.W("div",{class:_.ax((M.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=O,M),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.W("div",{class:_.ax((Z.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=O,Z),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.W(_.zK,{text:function(){return e().subtitle}})))}}),_.W("div",{class:_.ax((z.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=O,z),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.W(_.Tn,{data:function(){var M;
return(M=e().offerPlans)!=null?M:[]}},{lpComplexOfferCardViewModel:function(M){return _.W("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.W(ASq,{data:M.data}))}})))))},"Yb");var a4H=_.XO(function(l){return _.W("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.W("div",{class:"ytLpCouponBannerViewModelIcon"},_.W(_.cF,{icon:function(){return"price_tag"}})),_.W("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.W("div",{class:"ytLpCouponBannerViewModelContent"},_.W("div",{class:"ytLpCouponBannerViewModelHeading"},_.W(_.zK,{text:function(){var e;
return(e=l.data())==null?void 0:e.title}})),_.W("div",{class:"ytLpCouponBannerViewModelBody"},_.W(_.zK,{text:function(){var e;
return(e=l.data())==null?void 0:e.subtitle}})))))},"Zb");
a4H.idomCompat=!0;_.yp=qBC.getInstance();var kbR=_.XO(function(l){return _.W("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":l.shouldAriaHideContent},_.W("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:l.questionId},_.W(_.zK,{text:l.question})))},"$b"),I41=_.XO(function(l){var e=l.data;
var O=l.themeOverride;l=_.b(_.AF(!1,void 0,"ljTVPd"));var E=l.next().value,J=l.next().value;l=_.pd(function(){J(!E());return!1});
var z=function(){return E()?"EXPAND_LESS":"EXPAND_MORE"},M=("faq-container"+_.Be(_.yp)).toString(),Z="faq-question-and-answers-section-question"+_.Be(_.yp),u={},d={};
return _.W("faq-entry-view-model-c3",null,_.W("div",{class:_.ax("yt-lp-faq-entry-view-model",(u["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return O==null?void 0:O().useDarkTheme},u))},_.W("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":l,role:"button","aria-expanded":E,"aria-labelledby":Z.toString(),"tab-index":"0"},_.W(kbR,{question:function(){return e().question},
questionId:Z,shouldAriaHideContent:!0}),_.W(_.A,{cond:function(){return E()!==void 0},
then:function(){return _.W("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.W(_.cF,{icon:z,ariaHidden:!0}),_.W("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.W("div",{class:_.ax("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(d["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!E()},d))},_.W("div",{id:M},_.W(_.KH,{each:function(){return e().answers||[]}},function(g){return _.W("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.W(_.zK,{text:g}))})))))},"ac");
I41.idomCompat=!0;var m2i=_.XO(function(l){var e=l.data;var O=l.themeOverride;l={};return _.W("lp-faq-section-view-model-c3",null,_.W("div",{class:_.ax("yt-lp-faq-section-view-model",(l["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},l["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},l))},_.W("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.W(_.A,{cond:function(){return e().header},
then:function(E){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.W(_.zK,{text:E}))}}),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.W(_.Tn,{data:function(){return e().faqs}},{faqEntryViewModel:function(E){return _.W(I41,{data:E.data,
themeOverride:O})}})),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.W(_.KH,{each:function(){return e().footers||[]}},function(E){return _.W(_.zK,{text:E})})),_.W(_.A,{cond:function(){return e().legal},
then:function(E){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.W(_.zK,{text:E}))}}))))},"bc");
m2i.idomCompat=!0;var ySk=_.XO(function(l){var e=l.data;var O=l.themeOverride;_.sC(function(){var M=e().gtmId;M&&_.fQ(M,_.hT("GL",""))});
var E={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,Z,u;return(u=(M=e().logo)==null?void 0:(Z=M.accessibilityData)==null?void 0:Z.label)!=null?u:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},J=_.V2().resolve(_.MG(_.lp)),z=function(){return J&&J()||(O==null?void 0:O().useDarkTheme)};
return _.W("lp-header-section-view-model",null,_.W("div",{class:function(){var M=e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",Z=e().marginType==="LP_SECTION_MARGIN_TYPE_TOP",u=O==null?void 0:O().useDarkTheme,d=["lp-header-section-view-model"];M&&d.push("lp-header-section-view-model--ptc-layout-type");Z&&d.push("lp-header-section-view-model__lp-header-section-margin");u&&d.push("lp-header-section-view-model--premium-force-dark-mode");return d.join(" ")}},_.W(_.A,{cond:function(){return e().logo},
then:function(){return _.W("div",null,_.W(_.A,{cond:z,then:function(){return _.W(_.A,{cond:function(){var M;return(M=e().logo)==null?void 0:M.imageDark},
then:function(M){return _.W(_.Jm,Object.assign({},{data:M},E))}})},
else:function(){return _.W(_.A,{cond:function(){var M;return(M=e().logo)==null?void 0:M.imageLight},
then:function(M){return _.W(_.Jm,Object.assign({},{data:M},E))}})}}))}}),_.W(_.A,{cond:function(){return e().title},
then:function(M){return _.W("div",{class:"lp-header-section-view-model__lp-header-title"},_.W(_.zK,{text:M}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.W(_.A,{cond:function(){return e().subtitles},
then:function(M){return _.W(_.KH,{each:M},function(Z){return _.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.W(_.zK,{text:Z}))})}})),_.W(_.A,{cond:function(){return e().additionalInfo},
then:function(M){return _.W("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.W(_.zK,{text:M}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.W(_.A,{cond:function(){return e().primaryButton},
then:function(M){return _.W("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.W(_.Tn,{data:M},{buttonViewModel:_.hM}))}}),_.W(_.A,{cond:function(){return e().secondaryButton},
then:function(M){return _.W("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.W(_.Tn,{data:M},{buttonViewModel:_.hM}))}})),_.W(_.A,{cond:function(){return e().otherOffersInfo},
then:function(M){return _.W("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.W(_.zK,{text:M}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.W(_.A,{cond:function(){return e().billingInfo},
then:function(M){return _.W(_.KH,{each:M},function(Z){return _.W("div",null,_.W(_.zK,{text:Z}))})}}))))},"cc");
ySk.idomCompat=!0;var pPH=_.XO(function(l){var e=l.data;var O=_.Et(l.themeOverride,{useDarkTheme:!1});l={};l=_.ax("ytm-lp-headline-section-view-model",(l["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return O().useDarkTheme},l));
return _.W("lp-headline-section-view-model",null,_.W("div",{class:l},_.W("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.W(_.zK,{text:function(){return e().title}})),_.W(_.A,{cond:function(){return e().subtitle},
then:function(E){return _.W("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.W(_.zK,{text:E}))}})))},"dc");var K91=_.XO(function(l){var e=l.data;var O=l.themeOverride;var E=_.V2().resolve(_.MG(_.lp)),J=function(){return E&&E()||(O==null?void 0:O().useDarkTheme)},z=function(){var d,g;
var w=J()?(d=e().textBackgroundImage)==null?void 0:d.imageDark:(g=e().textBackgroundImage)==null?void 0:g.imageLight;return XqV((w==null?void 0:w.sources)||[])},M=function(){var d,g;
return J()?(d=e().featureImage)==null?void 0:d.imageDark:(g=e().featureImage)==null?void 0:g.imageLight},Z=function(){return e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},u=function(){var d,g;
return J()?(d=e().logo)==null?void 0:d.imageDark:(g=e().logo)==null?void 0:g.imageLight};
return _.W("ytm-lp-large-feature-section-view-model",null,_.W("div",{class:function(){var d=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",g=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",w=(e().index||0)%2===1,n=O==null?void 0:O().useDarkTheme,k=["yt-lp-large-feature-section-view-model"];d?k.push("yt-lp-large-feature-section-view-model--music-feature-type"):g?k.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):w||k.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
n&&k.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return k.join(" ")}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.W(_.A,{cond:M,
then:function(){return _.W(_.Jm,{data:function(){return M()},
alt:function(){var d,g,w;return(w=(d=e().featureImage)==null?void 0:(g=d.accessibilityData)==null?void 0:g.label)!=null?w:""},
contentMode:Z})}})),_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var d;return((d=z())==null?0:d.url)?"background-image: url("+_.nU(z().url)+");":""}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.W(_.A,{cond:u,
then:function(){return _.W(_.Jm,{data:function(){return u()},
alt:function(){var d,g,w;return(w=(d=e().logo)==null?void 0:(g=d.accessibilityData)==null?void 0:g.label)!=null?w:""},
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"})}}),_.W(_.A,{cond:function(){return e().eyebrowText},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.W(_.zK,{text:function(){return e().eyebrowText}}))}}),_.W(_.A,{cond:function(){return e().title},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.W(_.zK,{text:function(){return e().title}}))}}),_.W(_.A,{cond:function(){return e().subtitles},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.W(_.KH,{each:function(){return e().subtitles||[]}},function(d){return _.W(_.zK,{text:d})}))}})))))},"ec");
K91.idomCompat=!0;var jrq=_.XO(function(l){return _.W("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.W("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.W(_.cF,{icon:function(){var e;return(e=l.data())==null?void 0:e.iconType},
className:function(){var e;switch((e=l.data())==null?void 0:e.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var e;return((e=l.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.W("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.W(_.zK,{text:function(){var e;
return(e=l.data())==null?void 0:e.text},
className:function(){var e;return((e=l.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"fc");var Hhx=_.XO(function(l){l=_.J3(l,{config:void 0,themeOverride:void 0});var e=l.data,O=l.config,E=l.themeOverride;l={};l=_.ax("ytm-lp-offer-card-option-view-model",(l["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var Z;return(Z=E())==null?void 0:Z.useDarkTheme},l));
var J=_.pd(function(){var Z,u;(Z=O())==null||(u=Z.handleRadioButtonClick)==null||u.call(Z,e());return!1}),z=function(){var Z;
return(Z=O())==null?void 0:Z.shouldDisplayRadioButton},M=function(){var Z;
return(Z=e().featureListItems)!=null?Z:[]};
return _.W("ytm-lp-offer-card-option-view-model",null,_.W("div",{class:l,"on:click":_.pd(function(){if(z()){var Z,u;(Z=O())==null||(u=Z.handleRadioButtonClick)==null||u.call(Z,e())}return!1})},_.W(_.A,{cond:z,
then:function(){return _.W("div",null,_.W("input",{type:"radio","on:click":J,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var Z;return!((Z=O())==null||!Z.isOptionSelected)}}))}}),_.W("div",null,_.W("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.W(_.zK,{text:function(){return e().eyebrowText}})),_.W("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.W(_.zK,{text:function(){return e().title}})),_.W("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.W(_.zK,{text:function(){return e().subtitle}})),_.W(_.A,{cond:function(){return M().length>0},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.W(_.Tn,{data:M},{lpFeatureListItemViewModel:jrq}))}}),_.W("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.W(_.zK,{text:function(){return e().description}})))))},"gc");
Hhx.idomCompat=!0;var cSq=_.XO(function(l){var e=l.data;var O=l.themeOverride;l=_.b(_.jN(function(){var z,M=(z=e().offerOptions)==null?void 0:z[0];return _.I(M,Uk1)||{}}));
var E=l.next().value,J=l.next().value;l={};return _.W("ytm-lp-offer-card-view-model",null,_.W("div",{class:_.ax("ytm-lp-offer-card-view-model",(l["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},l))},_.W("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.W(_.A,{cond:function(){return e().titleIconType},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.W(_.cF,{icon:function(){var z;return((z=e().titleIconType)==null?void 0:z.toString())||""}}))}}),_.W("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.W(_.zK,{text:function(){return e().title}})),_.W(_.Tn,{data:function(){return e().titleBadge}},{badgeViewModel:function(z){return _.W("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.W(_.MU,{data:z.data}))}})),_.W("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.W(_.Tn,{data:function(){return e().offerOptions}},{lpOfferCardOptionViewModel:function(z){var M=z.data;
return _.W(_.ZB,null,_.W("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.W(Hhx,{data:M,config:function(){var Z;return{shouldDisplayRadioButton:(e().offerOptions||[]).length>1,isOptionSelected:M().id===((Z=E())==null?void 0:Z.id),handleRadioButtonClick:function(u){return void J(u)}}},
themeOverride:O}))}})),_.W("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.W(_.Tn,{data:function(){var z;
return(z=E())==null?void 0:z.purchaseButtonOverride}},{buttonViewModel:_.hM}))))},"hc");
cSq.idomCompat=!0;var F90=_.XO(function(l){var e=l.data;var O=l.themeOverride;l={};l=_.ax("ytm-lp-offer-card-section-view-model",(l["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var E;return O==null?void 0:(E=O())==null?void 0:E.useDarkTheme},l));
return _.W("ytm-lp-offer-card-section-view-model",null,_.W("div",{class:l},_.W(_.A,{cond:function(){return e().title!==void 0},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.W("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.W(_.zK,{text:function(){return e().title}})),_.W(_.A,{cond:function(){return e().subtitle},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.W(_.zK,{text:function(){return e().subtitle}}))}}))}}),_.W("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.W(_.Tn,{data:function(){return e().offerCards}},{lpOfferCardViewModel:function(E){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.W(cSq,{data:E.data,
themeOverride:O}))}})),_.W(_.A,{cond:function(){return e().footer},
then:function(){return _.W("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.W(_.zK,{text:function(){return e().footer}}))}})))},"ic");var f4q=_.XO(function(l){var e=l.data;return _.W("lp-offer-table-cell-content-view-model",null,_.W("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.W(_.cK,null,_.W(_.jD,{when:function(){return e().title}},function(){return _.W(_.zK,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return e().title}})}),_.W(_.jD,{when:function(){return e().subTitle}},function(){return _.W(_.zK,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return e().subTitle}})}),_.W(_.jD,{when:function(){return e().featureDescription}},function(){return _.W(_.zK,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return e().featureDescription}})}),_.W(_.jD,{when:function(){return e().description}},function(){return _.W(_.zK,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return e().description}})}),_.W(_.jD,{when:function(){return e().iconType}},function(){return _.W("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.W(_.cF,{icon:function(){return e().iconType.toString()}}))}),_.W(_.jD,{when:function(){return e().purchaseButton}},function(){return _.W(_.Tn,{data:function(){return e().purchaseButton}},{buttonViewModel:function(O){return _.W("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.W(_.hM,{data:O.data}))}})}),_.W(_.jD,{when:function(){return e().note}},function(){return _.W(_.zK,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return e().note}})}),_.W(_.jD,{when:function(){return e().featureDetail}},function(){return _.W(_.zK,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return e().featureDetail}})}),_.W(_.jD,{when:function(){return e().badge}},function(){return _.W(_.Tn,{data:function(){return e().badge}},{badgeViewModel:_.MU})}))))},"jc");
f4q.idomCompat=!0;var RQ0=_.XO(function(l){var e=l.data;return _.W("lp-offer-table-cell-view-model",null,_.W("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(e().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.W(_.Tn,{data:function(){return e().contents}},{lpOfferTableCellContentViewModel:f4q})))},
"kc");
RQ0.idomCompat=!0;var TJS=_.XO(function(l){var e=l.data;var O=l.lpTableIsFirstRow;var E=l.lpTableIsLastRow;var J=function(){return(O==null?0:O())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},z=function(){return(O==null?0:O())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(E==null?0:E())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.W("ytm-lp-offer-table-row-view-model",null,_.W("div",{class:"yt-lp-offer-table-row-view-model"},_.W(_.Tn,{data:function(){return e().rowHeaderCell}},{lpOfferTableCellViewModel:function(M){return _.W("div",{class:J},_.W(RQ0,{data:M.data}))}}),_.W(_.Tn,{data:function(){return e().contentCells}},{lpOfferTableCellViewModel:function(M){return _.W("div",{class:z},_.W(RQ0,{data:M.data}))}})))},"lc");
TJS.idomCompat=!0;var srq=_.XO(function(l){var e=l.data;var O=l.themeOverride;var E=_.V2().resolve(_.MG(_.lp)),J=function(){return _.I(e().logo,O6q)||{}};
l={};return _.W("ytm-lp-offer-table-section-view-model",null,_.W("div",{class:"yt-lp-offer-table-view-model"},_.W(_.A,{cond:function(){var z,M;return E&&E()||(O==null?0:O().useDarkTheme)?(z=J())==null?void 0:z.imageDark:(M=J())==null?void 0:M.imageLight},
then:function(z){return _.W(_.Jm,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,Z,u;return(u=(M=J())==null?void 0:(Z=M.accessibilityData)==null?void 0:Z.label)!=null?u:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.W(_.zK,{text:function(){return e().title}})),_.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.W(_.zK,{text:function(){return e().subtitle}})),_.W(_.A,{cond:function(){return e().disclaimers},
then:function(z){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.W(_.KH,{each:z},function(M){return _.W("div",null,_.W(_.zK,{text:M}))}))}}),_.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.W(_.Tn,{data:function(){return e().rows}},{lpOfferTableRowViewModel:function(z,M){return _.W(TJS,{data:z.data,
lpTableIsFirstRow:function(){return M()===0},
lpTableIsLastRow:function(){return M()===e().rows.length-1}})}})),_.W("div",{class:_.ax((l["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return e().hasFooterBackground},l))},_.W(_.A,{cond:function(){return e().footer},
then:function(){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.W(_.zK,{text:function(){return e().footer}}))}}),_.W(_.A,{cond:function(){return e().footerTitle},
then:function(){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.W(_.zK,{text:function(){return e().footerTitle}}))}}),_.W(_.A,{cond:function(){return e().footerDescription},
then:function(){return _.W("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.W(_.zK,{text:function(){return e().footerDescription}}))}}))))},"mc");
srq.idomCompat=!0;var GbC=_.XO(function(l){var e=l.data;var O=l.themeOverride;var E=_.V2().resolve(_.MG(_.lp)),J=function(){var Z;return O==null?void 0:(Z=O())==null?void 0:Z.useDarkTheme},z=function(){var Z,u;
return E&&E()||J()?(Z=e().image)==null?void 0:Z.imageDark:(u=e().image)==null?void 0:u.imageLight};
l={};l=_.ax("ytm-lp-small-feature-section-view-model",(l["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=J,l));var M=function(){var Z,u,d;return(d=(Z=e().image)==null?void 0:(u=Z.accessibilityData)==null?void 0:u.label)!=null?d:""};
return _.W("ytm-lp-small-feature-section-view-model",{class:l},_.W(_.A,{cond:function(){return z()&&!tIL},
then:function(){return _.W("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.W(_.Jm,{data:function(){return z()},
alt:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.W("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.W("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.W(_.A,{cond:function(){return e().title},
then:function(Z){return _.W(_.zK,{text:Z})}})),_.W("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.W(_.zK,{text:function(){return e().description}}))))},"nc");
GbC.idomCompat=!0;var BJR=_.XO(function(l){var e=l.data;var O=l.themeOverride;l={};return _.W("ytm-lp-small-feature-section-group-view-model",null,_.W("div",{class:_.ax("ytm-lp-small-feature-section-group-view-model",(l["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},l))},_.W("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.W(_.Tn,{data:function(){return e().smallFeatures}},{lpSmallFeatureSectionViewModel:function(E){return _.W("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.W(GbC,{data:E.data,
themeOverride:O}))}}))))},"oc");
BJR.idomCompat=!0;_.Zw(_.XO(function(l){var e=l.data;var O=function(){return e().forcedTheme==="USER_INTERFACE_THEME_DARK"},E=function(){return e().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},J=function(){var M="",Z,u;
var d=_.V2().resolve(_.MG(_.lp));d=O()||(d==null?0:d())?(Z=e().themedImageViewModel)==null?void 0:Z.imageDark:(u=e().themedImageViewModel)==null?void 0:u.imageLight;(Z=XqV((d==null?void 0:d.sources)||[]))&&Z.url&&(M=E()?"background-image: linear-gradient(to bottom, transparent, "+(e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.nU(Z.url)+");":"background-image: url("+_.nU(Z.url)+");");return M},z=function(){return{useDarkTheme:O()}};
l={};return _.W("yt-section-group-view-model",null,_.W("div",{class:_.ax("yt-lp-section-group-view-model",(l["yt-lp-section-group-view-model--premium-force-dark-mode"]=O,l["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},l))},_.W(_.A,{cond:function(){return J().length},
then:function(){var M={};return _.W("div",{class:_.ax("yt-lp-section-group-view-model__bg-image",(M["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=E,M)),style:J})}}),_.W("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.W(_.Tn,{data:function(){return e().sections}},{lpFaqSectionViewModel:function(M){return _.W(m2i,{data:M.data,
themeOverride:z})},
lpHeaderSectionViewModel:function(M){return _.W(ySk,{data:M.data,themeOverride:z})},
lpHeadlineSectionViewModel:function(M){return _.W(pPH,{data:M.data,themeOverride:z})},
lpLargeFeatureSectionViewModel:function(M){return _.W(K91,{data:M.data,themeOverride:z})},
lpOfferCardSectionViewModel:function(M){return _.W(F90,{data:M.data,themeOverride:z})},
lpComplexOfferCardSectionViewModel:function(M){return _.W(nLC,{data:M.data})},
lpOfferTableSectionViewModel:function(M){return _.W(srq,{data:M.data,themeOverride:z})},
lpSmallFeatureSectionGroupViewModel:function(M){return _.W(BJR,{data:M.data,themeOverride:z})},
lpCouponBannerViewModel:function(M){return _.W(a4H,{data:M.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.lB}});var xWA=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.PTq=_.XO(function(l){function e(){if(xWA.has(l.data().displayType)){var d=!E(),g;if((g=l.disableDeselection)==null||!g.call(l)||d){l.data().selected=d;g=Object.assign({},M(),{selected:d});Z(g);var w;(w=l.callback)==null||w.call(l,g,d)}}}
var O=_.e4("chip-view-model"),E=function(){var d,g;return!!(((d=l.selected)==null?void 0:d.call(l))!==void 0?(g=l.selected)==null?0:g.call(l):M().selected)},J=_.b(_.jN(l.data)),z=J.next().value;
J=J.next().value;var M=z,Z=J,u=_.kD(QGx,function(){return l.data().chipEntityKey||""});
return _.W("chip-view-model",{class:"ytChipViewModelHost",el:O},_.W(a51,{data:function(){var d,g=Object.assign({},M(),{selected:E()}),w=u(),n=(d=l.disableDeselection)==null?void 0:d.call(l);a:switch(g.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":d=1;break a;default:d=0}return{text:(w==null?void 0:w.text)||g.text,state:g.disabled?1:g.selected?0:2,type:d,onTap:ldg(g,O,e,n),accessibilityLabel:g.accessibilityLabel||g.text}}}))},"qc");
_.PTq.idomCompat={callbacks:{callback:!0}};_.U2i=_.XO(function(l){var e=_.kD(S2g,function(){var M;return(M=l.data())==null?void 0:M.chipBarStateEntityKey}),O=function(){return l.data().disableDeselection},E=_.b(_.jN(function(){var M;
if(((M=e())==null?void 0:M.selectedIndex)!=void 0)return e().selectedIndex;var Z,u;M=_.b(((Z=l.data())==null?void 0:(u=Z.chips)==null?void 0:u.entries())||[]);for(Z=M.next();!Z.done;Z=M.next()){Z=_.b(Z.value);u=Z.next().value;Z=Z.next().value;var d=void 0;if((d=_.I(Z,_.qS))==null?0:d.selected)return u}return-1})),J=E.next().value,z=E.next().value;
return _.W("chip-bar-view-model",{class:_.ax("ytChipBarViewModelHost",l.className),role:"tablist"},_.W(_.Tn,{data:function(){return l.data().chips}},{chipViewModel:function(M,Z){return _.W("div",{class:"ytChipBarViewModelChipWrapper"},_.W(_.PTq,{data:M.data,
selected:function(){return Z()===J()},
callback:function(u,d){u=!!d;d=Z();z(u?d:-1);var g,w=(g=l.data())==null?void 0:g.chipBarStateEntityKey;w&&u&&_.Ot(_.IK("chipBarStateEntity",w,{key:w,selectedIndex:d}))},
disableDeselection:l.disableDeselection||O}))}}))},"rc");_.Zw(_.U2i,"chip-bar-view-model",{props:{data:_.Vh,className:_.Vh,disableDeselection:_.Vh}});_.YcS=_.XO(function(l){var e=l.data;l={};return _.W("divider-view-model",{class:_.ax("divider-view-model-wiz",(l["divider-view-model-wiz__inset-thin-padding"]=function(){return e().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},l))},_.W("div",{class:_.ax("divider-view-model-wiz__base-divider",function(){return eKt(e().dividerStyle)}),
style:_.HF({"background-color":function(){return e().backgroundColor?_.t$(e().backgroundColor):void 0}})}))},"sc");
_.YcS.idomCompat=!0;_.Zw(_.YcS,"divider-view-model",{props:{data:_.lB}});var P1=new Map,B1=new Map,J4T=0,U6;var ubq=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],$_t={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var hQq,L9q;hQq=function(l){return function(e){return function(){return String(e())+l}}};
_.pc=hQq("px");L9q=hQq("s");var qc0=_.XO(function(l){function e(r){return function(){var D=k().numItemsPerGridRow,b2=r()*D;D=b2+D;var $V,gT;return(gT=($V=E().contents)==null?void 0:$V.slice(b2,D))!=null?gT:[]}}
var O=_.J3(l,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),E=O.data,J=O.layoutContainerWidth,z=O.shouldUseOwnContainerSize,M=O.marginSettings;O=_.b(_.AF(!0,void 0,"qgr2Je"));var Z=O.next().value,u=O.next().value,d=function(){var r,D=(r=_.I(E().showMoreButton,_.Hi))==null?void 0:r.trackingParams;D&&_.gn(_.yN(),D);u(!1)},g=function(){var r,D=(r=_.I(E().showLessButton,_.Hi))==null?void 0:r.trackingParams;
D&&_.gn(_.yN(),D);u(!0)};
O=_.e4("grid-shelf-view-model");var w=_.d_t(O,{canHaveZeroSize:!1}),n=function(){var r;return(r=E().contentAspectRatio)!=null?r:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},k=_.mF(function(){var r=_.E6({containerWidth:z()&&w.width()>0?w.width()||J():J(),
sizing:"EXTRA_COMPACT",marginSettings:M(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:r.maxContainerWidth,numItemsPerGridRow:r.numItems,contentPadding:z()?r.margin:r.contentMargin,itemWidth:r.itemWidth,itemMargin:r.gutter/2}},void 0,"pqVdjc"),y=function(){if(E().enableVerticalExpansion){if(Z())return c();
var r,D,b2=(D=(r=E().contents)==null?void 0:r.length)!=null?D:0;return Math.ceil(b2/k().numItemsPerGridRow)}return k().numItemsPerGridRow<=2?2:1},c=function(){var r;
return Math.ceil(((r=E().minCollapsedItemCount)!=null?r:1)/k().numItemsPerGridRow)},f=function(){return E().enableVerticalExpansion&&E().showLessButton&&!Z()&&y()>c()},P=function(){var r,D;
return E().enableVerticalExpansion&&E().showMoreButton&&Z()&&((D=(r=E().contents)==null?void 0:r.length)!=null?D:0)>k().numItemsPerGridRow*c()},h=function(){return!f()},N=function(){return!P()},t={};
return _.W("grid-shelf-view-model",{class:_.ax("ytGridShelfViewModelHost",l.className,(t.ytGridShelfViewModelHostHasBottomButton=function(){return f()||P()},t)),
el:O,style:_.HF({"margin-left":(0,_.pc)(function(){return k().contentPadding}),
"margin-right":(0,_.pc)(function(){return k().contentPadding})})},_.W(_.A,{cond:function(){return _.I(E().header,$Sq)},
then:function(r){return _.W(_.z3,{data:r,disableHorizontalPadding:!0})}}),_.W("div",null,_.W(_.KH,{each:function(){return Array(y())}},function(r,D){return _.W(tuS,{className:l.className,
items:e(D),responsiveGridShelfLayout:k,contentAspectRatio:n})})),_.W("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.W(_.Tn,{data:function(){return E().showMoreButton}},{buttonViewModel:function(r){return _.W("div",{hidden:N},_.W(_.hM,{data:r.data,
onClick:d}))}}),_.W(_.Tn,{data:function(){return E().showLessButton}},{buttonViewModel:function(r){return _.W("div",{hidden:h},_.W(_.hM,{data:r.data,
onClick:g}))}})))},"tc");
qc0.idomCompat=!0;var tuS=_.XO(function(l){var e=l.items;var O=l.responsiveGridShelfLayout;var E=l.contentAspectRatio;l=l.className;var J=_.e4("div");Et8(J,function(){a:{var M=J.value;for(var Z=e(),u=[],d=0;d<Z.length;d++){var g=_.I(Z[d],v3C);if(!g||g==null||!g.inlinePlayerData){M=null;break a}var w=M.children.item(d);if(!w){M=null;break a}u.push({thumbnailElement:w,videoData:g})}M={gridVideoPreviewData:{gridItems:u}}}return M});
var z=(0,_.pc)(function(){return-O().itemMargin});
return _.W("div",{el:J,class:_.ax("ytGridShelfViewModelGridShelfRow",l),style:_.HF({"margin-left":z,"margin-right":z})},_.W(_.Tn,{data:e,replacementWrapper:function(M){return _.W(vL1,{responsiveGridShelfLayout:O},M)}},{shortsLockupViewModel:function(M){return _.W(vL1,{responsiveGridShelfLayout:O},_.W(HjC,{data:M.data,
aspectRatio:function(){return E()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),vL1=_.XO(function(l){return _.W("div",{style:_.HF({width:(0,_.pc)(function(){return l.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+l.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},l.children)},"vc");
qc0.idomCompat=!0;_.Zw(qc0,"grid-shelf-view-model",{props:{data:_.lB,layoutContainerWidth:_.lB,shouldUseOwnContainerSize:_.lB,marginSettings:_.lB,className:_.lB}});_.NJC=_.XO(function(l){var e=_.b(_.AF(!1,void 0,"YYtxR")),O=e.next().value,E=e.next().value;e={};return _.W("yt-alert-banner-view-model",{class:_.ax("ytAlertBannerViewModelHost",l.className,function(){var J;a:switch((J=l.data())==null?void 0:J.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":J="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":J="ytAlertBannerViewModelWarning";break a;default:J="ytAlertBannerViewModelInformational"}return J},(e.ytAlertBannerViewModelDismissed=
O,e.ytAlertBannerViewModelFullbleed=l.fullbleed,e.ytAlertBannerViewModelNarrow=l.narrow,e.ytAlertBannerViewModelIsInRichGrid=l.isInRichGrid,e))},_.W(_.A,{cond:function(){var J;
return!((J=l.data())==null?0:J.hideIcon)},
then:function(){return _.W("div",{class:"ytAlertBannerViewModelIcon"},_.W(_.cF,{icon:function(){return"info_circle"}}))}}),_.W("div",{class:"ytAlertBannerViewModelOuterContainer"},_.W("div",{class:"ytAlertBannerViewModelContainer"},_.W("div",{class:"ytAlertBannerViewModelContent"},_.W("div",{class:"ytAlertBannerViewModelHeading"},_.W(_.zK,{text:function(){var J;
return(J=l.data())==null?void 0:J.heading}})),_.W("div",{class:"ytAlertBannerViewModelBody"},_.W(_.zK,{text:function(){var J;
return(J=l.data())==null?void 0:J.body}})))),_.W(_.Tn,{data:function(){var J;
return(J=l.data())==null?void 0:J.actionButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.W(_.Tn,{data:function(){var J;
return(J=l.data())==null?void 0:J.dismissButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var z;((z=l.data())==null?0:z.disableLocalDismissBehavior)||E(!0)}})}}))},"wc");_.Zw(_.NJC,"yt-alert-banner-view-model",{props:{data:_.lB,fullbleed:_.lB,narrow:_.lB,isInRichGrid:_.lB,className:_.lB}});var gt8;gt8=_.jp({chipViewModel:_.PTq,buttonViewModel:_.hM});_.rSk=_.yh(iaT,{callbacks:{callback:!0}});_.Z8(iaT);_.Zw(_.rSk,"chips-shelf-view-model",{props:{data:_.lB,callback:_.Vh,enableSingleChipSelection:_.lB,disableChipsScrollAnimation:_.lB}});var D26=_.XO(function(l){l=_.J3(l,{disabled:!1});var e=l.active,O=l.disabled;l={};l=_.ax("ytSwitchShapeTrack",(l.ytSwitchShapeTrackActive=function(){return e()},l.ytSwitchShapeTrackDisabled=function(){return O()},l));
var E={};E=_.ax("ytSwitchShapeKnob",(E.ytSwitchShapeKnobActive=function(){return e()},E));
return _.W("switch-shape",{class:"ytSwitchShapeHost"},_.W("div",{class:l}),_.W("div",{class:E}))},"xc");var ScR=_.XO(function(l){var e=_.J3(l,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),O=e.data;l=e.className;var E=e.handleOnTapEventInParent,J=e.parentActive;e=_.b(_.jN(function(){var w;return(w=J())!=null?w:O().switchedOnByDefault||!1}));
var z=e.next().value,M=e.next().value,Z=function(){return O().isDisabled},u=_.e4("button");
e=_.pd(function(w){return w.key==="Enter"?(w.preventDefault(),u.value.click(),!1):!0});
var d=_.pd(function(w){if(O().handleOnTapEventInParent||E())return!0;if(Z())return!1;A42(O(),z(),w);M(!z());return!1}),g={};
g=_.ax("ytSwitchButtonViewModelButton",(g.ytSwitchButtonViewModelTappable=function(){return!Z()},g));
return _.W("switch-button-view-model",{class:_.ax("ytSwitchButtonViewModelHost",l)},_.W("button",{el:u,class:g,"on:click":d,"on:keydown":e,"aria-label":function(){return z()?O().a11yLabelSwitchedOn:O().a11yLabelSwitchedOff},
"aria-checked":z,"aria-disabled":Z,role:"switch"},_.W(D26,{active:z,disabled:Z})))},"yc");var x2x=_.XO(function(l){var e=_.J3(l,{checked:!1});l=e.name;var O=e.onChange,E=e.onClick,J=e.checked,z=e.labelRenderable,M=e.hasLeadingLabel,Z=e.labelClass,u=e.isCompact,d=e.selectElementClass;e=e.disableHorizontalPadding;var g="checkbox"+_.Be(_.yp),w=_.pd(function(y){E==null||E(y);return!1}),n=_.pd(function(y){O==null||O(y);
return!1}),k={};
return _.W("checkbox-shape",null,_.W("label",{class:_.ax("checkbox-shape-wiz",Z,(k["checkbox-shape-wiz--compact"]=u,k["checkbox-shape-wiz--disable-horizontal-padding"]=e,k))},_.W("input",{class:"checkbox-shape-wiz__input",id:g,checked:J,name:l,type:"checkbox","prop:checked":J,"on:change":n,"on:click":w}),_.W(_.A,{cond:function(){return!(M==null?0:M())},
then:function(){return _.W(Qrk,{isLeading:!0,selectElementClass:d})}}),_.W(_.A,{cond:function(){return!!z},
then:function(){return _.W("div",{class:"checkbox-shape-wiz__label"},z==null?void 0:z())}}),_.W(_.A,{cond:M,
then:function(){return _.W(Qrk,{isLeading:!1,selectElementClass:d})}})))},"zc");
x2x.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Qrk=_.XO(function(l){var e=l.selectElementClass;l={};return _.W("div",{class:_.ax("checkbox-shape-wiz__checkbox",e,(l["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(e==null?0:e())},l)),
"aria-hidden":"true"},_.W(_.cF,{icon:_.a("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.W(_.cF,{icon:_.a("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.Kc=_.XO(function(l){var e=l.name;var O=l.onChange;var E=l.onClick;var J=l.checked;var z=l.labelRenderable;var M=l.useCheckIcon;var Z=l.hasLeadingLabel;var u=l.labelClass;var d=l.isCompact;var g=l.selectElementClass;var w=l.ariaLabel;l=l.className;var n="radio"+_.Be(_.yp),k=_.e4("input"),y=_.pd(function(r){k.value.checked=!(J==null||!J());O==null||O(r);return!1}),c=_.pd(function(r){E==null||E(r);
return!1}),f=_.b(_.AF(!1,void 0,"v5AMrb")),P=f.next().value,h=f.next().value;
f=_.pd(function(){var r;((r=_.V2().resolve(_.MG(_.of)))==null?0:r.isKeyBoardInUse())&&h(!0)});
var N=_.pd(function(){h(!1)}),t={};
return _.W("radio-shape",{class:_.ax("radio-shape-wiz",l)},_.W("input",{el:k,class:"radio-shape-wiz__input",id:n,"prop:checked":J,name:e,type:"radio","on:change":y,"on:click":c,"aria-label":w,"on:focusin":f,"on:focusout":N}),_.W("label",{class:_.ax("radio-shape-wiz__label-container",u,(t["radio-shape-wiz--compact"]=d,t["radio-shape-wiz__label-container--keyboard-focused"]=P,t)),for:n},_.W(_.A,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.W(lX1,{checked:J,useCheckIcon:M,isLeading:!0,selectElementClass:g})}}),_.W(_.A,{cond:function(){return!!z},
then:function(){return _.W("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(w==null?0:w())?"true":"false"}},z==null?void 0:z())}}),_.W(_.A,{cond:Z,
then:function(){return _.W(lX1,{checked:J,useCheckIcon:M,isLeading:!1,selectElementClass:g})}})))},"Bc");
_.Kc.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var lX1=_.XO(function(l){var e=l.useCheckIcon;var O=l.selectElementClass;l=function(){return(e==null?0:e())?"CHECK":_.a("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var E={};return _.W("div",{class:_.ax("radio-shape-wiz__radio",O,(E["radio-shape-wiz__radio--check-icon"]=e,E["radio-shape-wiz__radio--radio-default-style"]=function(){return!(O==null?0:O())},E)),
"aria-hidden":"true"},_.W(_.cF,{icon:l}),_.W(_.cF,{icon:l,active:function(){return!(e==null?0:e())}}))},"Cc");_.jG=_.XO(function(l){function e(){var QH;((QH=_.V2().resolve(_.MG(_.of)))==null?0:QH.isKeyBoardInUse())&&S0(!0)}
function O(){S0(!1)}
var E=l.data;var J=l.isMenuItem;var z=l.isCompact;var M=l.onTap;var Z=l.trailingAccessory;var u=l.hideSelectionTextChevron;var d=l.disabled;var g=l.inPopup;var w=l.disableHorizontalPadding;var n=l.isOverlay;var k=l.isToggled;var y=_.a("apply_button_role_to_list_item"),c=_.Ld(function(QH){a:{var pR=E();if((pR==null?0:pR.entitySelectorType)&&(pR==null?0:pR.entityKey))switch(pR.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":QH=_.QO2(QH,pR.entityKey);
QH=QH==null?void 0:QH.value;pR=!1;QH==="CAPTIONS_UNAVAILABLE"&&(pR=!0,QH="");QH=Object.assign({},!!QH&&{selectionText:{content:QH}},{isSelected:!!QH},!!QH&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:pR});break a;default:QH={}}else QH={}}return QH}),f=function(){return _.a("enable_web_shorts_captions_language_command")?Object.assign({},E(),c()):E()},P=function(){return!(f().isSelected===void 0||!f().selectionStyle||f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
h=function(){return(_.Qz(f().rendererContext)||M)&&!P()},N=function(){return _.Qz(f().rendererContext)||P()};
l={};n=_.ax("yt-list-item-view-model-wiz",(l["yt-list-item-view-model-wiz--is-overlay"]=n,l["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!y&&Px()},l));
l={};var t=_.ax("yt-list-item-view-model-wiz__label",(l["yt-list-item-view-model-wiz__container"]=function(){return!P()},l["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!f().isDisabled||!(d==null||!d())},l["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!f().subtitle},l["yt-list-item-view-model-wiz__container--compact"]=z,l["yt-list-item-view-model-wiz__container--tappable"]=h,l["yt-list-item-view-model-wiz__container--in-popup"]=g,l["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return y&&Px()},l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(w==null?void 0:w())&&!P()},l));
l={};var r=_.ax("yt-list-item-view-model-wiz__container",(l["yt-list-item-view-model-wiz__container--tappable"]=N,l["yt-list-item-view-model-wiz__container--compact"]=z,l["yt-list-item-view-model-wiz__container--in-popup"]=g,l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(w==null?void 0:w())&&P()},l)),D=function(){return f().leadingImage||f().leadingAccessory},b2=_.ax("yt-list-item-view-model-wiz__image-container",function(){return D()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
g=_.e4("yt-list-item-view-model");var $V=_.e4("div"),gT=y?$V:g,mx=_.XO(function(){return _.W(_.A,{cond:function(){return y},
then:function(){return _.W("div",{class:t,el:$V,role:function(){return N()||h()?"button":void 0},
tabindex:function(){return M||h()?0:void 0},
"on:keydown":cx,"on:click":jM},_.W(eV0,{data:f,hideSelectionTextChevron:u,trailingAccessory:Z,isToggled:k}))},
else:function(){return _.W("div",{class:t,el:$V},_.W(eV0,{data:f,hideSelectionTextChevron:u,trailingAccessory:Z,isToggled:k}))}})},"Dc");
mx.idomCompat=!0;_.xD(g,function(){return f().rendererContext});
var jM=_.pd(function(QH){return void(M==null?void 0:M(QH))}),cx=_.erW(),tq=_.b(_.AF(!1,void 0,"kFezJc"));
l=tq.next().value;tq=tq.next().value;var Px=l,S0=tq;_.sC(function(){h()&&(gT.value.addEventListener("focusin",e),gT.value.addEventListener("focusout",O));_.B3(function(){gT.value&&h()&&(gT.value.removeEventListener("focusin",e),gT.value.removeEventListener("focusout",O))})});
l=_.pd(function(){return!0});
return _.W("yt-list-item-view-model",{el:g,class:n,role:function(){return(J==null?0:J())?"menuitem":"listitem"},
tabindex:function(){var QH=h();QH=y?void 0:M||QH?0:void 0;return QH},
"on:keydown":y?l:cx,"on:click":y?l:jM},_.W(_.A,{cond:P,then:function(){return _.W(_.cK,null,_.W(_.jD,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.W(x2x,{labelRenderable:function(){return _.W(mx,null)},
isCompact:z,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!D()},
labelClass:r,selectElementClass:b2,disableHorizontalPadding:w})}),_.W(_.jD,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.W(_.Kc,{labelRenderable:function(){return _.W(mx,null)},
isCompact:z,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!D()},
labelClass:r,selectElementClass:b2})}),_.W(_.jD,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.W(_.Kc,{labelRenderable:function(){return _.W(mx,null)},
isCompact:z,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!D()},
labelClass:r,selectElementClass:b2,useCheckIcon:!0})}),_.W(_.HK,null,function(){return _.W(mx,null)}))},
else:function(){return _.W(mx,null)}}))},"Ec");
_.jG.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var eV0=_.XO(function(l){var e=l.data;var O=l.hideSelectionTextChevron;var E=l.trailingAccessory;var J=l.isToggled;return _.W(_.ZB,null,_.W(O$i,{data:e,isLeading:!0,hideSelectionTextChevron:function(){return!(O==null||!O())},
isToggled:J}),_.W(EQF,{data:e}),_.W(_.A,{cond:function(){return!!E},
then:function(){return _.W("div",{class:"yt-list-item-view-model-wiz__trailing"},E==null?void 0:E())},
else:function(){return _.W(O$i,{data:e,isLeading:!1,hideSelectionTextChevron:function(){return!(O==null||!O())},
isToggled:J})}}))},"Fc"),O$i=_.XO(function(l){var e=l.data;
var O=l.isLeading;var E=l.hideSelectionTextChevron;var J=l.isToggled;var z=_.ax("yt-list-item-view-model-wiz__button-container");l={};var M=_.ax("yt-list-item-view-model-wiz__image-container",(l["yt-list-item-view-model-wiz__leading"]=O,l["yt-list-item-view-model-wiz__trailing"]=function(){return!O()},l)),Z=function(){return O()?e().leadingImage:e().trailingImage},u=_.ax("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
l={};var d=_.ax("yt-list-item-view-model-wiz__accessory",(l["yt-list-item-view-model-wiz__leading"]=O,l["yt-list-item-view-model-wiz__trailing"]=function(){return!O()},l)),g=function(){a:switch(e().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var w="expand_more";
break a;default:w="chevron_right"}return w};
return _.W(_.A,{cond:function(){var w=e(),n=O();return!!(n&&(w.leadingImage||w.leadingAccessory)||!n&&(w.trailingImage||w.trailingButton||w.trailingButtons||w.selectionText))},
then:function(){return _.W(_.ZB,null,_.W(_.A,{cond:Z,then:function(w){return _.W("div",{class:M,"aria-hidden":"true"},_.W(_.Jm,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0,className:u,isToggled:J}))}}),_.W(_.A,{cond:function(){return O()&&e().leadingAccessory},
then:function(){return _.W("div",{class:M},_.W(_.Tn,{data:function(){return e().leadingAccessory}},{avatarViewModel:function(w){return _.W(_.Hp,{data:w.data,
avatarButtonCustomClassName:u})},
collectionThumbnailViewModel:av6}))}}),_.W(_.A,{cond:function(){return!O()&&e().trailingButton},
then:function(){return _.W("div",{class:z},_.W(_.Tn,{data:function(){return e().trailingButton}},{buttonViewModel:function(w){return _.W(_.hM,{data:w.data,
className:d})}}))}}),_.W(_.A,{cond:function(){var w;
return!O()&&((w=e().trailingButtons)==null?void 0:w.buttons)},
then:function(){return _.W("div",{class:z},_.W(_.Tn,{data:function(){var w;return(w=e().trailingButtons)==null?void 0:w.buttons}},{buttonViewModel:function(w){return _.W(_.hM,{data:w.data,
className:d})},
accountLinkButtonViewModel:function(w){return _.W(sbT,{data:w.data,className:d})},
switchButtonViewModel:function(w){return _.W(ScR,{data:w.data,className:d})},
subscribeButtonViewModel:function(w){return _.W(_.jf,{data:w.data,isOverlay:!1,animateWidth:!1,className:d})},
toggleButtonViewModel:function(w){return _.W(_.sh,{data:w.data,className:d})}}))}}),_.W(_.A,{cond:function(){return!O()&&!!e().selectionText},
then:function(){return _.W(_.ZB,null,_.W(_.zK,{text:function(){return e().selectionText},
className:_.ax("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.W(_.A,{cond:function(){return!E()},
then:function(){return _.W(_.cF,{icon:g,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),EQF=_.XO(function(l){var e=l.data;
return _.W(_.A,{cond:function(){return e().title||e().subtitle},
then:function(){return _.W("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.W("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.W(_.A,{cond:function(){return e().title},
then:function(O){return _.W(_.zK,{text:O,className:"yt-list-item-view-model-wiz__title"})}})),_.W(_.A,{cond:function(){return e().subtitle},
then:function(O){return _.W(_.zK,{text:O,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.J_q=_.XO(function(l){var e=l.data;var O=l.onTap;var E=l.onSwitch;var J=l.overrideDisabled;l=l.disableHorizontalPadding;var z=_.b(_.jN(function(){var w;return((w=adW(g()))==null?void 0:w.switchedOnByDefault)||!1})),M=z.next().value,Z=z.next().value;
z=_.b(_.AF(!1,void 0,"ZHBkbb"));var u=z.next().value,d=z.next().value,g=function(){var w;if(!(w=e().switchButton)){var n=e();w=J==null?void 0:J();n={switchOnCommand:n.switchOnCommand,switchOffCommand:n.switchOffCommand,switchedOnByDefault:n.switchedOnByDefault,isDisabled:n.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:n.a11yLabelSwitchedOn,a11yLabelSwitchedOff:n.a11yLabelSwitchedOff};w!==void 0&&(n.isDisabled=w);w={switchButtonViewModel:n}}return w};
return _.W("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.W(_.jG,{data:function(){return{title:e().title,subtitle:e().attributedSubtitle,leadingImage:e().leadingImage,leadingAccessory:e().leadingAccessory,isDisabled:e().isDisabled}},
onTap:function(w){var n=adW(g());!n||n.isDisabled||e().ignoreTapUntilCommandCompletes&&u()||(O==null||O(w),A42(n,M(),w,e().ignoreTapUntilCommandCompletes,d),Z(!M()),E==null||E(M()))},
trailingAccessory:function(){return _.W(_.Tn,{data:g},{switchButtonViewModel:function(w){return _.W(ScR,{data:w.data,parentActive:M,handleOnTapEventInParent:!!O})}})},
disableHorizontalPadding:l}))},"Ic");var Xzk=_.XO(function(l){var e=_.e4("toggleable-list-item-view-model"),O=_.b(_.jN(function(){var z,M;return!!((z=l.data())==null?0:(M=z.initialState)==null?0:M.isToggled)})),E=O.next().value,J=O.next().value;
_.xD(e,function(){return l.data().rendererContext});
O=_.pd(function(){J(!E())});
return _.W("toggleable-list-item-view-model",{el:e,class:_.ax("toggleableListItemViewModelHost",l.className),"on:click":O},_.W(_.A,{cond:E,then:function(){return _.W(_.Tn,{data:function(){return l.data().toggledListItem}},{listItemViewModel:function(z){return _.W(_.jG,{data:z.data,
isToggled:E})}})},
else:function(){return _.W(_.Tn,{data:function(){return l.data().defaultListItem}},{listItemViewModel:_.jG})}}))},"Jc");var zVi=_.ml("DOWNLOAD",{},"Download"),b$q=_.ml("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),M_x=_.ml("RETRY",{},"Retry"),V_q=_.ml("PAUSE_DOWNLOADING",{},"Pause downloading"),Z$C=_.ml("RESUME_DOWNLOAD",{},"Resume download"),kOA={text:zVi,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},YJ={text:b$q,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},y4V={text:M_x,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
IdV={text:V_q,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},m_q={text:Z$C,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var uo6=_.XO(function(l){var e=function(){var Z=l.data();Z=_.Sp(Z.rendererContext);var u;return(u=_.I(Z,_.AM))==null?void 0:u.videoId},O=_.Ld(function(Z){var u=e(),d=jYW(l.data());
return u?_.Yp(Z,u):d?_.hY(Z,d):"TRANSFER_STATE_UNKNOWN"}),E=_.kD(_.cKt,e),J=_.Ld(function(Z){return _.mSA(Z,e(),jYW(l.data()))}),z=function(){return K_V(O(),E(),_.Sp(l.data().rendererContext),!!jYW(l.data()))},M=function(){return J()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.W("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:M},_.W(_.A,{cond:function(){return!M()},
then:function(){return _.W(_.A,{cond:z,then:function(Z){return _.W(_.KH,{each:Z},function(u){return _.W(_.jG,{data:u,isCompact:l.isCompact,isMenuItem:l.isMenuItem,inPopup:l.inPopup,disableHorizontalPadding:l.disableHorizontalPadding})})}})}}))},"Kc");
uo6.idomCompat=!0;_.CCF=_.XO(function(l){var e=l.data;var O=l.isCompact;var E=l.hideSelectionTextChevron;var J=l.inPopup;var z=l.isOverlay;var M=l.disableHorizontalPadding;var Z=function(){return Ha2(e())&&(J==null?void 0:J())};
l={};return _.W("yt-list-view-model",{class:_.ax("yt-list-view-model-wiz",(l["yt-list-view-model-wiz--kaios-spat-nav"]=tIL&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",l)),role:function(){return Z()?"menu":"list"},
style:_.HF({"max-height":function(){var u,d=(u=e())==null?void 0:u.visibleElementCount;if(d)return F_M(e())?(d+.5)*48+"px":(d+.5)*40+"px"}})},_.W(_.Tn,{data:function(){return e().listItems}},{listItemViewModel:function(u){return _.W(_.jG,{data:u.data,
isMenuItem:Z,isCompact:O,hideSelectionTextChevron:E,inPopup:J,isOverlay:z,disableHorizontalPadding:M})},
toggleableListItemViewModel:function(u){return _.W(Xzk,{data:u.data})},
downloadListItemViewModel:function(u){return _.W(uo6,{data:u.data,isMenuItem:Z,isCompact:O,inPopup:J,disableHorizontalPadding:M})},
switchListItemViewModel:function(u){return _.W(_.J_q,{data:u.data,disableHorizontalPadding:M})}}))},"Lc");
_.CCF.idomCompat=!0;var oQq=_.XO(function(l){var e=l.data;var O=l.isOverlay;l={};return _.W("yt-course-perks-view-model",{class:_.ax("ytwCoursePerksViewModelHost",(l.ytwCoursePerksViewModelHostOverlay=O,l))},_.W("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.W(_.zK,{text:function(){return e().title}})),_.W("div",null,_.W(_.A,{cond:function(){return e().perks},
then:function(E){return _.W(_.CCF,{data:function(){return{listItems:E()}},
isCompact:!0,isOverlay:O})}})))},"Mc");_.Zw(oQq,"yt-course-perks-view-model",{props:{data:_.Vh,isOverlay:_.Vh}});_.Zw(_.XO(function(l){var e=l.data;return _.W("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.W("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.W(_.zK,{text:function(){return e().title}})),_.W("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.W(_.zK,{text:function(){return e().progressSummary}})),_.W("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.W("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.HF({width:function(){return e().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.lB}});var $y1=_.XO(function(l){var e={};return _.W("yt-progress-view-model",{class:_.ax("ytwProgressViewModelHost",(e.ytwProgressViewModelHostOverlay=_.Et(l.isOverlay,!1),e))},_.W(_.A,{cond:function(){return l.data().progressSummary},
then:function(O){return _.W("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.W(_.zK,{text:O}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressContainer"},_.W(_.A,{cond:function(){return l.data().leadingLabel},
then:function(O){return _.W("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.W(_.zK,{text:O}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressBar"},_.W("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(l.data().progressPercentage||0)*100+"%"}}))))},"Oc");var Hq=_.XO(function(l){var e=l.starNumber;var O=l.data;var E=function(){var J;return((J=O())==null?void 0:J.rating)||0};
return _.W(_.A,{cond:function(){return e()},
then:function(J){return _.W(_.cK,null,_.W(_.jD,{when:function(){return E()>=J()-.25}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.cF,{icon:"STAR_FILLED"}))}),_.W(_.jD,{when:function(){return E()>=J()-.75}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.cF,{icon:"STAR_HALF"}))}),_.W(_.HK,null,function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.cF,{icon:"STAR_BORDER"}))}))}})},"Pc"),WU6=_.XO(function(l){l=l.data;
return _.W("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.W(Hq,{starNumber:1,data:l}),_.W(Hq,{starNumber:2,data:l}),_.W(Hq,{starNumber:3,data:l}),_.W(Hq,{starNumber:4,data:l}),_.W(Hq,{starNumber:5,data:l}))},"Qc");_.Zw(_.XO(function(l){var e=_.J3(l,{}).data;return _.W("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.W("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.W(_.zK,{text:function(){var O;return(O=e())==null?void 0:O.title}})),_.W("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.W(_.A,{cond:function(){return e().starProgressViewModels},
then:function(O){return _.W("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.W(_.Tn,{data:O},{progressViewModel:$y1}))}}),_.W("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.W("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.W(_.zK,{text:function(){var O;
return(O=e())==null?void 0:O.averageRatingLabel}})),_.W(_.A,{cond:function(){return e().zeroStateText},
then:function(O){return _.W("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.W(_.zK,{text:O}))}}),_.W(_.A,{cond:function(){return e().starRatingViewModel},
then:function(O){return _.W("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.W(_.Tn,{data:O},{starRatingViewModel:WU6}))}}),_.W("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.W(_.zK,{text:function(){var O;
return(O=e())==null?void 0:O.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.Vh}});var dyi;dyi={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.gQx=_.XO(function(l){var e=_.e4("yt-learning-journey-loader-view-model"),O=_.iV();_.RU(function(){requestAnimationFrame(function(){var J;(J=O.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var z;(z=l.onLottieLoaded)==null||z.call(l)})});
var E=l.data().browseEndpoint;E&&_.r6(E)});
return _.W("yt-learning-journey-loader-view-model",{class:_.ax("learningJourneyLoaderViewModelHost",l.className),"data-target-id":function(){var E;return((E=l.data)==null?void 0:E.call(l).targetId)||""},
el:e},_.W(_.k7,{className:_.ax("learningJourneyLoaderViewModelLoader",l.className),animationName:function(){return dyi.animationConfig.name},
data:dyi,animationRef:O}))},"Sc");_.Zw(_.gQx,"yt-learning-journey-loader-view-model",{props:{data:_.lB,className:_.Vh,onLottieLoaded:_.Vh}});_.i$1=_.XO(function(l){var e=function(){return l.data()},O=_.b(_.AF(-1,void 0,"vug48")),E=O.next().value,J=O.next().value,z=function(w){return E()===w},M=function(w){return e().correctAnswerIndex===w},Z=function(){return E()!==-1},u=function(){return E()===e().correctAnswerIndex},d=_.pd(function(){J(-1);
return!1}),g=function(w){return u()&&M(w)};
return _.W("learning-journey-quiz-view-model",{class:_.ax("learningJourneyQuizViewModelHost",l.className),style:_.HF({background:function(){return te(he(e())).backgroundColor}})},_.W(_.A,{cond:function(){return!!e().video},
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.HF({background:function(){return te(he(e())).videoBackgroundColor}})},_.W(_.Tn,{data:function(){return e().video}},{lockupViewModel:function(w){return _.W(_.Cw,{data:w.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.W("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.W("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.HF({"align-items":function(){return e().overflowMenu?"start":"center"}})},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.HF({"min-height":function(){return e().overflowMenu?"48px":"26px"}})},_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.HF({color:function(){return te(he(e())).primaryTextColor}}),
"client-ve-type":function(){var w=Z(),n=u();return w?n?264685:264684:264683}},_.W(_.zK,{text:function(){var w=e(),n=Z(),k=u();
return n?k?w.successTitle:w.failureTitle:w.questionHeaderText}}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.W(_.A,{cond:Z,
then:function(){return _.W("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":d,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.HF({fill:function(){return te(he(e())).primaryTextColor}})},_.W("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"})))}}),
_.W(_.Tn,{data:function(){return e().overflowMenu}},{buttonViewModel:function(w){return _.W(_.hM,{data:w.data})}}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.HF({color:function(){return te(he(e())).secondaryTextColor}}),
"client-ve-type":264688},_.W(_.zK,{text:function(){var w=e();return Z()?w.explanationText:w.questionSubheaderText}}))),_.W("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.W(_.KH,{each:function(){return e().optionsData||[]}},function(w,n){var k={};
return _.W("div",{class:_.ax("learningJourneyQuizViewModelHostQuizOptions",(k.learningJourneyQuizViewModelHostQuizHover=function(){return!Z()},k.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return g(n())},k.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!u()&&z(n())},k.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Z()&&!z(n())},k)),
"on:click":_.pd(function(){if(Z())return!1;J(n());return!1}),
style:_.HF({background:function(){return Z()&&z(n())?"":te(he(e())).optionColor}}),
role:"button","aria-disabled":Z,"tab-index":"0","client-ve-type":264686},_.W(_.A,{cond:Z,then:function(){var y={};return _.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var c=n();return M(c)?"0 0 24 24":"0 -960 960 960"},
class:_.ax("learningJourneyQuizViewModelHostQuizOptionIcon",(y.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return g(n())},y)),
style:_.HF({fill:function(){return te(he(e())).primaryTextColor}})},_.W("path",{d:function(){var c=n();
return M(c)?"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"}}))}}),_.W(_.zK,{text:w.optionText}))})))))},"Tc");
_.i$1.idomCompat=!0;_.Zw(_.i$1,"learning-journey-quiz-view-model",{props:{data:_.lB,className:_.lB}});var wz1=_.XO(function(l){var e=_.e4("yt-macro-marker-list-item-view-model");_.xD(e,function(){return l.data().rendererContext});
var O=_.J3(l,{palette:void 0,isLastItem:!1}),E=O.palette,J=O.isLastItem,z=function(){return l.data().isHighlighted},M=function(){var d;
return fdg((d=E())==null?void 0:d.iconDisabledColor)},Z=function(){var d;
return fdg((d=E())==null?void 0:d.primaryTitleColor)},u=function(){var d;
return fdg((d=E())==null?void 0:d.secondaryTitleColor)};
O={};return _.W("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:e},_.W(_.Tn,{data:function(){return l.data().thumbnail}},{thumbnailViewModel:_.xR}),_.W("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.W("div",{class:_.ax("ytMacroMarkerListItemViewModelTimeDescription",(O.ytMacroMarkerListItemViewModelHighlighted=z,O)),
style:_.HF({"background-color":function(){return z()?Z():M()},
color:function(){return z()?"":u()}})},_.W(_.zK,{text:function(){return l.data().timestamp}})),_.W("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.HF({"background-color":function(){return J()?"transparent":M()}})}),_.W("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(z()?Z():u())}},_.W(_.zK,{text:function(){return l.data().title}}))))},"Uc");_.cq=_.XO(function(l){function e(ZS){P("transform:translateX("+(_.hT("HTML_DIR")==="rtl"?"":"-")+ZS+"px)")}
function O(ZS){return Math.min(Math.max(ZS,0),f()-D())}
function E(){var ZS=t()+mx();return J()?(Math.round(D()/ZS)||1)*ZS:0}
var J=function(){return l.data().items||[]},z=function(){return l.data().previousButton},M=function(){return l.data().nextButton},Z=function(){var ZS,Ou;
return(Ou=(ZS=l.disableArrows)==null?void 0:ZS.call(l))!=null?Ou:!1},u=function(){var ZS;
return!((ZS=l.forceNarrowLayout)==null||!ZS.call(l))},d=_.e4("horizontal-shelf-view-model"),g=_.e4("div"),w=_.b(_.AF(0,void 0,"D4aXB")),n=w.next().value,k=w.next().value;
w=_.b(_.AF(0,void 0,"GQlHRc"));var y=w.next().value,c=w.next().value,f=y;y=_.b(_.AF("",void 0,"Bw1Yz"));w=y.next().value;var P=y.next().value;y=_.b(_.AF(0,void 0,"buTjVb"));var h=y.next().value,N=y.next().value,t=h;y=_.b(_.AF(0,void 0,"GIAWN"));h=y.next().value;var r=y.next().value,D=h;y=_.b(_.AF(!1,void 0,"cenvwc"));var b2=y.next().value,$V=y.next().value;y=_.b(_.AF(0,void 0,"LSY2Ub"));h=y.next().value;var gT=y.next().value,mx=h;y=_.b(_.AF(0,void 0,"oS46jc"));var jM=y.next().value,cx=y.next().value,
tq=function(){var ZS,Ou=(ZS=l.data())==null?void 0:ZS.responsiveContainerConfiguration,uq,ZV;return Ou?zYq(Ou==null?void 0:Ou.responsiveSize):(ZV=(uq=l.sizing)==null?void 0:uq.call(l))!=null?ZV:"STANDARD"};
y=_.mF(function(){return!Z()&&n()>0},void 0,"KINjJe");
h=_.mF(function(){return!Z()&&n()<f()-D()},void 0,"Ea00Ib");
var Px=function(){k(O(n()-E()));e(n())},S0=function(){k(O(n()+E()));
e(n())},QH=function(){d.value!==null&&oq()},pR;
_.sC(function(){oq();window.ResizeObserver?(pR=new ResizeObserver(_.yl(QH,0)),pR.observe(d.value)):window.addEventListener("resize",QH)});
_.B3(function(){if(window.ResizeObserver){var ZS;(ZS=pR)==null||ZS.disconnect()}else window.removeEventListener("resize",QH)});
var oq=function(){var ZS=d.value.clientWidth,Ou=l.includeMargin!==void 0?l.includeMargin():!1,uq;var ZV=l.hasPeek!==void 0?l.hasPeek():!((uq=l.data())==null||!uq.hasPeek);ZS=_.E6({containerWidth:ZS,hasPeek:ZV,sizing:tq(),marginSettings:Ou?u()?4:1:0});gT(ZS.gutter);cx(ZS.margin);N(ZS.itemWidth);$V(ZS.maxContainerWidth<528||u());r(ZS.maxContainerWidth);J()&&c((ZS.itemWidth+ZS.gutter)*J().length-ZS.gutter)};
return _.W("horizontal-shelf-view-model",{class:_.ax("ytwHorizontalShelfViewModelHost",l.className),el:d},_.W(_.A,{cond:function(){var ZS;return l.data().header&&!((ZS=l.horizontalShelfExperiments)==null?0:ZS.call(l).hideHeader)},
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.HF({width:function(){return D()+"px"},
padding:function(){return"0 "+jM()+"px"}})},_.W(_.Tn,{data:function(){return l.data().header}},{sectionHeaderViewModel:function(ZS){return _.W(_.z3,{data:ZS.data,
disableHorizontalPadding:!0,forceSmallLayout:b2,useResponsiveLayout:!0})}}))}}),_.W("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.HF({"margin-top":function(){var ZS,Ou=l.data().header&&!((ZS=l.horizontalShelfExperiments)==null?0:ZS.call(l).hideHeader),uq;return(((uq=l.ensureMarginTop)==null?0:uq.call(l))&&!Ou?12:0)+"px"}})},_.W("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.HF({width:function(){return D()+"px"},
padding:function(){return"0 "+jM()+"px"},
overflow:function(){return Z()?"auto":"hidden"}})},_.W("div",{class:"ytwHorizontalShelfViewModelItems",
el:g,style:w},_.W(_.Tn,{data:J},{macroMarkerListItemViewModel:function(ZS,Ou){return _.W("div",{style:_.HF({width:function(){return t()+"px"},
"margin-right":function(){return(Ou()===J().length-1?0:mx())+"px"}})},_.W(wz1,{data:ZS.data,
palette:_.Et(l.palette),isLastItem:function(){return Ou()===J().length-1}}))},
lockupViewModel:function(ZS,Ou){var uq=ZS.data;return _.W("div",{style:_.HF({width:function(){return t()+"px"},
"margin-right":function(){return(Ou()===J().length-1?0:mx())+"px"}})},_.W(_.Cw,{data:uq,
containerType:4,sizing:tq,protectBackground:l.protectBackground,thumbnailFixedWidth:function(){return RKp(uq())+"px"},
thumbnailTargetWidth:function(){return RKp(uq())}}))}}))),_.W(_.A,{cond:y,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.W(_.Tn,{data:z},{buttonViewModel:function(ZS){return _.W(_.hM,{data:ZS.data,onClick:Px})}}))}}),_.W(_.A,{cond:h,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.W(_.Tn,{data:M},{buttonViewModel:function(ZS){return _.W(_.hM,{data:ZS.data,onClick:S0})}}))}})))},"Vc");
_.cq.idomCompat=!0;var A_1=_.XO(function(l){var e=function(){return l.data().targetId||""},O=function(){var y;
return((y=l.data())==null?void 0:y.expansionEntityKey)||""},E=_.kD(_.QO2,O),J=!0,z=function(){var y;
return((y=E())==null?void 0:y.value)===e()},M=function(y){_.Ot(_.IK("stringEntity",O(),{key:O(),
value:y?e():""}))};
_.RU(function(){J=!1;l.data().isExpanded&&M(!0)});
var Z=function(){if(z()){var y=!0;l.onCollapse!==void 0&&(y=l.onCollapse());y&&M(!1)}else M(!0)},u=_.pd(Z),d=function(){var y;
return(((y=l.accordionStyle)==null?void 0:y.call(l))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},g=_.e4("div"),w=function(){var y,c;
return(c=(y=_.I(l.data().rendererContext,_.yu))==null?void 0:y.label)!=null?c:""},n={},k={};
return _.W("yt-accordion-item-view-model",{class:_.ax("ytAccordionItemViewModelHost",l.className,(n.ytAccordionItemViewModelExpanded=function(){return z()},n.ytAccordionItemViewModelHidden=function(){var y;
return(y=l.hideIfNotExpanded)==null?void 0:y.call(l)},n.ytAccordionItemViewModelMini=d,n)),
"data-target-id":e},_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:"ytAccordionItemViewModelLeftSection","on:click":u,title:w},_.W(_.zK,{text:function(){return l.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:w})),_.W("div",{class:"ytAccordionItemViewModelRightSection"},_.W(_.Tn,{data:function(){return z()?l.data().expandButton:l.data().collapseButton}},{buttonViewModel:function(y){return _.W(_.hM,{data:y.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Z})}}))),_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:_.ax("ytAccordionItemViewModelContent",(k.ytAccordionItemViewModelExpandedSubtitle=function(){return z()},k)),
el:g,style:_.HF({"max-height":function(){return J?"auto":z()?g.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!z()}},_.W(_.A,{cond:function(){return!d()},
then:function(){return _.W(_.zK,{text:function(){return l.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.W(_.Tn,{data:function(){return l.data().content}},{horizontalShelfViewModel:function(y){return _.W(_.cq,{data:y.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.nQx=_.XO(function(l){var e=_.b((0,_.NBk)(l.data)).next().value,O=function(){return l.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},E=function(){return O()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},J=_.b(_.AF(!0,void 0,"FVec2e")),z=J.next().value,M=J.next().value,Z=function(){return E()&&z()},u=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){M(!z())}}},d=_.pd(function(){e().onTitleTap&&_.r6(e().onTitleTap||{})});
J={};return _.W("yt-accordion-view-model",{class:_.ax("ytAccordionViewModelHost",(J.ytAccordionViewModelMinimized=function(){return Z()},J)),
"data-target-id":function(){return l.data().targetId||""}},_.W(_.A,{cond:function(){return E()||!!e().title},
then:function(){return _.W("div",{class:"ytAccordionViewModelHeader"},_.W("div",{class:"ytAccordionViewModelTitleSection"},_.W("div",{class:"ytAccordionViewModelTitleWrapper"},_.W(_.A,{cond:function(){return!!l.data().headerIcon},
then:function(){return _.W(_.cF,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var g;return(g=l.data().headerIcon)==null?void 0:g.iconType}})}}),_.W("div",{class:"ytAccordionViewModelTitle",
"on:click":d},_.W(_.zK,{className:"ytAccordionViewModelTitleText",text:function(){return e().title}})))),_.W("div",{class:"ytAccordionViewModelButtonSection"},_.W(_.A,{cond:E,
then:function(){return _.W(Ms,{data:u,iconName:function(){return Z()?"chevron_down":"chevron_collapse"}})}})))}}),_.W("div",{class:"ytAccordionViewModelContent"},_.W(_.Tn,{data:function(){return e().contents}},{accordionItemViewModel:function(g){return _.W(A_1,{data:g.data,
className:"ytAccordionViewModelRow",accordionStyle:O,hideIfNotExpanded:Z,onCollapse:function(){return E()?(M(!0),!1):!0}})}})),_.W("div",null,_.W(_.A,{cond:function(){return!E()&&(!!e().disclaimerFooter||!!e().footer)},
then:function(){return _.W("div",{class:"ytAccordionViewModelFooter"},_.W(_.zK,{text:function(){return e().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.W(_.Tn,{data:function(){return l.data().footer}},{flexibleActionsViewModel:function(g){return _.W(c5,{data:g.data,
layout:0})}}))}})))},"Xc");_.Zw(_.nQx,"yt-accordion-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e,O=(e=_.V2().resolve(_.MG(_.lp)))==null?void 0:e(),E=_.b(_.AF(!1,void 0,"BxguL"));e=E.next().value;var J=E.next().value;E=_.b(_.AF(!0,void 0,"WTCeFf"));var z=E.next().value,M=E.next().value,Z=_.e4("textarea"),u=function(y){J(!0);y={learningJourneyFormData:{query:y}};_.r6(l.data().searchEndpoint||{},{form:{formData:y}});return!1},d=_.pd(function(y){y.target.closest("button-view-model")&&J(!0)});
E=_.pd(function(){M(Z.value.value.length===0)});
var g=_.pd(function(y){if(y.key==="Enter"&&!y.shiftKey&&!z()){var c=y.target;y.preventDefault();u(c.value)}}),w={},n={},k={};
return _.W("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.W("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.W(_.Jm,{data:function(){return l.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.W("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.W("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.W("div",{class:_.ax("ytLearningJourneyZeroStateSearchBar",(w.ytLearningJourneyZeroStateSearchBarDark=O,w))},_.W("textarea",{class:_.ax("ytLearningJourneyZeroStateTextInput",(n.ytLearningJourneyZeroStateTextInputDark=O,n)),el:Z,"on:keyup":E,"on:keydown":g,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.W("div",{class:_.ax("ytLearningJourneyZeroStateSearchButtonContainer",(k.ytLearningJourneyZeroStateSearchButtonContainerDark=O,k))},_.W(_.hM,{data:function(){return _.I(l.data().searchButton,_.Hi)},
className:"search-button",onClick:function(){return u(Z.value.value)},
buttonOverrides:function(){return{disabled:z(),style:O?"mono-inverse":"mono",size:"XL"}}}))),_.W(_.A,{cond:function(){return!!l.data().errorBanner},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.W(_.Tn,{data:function(){return l.data().errorBanner}},{alertBannerViewModel:function(y){return _.W(_.NJC,{data:y.data,
"client-ve-type":264617})}}))}})),_.W(_.A,{cond:e,
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.W(_.Tn,{data:function(){return l.data().loader}},{learningJourneyLoaderViewModel:function(y){return _.W(_.gQx,{data:y.data})}}))},
else:function(){return _.W("div",null,_.W(_.A,{cond:function(){return!!l.data().learningJourneyShelf},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return l.data().learningJourneySectionTitle}),_.W(_.Tn,{data:function(){return l.data().learningJourneyShelf}},{horizontalShelfViewModel:_.cq}))}}),_.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return l.data().suggestedJourneySectionTitle}),
_.W("div",{"on:click":d},_.W(_.Tn,{data:function(){return l.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(y){return _.W(c5,{data:y.data,
layout:1})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.lB}});var aXq=_.XO(function(l){var e=l.data;return _.W("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ax("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.W(_.zK,{text:function(){var O;return(O=e())==null?void 0:O.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.W(_.Tn,{data:function(){return e().actionButton}},{buttonViewModel:function(O){return _.W(_.hM,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:O.data})}}))},"Zc");var kUC=_.XO(function(l){var e=l.data;return _.W("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ax("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.W(_.zK,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var O;return(O=e())==null?void 0:O.displayName},
ellipsisTruncate:!0}),_.W(_.Tn,{data:function(){return e().badge}},{buttonViewModel:function(O){return _.W(_.hM,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:O.data})}}))},"$c");_.Zw(_.XO(function(l){var e=l.data;return _.W("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.W("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.W(_.zK,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var O;return(O=e())==null?void 0:O.rank}})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.W(_.Tn,{data:function(){return e().avatar}},{avatarViewModel:_.Hp})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.W(_.Tn,{data:function(){return e().content}},{liveLeaderboardItemChannelContentViewModel:kUC,
liveLeaderboardItemActionContentViewModel:aXq})),_.W(_.zK,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var O;return(O=e())==null?void 0:O.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;return _.W("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.W(_.zK,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var O,E;return(O=e())==null?void 0:(E=O.ranking)==null?void 0:E.rank}}),_.W("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.W(_.Tn,{data:function(){return e().avatar}},{avatarViewModel:_.Hp})),_.W(_.zK,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var O,E;return(O=e())==null?void 0:(E=O.channelContent)==null?void 0:E.channelName}}),_.W(_.zK,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var O;return(O=e())==null?void 0:O.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.lB}});var IXS=_.XO(function(l){l=_.J3(l,{wrapper:!1}).wrapper;return _.W(_.A,{cond:l,then:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.W("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
IXS.idomCompat=!0;var myF=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],y_1=_.XO(function(l){var e=l.data;var O=_.e4("div"),E=_.mF(function(){return e().command},void 0,"tJY20c");
_.Gh(function(){E()&&_.qT(E(),{form:{element:O.value}})},"qs6Sof");
return _.W("div",{el:O,class:"YtQrCodeRendererHostContainer"},_.W(_.A,{cond:function(){return e().qrCodeImage},
then:function(J){return _.W(_.Jm,{data:J,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.W(_.A,{cond:function(){return e().spinner},
then:function(){return _.W(IXS,null)}})}}),_.W(_.A,{cond:function(){return e().label},
then:function(J){return _.W(_.zK,{text:J,className:"YtQrCodeRendererHostLabel"})}}),_.W(_.A,{cond:function(){return e().labels},
then:function(J){return _.W("div",{class:"YtQrCodeRendererHostLabels"},_.W(_.KH,{each:J},function(z){return _.W(_.zK,{text:z})}))}}))},"ed");_.Zw(_.XO(function(l){var e=l.data;var O=_.mF(function(){return e().qrEntityKey},void 0,"joYCxd"),E=_.mF(function(){return e().deleteEntityOnDismiss},void 0,"x3yAde"),J=_.mF(function(){return e().command},void 0,"dJe1Re"),z=_.kD(IaV,O);
l=_.mF(function(){return e().qrCodeImage},void 0,"qM5dZe");
var M=_.mF(function(){return e().style&&myF.includes(e().style)},void 0,"CaNEkf"),Z=_.e4("yt-qr-code-renderer");
_.VR(Z,{visibilityCallback:function(u){u&&J()&&_.qT(J())},
showOption:{calledOnce:!0,state:"visible"}});_.sC(function(){_.B3(function(){E()&&O()&&_.ls().dispatch(_.IK("qrCodeEntity",O()))})});
return _.W("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:Z},_.W(_.A,{cond:M,then:function(){return _.W(_.A,{cond:z,then:function(u){return _.W(y_1,{data:u})}})}}),_.W(_.A,{cond:l,
then:function(u){return _.W(_.Jm,{data:u,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.lB}});_.pzk=_.XO(function(l){var e=l.data;var O=l.topbarOffset;var E,J=((E=_.V2().resolve(_.MG(_.lp)))==null?void 0:E())||!1;return _.W("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var z=e();var M,Z,u=J?(M=z.config)==null?void 0:M.darkThemeBackgroundColor:(Z=z.config)==null?void 0:Z.lightThemeBackgroundColor;z=u?_.t$(u):void 0;z="background-color: "+z+";";O!==void 0&&(z+="top: -"+O()+"px;");return z},
"aria-hidden":!0},_.W(_.A,{cond:function(){var z,M,Z;return!!((z=e().backgroundImageConfig)==null?0:(M=z.image)==null?0:(Z=M.sources)==null?0:Z.length)},
then:function(){return _.W(_.Jm,{data:function(){var z;return(z=e().backgroundImageConfig)==null?void 0:z.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.W("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+TOp(J,e().gradientColorConfig)+";"}}))},"fd");
_.pzk.idomCompat=!0;var FU=_.XO(function(l){var e=l.className;var O=l.data;var E=l.isOverlay;var J=l.maxLinesOverride;var z=l.useMediumText;l=_.e4("yt-description-preview-view-model");var M=function(){return O().alwaysShowTruncationText},Z=function(){return O().truncationText},u=function(){return z!==void 0&&z()?"medium":"small"},d=function(){return E!==void 0&&E()?"overlay":"default"},g=function(){var c,f;
return(f=(c=_.I(O().rendererContext,_.yu))==null?void 0:c.label)!=null?f:""},w=_.b(_.AF(!1,void 0,"mkuWzb")),n=w.next().value,k=w.next().value;
_.xD(l,function(){return O().rendererContext});
w=_.pd(function(){O().expandOnTap&&k(!n());return!1});
var y={};return _.W("yt-description-preview-view-model",{el:l,class:_.ax("yt-description-preview-view-model-wiz",e,(y["yt-description-preview-view-model-wiz--clickable"]=function(){var c;return!((c=_.I(O().rendererContext,o98))==null||!c.onTap)},y["yt-description-preview-view-model-wiz--is-overlay"]=E,y)),
"on:click":w},_.W(_.A,{cond:function(){return O().description},
then:function(c){return _.W(_.A,{cond:n,then:function(){var f={};return _.W("div",{class:_.ax("yt-description-preview-view-model-wiz__description",(f["yt-description-preview-view-model-wiz__description--medium-text"]=z,f))},_.W(_.zK,{text:c}))},
else:function(){return _.W(DXq,{text:c,alwaysShowTruncationText:M,truncationText:Z,maxLines:function(){var f;return(f=J==null?void 0:J())!=null?f:O().maxLines},
textStyle:d,accessibilityLabel:g,textSize:u})}})}}))},"gd");
FU.idomCompat=!0;var KUq=_.XO(function(l){var e=l.data;var O=l.isOverlay;return _.W("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.W("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.W(_.Tn,{data:function(){return e().header}},{sectionHeaderViewModel:function(E){return _.W(_.z3,{data:E.data,
isOverlay:O})}})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.W(_.Tn,{data:function(){return e().channelInfoButtons}},{flexibleActionsViewModel:c5})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.W(_.Tn,{data:function(){return e().description}},{descriptionPreviewViewModel:function(E){return _.W(FU,{data:E.data,
isOverlay:O})}})))},"hd");
KUq.idomCompat=!0;var jjq=_.XO(function(l){var e=l.data;var O={};return _.W("factoid-view-model",{class:_.ax("ytwFactoidViewModelHost",(O.ytwFactoidViewModelHostOverlay=l.isOverlay,O))},_.W(_.zK,{text:function(){return e().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.W(_.zK,{text:function(){return e().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
jjq.idomCompat=!0;var H$k=_.XO(function(l){var e=l.data;var O=l.isOverlay;return _.W("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.W(_.Tn,{data:function(){return e().factoids}},{factoidViewModel:function(E){return _.W(jjq,{data:E.data,
isOverlay:O})}}))},"jd");
H$k.idomCompat=!0;_.c_6=_.XO(function(l){var e=l.data;var O=l.isOverlay;return _.W("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.W(_.Tn,{data:function(){return e().items}},{channelInfoViewModel:function(E){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(KUq,{data:E.data,
isOverlay:O}))},
coursePerksViewModel:function(E){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(oQq,{data:E.data,isOverlay:O}))},
descriptionPreviewViewModel:function(E){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(FU,{data:E.data,isOverlay:O}))},
factoidsRowViewModel:function(E){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(H$k,{data:E.data,isOverlay:O}))},
progressViewModel:function(E){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W($y1,{data:E.data,isOverlay:O}))}}))},"kd");var FUH=_.XO(function(l){return _.W("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.W(_.Tn,{data:function(){return l.data().content}},{courseMetadataViewModel:function(e){return _.W(_.c_6,{data:e.data,
isOverlay:l.isOverlay})},
progressViewModel:function(e){return _.W($y1,{data:e.data})}}))},"ld");var fXq=_.XO(function(l){var e=l.data;l=l.className;var O=_.e4("yt-dynamic-text-view-model"),E=function(){var z;return _.Qz((z=e())==null?void 0:z.rendererContext)},J={};
J=(J["dynamic-text-view-model-wiz"]=!0,J["dynamic-text-view-model-wiz--tappable"]=function(){return E()},J);
_.xD(O,function(){var z;return(z=e())==null?void 0:z.rendererContext});
return _.W("yt-dynamic-text-view-model",{el:O,role:function(){return E()?"link":void 0},
tabindex:function(){return E()?0:void 0},
class:_.ax(l,J)},_.W("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var z,M,Z;return(Z=(M=_.I((z=e())==null?void 0:z.rendererContext,_.yu))==null?void 0:M.label)!=null?Z:""}},_.W(_.zK,{text:function(){return e().text},
userInput:!0})))},"md");
fXq.idomCompat=!0;_.RV1=_.XO(function(l){var e=l.data;var O=l.isPositionRelative;var E=_.O0("yt-image-banner-view-model"),J=_.GOg("(max-width: 527.9px)"),z=function(){var M,Z;return(Z=(M=e())==null?void 0:M.style)!=null?Z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
l={};l=(l["yt-image-banner-view-model-wiz"]=!0,l["yt-image-banner-view-model-wiz--inset"]=function(){return BOT(z())},l["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.UB(!0)&&!(O==null?0:O())},l["yt-image-banner-view-model-wiz--small-inset"]=function(){return BOT(z())&&J()},l["yt-image-banner-view-model-wiz--tappable"]=function(){var M;
return _.UB(E.value)&&_.Qz((M=e())==null?void 0:M.rendererContext)},l);
_.xD(E,function(){var M;return(M=e())==null?void 0:M.rendererContext});
return _.W("yt-image-banner-view-model",{el:E,class:_.ax(l)},_.W(_.A,{cond:function(){var M;return(M=e())==null?void 0:M.image},
then:function(){return _.W(_.Jm,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.W(_.Tn,{data:function(){var M;
return(M=e())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:jW}))},"nd");
_.RV1.idomCompat=!0;var TRR;TRR=_.XO(function(l){var e=l.condition;var O=l.content;return _.W(_.A,{cond:e,then:function(){return _.W("div",{class:"page-header-view-model-wiz__scroll-container"},O())},
else:function(){return O()}})},"od");
_.sj1=_.XO(function(l){var e=l.data;var O=l.noPadding;var E=l.enableBanner;var J=l.cinematicContainerTopbarOffset;var z=l.allowCinematicContainerOverflow;var M=l.displayAsSidebar;var Z=l.displayAsPanel;var u=P6x(),d=function(){return!!e().image||!!e().animatedImage},g=function(){return!!e().background},w=function(){return(M==null?0:M())||(Z==null?0:Z())?1:u()},n=function(){return w()===1},k=function(){return n()||w()===2},y=function(){return w()===4},c=function(){var jM=e();
var cx=!!e().heroImage;var tq=w(),Px=U_2(e()),S0=M==null?void 0:M(),QH=!jM.metadata,pR;if(pR=cx?_.I(jM.heroImage,EU1):_.I(jM.animatedImage||jM.image,EU1)){jM=pR.style;var oq=pR.layoutMode;if(oq!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(pR=kFp(aQx(pR)),cx)cx=sYM(tq,jM,oq,pR,S0);else b:if(QH)cx=tq===1?{size:48}:{size:72};else switch(tq){case 1:cx={size:72};break b;case 2:cx={size:120};break b;default:cx=Px<4?{size:120}:{size:160}}else cx=void 0}else cx={size:0};return cx};
l={};l=_.ax((l["page-header-view-model-wiz"]=!0,l["page-header-view-model-wiz--no-padding"]=function(){return!(O==null||!O())},l["page-header-view-model-wiz--small-top-padding"]=function(){return n()&&!e().actions&&!(Z==null?0:Z())||w()===2&&!(d()||e().heroImage)},l["page-header-view-model-wiz--small-bottom-padding"]=function(){return k()&&!e().actions&&!(Z==null?0:Z())},l["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(z==null?0:z())},l["page-header-view-model-wiz--display-as-sidebar"]=
M,l));
var f={},P=_.ax((f["page-header-view-model-wiz__page-header-headline"]=!0,f["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var jM;return(jM=c())==null?void 0:jM.allowFullWidth},f)),h=function(){var jM;
return k()&&!((jM=c())==null?0:jM.allowFullWidth)},N=function(){return n()&&(!!e().heroImage||d())&&U_2(e())>0},t=function(){return N()&&(Z==null?void 0:Z())};
f={};var r=_.ax((f["page-header-view-model-wiz__page-header-title"]=!0,f["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!N()},f["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return N()&&!t()},f["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=t,f["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=g,f));
f={};var D=_.ax((f["page-header-view-model-wiz__page-header-headline-image"]=!0,f["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!e().heroImage&&k()},f));
f={};var b2=_.ax((f["page-header-view-model-wiz__page-header-banner-container"]=E,f["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var jM;return(E==null?void 0:E())&&((jM=_.I(e().banner,_.XC1))==null?void 0:jM.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},f));
f={};var $V=_.ax((f["page-header-view-model-wiz__page-header-content-metadata"]=!0,f["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=g,f));f={};var gT=_.ax((f["page-header-view-model-wiz__page-header-flexible-actions"]=!0,f["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!e().metadata||k()},f["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!k()},f));
f={};var mx=_.ax((f["page-header-view-model-wiz__page-header-attribution"]=!0,f["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=g,f));return _.W("yt-page-header-view-model",{class:l},_.W(_.A,{cond:g,then:function(){return _.W("div",{class:"page-header-view-model-wiz__page-header-background"},_.W(_.Tn,{data:function(){return e().background}},{cinematicContainerViewModel:function(jM){return _.W(_.pzk,{data:jM.data,
topbarOffset:J})}}))}}),_.W(TRR,{condition:function(){return!(M==null||!M())},
content:function(){return _.W("div",{class:"page-header-view-model-wiz__page-header-content"},_.W(_.A,{cond:function(){return(E==null?void 0:E())&&e().banner},
then:function(){return _.W("div",{class:b2},_.W(_.Tn,{data:function(){return e().banner}},{imageBannerViewModel:_.RV1}))}}),_.W("div",{class:P},_.W(_.A,{cond:d,
then:function(){return _.W(_.Tn,{data:function(){var jM;if(!(jM=e().animatedImage)){jM=e();if(d()){var cx=jM=Object.assign({},jM),tq=w(),Px=U_2(e()),S0=cx.image,QH=_.I(S0,JKH),pR=QH==null?void 0:QH.avatar,oq=_.I(pR,_.l3);if(S0&&pR&&oq){switch(tq){case 1:oq.avatarImageSize="AVATAR_SIZE_XL";break;case 2:oq.avatarImageSize="AVATAR_SIZE_XXL";break;default:Px<4?oq.avatarImageSize="AVATAR_SIZE_XXL":oq.avatarImageSize="AVATAR_SIZE_XXXL"}_.a("web_enable_sink_page_header_view_model")&&(_.Pf(pR,_.l3,Object.assign({},
oq)),QH.avatar=Object.assign({},pR),_.Pf(S0,JKH,Object.assign({},QH)),cx.image=Object.assign({},S0))}}jM=jM.image}return jM}},{contentPreviewImageViewModel:function(jM){return _.W(_.VD,{data:jM.data,
className:D,imageSizeConfig:c})},
decoratedAvatarViewModel:function(jM){return _.W(_.cp,{data:jM.data,className:D})}})}}),_.W(_.A,{cond:function(){return!!e().heroImage&&!h()},
then:function(){return _.W(_.Tn,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(jM){return _.W(_.VD,{data:jM.data,
className:D,imageSizeConfig:c})}})}}),_.W("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.W(_.A,{cond:function(){return!!e().heroImage&&h()},
then:function(){return _.W("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.W(_.Tn,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(jM){return _.W(_.VD,{data:jM.data,
className:D,imageSizeConfig:c})}}))}}),_.W(_.Tn,{data:function(){return e().title}},{dynamicTextViewModel:function(jM){return _.W(fXq,{data:jM.data,
className:r})}}),_.W(_.Tn,{data:function(){return e().metadata}},{contentMetadataViewModel:function(jM){return _.W(_.Bj0,{data:jM.data,
layout:function(){return n()?1:0},
className:$V,isOverlay:g,useMediumText:y})}}),_.W(_.A,{cond:function(){return e().description&&!n()},
then:function(){return _.W(_.Tn,{data:function(){return e().description}},{descriptionPreviewViewModel:function(jM){return _.W(FU,{data:jM.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:g,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:y})}})}}),_.W(_.A,{cond:function(){return e().attribution&&!k()},
then:function(){return _.W(_.Tn,{data:function(){return e().attribution}},{attributionViewModel:function(jM){return _.W(cjq,{data:jM.data,
className:mx,useMediumText:y})}})}}),_.W(_.A,{cond:function(){return e().actions&&!k()},
then:function(){return _.W(_.Tn,{data:function(){return e().actions}},{flexibleActionsViewModel:function(jM){return _.W(c5,{data:jM.data,
layout:function(){return YyA(w())},
className:gT})}})}}))),_.W("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.W(_.A,{cond:function(){return e().description&&n()},
then:function(){return _.W(_.Tn,{data:function(){return e().description}},{descriptionPreviewViewModel:function(jM){return _.W(FU,{data:jM.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:g,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:y})}})}}),_.W(_.A,{cond:function(){return e().attribution&&k()},
then:function(){return _.W(_.Tn,{data:function(){return e().attribution}},{attributionViewModel:function(jM){return _.W(cjq,{data:jM.data,
className:mx,useMediumText:y})}})}}),_.W(_.A,{cond:function(){return e().actions&&k()},
then:function(){return _.W(_.Tn,{data:function(){return e().actions}},{flexibleActionsViewModel:function(jM){return _.W(c5,{data:jM.data,
layout:function(){return YyA(w())},
className:gT})}})}})),_.W("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.W(_.Tn,{data:function(){return e().bottomMetadataFlexibleContainer}},{flexibleContainer:function(jM){return _.W(FUH,{data:jM.data,
isOverlay:g})}})))}}))},"pd");
_.sj1.idomCompat=!0;_.Zw(_.XO(function(l){var e=_.b(_.AF(!1,void 0,"vVRl3b")),O=e.next().value,E=e.next().value;return _.W("yt-official-card-view-model",{class:_.ax("ytOfficialCardViewModelHost",l.className),style:_.HF({"background-color":function(){var J,z=rsp((J=l.data())==null?void 0:J.backgroundColor);return z?_.qv(z):void 0}})},_.W(_.Tn,{data:function(){return l.data().header}},{pageHeaderViewModel:function(J){return _.W(_.sj1,{data:J.data,
noPadding:!0})}}),_.W(_.Tn,{data:function(){return l.data().contents}},{horizontalShelfViewModel:function(J){return _.W(_.cq,{data:J.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.W(_.A,{cond:O,
then:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandedContent"},_.W(_.Tn,{data:function(){return l.data().expandedContents}},{horizontalShelfViewModel:function(J){return _.W(_.cq,{data:J.data,
sizing:"MINI"})}}),_.W("div",{class:"ytOfficialCardViewModelCollapseButton"},_.W(_.Tn,{data:function(){return l.data().collapseButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
onClick:function(){E(!O())}})}})))},
else:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandButton"},_.W(_.Tn,{data:function(){return l.data().expandButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
onClick:function(){E(!O())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.lB,
className:_.lB}});var hKT=_.jp({buttonViewModel:_.hM});_.Z8(L_A);_.ip(L_A,"ytw-search-friction-view-model",{propNames:["data"]});_.fc=_.XO(function(l){var e=_.e4("markdown-div"),O,E=(O=_.V2().resolve(_.MG(_.lp)))==null?void 0:O();_.Gh(function(){var J=e.value;var z=new pxi,M=new Map(z.JSC$7338_sanitizerTable.globalAttributePolicies);M.set("style",{policyAction:4});z.JSC$7338_sanitizerTable=new p3(z.JSC$7338_sanitizerTable.allowedElements,z.JSC$7338_sanitizerTable.elementPolicies,z.JSC$7338_sanitizerTable.allowedGlobalAttributes,M,z.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes);var Z=["data-time"];if(Z===void 0)M=
new Set(z.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes),M.add("data-"),z.JSC$7338_sanitizerTable=new p3(z.JSC$7338_sanitizerTable.allowedElements,z.JSC$7338_sanitizerTable.elementPolicies,z.JSC$7338_sanitizerTable.allowedGlobalAttributes,z.JSC$7338_sanitizerTable.globalAttributePolicies,M);else{M=new Set(z.JSC$7338_sanitizerTable.allowedGlobalAttributes);Z=_.b(Z);for(var u=Z.next();!u.done;u=Z.next()){u=u.value;if(u.indexOf("data-")!==0)throw Error("qa`"+u);M.add(u)}z.JSC$7338_sanitizerTable=
new p3(z.JSC$7338_sanitizerTable.allowedElements,z.JSC$7338_sanitizerTable.elementPolicies,M,z.JSC$7338_sanitizerTable.globalAttributePolicies,z.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes)}M=new Set(z.JSC$7338_sanitizerTable.allowedGlobalAttributes);M.add("class");z.JSC$7338_sanitizerTable=new p3(z.JSC$7338_sanitizerTable.allowedElements,z.JSC$7338_sanitizerTable.elementPolicies,M,z.JSC$7338_sanitizerTable.globalAttributePolicies,z.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes);
_.Ye(J,_.aW1(z.build(),qy8(l.text())));vtd(e.value)},"FI2gYe");
O={};return _.W("div",null,_.W("markdown-div",{class:_.ax("ytwMarkdownDivHost",(O.ytwMarkdownDivDark=E,O.ytwMarkdownDivHostSmall=function(){var J;return((J=l.isSmallText)==null?void 0:J.call(l))||!1},O)),
el:e}))},"rd");
_.fc.idomCompat=!0;var GUS=_.XO(function(l){var e=l.imageData;var O=_.Et(l.isInList,!1),E=function(){return O()?{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 _.W("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.W(_.A,{cond:function(){return e().image},
then:function(J){return _.W(_.Jm,{data:J,alt:function(){return E().alt},
contentMode:function(){return E().contentMode},
targetWidth:function(){return E().targetWidth},
targetHeight:function(){return E().targetHeight},
className:function(){return E().className}})}}),_.W("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.W("div",{class:_.ax("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.W(_.zK,{text:function(){return e().title}})),_.W(_.KH,{each:function(){var J;
return(J=e().description)!=null?J:[]}},function(J){return _.W("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.W(Rg,{content:J}))})))},"sd"),BRi=_.XO(function(l){var e=l.list;
var O=function(){var E;return(E=e().items)!=null?E:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelListContent"},_.W(_.A,{cond:function(){return e().title},
then:function(E){return _.W("div",{class:_.ax("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.W(_.zK,{text:E}))}}),_.W(_.A,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.W("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.W(_.KH,{each:O},function(E){return _.W("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.W(Rg,{content:E,isInList:!0}))}))}}),_.W(_.A,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.W("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.W(_.KH,{each:O},function(E){return _.W("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.W(Rg,{content:E,isInList:!0}))}))}}),_.W(_.A,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelImageList"},_.W(_.KH,{each:O},function(E){return _.W("div",{class:"ytwGenAiRichTextViewModelListItem"},_.W(Rg,{content:E,isInList:!0}))}))}}))},"td"),PCq=_.XO(function(l){var e=l.table;
return _.W("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.W("thead",null,_.W("tr",null,_.W(_.KH,{each:function(){var O,E;return(E=(O=e().header)==null?void 0:O.cells)!=null?E:[]}},function(O){return _.W("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.W(_.KH,{each:function(){return O.contents}},function(E){return _.W(Rg,{content:E})}))}))),_.W("tbody",null,_.W(_.KH,{each:function(){var O;
return(O=e().rows)!=null?O:[]}},function(O){return _.W("tr",null,_.W(_.KH,{each:function(){return O.cells}},function(E){return _.W("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.W(_.KH,{each:function(){return E.contents}},function(J){return _.W(Rg,{content:J})}))}))})))},"ud"),Rg=_.XO(function(l){var e=l.content;
var O=_.Et(l.isInList,!1),E=function(){var J,z;return(z=(J=e().contentBlock)==null?void 0:J.contents)!=null?z:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.W(_.A,{cond:function(){return e().text},
then:function(J){return _.W(_.zK,{className:"ytwGenAiRichTextViewModelText",text:J})}}),_.W(_.A,{cond:function(){return e().image},
then:function(J){return _.W(GUS,{imageData:J,isInList:O})}}),_.W(_.A,{cond:function(){return e().list},
then:function(J){return _.W(BRi,{list:J})}}),_.W(_.A,{cond:function(){return e().contentBlock},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.W(_.KH,{each:E},function(J){return _.W(Rg,{content:J,isInList:!1})}))}}),_.W(_.A,{cond:function(){return e().table},
then:function(J){return _.W(PCq,{table:J})}}))},"vd"),UyS=_.XO(function(l){var e={};
e=_.Ix("ytwGenAiRichTextViewModelHost",(e.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.oy("search_overview_link_style")),e));return _.W("gen-ai-rich-text-view-model",{class:e},_.W(Rg,{content:function(){return l.data().content}}))},"wd");_.Z8(NOV);_.Z8(qs);_.Ybq=_.XO(function(l){var e=l.data;var O=function(){var c;return((c=e().loadingUi)!=null?c:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},E=function(){return e().isLoading&&(O()==="UNSPECIFIED"||O()==="GHOST_CARD")},J=function(){return!e().isLoading},z=function(){return!!e().content&&!e().contents},M=function(){return!!e().contents},Z=function(){return!!e().nextQueryButtons},u=function(){return e().isLoading&&O()==="INVISIBLE"},d=function(){var c,f;
return(f=(c=e().headerIcon)==null?void 0:c.iconType)!=null?f:""},g=function(){var c;
return(c=e().content)!=null?c:""},w=function(){return!!e().sourcesSection},n,k=!((n=_.V2().resolve(_.MG(_.lp)))==null||!n()),y=_.mF(function(){var c=[],f=e().contents;
if(f)for(var P=0;P<f.length;P++){var h=_.I(f&&f[P],Ca0);h&&c.push(h)}return c},void 0,"ycU97e");
_.sC(function(){e().isLoading||_.Yu("so_re",void 0,"search_overview_answer")});
return _.W("ytd-overview-answer-view-model",{class:function(){var c={};c=(c.ytdOverviewAnswerViewModelHost=!0,c.ytdOverviewAnswerViewModelDarkBackground=k&&!u(),c.ytdOverviewAnswerViewModelLightBackground=!k&&!u(),c);return _.Ix(c)}},_.W(_.A,{cond:function(){return!u()},
then:function(){return _.W(_.ZB,null,_.W("h2",null,_.W("div",{class:"ytdOverviewAnswerViewModelHeader"},_.W(_.A,{cond:d,then:function(c){return _.W("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.W(_.cF,{icon:c}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.W("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return e().headerText}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.W(_.zK,{text:function(){return e().headerSubtext}}))))),_.W(_.A,{cond:E,
then:function(){return NOV()}}),_.W(_.A,{cond:J,
then:function(){return _.W(_.ZB,null,_.W(_.A,{cond:z,then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelText"},_.W(_.fc,{text:g,isSmallText:!0}))}}),_.W(_.A,{cond:M,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelRichText"},_.W(_.KH,{each:y},function(c){return _.W(UyS,{data:c})}))}}),_.W(_.A,{cond:Z,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.W(_.Tn,{data:function(){return e().nextQueryButtons}},{buttonViewModel:function(c){return _.W(_.hM,{data:c.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.cq}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.W("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.W(_.A,{cond:function(){return!!_.I(e().likeButtonViewModel,_.Bi)&&!!_.I(e().dislikeButtonViewModel,_.Pi)},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.W(_.TB,{data:function(){return _.I(e().likeButtonViewModel,_.Bi)},
disableIconAnimation:!0}),_.W(_.FK,{data:function(){return _.I(e().dislikeButtonViewModel,_.Pi)}}))}})),_.W(_.A,{cond:function(){var c;
return(c=e().sourcesSection)==null?void 0:c.headerText},
then:function(c){return _.W("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.W(_.zK,{text:c}))}})),_.W(_.A,{cond:w,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelSources"},_.W(_.Tn,{data:function(){var c;return(c=e().sourcesSection)==null?void 0:c.sourcesShelf}},{buttonViewModel:_.hM,
horizontalShelfViewModel:function(c){return _.W(_.cq,{data:c.data,includeMargin:!0,hasPeek:!0})}}))}}),_.W(_.A,{cond:function(){return e().disclaimerText},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.W(_.zK,{text:function(){return e().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var hVq=_.XO(function(l){var e=l.data;var O=l.active;var E=_.e4("transcript-segment-view-model");_.Gh(function(){var J,z,M,Z=((J=_.V2().resolve(_.MG(_.lp)))==null?0:J())?(z=e())==null?void 0:z.darkThemeColorPalette:(M=e())==null?void 0:M.lightThemeColorPalette;Z&&(Z.additiveBackground&&E.value.style.setProperty("--timestamp-active-background-color",_.qv(Z.additiveBackground)),Z.textSecondary&&E.value.style.setProperty("--timestamp-active-color",_.t$(Z.textSecondary)))},"KHcbwb");
l={};return _.W("transcript-segment-view-model",{class:_.ax("ytwTranscriptSegmentViewModelHost",(l.ytwTranscriptSegmentViewModelHostActive=O,l.ytwTranscriptSegmentViewModelHostModern=_.a("enable_timeline_view_modern_transcript")||_.a("enable_timeline_view_modern_transcript_fe"),l)),el:E},_.W(_.A,{cond:function(){var J;return(J=e())==null?void 0:J.timestamp},
then:function(J){var z={};return _.W("div",{class:_.ax("ytwTranscriptSegmentViewModelTimestamp",(z.ytwTranscriptSegmentViewModelTimestampActive=O,z))},J)}}),_.W(_.zK,{text:function(){var J,z,M;
return(M=(J=e())==null?void 0:J.attributedText)!=null?M:{content:(z=e())==null?void 0:z.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yd");var LU1=_.XO(function(l){var e=l.data;return _.W("div",{class:"yt-video-attributes-section-view-model__header"},_.W("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return e().headerTitle}),_.W(_.A,{cond:function(){return e().headerSubtitle},
then:function(){return _.W("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return e().headerSubtitle})}}))},"zd"),t_k=_.XO(function(l){function e(c){return Math.max(Math.min(c,0),d()-Z())}
var O=l.data;var E,J=_.e4("div",function(c){if(_.a("web_metadata_carousel_elref_bugfix")){var f=function(){g(c.clientWidth)};
f();window.ResizeObserver&&(E=new ResizeObserver(f),E.observe(c))}}),z=_.e4("div",function(c){u(c.scrollWidth)}),M=_.b(_.AF(0,void 0,"I9GbH"));
l=M.next().value;M=M.next().value;var Z=l,u=M;M=_.b(_.AF(0,void 0,"eQAn5b"));l=M.next().value;M=M.next().value;var d=l,g=M;l=_.b(_.AF(0,void 0,"VU3lg"));var w=l.next().value,n=l.next().value;_.sC(function(){if(!_.a("web_metadata_carousel_elref_bugfix")){var c=function(){u(z.value.scrollWidth);g(J.value.clientWidth)};
c();if(window.ResizeObserver){var f=new ResizeObserver(c);f.observe(J.value);_.B3(function(){f.disconnect()})}}});
_.B3(function(){if(_.a("web_metadata_carousel_elref_bugfix")){var c;(c=E)==null||c.disconnect()}});
var k=function(){n(e(w()+d()))},y=function(){n(e(w()-d()))};
return _.W("yt-video-attributes-section-view-model",null,_.W("div",{class:"yt-video-attributes-section-view-model"},_.W(_.A,{cond:function(){return O().headerTitle},
then:function(){return _.W(LU1,{data:O})}}),_.W("div",{class:_.ax("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:J},_.W("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.HF({transform:function(){var c=w();_.hT("HTML_DIR")==="rtl"&&(c*=-1);return"translateX("+c+"px)"}}),
el:z},_.W(_.Tn,{data:function(){return O().videoAttributeViewModels}},{videoAttributeViewModel:SJ6}))),_.W(_.Tn,{data:function(){return O().footerButton}},{buttonViewModel:function(c){return _.W(_.hM,{data:c.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.W(_.A,{cond:function(){return w()<0&&O().previousButton},
then:function(){return _.W("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.W(_.Tn,{data:function(){return O().previousButton}},{buttonViewModel:function(c){return _.W(_.hM,{data:c.data,
onClick:k})}}))}}),_.W(_.A,{cond:function(){return w()>d()-Z()&&O().nextButton},
then:function(){return _.W("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.W(_.Tn,{data:function(){return O().nextButton}},{buttonViewModel:function(c){return _.W(_.hM,{data:c.data,
onClick:y})}}))}})))},"Ad");
t_k.idomCompat=!0;var qbq=_.XO(function(l){var e=l.data;var O=l.active;var E={},J={};return _.W("timeline-item-view-model",{class:_.ax("ytwTimelineItemViewModelHost",(E.ytwTimelineItemViewModelHostChapterChild=l.chapterChild,E.ytwTimelineItemViewModelModern=_.a("enable_timeline_view_modern_transcript")||_.a("enable_timeline_view_modern_transcript_fe"),E))},_.W("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.W("div",{class:_.ax("ytwTimelineItemViewModelTimestamp",(J.ytwTimelineItemViewModelTimestampActive=
O,J))},function(){return e().timestamp})),_.W("div",{class:"ytwTimelineItemViewModelContentItems"},_.W(_.Tn,{data:function(){return e().contentItems}},{transcriptSegmentViewModel:function(z){return _.W(hVq,{data:z.data,
active:O})},
videoAttributesSectionViewModel:t_k})))},"Bd");var vQq=_.XO(function(l){var e=l.data;l={};return _.W("timeline-chapter-view-model",{class:_.ax("ytwTimelineChapterViewModelHost")},_.W("div",{class:_.ax("ytwTimelineChapterViewModelTitle",(l.ytwTimelineChapterViewModelModern=_.a("enable_timeline_view_modern_transcript")||_.a("enable_timeline_view_modern_transcript_fe"),l))},function(){return e().title}),_.W(_.Tn,{data:function(){return e().contents}},{timelineItemViewModel:function(O){return _.W(qbq,{data:O.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(O){return _.W(t_k,{data:O.data})}}))},"Cd");var NRS=_.XO(function(l){var e=l.data;var O=_.e4("macro-markers-panel-item-view-model"),E=_.kD(_.wlt,function(){var z;return(z=e().markersEngagementPanelSyncEntityKey)!=null?z:""}),J=function(){var z;
return((z=E())==null?void 0:z.activeItemIndex)===e().index};
l=_.pd(function(z){var M,Z,u,d,g;return _.V(function(w){if(w.nextAddress==1)return z.stopPropagation(),_.DP(_.rC(z),O.value,["A".toString(),"BUTTON".toString()])?w.return():(M=_.t3(e().onTap))?_.C(w,_.dC(),2):w.return();Z=w.yieldResult;d=(u=_.I(M,_.ej))==null?void 0:u.startTimeSeconds;d===void 0||(g=Z)!=null&&g.seekTo(d,!0);_.Cl(w)})});
return _.W("macro-markers-panel-item-view-model",{class:_.ax("ytwMacroMarkersPanelItemViewModelHost",{"is-active":J}),el:O,"on:click":l,tabindex:0},_.W(_.Tn,{data:function(){var z;return(z=e())==null?void 0:z.item}},{timelineChapterViewModel:function(z){return _.W(vQq,{data:z.data,
active:J})},
timelineItemViewModel:function(z){return _.W(qbq,{data:z.data,active:J})},
videoAttributeViewModel:SJ6}))},"Dd");
NRS.idomCompat=!0;_.Zw(NRS,"macro-markers-panel-item-view-model",{props:{data:_.lB}});_.Zw(t_k,"yt-video-attributes-section-view-model",{props:{data:_.lB}});var r_H=_.XO(function(l){var e=function(){var O,E,J;return(J=(O=l.data().leadingLogoAccessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label)!=null?J:""};
return _.W("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.W(_.A,{cond:function(){return l.data().leadingLogo},
then:function(O){return _.W(_.Jm,{className:"ytwFantasySectionHeaderViewModelLogo",data:O,alt:e})}}),_.W("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.W(_.zK,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return l.data().title}}),_.W(_.zK,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return l.data().subtitle}})),_.W(_.Tn,{data:function(){return l.data().trailingButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var DyC=_.XO(function(l){var e={};e=_.ax("ytwFantasyTeamViewModelHost",(e.ytwFantasyTeamViewModelCompact=function(){var J;return!((J=l.compact)==null||!J.call(l))},e.ytwFantasyTeamViewModelUser=function(){return l.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},e.ytwFantasyTeamViewModelOpponent=function(){return l.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},e));
var O=function(){var J,z,M;return(M=(J=l.data().teamLogoAccessibility)==null?void 0:(z=J.accessibilityData)==null?void 0:z.label)!=null?M:""},E=_.kD(nKA,function(){return l.data().teamEntityKey});
return _.W("ytw-fantasy-team-view-model",{class:e},_.W(_.A,{cond:function(){return l.data().teamLogo},
then:function(J){return _.W(_.Jm,{className:"ytwFantasyTeamViewModelLogo",data:J,alt:O})}}),_.W("div",{class:"ytwFantasyTeamViewModelMetadata"},_.W("div",{class:"ytwFantasyTeamViewModelHeader"},_.W(_.zK,{className:"ytwFantasyTeamViewModelScore",
text:function(){var J;return(J=E())==null?void 0:J.score}}),_.W(_.cF,{icon:function(){var J;
return(J=E())==null?void 0:J.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.W(_.zK,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var J;return(J=E())==null?void 0:J.projectedScore}})),_.W(_.zK,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return l.data().primaryText}}),_.W(_.zK,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return l.data().secondaryText}}),_.W(_.zK,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return l.data().tertiaryText}})),_.W(_.zK,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var J;return(J=E())==null?void 0:J.score}}))},"Fd");_.Zw(_.XO(function(l){return _.W("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.W("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.W(_.Tn,{data:function(){return l.data().summaryHeader}},{fantasySectionHeaderViewModel:r_H})),_.W(_.Tn,{data:function(){return l.data().userTeam}},{fantasyTeamViewModel:DyC}),_.W(_.Tn,{data:function(){return l.data().opponentTeam}},{fantasyTeamViewModel:DyC}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.lB}});var SbS=_.XO(function(l){var e=_.J3(l,{shape:{},useCustomTabRenderable:!1}),O=e.shape;e=e.useCustomTabRenderable;var E=l.customTabRenderable,J=function(){return O().disabled},z=function(){return O().selected},M=function(){return O().title},Z=function(){return O().icon},u=_.e4("yt-tab-shape");
l=_.pd(function(w){var n;if(!J()&&((n=O().aTagConfig)==null?0:n.onclick))O().aTagConfig.onclick(w);return!1});
var d=_.pd(function(w){if(w.key==="Enter"||w.key==="ArrowUp"||w.key==="ArrowDown")w.preventDefault(),u.value.click();return!1}),g={};
return _.W("yt-tab-shape",{class:_.ax("yt-tab-shape-wiz",function(){return O().className},(g["yt-tab-shape-wiz__tab--last-tab"]=function(){return O().isLastTab},g["yt-tab-shape-wiz--host-disabled"]=J,g["yt-tab-shape-wiz--host-clickable"]=!E,g)),
role:E?void 0:"tab","aria-selected":z!=null?z:!1,"aria-disabled":J,tabindex:E?void 0:0,"on:click":l,"on:keydown":d,el:u,"tab-identifier":function(){return O().identifier},
"tab-title":M},_.W(_.A,{cond:e,then:function(){return E()},
else:function(){var w={},n={};return _.W(_.ZB,null,_.W("div",{class:_.ax("yt-tab-shape-wiz__tab",(w["yt-tab-shape-wiz__tab--tab-selected"]=z,w))},_.W(_.A,{cond:Z,then:function(k){return _.W(_.cF,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return k().iconType}})}}),M),_.W("div",{class:_.ax("yt-tab-shape-wiz__tab-bar",(n["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=z,n))}))}}))},"Hd");
SbS.idomCompat={callbacks:{customTabRenderable:!0}};_.xyq=_.XO(function(l){var e=l.shape;l=_.b(_.AF(48,void 0,"r9IBlb"));var O=l.next().value,E=l.next().value;l=_.b(_.AF(0,void 0,"Bd7rmd"));var J=l.next().value,z=l.next().value,M=function(){return e().tabs},Z=_.e4("yt-tab-group-shape"),u=function(){var d,g;
return(g=(d=M())==null?void 0:d.findIndex(function(w){return w.selected}))!=null?g:-1};
_.sC(function(){var d=Z.value.querySelectorAll("yt-tab-shape"),g=u()>-1?d[u()]:void 0;_.UD.addJob(function(){E((g==null?void 0:g.getBoundingClientRect().width)||0)},8,0)});
_.Gh(function(){var d=u(),g=_.UD.addJob(function(){var w,n=((w=Z.value)==null?void 0:w.querySelectorAll("yt-tab-shape"))||[],k;E(((k=d>-1?n[d]:void 0)==null?void 0:k.getBoundingClientRect().width)||0);for(k=w=0;k<d;k++)w+=n[k].offsetWidth+24;_.hT("HTML_DIR")==="rtl"&&(w=-w);z(w)},8,0);
_.B3(function(){_.UD.cancelJob(g)})},"EHixkc");
l={};return _.W("yt-tab-group-shape",{class:_.ax("yt-tab-group-shape-wiz",(l["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return e().isOverflowHidden},l)),
el:Z},_.W(_.A,{cond:M,then:function(d){return _.W(_.ZB,null,_.W("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.W(_.KH,{each:d},function(g,w){return _.W(SbS,{shape:function(){return Object.assign({},g,{isLastTab:w()===d().length-1})},
customTabRenderable:g.customTabRenderable,useCustomTabRenderable:!!g.customTabRenderable})})),_.W(Qj6,{width:O,
sliderOffset:J}))}}))},"Id");
_.xyq.idomCompat=!0;var Qj6=_.XO(function(l){var e=_.Et(l.sliderOffset,0),O=l.width;return _.W("div",{class:"yt-tab-group-shape-wiz__slider",style:_.HF({width:function(){return O()+"px"},
transform:function(){return"translateX("+e()+"px)"}})})},"Jd");var lyq=_.XO(function(l){var e=function(){var z,M,Z;return(Z=(z=l.data().playerLogoAccessibility)==null?void 0:(M=z.accessibilityData)==null?void 0:M.label)!=null?Z:""},O=_.kD(aa2,function(){return l.data().playerEntityKey}),E={};
E=_.ax("ytwFantasyPlayerViewModelHost",(E.ytwFantasyPlayerViewModelPlaying=function(){var z;return!((z=O())==null||!z.isPlayerPlaying)},E.ytwFantasyPlayerViewModelOnField=function(){var z;
return((z=O())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},E.ytwFantasyPlayerViewModelRedZone=function(){var z;
return((z=O())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},E));
var J=function(){var z,M,Z,u=((z=_.V2().resolve(_.MG(_.lp)))==null?0:z())?(M=l.data().playerLogoBackgroundColor)==null?void 0:M.darkTheme:(Z=l.data().playerLogoBackgroundColor)==null?void 0:Z.lightTheme;return u===void 0?"":_.qv(u)};
return _.W("ytw-fantasy-player-view-model",{class:E},_.W(_.A,{cond:function(){return l.data().playerLogo},
then:function(z){return _.W("div",{class:"ytwFantasyPlayerViewModelLogo"},_.W("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.W(_.Jm,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.HF({"background-color":J}),data:z,alt:e})),_.W("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.W(_.cF,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.W("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.W("div",{class:"ytwFantasyPlayerViewModelHeader"},_.W(_.zK,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var z;return(z=l.data())==null?void 0:z.playerNameText}}),_.W(_.zK,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var z;return(z=l.data())==null?void 0:z.playerDescriptionText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.zK,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=O())==null?void 0:z.gamePeriodText}}),_.W(_.zK,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=l.data())==null?void 0:z.opponentTeamText}}),_.W(_.zK,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=O())==null?void 0:z.gameStatusText}}),_.W(_.zK,{className:_.ax("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var z;return(z=O())==null?void 0:z.playerStatusText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.zK,{text:function(){var z;
return(z=O())==null?void 0:z.playerStatsText}}))),_.W(_.zK,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var z;return(z=O())==null?void 0:z.fantasyScore}}))},"Kd");var eO1=_.XO(function(l){return _.W("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.W(_.A,{cond:function(){return l.data().players},
then:function(e){return _.W(_.Tn,{data:e},{fantasyPlayerViewModel:lyq})}}))},"Ld");var OMH=_.XO(function(l){var e=_.b(_.jN(function(){var J;return(J=l.data().selectedTabIdentifierKey)!=null?J:""})),O=e.next().value,E=e.next().value;
_.RU(function(){var J;(J=l.setSelectedTabSignal)==null||J.call(l,O)});
return _.W("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.W("div",{class:"ytTabbedViewModelTabGroup"},_.W(_.xyq,{shape:function(){var J=l.data(),z=[],M={tabs:z};if(!J.tabs)return M;J=_.b(J.tabs);for(var Z=J.next(),u={};!Z.done;u={tabViewModel:void 0},Z=J.next())if(u.tabViewModel=_.I(Z.value,ani),u.tabViewModel){var d=Z=void 0;z.push({aTagConfig:{onclick:function(g){return function(){var w;E((w=g.tabViewModel.tabIdentifier)!=null?w:"")}}(u)},
identifier:u.tabViewModel.tabIdentifier,selected:O()===u.tabViewModel.tabIdentifier,title:(d=(Z=u.tabViewModel.title)==null?void 0:Z.content)!=null?d:""})}return M}})),_.W(_.Tn,{data:function(){var J,z=_.b((J=l.data().tabs)!=null?J:[]);
for(J=z.next();!J.done;J=z.next())if((J=_.I(J.value,ani))&&J.tabIdentifier===O())return J.content}},{fantasyRosterViewModel:eO1}))},"Md");_.Zw(_.XO(function(l){var e=_.b(r4V()),O=e.next().value,E=e.next().value;return _.W("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.W(_.zK,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return l.data().title}}),_.W(_.A,{cond:function(){return l.data().tabbedViewModel},
then:function(J){return _.W(_.Tn,{data:J},{tabbedViewModel:function(z){return _.W(OMH,{data:z.data,setSelectedTabSignal:E})}})}}),_.W(_.A,{cond:function(){var J,z=(J=_.I(l.data().tabbedViewModel,kWS))==null?void 0:J.tabs;
J=_.I(z==null?void 0:z[0],ani);z=_.I(z==null?void 0:z[1],ani);var M=J==null?void 0:J.tabIdentifier;if(O()===M){var Z,u;if(!((Z=_.I(J==null?void 0:J.content,am1))==null?0:(u=Z.players)==null?0:u.length))return l.data().noUserTeamPlayersText}else{var d,g;if(!((d=_.I(z==null?void 0:z.content,am1))==null?0:(g=d.players)==null?0:g.length))return l.data().noOpponentTeamPlayersText}},
then:function(J){return _.W(_.zK,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:J})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){return _.W("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.W(_.zK,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return l.data().title}}),_.W(_.A,{cond:function(){return l.data().matchupTeamPairs},
then:function(e){return _.W(_.KH,{each:e,keyBy:"INDEX"},function(O){return _.W("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.W(_.Tn,{data:function(){return[O().firstTeam,O().secondTeam]}},{fantasyTeamViewModel:function(E){return _.W(DyC,{data:E.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=function(){var J,z,M;return(M=(J=l.data().userLogoAccessibility)==null?void 0:(z=J.accessibilityData)==null?void 0:z.label)!=null?M:""},O=function(){var J,z,M;
return(M=(J=l.data().opponentLogoAccessibility)==null?void 0:(z=J.accessibilityData)==null?void 0:z.label)!=null?M:""},E=_.kD(AaV,function(){return l.data().entityKey});
return _.W("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.W(_.A,{cond:function(){return l.data().userLogo},
then:function(J){return _.W(_.Jm,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:e})}}),_.W("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.W(_.zK,{text:function(){return l.data().title}})),_.W(_.A,{cond:function(){return l.data().opponentLogo},
then:function(J){return _.W(_.Jm,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:O})}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.zK,{text:function(){var J;
return(J=E())==null?void 0:J.userWinNumberLabel}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.W("div",{class:_.ax("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.HF({flex:function(){var J,z;return(z=(J=E())==null?void 0:J.userWinNumber)!=null?z:50}})}),_.W("div",{class:_.ax("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.HF({flex:function(){var J,z;return(z=(J=E())==null?void 0:J.opponentWinNumber)!=null?z:50}})})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.zK,{text:function(){var J;
return(J=E())==null?void 0:J.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.lB}});_.Y7("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var T3=function(){var l=_.B.apply(this,arguments)||this;l.darkerPanels=_.a("web_watch_darker_panels");l.commentsHidePanelButton=!1;l.isWatchGrid=!1;l.continuationShowButton=!1;l.isSearch=!1;l.isConstrainedList=!1;l.isWatch=!1;l.eligibleToSwitchToGrid=!1;l.notSticky=!1;l.epRestyle=!1;l.isCarouselInFeed=!0;l.topSpacingZero=!1;l.continuationIsInitialLoad=!0;l.enableSqueezebackPanels=_.a("web_shorts_enable_squeezeback_panels");l.enableAnchoredPanel=_.a("desktop_shorts_v2_anchored_panel");l.mastheadHeight=
0;l.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};l.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return l};
_.m(T3,_.B);_.X=T3.prototype;_.X.updateLockupContainerTypes=function(l){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||e.forEach(function(O){O.containerType=l})}};
_.X.getItemsPath=function(){return"data.contents"};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.a("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.a("kevlar_low_priority_continuation")}}};
_.X.created=function(){this.JSC$14541_cachedViewportHeight=_.hT("initialInnerHeight")||window.innerHeight};
_.X.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.X.handleIntersect=function(l){this.notSticky=l[0].intersectionRatio===1};
_.X.attached=function(){var l=this;document.addEventListener("scroll",_.id(this,this.updateHeaderState));var e;this.mastheadHeight=((e=document.querySelector("ytd-masthead"))==null?void 0:e.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(O){l.handleIntersect(O)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){l.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.X.detached=function(){document.removeEventListener("scroll",_.id(this,this.updateHeaderState));var l;(l=this.intersectionObserver)==null||l.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect()};
_.X.updated=function(l){l.has("data")&&this.updateHeaderState()};
_.X.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(BuH(!this.notSticky))};
_.X.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var l=_.ud(this.hostElement).querySelector("ytd-comments-header-renderer");l&&(l.hidePanelButton=this.commentsHidePanelButton)}};
_.X.onRetrieveLocation=function(l,e){this.containsComments()&&(this.firstCommentsLoaded=e.hasComments=!0)};
_.X.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.X.onLoadReloadContinuation=function(l,e){var O=this;l.stopPropagation();this.isReloading=!0;_.$u(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(E){var J=_.V2().resolve(_.Pc);E=e(E);J.postData(E).then(function(z){O.onReloadContinuationData(z)})}})};
_.X.onReloadContinuationData=function(l){if(l=this.get("response.continuationContents.itemSectionContinuation",l)||this.get("response.contents.itemSectionRenderer",l)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",l)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",l))this.set("data.contents",l.contents||l.results),l.header&&this.set("data.header",l.header),this.set("data.continuations",
l.continuations||[]);this.isReloading=!1};
_.X.computeContentsClass=function(l){return l?"reloading":""};
_.X.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.X.computeSectionIdentifier=function(l){return l==null?void 0:l.sectionIdentifier};
_.X.computeFitContainer=function(l){return(l==null?void 0:l.sectionIdentifier)==="youchat-item-section"};
_.X.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.a("kevlar_disable_comments_auto_load")};
_.X.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.X.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.X.computeHasDestinationShelfRenderer=function(l){var e,O;return!!(l==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:O.destinationShelfRenderer)};
_.X.computeHasSectionGroupViewModel=function(l){var e,O;return!!(l==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:O.sectionGroupViewModel)};
_.X.computeHasQrCodeRenderer=function(l){var e,O;return!!(l==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:O.qrCodeRenderer)};
_.X.computeStaticCommentsHeader=function(l){return l&&this.containsComments()};
_.X.computeEpRestyle=function(l){return _.a("web_ep_restyling")&&l&&this.containsComments()};
_.X.computeIsContinuationCommentSection=function(l){return(l==null?void 0:l.targetId)==="shorts-engagement-panel-comments-section"||(l==null?void 0:l.targetId)==="comments-section"||(l==null?void 0:l.targetId)==="engagement-panel-comments-section"};
_.X.computeSuppressPaddingDisclaimer=function(){var l,e,O,E;return!!((l=this.data)==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:(E=O.productListHeaderRenderer)==null?0:E.suppressPaddingDisclaimer)};
_.X.computeHeaderStyle=function(l){switch(l==null?void 0:l.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.X.dataChanged=function(){this.firstCommentsLoaded=!1};
_.X.observeDataContentsLength=function(){var l,e;((l=this.data)==null?0:(e=l.contents)==null?0:e.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.X.onYtDismissibleItemDismissedChange=function(l){this._setItemDismissed(l.type==="yt-dismissible-item-dismissed")};
_.X.triggerContinuations=function(){for(var l=_.ud(this.hostElement).querySelector("#continuations").children,e=0;e<l.length;e++)l[e].trigger()};
_.X.triggerInitialContinuations=function(){for(var l=_.ud(this.hostElement).querySelector("#continuations").children,e=0;e<l.length;e++)l[e].triggerIfNotPreviouslyTriggered()};
_.X.handleYtItemSectionContinuation=function(l,e){var O;e&&((O=this.data)==null?void 0:O.sectionIdentifier)!==e||(this.set("data.continuations",[l]),this.triggerContinuations())};
_.X.handleYtItemSectionReplace=function(l,e){var O;e&&((O=this.data)==null?void 0:O.sectionIdentifier)!==e||(this.set("data.contents",l),this.set("data.continuations",[]))};
_.X.computeUseHeightHack=function(l){return l&&!_.a("kevlar_disable_height_hack")};
_.X.computeTopSpacingZero=function(l){return l};
_.X.continuationShowButtonChanged=function(){var l=_.ud(this.hostElement).querySelector("ytd-continuation-item-renderer");l&&(l.showButton=this.continuationShowButton)};
_.X.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("data-changed",this.data))};
_.Ji.Object.defineProperties(T3.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.a("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!((l=this.data)==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:O.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E,J,z,M;return!!((l=this.data)==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:(E=O.shelfRenderer)==null?0:(J=E.content)==null?0:(z=J.gridRenderer)==null?0:(M=z.targetId)==null?0:M.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!((l=this.data)==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:O.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!((l=this.data)==null?0:(e=l.contents)==null?0:(O=e[0])==null?0:O.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.oy("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.a("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.a("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14541_cachedViewportHeight-130)/150)},
set:function(){}}});
T3.prototype.dataChangedForBinding=T3.prototype.dataChangedForBinding;T3.prototype.continuationShowButtonChanged=T3.prototype.continuationShowButtonChanged;T3.prototype.onYtDismissibleItemDismissedChange=T3.prototype.onYtDismissibleItemDismissedChange;T3.prototype.observeDataContentsLength=T3.prototype.observeDataContentsLength;T3.prototype.dataChanged=T3.prototype.dataChanged;T3.prototype.onServiceRequestCompleted=T3.prototype.onServiceRequestCompleted;T3.prototype.onLoadReloadContinuation=T3.prototype.onLoadReloadContinuation;
T3.prototype.onRetrieveLocation=T3.prototype.onRetrieveLocation;T3.prototype.commentsHidePanelButtonChanged=T3.prototype.commentsHidePanelButtonChanged;T3.prototype.dispatchChipBarIsSticky=T3.prototype.dispatchChipBarIsSticky;T3.prototype.updateLockupContainerTypes=T3.prototype.updateLockupContainerTypes;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],T3.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],T3.prototype,"ytLazyListBehavior",void 0);_.L([_.K(_.vd.YtNextContinuationBehavior),_.q("design:type",Object)],T3.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.K(_.qU),_.q("design:type",Object)],T3.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],T3.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],T3.prototype,"ytdReduxBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],T3.prototype,"darkerPanels",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Boolean)],T3.prototype,"engagementPanel",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"commentsHidePanelButton",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"isWatchGrid",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"continuationShowButton",void 0);_.L([_.T({computed:"computeIsContinuationCommentSection(data)"}),_.q("design:type",Boolean)],T3.prototype,"continuationIsCommentsSection",void 0);
_.L([_.T({value:!0}),_.q("design:type",Boolean)],T3.prototype,"autoFill",void 0);_.L([_.T(),_.q("design:type",Boolean)],T3.prototype,"continuationDisablePrescanVisibility",void 0);_.L([_.T(),_.q("design:type",Boolean)],T3.prototype,"isReloading",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"isSearch",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"isConstrainedList",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"isWatch",void 0);
_.L([_.T(),_.q("design:type",Object)],T3.prototype,"eligibleToSwitchToGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],T3.prototype,"notSticky",void 0);_.L([_.T({selector:_.vi}),_.q("design:type",Object)],T3.prototype,"isGridViewEnabled",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.q("design:type",Object)],T3.prototype,"epRestyle",void 0);
_.L([_.R("isWatch"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T3.prototype,"hideShortsShelfHeader",null);_.L([_.R("isSearch","isWatch"),_.q("design:type",String),_.q("design:paramtypes",[])],T3.prototype,"thumbnailWidth",null);_.L([_.R("isSearch","isWatch"),_.q("design:type",String),_.q("design:paramtypes",[])],T3.prototype,"sizing",null);
_.L([_.R("isWatch","isGridViewEnabled","data"),_.T({reflectToAttribute:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],T3.prototype,"lockupContainerType",null);_.L([_.AA("lockupContainerType","data"),_.q("design:type",Function),_.q("design:paramtypes",[Number]),_.q("design:returntype")],T3.prototype,"updateLockupContainerTypes",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],T3.prototype,"pageSubtype",void 0);
_.L([_.T({computed:"computeContainerWidth()"}),_.q("design:type",Number)],T3.prototype,"containerWidth",void 0);_.L([_.T(),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T3.prototype,"isPlaylist",null);_.L([_.T(),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T3.prototype,"isClipList",null);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"isCarouselInFeed",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T3.prototype,"isPlaylistVideoContainer",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T3.prototype,"isSearchFrictionPage",null);_.L([_.T({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.q("design:type",Boolean)],T3.prototype,"useHeightHack",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.q("design:type",Object)],T3.prototype,"topSpacingZero",void 0);_.L([_.T({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.q("design:type",Boolean)],T3.prototype,"showButton",void 0);_.L([_.T(),_.q("design:type",Boolean)],T3.prototype,"firstCommentsLoaded",void 0);_.L([_.T(),_.q("design:type",Object)],T3.prototype,"continuationIsInitialLoad",void 0);
_.L([_.T(),_.q("design:type",Boolean)],T3.prototype,"isSearchDova",void 0);_.L([_.T({reflectToAttribute:!0,readOnly:!0}),_.q("design:type",Boolean)],T3.prototype,"itemDismissed",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.q("design:type",String)],T3.prototype,"sectionIdentifier",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.q("design:type",String)],T3.prototype,"fitContainer",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.q("design:type",Boolean)],T3.prototype,"hasDestinationShelfRenderer",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.q("design:type",Boolean)],T3.prototype,"staticCommentsHeader",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],T3.prototype,"enableSqueezebackPanels",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],T3.prototype,"enableAnchoredPanel",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.q("design:type",Boolean)],T3.prototype,"hasSectionGroupViewModel",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.q("design:type",Boolean)],T3.prototype,"hasQrCodeRenderer",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.q("design:type",Boolean)],T3.prototype,"suppressDisclaimerSeparator",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.q("design:type",String)],T3.prototype,"headerStyle",void 0);_.L([_.R("isSearch"),_.q("design:type",Object),_.q("design:paramtypes",[])],T3.prototype,"lockupExperiments",null);
_.L([_.R("isSearch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],T3.prototype,"typographyBump",null);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],T3.prototype,"header",void 0);_.L([_.AA("notSticky"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"dispatchChipBarIsSticky",null);
_.L([_.AA("commentsHidePanelButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"commentsHidePanelButtonChanged",null);_.L([_.wP("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],T3.prototype,"onRetrieveLocation",null);
_.L([_.wP("yt-load-reload-continuation"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Function]),_.q("design:returntype")],T3.prototype,"onLoadReloadContinuation",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"onServiceRequestCompleted",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"dataChanged",null);
_.L([_.y0("data.contents.length"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"observeDataContentsLength",null);_.L([_.wP("yt-dismissible-item-dismissed"),_.wP("yt-dismissible-item-undismissed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],T3.prototype,"onYtDismissibleItemDismissedChange",null);
_.L([_.AA("continuationShowButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"continuationShowButtonChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],T3.prototype,"dataChangedForBinding",null);_.L([_.U({is:"ytd-item-section-renderer",disableElementRegistration:!0})],T3);
_.Y(T3,"ytd-item-section-renderer",function(){if(kA1!==void 0)return kA1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kA1=l},{mode:1});var Efx;var l5M=_.xp(_.ml("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var D_p={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var JRS={},x_d=(JRS[0]={title:_.Zr(_.ml("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(_.ml("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Mu("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},JRS[1]={title:_.Zr(_.ml("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Mu("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},JRS);_.Y7("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var sq=function(){var l=_.B.apply(this,arguments)||this;l.allVideosCount=0;l.allPlaylistCount=0;l.shouldRenderDownloadsBanner=!1;l.hasOptedIntoSmartDownloads=!1;l.areAllSmartDownloadsDeleted=!1;l.smartDownloadsCompleted=!1;return l};
_.m(sq,_.B);sq.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
sq.prototype.attached=function(){this.downloadsToRenderChanged()};
sq.prototype.detached=function(){this.set("renderableData",{})};
sq.prototype.downloadsToRenderChanged=function(){var l=_.Om().getState().entities,e=_.RM(l),O=_.a("kevlar_playlist_dl_page_killswitch")?bpt(l):_.T4(l),E=_.OpA(l),J=_.jo(e);l=_.sn(l);this.set("renderableData",Osq(O,e,E,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,J,l))};
sq.prototype.downloadsToRenderChanged=sq.prototype.downloadsToRenderChanged;_.L([_.K(_.sY),_.q("design:type",Object)],sq.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],sq.prototype,"renderableData",void 0);_.L([_.T({selector:_.AKT}),_.q("design:type",Object)],sq.prototype,"allVideosCount",void 0);_.L([_.T({selector:q2d}),_.q("design:type",Object)],sq.prototype,"allPlaylistCount",void 0);_.L([_.T({selector:_.pCg}),_.q("design:type",Object)],sq.prototype,"shouldRenderDownloadsBanner",void 0);_.L([_.T({selector:_.KV8}),_.q("design:type",Object)],sq.prototype,"hasOptedIntoSmartDownloads",void 0);
_.L([_.T({selector:_.j62}),_.q("design:type",Object)],sq.prototype,"areAllSmartDownloadsDeleted",void 0);_.L([_.T({selector:Hpq}),_.q("design:type",Object)],sq.prototype,"smartDownloadsCompleted",void 0);_.L([_.y0("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sq.prototype,"downloadsToRenderChanged",null);
_.L([_.U({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],sq);
_.Y(sq,"ytd-offline-item-section-renderer",function(){if(Efx!==void 0)return Efx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Efx=l},
{mode:1});var XES;var zOx;var G3=function(){return _.B.apply(this,arguments)||this};
_.m(G3,_.B);
G3.prototype.onDataChanged=function(){if(this.JSC$14567_lastData){var l=this.getFilterClass(this.JSC$14567_lastData.status);l&&this.hostElement.classList.remove(l)}var e;(l=this.getFilterClass((e=this.data)==null?void 0:e.status))&&this.hostElement.classList.add(l);l==="selected"?_.ud(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ud(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");l==="disabled"?_.ud(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ud(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14567_lastData=this.data};
G3.prototype.getFilterClass=function(l){switch(l){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
G3.prototype.onDataChanged=G3.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],G3.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G3.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],G3);
_.Y(G3,"ytd-search-filter-renderer",function(){if(zOx!==void 0)return zOx;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return zOx=l},{mode:_.Wf("kevlar_poly_si_batch_j075")?1:2});var Bq=function(){return _.B.apply(this,arguments)||this};
_.m(Bq,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Bq.prototype,"data",void 0);_.L([_.U({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Bq);
_.Y(Bq,"ytd-search-filter-group-renderer",function(){if(XES!==void 0)return XES;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return XES=l},{mode:_.Wf("kevlar_poly_si_batch_j075")?1:2});var bM1;var Pq=function(){return _.B.apply(this,arguments)||this};
_.m(Pq,_.B);Pq.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.gI());this.isCollapsed=!this.isCollapsed};
Pq.prototype.navigateToAboutTheseResultsPage=function(){var l=ir("https://www.youtube.com/howyoutubeworks/product-features/search/");l?_.FC(window,l,"_blank"):_.tT(Error("Rh"))};
Pq.prototype.dataChanged=function(){this.isCollapsed=!0};
Pq.prototype.computeShowBottomBorder=function(){var l,e,O;return!!((l=this.data)==null?0:(e=l.button)==null?0:e.toggleButtonRenderer)||!((O=this.data)==null||!O.aboutTheseResultsButton)};
Pq.prototype.dataChanged=Pq.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Pq.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.q("design:type",Boolean)],Pq.prototype,"showBottomBorder",void 0);_.L([_.T(),_.q("design:type",Boolean)],Pq.prototype,"renderCollapsibleMenu",void 0);
_.L([_.T(),_.q("design:type",Boolean)],Pq.prototype,"isCollapsed",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Pq.prototype,"dataChanged",null);_.L([_.U({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Pq);
_.Y(Pq,"ytd-search-sub-menu-renderer",function(){if(bM1!==void 0)return bM1;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return bM1=l},{mode:1});var MzC;var Vz1=new _.Xa("SECTION_LIST_RENDERER_TOKEN");var ZMH;var Uq=function(){return _.B.apply(this,arguments)||this};
_.m(Uq,_.B);Uq.prototype.computeStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Uq.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],Uq.prototype,"headerStyle",void 0);_.L([_.U({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Uq);
_.Y(Uq,"ytd-text-header-renderer",function(){if(ZMH!==void 0)return ZMH;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ZMH=l},{mode:1});var ulq;var Yg=function(){return _.B.apply(this,arguments)||this};
_.m(Yg,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Yg.prototype,"data",void 0);_.L([_.U({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Yg);
_.Y(Yg,"ytd-minor-moment-header-renderer",function(){if(ulq!==void 0)return ulq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ulq=l},{mode:1});var Cmi;var hk=function(){return _.B.apply(this,arguments)||this};
_.m(hk,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hk.prototype,"data",void 0);_.L([_.U({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],hk);
_.Y(hk,"ytd-minor-moment-setting-alert-renderer",function(){if(Cmi!==void 0)return Cmi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Cmi=l},{mode:1});var of1;var $6k;var Lc=function(){var l=_.B.apply(this,arguments)||this;l.booleanSettingById=!1;l.smartDownloadsEnabledVE=_.sL(128287);l.smartDownloadsDisabledVE=_.sL(128286);l.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return l};
_.m(Lc,_.B);_.X=Lc.prototype;_.X.attachSmartDownloadsSettingVes=function(){var l;this.activeVeForLogging||((l=this.data)==null?void 0:l.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.$w(_.yN(),this.smartDownloadsEnabledVE),_.$w(_.yN(),this.smartDownloadsDisabledVE))};
_.X.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.$u(this.hostElement,"yt-settings-switch-ready")};
_.X.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.X.onSwitchChange=function(l){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(l=_.OV(l).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.a("kevlar_settings_switch_resolve_command_killswitch")?_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(l)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.X.handleUpdateSettingsSwitch=function(l){(l=_.I(l,h1q))&&this.data&&this.data.id===l.id&&this.set("data.enabled",!!l.enabled)};
_.X.onToggleSettingsSwitch=function(l,e){this.data&&this.data.id===l&&this.set("data.enabled",e!=null?e:!this.data.enabled)};
_.X.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.E5.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.X.maybeLogSmartDownloadsSettingVisibility=function(){var l=_.P9(),e;l&&((e=this.data)==null?void 0:e.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.xu(l,[this.smartDownloadsEnabledVE]),_.lH(l,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.xu(l,[this.smartDownloadsDisabledVE]),_.lH(l,[this.smartDownloadsEnabledVE])))};
_.X.maybeLogSmartDownloadsSettingClick=function(){var l;((l=this.data)==null?void 0:l.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.dn(_.yN(),this.activeVeForLogging)};
_.X.updateDataEnabledFromBinding=function(l){this.set("data.enabled",l.detail.value)};
_.Ji.Object.defineProperties(Lc.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var l=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!l&&(l=this.ytRendererBehavior.getSimpleString(this.data.title));return l}}});
Lc.prototype.dataChanged=Lc.prototype.dataChanged;_.L([_.K(_.sY),_.q("design:type",Object)],Lc.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Lc.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Lc.prototype,"data",void 0);_.L([_.T({selector:function(l,e){if(Object.keys(l==null?void 0:l.entities).length)switch(e){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return MK8(l.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.q("design:type",Object)],Lc.prototype,"booleanSettingById",void 0);_.L([_.T(),_.q("design:type",_.Gz)],Lc.prototype,"activeVeForLogging",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Lc.prototype,"toggleAriaLabel",null);_.L([_.y0("data"),_.y0("booleanSettingById"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lc.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Lc);
_.Y(Lc,"ytd-settings-switch-renderer",function(){if($6k!==void 0)return $6k;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $6k=l},{mode:1});var tk=function(){return _.B.apply(this,arguments)||this};
_.m(tk,_.B);tk.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}}}}};
_.Ji.Object.defineProperties(tk.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var l=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(l+=" remove-left-margin");this.data.extraBottomSpace&&(l+=" extra-bottom-space");return l}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tk.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],tk.prototype,"contentsClassName",null);_.L([_.U({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],tk);
_.Y(tk,"ytd-minor-moment-setting-section-renderer",function(){if(of1!==void 0)return of1;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return of1=l},{mode:1});var WDq;var qt=function(){return _.B.apply(this,arguments)||this};
_.m(qt,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],qt.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qt.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],qt);
_.Y(qt,"ytd-empty-product-details-renderer",function(){if(WDq!==void 0)return WDq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return WDq=l},{mode:1});var d61;var gf6;var vq=function(){var l=_.B.apply(this,arguments)||this;l.expanded=!0;return l};
_.m(vq,_.B);vq.prototype.getBadgeRowClass=function(l,e,O){for(var E=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),J=E.next();!J.done;J=E.next())J.value.onShow();l=l.selected;return O?l!==-1?l===e?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(l!==void 0?l:0)===e?"badge-line":"badge-hidden"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vq.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],vq.prototype,"expanded",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],vq);
_.Y(vq,"ytd-sponsorships-loyalty-badges-renderer",function(){if(gf6!==void 0)return gf6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gf6=l},{mode:1});var iMq;var Nt=function(){var l=_.B.apply(this,arguments)||this;l.expanded=!0;return l};
_.m(Nt,_.B);Nt.prototype.getContainerClasses=function(l,e){l=l?"expanded":"collapsed";e&&(l+=" item");return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Nt.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Nt.prototype,"expanded",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Nt);
_.Y(Nt,"ytd-sponsorships-perk-renderer",function(){if(iMq!==void 0)return iMq;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iMq=l},{mode:1});var wEF;var re=function(){var l=_.B.apply(this,arguments)||this;l.expanded=!0;return l};
_.m(re,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],re.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],re.prototype,"expanded",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],re);
_.Y(re,"ytd-sponsorships-perks-renderer",function(){if(wEF!==void 0)return wEF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wEF=l},{mode:1});var D$=function(){var l=_.B.apply(this,arguments)||this;l.isCollapsed=!1;return l};
_.m(D$,_.B);D$.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
D$.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
D$.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var l;this.expandCollapseButton=_.I((l=this.data)==null?void 0:l.expandButton,_.YU)}else{var e;this.expandCollapseButton=_.I((e=this.data)==null?void 0:e.collapseButton,_.YU)}};
D$.prototype.updateExpandCollapseButton=D$.prototype.updateExpandCollapseButton;D$.prototype.onDataChanged=D$.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],D$.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],D$.prototype,"isCollapsed",void 0);_.L([_.T(),_.q("design:type",Object)],D$.prototype,"expandCollapseButton",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],D$.prototype,"onDataChanged",null);_.L([_.y0("data","isCollapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],D$.prototype,"updateExpandCollapseButton",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],D$);
_.Y(D$,"ytd-sponsorships-expandable-perks-renderer",function(){if(d61!==void 0)return d61;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return d61=l},{mode:1});var ARF;var SG=function(){return _.B.apply(this,arguments)||this};
_.m(SG,_.B);SG.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],SG.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],SG);
_.Y(SG,"ytd-sponsorships-actionable-message-renderer",function(){if(ARF!==void 0)return ARF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ARF=l},{mode:1});var nfq;var Qp=function(){return _.B.apply(this,arguments)||this};
_.m(Qp,_.B);_.X=Qp.prototype;_.X.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.X.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
_.X.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.X.computeMessageContainerStyle=function(l){var e=l.expandableItems?" style-clickable":"";return l.messageContainerStyle?l.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+e:"style-unspecified"+e};
_.X.isSinglePerk=function(l){return!!l.messageContainerStyle&&(l.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||l.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.X.onExpandedChanged=function(){var l=this;if(this.expanded)for(var e=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),O=e.next();!O.done;O=e.next())O.value.onShow();_.OK(this,function(){_.$u(l.hostElement,"yt-refit")})};
_.X.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Qp.prototype.onDataChanged=Qp.prototype.onDataChanged;Qp.prototype.onExpandedChanged=Qp.prototype.onExpandedChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qp.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Qp.prototype,"expanded",void 0);
_.L([_.AA("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qp.prototype,"onExpandedChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qp.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Qp);
_.Y(Qp,"ytd-sponsorships-expandable-message-renderer",function(){if(nfq!==void 0)return nfq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return nfq=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var ay6;var xg=function(){return _.B.apply(this,arguments)||this};
_.m(xg,_.B);xg.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"}}}}};
xg.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.I(this.data.endButton,_.YU).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
xg.prototype.onDataChanged=xg.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xg.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xg.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],xg);
_.Y(xg,"ytd-sponsorships-heading-renderer",function(){if(ay6!==void 0)return ay6;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ay6=l},{mode:1});var kTS;var lA=function(){return _.B.apply(this,arguments)||this};
_.m(lA,_.B);_.L([_.T(),_.q("design:type",Object)],lA.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],lA);
_.Y(lA,"ytd-sponsorships-links-renderer",function(){if(kTS!==void 0)return kTS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return kTS=l},{mode:1});var Iyx;var eY=function(){return _.B.apply(this,arguments)||this};
_.m(eY,_.B);_.X=eY.prototype;_.X.onDataChanged=function(){if(this.data&&this.data.expandableItems){var l;(l=_.ud(this.hostElement).querySelector("tp-yt-paper-button"))==null||l.setAttribute("role","button")}else{var e;(e=_.ud(this.hostElement).querySelector("tp-yt-paper-button"))==null||e.removeAttribute("role")}};
_.X.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.X.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
_.X.getTileClasses=function(l){return l?"tile expandable-tile":"tile"};
_.X.getButtonDisabled=function(l){return l?void 0:""};
eY.prototype.onDataChanged=eY.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eY.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],eY.prototype,"expanded",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eY.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],eY);
_.Y(eY,"ytd-sponsorships-list-tile-renderer",function(){if(Iyx!==void 0)return Iyx;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Iyx=l},{mode:1});var m6x;var yRS;var O3=function(){return _.B.apply(this,arguments)||this};
_.m(O3,_.B);O3.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],O3.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],O3);
_.Y(O3,"ytd-sponsorships-promotion-renderer",function(){if(yRS!==void 0)return yRS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return yRS=l},{mode:1});var pEq;var E3=function(){return _.B.apply(this,arguments)||this};
_.m(E3,_.B);E3.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],E3.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],E3);
_.Y(E3,"ytd-sponsorships-purchase-option-renderer",function(){if(pEq!==void 0)return pEq;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return pEq=l},{mode:1});var KDS;var jVS;var HMR=function(){return _.B.apply(this,arguments)||this};
_.m(HMR,_.B);_.L([_.T(),_.q("design:type",Object)],HMR.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],HMR);
_.Y(HMR,"ytd-ypc-offer-promo-renderer",function(){if(jVS!==void 0)return jVS;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return jVS=l},{mode:1});var Ja=function(){return _.B.apply(this,arguments)||this};
_.m(Ja,_.B);_.X=Ja.prototype;
_.X.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"}}}}};
_.X.expansionCTA=function(l,e){return l&&(e?l.collapseCallToAction:l.expansionCallToAction)};
_.X.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
_.X.expansionCallToActionTap=function(){var l=this;this.expanded=!this.expanded;_.OK(this,function(){_.$u(l.hostElement,"yt-refit")})};
_.X.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var l,e=(l=this.data)==null?void 0:l.onVisible;e&&this.ytComponentBehavior.resolveCommand(e)};
_.X.computeDisplayTitle=function(l){return!(!l||this.titledisplaystatus!=="show")};
_.X.computeDisplaySeparator=function(){return!1};
_.X.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Ja.prototype.onDataChanged=Ja.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ja.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ja.prototype,"data",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],Ja.prototype,"expanded",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Ja.prototype,"purchaseButtonClicked",void 0);_.L([_.T({reflectToAttribute:!0,value:"show"}),_.q("design:type",String)],Ja.prototype,"titledisplaystatus",void 0);_.L([_.T({computed:"computeDisplayTitle(data.title)"}),_.q("design:type",Boolean)],Ja.prototype,"displayTitle",void 0);
_.L([_.T({computed:"computeDisplaySeparator(data)"}),_.q("design:type",Boolean)],Ja.prototype,"displaySeparator",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ja.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Ja);
_.Y(Ja,"ytd-sponsorships-tier-renderer",function(){if(KDS!==void 0)return KDS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return KDS=l},{mode:2});var Xr=function(){return _.B.apply(this,arguments)||this};
_.m(Xr,_.B);
Xr.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Xr.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Xr);
_.Y(Xr,"ytd-sponsorships-management-renderer",function(){if(m6x!==void 0)return m6x;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return m6x=l},{mode:1});var cRS;var z6=function(){return _.B.apply(this,arguments)||this};
_.m(z6,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],z6.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],z6);
_.Y(z6,"ytd-open-in-native-app-view-model",function(){if(cRS!==void 0)return cRS;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return cRS=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var FDS;var fy0;var ROS=_.E9(["top-"]),TNq=_.E9(["bottom-"]),sV6=_.E9(["left-"]),GT1=_.E9(["right-"]),BNS={},Pm0=function(l,e,O){l.removeAttribute("top-"+O);l.removeAttribute("bottom-"+O);l.removeAttribute("left-"+O);l.removeAttribute("right-"+O);e&&(e.top&&_.hz([_.lX(ROS)],l,"top-"+O,e.top),e.bottom&&_.hz([_.lX(TNq)],l,"bottom-"+O,e.bottom),e.left&&_.hz([_.lX(sV6)],l,"left-"+O,e.left),e.right&&_.hz([_.lX(GT1)],l,"right-"+O,e.right))};
BNS.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(l){var e,O=_.ud((e=this.hostElement)!=null?e:this),E;e=this.cardItemBoxBehaviorMarginTargetId&&O?O.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(E=this.hostElement)!=null?E:this;Pm0(e,l,"margin")},
cardItemContainerPaddingChanged_:function(l){var e,O=_.ud((e=this.hostElement)!=null?e:this),E;e=this.cardItemBoxBehaviorPaddingTargetId&&O?O.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(E=this.hostElement)!=null?E:this;Pm0(e,l,"padding")}}];var bA={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var U6q;var Yr1;var M1=function(){return _.B.apply(this,arguments)||this};
_.m(M1,_.B);M1.prototype.textColorChanged_=function(){this.hostElement.style.color=bA[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
M1.prototype.textColorChanged_=M1.prototype.textColorChanged_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.L([_.K(BNS.YtCardItemBoxBehavior),_.q("design:type",Object)],M1.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],M1.prototype,"data",void 0);_.L([_.AA("data.textColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],M1.prototype,"textColorChanged_",null);
_.L([_.Ps({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],M1);
_.Y(M1,"yt-card-item-text-renderer",function(){if(Yr1===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;U6q===void 0&&(U6q=document.createElement("template"));var E=U6q;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Yr1=l}l=Yr1;return l},{mode:2});var hOR;var LD6;var Vq=function(){return _.B.apply(this,arguments)||this};
_.m(Vq,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Vq.prototype,"data",void 0);_.L([_.Ps({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Vq);
_.Y(Vq,"yt-card-item-badge-renderer",function(){if(LD6===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;hOR===void 0&&(hOR=document.createElement("template"));var E=hOR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);LD6=l}l=LD6;return l},{mode:2});var tzR;var qrx;var Za=function(){return _.B.apply(this,arguments)||this};
_.m(Za,_.B);Za.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Za.prototype,"data",void 0);_.L([_.Ps({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Za);
_.Y(Za,"yt-card-item-text-collection-renderer",function(){if(qrx===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;tzR===void 0&&(tzR=document.createElement("template"));var E=tzR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);qrx=l}l=qrx;return l},{mode:2});var vfR;var NNx;var uA=function(){return _.B.apply(this,arguments)||this};
_.m(uA,_.B);uA.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]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],uA.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Number)],uA.prototype,"iconSize",void 0);_.L([_.Ps({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],uA);
_.Y(uA,"yt-card-item-text-with-button-renderer",function(){if(NNx===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;vfR===void 0&&(vfR=document.createElement("template"));var E=vfR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);NNx=l}l=NNx;return l},{mode:2});var CE=function(){return _.B.apply(this,arguments)||this};
_.m(CE,_.B);CE.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],CE.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CE.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],CE);
_.Y(CE,"ytd-commerce-cart-summary-line-item-renderer",function(){if(fy0!==void 0)return fy0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return fy0=l},{mode:1});_.Y7("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var oZ=function(){var l=_.B.apply(this,arguments)||this;l.hidden=!1;return l};
_.m(oZ,_.B);_.X=oZ.prototype;_.X.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"}}}}};
_.X.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.X.updateSummary=function(){var l=this.commerceCartCheckoutButtonEntity,e;if(((e=this.data)==null?0:e.cartButton)&&l.checkoutSummaryText){var O,E=v1((O=this.data)==null?void 0:O.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",Ns(l.checkoutSummaryText));if(l.checkoutDetailText){var J;O=v1((J=this.data)==null?void 0:J.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",Ns(l.checkoutDetailText))}if(l.checkoutAdditionalMetadataText){var z;
J=v1((z=this.data)==null?void 0:z.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",Ns(l.checkoutAdditionalMetadataText))}}else l.estimatedTotalPrice&&(z=v1((E=this.data)==null?void 0:E.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",Ns(l.estimatedTotalPrice)))};
_.X.updateIsHidden=function(){var l,e=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.isHidden;e!==void 0&&(this.hidden=e)};
_.X.updateCheckoutButton=function(){var l,e=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.isDisabled;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",e);var O;l=(O=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:O.innertubeCommand;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",l);var E;O=(E=this.commerceCartCheckoutButtonEntity)==null?void 0:E.checkoutButtonText;O!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:O})};
oZ.prototype.entityChanged=oZ.prototype.entityChanged;_.L([_.K(_.sY),_.q("design:type",Object)],oZ.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],oZ.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],oZ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],oZ.prototype,"fullWidth",void 0);_.L([_.T(),_.q("design:type",Object)],oZ.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],oZ.prototype,"compact",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],oZ.prototype,"hidden",void 0);
_.L([_.T({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:IJM}),_.q("design:type",Object)],oZ.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.AA("commerceCartCheckoutButtonEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oZ.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],oZ);
_.Y(oZ,"ytd-commerce-cart-checkout-button-renderer",function(){if(FDS!==void 0)return FDS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return FDS=l},{mode:2});var rRC;_.D6q={};
_.D6q.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",_.id(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.id(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(l){!this.tappableItemBehaviorTapEnabled||l.keyCode!==13&&l.keyCode!==32||l.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var l=this.data.onTap;l.ypcGetCartEndpoint?(_.ii(this.hostElement,[l]),this.tappableItemBehaviorTapEnabled=!1):l.ypcOffersEndpoint?_.ii(this.hostElement,[l]):_.wQ(this.hostElement,[l],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(l){this.tappableItemBehaviorTapEnabled=!!l},
tappableItemBehaviorOnTapEnabledChanged_:function(){var l=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(l.setAttribute("tabIndex",0),l.setAttribute("role","button")):(l.removeAttribute("tabIndex"),l.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(l){l.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Sr1;var QVk;var $K=function(){return _.B.apply(this,arguments)||this};
_.m($K,_.B);$K.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.hm("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.hm("sharingToggleButtonAndDefaultButton")}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$K.prototype,"data",void 0);_.L([_.Ps({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],$K);
_.Y($K,"yt-card-item-actions-renderer",function(){if(QVk===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Sr1===void 0&&(Sr1=document.createElement("template"));var E=Sr1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);QVk=l}l=QVk;return l},{mode:2});var x6x;var l6q;var eiR;var O5R;var Es6;var Jyi;var Wl=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return l};
_.m(Wl,_.B);Wl.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Wl.prototype.handleDarkModeToggledAction_=function(l){this.isDarkTheme_=l};
Wl.prototype.computeThemeImage_=function(l,e){if(!l||!l.imageLight)return!1;this.isCircular_=l.isCircular;l.imageWidth&&(this.hostElement.style.width=l.imageWidth+"px");l.imageHeight&&(this.hostElement.style.height=l.imageHeight+"px");l.borderWidth&&(this.image.style.borderWidth=l.borderWidth+"px",this.image.style.borderStyle="solid");l.borderColor&&(this.image.style.borderColor=_.qv(l.borderColor));return e&&l.imageDark?l.imageDark:l.imageLight};
Wl.prototype.computeThemeIcon_=function(l){var e,O;if(!(l==null?0:(e=l.themedIcon)==null?0:(O=e.icon)==null?0:O.iconType))return!1;this.icon.style.color=bA[l.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(l.imageWidth||18)+"px";this.icon.style.height=(l.imageHeight||18)+"px";return _.w6(l.themedIcon.icon.iconType)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(BNS.YtCardItemBoxBehavior),_.q("design:type",Object)],Wl.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Wl.prototype,"data",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],Wl.prototype,"fit",void 0);_.L([_.T(),_.q("design:type",Boolean)],Wl.prototype,"isDarkTheme_",void 0);_.L([_.T({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.q("design:type",Object)],Wl.prototype,"themeImage_",void 0);_.L([_.T({computed:"computeThemeIcon_(data)"}),_.q("design:type",Object)],Wl.prototype,"themeIcon_",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Object)],Wl.prototype,"isCircular_",void 0);
_.L([_.aB("#image"),_.q("design:type",Object)],Wl.prototype,"image",void 0);_.L([_.aB("#icon"),_.q("design:type",Object)],Wl.prototype,"icon",void 0);_.L([_.Ps({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Wl);
_.Y(Wl,"yt-themed-image-renderer",function(){if(Jyi===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Es6===void 0&&(Es6=document.createElement("template"));var E=Es6;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Jyi=l}l=Jyi;return l},{mode:2});var dh=function(){return _.B.apply(this,arguments)||this};
_.m(dh,_.B);dh.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"}}}}};
dh.prototype.computeImagePlacement_=function(l){return l||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dh.prototype,"data",void 0);_.L([_.T({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.q("design:type",String)],dh.prototype,"imagePlacement",void 0);
_.L([_.Ps({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],dh);
_.Y(dh,"yt-card-item-text-with-image-renderer",function(){if(O5R===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;eiR===void 0&&(eiR=document.createElement("template"));var E=eiR;O.call(e,E.content.cloneNode(!0),l.content.firstChild);O5R=l}l=O5R;return l},{mode:2});var gh=function(){return _.B.apply(this,arguments)||this};
_.m(gh,_.B);gh.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"}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gh.prototype,"data",void 0);_.L([_.Ps({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],gh);
_.Y(gh,"yt-card-item-error-renderer",function(){if(l6q===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;x6x===void 0&&(x6x=document.createElement("template"));var E=x6x;O.call(e,E.content.cloneNode(!0),l.content.firstChild);l6q=l}l=l6q;return l},{mode:2});var XG0;var ziq;_.Y7("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var iA=function(){return _.B.apply(this,arguments)||this};
_.m(iA,_.B);_.X=iA.prototype;
_.X.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"}}}}};
_.X.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.X.backgroundColorChanged_=function(){var l,e=(l=this.data)==null?void 0:l.backgroundColor;l=bA[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ud(this.hostElement).querySelector("#main-content").style.backgroundColor=l};
_.X.headerPromoBackgroundColorChanged_=function(){var l,e=(l=this.data)==null?void 0:l.headerPromoBackgroundColor;l=bA[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ud(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=l};
_.X.errorRendererVisibilityChanged_=function(){var l=this.isExpanded_,e;this.isErrorRendererVisible_=!((e=this.data)==null||!e.errorRenderer)&&!l};
_.X.onYtToggleButton_=function(l,e){this.isExpanded_=e.toggled};
iA.prototype.onYtToggleButton_=iA.prototype.onYtToggleButton_;iA.prototype.errorRendererVisibilityChanged_=iA.prototype.errorRendererVisibilityChanged_;iA.prototype.headerPromoBackgroundColorChanged_=iA.prototype.headerPromoBackgroundColorChanged_;iA.prototype.backgroundColorChanged_=iA.prototype.backgroundColorChanged_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(BNS.YtCardItemBoxBehavior),_.q("design:type",Object)],iA.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.K(_.D6q.YtTappableItemBehavior),_.q("design:type",Object)],iA.prototype,"ytTappableItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],iA.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],iA.prototype,"isExpanded_",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],iA.prototype,"isErrorRendererVisible_",void 0);_.L([_.AA("data.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iA.prototype,"backgroundColorChanged_",null);_.L([_.AA("data.headerPromoBackgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iA.prototype,"headerPromoBackgroundColorChanged_",null);
_.L([_.AA("data.errorRenderer","isExpanded_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iA.prototype,"errorRendererVisibilityChanged_",null);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Object]),_.q("design:returntype")],iA.prototype,"onYtToggleButton_",null);_.L([_.Ps({is:"yt-card-item-renderer",disableElementRegistration:!0})],iA);
_.Y(iA,"yt-card-item-renderer",function(){if(ziq===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;XG0===void 0&&(XG0=document.createElement("template"));var E=XG0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);ziq=l}l=ziq;return l},{mode:2});_.Y7("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var wh=function(){var l=_.B.apply(this,arguments)||this;l.hidden=!1;return l};
_.m(wh,_.B);_.X=wh.prototype;_.X.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.X.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.X.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var l,e=(l=this.commerceCartHeaderEntity)==null?void 0:l.isHidden;e!==void 0&&(this.hidden=e)}};
_.X.updateTitle=function(){var l=this.commerceCartHeaderEntity.isDisabled,e,O,E=(O=_.I((e=this.data)==null?void 0:e.item,S1F))==null?void 0:O.headingRenderer;E&&(e=v1(E,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".0.cardItemTextRenderer.textColor",l?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.X.updateSummaryText=function(){var l=this.commerceCartHeaderEntity;if(this.compact){var e,O,E=(O=_.I((e=this.data)==null?void 0:e.item,S1F))==null?void 0:O.headingRenderer;E&&(e=v1(E,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".1.cardItemTextRenderer.text",l.shortHeaderSummaryText?Ns(l.shortHeaderSummaryText):l.headerSummaryText?Ns(l.headerSummaryText):""))}else{var J;if(e=(J=_.I((E=this.data)==null?void 0:E.item,S1F))==null?void 0:J.additionalInfoRenderer)e=v1(e,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".text",l.headerSummaryText?Ns(l.headerSummaryText):"")}};
_.X.updateCheckoutButton=function(){var l=this.commerceCartHeaderEntity,e,O,E=(O=_.I((e=this.data)==null?void 0:e.item,S1F))==null?void 0:O.additionalInfoRenderer;e=v1(E,"buttonRenderer");var J;O=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonDisabled;var z;J=(z=this.commerceCartHeaderEntity)==null?void 0:z.isButtonHidden;O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.isDisabled",O);J!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
J);var M;l=(M=l.checkoutButtonCommand)==null?void 0:M.innertubeCommand;l!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.command",l)};
wh.prototype.entityChanged=wh.prototype.entityChanged;_.L([_.K(_.sY),_.q("design:type",Object)],wh.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wh.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],wh.prototype,"compact",void 0);_.L([_.T({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(l,e){return _.wV(l.entities,"commerceCartHeaderEntity",e)}}),
_.q("design:type",Object)],wh.prototype,"commerceCartHeaderEntity",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wh.prototype,"hidden",void 0);_.L([_.AA("commerceCartHeaderEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wh.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],wh);
_.Y(wh,"ytd-commerce-cart-header-renderer",function(){if(rRC!==void 0)return rRC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return rRC=l},{mode:1});var b5R;var MCS=_.yl(function(l,e){var O;return(O=l.onChangeCallback)==null?void 0:O.call(l,e)},1E3),VCq=_.XO(function(l){var e=l.data;
var O=l.iconMinus;l=l.iconPlus;var E=function(){return!!e().disabled},J=_.b(_.AF(0,void 0,"r56zNb")),z=J.next().value,M=J.next().value;
J={};J=_.ax("yt-spec-quantity-incrementer-shape__icon",(J["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return E()||z()===(e().onRemoveCommand?0:1)},J));
var Z={};Z=_.ax("yt-spec-quantity-incrementer-shape__icon",(Z["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return z()>=e().maxValue||E()},Z));
var u={};u=_.ax("yt-spec-quantity-incrementer-shape__text",(u["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return z()>e().maxValue},u["yt-spec-quantity-incrementer-shape__text--text-disabled"]=E,u));
var d=_.pd(function(){if(z()===1){var w,n;(n=(w=e()).onRemoveCommand)==null||n.call(w)}w=z()>e().maxValue?e().maxValue:z()-1;M(w);MCS(e(),w);return!1}),g=_.pd(function(){if(z()===e().maxValue)return!1;
var w=z()+1;M(w);MCS(e(),w);return!1});
_.RU(function(){M(e().value)});
return _.W("quantity-incrementer-shape",null,_.W("div",{class:"yt-spec-quantity-incrementer-shape"},_.W("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()===(e().onRemoveCommand?0:1)||E()},
"aria-label":function(){return z()!==1?e().minusLabel:e().minimumReachedLabel},
"on:click":d},_.W(_.Rx,{model:{circular:!0}}),_.W("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.W("div",{class:J},O()))),_.W("div",{class:u},z),_.W("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()>=e().maxValue||E()},
"aria-label":function(){return z()!==e().maxValue?e().plusLabel:e().maximumReachedLabel},
"on:click":g},_.W(_.Rx,{model:{circular:!0}}),_.W("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.W("div",{class:Z},l())))))},"Qd");_.Zw(_.XO(function(l){function e(){O().onRemoveCommand&&_.r6(O().onRemoveCommand)}
var O=l.data;var E=_.kD(cET,function(){return O().quantityIncrementerEntityKey});
return _.W("yt-quantity-incrementer-view-model",null,_.W(VCq,{data:function(){var J=O(),z;var M=E()?!((z=E())==null||!z.disabled):!1;var Z;z=E()?(Z=E())==null?void 0:Z.quantity:O().quantity;return XMq(J,M,e,z)},
iconMinus:function(){return _.W(_.cF,{icon:"BAR_HORIZONTAL",className:_.Ix("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.W(_.cF,{icon:"ADD",className:_.Ix("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.lB}});var Aa=function(){var l=_.B.apply(this,arguments)||this;l.compact=!1;l.hasQuantityIncrementer=!1;return l};
_.m(Aa,_.B);Aa.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"}}}};
Aa.prototype.computeHasQuantityIncrementer=function(){var l;return!!_.I((l=this.data)==null?void 0:l.picker,eIR)};
Aa.prototype.onLabelClick=function(){var l;(l=this.dropdownEl)==null||l.open()};
_.L([_.aB("ytd-dropdown-renderer"),_.q("design:type",Object)],Aa.prototype,"dropdownEl",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Aa.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Aa.prototype,"quantityColor",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Aa.prototype,"compact",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.q("design:type",Object)],Aa.prototype,"hasQuantityIncrementer",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Aa);
_.Y(Aa,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(b5R!==void 0)return b5R;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return b5R=l},{mode:1});var Z5q;var ud6;var nE=function(){return _.B.apply(this,arguments)||this};
_.m(nE,_.B);nE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
nE.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
nE.prototype.updateTitle=function(){var l=this.disabledCartItemEntity;l.disableActionName&&this.set("data.title",Ns(l.disableActionName))};
nE.prototype.updateButton=function(){var l,e=(l=this.disabledCartItemEntity.undoCommand)==null?void 0:l.innertubeCommand;e!==void 0&&(this.set("data.actionButton.buttonRenderer.command",e),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
nE.prototype.entityChanged=nE.prototype.entityChanged;_.L([_.K(_.sY),_.q("design:type",Object)],nE.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(l,e){return _.wV(l.entities,"disabledCartItemEntity",e)}}),
_.q("design:type",Object)],nE.prototype,"disabledCartItemEntity",void 0);_.L([_.T(),_.q("design:type",Object)],nE.prototype,"data",void 0);_.L([_.AA("disabledCartItemEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nE.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],nE);
_.Y(nE,"ytd-disabled-cart-item-renderer",function(){if(ud6!==void 0)return ud6;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ud6=l},{mode:1});_.Y7("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var aZ=function(){var l=_.B.apply(this,arguments)||this;l.compact=!1;l.hidden=!1;l.errorHidden=!1;l.noOnTap=!1;return l};
_.m(aZ,_.B);_.X=aZ.prototype;
_.X.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"}}}};
_.X.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.X.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var l=this.firstButtonElement;l.alignByText=!0;l.iconAlignByText=!0}};
_.X.computeNoOnTap=function(l){return!l};
_.X.updateQuantityColor=function(){if(this.pickerElement){var l,e=(l=this.commerceCartItemEntity)==null?void 0:l.quantityColor;this.pickerElement.quantityColor=e}};
_.X.updateTotalPriceColor=function(){var l,e=(l=this.commerceCartItemEntity)==null?void 0:l.totalPriceColor;if(e){var O;l=_.I((O=this.data)==null?void 0:O.quantityPicker,xS0);if(O=_.I(l==null?void 0:l.price,Q61))O.textColor=e}};
_.X.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var l,e=(l=this.commerceCartItemEntity)==null?void 0:l.isHidden;e!==void 0&&(this.hidden=e)}};
_.X.updateHideErrorMessage=function(){var l,e=(l=this.commerceCartItemEntity)==null?void 0:l.hideErrorMessage;e!==void 0&&(this.errorHidden=e)};
_.X.updateQuantity=function(){var l=this,e,O=(e=this.commerceCartItemEntity)==null?void 0:e.quantity,E;e=(E=this.commerceCartItemEntity)==null?void 0:E.totalPrice;if(O){this.updateTotalPriceColor();this.updateQuantityColor();var J;E=_.I((J=this.data)==null?void 0:J.quantityPicker,xS0);if(J=_.I(E==null?void 0:E.price,Q61))J.text=e?{simpleText:e.content}:void 0;if(e=_.I(E==null?void 0:E.picker,eIR))e.quantity=O;var z;if(J=(z=_.I(E==null?void 0:E.picker,JH1))==null?void 0:z.entries){z=!1;e=void 0;J=
_.b(J);for(E=J.next();!E.done;E=J.next())E=E.value,E.dropdownItemRenderer&&(e||(e=E.dropdownItemRenderer),E.dropdownItemRenderer.isSelected=!1,O===E.dropdownItemRenderer.int32Value&&(z=!0,E.dropdownItemRenderer.isSelected=!0));!z&&e&&(e.isSelected=!0)}_.OK(this,function(){var M;l.set("data.quantityPicker",_.mm.unsafeClone((M=l.data)==null?void 0:M.quantityPicker))})}};
aZ.prototype.onYtRendererstamperFinished=aZ.prototype.onYtRendererstamperFinished;aZ.prototype.entityChanged=aZ.prototype.entityChanged;_.L([_.T(),_.q("design:type",Object)],aZ.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],aZ.prototype,"compact",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],aZ.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],aZ.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(l,e){return _.wV(l.entities,"commerceCartItemEntity",e)}}),
_.q("design:type",Object)],aZ.prototype,"commerceCartItemEntity",void 0);_.L([_.T(),_.q("design:type",Object)],aZ.prototype,"quantityPicker",void 0);_.L([_.T(),_.q("design:type",Object)],aZ.prototype,"compactQuantityPicker",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],aZ.prototype,"hidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],aZ.prototype,"errorHidden",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.q("design:type",Object)],aZ.prototype,"noOnTap",void 0);_.L([_.aB("ytd-commerce-cart-item-quantity-picker-renderer"),_.q("design:type",Object)],aZ.prototype,"pickerElement",void 0);_.L([_.aB("yt-button-renderer"),_.q("design:type",Element)],aZ.prototype,"firstButtonElement",void 0);
_.L([_.AA("commerceCartItemEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aZ.prototype,"entityChanged",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aZ.prototype,"onYtRendererstamperFinished",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],aZ);
_.Y(aZ,"ytd-commerce-cart-item-renderer",function(){if(Z5q!==void 0)return Z5q;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Z5q=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var CWC;var osC;var kK=function(){return _.B.apply(this,arguments)||this};
_.m(kK,_.B);kK.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}}}}}};
kK.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
kK.prototype.updateCheckoutLineItems=function(){var l,e=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.checkoutLineItems;e&&(l=e.map(function(O){a:{var E=O.price,J=O.description;switch(O.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":O={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ns(J),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:Ns(E),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:O={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ns(J),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:Ns(E),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 O}),this.set("data.summaryLineItems",l))};
kK.prototype.updateIsHidden=function(){var l,e=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.isHidden;e!==void 0&&(this.hostElement.hidden=e)};
kK.prototype.entityChanged=kK.prototype.entityChanged;_.L([_.K(_.sY),_.q("design:type",Object)],kK.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],kK.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],kK.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:IJM}),_.q("design:type",Object)],kK.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.AA("commerceCartCheckoutButtonEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kK.prototype,"entityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],kK);
_.Y(kK,"ytd-commerce-cart-summary-renderer",function(){if(osC!==void 0)return osC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return osC=l},{mode:1});var $Fq={};$Fq.InjectBehavior=[Qlp.InjectBehavior];var Wv1;var dFH;var IZ=function(){return _.B.apply(this,arguments)||this};
_.m(IZ,_.B);
IZ.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:_.hm("menuRenderer")}}};
IZ.prototype.onMenuTap=function(l){l.stopPropagation()};
_.Ji.Object.defineProperties(IZ.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 l,e;return!(((l=this.data)==null||!l.sectionHeading)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var l,e;return!(((l=this.data)==null||!l.image)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var l,e;return!(((l=this.data)==null||!l.menu)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.D6q.YtTappableItemBehavior),_.q("design:type",Object)],IZ.prototype,"ytTappableItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],IZ.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.accessibilityData"),_.q("design:type",String),_.q("design:paramtypes",[])],IZ.prototype,"ariaLabel",null);_.L([_.R("data.sectionHeading","data.layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IZ.prototype,"sectionHeadingVisible",null);_.L([_.R("data.image","data.layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IZ.prototype,"imageVisible",null);
_.L([_.R("data.menu","data.layout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],IZ.prototype,"menuVisible",null);_.L([_.Ps({is:"yt-activity-item-renderer",disableElementRegistration:!0})],IZ);
_.Y(IZ,"yt-activity-item-renderer",function(){if(dFH===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Wv1===void 0&&(Wv1=document.createElement("template"));var E=Wv1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);dFH=l}l=dFH;return l},{mode:2});var gs1;var i5k;var wGS;var Ay6;var mr=function(){return _.B.apply(this,arguments)||this};
_.m(mr,_.B);
mr.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"}}}}};
mr.prototype.backgroundColorChanged_=function(){var l,e=(l=this.data)==null?void 0:l.backgroundColor;this.hostElement.style.backgroundColor=bA[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
mr.prototype.backgroundColorChanged_=mr.prototype.backgroundColorChanged_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mr.prototype,"data",void 0);
_.L([_.AA("data.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mr.prototype,"backgroundColorChanged_",null);_.L([_.Ps({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],mr);
_.Y(mr,"yt-offer-item-upsell-renderer",function(){if(Ay6===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;wGS===void 0&&(wGS=document.createElement("template"));var E=wGS;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Ay6=l}l=Ay6;return l},{mode:2});_.Y7("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var yq=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};l.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return l};
_.m(yq,_.B);_.X=yq.prototype;
_.X.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:_.hm("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.X.computeContainerStyle_=function(l){return l};
_.X.computeContainerIsHidden_=function(l){return l&&!!l.isHidden};
_.X.computeShowSpinner_=function(l,e){return l&&e==="in-progress"};
_.X.computeShowMoreContentsButton_=function(l,e,O,E,J){return!(!(E&&E.length||J&&J.length&&O)||!l||e)};
_.X.onToggleButton_=function(l){var e=this;l.stopPropagation();this.isExpanded_=l.detail&&l.detail.toggled;var O,E;this.isExpanded_&&!this.data.continuationSection.length&&((O=this.data)==null?0:(E=O.continuation)==null?0:E.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.$u(this.hostElement,"yt-load-next-continuation",function(J){return e.getContinuationUrl_(e.data.continuation.onClickContinuationData,J)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.ii(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.X.onShowMoreContentsButtonClicked_=function(l){var e=this;l.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.$u(this.hostElement,"yt-load-next-continuation",function(O){return e.getContinuationUrl_(e.data.continuations[0].nextContinuationData,O)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.ii(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.X.getContinuationUrl_=function(l,e){var O=l.continuation;l=l.clickTrackingParams;var E=_.P9();l&&E&&_.On(E,_.cf(l));return _.e7(e,{continuation:O})};
_.X.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var l=_.ud(this.hostElement).querySelector("#continuation-section");l&&(l=l.querySelectorAll("ytmusic-item-section-renderer"))&&l.forEach(function(e){return e.classList.add("memberships-and-purchases")})};
_.X.dataChanged_=function(){var l;this.isExpanded_=!((l=this.data)==null||!l.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.X.updateCardOnClickCommand_=function(l){l=_.I(l,hfq);var e,O;this.data&&((e=this.data)==null?0:e.targetId)&&l&&l.targetId===((O=this.data)==null?void 0:O.targetId)&&l.onClickCommand&&(this.data.onClickCommand=l.onClickCommand,this.isOnClickCommand_=!0)};
_.X.backgroundColorChanged_=function(){var l,e=(l=this.data)==null?void 0:l.backgroundColor;this.hostElement.style.backgroundColor=bA[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
yq.prototype.backgroundColorChanged_=yq.prototype.backgroundColorChanged_;yq.prototype.dataChanged_=yq.prototype.dataChanged_;yq.prototype.nextContinuationDataUpdated_=yq.prototype.nextContinuationDataUpdated_;yq.prototype.onToggleButton_=yq.prototype.onToggleButton_;_.L([_.K(_.qU),_.q("design:type",Object)],yq.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],yq.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.vd.YtNextContinuationBehavior),_.q("design:type",Object)],yq.prototype,"ytNextContinuationBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.L([_.K($Fq.InjectBehavior),_.q("design:type",Object)],yq.prototype,"injectBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yq.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],yq.prototype,"compact",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],yq.prototype,"isExpanded_",void 0);_.L([_.T({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.q("design:type",String)],yq.prototype,"containerStyle_",void 0);_.L([_.T({value:"not-started"}),_.q("design:type",String)],yq.prototype,"continuationStatus_",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.q("design:type",Boolean)],yq.prototype,"showSpinner_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],yq.prototype,"isOnClickCommand_",void 0);_.L([_.T({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.q("design:type",Boolean)],yq.prototype,"showMoreContentsButton_",void 0);
_.L([_.T({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(l,e){return!e||l.entities?null:_.wV(l.entities,"cardItemContainerEntity",e)}}),
_.q("design:type",Object)],yq.prototype,"cardItemContainerEntity_",void 0);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yq.prototype,"onToggleButton_",null);_.L([_.wP("yt-next-continuation-data-updated"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yq.prototype,"nextContinuationDataUpdated_",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yq.prototype,"dataChanged_",null);_.L([_.AA("data.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yq.prototype,"backgroundColorChanged_",null);_.L([_.Ps({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],yq);
_.Y(yq,"yt-card-item-container-renderer",function(){if(i5k===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;gs1===void 0&&(gs1=document.createElement("template"));var E=gs1;O.call(e,E.content.cloneNode(!0),l.content.firstChild);i5k=l}l=i5k;return l},{mode:2});var pE=function(){return _.B.apply(this,arguments)||this};
_.m(pE,_.B);pE.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{cardItemContainerRenderer:{component:"yt-card-item-container-renderer",params:{compact:!1}},commerceCartCheckoutButtonRenderer:"ytd-commerce-cart-checkout-button-renderer",commerceCartHeaderRenderer:"ytd-commerce-cart-header-renderer",cardItemRenderer:"yt-card-item-renderer"}},"data.cartSummary":{id:"cart-summary",mapping:{commerceCartSummaryRenderer:"ytd-commerce-cart-summary-renderer"}}}};
pE.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
pE.prototype.computeLoadingHidden=function(){var l;return!((l=this.commerceCartPageStateEntity)==null?0:l.cartActionInProgress)};
pE.prototype.updateNotification=function(){var l,e=(l=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:l.summaryText;e&&this.set("data.cartNotification",Ns(e))};
pE.prototype.notificationEntityChanged=pE.prototype.notificationEntityChanged;_.L([_.K(_.sY),_.q("design:type",Object)],pE.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],pE.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(l,e){return _.wV(l.entities,"commerceCartExpandableNotificationEntity",e)}}),
_.q("design:type",Object)],pE.prototype,"commerceCartExpandableNotificationEntity",void 0);_.L([_.T({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(l,e){return _.wV(l.entities,"commerceCartPageStateEntity",e)}}),
_.q("design:type",Object)],pE.prototype,"commerceCartPageStateEntity",void 0);_.L([_.aB("#spinner"),_.q("design:type",HTMLElement)],pE.prototype,"spinner",void 0);_.L([_.AA("commerceCartExpandableNotificationEntity","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pE.prototype,"notificationEntityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],pE);
_.Y(pE,"ytd-commerce-cart-renderer",function(){if(CWC!==void 0)return CWC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return CWC=l},{mode:1});var nsS;var KE=function(){var l=_.B.apply(this,arguments)||this;l.bigImage=!1;return l};
_.m(KE,_.B);_.Ji.Object.defineProperties(KE.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.placeholderImageUrl}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],KE.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],KE.prototype,"bigImage",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],KE.prototype,"placeholderImageUrl",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],KE);
_.Y(KE,"ytd-empty-product-shelf-renderer",function(){if(nsS!==void 0)return nsS;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return nsS=l},{mode:1});var a6x;var jY=function(){var l=_.B.apply(this,arguments)||this;l.itemStyle="link-item";l.watchMetadataRefresh=!1;l.skinnyMode=!1;l.metaPanel=!1;l.inStructuredDescription=!1;l.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};l.updateOnResizeDebouncer=null;return l};
_.m(jY,_.B);_.X=jY.prototype;_.X.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.X.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"}}}}};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.X.attachVEs=function(l){l.trackingParams&&_.yN().graftServerVe(l.trackingParams)};
_.X.handleUpdateMerchShelfAction=function(l){var e=this,O=_.I(l.updateMerchandiseShelfAction.merchandiseShelf,_.IqH);O&&(O.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){e.attachVEs(O);e.data=O},Number(O.renderDelayMs))):(this.attachVEs(O),this.data=O))};
_.X.updateOnResize=function(){if(this.JSC$14735_scrollContainer!==void 0&&this.JSC$14735_scrollContainer.clientWidth!==0&&this.items!==void 0){var l=this.JSC$14735_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-l));this.ytdHorizontalListBehavior.reposition_();var e;switch((e=this.data)==null?void 0:e.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var O,
E;((O=this.data)==null?void 0:(E=O.items)==null?void 0:E.length)===1?this.itemStyle="cta-item":this.itemStyle=l>=740?"large-item":"small-item"}}};
_.X.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Ci(this.updateOnResizeDebouncer,_.la.after(100),this.updateOnResize)};
jY.prototype.debouncedUpdateOnResize=jY.prototype.debouncedUpdateOnResize;jY.prototype.dataChanged=jY.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],jY.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],jY.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],jY.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jY.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"itemStyle",void 0);_.L([_.T({value:6}),_.q("design:type",Number)],jY.prototype,"initialCount",void 0);
_.L([_.T({value:"data.items"}),_.q("design:type",String)],jY.prototype,"itemsPath",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"watchMetadataRefresh",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"skinnyMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"metaPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],jY.prototype,"inStructuredDescription",void 0);
_.L([_.aB("#items"),_.q("design:type",HTMLDivElement)],jY.prototype,"items",void 0);_.L([_.aB("#scroll-container"),_.q("design:type",HTMLDivElement)],jY.prototype,"JSC$14735_scrollContainer",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jY.prototype,"dataChanged",null);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jY.prototype,"debouncedUpdateOnResize",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],jY);
_.Y(jY,"ytd-merch-shelf-renderer",function(){if(a6x!==void 0)return a6x;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return a6x=l},{mode:2});var kck;var Hl=function(){var l=_.B.apply(this,arguments)||this;l.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 l};
_.m(Hl,_.B);_.X=Hl.prototype;
_.X.addBackstagePostAction=function(l){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(l=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",l))&&(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:l}):this.set("data.contents",[{backstagePostThreadRenderer:l}]))};
_.X.addBackstageCommentAction=function(l){var e=this.get("addBackstageCommentAction.parentId",l);l=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",l);if(e&&l){e=this.postIdToIndices(e);for(var O=0;O<e.length;O++){var E=e[O];if(E<0)break;E="data.contents."+E+".backstagePostThreadRenderer.comments";this.get(E)&&(this.get(E+".backstageCommentsRenderer.contents")&&this.push(E+".backstageCommentsRenderer.contents",{commentThreadRenderer:l}),this.get(E+".backstageCommentsRenderer.teaserContents")?
this.push(E+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:l}):this.set(E+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:l}]))}}};
_.X.addBackstageReplyAction=function(l){var e=this.get("addBackstageReplyAction.parentId",l);l=this.get("addBackstageReplyAction.renderer.commentRenderer",l);e&&l&&this.setCreatorReply(e,l)};
_.X.banAuthorAction=function(l){var e=this.get("banAuthorAction.commentId",l);e&&(l=this.get("banAuthorAction.parentCommentId",l)||this.getParentPostId(e),this.removeFromStream(e,l))};
_.X.hideReportedCommentAction=function(l){var e=this.get("hideReportedCommentAction.commentId",l);e&&((l=this.get("hideReportedCommentAction.parentCommentId",l))||(l=this.getParentPostId(e)),this.removeFromStream(e,l))};
_.X.replaceBackstageCommentAction=function(l){var e=this.get("replaceBackstageCommentAction.commentId",l),O=this.get("replaceBackstageCommentAction.parentId",l);l=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",l);if(e&&O&&l){O=this.postIdToIndices(O);for(var E=0;E<O.length;E++){var J=O[E];if(J<0)break;var z=this.commentIdToIndex(e,J,!1);if(z>=0){var M=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z+".commentThreadRenderer.replies.commentRepliesRenderer");
M&&(l.replies={commentRepliesRenderer:M});this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",z,1,{commentThreadRenderer:l})}z=this.commentIdToIndex(e,J,!0);if(z>=0){if(M=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(z+".commentThreadRenderer.replies.commentRepliesRenderer")))l.replies={commentRepliesRenderer:M};this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
z,1,{commentThreadRenderer:l})}}}};
_.X.replaceBackstagePostAction=function(l){var e=this.get("replaceBackstagePostAction.itemId",l);if(e){e=this.postIdToIndices(e);for(var O=0;O<e.length;O++){var E=e[O];if(E<0)break;var J=this.getPostRendererType(E),z=this.get("replaceBackstagePostAction.renderer."+J,l);if(!z&&J!=="sharedPostRenderer")break;var M=!1;z||(M=!0,z=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",l));if(!z)break;var Z={};M?(_.Pf(Z,FCi,z),this.set("data.contents."+E+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
Z)):(_.Pf(Z,new _.v(J),z),this.set("data.contents."+E+".backstagePostThreadRenderer.post",Z))}}};
_.X.replaceBackstageReplyAction=function(l){var e=this.get("replaceBackstageReplyAction.replyId",l),O=this.get("replaceBackstageReplyAction.parentId",l);l=this.get("replaceBackstageReplyAction.renderer.commentRenderer",l);e&&l&&O&&this.setCreatorReply(O,l)};
_.X.removeCommentAction=function(l){var e=this.get("removeCommentAction.commentId",l);if(e){var O=this.get("removeCommentAction.parentCommentId",l);O&&this.get("removeCommentAction.isCreatorReply",l)?this.setCreatorReply(O,void 0):(O||(O=this.getParentPostId(e)),this.removeFromStream(e,O))}};
_.X.setCreatorReply=function(l,e){var O=this.getParentPostId(l);if(O){O=this.postIdToIndices(O);for(var E=0;E<O.length;E++){var J=O[E];if(J<0)break;var z=this.commentIdToIndex(l,J,!1);if(z>=0){var M="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z;z=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";M+=".commentThreadRenderer.replies";e==void 0?(this.set(M,{}),this.set(z,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),
this.set(M+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(z,!0))}z=this.commentIdToIndex(l,J,!0);z>=0&&(z="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+z,J=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",z+=".commentThreadRenderer.replies",e==void 0?(this.set(z,{}),this.set(J,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),this.set(J,!0)))}}};
_.X.removeFromStream=function(l,e){if(e){e=this.postIdToIndices(e);for(var O=0;O<e.length;O++){var E=e[O];if(E<0)break;var J=this.commentIdToIndex(l,E,!1);J>=0&&this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1);J=this.commentIdToIndex(l,E,!0);J>=0&&this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",J,1);E="data.contents."+E+".backstagePostThreadRenderer.post.backstagePostRenderer";
J=E+".backstageAttachment.pollRenderer.votedCommentId";this.get(J)===l&&(this.set(J,null),this.set(E+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(e=this.postIdToIndices(l).reverse(),O=0;O<e.length;O++){E=e[O];if(E<0)break;J=this.getPostRendererType(E);var z=this.get("backstagePostThreadRenderer.post."+J,this.data.contents[E]);z.postId===l?this.splice("data.contents",E,1):J==="sharedPostRenderer"&&this.set("data.contents."+E+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);z.scheduledPublishTimeSec&&_.Wb(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.X.postIdToIndices=function(l){for(var e=[],O=0;O<this.data.contents.length;O++){var E=this.getPostRendererType(O);this.get("backstagePostThreadRenderer.post."+E+".postId",this.data.contents[O])===l&&e.push(O);if(E==="sharedPostRenderer"){var J=this.get("backstagePostThreadRenderer.post."+E+".originalPost.backstagePostRenderer.postId",this.data.contents[O]);E=this.get("backstagePostThreadRenderer.post."+E+".originalPost.postRenderer.postId",this.data.contents[O]);J!==l&&E!==l||e.push(O)}}return e};
_.X.commentIdToIndex=function(l,e,O){if(e<0)return-1;var E,J,z,M,Z=_.I((E=this.data)==null?void 0:(J=E.contents)==null?void 0:(z=J[e])==null?void 0:(M=z.backstagePostThreadRenderer)==null?void 0:M.comments,HN6);return(e=O?Z==null?void 0:Z.teaserContents:Z==null?void 0:Z.contents)&&e.length?e.findIndex(function(u){return _.I(u,XWH).comment.commentRenderer.commentId===l}):-1};
_.X.getParentPostId=function(l){l=l.split(".");if(l[1])return l[0]};
_.X.getPostRendererType=function(l){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[l])?"sharedPostRenderer":"backstagePostRenderer"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Hl.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Hl.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-items"})],Hl);
_.Y(Hl,"ytd-backstage-items",function(){if(kck!==void 0)return kck;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kck=
l},{mode:1});var I66;_.RB({is:"ytd-comments",_template:function(){if(I66!==void 0)return I66;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return I66=l},
behaviors:[_.egW.YtHostElementBehavior,_.NO.YtPlayerListenerBehavior,_.x.YtRendererBehavior,_.ZH.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(l){l&&l.value&&l.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(l){l&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.UG("wn_comments");var l=_.P9();l&&_.Pb({clientScreenNonce:l},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(l){l=zZ8(l);var e,O,E;if(l=(e=l)==null?void 0:(O=e.createCommentAction)==null?void 0:(E=O.contents)==null?void 0:E.commentThreadRenderer){var J,z,M,Z,u,d;!this.isBackstage&&((J=this.data)==null?0:(z=J.header)==null?0:(M=z.commentsHeaderRenderer)==null?0:(Z=M.createRenderer)==null?0:(u=Z.commentSimpleboxRenderer)==null?0:(d=u.zeroStep)==null?0:d.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var g,w,n,k;this.isBackstage&&((g=this.data)==null?0:(w=g.header)==null?0:(n=w.commentsHeaderRenderer)==null?0:(k=n.zeroStateMessage)==null?0:k.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(l)}},
doReplyInsert_:function(l,e,O,E){E?this.splice(l,E,0,e):this.push(l,e)},
getRepliesPath_:function(l){return"data.contents."+l+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(l,e){l=this.getRepliesPath_(l);return e?l+".commentRepliesRenderer.teaserContents":l+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(l){l=zZ8(l);var e,O,E=(e=l)==null?void 0:(O=e.createCommentReplyAction)==null?void 0:O.parentCommentId,J,z;if(e=(J=l)==null?void 0:(z=J.createCommentReplyAction)==null?void 0:z.contents)if(E=this.commentIdToIndex_(E),!(E<0))if(J=this.getRepliesPath_(E),this.get(J)){var M,Z;l=(M=l)==null?void 0:(Z=M.createCommentReplyAction)==null?void 0:Z.replyToCommentId;M=this.getRepliesContentsPath_(E,!1);this.get(M)&&(Z=this.get(M).length,J=M+"."+(Z-1)+".continuationItemRenderer",
this.get(J+".button")?(J=this.replyIdToIndex_(l,E,!1),this.doReplyInsert_(M,e,J,Z-1)):this.get(J)||(Z=this.replyIdToIndex_(l,E,!1),this.doReplyInsert_(M,e,Z,null)));M=this.getRepliesContentsPath_(E,!0);this.get(M)?(E=this.replyIdToIndex_(l,E,!0),(!l||E>=0)&&this.doReplyInsert_(M,e,E,null)):this.set(M,[e])}else this.set(J,{commentRepliesRenderer:{teaserContents:[e]}})},
hideReportedCommentAction_:function(l){var e,O=l==null?void 0:(e=l.hideReportedCommentAction)==null?void 0:e.commentId;if(O){var E;l=l==null?void 0:(E=l.hideReportedCommentAction)==null?void 0:E.parentCommentId;O=O.replace("#",".");l||(l=this.getParentCommentId_(O));this.remove_(O,l)}},
getParentCommentId_:function(l){l=l.split(".");if(l[1])return l[0]},
removeCommentAction_:function(l){var e,O=l==null?void 0:(e=l.removeCommentAction)==null?void 0:e.commentId;if(O){var E;l=l==null?void 0:(E=l.removeCommentAction)==null?void 0:E.parentCommentId;O=O.replace("#",".");l||(l=this.getParentCommentId_(O));this.remove_(O,l)}},
pinCommentAction_:function(l){l=zZ8(l);var e,O,E=(e=l)==null?void 0:(O=e.pinCommentAction)==null?void 0:O.commentId;E&&(l=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",l))&&(this.remove_(E),this.insert_(l,!0))},
unpinCommentAction_:function(l){l=zZ8(l);var e,O,E=(e=l)==null?void 0:(O=e.unpinCommentAction)==null?void 0:O.commentId;if(E){var J,z,M;if(l=(J=l.unpinCommentAction)==null?void 0:(z=J.actionResult)==null?void 0:(M=z.update)==null?void 0:M.commentThreadRenderer)this.remove_(E),this.insert_(l)}},
banAuthorAction_:function(l){var e,O=l==null?void 0:(e=l.banAuthorAction)==null?void 0:e.commentId;if(O){var E;l=l==null?void 0:(E=l.banAuthorAction)==null?void 0:E.parentCommentId;O=O.replace("#",".");l||(l=this.getParentCommentId_(O));this.remove_(O,l)}},
commentIdToIndex_:function(l){var e;return l&&(e=this.data)!=null&&e.contents?this.data.contents.findIndex(function(O){var E,J;return l===((O==null?void 0:(E=O.commentThreadRenderer)==null?void 0:E.commentViewModel)&&((J=_.I(O.commentThreadRenderer.commentViewModel,VRH))==null?void 0:J.commentId))}):-1},
insert_:function(l,e){var O,E;if((O=this.data)==null?0:(E=O.contents)==null?0:E.some(function(z){return!(z==null||!z.commentThreadRenderer)}))for(O=0,E=this.data.contents.length;O<E;O++){var J=this.data.contents[O].commentThreadRenderer;
if(this.RenderingPriority[l.renderingPriority]>=this.RenderingPriority[J.renderingPriority]){e&&this.RenderingPriority[l.renderingPriority]==this.RenderingPriority[J.renderingPriority]?this.splice("data.contents",O,1,{commentThreadRenderer:l}):this.splice("data.contents",O,0,{commentThreadRenderer:l});break}}else this.set("data.contents",[{commentThreadRenderer:l}])},
doReplyRemove_:function(l,e,O){l=this.replyIdToIndex_(l,e,O);l<0||(e=this.getRepliesContentsPath_(e,O),this.splice(e,l,1))},
remove_:function(l,e){e=this.commentIdToIndex_(e);e<0?(e=this.commentIdToIndex_(l),e<0||this.splice("data.contents",e,1)):(this.doReplyRemove_(l,e,!1),this.doReplyRemove_(l,e,!0))},
replyIdToIndex_:function(l,e,O){if(e<0)return-1;e=this.getRepliesContentsPath_(e,O);e=this.get(e);if(!e||!e.length)return-1;O=0;for(var E=e.length;O<E;O++){var J=void 0,z=void 0;if(((J=e[O])==null?void 0:(z=J.commentViewModel)==null?void 0:z.commentId)===l)return O}return-1},
computeIsBackstage_:function(l){return!!l},
tickForCommentsTimer_:function(l){_.hg(l,void 0,"wn_comments")},
reloadComments_:function(l){l&&l.reloadCommentsCommand&&l.reloadCommentsCommand.command&&l.reloadCommentsCommand.command.continuationCommand&&_.ii(this,[l.reloadCommentsCommand.command])}});var cl=function(){return _.IB.apply(this,arguments)||this};
_.m(cl,_.IB);_.X=cl.prototype;_.X.bindIf=function(l,e,O){return l?e:O};
_.X.bindIfDefined=function(l,e){return l!==void 0?l:e};
_.X.booleanString=function(l){return(!!l).toString()};
_.X.equals=function(){for(var l=_.ke.apply(0,arguments),e=l[0],O=1;O<l.length;O++)if(e!=l[O])return!1;return!0};
_.X.isGreaterThan=function(l,e){return l>e};
_.X.isLessThan=function(l,e){return l<e};
_.X.logicalAND=function(){for(var l=_.ke.apply(0,arguments),e=!!l[0],O=1;O<l.length;O++)e=e&&!!l[O];return e};
_.X.logicalOR=function(){for(var l=_.ke.apply(0,arguments),e=!!l[0],O=1;O<l.length;O++)e=e||!!l[O];return e};
_.X.toBool=function(l){return!!l};
cl.prototype.toBool=cl.prototype.toBool;cl.prototype.logicalOR=cl.prototype.logicalOR;cl.prototype.logicalAND=cl.prototype.logicalAND;cl.prototype.isLessThan=cl.prototype.isLessThan;cl.prototype.isGreaterThan=cl.prototype.isGreaterThan;cl.prototype.equals=cl.prototype.equals;cl.prototype.booleanString=cl.prototype.booleanString;cl.prototype.bindIfDefined=cl.prototype.bindIfDefined;cl.prototype.bindIf=cl.prototype.bindIf;_.L([_.m0()],cl);_.mF1=[cl.prototype];var yyq;var pGS;var Fr=function(){return _.B.apply(this,arguments)||this};
_.m(Fr,_.B);Fr.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Fr.prototype.onBackIconTap_=function(){window.history.back()};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Fr.prototype,"data",void 0);_.L([_.Ps({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Fr);
_.Y(Fr,"yt-header-with-back-renderer",function(){if(pGS===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;yyq===void 0&&(yyq=document.createElement("template"));var E=yyq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);pGS=l}l=pGS;return l},{mode:2});var Kvq;var j0q;var fE=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(fE,_.B);_.X=fE.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l,this.setUrl())};
_.X.dataChanged=function(){var l=this;if(this.data){var e=this.setUrl();e&&_.zP({destination:window,iframe:this.iframe,origin:_.F1x(e.toString()),channelName:"yt-iframe",onMessage:function(O){(O=l.getCommunicationCommand(O.data))&&l.ytComponentBehavior.resolveCommand(O)},
onEstablished:function(){}})}};
_.X.setUrl=function(){if(this.data&&this.data.iframeUrl){var l=_.YP(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(l)return _.H2(this.iframe,l),l}};
_.X.getCommunicationCommand=function(l){var e;if((e=this.data)!=null&&e.onCommunicationCommandsMap){e=this.data.onCommunicationCommandsMap.find(function(J){return J.key===l});
if(e==null?0:e.value)return e==null?void 0:e.value;try{var O=fnH(_.VH(l)),E=this.data.onCommunicationCommandsMap.find(function(J){return J.key===(O==null?void 0:_.BW(O,1))});
if(E==null?0:E.value)return E==null?void 0:E.value}catch(J){}}};
fE.prototype.dataChanged=fE.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],fE.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],fE.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fE.prototype,"data",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],fE.prototype,"isDarkTheme",void 0);_.L([_.aB("#iframe"),_.q("design:type",HTMLIFrameElement)],fE.prototype,"iframe",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fE.prototype,"dataChanged",null);_.L([_.Ps({is:"yt-iframe-renderer",disableElementRegistration:!0})],fE);
_.Y(fE,"yt-iframe-renderer",function(){if(j0q===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Kvq===void 0&&(Kvq=document.createElement("template"));var E=Kvq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);j0q=l}l=j0q;return l},{mode:2});_.RZ=function(l){_.y6.call(this);this.callback=l;this.bezier=new CGS(0,0,.4,0,.2,1,1,1);this.delay=new _.be(this.next,window,this);this.JSC$14766_animating=!1;_.oQ(this,this.delay)};
_.m(_.RZ,_.y6);_.RZ.prototype.isAnimating=function(){return this.JSC$14766_animating};
_.RZ.prototype.start=function(l,e,O){this.config={from:l,to:e,duration:O,startTime:(0,_.VZ)()};this.JSC$14766_animating=!0;this.next()};
_.RZ.prototype.stop=function(){this.delay.stop();this.JSC$14766_animating=!1;this.config=void 0};
_.RZ.prototype.next=function(){if(this.config){var l=this.config,e=l.from,O=l.to,E=l.duration;l=l.startTime;var J=(0,_.VZ)()-l;l=this.bezier;E=$vS(l,J/E);if(E==0)l=l.y0;else if(E==1)l=l.y3;else{J=K3(l.y0,l.y1,E);var z=K3(l.y1,l.y2,E);l=K3(l.y2,l.y3,E);J=K3(J,z,E);z=K3(z,l,E);l=K3(J,z,E)}l=_.hc(l,0,1);this.callback(e+(O-e)*l);l<1?this.delay.start():this.JSC$14766_animating=!1}};_.T6=new _.Xa("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var H5q={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Fvq=function(l,e,O,E){_.y6.call(this);this.JSC$14774_miniAppId=l;this.localReleaseId=e;this.derivedDeviceInterface=O;this.isForeground=E;this.JSC$14774_playNonceResolver=new _.d8;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Cv("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Cv("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.a("enable_displaying_ppn");this.JSC$14774_miniAppClientDataProvider=_.V2().resolve(_.T6);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;cy6(this);var J=setTimeout(function(){_.hG(new _.Hk("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14774_playNonceResolver.promise.then(function(){clearTimeout(J)})};
_.m(Fvq,_.y6);var Ri0=function(l,e){l.JSC$14774_playNonceResolver.resolve(e!=null?e:sK(8));l.enableDisplayingPpn&&f6k(l).then(function(O){l.JSC$14774_miniAppClientDataProvider.clientData.set("post_play_nonce",O)})},f6k=function(l){return _.V(function(e){return e.nextAddress==1?_.C(e,l.JSC$14774_playNonceResolver.promise,2):e.return(e.yieldResult)})},cy6=function(l){var e,O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$14774_playNonceResolver.promise,2);e=E.yieldResult;O={miniAppInfo:{externalPostId:l.JSC$14774_miniAppId,localReleaseId:l.localReleaseId,postPlayNonce:e,derivedDeviceInterface:l.derivedDeviceInterface}};_.Pb(O);_.Cl(E)})},s01=function(l){l.state!==0?_.hG(new _.Hk("[MiniAppPlayLogger] recordPlayStart failed with state "+H5q[l.state])):(l.state=1,s3(l,"ma_cl"),G6(l,"PLAY_EVENT_TYPE_PLAY_START"),Tyx(l))},Gcq=function(l){l.isForeground=!1;
G6(l,"PLAY_EVENT_TYPE_PLAY_PAUSE")},ByC=function(l){l.state!==1&&l.state!==2?_.hG(new _.Hk("[MiniAppPlayLogger] recordPlayEnd failed with state "+H5q[l.state])):(l.state=3,window.clearInterval(l.playPingTimerId),l.playPingTimerId=NaN,E3L(),G6(l,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},PWS=function(l,e){l.state===2&&l.gameReady&&(l.firstClickRecorded?Date.now()-l.clickRecordedMs<l.playClickIntervalMs||(l.clickRecordedMs=Date.now(),G6(l,"PLAY_EVENT_TYPE_PLAY_CLICK")):e&&(s3(l,"ma_fua"),G6(l,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),l.firstClickRecorded=!0,l.clickRecordedMs=Date.now()))};
Fvq.prototype.logError=function(l){var e=this,O;_.V(function(E){if(E.nextAddress==1)return l.metadata.externalPostId=e.JSC$14774_miniAppId,O=l.metadata,_.C(E,Promise.race([e.JSC$14774_playNonceResolver.promise,new Promise(function(J){setTimeout(function(){J("")},3E4)})]),2);
O.postPlayNonce=E.yieldResult;l.metadata.localReleaseId=e.localReleaseId;l.loggingError.level="WARNING";_.UW(l.loggingError,l.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:l.metadata});_.Cl(E)})};
var UFk=function(l,e,O,E){var J,z,M,Z,u,d;_.V(function(g){if(g.nextAddress==1)return _.C(g,l.JSC$14774_playNonceResolver.promise,2);J=g.yieldResult;z={externalPostId:l.JSC$14774_miniAppId,localReleaseId:l.localReleaseId,postPlayNonce:J,sdkVersion:O,api:e};E!==void 0&&(z.networkRequestsMeasurement={networkRequests:_.Eo(E,1),cachedRequests:_.Eo(E,2),transferredBytes:_.Eo(E,3)},(M=E)==null?0:_.p2(M,E1,6))&&(z.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((Z=_.Cu(E,
E1,6))==null?void 0:U9(Z,1))||"0",cacheHits:((u=_.Cu(E,E1,6))==null?void 0:U9(u,2))||"0",cachedBytes:((d=_.Cu(E,E1,6))==null?void 0:U9(d,3))||"0"});_.Bm("miniAppSdkUsage",z);_.Cl(g)})},hi1=function(l,e,O){var E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h;
_.V(function(N){if(N.nextAddress==1)return _.C(N,l.JSC$14774_playNonceResolver.promise,2);E=N.yieldResult;J={externalPostId:l.JSC$14774_miniAppId,localReleaseId:l.localReleaseId,postPlayNonce:E,sdkVersion:O,measurementWindow:{startTimestampMs:String(s9(e,1)),endTimestampMs:String(s9(e,2))},frameRate:{averageFrameTimeDeltaMs:G8(e,3),averageFrameIdleTimeMs:G8(e,4)}};_.p2(e,JK,5)&&(J.networkRequests={networkRequests:(z=uS(e))==null?void 0:_.Eo(z,1),cachedRequests:(M=uS(e))==null?void 0:_.Eo(M,2),transferredBytes:(Z=
uS(e))==null?void 0:_.Eo(Z,3),sameOriginStatusCodeToCounts:YEH((u=uS(e))==null?void 0:OPV(u,4)),crossOriginStatusCodeToCounts:YEH((d=uS(e))==null?void 0:OPV(d,5))},(g=uS(e))==null?0:_.p2(g,E1,6))&&(J.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((w=uS(e))==null?void 0:(n=_.Cu(w,E1,6))==null?void 0:U9(n,1))||"0",cacheHits:((k=uS(e))==null?void 0:(y=_.Cu(k,E1,6))==null?void 0:U9(y,2))||"0",cachedBytes:((c=uS(e))==null?void 0:(f=_.Cu(c,E1,6))==null?void 0:U9(f,3))||"0"});_.p2(e,
p1i,7)&&(J.gameCapture={averageFrameTimeDeltaMs:(P=_.Cu(e,p1i,7))==null?void 0:G8(P,1),averageFrameIdleTimeMs:(h=_.Cu(e,p1i,7))==null?void 0:G8(h,2)});_.Bm("miniAppPerformanceMetrics",J);_.Cl(N)})},LvF=function(l,e,O){var E,J;
return _.V(function(z){if(z.nextAddress==1)return _.C(z,l.JSC$14774_playNonceResolver.promise,2);E=z.yieldResult;J={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:l.JSC$14774_miniAppId,postPlayNonce:E,miniAppReleaseId:l.localReleaseId},derivedDeviceInterface:l.derivedDeviceInterface,adTriggerType:e};J.rejectedReason=O||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Bm("miniAppAdEvent",J);_.Cl(z)})};
Fvq.prototype.disposeInternal=function(){_.y6.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var G6=function(l,e,O,E){O=O===void 0?{}:O;E=E===void 0?!1:E;var J,z,M,Z;_.V(function(u){if(u.nextAddress==1)return J=l.isForeground,z=l.beforeReady,_.C(u,l.JSC$14774_playNonceResolver.promise,2);M=u.yieldResult;Z={externalPostId:l.JSC$14774_miniAppId,localReleaseId:l.localReleaseId,derivedDeviceInterface:l.derivedDeviceInterface,postPlayNonce:M,type:e};O.sequenceGroup=M;Z.playState=z?"PLAY_STATE_NOT_READY":J?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Bm("miniAppPlayEvent",Z,O);
E&&_.Pm();_.Cl(u)})},s3=function(l,e){var O;
_.V(function(E){if(E.nextAddress==1)return O=(0,_.VZ)(),_.C(E,l.JSC$14774_playNonceResolver.promise,2);_.Yu(e,O);_.Cl(E)})},Tyx=function(l){isNaN(l.playPingTimerId)&&(l.playPingTimerId=_.gL(function(){l.state!==1&&l.state!==2?_.hG(new _.Hk("[MiniAppPlayLogger] reportPlayPing failed with state "+H5q[l.state])):G6(l,"PLAY_EVENT_TYPE_PLAY_PING")},l.playPingIntervalMs))},YEH=function(l){return Array.from(l.entries()).map(function(e){var O=_.b(e);
e=O.next().value;O=O.next().value;return{key:e,value:O}})};var tCk=_.Cv("show_mini_app_ad_frequency_cap_ms",0),qEq=function(){this.showAdIntervalMs=tCk;this.isRateLimited=!0},vsH=function(l,e){setTimeout(function(){return l.isRateLimited=!1},l.showAdIntervalMs);
l.showMiniAppAdCommand=e.showMiniAppAdCommand;l.isEmbeddedInWebview=e.isEmbeddedInWebview;l.playLogger=e.playLogger},ryq=function(l,e){var O;
return _.V(function(E){if(E.nextAddress==1){if(!l.showMiniAppAdCommand||!l.isEmbeddedInWebview)return E.return(NyS(l,e,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(l.isRateLimited)return E.return(NyS(l,e,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));l.adResolver=new _.d8;O=vM1(new s1,e);Ds(l.showMiniAppAdCommand,NYq(O));l.isRateLimited=!0;setTimeout(function(){return l.isRateLimited=!1},l.showAdIntervalMs);
return _.C(E,l.adResolver.promise,2)}return E.return(E.yieldResult)})};
qEq.prototype.onAdFinished=function(l){l=X1i(l);var e;(e=this.adResolver)==null||e.resolve(l)};
var NyS=function(l,e,O){var E;return _.V(function(J){if(J.nextAddress==1)J=_.C(J,(E=l.playLogger)==null?void 0:LvF(E,CRq(e),O),2);else{var z=J.return;var M=new JeS;M=_.oC(M,1,2);J=z.call(J,M)}return J})};var DFq=new _.Xa("INNERTUBE_MANAGER_TOKEN");var SEx=function(){this.callbacks={}};
SEx.prototype.initialize=function(l){var e=this;this.callbacks=l;window.youtubewebview?window.youtubewebview.onmessage=function(O){Q01(e,O)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(O){Q01(e,O)})};
var Q01=function(l,e){if(e.data)try{var O=fnH(e.data);if(_.Uu(_.yK(O,1))!=null){var E=UCR(_.BW(O,2));switch(_.BW(O,1)){case "yt-mini-app-load-audio-state":var J,z;(z=(J=l.callbacks).onAudioStateLoaded)==null||z.call(J,_.T8(E,jU(E,TW,1)));break;case "yt-mute-mini-app":var M,Z;(Z=(M=l.callbacks).onMuteMiniApp)==null||Z.call(M);break;case "yt-unmute-mini-app":var u,d;(d=(u=l.callbacks).onUnmuteMiniApp)==null||d.call(u);break;case "yt-playable-exit":var g,w;(w=(g=l.callbacks).onExit)==null||w.call(g);
break;case "yt-post-play-nonce":var n,k;(k=(n=l.callbacks).onPostPlayNonceReceived)==null||k.call(n,Yh(E,2,TW));break;case "yt-confirm-exit-mini-app":var y,c;(c=(y=l.callbacks).confirmExitMiniApp)==null||c.call(y);break;case "yt-confirm-exit-mini-app-edu":var f,P;(P=(f=l.callbacks).confirmExitMiniAppEdu)==null||P.call(f);break;case "yt-benchmarking-response":var h,N;(N=(h=l.callbacks).onNativeBenchmarkingMessageReceived)==null||N.call(h,Yh(E,2,TW));break;case "yt-mini-app-load-3p-consent-state":var t,
r;(r=(t=l.callbacks).multiplayer3pAckStateLoaded)==null||r.call(t,_.T8(E,jU(E,TW,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var D,b2;(b2=(D=l.callbacks).exitMiniAppSeenStateLoaded)==null||b2.call(D,_.T8(E,jU(E,TW,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var $V,gT;(gT=($V=l.callbacks).onNavigateToNewMiniApp)==null||gT.call($V);break;case "yt-game-data-available":var mx,jM;(jM=(mx=l.callbacks).onGameDataAvailable)==null||jM.call(mx,Yh(E,2,TW));break;case "yt-pause-mini-app":var cx,
tq;(tq=(cx=l.callbacks).onPauseMiniApp)==null||tq.call(cx);break;case "yt-resume-mini-app":var Px,S0;(S0=(Px=l.callbacks).onResumeMiniApp)==null||S0.call(Px);break;case "yt-playable-ad-finished":var QH,pR;(pR=(QH=l.callbacks).onAdFinished)==null||pR.call(QH,Yh(E,2,TW))}}else _.hG(Error("Sh"))}catch(oq){_.UW(Error("Th"))}else _.hG(Error("Uh"))};var $ng=function(l){this.rpcErrorCode=l};var Bl=function(l,e,O){this.intervalMs=l;this.apiFunc=e;this.type=O;this.schedulerReady=!0};
Bl.prototype.call=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1){if(e.type!==1&&l===e.cachedValue)return E.return();e.pendingApiRequestResolver||(e.pendingApiRequestResolver=new _.d8);O=e.pendingApiRequestResolver.promise;e.cachedValue=l;return _.C(E,xFq(e),2)}return E.return(O)})};
Bl.prototype.flush=function(l){l=l===void 0?!1:l;var e=this;return _.V(function(O){return e.cachedValue===void 0?O.return():_.C(O,e.apiFunc(e.cachedValue,l),0)})};
var xFq=function(l){var e,O,E;return _.V(function(J){switch(J.nextAddress){case 1:if(!l.schedulerReady||!l.pendingApiRequestResolver)return J.return();l.schedulerReady=!1;e=l.pendingApiRequestResolver;l.pendingApiRequestResolver=void 0;_.b1(J,2);if(l.cachedValue===void 0){J.jumpTo(4);break}return _.C(J,l.apiFunc(l.cachedValue),5);case 5:O=J.yieldResult,e.resolve(O);case 4:_.Q2(J,3);break;case 2:E=_.u1(J),e.reject(E);case 3:setTimeout(function(){return _.V(function(z){l.schedulerReady=!0;return _.C(z,
xFq(l),0)})},l.intervalMs),_.Cl(J)}})};var giL=window.location.origin+"/miniapp_cloudsaves",WNM=[400,401],ltS=_.Cv("cloud_save_game_data_rate_limit_ms",3E3),EFS=function(l){var e=this;this.JSC$14818_miniAppId=l;this.loadAttempts=0;this.cloudSaveIntervalMs=ltS;this.initialDownloadDataSucceeded=!1;this.JSC$14818_playNonceResolver=new _.d8;this.scottyUploadRateLimiter=new Bl(this.cloudSaveIntervalMs,function(O,E){return e31(e,O,E)},2);
this.downloadDataPromise=OKR(this);this.downloadDataPromise.then(function(){e.initialDownloadDataSucceeded=!0}).catch(function(){})},JNq=function(l,e){e.then(function(O){return l.JSC$14818_playNonceResolver.resolve(O)})},XBx=function(l){return _.V(function(e){return l.cachedData===void 0?e.return(l.downloadDataPromise):e.return(l.cachedData)})},z3R=function(l,e){return _.V(function(O){l.cachedData=e;
if(!l.initialDownloadDataSucceeded)throw Error("Vh");return _.C(O,l.scottyUploadRateLimiter.call(e),0)})},bK6=function(){return new Promise(function(l){setTimeout(l,1E3,"")})},M8x=function(l,e){var O,E;
return _.V(function(J){if(J.nextAddress==1)return O=l.JSC$14818_miniAppId,_.C(J,Promise.race([l.JSC$14818_playNonceResolver.promise,bK6()]),2);E={"X-YouTube-MiniAppId":O,"X-YouTube-PostPlayNonce":J.yieldResult};"DELEGATED_SESSION_ID"in _.UC&&T4V(e,E);return J.return(E)})},e31=function(l,e,O){O=O===void 0?!1:O;
return _.V(function(E){return oi2()?_.a("enable_cloud_save_error_popup_after_retry")?E.return(new Promise(function(J,z){var M,Z,u,d,g;return _.V(function(w){switch(w.nextAddress){case 1:M=0,Z=!0,d=u=null;case 2:if(!(Z&&M++<2)){w.jumpTo(4);break}_.b1(w,5);return _.C(w,V81(l,e,O),7);case 7:u=w.yieldResult;Z=u.ok?!1:!WNM.includes(u.status);_.Q2(w,2);break;case 5:d=g=_.u1(w);Z=dnx(d);w.jumpTo(2);break;case 4:u?u.ok?(Pl(l,ltS),J()):(Pl(l,l.cloudSaveIntervalMs*2),z(Error("Wh`"+String(u.status),{cause:{rpcErrorCode:u.status}}))):
(Pl(l,l.cloudSaveIntervalMs*2),z(d||Error("Xh"))),_.Cl(w)}})})):E.return(new Promise(function(J,z){var M,Z;
return _.V(function(u){if(u.nextAddress==1){if(l.JSC$14818_miniAppId==="")return z(Error("Yh")),u.return();_.b1(u,2);return _.C(u,V81(l,e,O),4)}if(u.nextAddress!=2)return M=u.yieldResult,M.ok?(Pl(l,ltS),J()):(Pl(l,l.cloudSaveIntervalMs*2),z(Error("Wh`"+String(M.status),{cause:{rpcErrorCode:M.status}}))),_.Q2(u,0);Z=_.u1(u);Pl(l,l.cloudSaveIntervalMs*2);z(Z);_.Cl(u)})})):E.return()})},V81=function(l,e,O){O=O===void 0?!1:O;
var E,J,z;return _.V(function(M){if(M.nextAddress==1)return E=_.x4((new TextEncoder).encode(e)),J=isx(),_.C(M,M8x(l,J),2);z=M.yieldResult;return M.return(fetch(J,{method:"POST",body:new Blob([E]),headers:z,keepalive:O}))})},OKR=function(l){var e,O;
return _.V(function(E){if(E.nextAddress==1){if(!oi2())return E.return("");if(l.JSC$14818_miniAppId==="")throw Error("Yh");if(l.loadAttempts>2)return E.return(l.downloadDataPromise);_.b1(E,2);return _.C(E,ZK6(l),4)}if(E.nextAddress!=2)return e=E.yieldResult,E.return(e);O=_.u1(E);if(dnx(O)&&++l.loadAttempts<2)return E.return(OKR(l));throw O;})},ZK6=function(l){var e,O,E,J,z;
return _.V(function(M){switch(M.nextAddress){case 1:return _.b1(M,2),e=isx(),_.C(M,M8x(l,e),4);case 4:return O=M.yieldResult,_.C(M,fetch(e,{method:"GET",headers:O}),5);case 5:return E=M.yieldResult,E.ok?_.C(M,E.text(),6):M.return(Promise.reject(Error("Zh`"+String(E.status),{cause:new $ng(E.status)})));case 6:return J=M.yieldResult,M.return((new TextDecoder).decode(_.VH(J)));case 2:return z=_.u1(M),M.return(Promise.reject(z))}})},Pl=function(l,e){l.cloudSaveIntervalMs=e;
l.scottyUploadRateLimiter.intervalMs=l.cloudSaveIntervalMs};
EFS.prototype.flush=function(){var l=this;return _.V(function(e){return l.initialDownloadDataSucceeded?_.C(e,l.scottyUploadRateLimiter.flush(!0),0):e.return()})};var uGS=Vu(MS(1),zW(1)),Cux=Vu(MS(1),zW(3)),U3=function(l){this.callbacks=l};
_.X=U3.prototype;_.X.onAudioToggled=function(l,e){(e===void 0||e)&&_.dS("yt-mini-app-is-audio-enabled",l,2592E3)};
_.X.onPause=function(){this.onAudioToggled(!1,!1)};
_.X.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.X.returnNativeBenchmarkingMessage=function(){};
_.X.sendGameData=function(){};
_.X.sendStartGameFrameCapture=function(){};
var wMx=function(l,e,O){this.callbacks=l;var E=this;this.sdkVersion=new _.d8;this.channel=new hlq(_.zP({destination:window,iframe:e,origin:(new URL(O.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var J=YK;var z=MS(5);var M=new $sq;M=_.L2(M,1,1E4);z=_.Jz(z,4,as6,M);J(E,z);E.onAudioToggled(E.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){E.sdkVersion.resolve("")},1E4)};
_.m(wMx,U3);_.X=wMx.prototype;_.X.onAudioToggled=function(l,e){U3.prototype.onAudioToggled.call(this,l,e===void 0?!0:e);e=YK;var O=MS(2),E=new C31;l=_.b$(E,1,l);l=_.Jz(O,3,as6,l);e(this,l)};
_.X.onPause=function(){U3.prototype.onPause.call(this);YK(this,MS(3))};
_.X.onResume=function(){U3.prototype.onResume.call(this);YK(this,MS(4))};
_.X.returnNativeBenchmarkingMessage=function(l){var e=YK,O=MS(6);var E=zW(_.p2(l,xM,1)?1:2);l=_.p2(l,xM,1)?l:null;E=_.Jz(E,5,bS,l);e(this,Vu(O,E))};
_.X.sendGameData=function(l){var e=YK,O=MS(7);l=_.Jz(O,5,as6,l);e(this,l)};
_.X.sendStartGameFrameCapture=function(){YK(this,MS(9))};
var ha=function(l,e,O){var E,J,z;return _.V(function(M){if(M.nextAddress==1)return E=l.callbacks,J=E.onSdkCalled,z=e,_.C(M,l.sdkVersion.promise,2);J.call(E,z,M.yieldResult,O);_.Cl(M)})};
wMx.prototype.onMessage=function(){var l=this;return qTx(Cp,function(e){var O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2,$V,gT,mx,jM,cx,tq,Px,S0,QH,pR,oq,ZS,Ou,uq,ZV,jO,V8,AC,Fk,tu,kq,Ni,YA,v6;return _.V(function(Xk){switch(Xk.nextAddress){case 1:if(!ceS(e.data))return _.hG(Error("$h")),Xk.return();O=_.PW(e.data,1);_.a("enable_iframe_message_get_type_via_fields")&&(E=e.data,O=J=_.PW(E,1));switch(O){case 8:if(e.data.hasMetadata()){var P6=l.sdkVersion,wf=P6.resolve;var w1=e.data.getMetadata();w1=_.BW(w1,
1);wf.call(P6,w1);clearTimeout(l.sdkVersionTimeoutId)}break;case 6:return Xk.jumpTo(2);case 16:if(!_.K2(e.data,ms6,14,o6))return Xk.return();z=_.hZ(e.data,ms6,14,o6);(Z=(M=l.callbacks).onGameFrameReceived)==null||Z.call(M,z);return Xk.return();case 17:if(!_.K2(e.data,Is1,15,o6))return Xk.return();(d=(u=l.callbacks).onGameAudioReceived)==null||d.call(u,_.hZ(e.data,Is1,15,o6));return Xk.return();case 1:if(P6=_.hZ(e.data,gJS,2,o6))switch(_.PW(P6,1)){case 1:l.callbacks.onFirstFrameReady();if(_.a("enable_network_request_logging_on_game_events")&&
_.p2(P6,JK,4)){ha(l,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Cu(P6,JK,4));break}ha(l,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(w1=(wf=l.callbacks).onGameReady)==null||w1.call(wf);if(_.a("enable_network_request_logging_on_game_events")&&_.p2(P6,JK,4)){ha(l,"MINI_APP_SDK_API_GAME_READY",_.Cu(P6,JK,4));break}ha(l,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.K2(P6,Xn,3,ik6))l.callbacks.onResourceLoaded(_.hZ(P6,Xn,3,ik6))}return Xk.return();case 3:return Xk.jumpTo(3);case 4:return Xk.jumpTo(4);
case 2:return Xk.jumpTo(5);case 9:return Xk.jumpTo(6);case 10:return l.callbacks.onClick(),Xk.return();case 5:return Xk.jumpTo(7);case 11:if(!_.K2(e.data,eK,9,o6))return Xk.return();g=_.hZ(e.data,eK,9,o6);(n=(w=l.callbacks).onBenchmarkingMessageReceived)==null||n.call(w,g);P6=e.reply;wf=MS(1);w1=zW(1);var KR=new eK;var CP=new Uint8Array(CjV(g,jU(g,bkC,6))|0);KR=ID(KR,5,bkC,_.sx(CP,!1));w1=_.Jz(w1,5,bS,KR);P6.call(e,Vu(wf,w1));return Xk.return();case 12:return Xk.jumpTo(8);case 13:return Xk.jumpTo(9);
case 15:if(!_.a("enable_open_yt_content"))return e.reply(Cux),Xk.return();if(!_.K2(e.data,kKq,12,o6))return e.reply(Vu(MS(1),zW(2))),Xk.return();P6=_.hZ(e.data,kKq,12,o6);k=_.BW(P6,1);l.callbacks.onOpenYTContent(k);e.reply(uGS);return Xk.return();case 14:return Xk.jumpTo(10);default:return Xk.return()}Xk.jumpTo(0);break;case 2:if(!_.K2(e.data,Zn,5,o6))return Xk.return();wf=e.data;P6=jU(wf,o6,5);wf=wf.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(P6=KJ(wf,wf[_.aq]|0,Zn,P6))||(P6=Zn[LP])||
(P6=new Zn,yH(P6.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),P6=Zn[LP]=P6);y=P6;P6=_.e$(y,O1,1,_.Oo());c=_.b(P6);f=c.next();case 12:if(f.done){Xk.jumpTo(14);break}P=f.value;h=new _.Hk;h.level=_.PW(P,2)===1?"WARNING":"ERROR";N=niL(P.getSource());return _.C(Xk,l.sdkVersion.promise,15);case 15:t={source:N,sdkVersion:Xk.yieldResult};_.ai(_.yK(P,6))!=null?(h.message=P.getMessage(),h.stack=_.BW(P,5),t.sdkErrorType=a5T(_.PW(P,6)),_.ai(_.yK(P,7))!=null&&(t.sdkApi=kXx(_.PW(P,7)))):h.stack=void 0;
D=r=void 0;(D=(r=l.callbacks).onError)==null||D.call(r,{loggingError:h,metadata:t});f=c.next();Xk.jumpTo(12);break;case 14:return Xk.return();case 3:return _.b1(Xk,16),P6=l.callbacks,wf=P6.onSave,w1=_.hZ(e.data,oJ0,4,o6),w1=_.BW(w1,1),_.C(Xk,wf.call(P6,w1),18);case 18:e.reply(uGS);_.Q2(Xk,17);break;case 16:return b2=_.u1(Xk),$V=SA,gT=b2,mx=l.callbacks,jM="MINI_APP_SDK_API_SAVE_DATA",_.C(Xk,l.sdkVersion.promise,19);case 19:$V(gT,mx,jM,Xk.yieldResult),e.reply(Cux);case 17:return _.C(Xk,ha(l,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return Xk.return();case 4:return _.b1(Xk,21),_.C(Xk,l.callbacks.onLoad(),23);case 23:cx=Xk.yieldResult;P6=e.reply;wf=MS(1);w1=zW(1);KR=new oJ0;KR=_.da(KR,1,cx);w1=_.Jz(w1,3,bS,KR);P6.call(e,Vu(wf,w1));_.Q2(Xk,22);break;case 21:return tq=_.u1(Xk),Px=SA,S0=tq,QH=l.callbacks,pR="MINI_APP_SDK_API_LOAD_DATA",_.C(Xk,l.sdkVersion.promise,24);case 24:Px(S0,QH,pR,Xk.yieldResult),e.reply(Cux);case 22:return _.C(Xk,ha(l,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Xk.return();case 5:_.b1(Xk,
26);l.callbacks.onSendHighScore(so(_.hZ(e.data,j9q,3,o6).getValue()));e.reply(Vu(MS(1),zW(1)));_.Q2(Xk,27);break;case 26:return oq=_.u1(Xk),ZS=SA,Ou=oq,uq=l.callbacks,ZV="MINI_APP_SDK_API_SEND_SCORE",_.C(Xk,l.sdkVersion.promise,28);case 28:ZS(Ou,uq,ZV,Xk.yieldResult),e.reply(Cux);case 27:return _.C(Xk,ha(l,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Xk.return();case 6:if(!_.K2(e.data,Hkq,8,o6)){Xk.jumpTo(30);break}P6=_.hZ(e.data,Hkq,8,o6);P6=_.PW(P6,1);return _.C(Xk,ha(l,kXx(P6)),30);case 30:return Xk.return();
case 7:return P6=e.reply,wf=MS(1),w1=zW(1),KR=l.callbacks.getLanguage(),w1=ID(w1,4,bS,Ph(KR)),P6.call(e,Vu(wf,w1)),_.C(Xk,ha(l,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Xk.return();case 8:if(!_.K2(e.data,KIS,10,o6))return Xk.return();jO=_.hZ(e.data,KIS,10,o6);V8=l.callbacks;AC=V8.onSdkPerformanceUpdate;return _.C(Xk,l.sdkVersion.promise,33);case 33:return AC.call(V8,jO,Xk.yieldResult),Xk.return();case 9:P6=e.data;wf=jU(P6,o6,11);if(_.Uu(_.yK(P6,wf))==null)return e.reply(Vu(MS(1),zW(2))),
Xk.return();Fk=Yh(e.data,11,o6);l.callbacks.onShareInviteCode(Fk);e.reply(uGS);return _.C(Xk,ha(l,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Xk.return();case 10:if(_.K2(e.data,uLq,13,o6)){Xk.jumpTo(35);break}return _.C(Xk,l.callbacks.onShowMiniAppAd(2),36);case 36:return tu=Xk.yieldResult,e.reply(Vu(MS(1),AeR(tu))),_.C(Xk,ha(l,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Xk.return();case 35:P6=_.hZ(e.data,uLq,13,o6);a:switch(_.PW(P6,1)){case 1:P6={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:P6={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:P6={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}kq=P6;Ni=kq.adType;YA=kq.sdkApi;P6=l.callbacks;wf=P6.onShowMiniAppAd;w1=_.hZ(e.data,uLq,13,o6);w1=_.BW(w1,2);return _.C(Xk,wf.call(P6,Ni,w1||void 0),38);case 38:return v6=Xk.yieldResult,e.reply(Vu(MS(1),AeR(v6))),_.C(Xk,ha(l,YA),39);case 39:return Xk.return()}})})};
var YK=function(l,e){_.V(function(O){l.channel.send(e);_.Cl(O)})},QP=function(l,e,O){this.callbacks=l;
var E=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;l=bJ8(e,(new URL(O.toString())).origin);this.gameSnacks=new X7x(l);this.gameSnacks.page.onReady(function(){E.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){E.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var J,z;(z=(J=E.callbacks).onGameReady)==null||z.call(J)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(J,z){try{E.callbacks.onSendHighScore(z)}catch(M){SA(M,E.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(J,z){var M;return _.V(function(Z){if(Z.nextAddress==1)return _.b1(Z,2),_.C(Z,E.callbacks.onSave(E.decoder.decode(z)),4);if(Z.nextAddress!=2)return _.Q2(Z,0);M=_.u1(Z);SA(M,E.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return Z.return()})});
this.gameSnacks.storage.onLoad(function(){var J,z;return _.V(function(M){if(M.nextAddress==1)return _.b1(M,2),_.C(M,E.callbacks.onLoad(),4);if(M.nextAddress!=2)return J=M.yieldResult,M.return(E.encoder.encode(J));z=_.u1(M);SA(z,E.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return M.return(E.encoder.encode(""))})});
this.gameSnacks.init()};
_.m(QP,U3);QP.prototype.onAudioToggled=function(l,e){U3.prototype.onAudioToggled.call(this,l,e===void 0?!0:e);var O;(O=this.gameSnacks)==null||O.audio.update(l)};
QP.prototype.onPause=function(){U3.prototype.onPause.call(this);var l;(l=this.gameSnacks)==null||l.game.pause()};
QP.prototype.onResume=function(){U3.prototype.onResume.call(this);var l;(l=this.gameSnacks)==null||l.game.resume()};var oF6=I5V,$VF=_.XO(function(l){var e=l.data;var O=l.loadingProgress;l=_.b(_.AF("",void 0,"LYYTdd"));var E=l.next().value,J=l.next().value;l=_.b(_.AF(!1,void 0,"K0waae"));var z=l.next().value,M=l.next().value,Z=[],u=function(){return"transform: scaleX("+(_.UB(O)||0)+")"},d=null,g=function(){var y;
return(y=e()&&d)!=null?y:d=e().showAnniversaryAnimation?6:oF6()};
_.Gh(function(){var y;if(e().timeOutMessages&&((y=e().timeOutMessages)==null?0:y.length)){d=null;y=_.b(Z);for(var c=y.next();!c.done;c=y.next())clearTimeout(c.value);Z.length=0;mnu(e().timeOutMessages,Z,J,M)}},"hrKvCe");
var w=function(){return!!e().persistentErrorMessageTitle},n=function(){return O!==void 0},k=function(){return e().title};
return _.W("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.W("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var y,c=(y=e().backgroundImage)==null?void 0:y.sources,f;return(c==null?0:c.length)?"background-image: url("+((f=c[0])==null?void 0:f.url)+")":
""}}),_.W("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.W(_.A,{cond:function(){return!w()},
then:function(){var y={};return _.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.W(_.k7,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+g()},
data:function(){var c="loading_animation_"+g();return{animationConfig:{name:c,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+c+".json",loop:!0,autoplay:!0}}}})),_.W("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.W(_.A,{cond:k,
then:function(){return _.W("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},k)}}),_.W("p",{class:_.ax("mini-app-splash-screen-view-model-wiz__timeout-message",(y["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return z()},y)),
"aria-live":"polite"},E),_.W(_.A,{cond:n,then:function(){return _.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.W("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:u}))}})))}}),_.W(_.A,{cond:w,
then:function(){return _.W("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.W("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return e().persistentErrorMessageTitle}),_.W(_.A,{cond:function(){return!!e().persistentErrorMessageDescription},
then:function(){return _.W("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return e().persistentErrorMessageDescription})}}))}})))},"Sd");var W5S=new _.Xa("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var dV1=JT;JT=function(l){function e(O){if(O){var E,J;(E=O.__spec)==null||(J=E.didUnmount)==null||J.call(E);for(E=0;E<O.childNodes.length;E++)e(O.childNodes[E])}}
dV1==null||dV1(l);st(function(){for(var O=0;O<l.length;O++)e(l[O])})};var gFS=_.XO(function(l){var e=l.data;var O=l.score;var E=l.formattedScore;var J=l.onScoreChanged;var z=l.isEmbeddedInWebview;var M=_.O0("yt-mini-app-score-button-view-model"),Z=function(){var k;return _.I(e==null?void 0:(k=e())==null?void 0:k.buttonViewModel,_.Hi)},u=function(){var k;
return(O==null?void 0:O())||Number(e==null?void 0:(k=e())==null?void 0:k.lastScore)||0},d=function(){var k;
return(E==null?void 0:E())||((k=Z())==null?void 0:k.title)||""},g,w=1;
if(l=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))l=Number(l),w=isNaN(l)?1:l/100;_.Gh(function(){J==null||J(u());var k;var y=_.t3((k=Z())==null?void 0:k.onTap);if(y){k=_.I(y,QTk);var c,f,P;k=_.I(k==null?void 0:(c=k.panelLoadingStrategy)==null?void 0:(f=c.inlineContent)==null?void 0:(P=f.dialogViewModel)==null?void 0:P.customContent,rr6)}else k=void 0;if(c=k)c.score=d()},"KZFi5e");
l=_.pd(function(){var k,y,c=e==null?void 0:(k=e())==null?void 0:(y=k.loggingDirectives)==null?void 0:y.trackingParams;c&&_.gn(_.V2().resolve(_.Hu),c);return!1});
_.sC(function(){if(M.value){var k=M.value.querySelector("button"),y=Z();k&&y&&y2g(k,y);bg("yt-share-playable-with-high-score",function(){var c=u().toString(),f=e==null?void 0:e().onShareHighScoreCommand,P=e==null?void 0:e().highScoreShareClientParamIdentifier,h=z==null?void 0:z();f&&(h?(P=new PIq,c=_.da(P,2,c),Ds(f,c.JSC$10309_serializeBinary())):P&&(_.V2().resolve(W5S).clientParams.set(P,{miniAppClientParams:{highScore:c}}),VhM(f,!1)))})}});
var n=function(){var k=Z();k&&(O==null?0:O())&&k.accessibilityText&&(k.accessibilityText=k.accessibilityText.replace(g,d()));g=d();return{numberValue:u(),numberText:d(),heightPx:36,fontSizeMultiplier:w,shouldAnimate:!(O==null||!O())&&!0}};
return _.W("yt-mini-app-score-button-view-model",{class:function(){var k={};return _.Ix("mini-app-score-button-view-model-wiz",(k["mini-app-score-button-view-model-wiz--is-visible"]=u()!==0,k))},
el:M,"on:click":l},OB(!1,function(){return _.W("span",{style:"display:none;"},u)}),_.W(_.Tn,{data:function(){var k;
return e==null?void 0:(k=e())==null?void 0:k.buttonViewModel}},{buttonViewModel:function(k){return _.W(_.hM,{data:k.data,
animatedTextProps:n})}}))},"Td");var atR=_.XO(function(l){var e,O=(e=_.gS("yt-mini-app-is-theater-mode-enabled"))!=null?e:!1,E=_.a("enable_playable_container_save_button"),J=_.a("enable_play_next_destination_page_in_toolbar");e={};return _.W("ytm-mini-app-top-bar-view-model",null,_.W("div",{class:_.ax("yt-mini-app-top-bar-view-model",(e["yt-mini-app-top-bar-view-model--mobile"]=!1,e["yt-mini-app-top-bar-view-model--desktop"]=!0,e))},_.W("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.W(_.A,{cond:function(){var z;
return!!l.data().backButtonEdu&&!((z=l.isExitMiniAppSeen)==null?0:z.call(l))},
then:function(){return _.W(_.Tn,{data:function(){return l.data().backButtonEdu}},{buttonViewModel:_.hM})},
else:function(){return _.W(_.Tn,{data:function(){return l.data().backButton}},{buttonViewModel:_.hM})}}),_.W(_.A,{cond:function(){return l.data().viewAllButton&&!0},
then:function(){return _.W(_.Tn,{data:function(){return l.data().viewAllButton}},{buttonViewModel:_.hM})}}),_.W(_.A,{cond:function(){return l.data().title&&!0},
then:function(){return _.W("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return l.data().title})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.W(_.A,{cond:function(){var z;
return(z=l.isDesktopPlayPage)==null?void 0:z.call(l)},
then:function(){return _.W(_.ZB,null,_.W(iK0,{highScoreButton:function(){return l.data().highScoreButton},
score:l.score,formattedScore:l.formattedScore,onScoreChanged:l.onScoreChanged,isEmbeddedInWebview:l.isEmbeddedInWebview}),_.W(wBq,{enableSaveButton:function(){return _.UB(E)},
saveButton:function(){return l.data().saveButton},
isSaved:l.isSaved,onSaveToggled:function(){return l.onSaveToggled}}),_.W(ANq,{menuButton:function(){return l.data().menuButton}}))},
else:function(){return _.W(_.A,{cond:function(){return!1},
then:function(){return _.W(_.Tn,{data:function(){return l.data().playPageButton}},{buttonViewModel:function(z){return _.W(_.hM,{data:z.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.W(iK0,{highScoreButton:function(){return l.data().highScoreButton},
score:l.score,formattedScore:l.formattedScore,onScoreChanged:l.onScoreChanged,isEmbeddedInWebview:l.isEmbeddedInWebview})}})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.W(_.Tn,{data:function(){return l.data().muteButton}},{toggleButtonViewModel:function(z){var M=z.data;
return _.W(_.sh,{data:function(){var Z,u;return Object.assign({},M(),{isToggled:(u=(Z=l.isAudioEnabled)==null?void 0:Z.call(l))!=null?u:!0})},
onToggle:l.onAudioToggled,useOutlinedIcon:!0})}}),_.W(_.Tn,{data:function(){return l.data().theatreModeButton}},{toggleButtonViewModel:function(z){var M=z.data;
return _.W("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.W(_.sh,{data:function(){return Object.assign({},M(),{isToggled:O})},
useOutlinedIcon:!0}))}}),_.W(nF1,{fullscreenButton:function(){return l.data().fullscreenButton}}),_.W(_.A,{cond:function(){return _.UB(J)&&l.data().viewAllButton&&!1},
then:function(){return _.W(_.Tn,{data:function(){return l.data().viewAllButton}},{buttonViewModel:_.hM})}}),_.W(_.A,{cond:function(){var z;
return!((z=l.isDesktopPlayPage)==null?0:z.call(l))},
then:function(){return _.W(_.ZB,null,_.W(wBq,{enableSaveButton:function(){return _.UB(E)},
saveButton:function(){return l.data().saveButton},
isSaved:l.isSaved,onSaveToggled:function(){return l.onSaveToggled}}),_.W(ANq,{menuButton:function(){return l.data().menuButton}}))}}))))},"Ud");
atR.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var ANq=_.XO(function(l){return _.W(_.Tn,{data:l.menuButton},{buttonViewModel:_.hM})},"Vd"),wBq=_.XO(function(l){var e=l.enableSaveButton;
var O=l.saveButton;var E=l.isSaved;var J=l.onSaveToggled;return _.W(_.A,{cond:function(){return e()&&!(O==null||!O())},
then:function(){return _.W(_.Tn,{data:function(){var z=_.I(O==null?void 0:O(),_.ci),M;return{toggleButtonViewModel:Object.assign({},z,{isToggled:(M=E==null?void 0:E())!=null?M:!(z==null||!z.isToggled)})}}},{toggleButtonViewModel:function(z){return _.W(_.sh,{data:z.data,
onToggle:J})}})}})},"Wd"),iK0=_.XO(function(l){var e=l.highScoreButton;
var O=l.score;var E=l.formattedScore;var J=l.onScoreChanged;var z=l.isEmbeddedInWebview;return _.W(_.Tn,{data:e},{miniAppScoreButtonViewModel:function(M){return _.W(gFS,{data:M.data,score:O,formattedScore:E,onScoreChanged:J,isEmbeddedInWebview:z})}})},"Xd"),nF1=_.XO(function(l){l=l.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.W(_.ZB,null):_.W(_.Tn,{data:l},{buttonViewModel:_.hM})},"Yd");_.keq=new _.Xa("DESKTOP_CURRENT_PAGE");var jA1=_.XO(function(l){var e=l.data;var O=_.a("force_active_time_logging_webview"),E=!1,J=new SEx,z=void 0,M=void 0,Z=_.V2().resolve(DFq),u=new qEq,d=void 0,g=void 0,w=[],n=void 0,k=void 0,y=!1,c=!1,f=!1,P=!1,h=new _.d8,N=_.V2().resolve(W5S),t=_.V2().resolve(_.T6),r=_.V2().resolve(_.MG(iF)),D,b2=(D=_.V2().resolve(_.MG(_.keq)))==null?void 0:D.getCurrentPage(),$V=!1,gT=0,mx=function(LL){LL.preventDefault();return LL.returnValue=""},jM;
l=_.b(_.AF(!((jM=_.gS("yt-mini-app-is-audio-enabled"))!=null&&!jM),void 0,"uFSsEd"));var cx=l.next().value,tq=l.next().value,Px;jM=_.b(_.AF(!((Px=_.gS("exit-mini-app-seen-state"))==null||!Px),void 0,"CVZNXc"));var S0=jM.next().value,QH=jM.next().value;Px=_.b(_.AF(!1,void 0,"N46A8c"));var pR=Px.next().value,oq=Px.next().value;Px=_.b(_.AF(void 0,void 0,"qhL0Nd"));var ZS=Px.next().value,Ou=Px.next().value;Px=_.b(_.AF(void 0,void 0,"oOXpte"));var uq=Px.next().value,ZV=Px.next().value;Px=_.b(_.AF(!0,void 0,
"u4kGne"));var jO=Px.next().value,V8=Px.next().value;Px=_.b(_.AF(!1,void 0,"HoQxGc"));var AC=Px.next().value,Fk=Px.next().value;Px=_.b(_.AF(void 0,void 0,"lWcQie"));var tu=Px.next().value,kq=Px.next().value;Px=_.b(_.AF(0,void 0,"yw8Rmf"));var Ni=Px.next().value,YA=Px.next().value,v6=_.e4("mini-app-container-view-model"),Xk=function(){return e().isEmbeddedInWebview},P6=function(){return e().hasPlayNextShelf};
bg("yt-page-type-changed",function(LL){if(_.a("enable_is_mini_app_page_active_bugfix"))LL.detail.newPageSubtype==="mini_app"&&LL.detail.newPageType==="ytd-browse"||!jO()||KR();else if(LL=_.CDT()==="mini_app",LL!==jO())if(V8(LL),LL){var Mo;LL=(Mo=e().playableId)==null?void 0:Mo.toString();LL!==void 0&&window.location.href.includes(LL)&&!c&&(P=!0,wf(),uk(W6.value))}else LL||KR()});
bg("yt-action",function(LL){LL.detail.actionName==="yt-engagement-panel-visible-changed"&&LL.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&LL.detail.args[2]==="PAmini_app_panel"&&KR();_.a("enable_is_mini_app_page_active_bugfix")?LL.detail.actionName==="yt-history-load"&&!jO()&&(b2==null?0:b2.active)?(V8(!0),wf(),uk(W6.value)):LL.detail.actionName==="yt-history-load"&&jO()&&!e().isEmbeddedInWebview&&wp():jO()&&LL.detail.actionName==="yt-history-load"&&(P?P=!1:e().isEmbeddedInWebview||wp())});
_.B3(function(){w1()});
_.Gh(function(){wf()},"IGuu2e");
var wf=function(){var LL=e().playableId,Mo=e().localReleaseId,Bh=e().derivedDeviceInterface;if(c)_.hG(new _.Hk("[MiniAppContainerViewModel] onEnter was called more than once"));else{c=!0;z=new Fvq(LL,Mo,Bh,document.visibilityState==="visible");s01(z);M=new EFS(LL);Iti(Z,LL);vsH(u,{showMiniAppAdCommand:e().showMiniAppAdCommand,isEmbeddedInWebview:e().isEmbeddedInWebview,playLogger:z});nvV()&&(k=document.body.style.backgroundColor,_.YM(document.body,"background-color","black"));Al();iq();h=new _.d8;
if(e().isEmbeddedInWebview){if(LL=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Ri0(z,LL),$V=!0;J.initialize({onAudioStateLoaded:function(KP){bz(KP)},
onMuteMiniApp:function(){bz(!1)},
onUnmuteMiniApp:function(){bz(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(KP){$V||(Ri0(z,KP),$V=!0)},
confirmExitMiniApp:function(){var KP,xe,Iz;return _.V(function(CJ){if(CJ.nextAddress==1)return e().confirmExitMiniAppCommand?_.C(CJ,Promise.race([h.promise,Promise.resolve(!1)]),2):CJ.return();(KP=CJ.yieldResult)?!e().confirmExitMiniAppCommandEdu||(Iz=(xe=S0)==null?void 0:xe())!=null&&Iz?AD(e().confirmExitMiniAppCommand):(AD(e().confirmExitMiniAppCommandEdu),_.dS("exit-mini-app-seen-state","true",2592E6)):AD(e().closeMiniAppCommand);_.Cl(CJ)})},
onNativeBenchmarkingMessageReceived:function(KP){KP=VA1(_.b7A(KP));if(_.K2(KP,_.r$,3,zHC)){var xe=_.hZ(KP,_.r$,3,zHC),Iz=ZsT();var CJ=so(Iz.getSeconds())-so(xe.getSeconds());xe=_.Eo(Iz,2)-_.Eo(xe,2);CJ<0&&xe>0?(CJ+=1,xe-=1E9):CJ>0&&xe<0&&(--CJ,xe+=1E9);CJ=(new xM).setSeconds(CJ);CJ=_.mb(CJ,2,_.k4(xe),0);_.EN(KP,1,CJ)}var cn;(cn=g)==null||cn.returnNativeBenchmarkingMessage(KP)},
multiplayer3pAckStateLoaded:function(KP){wp(KP)},
exitMiniAppSeenStateLoaded:function(KP){e().confirmExitMiniAppCommandEdu&&QH(KP)},
onNavigateToNewMiniApp:function(){AD(e().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(KP){KP=new URLSearchParams(KP);var xe=void 0;KP.has("invite_code")&&(xe=new dsH,KP=KP.get("invite_code"),xe=_.da(xe,1,KP));if(KP=xe){var Iz;(Iz=g)==null||Iz.sendGameData(KP)}},
onPauseMiniApp:function(){E=!0;CP()},
onResumeMiniApp:function(){E=!0;z1()},
onAdFinished:function(KP){u.onAdFinished(KP)}});
e().showMultiplayer3pConsentDialogCommand||h.resolve(!0);AD(e().onContainerReadyCommand)}else Ri0(z),h.resolve(!0);JNq(M,f6k(z));f6k(z).then(function(KP){KP={miniAppPlayData:{postPlayNonce:KP}};var xe,Iz=(xe=e().loggingDirectives)==null?void 0:xe.trackingParams;Iz&&_.yN().stateChanged(Iz,KP)});
LL=e().showSignInDialogCommand;!oi2()&&LL&&(_.dS("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),AD(LL));e().confirmExitMiniAppCommand&&r&&(LL=bsL(e().confirmExitMiniAppCommand))&&(r.customConfirmationCommand=LL)}},w1=function(){k&&_.YM(document.body,"background-color",k);
y=!1;n&&n.release();M.flush().catch(function(LL){_.hG(LL)});
Z.flush().catch(function(LL){_.hG(LL)});
ByC(z);Tu();g=void 0;mV1(N)},KR=function(){V8(!1);
w1();oq(!1);kq(void 0);Ou(void 0);ZV(void 0);gT=0;YA(0);c=!1},CP=function(){var LL;
(LL=g)==null||LL.onPause();n&&n.release();M.flush().catch(function(Mo){_.hG(Mo)});
Z.flush().catch(function(Mo){_.hG(Mo)});
Gcq(z)},z1=function(){var LL;
(LL=g)==null||LL.onResume();iq();LL=z;LL.isForeground=!0;G6(LL,"PLAY_EVENT_TYPE_PLAY_RESUME")},bz=function(LL){var Mo;
(Mo=g)==null||Mo.onAudioToggled(LL);tq(LL)},wp=function(LL){e().showMultiplayer3pConsentDialogCommand&&(e().isEmbeddedInWebview&&LL!==void 0&&h.resolve(LL),!LL&&_.CDT()==="mini_app"&&AD(e().showMultiplayer3pConsentDialogCommand))},ti=function(){var LL,Mo,Bh,KP;
return _.V(function(xe){if(xe.nextAddress==1){!e().isLivestream||e().disableVideoCapture||(LL=g)!=null&&LL.sendStartGameFrameCapture();Mo=(new URL(window.location.href)).searchParams;if(Mo.has("invite_code")){var Iz=new dsH,CJ=Mo.get("invite_code");Bh=_.da(Iz,1,CJ);(KP=g)==null||KP.sendGameData(Bh)}pR()||(oq(!0),Iz=z,Iz.state!==1?_.hG(new _.Hk("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+H5q[Iz.state])):(_.$6("mini_app_ids_without_game_ready").includes(Iz.JSC$14774_miniAppId)&&(Iz.gameReady=
!0),Iz.state=2,Iz.beforeReady=!1,s3(Iz,"ma_ffr"),G6(Iz,"PLAY_EVENT_TYPE_PLAY_READY")));return _.C(xe,h.promise,2)}AD(e().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();e().isEmbeddedInWebview||wp();_.Cl(xe)})},Yq=function(){var LL=z;
LL.gameReady=!0;s3(LL,"ma_gr")},mH=function(LL){var Mo;
return _.V(function(Bh){if(Bh.nextAddress==1)return _.b1(Bh,2),_.C(Bh,z3R(M,LL),4);if(Bh.nextAddress!=2)return _.Q2(Bh,0);Mo=_.u1(Bh);AD(e().showSavingErrorPopupCommand);throw Mo;})},QC=function(){var LL,Mo;
return _.V(function(Bh){if(Bh.nextAddress==1)return _.b1(Bh,2),_.C(Bh,XBx(M),4);if(Bh.nextAddress!=2)return LL=Bh.yieldResult,Bh.return(LL);Mo=_.u1(Bh);AD(e().showLoadingErrorDialogCommand);throw Mo;})},Ap=function(LL){z.logError(LL)},V5=function(LL,Mo,Bh){UFk(z,LL,Mo,Bh)},Tq=function(LL,Mo){hi1(z,LL,Mo)},lt=function(){!O&&e().isEmbeddedInWebview||_.Zb();
PWS(z,!0);y||(window.addEventListener("beforeunload",mx,{capture:!0}),y=!0)},pH=function(LL){var Mo,Bh,KP,xe,Iz,CJ,cn;
return _.V(function(Fi){if(Fi.nextAddress==1)return Z&&(!d||d<LL)&&LL>0?_.C(Fi,yN0(Z,LL),3):Fi.jumpTo(0);Mo=Fi.yieldResult;Bh=_.b(Mo);KP=Bh.next().value;xe=Bh.next().value;Iz=KP;CJ=xe;((cn=Iz)==null?0:cn.displayString)&&CJ&&(Ou(CJ),ZV(Iz.displayString));_.Cl(Fi)})},RH=function(LL){var Mo=e().onBenchmarkingMessageReceivedCommand;
if(Mo){var Bh=ZsT();_.Jz(LL,3,zHC,Bh);Ds(Mo,ZkS(LL))}},Mr=function(LL){var Mo=e().onGameFrameReceivedCommand;
if(Mo){var Bh=new s1;var KP=new h9q;var xe=s9(LL,1);KP=_.cm(KP,1,xe);LL=_.BW(LL,2);LL=_.da(KP,2,LL);Bh=_.EN(Bh,2,LL);Ds(Mo,NYq(Bh))}},ad=function(LL){var Mo=e().onGameAudioDataReceivedCommand;
if(Mo){var Bh=new s1;var KP=new taq;LL=_.BW(LL,1);KP=_.da(KP,1,LL);Bh=_.EN(Bh,4,KP);Ds(Mo,NYq(Bh))}},Tg=function(){var LL=new URLSearchParams(window.location.search);
if(e().isEmbeddedInWebview&&LL&&LL.get("override_hl")==="true"&&LL.get("hl"))return LL.get("hl");LL=document.documentElement.lang;return LL!==""?LL:_.qu},YV=function(LL){var Mo=e().onShareInviteCodeCommand;
if(Mo)if(e().isEmbeddedInWebview){var Bh=new PIq;LL=_.da(Bh,1,LL);Ds(Mo,Ylx(LL))}else Bh=e().inviteCodeShareClientParamIdentifier,N.clientParams.set(Bh,{miniAppClientParams:{inviteCode:LL}}),AD(Mo)},d1=function(LL){var Mo,Bh,KP;
return _.V(function(xe){if(xe.nextAddress==1)return Mo=e().onMiniAppOpenYtContentRequested,Z&&_.a("enable_open_yt_content")&&Mo?_.C(xe,pBq(Z,LL),3):xe.jumpTo(0);Bh=xe.yieldResult;if(Bh==="OK")if(e().isEmbeddedInWebview){var Iz=new BYi;KP=ID(Iz,2,TW,Ph(LL));Ds(Mo,Y8q(KP))}else t.clientData.set("video_id",LL),AD(Mo);_.Cl(xe)})},z0=function(LL){gT+=_.Eo(LL,3);
LL=Math.min(Math.log(1+gT/15E6*9)/Math.log(10),.99);YA(LL);Hv(LL)},Hv=_.yl(function(LL){var Mo=e().updateLoadingProgressCommand;
if(Mo){var Bh=new BYi;LL=ID(Bh,3,TW,_.ZO(LL));Ds(Mo,Y8q(LL))}},100),oi=function(LL){return ryq(u,LL)},iq=function(){var LL,Mo;
((LL=_.srV())==null?void 0:(Mo=LL.wakeLock)==null?void 0:Mo.request)!=null&&_.srV().wakeLock.request("screen").then(function(Bh){n=Bh}).catch(function(){})},W6=_.e4("iframe");
_.Gh(function(){e().isSupportedCountry&&(oi2()||_.a("enable_sign_in_promo")||!e().showSignInDialogCommand?uk(W6.value):AD(e().onMiniAppReadyCommand))},"B7Lcnd");
var Au=function(){return _.W("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return pR()?0:-1},
el:W6})},uk=function(LL,Mo){Mo=Mo===void 0?!1:Mo;
var Bh=zS();Bh&&(Mo||Bh.toString()!==LL.getAttribute("src"))&&(g=A2T(e().source,{isAudioEnabled:cx,onFirstFrameReady:ti,onGameReady:Yq,onSave:mH,onLoad:QC,onError:Ap,onSdkCalled:V5,onSdkPerformanceUpdate:Tq,onClick:lt,onSendHighScore:pH,onBenchmarkingMessageReceived:RH,getLanguage:Tg,onShareInviteCode:YV,onResourceLoaded:z0,onOpenYTContent:d1,onShowMiniAppAd:oi,onGameFrameReceived:Mr,onGameAudioReceived:ad},LL,Bh),jb(LL,"load",function(){s3(z,"ma_il");jb(LL,"load",function(){uk(LL,!0)})}),_.H2(LL,
Bh))},zS=function(){var LL=e().url;
if(LL&&(LL=_.YP(LL),LL!==null)){if(e().source&&e().source==="MINI_APP_SOURCE_GAMESNACKS")LL=_.EP(LL,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.a("enable_origin_query_parameter_bugfix")){var Mo=_.sU(_.J9g(LL.toString()));Mo=new URLSearchParams(Mo||"");Mo.set("origin",window.location.origin);Mo=Mo.toString();LL=_.Z9(LL).toString();LL=_.VS(Kx0.exec(LL)[0]+(Mo.trim()?"#"+Mo:""))}return LL}},gG=function(){var LL={};
LL=_.ax("yt-mini-app-container-view-model__loading-screen",(LL["yt-mini-app-container-view-model__loading-screen--fade-out"]=pR,LL));var Mo=function(){return pR()?1:Ni()};
return _.W("div",{class:LL},_.W(_.Tn,{data:function(){return e().splashScreen}},{miniAppSplashScreenViewModel:function(Bh){return _.W($VF,{data:Bh.data,
loadingProgress:Mo})}}))},Al=function(){w=[];
w.push(_.f4(window,"visibilitychange",function(){f||E&&Xk()||(document.visibilityState==="visible"?z1():CP())}));
w.push(_.f4(window,"pagehide",function(){w1()}));
w.push(_.f4(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&v6.value.dispatchEvent(new Event("tap"))},0)}));
w.push(_.f4(v6.value,"pointerdown",function(){PWS(z,!1)},!0));
w.push(_.f4(v6.value,"pause",function(){f=!0;CP()}));
w.push(_.f4(v6.value,"play",function(){f=!1;z1()}));
w.push(_.f4(v6.value,"exit",function(){w1()}));
var LL=navigator.keyboard,Mo=LL&&LL.lock;w.push(_.f4(window,HzC,function(){Fk(Flq());Flq()?(e().hasPlayNextShelf&&p1("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vk("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Mo&&LL.lock(["Escape"])):(e().hasPlayNextShelf&&vk("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),p1("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Mo&&LL.unlock())}));
e().showMultiplayer3pConsentDialogCommand&&w.push(_.f4(window,"yt-playables-ack-3p-data-usage",function(){K50(Z)}));
e().confirmExitMiniAppCommandEdu&&w.push(_.f4(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.dS("exit-mini-app-seen-state","true",2592E6)}));
e().onGameAudioDataReceivedCommand&&w.push(_.f4(window,"message",function(Bh){Bh=Bh.event_;var KP=W6.value.src;if(KP&&Bh.origin===(new URL(KP)).origin&&Bh.data&&Bh.data.type==="GAME_AUDIO"&&Bh.data.audio&&Bh.data.audio.length>0){var xe=new FileReader;xe.onload=function(){var Iz=new s1;var CJ=new taq;CJ=_.da(CJ,1,xe.result);Iz=_.EN(Iz,4,CJ);Ds(e().onGameAudioDataReceivedCommand,NYq(Iz))};
xe.readAsDataURL(new Blob([Bh.data.audio]))}}))},Tu=function(){w.forEach(function(LL){Hf(LL)});
window.removeEventListener("beforeunload",mx,{capture:!0})},AD=function(LL){LL&&VhM(LL,e().isEmbeddedInWebview||!1)},vk=function(LL,Mo){LL=_.b(v6.value.getElementsByClassName(LL));
for(var Bh=LL.next();!Bh.done;Bh=LL.next())Bh.value.classList.add(Mo)},p1=function(LL,Mo){LL=_.b(v6.value.getElementsByClassName(LL));
for(var Bh=LL.next();!Bh.done;Bh=LL.next())Bh.value.classList.remove(Mo)};
return function(){var LL={};LL=_.ax("yt-mini-app-container-view-model",(LL["yt-mini-app-container-view-model--desktop"]=!0,LL["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},LL["yt-mini-app-container-view-model--ios-web-view"]=nvV(),LL["yt-mini-app-container-view-model--no-top-bar"]=function(){return!e().topBar},LL["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return e().hasPlayNextShelf},LL["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return e().hasPlayNextShelf},LL["yt-mini-app-container-view-model--show-peek-below"]=function(){return!AC()&&e().hasPlayNextShelf},LL));
var Mo={};Mo=_.ax("yt-mini-app-container-view-model__content",(Mo["yt-mini-app-container-view-model__content--desktop-content"]=!0,Mo["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Mo["yt-mini-app-container-view-model--desktop-play-page"]=function(){return e().hasPlayNextShelf},Mo));
return _.W("mini-app-container-view-model",{el:v6},_.W("div",{class:LL},_.W(_.A,{cond:function(){return e().topBar&&!AC()},
then:function(){return _.W(_.Tn,{data:function(){return e().topBar}},{miniAppTopBarViewModel:function(Bh){return _.W(atR,{data:Bh.data,
isAudioEnabled:cx,onAudioToggled:function(KP){bz(KP)},
score:ZS,formattedScore:uq,onScoreChanged:function(KP){d=KP},
isEmbeddedInWebview:Xk,isSaved:tu,onSaveToggled:function(KP){kq(KP)},
isExitMiniAppSeen:S0,isDesktopPlayPage:P6})}})}}),_.W("div",{class:Mo},_.W(_.A,{cond:jO,
then:function(){return Au()}}),_.W(_.A,{cond:function(){return!e().isEmbeddedInWebview},
then:function(){return gG()}}))))}()},"Zd");
jA1.idomCompat=!0;_.Zw(jA1,"mini-app-container-view-model",{props:{data:_.lB}});var HKC=_.XO(function(l){var e=l.data;return _.W("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.W("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.pd(function(){var O=e().onTap;O&&_.r6(O)})},_.W(_.A,{cond:function(){return e().icon},
then:function(O){return _.W(_.cF,{icon:function(){return O().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.W("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return e().title})))},"$d");
HKC.idomCompat=!0;var cNS=_.XO(function(l){var e=_.e4("div"),O=_.b(_.AF(void 0,void 0,"kFCJ0c")),E=O.next().value,J=O.next().value;O=_.b(_.AF(void 0,void 0,"PIPgWd"));var z=O.next().value,M=O.next().value;O=_.b(_.AF(void 0,void 0,"rV66ob"));var Z=O.next().value,u=O.next().value,d=function(){var P=E();return P!==void 0?Math.abs(P):void 0},g=function(){var P=d();
return P===void 0||P<=3},w=function(){var P=d();
var h=z(),N=Z();P=P!==void 0&&h!==void 0&&N!==void 0?h-N-P:void 0;return P===void 0||P<=3},n=function(P){e.value&&e.value.scrollBy({top:0,
left:(_.hT("HTML_DIR")==="rtl"?-1:1)*P*e.value.clientWidth,behavior:"smooth"})},k=function(){var P;
J((P=e.value)==null?void 0:P.scrollLeft);var h;M((h=e.value)==null?void 0:h.scrollWidth);var N;u((N=e.value)==null?void 0:N.clientWidth)},y=function(){n(-.5)},c=function(){n(.5)};
O=_.pd(function(){k()});
_.RU(function(){k();if(e.value){var P=new ResizeObserver(k);P.observe(e.value);_.B3(function(){P.disconnect()})}});
var f={};return _.W("yt-sponsorships-scrollable-shelf",{class:_.ax("ytdSponsorshipsScrollableShelfHost",l.className)},_.W("div",{class:_.ax("ytdSponsorshipsScrollableShelfContent",(f.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return l.data().previousButton&&l.data().nextButton&&!g()&&!w()},f.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return l.data().previousButton&&!g()&&w()},f.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return l.data().nextButton&&
g()&&!w()},f)),
el:e,"on:scroll":O},l.children),_.W(_.A,{cond:function(){return!g()},
then:function(){return _.W(_.Tn,{data:function(){return l.data().previousButton}},{buttonViewModel:function(P){return _.W(_.hM,{data:P.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:y})}})}}),_.W(_.A,{cond:function(){return!w()},
then:function(){return _.W(_.Tn,{data:function(){return l.data().nextButton}},{buttonViewModel:function(P){return _.W(_.hM,{data:P.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:c})}})}}))},"ae");
cNS.idomCompat=!0;var ft6=_.XO(function(l){var e=l.data;l={};return _.W("yt-sponsorships-hub",{class:_.ax("ytdSponsorshipsHubHost",(l.ytdSponsorshipsHubHostIndented=function(){return e().indented},l))},_.W("div",{class:"ytdSponsorshipsHubHeader"},_.W("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.W("div",{class:"ytdSponsorshipsHubAvatar"},_.W(_.Tn,{data:function(){return e().avatar}},{avatarViewModel:_.Hp})),_.W(_.A,{cond:function(){return e().badgeImage},
then:function(O){return _.W("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.W("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.W("div",{class:"ytdSponsorshipsHubBadge"},_.W(_.Jm,{data:O,targetWidth:24,targetHeight:24,alt:""}))))}})),_.W("div",{class:"ytdSponsorshipsHubDetails"},_.W("div",{class:"ytdSponsorshipsHubTierName"},function(){return e().tierName}),_.W("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return e().membershipType}),_.W("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return e().membershipDurationOrExpiry})),_.W("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.W(_.Tn,{data:function(){return e().manageButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.W(_.Tn,{data:function(){return e().actionMenuButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.W("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return e().perksTitle}),_.W(cNS,{data:function(){return{previousButton:e().previousPerkButton,
nextButton:e().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.W("div",{class:"ytdSponsorshipsHubPerkCards"},_.W(_.Tn,{data:function(){return e().perkCards}},{sponsorshipsHubPerkCardViewModel:HKC}),_.W(_.A,{cond:function(){return e().viewAllPerksButton},
then:function(O){return _.W(F5C,{data:O})}}))))},"be");
ft6.idomCompat=!0;var F5C=_.XO(function(l){var e=l.data;return _.W("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.W(_.Tn,{data:function(){return e().button}},{buttonViewModel:_.hM}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.W("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return e().title}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return e().subtitle})))},"ce");
F5C.idomCompat=!0;_.Zw(ft6,"yt-sponsorships-hub",{props:{data:_.lB}});_.R3S=_.XO(function(l){var e=l.data;return _.W("yt-dual-avatar-view-model",{class:_.ax("ytDualAvatarViewModelHost",l.className),style:_.HF({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var O;return((O=e().badgeCutoutRadius)!=null?O:14)+"px"}})},_.W("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.W(_.Tn,{data:function(){return e().startAvatar}},{avatarViewModel:_.Hp}),_.W(_.Tn,{data:function(){return e().endAvatar}},{avatarViewModel:_.Hp})),_.W(_.Tn,{data:function(){return e().badge}},
{contentPreviewImageViewModel:function(O){return _.W("div",{class:"ytDualAvatarViewModelBadge"},_.W(_.VD,{data:O.data}))}}))},"de");
_.R3S.idomCompat=!0;var sAS=_.XO(function(l){var e=l.data;var O,E=!((O=_.V2().resolve(_.MG(_.lp)))==null||!O());l=_.mF(function(){var g,w,n=E?(g=e().header)==null?void 0:g.backgroundColorDarkMode:(w=e().header)==null?void 0:w.backgroundColorLightMode;if(n!==void 0)return _.qv(n)},void 0,"UX2G6c");
O=_.mF(function(){var g,w;return E?(g=e().header)==null?void 0:g.backgroundImagePart1Dark:(w=e().header)==null?void 0:w.backgroundImagePart1Light},void 0,"GPAi1d");
var J=_.mF(function(){var g,w;return E?(g=e().header)==null?void 0:g.backgroundImagePart2Dark:(w=e().header)==null?void 0:w.backgroundImagePart2Light},void 0,"nboJld"),z=_.mF(function(){return _.hT("HTML_DIR")==="rtl"},void 0,"LGJceb"),M=_.e4("yt-sponsorships-perks-list"),Z=!1,u=function(){var g=M.value;
if(g&&!Z){var w,n=(w=g.parentElement)==null?void 0:w.parentElement;if(n)for(g=g.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),w=0;w<g.length;++w){var k=g[w];if(k instanceof HTMLElement){n.scrollTo({top:k.offsetTop+k.clientHeight/2-n.clientHeight/2,behavior:"smooth"});Z=!0;break}}}};
_.sC(function(){var g=M.value;if(g){var w=new ResizeObserver(u);w.observe(g);_.B3(function(){w.disconnect()})}});
var d={};return _.W("yt-sponsorships-perks-list",{el:M,class:_.ax("ytdSponsorshipsPerksListHost",(d.ytdSponsorshipsPerksListHorizontalPadding=function(){return e().horizontalPaddingEnabled},d))},_.W("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.W("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.HF({"background-color":l})},_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.W(_.A,{cond:O,then:function(g){var w={};return _.W("div",{class:_.ax((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=E,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!E,w.ytdSponsorshipsPerksListFlipped=z,w))},_.W(_.Jm,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.W(_.A,{cond:J,
then:function(g){var w={};return _.W("div",{class:_.ax((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=E,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!E,w.ytdSponsorshipsPerksListFlipped=z,w))},_.W(_.Jm,{data:g,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.W(_.Tn,{data:function(){var g;
return(g=e().header)==null?void 0:g.dualAvatar}},{dualAvatarViewModel:_.R3S})))),_.W("div",{class:"ytdSponsorshipsPerksListBody"},_.W("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return e().title}),_.W(_.A,{cond:function(){return e().perks},
then:function(g){return _.W(_.KH,{each:g},function(w,n){var k={};return _.W("div",{class:_.ax("ytdSponsorshipsPerksListPerkContainer",(k.ytdSponsorshipsPerksListSelectedPerk=function(){var y=n(),c=e().selectedPerkIndex;return y===c},k))},_.W(_.A,{cond:function(){return n()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.W(_.A,{cond:function(){return w.icon},
then:function(y){return _.W(_.cF,{icon:function(){return y().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.W("div",{class:"ytdSponsorshipsPerksListPerkTitle"},w.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.W(_.zK,{text:w.description})),_.W(_.A,{cond:function(){return w.instructions},
then:function(){var y,c;return _.W("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(y=w.instructions)==null?void 0:y.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.W(_.zK,{text:(c=w.instructions)==null?void 0:c.text})))}}))),_.W(_.A,{cond:function(){return w.emoji},
then:function(y){return _.W("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.W(_.KH,{each:function(){return y()}},function(c){return _.W(_.Jm,{data:c,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.W(TMq,{data:w}))})}})))},"ee");
sAS.idomCompat=!0;var TMq=_.XO(function(l){var e=l.data;var O=function(M,Z){return M===Z},E=function(){var M=e();
M=_.I(M==null?void 0:M.badgesShelf,qlk);return M!==void 0&&M!==null?M:{previousButton:{},nextButton:{}}},J=_.O0("div"),z=function(){var M=J.value;
if(M){var Z=M.parentElement;if(Z){M=M.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var u=0;u<M.length;++u){var d=M[u];if(d instanceof HTMLElement){Z.scrollTo({left:d.offsetLeft+d.clientWidth/2-Z.clientWidth/2,behavior:"instant"});break}}}}};
_.sC(function(){var M=J.value;if(M){var Z=new ResizeObserver(z);Z.observe(M);_.B3(function(){Z.disconnect()})}});
return _.W("div",null,_.W(_.A,{cond:function(){return e().badges},
then:function(M){return _.W(cNS,{data:E},_.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:J},_.W(_.KH,{each:function(){return M()}},function(Z,u){var d={},g={},w={};
return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.W(_.A,{cond:function(){return u()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.W("div",{class:_.ax("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return O(u(),e().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!O(u(),e().currentBadgeIndex)},d))},_.W("div",{class:_.ax("ytdSponsorshipsPerksListLoyaltyBadge",(g.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return O(u(),
e().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!O(u(),e().currentBadgeIndex)},g))},_.W(_.A,{cond:function(){return Z.image},
then:function(n){var k={};return _.W("div",{class:_.ax((k.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return O(u(),e().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!O(u(),e().currentBadgeIndex)},k))},_.W(_.Jm,{data:n,
alt:""}))}})),_.W("div",{class:_.ax("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return O(u(),e().currentBadgeIndex)},w))},Z.title)))})))}}))},"fe");
TMq.idomCompat=!0;_.Zw(sAS,"yt-sponsorships-perks-list",{props:{data:_.lB}});_.Zw(_.XO(function(l){return _.W("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.W(_.A,{cond:function(){return l.data().image},
then:function(e){return _.W(_.Jm,{className:"ytwFantasyEmptyStateViewModelImage",data:e,ariaHidden:!0,alt:""})}}),_.W(_.zK,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return l.data().title}}),_.W(_.zK,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return l.data().subtitle}}),_.W(_.Tn,{data:function(){return l.data().primaryButton}},{buttonViewModel:function(e){return _.W(_.hM,{data:e.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.lB}});var Geq;var pM2=_.jp({buttonRenderer:_.vp});_.Z8(KNL);_.ip(KNL,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var LE=function(){var l=_.B.apply(this,arguments)||this;l.hideJoinButtonBeforeSubscribed=_.a("hide_join_button_before_subscribed");l.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return l};
_.m(LE,_.B);_.X=LE.prototype;_.X.hasShowDialogCommand=function(l){return!!_.I(l,QTk)};
_.X.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"}}}};
_.X.updateJoinButtonOverrides=function(){var l,e;(l=_.ud(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(e=l.polymerController)==null||e.set("overrides",this.joinButtonOverrides);if(l=_.ud(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))l.overrides=this.joinButtonOverrides};
_.X.handleButtonRefreshAction=function(l){if(l=_.I(l,gxR))this.set("data.membershipButton",l.membershipButton),this.notifyPath("data.membershipButton")};
_.X.onYtServiceRequestError=function(l){_.Zs(this.hostElement,l.detail.error.message)};
_.X.onTap=function(){var l;(l=this.data)!=null&&l.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.X.handleUnsubscribeAction=function(){var l,e,O;((l=this.data)==null?void 0:(e=l.membershipButton)==null?void 0:(O=e.buttonRenderer)==null?void 0:O.style)==="STYLE_PRIMARY"&&_.ud(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Ji.Object.defineProperties(LE.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.subscriptionStateEntity)==null||!l.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.data)==null?void 0:l.membershipButton,O;l=(e==null?void 0:e.buttonRenderer)||_.I(e==null?void 0:(O=e.timedAnimationButtonRenderer)==null?void 0:O.buttonRenderer,_.YU);return(l==null?void 0:l.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(l==null?void 0:l.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(l==null?void 0:l.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var l;if(this.hasShowDialogCommand((l=this.data)==null?void 0:l.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var l;if(this.hasShowDialogCommand((l=this.data)==null?void 0:l.navigationEndpoint))return"button"}}});
LE.prototype.onTap=LE.prototype.onTap;LE.prototype.onYtServiceRequestError=LE.prototype.onYtServiceRequestError;LE.prototype.updateJoinButtonOverrides=LE.prototype.updateJoinButtonOverrides;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],LE.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],LE.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],LE.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.By),_.q("design:type",Object)],LE.prototype,"ironButtonState",void 0);_.L([_.T(),_.q("design:type",Object)],LE.prototype,"data",void 0);
_.L([_.R("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.q("design:type",Object),_.q("design:paramtypes",[])],LE.prototype,"hideJoin",null);_.L([_.T(),_.q("design:type",String)],LE.prototype,"subscribeKey",void 0);_.L([_.T({selectorArgs:["subscribeKey"],selector:wT2}),_.q("design:type",Object)],LE.prototype,"subscriptionStateEntity",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],LE.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.L([_.R("subscriptionStateEntity"),_.T({reflectToAttribute:!0}),_.q("design:type",Object),_.q("design:paramtypes",[])],LE.prototype,"subscribed",null);_.L([_.R("subscribed","data.membershipButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],LE.prototype,"joinButtonOverrides",null);_.L([_.R("data.navigationEndpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],LE.prototype,"channelNameTabIndex",null);
_.L([_.R("data.navigationEndpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],LE.prototype,"channelNameRole",null);_.L([_.AA("joinButtonOverrides"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LE.prototype,"updateJoinButtonOverrides",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],LE.prototype,"onYtServiceRequestError",null);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],LE.prototype,"onTap",null);_.L([_.U({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],LE);
var BM6=_.$0()(LE,"ytd-video-owner-renderer",function(){if(Geq===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);Geq=l}l=Geq;return l},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Zw(_.XO(function(l){var e=l.data;var O;l=_.b(_.AF(!((O=_.gS("yt-mini-app-is-theater-mode-enabled"))==null||!O),void 0,"LUeOgf"));var E=l.next().value,J=l.next().value,z;O=(z=_.V2().resolve(_.MG(Vz1)))!=null?z:function(){return _.W("div",null)};
_.lg("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){J(!0);_.dS("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.lg("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){J(!1);_.dS("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
z={};l={};var M={};return _.W("mini-app-play-page-renderer",{class:_.ax("miniAppPlayPageRendererHost",(z.miniAppPlayPageRendererHostDetailsView=function(){return!E()},z))},_.W("div",{class:_.ax("miniAppPlayPageRendererGameContainer",(l.miniAppPlayPageRendererGameContainerDetailsView=function(){return!E()},l))},_.W(_.Tn,{data:function(){return e().containerViewModel}},{miniAppContainerViewModel:jA1}),_.W(_.A,{cond:function(){return e().channel&&e().subscribeButton},
then:function(){return _.W("div",{class:"miniAppPlayPageRendererChannelContainer"},_.W(_.Tn,{data:function(){return e().channel}},{videoOwnerRenderer:function(Z){return _.W(BM6,{data:Z.data})}}),_.W(_.Tn,{data:function(){return e().subscribeButton}},{subscribeButtonViewModel:function(Z){return _.W(_.jf,{data:Z.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.W(_.A,{cond:function(){return!E()&&e().description},
then:function(){return _.W("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.W("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return e().description}))}})),_.W("div",{class:_.ax("miniAppPlayPageRendererPlayNextContainer",(M.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!E()},M))},_.W(_.Tn,{data:function(){return e().sectionList}},{sectionListRenderer:O})))},"he"),"mini-app-play-page-renderer",{props:{data:_.lB}});var ta=function(){var l=_.B.apply(this,arguments)||this;l.isSearch=!1;l.isConstrainedList=!1;l.hasChipsBar=!1;l.inReplyPanel=!1;l.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"}};l.monitorScroll=!0;l.SCROLL_ANIMATION_DURATION_MS=300;l.nextContinuation={continuationType:"sectionListContinuation"};return l};
_.m(ta,_.B);_.X=ta.prototype;
_.X.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(l){switch(l.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.a("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.a("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.X.created=function(){var l=this;this.JSC$14912_scrollAnimation=new _.RZ(function(e){l.hostElement.scrollTop=e})};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.X.getItemsPath=function(){return"data.contents"};
_.X.replacePrimaryContent=function(l){this.set("data.contents",l)};
_.X.computeHasSortFilter=function(l){return!!l&&!!l.sortFilterSubMenuRenderer};
_.X.computeShouldScrollInPanel=function(l){var e;return!!(l==null?0:(e=l.scrollPaneStyle)==null?0:e.scrollable)};
_.X.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.oB(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.X.scrollToTop=function(){this.hostElement.scrollTop=0};
_.X.scrollToItemSection=function(l){if(l=this.getItemByIdentifier(l))l=this.getScrollPositionForItem(l),this.hostElement.scrollTop!==l&&this.JSC$14912_scrollAnimation.start(this.hostElement.scrollTop,l,this.SCROLL_ANIMATION_DURATION_MS)};
_.X.getItemByIdentifier=function(l){var e=this.contents.querySelectorAll("ytd-item-section-renderer");if(e&&e.length!==0){var O=Array.from(e).findIndex(function(E){return E.sectionIdentifier===l});
return e[O===-1?0:O]}};
_.X.getScrollPositionForItem=function(l){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===l)return 0;l=_.Fe(l).y+this.hostElement.scrollTop-_.Fe(this.hostElement).y;return Math.min(l,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Ji.Object.defineProperties(ta.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.targetId)==="browse-feedFEclips"}}});
ta.prototype.onScroll=ta.prototype.onScroll;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],ta.prototype,"ytLazyListBehavior",void 0);_.L([_.K(_.vd.YtNextContinuationBehavior),_.q("design:type",Object)],ta.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.K(_.mF1),_.q("design:type",Object)],ta.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],ta.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ta.prototype,"data",void 0);_.L([_.T({value:2}),_.q("design:type",Number)],ta.prototype,"initialCount",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],ta.prototype,"autoFill",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.q("design:type",Boolean)],ta.prototype,"hasSortFilter",void 0);_.L([_.T({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.q("design:type",Boolean)],ta.prototype,"hideBottomSeparator",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.q("design:type",Boolean)],ta.prototype,"shouldScrollInPanel",void 0);
_.L([_.T(),_.q("design:type",Object)],ta.prototype,"isSearch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ta.prototype,"isConstrainedList",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],ta.prototype,"responsiveSizing",void 0);_.L([_.T(),_.q("design:type",Object)],ta.prototype,"hasChipsBar",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],ta.prototype,"pageSubtype",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ta.prototype,"engagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ta.prototype,"liveChatEngagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ta.prototype,"inReplyPanel",void 0);_.L([_.aB("#action-button"),_.q("design:type",HTMLElement)],ta.prototype,"actionButton",void 0);_.L([_.T(),_.q("design:type",Object)],ta.prototype,"scrollUpButtonData",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ta.prototype,"engagementPanelDropdown",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ta.prototype,"engagementPanelDialog",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ta.prototype,"isClipList",null);_.L([_.aB("#contents"),_.q("design:type",HTMLElement)],ta.prototype,"monitorScrollElement",void 0);_.L([_.aB("#contents"),_.q("design:type",HTMLElement)],ta.prototype,"contents",void 0);
_.L([_.wP("scroll"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ta.prototype,"onScroll",null);_.L([_.U({is:"ytd-section-list-renderer",disableElementRegistration:!0})],ta);
var Puq=_.$0()(ta,"ytd-section-list-renderer",function(){if(MzC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);MzC=l}l=MzC;return l},{mode:1});var UVq;var YHi;var h3H;var L51;var q1=function(){return _.B.apply(this,arguments)||this};
_.m(q1,_.B);q1.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
q1.prototype.onLikeButtonClick=function(l){l.stopPropagation();l.preventDefault()};
_.Ji.Object.defineProperties(q1.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)!=null&&l.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)})}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],q1.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],q1.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],q1.prototype,"ytRendererStamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],q1.prototype,"data",void 0);
_.L([_.T({selectorArgs:["data.likeStatusEntityKey"],selector:tm}),_.q("design:type",Object)],q1.prototype,"likeStatusEntity",void 0);_.L([_.R("data","likeStatusEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],q1.prototype,"likeButtonRenderer",null);_.L([_.U({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],q1);
_.Y(q1,"ytd-slim-metadata-toggle-button-renderer",function(){if(L51!==void 0)return L51;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return L51=l},{mode:1});var vl=function(){var l=_.B.apply(this,arguments)||this;l.minimizePipBreakages=_.a("web_pip_minimize_breakages");l.showEqualizer=_.a("web_enable_playlist_video_lockup_equalizer");l.watchColorUpdate=_.a("kevlar_watch_color_update");l.actionMap={};return l};
_.m(vl,_.B);_.X=vl.prototype;_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.X.computeEditableClass=function(l){return l&&l.menu?"editable":""};
_.X.computeSelected=function(l){return!(l==null||!l.selected)};
_.X.computeUseColorPalette=function(l){return!!((l==null?0:l.lightColorPalette)&&(l==null?0:l.darkColorPalette))};
_.X.computeLargerPlaylistThumbs=function(l,e){return _.a("web_enable_playlist_bigger_thumbnails")&&!e};
_.X.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.X.onYtServiceRequestSent=function(l,e){e.endpoint&&this.isHideEnclosingAction(e.endpoint)&&!this.selected&&gG1(_.qg(),this.data.videoId)};
_.X.isHideEnclosingAction=function(l){var e=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",l);l=this.get("likeEndpoint.status",l)==="INDIFFERENT";return e||l};
_.X.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.X.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Ji.Object.defineProperties(vl.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.a("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var l;return!!(this.withinMiniplayer&&((l=this.data)==null?0:l.actionButtons))}}});
vl.prototype.onYtServiceRequestSent=vl.prototype.onYtServiceRequestSent;vl.prototype.canReorderChanged=vl.prototype.canReorderChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],vl.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.qO),_.q("design:type",Object)],vl.prototype,"ytdLockupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vl.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"withinMiniplayer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],vl.prototype,"minimizePipBreakages",void 0);_.L([_.T({computed:"computeSelected(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"selected",void 0);
_.L([_.T({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"useColorPalette",void 0);_.L([_.T({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"largerPlaylistThumbs",void 0);_.L([_.T(),_.q("design:type",Object)],vl.prototype,"showEqualizer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"canReorder",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"touchPersistentDragHandle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],vl.prototype,"handleIsHovered",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],vl.prototype,"watchColorUpdate",void 0);_.L([_.T(),_.q("design:type",String),_.q("design:paramtypes",[])],vl.prototype,"reorderIcon",null);
_.L([_.R("largerPlaylistThumbs"),_.q("design:type",Number),_.q("design:paramtypes",[])],vl.prototype,"thumbnailWidth",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],vl.prototype,"showActionButtons",null);_.L([_.y0("canReorder"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vl.prototype,"canReorderChanged",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],vl.prototype,"onYtServiceRequestSent",null);_.L([_.U({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],vl);
_.Y(vl,"ytd-playlist-panel-video-renderer",function(){if(h3H!==void 0)return h3H;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return h3H=l},{mode:2});var N1=function(){return _.B.apply(this,arguments)||this};
_.m(N1,_.B);N1.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],N1.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],N1);
_.Y(N1,"ytd-playlist-panel-supported-items",function(){if(YHi!==void 0)return YHi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return YHi=
l},{mode:1});cYi=!0;N6x("\\P{N}");var jEL;var t8k=_.ml("END_OF_PLAYLIST",void 0,"End of playlist"),qHS=_.ml("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),rh=function(){var l=_.B.apply(this,arguments)||this;l.minimizePipBreakages=_.a("web_pip_minimize_breakages");l.updatedCoursePanel=_.a("move_three_dot_menu_to_playlist_panel_header_for_courses");l.hideHeaderText=!1;l.useColorPalette=!1;l.collapsed=!1;l.collapsedPreServerOverride="not_tracked";l.isHovered=!1;l.modernPanels=_.a("kevlar_watch_modern_panels");
l.expandLabel=_.ml("MINIPLAYER_EXPAND_LABEL");l.collapseLabel=_.ml("MINIPLAYER_COLLAPSE_LABEL");l.isFloating=!1;l.metaPanel=!1;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};l.currentIndex=void 0;return l};
_.m(rh,_.B);_.X=rh.prototype;
_.X.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"}}}};
_.X.created=function(){this.scrollThrottle=new _.b3(this.onThrottledScroll,1E3,this)};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
_.X.computeOverflowMenuData=function(l){return l&&l.menu?l.menu:null};
_.X.computeCollapsible=function(l){return!l};
_.X.computeHasPlaylistButtons=function(l){return!(!l||!l.playlistButtons)};
_.X.computeHasSeparateSaveButton=function(l){return!(!l||!l.saveButton)};
_.X.computeHasToolbarButton=function(l,e){return!(!l||!(e||l.saveButton||l.menu))};
_.X.computePlaylistType=function(l){if(l&&l.playlistId)return l.playlistId.substring(0,4)};
_.X.computeCanReorder=function(l){return l?l.playlistId&&l.playlistId.startsWith("TLPQ")?!0:!!l.isEditable&&!l.isInfinite:!1};
_.X.attached=function(){var l=this;try{_.V2().resolve(_.U5).setPlaylistComponent(this.hostElement)}catch(e){if(_.a("kevlar_park_on_playlist_token_killswitch"))throw e;_.h7().parkOrScheduleJob(function(){_.V2().resolve(_.U5).setPlaylistComponent(l.hostElement)},2,"ci")}_.Cz(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.X.detached=function(){_.op(this.hostElement)};
_.X.computeTrailingIcon=function(l,e,O){return O?e?"yt-icons:collapse":"yt-icons:close":e?"yt-icons:expand":_.a("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.X.computeIndexMessage=function(l,e){return FN2(l+1)+" / "+FN2(e)};
_.X.onRenderStamperFinished=function(){if(this.scrollForStampDom){var l=!0;this.isHovered&&(l=!1);if(this.collapsed||this.hidden)l=!1;l&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.X.collapseChanged=function(){var l=this;this.collapsed||(_.RK(this.ytTaskEmitterBehavior.getTaskManager(),function(){l.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.X.hiddenChanged=function(){var l=this;this.hidden||_.RK(this.ytTaskEmitterBehavior.getTaskManager(),function(){l.scrollToCurrentVideo()})};
_.X.setupReordering=function(){var l=_.ud(this.hostElement).querySelector("#items");rd1?_.P0R(this.ytReorderableBehavior,l,l,"playlist-drag-handle"):_.P0R(this.ytReorderableBehavior,l,l)};
_.X.scrollToCurrentVideo=function(){var l=this;_.UD.addJob(function(){var e=_.ud(l.hostElement).querySelector("#items");if(e){e.style.setProperty("padding-bottom","");var O=_.ud(l.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(O){e=O.parentElement||_.cY(document);var E=e||_.cY(document);var J=_.Fe(O),z=_.Fe(E),M=_.w6R(E);if(E==_.cY(document)){var Z=J.x-E.scrollLeft;J=J.y-E.scrollTop}else Z=J.x-z.x-M.left,J=J.y-z.y-M.top;O=W1C(O);z=E.clientHeight-
O.height;M=E.scrollLeft;var u=E.scrollTop;M+=Z-(E.clientWidth-O.width)/2;E=new _.KF(M,u+(J-z/2));e.scrollLeft=E.x;e.scrollTop=E.y}}},8)};
_.X.dataChanged=function(){var l=this;_.Bx0(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.OK(this,function(){_.fZ(l.ytTaskEmitterBehavior.getTaskManager(),function(){l.ytRendererBehavior.markDirty();l.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.X.onTheaterModeChanged=function(){_.a("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.X.onFullscreenChanged=function(){_.a("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.X.updateNowPlayingOverlay=function(){_.a("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.X.onPlaylistLockupNowPlaying=function(l,e){e&&(this.activeNowPlayingRenderer=e);this.updateNowPlayingOverlay()};
_.X.onScroll=function(){this.scrollThrottle.fire()};
_.X.onThrottledScroll=function(){var l=this;_.fZ(this.ytTaskEmitterBehavior.getTaskManager(),function(){l.ytRendererBehavior.markDirty()})};
_.X.onToggleExpanded=function(l){!this.collapsible||l&&(_.OV(l).tagName==="A"||_.Eh(_.ey(l),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.X.setCollapsed=function(l){this.collapsible&&(this.collapsed=l,_.dQ(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.X.handleCollapsedFromData=function(l){if(l){var e=l.playlistPanelCollapseState;e==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||e==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),e=e==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==e&&this.setCollapsed(e)):this.currentPlaylistId!==l.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(e=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==e&&this.setCollapsed(e),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=l.playlistId}};
_.X.handleDrop=function(l){var e=l.currDragItem;l=e.data.playlistSetVideoId;var O=_.Up(e.parentNode.childNodes,e),E=void 0;O>0&&(E=e.parentNode.childNodes[O-1].data.playlistSetVideoId);e=_.qg();if(e.responsePlaylistData&&e.responsePlaylistData.contents){var J=r7u(l,e.responsePlaylistData);e.responsePlaylistData=(0,_.mm.unsafeClone)(e.responsePlaylistData);kgg(e.responsePlaylistData.contents,J,O);e.queueProxy?vl1(e.queueProxy,J,O,l,E):e.playlistProxy&&vl1(e.playlistProxy,J,O,l,E);_.vJ(e,_.Ng(e,e.response?
e.response.autoplayRenderer:void 0))}};
_.X.handleDarkModeChange=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l)};
_.X.colorPaletteChanged=function(){var l,e=((l=this.data)==null?void 0:l.contents)||[],O;l=_.b(e);for(e=l.next();!e.done;e=l.next()){e=e.value;var E=void 0;if((E=e.playlistPanelVideoRenderer)==null?0:E.selected){l=e.playlistPanelVideoRenderer;E=e=void 0;(O=this.isDarkTheme?(e=l)==null?void 0:e.darkColorPalette:(E=l)==null?void 0:E.lightColorPalette)&&_.PF(this.hostElement,O);break}}this.useColorPalette=!!O};
_.Ji.Object.defineProperties(rh.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.playlistId)&&!((e=this.data)==null||!e.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var l=_.V2().resolve(_.MG(_.U5)),e;if(((e=this.data)==null?0:e.contents)&&(l==null?0:l.hasAutoplayData())){var O;if(((O=this.playlistLoopStateEntity)==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ONE"){if(l=this.data.currentIndex,l!==void 0){var E,J;var z=(E=this.data.contents[l])==null?void 0:(J=E.playlistPanelVideoRenderer)==null?void 0:J.title}}else{var M,Z=(M=_.I(l.getAutoplayEndpoint(),_.ej))==null?void 0:M.videoId,u,d;z=(u=this.data.contents.find(function(g){var w;
return((w=g.playlistPanelVideoRenderer)==null?void 0:w.videoId)===Z}))==null?void 0:(d=u.playlistPanelVideoRenderer)==null?void 0:d.title}return z}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)!=null&&l.nextVideoLabel?this.nextVideoTitle?_.lG(this.data.nextVideoLabel)+":":t8k:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.data)==null?0:l.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.xp(qHS);var e;return(e=this.data)==null?void 0:e.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.playlistButtons)==null?void 0:(O=e.menuRenderer)==null?void 0:O.topLevelButtons;if(E)for(l=_.b(E),e=l.next();!e.done;e=l.next())if(e=e.value,e.playlistLoopButtonRenderer)return e.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var l;return!!(this.collapsed&&((l=this.data)==null?0:l.nextVideoLabel))}}});
rh.prototype.colorPaletteChanged=rh.prototype.colorPaletteChanged;rh.prototype.onPlaylistLockupNowPlaying=rh.prototype.onPlaylistLockupNowPlaying;rh.prototype.updateNowPlayingOverlay=rh.prototype.updateNowPlayingOverlay;rh.prototype.onFullscreenChanged=rh.prototype.onFullscreenChanged;rh.prototype.onTheaterModeChanged=rh.prototype.onTheaterModeChanged;rh.prototype.dataChanged=rh.prototype.dataChanged;rh.prototype.hiddenChanged=rh.prototype.hiddenChanged;rh.prototype.collapseChanged=rh.prototype.collapseChanged;
rh.prototype.onRenderStamperFinished=rh.prototype.onRenderStamperFinished;rh.prototype.onMouseLeave=rh.prototype.onMouseLeave;rh.prototype.onMouseEnter=rh.prototype.onMouseEnter;_.L([_.K(_.sl),_.q("design:type",Object)],rh.prototype,"ironResizableBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(sPq.YtPlaylistPanelBehavior),_.q("design:type",Object)],rh.prototype,"ytPlaylistPanelBehavior",void 0);_.L([_.K(_.XP.YtTaskEmitterBehavior),_.q("design:type",Object)],rh.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.K(_.U06),_.q("design:type",Object)],rh.prototype,"ytReorderableBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],rh.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],rh.prototype,"ytdReduxBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],rh.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],rh.prototype,"autoplayData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],rh.prototype,"withinMiniplayer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"minimizePipBreakages",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"updatedCoursePanel",void 0);_.L([_.T({computed:"setMenuData_(data)"}),_.q("design:type",Object)],rh.prototype,"menuRendererData",void 0);_.L([_.T({computed:"computeOverflowMenuData(data)"}),_.q("design:type",Object)],rh.prototype,"overflowMenuDataTopRow",void 0);_.L([_.T({computed:"computeOverflowMenuData(data)"}),_.q("design:type",Object)],rh.prototype,"overflowMenuData",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"hideHeaderText",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"useColorPalette",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.q("design:type",Boolean)],rh.prototype,"collapsible",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"collapsed",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],rh.prototype,"hidden",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.q("design:type",Boolean)],rh.prototype,"hasPlaylistButtons",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.q("design:type",Boolean)],rh.prototype,"hasSeparateSaveButton",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.q("design:type",Boolean)],rh.prototype,"hasToolbar",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.q("design:type",String)],rh.prototype,"playlistType",void 0);_.L([_.T(),_.q("design:type",Object)],rh.prototype,"isHovered",void 0);_.L([_.T({selectorArgs:["playlistLoopStateEntityKey"],selector:_.mqV}),_.q("design:type",Object)],rh.prototype,"playlistLoopStateEntity",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"modernPanels",void 0);_.L([_.T({value:56}),_.q("design:type",Number)],rh.prototype,"scrollMargin",void 0);_.L([_.T({computed:"computeCanReorder(data)"}),_.q("design:type",Boolean)],rh.prototype,"canReorder",void 0);_.L([_.T(),_.q("design:type",Object)],rh.prototype,"expandLabel",void 0);_.L([_.T(),_.q("design:type",Object)],rh.prototype,"collapseLabel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"isFloating",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rh.prototype,"metaPanel",void 0);_.L([_.T({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.q("design:type",String)],rh.prototype,"trailingIcon",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],rh.prototype,"isDarkTheme",void 0);
_.L([_.T({selector:_.Pt}),_.q("design:type",Boolean)],rh.prototype,"miniplayerIsActive",void 0);_.L([_.T({selector:function(l){return l.watch.playerState}}),
_.q("design:type",Number)],rh.prototype,"playerState",void 0);_.L([_.T({selector:_.qc}),_.q("design:type",Boolean)],rh.prototype,"isFullscreen",void 0);_.L([_.T({selector:_.tM}),_.q("design:type",Boolean)],rh.prototype,"isTheaterMode",void 0);_.L([_.T(),_.q("design:type",Object)],rh.prototype,"activeNowPlayingRenderer",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rh.prototype,"moveThreeDotMenuToTopRow",null);
_.L([_.R("data","autoplayData","playlistLoopStateEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],rh.prototype,"nextVideoTitle",null);_.L([_.R("data","nextVideoTitle"),_.q("design:type",String),_.q("design:paramtypes",[])],rh.prototype,"nextVideoLabel",null);_.L([_.R("collapsed"),_.q("design:type",String),_.q("design:paramtypes",[])],rh.prototype,"buttonAriaLabel",null);
_.L([_.R("data","playlistId","longBylineText"),_.q("design:type",Object),_.q("design:paramtypes",[])],rh.prototype,"mixLongByLine",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],rh.prototype,"playlistLoopStateEntityKey",null);_.L([_.wP("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"onMouseEnter",null);
_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"onMouseLeave",null);_.L([_.T({reflectToAttribute:!0}),_.R("data","collapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],rh.prototype,"showNextVideoHeader",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"onRenderStamperFinished",null);
_.L([_.AA("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"collapseChanged",null);_.L([_.AA("hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"hiddenChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"dataChanged",null);
_.L([_.AA("isTheaterMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"onTheaterModeChanged",null);_.L([_.AA("isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"onFullscreenChanged",null);_.L([_.AA("playerState","miniplayerIsActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"updateNowPlayingOverlay",null);
_.L([_.wP("yt-playlist-lockup-now-playing-active"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],rh.prototype,"onPlaylistLockupNowPlaying",null);_.L([_.AA("data","isDarkTheme"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],rh.prototype,"colorPaletteChanged",null);_.L([_.U({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],rh);
_.vFF=_.$0()(rh,"ytd-playlist-panel-renderer",function(){if(UVq===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);UVq=l}l=UVq;return l},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var NM0;var Da=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_button_rework");return l};
_.m(Da,_.B);Da.prototype.computeShouldButtonBeVertical=function(l,e){return l||e};
Da.prototype.onYtServiceRequestSent=function(l,e){(l=_.I(e.endpoint,_.xJ))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.IK("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:l.status})):this.handleLikeEndpoint(l))};
Da.prototype.computelikeStatusEntityKey=function(l){return l==null?void 0:l.likeStatusEntityKey};
Da.prototype.handleLikeEndpoint=function(l){l.status==="LIKE"?this.JSC$14937_ytdDislikeToggleButtonRenderer.toggle(!1):l.status==="DISLIKE"?this.JSC$14937_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14937_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14937_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Ji.Object.defineProperties(Da.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var l;return sEx(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(l=this.likeStatusEntity)==null?void 0:l.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var l;if(this.data&&((l=this.data)==null||!l.hideDislikeButton)){var e;return sEx(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(e=this.likeStatusEntity)==null?void 0:e.likeStatus)}}}});
Da.prototype.onYtServiceRequestSent=Da.prototype.onYtServiceRequestSent;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Da.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Da.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Da.prototype,"vertical",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Da.prototype,"textTransform",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Da.prototype,"useShortsIcon",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Da.prototype,"underIconLabel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Da.prototype,"modern",void 0);_.L([_.T({value:"left"}),_.q("design:type",String)],Da.prototype,"buttonTooltipPosition",void 0);
_.L([_.T(),_.q("design:type",Object)],Da.prototype,"overrides",void 0);_.L([_.aB("#like-button"),_.q("design:type",Object)],Da.prototype,"JSC$14937_ytdLikeToggleButtonRenderer",void 0);_.L([_.aB("#dislike-button"),_.q("design:type",Object)],Da.prototype,"JSC$14937_ytdDislikeToggleButtonRenderer",void 0);_.L([_.R("data","likeStatusEntity.likeStatus"),_.q("design:type",Object),_.q("design:paramtypes",[])],Da.prototype,"likeButton",null);
_.L([_.R("data","likeStatusEntity.likeStatus"),_.q("design:type",Object),_.q("design:paramtypes",[])],Da.prototype,"dislikeButton",null);_.L([_.T({computed:"computelikeStatusEntityKey(data)"}),_.q("design:type",String)],Da.prototype,"likeStatusEntityKey",void 0);_.L([_.T({selectorArgs:["likeStatusEntityKey"],selector:tm}),_.q("design:type",Object)],Da.prototype,"likeStatusEntity",void 0);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],Da.prototype,"onYtServiceRequestSent",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Da);
var rNq=_.$0()(Da,"ytd-like-button-renderer",function(){if(NM0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);NM0=l}l=NM0;return l},{mode:1});_.DVi={};
_.DVi.YtConditionalRendererBehavior=[_.x.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(l,e){var O=this,E,J;return _.V(function(z){switch(z.nextAddress){case 1:if(!e)return O.hidden=!0,O.showSpinner=!1,z.return();if((E=l)==null?0:(J=E.visibilityCondition)==null?0:J.mode)switch(l.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return z.jumpTo(5);default:return z.jumpTo(6)}O.showSpinner=
!1;O.hidden=!0;return _.C(z,O.shouldShow_(l),4);case 4:O.hidden=!z.yieldResult;z.jumpTo(0);break;case 5:return _.C(z,O.shouldShow_(l),8);case 8:O.showSpinner=z.yieldResult;O.hidden=!1;z.jumpTo(0);break;case 6:return O.showSpinner=!1,_.C(z,O.shouldShow_(l),9);case 9:O.hidden=!z.yieldResult,_.Cl(z)}})},
shouldShow_:function(l){return l&&l.supportedDatas&&l.supportedDatas.rendererVisibilityConditionData&&l.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(l.supportedDatas.rendererVisibilityConditionData.showIf):l&&l.visibilityCondition&&l.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(l.visibilityCondition.showIf):l&&l.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(l.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(l){switch(l){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(l){switch(l){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var l=_.Wb(this.hostElement,"yt-get-mdx-status");return l.length==1&&l[0].connected},
isLocationPermissionGranted_:function(){var l;return _.V(function(e){return e.nextAddress==1?navigator.permissions?_.C(e,navigator.permissions.query({name:"geolocation"}),3):e.jumpTo(2):e.nextAddress!=2?(l=e.yieldResult,e.return(Promise.resolve(l.state==="granted"))):e.return(Promise.resolve(!1))})}}];var SHi=function(l,e){e=e===void 0?{}:e;return function(O){var E=document.createElement(l),J;var z=(J=E.polymerController)!=null?J:E;Pw2(E,z,O,e);return E}}("yt-icon"),QA0=_.a("web_bypass_polymer_yt_icon")&&_.a("kevlar_use_wil_icons")?_.XO(function(l){var e=l.icon;
var O=l.active;var E=l.className;var J=l.style;var z=l.dataSelected;var M=l.dataDisabled;var Z=l.role;var u=l.themeOverride;var d=l.animateIcon;var g=l.ariaHidden;var w=l.ariaExpanded;var n=l.ariaLabel;var k=l.id;var y=l.iconFilter;var c=function(){var h=e==null?void 0:e(),N=null,t=void 0;h&&(h=NbS(h),h=WKp(h),h.length&&(N=h[1],t=h[0]));return{iconName:N,iconSetName:t}},f=function(){return rUq(c().iconName,O==null?void 0:O(),void 0,void 0,c().iconSetName,_.V2().resolve(_.A3))},P=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:y==null?void 0:y()}};
return _.W(_.A,{cond:d,then:function(){return _.W(SHi,{icon:e,active:O,className:E,style:J,dataSelected:z,dataDisabled:M,role:Z,themeOverride:u,ariaHidden:g,ariaExpanded:w,ariaLabel:n,id:k,iconFilter:y})},
else:function(){return _.W(_.A,{cond:f,then:function(h){return _.W(G6V,{data:h,options:P})}})}})},"ie"):SHi;var xVC=function(l){var e=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Lsu();_.zJ("ytglobal.ytUtilActivityCallback_",function(){_.dQ(l,"yt-user-activity")});
new VW(function(){return e.JSC$14951_onMouseMove});
document.addEventListener("scroll",function(){return e.onScroll});
window.addEventListener("resize",function(){return e.onResize})},lRq=function(l,e,O){e in l.eventJobIds||(O=_.Gi().addLowPriorityJob(function(){_.Zb();
delete l.eventJobIds[e]},O),l.eventJobIds[e]=O)};
xVC.prototype.onScroll=function(l){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):l.target===document&&lRq(this,"scroll",200)};
xVC.prototype.onResize=function(){lRq(this,"resize",200)};
xVC.prototype.JSC$14951_onMouseMove=function(){lRq(this,"mousemove",100)};
_.ef=function(l){l.scrollEventsToIgnore+=1;l.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){l.scrollEventsToIgnore--},500))};var eDS=function(l){this.element=l;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
eDS.prototype.showFeedbackDialog=function(l,e,O,E){var J=OXq();if(!J)return!1;var z=NmL();z.productId=J;e&&(z.flow="submit",z.report={description:e});O&&(OXq()==="59"?z.callback=_.qz(function(){_.Bm("userFeedbackEvent",{});O()}):z.callback=_.qz(O));
z.bucket=E||_.hT("GOOGLE_FEEDBACK_BUCKET","Other");EXk(z);l=J8H(this,"GFEEDBACK",l);try{_.zhC(z,l)}catch(M){return _.tT(M),!1}return!0};
eDS.prototype.showHelpDialog=function(l,e,O){var E=this,J=OXq();if(!J)return!1;var z={helpCenterPath:"/youtube",productData:J8H(this,"GUIDED_HELP",O)};EXk(z);var M=NmL();M.context=l||z.productData.context||"default";M.defaultHelpArticleId=e;M.enableSendFeedback=!0;(_.vK("gapi.load")||function(Z,u){return u()})("client",function(){try{var Z=LA6(J,z);
if(_.a("web_always_load_chat_support")&&!E.chatSupportLoaded)try{Z.JSC$8012_loadChatSupport(M),E.chatSupportLoaded=!0}catch(u){}Z.startHelp(M)}catch(u){_.tT(u)}})};
var OXq=function(){var l=_.hT("GOOGLE_FEEDBACK_PRODUCT_ID");l||_.tT(Error("di"));return l},EXk=function(l){l&&(l.locale=_.a("kevlar_help_use_locale")?_.hT("INNERTUBE_CONTEXT_HL","en"):_.hT("HTML_LANG","en"))},J8H=function(l,e,O){var E=l.productData;
delete E.origin;E.device=_.dT();var J;a:{if(J=document.createElement("canvas")){var z=J.getContext("experimental-webgl",{stencil:!0});if(z){var M=z.getExtension("WEBGL_debug_renderer_info");if(M){J=z.getParameter(M.UNMASKED_RENDERER_WEBGL);break a}}if(z=J.getContext("webgl")){J=z.getParameter(z.RENDERER);break a}}J=null}E.gpu=J;E.isSDC=!!_.hT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(J=_.hT("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.mm.extend(E,J);_.qQ8(e,E);_.viT(E);(l=_.dQ(l.element,"yt-get-autonav-pause-debug-state"))&&
l.length&&(E.autonav_pause_state=l[0]);l=_.CF();E.browser_resolution=l.width+"\u00d7"+l.height+"@"+(window.devicePixelRatio||1)+"x";O&&_.mm.extend(E,O);return E};
eDS.prototype.resetProductData=function(){this.productData={}};var Xgk=function(l){this.feedbackManager=new eDS(l)};
Xgk.prototype.showFeedbackDialog=function(l,e,O,E){return this.feedbackManager.showFeedbackDialog(l,e,O,E)};
Xgk.prototype.showHelpDialog=function(l,e,O){return this.feedbackManager.showHelpDialog(l,e,O)};var zD6=function(){this.baseUrl="";this.aTag=document.createElement("a")},Le0=function(l,e,O){O=O===void 0?{}:O;
O.pbj||(O.pbj=1);O=_.KXx(e,O);l.baseUrl&&O&&!_.Os(O)[1]&&!_.Es(O)&&(e=l.baseUrl,zg(e,"/")&&(e=e.slice(0,-1)),_.Jq(O,"/")&&(O=O.slice(1)),O=e+"/"+O);yS(l.aTag,ir(O||""));return l.aTag.href};
zD6.prototype.fetchData=function(l){return _.PRg(l)};
zD6.prototype.postData=function(l,e){var O={method:"POST"};if(e){for(var E=_.b(Object.keys(e)),J=E.next();!J.done;J=E.next()){J=J.value;var z=e[J];_.e0(z)&&(e[J]=JSON.stringify(z))}O.postParams=e}return _.PRg(l,O)};
_.tGR=function(l,e,O,E,J){l=Le0(l,e,O);if(!l)throw E=Error("ei"),Object.assign(E,{params:e}),E;return _.PRg(l,J,E)};
zD6.prototype.requestDataForServiceEndpoint=function(l,e){if(_.I(l,_.$0g))return this.fetchData("/getAccountSwitcherEndpoint");e=e||{};var O=_.I(l,dBk);O?e.se=O.base64EncodedServiceEndpoint:e.sej=JSON.stringify(l);(O=_.P9())&&_.a("enable_service_ajax_csn")&&(e.csn=O);e.theme=_.R4();_.I(l,C02)&&_.hT("DELEGATION_CONTEXT")&&(e.delegation_context=JSON.stringify(_.hT("DELEGATION_CONTEXT")));O=null;for(var E in l)if(zg(E,"Endpoint")||zg(E,"Command")){O=E;break}if(!O){var J=Error("fi");Object.assign(J,{params:l});
_.mTd(J,"WARNING");return new _.kE(function(M,Z){Z(J)})}E={name:O};
var z;(O=(z=_.I(l,_.ku))==null?void 0:z.signal)&&(E.signal=O);(z=_.Qt(window.location.href))&&z.internalcountrycode&&(E.internalcountrycode=z.internalcountrycode);z="/service_ajax";_.a("debug_forward_web_query_parameters")&&(z=_.Pg2(z,window.location.search));z=_.e7(z,E);l.clickTrackingParams&&_.bi(z,{itct:l.clickTrackingParams});return this.postData(z,e)};_.bXR=new _.Xa("GFEEDBACK_TOKEN");var M21;var V2q;var ZXk;var upq;var SY=function(){var l=_.B.apply(this,arguments)||this;l.compact=!1;return l};
_.m(SY,_.B);SY.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
SY.prototype.computeHasIcon_=function(l){return!!l};
SY.prototype.isSignInIcon_=function(l){return l=="yt-icons:prompted_sign_in"};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.DVi.YtConditionalRendererBehavior),_.q("design:type",Object)],SY.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],SY.prototype,"data",void 0);
_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",Object)],SY.prototype,"icon_",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.q("design:type",Boolean)],SY.prototype,"hasIcon_",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.q("design:type",Boolean)],SY.prototype,"signInIcon_",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],SY.prototype,"compact",void 0);
_.L([_.Ps({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],SY);
_.Y(SY,"yt-player-error-message-renderer",function(){if(upq===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ZXk===void 0&&(ZXk=document.createElement("template"));var E=ZXk;O.call(e,E.content.cloneNode(!0),l.content.firstChild);upq=l}l=upq;return l},{mode:2});var Cjq;var oXk;var Qq=function(){return _.B.apply(this,arguments)||this};
_.m(Qq,_.B);Qq.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Qq.prototype.computeIcon_=function(l){return l?"yt-icons:"+l.iconType.toLowerCase():"error_outline"};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qq.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",Object)],Qq.prototype,"icon_",void 0);_.L([_.Ps({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Qq);
_.Y(Qq,"yt-player-kav-renderer",function(){if(oXk===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Cjq===void 0&&(Cjq=document.createElement("template"));var E=Cjq;O.call(e,E.content.cloneNode(!0),l.content.firstChild);oXk=l}l=oXk;return l},{mode:2});_.Zw(_.XO(function(l){var e=_.e4("div"),O=_.b(_.AF(0,void 0,"gCmSbf")),E=O.next().value,J=O.next().value;O=_.b(_.AF(null,void 0,"Rj9zMe"));var z=O.next().value,M=O.next().value;_.sC(function(){SQt(e.value,J,M);e.value.scrollIntoView()});
O=QEp.bind(null,l.data,E);bg("resize",function(){var Z=z();if(E()===1&&Z!==null){var u;(u=window.grecaptcha)==null||u.reset(Z)}});
return _.W("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.W("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.W("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var Z,u;return(Z=l.data().accessibility)==null?void 0:(u=Z.accessibilityData)==null?void 0:u.label}),_.W(_.zK,{text:O,
className:_.ax("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.W("div",{el:e,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.Vh}});var xn8=!1;_.$IF=_.XO(function(l){var e=l.data;return _.W("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.W(_.A,{cond:function(){return e().icon},
then:function(O){return _.W("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.W(_.Jm,{data:O,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.W(_.A,{cond:function(){return e().title},
then:function(O){return _.W("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.W(_.zK,{text:O}))}}),_.W(_.A,{cond:function(){return e().description},
then:function(O){return _.W("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.W(_.zK,{text:O}))}}),_.W(_.Tn,{data:function(){return e().primaryButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.W(_.Tn,{data:function(){return e().secondaryButton}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.$IF.idomCompat=!0;var WzS=_.XO(function(l){var e=l.data;_.EU();return _.W("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.W("div",{class:"player-interstitial-renderer-wiz__scrim"},_.W(_.Tn,{data:function(){return e().content}},{interstitialViewModel:_.$IF})))},"le");
WzS.idomCompat=!0;_.Zw(WzS,"yt-player-interstitial-renderer",{props:{data:_.lB}});var xK=function(){var l=_.B.apply(this,arguments)||this;l.noBackground=!1;l.compact=!1;l.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return l};
_.m(xK,_.B);xK.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"}}}};
xK.prototype.onUpdatePlayerErrorMessageCommand_=function(l){if(_.I(l,HI1)){var e;if(l=(e=_.I(l,HI1))==null?void 0:e.newPlayerErrorMessageRenderer)this.data=l}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],xK.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xK.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],xK.prototype,"status",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xK.prototype,"noBackground",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xK.prototype,"compact",void 0);_.L([_.Ps({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],xK);
var dIq=_.$0()(xK,"yt-playability-error-supported-renderers",function(){if(V2q===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;M21===void 0&&(M21=document.createElement("template"));var E=M21;O.call(e,E.content.cloneNode(!0),l.content.firstChild);V2q=l}l=V2q;return l},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var lIg=void 0,O7W=void 0;var XLx=new KAi;var gX0=function(l){this.store=l;this.c78=new _.cDx},Ayx=function(l,e,O){var E,J;
if(!(J=((E=e.playabilityStatus)==null?void 0:E.status)!=="OK")){l=l.store;var z;J=e.offlineState&&((z=e.videoDetails)==null?0:z.videoId)?_.a("enable_pl_r_c_cd")?mZg(l.getState().entities,e.videoDetails.videoId):!!xZ8(l.getState().entities,e.videoDetails.videoId):!1}if(J)return!0;J=Z7M(e);if(J===1){if(_.a("ab_v_vid_sig")){var M,Z=(M=e.videoDetails)==null?void 0:M.videoId;if(!Z||!O||Z!==O){var u;e=new _.Hk("282054944_vid",{ns3:O,cN3:(u=e.videoDetails)==null?void 0:u.videoId});_.UW(e)}}return!0}HQp=
0;var d,g;u=(Z=e.auxiliaryUi)==null?void 0:(d=Z.messageRenderers)==null?void 0:(g=d.bkaEnforcementMessageViewModel)==null?void 0:g.displayType;if(J!==3&&(u==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||u==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;u={reason:_.Zr(_.ml("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.a("ks_something_wrong_learn_more")?csT("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Zr(_.ml("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:_.Zr("282054944")};iX1(e,{playerErrorMessageRenderer:u});return!1},nsg=function(l,e){if(NSt(e)){_.A$(1,!0);
var O=(O=NSt(e))&&_.ezp()?O:void 0;O?(iX1(e,{enforcementMessageViewModel:O}),l.c78.increment("IN_PLAYER"),_.A$(5)):(l.c78.increment("SKIP_DISPLAY"),_.A$(2))}},iX1=function(l,e){l.playabilityStatus=Object.assign({},l.playabilityStatus,{status:"ERROR",
errorScreen:e});l.videoDetails=void 0};
gX0.prototype.handleResponse=function(l,e){if(l.playabilityStatus){var O,E,J,z=(e==null?void 0:(O=e.innerTubeRequest)==null?void 0:O.videoId)||(e==null?void 0:(E=e.innerTubeRequest)==null?void 0:(J=E.playerRequest)==null?void 0:J.videoId);Ayx(this,l,z)&&nsg(this,l)}};
gX0[Jf]=[iY];var i5u=new _.Xa("ADBLOCK_DETECTION_SERVICE_TOKEN");var bY=function(l){this.sDH=l};
bY.prototype.bindInnertubeChallengeFetcher=function(l){this.sDH.bicf(l)};
bY.prototype.registerChallengeFetchedCallback=function(l){this.sDH.bcr(l)};
bY.prototype.getLatestChallengeResponse=function(){return this.sDH.blc()};var aR1;_.lM=function(l,e,O){var E=this;this.network=l;this.options=e;this.networkStatusManager=O;this.cj=null;if(e.useBotguardEverywhere){var J=new _.d8;this.cj=J.promise;_.Op.ytAtRC&&_.pT(_.UD,function(){var z,M;return _.V(function(Z){if(Z.nextAddress==1){if(!_.Op.ytAtRC)return Z.return();z=wgF(null);return _.C(Z,E.cf(z),2)}M=Z.yieldResult;_.Op.ytAtRC&&_.Op.ytAtRC(JSON.stringify(M));_.Cl(Z)})});
Wix().then(function(z){var M,Z,u,d;return _.V(function(g){if(g.nextAddress==1)return z.bindInnertubeChallengeFetcher(function(w){return E.cf(wgF(w))}),_.C(g,jQg(),2);
M=g.yieldResult;Z=z.getLatestChallengeResponse();u=Z.challenge;if(!u)throw Error("gi");d={challenge:u,my:zi(u),pJ:M,bgChallenge:new Jc};J.resolve(d);z.registerChallengeFetchedCallback(function(w){w=w.challenge;if(!w)throw Error("hi");w={challenge:w,my:zi(w),pJ:M,bgChallenge:new Jc};E.cj=Promise.resolve(w)});
_.Cl(g)})})}else e.preload&&A80(this,new Promise(function(z){_.fZ(_.UD,function(){z(nXq(E))},0)}))};
aR1=function(l){var e={preload:!0,useBotguardEverywhere:!0},O=!1;if(typeof e==="boolean")var E={preload:e};else typeof e==="undefined"?E={preload:!0}:(E=e,O=!!e.oXA);e=O?void 0:new _.xP;_.lM.instance=new _.lM(l,E,e);return _.lM.instance};
_.lM.prototype.eT1=function(){var l=this;return _.V(function(e){return e.nextAddress==1?_.C(e,Promise.race([l.cj,null]),2):e.return(!!e.yieldResult)})};
_.lM.prototype.qf6=function(l,e,O){var E=this,J,z,M;return _.V(function(Z){E.cj===null&&A80(E,nXq(E));J=!1;z={};M=function(){var u,d,g;return _.V(function(w){switch(w.nextAddress){case 1:return _.C(w,E.cj,2);case 2:u=w.yieldResult;z.challenge=u.challenge;if(!u.pJ){"c1a"in u.my&&(z.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");w.jumpTo(3);break}d=Object.assign({},{c:u.challenge,e:l},e);_.b1(w,4);J=!0;if(_.a("attbs")&&!E.options.useBotguardEverywhere){g=_.K7i(u.pJ,{fZ:d});w.jumpTo(6);break}return _.C(w,
u.pJ.snapshot({fZ:d}),7);case 7:g=w.yieldResult;case 6:g?z.webResponse=g:z.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Q2(w,3);break;case 4:_.u1(w),z.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(l==="ENGAGEMENT_TYPE_PLAYBACK"){var n=u.my,k={};if(n.c6a){var y=Number(_.hT("DCLKSTAT",0));k.reportingStatus=String(Number(n.c)^(isNaN(y)?0:y))}n.c6b&&(k.broadSpectrumDetectionResult=String(Number(n.c)^Number(_.hT("CATSTAT",0))));z.adblockReporting=k}return w.return(z)}})};
return Z.return(Promise.race([M(),kwx(O,function(){var u=Object.assign({},z);J&&(u.error="ATTESTATION_ERROR_VM_TIMEOUT");return u})]))})};
var wgF=function(l){var e={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};l&&(e.interpreterHash=l);return e},nXq=function(l,e){e=e===void 0?0:e;
var O,E,J,z,M,Z,u,d,g,w,n,k;return _.V(function(y){switch(y.nextAddress){case 1:O=wgF(czq().asB);if(_.a("att_fet_ks"))return _.b1(y,7),_.C(y,l.cf(O),9);_.b1(y,4);return _.C(y,IRS(l,O),6);case 6:M=y.yieldResult;J=M.nvO;z=M.x3H;E=M;_.Q2(y,3);break;case 4:return _.u1(y),_.hG(Error("ii`"+e)),mIS(l,864E5),y.return({challenge:"",my:{},pJ:void 0,bgChallenge:void 0});case 9:E=y.yieldResult;if(!E)throw Error("ji");if(!E.challenge)throw Error("ki");J=E.challenge;z=zi(J);if("c1a"in z&&(!E.bgChallenge||!E.bgChallenge.program))throw Error("li");
_.Q2(y,3);break;case 7:Z=_.u1(y);_.hG(Z);e++;if(e>=5)return _.hG(Error("ii`"+e)),mIS(l,864E5),y.return({challenge:"",my:{},pJ:void 0,bgChallenge:void 0});u=1E3*Math.pow(2,e-1)+Math.random()*1E3;return y.return(new Promise(function(c){_.fZ(_.UD,function(){c(nXq(l,e))},u)}));
case 3:d=$bx(z);mIS(l,d*1E3);g=void 0;if(!("c1a"in z&&E.bgChallenge)){y.jumpTo(10);break}w=ocM(E.bgChallenge);_.b1(y,11);return _.C(y,f9C(czq(),w),13);case 13:_.Q2(y,12);break;case 11:return n=_.u1(y),_.hG(n),y.return({challenge:J,my:z,pJ:g,bgChallenge:w});case 12:return _.b1(y,14),g=new _.Uk({challenge:w,dZ:{w7:"aGIf"}}),_.C(y,g.qIW,16);case 16:_.Q2(y,10);break;case 14:k=_.u1(y),_.hG(k),g=void 0;case 10:return y.return({challenge:J,my:z,pJ:g,bgChallenge:w})}})};
_.lM.prototype.cf=function(l){var e=this,O;return _.V(function(E){O=e.networkStatusManager;if(!O||O.isNetworkAvailable())return E.return(e.network.cf(l));_.Lz("att_pna",void 0,"attestation_challenge_fetch");return E.return(new Promise(function(J){O.listenOnce("publicytnetworkstatus-online",function(){e.network.cf(l).then(J)})}))})};
var y8x=function(l){if(!l)throw Error("ji");if(!l.challenge)throw Error("ki");var e=l.challenge,O=zi(e);if("c1a"in O&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("li");return Object.assign({},l,{nvO:e,x3H:O})},IRS=function(l,e){var O,E,J,z,M;
return _.V(function(Z){switch(Z.nextAddress){case 1:O=void 0,E=0,J={};case 2:if(!(E<5)){Z.jumpTo(4);break}if(!(E>0)){Z.jumpTo(5);break}J.a4r=1E3*Math.pow(2,E-1)+Math.random()*1E3;return _.C(Z,new Promise(function(u){return function(d){_.fZ(_.UD,function(){d(void 0)},u.a4r)}}(J)),5);
case 5:return _.b1(Z,7),_.C(Z,l.cf(e),9);case 9:return z=Z.yieldResult,Z.return(y8x(z));case 7:O=M=_.u1(Z),M instanceof Error&&_.hG(M);case 8:E++;J={a4r:void 0};Z.jumpTo(2);break;case 4:throw O;}})},A80=function(l,e){l.cj=e},pgq=function(l){var e,O,E;
return _.V(function(J){if(J.nextAddress==1)return _.C(J,Promise.race([l.cj,null]),2);e=J.yieldResult;var z=nXq(l);l.cj=z;(O=e)==null||(E=O.pJ)==null||E.dispose();_.Cl(J)})},mIS=function(l,e){var O=Date.now()+e,E=function(){var J;
return _.V(function(z){J=O-Date.now();return J<1E3?_.C(z,pgq(l),0):(_.fZ(_.UD,E,Math.min(J,6E4)),z.jumpTo(0))})};
E()},kwx=function(l,e){return new Promise(function(O){_.fZ(_.UD,function(){O(e())},l)})};var Kzq=function(){};
Kzq.prototype.processContext=function(l){var e=_.lM.instance;if(!e)return _.SK();var O=A1W(l);return O?new Dn(e.qf6(O,i7d(l),500).then(function(E){var J;(l==null?0:(J=l.innerTubeRequest)==null?0:J.context)||(l.innerTubeRequest.context={});J=l.innerTubeRequest.context;J.request||(J.request={});J.request.attestationResponseData=E})):_.SK()};var j8q=function(l){this.innertubeTransportService=l};
j8q.prototype.cf=function(l){_.Lz("att_fsr",void 0,"attestation_challenge_fetch");return _.PJ(this.innertubeTransportService,l,_.Em(_.H6R)).then(function(e){_.Lz("att_frr",void 0,"attestation_challenge_fetch");return e})};_.HXq=function(l){this.innertubeTransportService=l};var c81=new _.Xa("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Fz1=function(){},RDH=function(l,e,O,E,J){var z=_.hT("YPC_MB_URL");
_.OhT(z).then(function(){fRq(z,l,e,O,E,J)})},fRq=function(l,e,O,E,J,z){try{var M=payments.business.integration,Z=payments.business.integration.Style.create().withMaterialDesignStyle(),u=M.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.a("enable_window_constrained_buy_flow_dialog")&&(u=u.usingPopupStyle("windowConstrained"));z&&(u=u.usingCloseCallback(z));var d=O?O:_.hT("YPC_GB_LANGUAGE"),g=_.hT("SESSION_INDEX");M.bootstrap.fromPaymentsUrl(l);M.bootstrap.asMashupMode(u).usingGaiaIndex(g).usingLocale(d).usingStyle(Z).usingDefaultActivityStatusChangeHandler().inStandaloneContext(M.standaloneContextAuthId.forGaia()).purchaseManager(e,function(w){E&&E(w)}).load(void 0,J)}catch(w){throw J&&J(w),_.UW(w),w;
}};var T7S=new _.Xa("PURCHASE_MANAGER_TOKEN");var s81=function(){var l=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return l.videos},
getContinuationsPresent:function(){return l.continuationsPresent},
setVideos:function(e){l.videos=e},
getRecommendedVideos:function(){return l.recommendedVideos},
setRecommendedVideos:function(e){l.recommendedVideos=e}}};
s81.prototype.addVideos=function(l){l&&(this.videos=l.filter(function(e){return!!_.aIx(e)}).map(function(e){var O=_.aIx(e);
a:{var E;if(e.playlistVideoRenderer&&((E=e.playlistVideoRenderer)==null?0:E.voteSortTiebreaker))var J=e.playlistVideoRenderer.voteSortTiebreaker;else{if(_.I(e,VQ)){var z;if(E=(J=_.I(e,VQ))==null?void 0:(z=J.playlistItemData)==null?void 0:z.voteSortTiebreaker){J=E;break a}}J=""}}return{itemId:O,videoId:_.mbt(e),voteCount:_.y1u(e),voteSortTiebreaker:J}}),this.continuationsPresent=!!_.I(l[l.length-1],_.o2))};
var Gw0=function(l,e){return l.videos.findIndex(function(O){return O.itemId===e})},B7S=function(l,e){return l.recommendedVideos.findIndex(function(O){return O.itemId===e})},Pj0=function(l){l={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:l}}}}};_.V2().resolve(_.Zh).resolveCommand(l)};var UI6=function(){s81.apply(this,arguments)};
_.m(UI6,s81);
var pLH=function(l,e,O,E){if(!l.parentElem)throw Error("qi");var J=Gw0(l,e);J===-1&&(J=B7S(l,e),J=J!==-1?J+l.videos.length:-1);if(J===-1)throw Error("ri");var z=J>=l.videos.length?l.recommendedVideos[J-l.videos.length]:l.videos[J];z.voteCount=O;z.voteSortTiebreaker=Date.now().toString();J>=l.videos.length?l.recommendedVideos.splice(J-l.videos.length,1):l.videos.splice(J,1);var M=l.videos;for(var Z=0,u=M.length-1;Z<=u;){var d=Math.floor((Z+u)/2);if(M[d].voteCount<z.voteCount)u=d-1;else if(M[d].voteCount>z.voteCount)Z=
d+1;else{a:{var g=z.voteSortTiebreaker;var w=M[d].voteSortTiebreaker;if(g.length!==w.length)g=g.length>w.length;else{for(var n=0;n<g.length;n++){var k=g.charCodeAt(n),y=w.charCodeAt(n);if(k>y){g=!0;break a}if(k<y)break}g=!1}}g?u=d-1:Z=d+1}}M=Z;if(M===-1)throw Error("si");l.videos.splice(M,0,z);J!==M&&YAS(l,J,M,e,O,E)},YAS=function(l,e,O,E,J,z){var M,Z=(M=l.parentElem)==null?void 0:M.children,u=Math.min(e,O),d=Math.max(e,O);
if(Z)for(M=u;M<=d;M++)Z[M].style.viewTransitionName="item-"+String(M);document.startViewTransition(function(){if(l.parentElem){var g=l.parentElem.children;if(!(!g||e<0||e>=g.length||O<0||O>=g.length)){var w=g[e];if(w){w.remove();l.showRefreshPill=O>=l.videos.length-1&&l.continuationsPresent;if(!l.showRefreshPill){g=g[O]||null;var n;(n=l.parentElem)==null||n.insertBefore(w,g)}_.$u(l.parentElem,"yt-update-video-data-voting-animation",{toIdx:O,itemId:E,newVoteCount:J,voteStatus:z,hideItem:l.showRefreshPill})}}}}).finished.then(function(){if(Z)for(var g=
u;g<=d;g++)Z[g].style.viewTransitionName="";
if(l.showRefreshPill)Pj0(_.ml("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var w;if(w=g=(w=l.parentElem)==null?void 0:w.children[O])w=g.getBoundingClientRect(),g=w.bottom,w=!(w.top>=0&&g<=l.clientHeight);w&&(w=_.y4(e>O?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(e-O)),Pj0(w))}})};var t2k=function(l,e){var O=this;l?this.innertubeTransportServicePromise=Promise.resolve(l):e&&(this.innertubeTransportServicePromise=e(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Bl(3E3,function(E){return hDS(O,E)},0);
this.validateMiniAppVideoIdRateLimiter=new Bl(3E3,function(E){return Lzi(O,E)},1)},Iti=function(l,e){l.JSC$15063_miniAppId=e;
l.reportMiniAppValueRateLimiter=new Bl(3E3,function(O){return hDS(l,O)},0);
l.validateMiniAppVideoIdRateLimiter=new Bl(3E3,function(O){return Lzi(l,O)},1)},yN0=function(l,e){var O;
return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.reportMiniAppValueRateLimiter.call(e),2);O=E.yieldResult;return E.return([O,e])})},hDS=function(l,e){var O,E,J,z,M,Z,u;
return _.V(function(d){switch(d.nextAddress){case 1:return _.C(d,l.innertubeTransportServicePromise,2);case 2:return O=d.yieldResult,E=_.Em(GlR),J=Date.now(),z={externalPostId:l.JSC$15063_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(J/1E3),nanos:Math.round(J%1E3*1E6)},intValue:""+e}},_.b1(d,3),_.C(d,_.PJ(O,z,E),5);case 5:M=d.yieldResult;_.Q2(d,4);break;case 3:throw Z=_.u1(d),Z;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("ti`"+
M.errorMetadata.status);if(u=M.userStatResult)return d.return(u);throw Error("ui");}throw Error("vi");}})},K50=function(l){var e,O,E,J,z;
_.V(function(M){switch(M.nextAddress){case 1:return _.C(M,l.innertubeTransportServicePromise,2);case 2:return e=M.yieldResult,O=_.Em(GlR),E={externalPostId:l.JSC$15063_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.b1(M,3),_.C(M,_.PJ(e,E,O),5);case 5:J=M.yieldResult;_.Q2(M,4);break;case 3:throw z=_.u1(M),z;case 4:if(J==null)throw Error("vi");if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("ti`"+J.errorMetadata.status);_.Cl(M)}})};
t2k.prototype.flush=function(){var l=this;return _.V(function(e){return e.nextAddress==1?_.C(e,l.reportMiniAppValueRateLimiter.flush(),2):_.C(e,l.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var pBq=function(l,e){return _.V(function(O){return O.nextAddress==1?_.C(O,l.validateMiniAppVideoIdRateLimiter.call(e),2):O.return(O.yieldResult)})},Lzi=function(l,e){var O,E,J,z,M,Z;
return _.V(function(u){switch(u.nextAddress){case 1:return _.C(u,l.innertubeTransportServicePromise,2);case 2:return O=u.yieldResult,E=_.Em(j31),J={videoId:e},_.b1(u,3),_.C(u,_.PJ(O,J,E),5);case 5:z=u.yieldResult;_.Q2(u,4);break;case 3:throw M=_.u1(u),M;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("ti`"+z.errorMetadata.status);if(Z=z.playabilityStatus)return u.return(Z.status);throw Error("wi");}throw Error("vi");}})};
t2k[Jf]=[_.MG(_.Um),_.MG(Mfi)];var qAR=function(){this.clientData=new Map};
qAR.prototype.getData=function(l){return this.clientData.get(l)};var vXH=function(l){this.store=l};
vXH.prototype.handleResponse=function(l){(l=_.I(l.frameworkUpdates,ep))&&_.IM(l,this.store)};
vXH[Jf]=[_.LQ];var N71=new _.Xa("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var r8R={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,
1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var DIS=new _.Xa("ICON_SET_TOKEN"),SAS=new _.Xa("ICON_URL_PROVIDER_TOKEN"),Q8q=new _.Xa("PREFETCH_ICONS_TOKEN"),xI6=new _.Xa("ICON_MAP_FN_TOKEN");var er={},lM0=(er.ACCESS_TIME="clock",er.ACCOUNT_BOX="person_account",er.ACCOUNT_BOX_CAIRO="person_account_cairo",er.ACCOUNT_CIRCLE="person_circle",er.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",er.ACCOUNT_LINKED="account_link_success",er.ACCOUNT_UNLINKED="account_link",er.ADD_FRIEND="people",er.ADD_MODERATOR="shield_add",er.ADD_TO_LIBRARY=uY("add"),er.ADD_TO_PLAYLIST="add",er.ADD_TO_QUEUE_TAIL="list_queue",er.ADD_TO_REMOTE_QUEUE="list_music",er.ADD_TO_WATCH_LATER="clock",er.ADD_VIDEO_LINK="film_strip_add",
er.ALERT_WARN_RED="alert_triangle",er.ARROW_BACK="arrow_left",er.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",er.ARROW_DROP_DOWN="chevron_down",er.ARROW_DROP_UP="chevron_up",er.ARROW_FORWARD="arrow_right",er.AUDIOTRACK="audio",er.AUTO_AWESOME="sparkle",er.AVATAR_ANONYMOUS="person_circle",er.AVATAR_LOGGED_OUT="person_circle",er.BACK="arrow_left",er.BAR_CHART="bar_graph",er.BLOCK="slash_circle_left",er.BLOCK_USER="slash_circle_left",er.BOOKMARK_BORDER="bookmark",er.BREAKING_NEWS_ALT_1="article_alert",
er.BROADCAST_CAIRO="podcast_cairo",er.BUG_REPORT="bug",er.CAMERA_ALT="camera",er.CAMPAIGN="megaphone",er.CANCEL="x_circle",er.CAPTIONS="closed_caption",er.CAST_OUTLINE="chromecast",er.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",er.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",er.CHAT="message_bubble_left",er.CHAT_BUBBLE="message_bubble_empty",er.CHAT_SPARK="spark_message_bubble_left",er.CHECK_BOX_OUTLINE_BLANK="box_empty",er.CHECK_CIRCLE_OUTLINE="check_circle",er.CHECK_CIRCLE_THICK="check_circle",er.CLARIFY=
"article_clarify",er.CLOSED_CAPTION_SELECTED="closed_caption",er.CLOSE="x_mark",er.CLOUD_UPLOAD="cloud_arrow_up",er.COLLAPSE="chevron_up",er.COLLAPSE_CAIRO="chevron_up_cairo",er.COLLECTION="layers",er.COLOR_LENS="palette",er.COMMENT="message_bubble_right",er.CONSENT_SHIELD="person_shield",er.CONTENT_CUT="scissors",er.CONTENT_CUT_CAIRO="scissors_cairo",er.COURSE=_.a("web_enable_course_icon_update")?"creator_academy":"lightbulb",er.COURSE_CAIRO=_.a("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",er.CREATION_LIVE="radar_live",er.CREATION_POST="box_pencil",er.CREATION_UPLOAD="my_videos",er.CREATION_UPLOAD_RED="upload",er.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",er.CREATOR_STUDIO="youtube_studio",er.DASHBOARD="grid_asymmetrical",er.DELETE="trash_can",er.DELETE_SWEEP="trash_can",er.DESKTOP="laptop",er.DISLIKE="thumb_down",er.DISLIKE_SELECTED="thumb_down",er.DISMISSAL="x_mark",er.DISMISS_QUEUE="list_remove",er.DONE_ALL="check_double",er.DOWN_ARROW="arrow_down",er.DO_NOT_DISTURB=
"slash_circle_left",er.DRAFT="paper_corner_folded",er.DRAG_HANDLE="bars_2",er.EDIT="pencil",er.EMOJI="face_very_happy",er.EMOJI_FLAGS="flag",er.EMOJI_OBJECTS="lightbulb",er.EMOJI_PEOPLE="face_very_happy",er.EMOJI_RECENT="clock",er.EMPTY_HEART="heart",er.EMPTY_LIKE="thumb_up",er.ERROR_BLACK="alert_circle",er.ERROR_OUTLINE="alert_circle",er.EXIT_APP="arrow_in",er.EXIT_TO_APP="arrow_in",er.EXPAND="chevron_down",er.EXPAND_ALL="chevron_expand",er.EXPAND_CAIRO="chevron_down_cairo",er.EXPAND_LESS="chevron_up",
er.EXPAND_MORE="chevron_down",er.EXPLORE="compass",er.EXPLORE_DESTINATION="compass",er.EXTERNAL_LINK="open_new",er.FAB_UPLOAD="upload",er.FACE_HAPPY_OUTLINE="face_happy",er.FACT_CHECK="article_check",er.FASHION_LOGO="fashion",er.FASHION_LOGO_CAIRO="fashion_cairo",er.FAVORITE="heart",er.FEEDBACK="message_bubble_alert",er.FEEDBACK_CAIRO="message_bubble_alert_cairo",er.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",er.FILL_ARROW_SOLID_UP_16="arrow_solid_up",er.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
er.FILTER="menu_filter",er.FIRST_PAGE="chevron_first",er.FLAG="flag",er.FULL_HEART="heart",er.GAME_CONSOLE_DPAD="game_console_dpad",er.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",er.GAMING_LOGO="gaming",er.GAMING_LOGO_CAIRO="gaming_cairo",er.GO_TO_PAGE="arrow_right",er.GROUPS="people_group",er.HAPPY="face_happy",er.HEALTH_AND_SAFETY="shield_plus",er.HELP="question_circle",er.HELP_CAIRO="question_circle_cairo",er.HELP_OUTLINE="question_circle",er.HIDE="slash_circle_left",er.IMAGE="image",
er.INFINITY_ICON="infinity",er.INFO="info_circle",er.INFO_OUTLINE="info_circle",er.INSERT_CHART_OUTLINED="bar_graph_box_vertical",er.INSERT_PHOTO="image",er.KEEP="pin",er.KEEP_OFF="pin_off",er.KEYBOARD="keyboard",er.KEYBOARD_ARROW_DOWN="chevron_down",er.KEYBOARD_ARROW_UP="chevron_up",er.KIDS_BLOCK="slash_circle_left",er.LANGUAGE="globe",er.LAST_PAGE="chevron_last",er.LAUNCH="open_new",er.LEARNING="lightbulb",er.LEARNING_CAIRO="lightbulb_cairo",er.LIBRARY_ADD=uY("library_add"),er.LIBRARY_OUTLINE="library",
er.LIBRARY_REMOVE=uY(),er.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",er.LIKES_PLAYLIST="thumb_up",er.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",er.LIKE="thumb_up",er.LIKE_SELECTED="thumb_up",er.LIVE="radar_live",er.LIVE_CAIRO="radar_live_cairo",er.LIVE_UNLISTED="link",er.LOCATION_ON="location_point",er.LOCATION_PIN="location_point",er.LOOP="arrow_repeat",er.LOOP_ACTIVE="arrow_repeat",er.LOOP_ONE="arrow_repeat_1",er.LOOP_ONE_ACTIVE="arrow_repeat_1",er.MEH="face_meh",er.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
er.MESSAGE="message_bubble_left",er.MICROPHONE_ON="mic",er.MIX="youtube_mix",er.MONETIZATION_ON="dollar_sign_circle",er.MONEY_FILL="dollar_sign_container",er.MONEY_FILL_JPY="yen_sign_container",er.MONEY_HEART="dollar_sign_heart",er.MORE_HORIZ="overflow_horizontal",er.MORE_VERT="overflow_vertical",er.MUSIC="audio",er.MUSIC_CAIRO="audio_cairo",er.MUSIC_NOTE_SYMBOL="music",er.MUSIC_SHUFFLE="arrow_shuffle",er.MY_CHANNEL="person_circle",er.MY_LOCATION="location_point",er.NEWS_STORY="news",er.NEXT="chevron_right",
er.NOTIFICATIONS="bell",er.NOTIFICATIONS_ACTIVE="bell_on",er.NOTIFICATIONS_CAIRO="bell_cairo",er.NOTIFICATIONS_DONE_CHECKMARK="check",er.NOTIFICATIONS_INBOX="bell",er.NOTIFICATIONS_NONE="bell",er.NOTIFICATIONS_OFF="bell_off",er.NOT_INTERESTED="slash_circle_left",er.OFFICIAL_ARTIST_BADGE="audio",er.OFFLINE_CLOUD="cloud_off",er.OFFLINE_DOWNLOAD="download",er.OFFLINE_DOWNLOAD_CAIRO="download_cairo",er.OFFLINE_PAUSE="pause",er.OPEN_IN_NEW="open_new",er.OUTLINE_ADJUST="adjust",er.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",er.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",er.OUTLINE_BAG="bag",er.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",er.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",er.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",er.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",er.PAID="dollar_sign",er.PAUSE_OUTLINED="pause",er.PAYMENT="credit_card",er.PERSON_RADAR_FILLED="person_radar",er.PHONE_DOWNLOAD="mobile_download",er.PLAYABLES_LOGO="tic_tac_toe",er.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
er.PLAYLISTS="list_play_arrow",er.PLAYLISTS_CAIRO="list_play_arrow_cairo",er.PLAYLIST_ADD=uY("list_add"),er.PLAYLIST_ADD_CHECK=uY("list_check"),er.PLAYLIST_PLAY="list_play_arrow",er.PLAY_ALL="play_arrow",er.PLAY_CIRCLE="play_arrow_circle",er.PLAY_OUTLINED="play_arrow_circle",er.PRIVACY_INFO="shield",er.PRIVACY_PRIVATE="lock",er.PRIVACY_PUBLIC="earth",er.PRIVACY_UNLISTED="link",er.PROMOTE="megaphone",er.PURCHASES="price_tag",er.PURCHASE_SUPER_CHAT="super_chat",er.PURCHASE_SUPER_STICKER="super_sticker",
er.QUESTION_ANSWER="message_bubble_question",er.QUEUE_PLAY_LAST="list_queue_last",er.QUEUE_PLAY_NEXT="list_play_arrow",er.REMIX_FILLED="youtube_shorts_remix",er.REMOVE="bar_circle",er.REMOVE_CIRCLE="bar_circle",er.REMOVE_CIRCLE_OUTLINE="bar_circle",er.REMOVE_DONE="check_double_off",er.REMOVE_FROM_HISTORY="bar_circle",er.REMOVE_FROM_PLAYLIST="bar_circle",er.REMOVE_MODERATOR="shield_off",er.REPLAY="arrow_circle",er.REPLAY_10="skip_back_10",er.REPORT_PROBLEM="alert_triangle",er.SAD="face_sad",er.SAVE_PLAYLIST=
uY("library_add"),er.SCHEDULE="clock",er.SCHOOL="creator_academy",er.SCREEN_FULLSCREEN="screen_full",er.SEARCH_HISTORY="arrow_time",er.SELL="price_tag",er.SETTINGS="gear",er.SETTINGS_CAIRO="gear_cairo",er.SETTINGS_LIGHT="gear",er.SETTINGS_MATERIAL="gear",er.SHARE_ARROW="share",er.SHIELD_WITH_AVATAR="person_shield",er.SHOPPING_BAG="bag",er.SHOPPING_BAG_CAIRO="bag_cairo",er.SHOPPING_CART="cart",er.SHORTS_COMMENT="youtube_shorts_message_bubble_right",er.SHORTS_DISLIKE="youtube_shorts_thumb_down",er.SHORTS_LIKE=
"youtube_shorts_thumb_up",er.SHORTS_SHARE="youtube_shorts_share",er.SHUFFLE="arrow_shuffle",er.SLOW_MODE_OFF="message_bubble_left",er.SOCIAL="people",er.SORT="menu_sort",er.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",er.SPEED_1X="1x",er.SPEED_1_POINT_2X="1_point_2x",er.SPEED_1_POINT_5X="1_point_5x",er.SPEED_1_POINT_8X="1_point_8x",er.SPEED_2X="2x",er.SPEED_POINT_2X="point_2x",er.SPEED_POINT_8X="point_8x",er.SPONSORSHIP_STAR=_.a("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",er.STAFF_PICK=
"spotlight",er.START_DVR="add",er.STAR_BORDER="star",er.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",er.STICKER_EMOTICON="face_happy",er.STOP_DVR="stop",er.SUBSCRIBE="youtube_logo_icon",er.SUBSCRIBE_PLUS="add_cairo",er.SUBSCRIPTION_MANAGER="gear",er.SUPERVISOR_ACCOUNT="people",er.SUPER_CHAT_FOR_GOOD="hands_heart",er.SWAP_HORIZ="arrow_swap_horizontal",er.SWITCH_ACCOUNTS="person_account",er.TAB_ACCOUNT="person",er.TAB_ACTIVITY="bell",er.TAB_BOOKMARK="bookmark",er.TAB_EXPLORE="compass",er.TAB_HOME=
"home",er.TAB_HOME_CAIRO="home_cairo",er.TAB_INBOX="mail",er.TAB_LIKED="thumb_up",er.TAB_MUSIC_PREMIUM="youtube_music",er.TAB_SHORTS="youtube_shorts",er.TAB_SHORTS_CAIRO="youtube_shorts_cairo",er.TAB_SUBSCRIPTIONS="subscriptions",er.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",er.TAB_TRENDING="fire",er.TIMER="stopwatch",er.TRAILER="youtube_originals",er.TRENDING="fire",er.TRENDING_CAIRO="fire_cairo",er.TRENDING_UP="rating_up",er.TROPHY="trophy",er.TROPHY_CELEBRATIONS="fireworks",er.TUNE="adjust",
er.UNBLOCK_USER="bar_circle",er.UNLIMITED="youtube_logo_icon",er.UNPLUGGED_LIVE_GUIDE="radar_live",er.UNPLUGGED_SPORTS="eye_off",er.UPLOADS="library",er.UP_ARROW="arrow_up",er.VERTICAL_ALIGN_BOTTOM="download",er.VERY_HAPPY="face_very_happy",er.VERY_SAD="face_very_sad",er.VIDEOGAME_ASSET="gaming",er.VIDEOS="play_arrow_circle",er.VIDEO_CALL="video_camera_add",er.VIDEO_LIBRARY_WHITE="library",er.VIDEO_YOUTUBE="youtube_logo_icon",er.VIEW_LIST="list_view",er.VIEW_LIST_CAIRO="list_view_cairo",er.VISIBILITY=
"eye",er.VISIBILITY_OFF="eye_off",er.VOLUME_MUTE="volume_off",er.VOLUME_UP="volume_on",er.WALLPAPER="image",er.WARNING="alert_triangle",er.WATCH_HISTORY="arrow_time",er.WATCH_HISTORY_CAIRO="arrow_time_cairo",er.WATCH_LATER="clock",er.WATCH_LATER_CAIRO="clock_cairo",er.WATCH_RELATED_MIX="youtube_mix",er.WHAT_TO_WATCH="home",er.YOUTUBE_MUSIC_MONOCHROME="youtube_music",er.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",er.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",er.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",er.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",er.YT_OUTLINE_MUSIC_24="music",er);var OZ={},elH=(OZ.ACCESS_TIME="clock",OZ.ACCOUNT_BOX="person_square",OZ.ACCOUNT_BOX_CAIRO="person_square",OZ.ACCOUNT_CIRCLE="person_circle",OZ.ACCOUNT_CIRCLE_CAIRO="person_circle",OZ.ACCOUNT_LINKED="account_link",OZ.ACCOUNT_UNLINKED="account_link",OZ.ADD_CIRCLE="add_circle",OZ.ADD_FRIEND="person_child",OZ.ADD_TO_LIBRARY="bookmark",OZ.ADD_TO_PLAYLIST="add",OZ.ADD_TO_QUEUE_TAIL="queue",OZ.ADD_TO_REMOTE_QUEUE="playlist_audio",OZ.ADD_TO_WATCH_LATER="clock",OZ.ADD_VIDEO_LINK="film_strip_add",OZ.ADMIN_PANEL_SETTINGS=
"gear",OZ.ALERT_WARN_RED="alert_triangle",OZ.ALIGN_LEFT="text_align_left",OZ.ARROWS_ALERT="arrow_split_alert",OZ.ARROW_BACK="arrow_left",OZ.ARROW_CIRCLE="arrow_counterclockwise",OZ.ARROW_CIRCLE_PLAY="replay",OZ.ARROW_CIRCLE_RIGHT="arrow_clockwise",OZ.ARROW_DIAGONAL="arrow_up_left",OZ.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",OZ.ARROW_DROP_DOWN="triangle_down",OZ.ARROW_DROP_UP="triangle_up",OZ.ARROW_FORWARD="arrow_right",OZ.ARROW_PAUSE="pause_history",OZ.ARROW_UNDO="undo",OZ.ARTICLE="text_page",OZ.ARTICLE_ALERT=
"text_page_alert",OZ.ARTICLE_CHECK="text_page_check",OZ.ARTICLE_CLARIFY="text_page_info",OZ.AUDIOTRACK="audio",OZ.AUDIO_BADGE="audio_badge",OZ.AUDIO_SURROUND="surround_sound",OZ.AVATAR_ANONYMOUS="person_circle",OZ.AVATAR_LOGGED_OUT="person_circle",OZ.BACK="arrow_left",OZ.BAR_CHART="chart_bar",OZ.BAR_CIRCLE="minus_circle",OZ.BAR_HORIZONTAL="minus",OZ.BLOCK="circle_slash",OZ.BLOCK_USER="circle_slash",OZ.BOOKMARK_BORDER="bookmark",OZ.BOX_OPEN_CHECK="quiz",OZ.BOX_PENCIL="square_pencil",OZ.BREAKING_NEWS_ALT_1=
"text_page_alert",OZ.BROADCAST="podcast",OZ.BROADCAST_CAIRO="podcast",OZ.BUG_REPORT="bug",OZ.CAMERA_ALT="camera",OZ.CAMPAIGN="megaphone",OZ.CANCEL="x_circle",OZ.CAPTIONS="closed_captions",OZ.CAST_ICON="chromecast",OZ.CAST_OUTLINE="chromecast",OZ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",OZ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",OZ.CHAT="text_bubble",OZ.CHAT_BUBBLE="bubble",OZ.CHECK_BOX="check_square",OZ.CHECK_BOX_OUTLINE_BLANK="square",OZ.CHECK_CIRCLE_FILLED="check_circle",OZ.CHECK_CIRCLE_OUTLINE=
"check_circle",OZ.CHECK_CIRCLE_THICK="check_circle",OZ.CHECK_DOUBLE="check_done",OZ.CHECK_DOUBLE_OFF="check_done_slash",OZ.CHEVRON_LEFT="chevron_left",OZ.CHEVRON_RIGHT="chevron_right",OZ.CHEVRON_RIGHT_CAIRO="chevron_right",OZ.CIRCLES_OVERLAP="account_link",OZ.CLAPPERBOARD_CAIRO="clapperboard",OZ.CLARIFY="text_page_info",OZ.CLOCK_ARROWS="clock_split",OZ.CLOCK_ARROWS_ALERT="clock_split_alert",OZ.CLOSED_CAPTION="closed_captions",OZ.CLOSED_CAPTION_SELECTED="closed_captions",OZ.CLOSE="x",OZ.CLOUD_UPLOAD=
"cloud_arrow_up",OZ.COLLAPSE="chevron_up",OZ.COLLAPSE_CAIRO="chevron_up",OZ.COLLECTION="square3d_stack",OZ.COLOR_LENS="paint_palette",OZ.COMMENT="text_bubble",OZ.CONSENT_SHIELD="person_shield",OZ.CONTENT_CUT="scissors",OZ.CONTENT_CUT_CAIRO="scissors",OZ.COURSE="graduation_cap",OZ.COURSE_CAIRO="graduation_cap",OZ.CREATION_LIVE="live",OZ.CREATION_POST="square_pencil",OZ.CREATION_UPLOAD="video",OZ.CREATION_UPLOAD_RED="upload",OZ.CREATOR_ACADEMY="graduation_cap",OZ.CREATOR_STUDIO="youtube_studio",OZ.DARK_THEME=
"theme",OZ.DELETE="trash_can",OZ.DELETE_SWEEP="trash_can",OZ.DESKTOP="laptop",OZ.DISLIKE="thumb_down",OZ.DISLIKE_SELECTED="thumb_down",OZ.DISMISSAL="x",OZ.DISMISS_QUEUE="playlist_x",OZ.DOGFOOD="pawprint",OZ.DOLLAR_SIGN="dollar_sign_circle",OZ.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",OZ.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",OZ.DOWN_ARROW="arrow_down",OZ.DO_NOT_DISTURB="circle_slash",OZ.DRAFT="document",OZ.EARTH="globe",OZ.EDIT="pencil",OZ.EMOJI="face_very_happy",OZ.EMOJI_FLAGS="flag",OZ.EMOJI_OBJECTS=
"lightbulb",OZ.EMOJI_PEOPLE="face_very_happy",OZ.EMOJI_RECENT="clock",OZ.EMPTY_HEART="heart",OZ.EMPTY_LIKE="thumb_up",OZ.ERROR_BLACK="alert_circle",OZ.ERROR_OUTLINE="alert_circle",OZ.ERROR_WHITE="alert_circle",OZ.EXIT_APP="arrow_in",OZ.EXIT_TO_APP="arrow_in",OZ.EXPAND="chevron_down",OZ.EXPAND_ALL="chevron_expand",OZ.EXPAND_CAIRO="chevron_down",OZ.EXPAND_LESS="chevron_up",OZ.EXPAND_MORE="chevron_down",OZ.EXPLORE="compass",OZ.EXPLORE_DESTINATION="compass",OZ.EXTERNAL_LINK="arrow_up_right",OZ.EYE_OFF=
"eye_slash",OZ.FAB_UPLOAD="upload",OZ.FACE_HAPPY_OUTLINE="face_happy",OZ.FACE_MEH="face_neutral",OZ.FACT_CHECK="text_page_check",OZ.FASHION_LOGO="fashion",OZ.FASHION_LOGO_CAIRO="fashion",OZ.FAVORITE="thumb_up",OZ.FEEDBACK="alert_bubble",OZ.FEEDBACK_CAIRO="alert_bubble",OZ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",OZ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",OZ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",OZ.FLAG_CAIRO="flag",OZ.FLASH_OFF="flash_slash",OZ.FLASH_ON="flash",OZ.FULL_HEART="heart",OZ.GAMING_LOGO=
"gaming",OZ.GAMING_LOGO_CAIRO="gaming",OZ.GO_TO_PAGE="arrow_right",OZ.GROUPS="person3",OZ.HAND_SWIPE_LEFT="gesture_swipe_left",OZ.HAND_SWIPE_RIGHT="gesture_swipe_right",OZ.HAPPY="face_happy",OZ.HEALTH_AND_SAFETY="shield_health",OZ.HEART_BOX="heart_cube",OZ.HELP="help_circle",OZ.HELP_CAIRO="help_circle",OZ.HELP_OUTLINE="help_circle",OZ.HIDE="circle_slash",OZ.INCOGNITO_CAIRO="incognito",OZ.INFINITY_ICON="infinity",OZ.INFO="info_circle",OZ.INFO_OUTLINE="info_circle",OZ.INSERT_CHART_OUTLINED="chart_bar_square",
OZ.INSERT_PHOTO="image",OZ.KEEP="pin",OZ.KEEP_OFF="pin_slash",OZ.KEYBOARD="keyboard",OZ.KEYBOARD_ARROW_DOWN="chevron_down",OZ.KEYBOARD_ARROW_UP="chevron_up",OZ.KIDS_BLOCK="circle_slash",OZ.LANGUAGE="globe",OZ.LAUNCH="arrow_up_right",OZ.LEARNING="lightbulb",OZ.LEARNING_CAIRO="lightbulb",OZ.LIBRARY_ADD="bookmark",OZ.LIBRARY_IMAGE="image_stack",OZ.LIBRARY_MUSIC="audio_square_stack",OZ.LIBRARY_OUTLINE="play_square_stack",OZ.LIBRARY_REMOVE="bookmark",OZ.LIBRARY_SAVED="check_square_stack",OZ.LIKES_PLAYLIST=
"thumb_up",OZ.LIKES_PLAYLIST_CAIRO="thumb_up",OZ.LIKE="thumb_up",OZ.LIKE_SELECTED="thumb_up",OZ.LIST_QUEUE="queue",OZ.LIVE_CAIRO="live",OZ.LIVE_UNLISTED="link",OZ.LOCATION_ON="location_pin",OZ.LOCATION_PIN="location_pin",OZ.LOCATION_POINT="location_pin",OZ.LOOP="repeat",OZ.LOOP_ACTIVE="repeat",OZ.LOOP_ONE="repeat1",OZ.LOOP_ONE_ACTIVE="repeat1",OZ.MEET="google_meet",OZ.MEH="face_neutral",OZ.MEMBERSHIPS="memberships",OZ.MEMBERS_ONLY_MODE_OFF="text_bubble",OZ.MENU_FILTER="filter",OZ.MESSAGE="text_bubble",
OZ.MESSAGE_BUBBLE_GEAR="bubble_gear",OZ.MESSAGE_BUBBLE_LEFT="text_bubble",OZ.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",OZ.MESSAGE_BUBBLE_OVERLAP="bubble_stack",OZ.MESSAGE_BUBBLE_QUESTION="help_bubble",OZ.MICROPHONE_ON="mic",OZ.MONETIZATION_ON="dollar_sign_circle",OZ.MONEY_FILL="dollar_sign_rectangle",OZ.MONEY_FILL_JPY="yen_sign_rectangle",OZ.MONEY_HAND="dollar_sign_circle_hand",OZ.MONEY_HEART="dollar_sign_heart",OZ.MOON_Z="sleep_timer",OZ.MORE_HORIZ="overflow_horizontal",OZ.MORE_VERT="overflow_vertical",
OZ.MUSIC="audio",OZ.MUSIC_CAIRO="audio",OZ.MUSIC_EXPLICIT_BADGE="explicit",OZ.MUSIC_NEW_RELEASE="audio_badge",OZ.MUSIC_NOTE_SYMBOL="audio",OZ.MUSIC_SCISSORS="audio_scissors",OZ.MUSIC_SHUFFLE="shuffle",OZ.MY_CHANNEL="person_circle",OZ.MY_LOCATION="location_pin",OZ.MY_VIDEOS="video",OZ.MY_VIDEOS_CAIRO="video",OZ.NEWS_CAIRO="news",OZ.NEWS_STORY="news",OZ.NEXT="chevron_right",OZ.NOTE_ADD="bubble_pencil",OZ.NOTIFICATIONS="bell",OZ.NOTIFICATIONS_ACTIVE="bell_waves",OZ.NOTIFICATIONS_CAIRO="bell",OZ.NOTIFICATIONS_DONE_CHECKMARK=
"check",OZ.NOTIFICATIONS_INBOX="bell",OZ.NOTIFICATIONS_NONE="bell",OZ.NOTIFICATIONS_OFF="bell_slash",OZ.NOT_INTERESTED="circle_slash",OZ.OFFICIAL_ARTIST_BADGE="audio",OZ.OFFLINE_CLOUD="cloud_slash",OZ.OFFLINE_DOWNLOAD="download",OZ.OFFLINE_DOWNLOAD_CAIRO="download",OZ.OFFLINE_PAUSE="pause",OZ.OPEN_IN_NEW="arrow_up_right",OZ.OUTLINE_ADJUST="adjust",OZ.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",OZ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",OZ.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",OZ.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",OZ.OUTLINE_BAG="bag",OZ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",OZ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",OZ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",OZ.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",OZ.PAID="dollar_sign_circle",OZ.PAUSE_OUTLINED="pause",OZ.PAYMENT="credit_card",OZ.PEOPLE="person_child",OZ.PEOPLE_2="person2_rectangle",OZ.PEOPLE_GROUP="person3",OZ.PEOPLE_NOTE="bubble_asterisk",OZ.PERSON_2="person2",OZ.PERSON_ACCOUNT="person_square_stack",OZ.PERSON_MINUS=
"person_x",OZ.PERSON_MUSIC="person_audio",OZ.PERSON_RADAR="person_waves",OZ.PERSON_RADAR_FILLED="person_waves",OZ.PERSON_SETTING="person_gear",OZ.PHONE="phone",OZ.PHONE_DOWNLOAD="mobile_arrow_down",OZ.PICTURE_IN_PICTURE="picture_in_picture",OZ.PLAYABLES_LOGO="playables",OZ.PLAYABLES_LOGO_CAIRO="playables",OZ.PLAYLISTS="playlist",OZ.PLAYLISTS_CAIRO="playlist",OZ.PLAYLIST_ADD_CHECK="bookmark",OZ.PLAY_ALL="play",OZ.PLAY_ARROW="play",OZ.PLAY_ARROW_CIRCLE="play_circle",OZ.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
OZ.PLAY_CIRCLE="play_circle",OZ.PLAY_OUTLINED="play_circle",OZ.PODCAST_ADD="podcast_add",OZ.PODCAST_CHECK="podcast_check",OZ.PRIVACY_INFO="shield_x",OZ.PRIVACY_PRIVATE="lock",OZ.PRIVACY_PUBLIC="globe",OZ.PRIVACY_UNLISTED="link",OZ.PROMOTE="megaphone",OZ.PURCHASES="price_tag",OZ.PURCHASE_SUPER_CHAT="super_chat",OZ.PURCHASE_SUPER_STICKER="super_sticker",OZ.QUESTION_ANSWER="help_bubble",OZ.QUESTION_CIRCLE="help_circle",OZ.QUEUE_PLAY_LAST="queue_last",OZ.QUEUE_PLAY_NEXT="playlist",OZ.QUOTATION_MARK="quote",
OZ.RADAR_LIVE="live",OZ.REMOVE="minus_circle",OZ.REMOVE_CIRCLE="minus_circle",OZ.REMOVE_CIRCLE_OUTLINE="minus_circle",OZ.REMOVE_FROM_HISTORY="minus_circle",OZ.REMOVE_FROM_PLAYLIST="minus_circle",OZ.REPLAY="arrow_counterclockwise",OZ.REPLAY_10="skip10_back",OZ.REPLAY_ARROW="replay",OZ.REPORT_PROBLEM="alert_triangle",OZ.RSS_OFF="rss_slash",OZ.SAD="face_sad",OZ.SAVE_PLAYLIST="bookmark",OZ.SCHEDULE="clock",OZ.SCHOOL="graduation_cap",OZ.SCREEN_DEFAULT="player_default",OZ.SCREEN_FULLSCREEN="player_full_enter",
OZ.SCREEN_LIGHT="ambient_mode",OZ.SCREEN_ROTATION="rotate_portrait",OZ.SCREEN_SWITCH="player_switch",OZ.SEARCH_CAIRO="search",OZ.SEARCH_HISTORY="history",OZ.SELL="price_tag",OZ.SETTINGS="gear",OZ.SETTINGS_CAIRO="gear",OZ.SETTINGS_LIGHT="gear",OZ.SETTINGS_MATERIAL="gear",OZ.SETTINGS_REMOTE="remote_waves",OZ.SHARE="share",OZ.SHARE_ARROW="share",OZ.SHARE_CAIRO="share",OZ.SHIELD="shield_x",OZ.SHIELD_OFF="shield_slash",OZ.SHIELD_WITH_AVATAR="person_shield",OZ.SHOPPING_BAG="bag",OZ.SHOPPING_BAG_CAIRO="bag",
OZ.SHOPPING_CART="cart",OZ.SHORTS_COMMENT="text_bubble",OZ.SHORTS_DISLIKE="thumb_down",OZ.SHORTS_LIKE="thumb_up",OZ.SHORTS_SHARE="share",OZ.SKIP_FORWARD_30="skip30_forward",OZ.SLASH_CIRCLE_RIGHT="circle_slash",OZ.SLOW_MODE_OFF="text_bubble",OZ.SOCIAL="person_child",OZ.SPARKLE="sparkles",OZ.SPARK_IMAGE="image_spark",OZ.SPARK_RADAR="spark_waves",OZ.SPARK_VIDEO="video_spark",OZ.SPEAKER_GROUP="speaker_stack",OZ.SPEAKER_OFF="speaker_slash",OZ.SPEED_1X="n1x",OZ.SPEED_1_POINT_2X="n1point2x",OZ.SPEED_1_POINT_5X=
"n1point5x",OZ.SPEED_1_POINT_8X="n1point8x",OZ.SPEED_2X="n2x",OZ.SPONSORSHIP_STAR="memberships",OZ.SPORTS="basketball",OZ.SPOTLIGHT="spotlight",OZ.STAFF_PICK="spotlight",OZ.START_DVR="add",OZ.STAR_BORDER="star",OZ.STAR_HALF="star_half_filled",OZ.STAR_SHOOTING="hype",OZ.STICKER="sticker",OZ.STICKER_EMOTICON="face_happy",OZ.STOP_DVR="stop",OZ.SUBSCRIBE="youtube",OZ.SUBSCRIBE_PLUS="add",OZ.SUBSCRIPTION_MANAGER="gear",OZ.SUPERSTAR="super_star",OZ.SUPERVISOR_ACCOUNT="person_child",OZ.SWAP_HORIZ="arrow_swap_horizontal",
OZ.SWITCH_ACCOUNTS="person_square_stack",OZ.TAB_ACCOUNT="person",OZ.TAB_ACTIVITY="bell",OZ.TAB_BOOKMARK="bookmark",OZ.TAB_EXPLORE="compass",OZ.TAB_HOME="home",OZ.TAB_HOME_CAIRO="home",OZ.TAB_INBOX="mail",OZ.TAB_LIKED="thumb_up",OZ.TAB_MUSIC_PREMIUM="youtube_music",OZ.TAB_SHORTS="shorts",OZ.TAB_SHORTS_CAIRO="shorts",OZ.TAB_SUBSCRIPTIONS="subscriptions",OZ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",OZ.TAB_TRENDING="trending",OZ.TARGET="target",OZ.TARGET_ADD="target_add",OZ.TEMPLATE_ADD="template_add",
OZ.TEXT="font",OZ.TIMER="stopwatch",OZ.TRENDING_CAIRO="trending",OZ.TRENDING_UP="arrow_trend_up",OZ.TROPHY_CAIRO="trophy",OZ.TROPHY_CELEBRATIONS="fireworks",OZ.TROPHY_STAR="star_trophy",OZ.TUNE="adjust",OZ.UNBLOCK_USER="minus_circle",OZ.UNFAVORITE="thumb_down",OZ.UNLIMITED="youtube",OZ.UNPLUGGED_LIVE_GUIDE="live",OZ.UNPLUGGED_SPORTS="eye_slash",OZ.UPLOADS="play_square_stack",OZ.UP_ARROW="arrow_up",OZ.VERTICAL_ALIGN_BOTTOM="chevron_down_end",OZ.VERTICAL_ALIGN_TOP="chevron_up_end",OZ.VERY_HAPPY="face_very_happy",
OZ.VERY_SAD="face_very_sad",OZ.VIDEOS="play_circle",OZ.VIDEO_CALL="video_camera_add",OZ.VIDEO_LIBRARY_WHITE="play_square_stack",OZ.VIDEO_QUALITY_4K="n4k",OZ.VIDEO_QUALITY_8K="n8k",OZ.VIDEO_YOUTUBE="youtube",OZ.VIEW_LIST_CAIRO="view_list",OZ.VIEW_MODULE="view_column3_row2",OZ.VISIBILITY="eye",OZ.VISIBILITY_OFF="eye_slash",OZ.VOLUME_DOWN="volume_min",OZ.VOLUME_MUTE="volume_mute",OZ.VOLUME_OFF="volume_mute",OZ.VOLUME_STABLE="stable_volume",OZ.VOLUME_UP="volume_max",OZ.WALLPAPER="image",OZ.WARNING="alert_triangle",
OZ.WATCH_HISTORY="history",OZ.WATCH_HISTORY_CAIRO="history",OZ.WATCH_LATER="clock",OZ.WATCH_LATER_CAIRO="clock",OZ.WATCH_RELATED_MIX="mix",OZ.WHAT_TO_WATCH="home",OZ.YOUTUBE_LINKED_TV="tv_mobile",OZ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",OZ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",OZ.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",OZ.YOUTUBE_SHORTS_ARROW_UP="arrow_up",OZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",OZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",OZ.YOUTUBE_SHORTS_OUTLINE_24=
"shorts",OZ);var OBF={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,
24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,
1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],
library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],
live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,
3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,
1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,
3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,
2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],
[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],
[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],
speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,
1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,
1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,
4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,
6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],
youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],
[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var EBq={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var JX1={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",
PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},EZ=function(l){this.iconUrlProvider=l};
EZ.prototype.resolveIcon=function(l,e){var O=JX1[l.iconName.toUpperCase()];O&&(l.iconName=O);var E=l.iconName;E=E.replace(/-/g,"_");l=Object.assign({},l,{iconName:this.mapIconTypeToStandardName(E,!!O)||E.toLowerCase()});if(_.a("enable_web_delhi_icons")||O){var J;return Ki8(EBq,l,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||c1d,e)}var z;return Ki8(OBF,l,((z=this.iconUrlProvider)==null?void 0:z.getYtStandardUrl)||H78,e)};
EZ.prototype.mapIconTypeToStandardName=function(l,e){return _.a("enable_web_delhi_icons")||e?elH[l.toUpperCase()]:lM0[l.toUpperCase()]};
EZ[Jf]=[_.MG(SAS)];var XZq=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),zl1=function(l){this.urlProvider=this.iconUrlProvider=l};
_.m(zl1,EZ);
zl1.prototype.resolveIcon=function(l,e){l.iconName==="youtube_logo"&&(l.iconName="yt-logo-updated");if(l.iconName==="youtube_premium_logo"||l.iconName==="youtube_red_logo")l.iconName="yt-logo-red-updated";var O=Object.assign({},l);l.iconName==="menu"&&(_.a("enable_web_delhi_icons")||(O.iconName="bars_3"),O.iconStyle="youtube_outline");l.iconSetName==="socialNetworksRound"&&(l.iconName==="mail"&&(O.iconName="email"),l.iconName==="embed"&&(O.iconSize=60));l.iconName==="more"&&(O.iconName="overflow_horizontal");
l.iconName==="fullscreen"&&(O.iconName="screen_full");l.iconName==="premium_standalone"&&(O.iconName="premium_standalone_cairo");_.a("enable_connect_icon_update_web")&&l.iconName==="account_linked"&&(O.iconName="circles_overlap_check",O.iconStyle="youtube_fill");_.a("enable_connect_icon_update_web")&&l.iconName==="account_unlinked"&&(O.iconName="circles_overlap",O.iconStyle="youtube_outline");XZq.has(l.iconName)&&(O.iconStyle="youtube_fill");_.a("enable_web_delhi_icons")&&l.iconName==="playlist_add"&&
(O.iconName="bookmark");l=Object.assign({},O,{iconName:(EZ.prototype.mapIconTypeToStandardName.call(this,O.iconName)||O.iconName).toLowerCase()});var E;return(l=Ki8(r8R,l,((E=this.urlProvider)==null?void 0:E.getUrl)||Fi8,e))?l:EZ.prototype.resolveIcon.call(this,O,e)};
zl1[Jf]=[_.MG(SAS)];_.bBq=1;var J0=function(){};
_.m(J0,Y_);J0.prototype.resolveCommand=function(l){var e,O;return _.V(function(E){e=_.I(l,iNq);if(!e)return E.return();O=Number(e.enableDelayedPacfLoggingTvMs);if(isNaN(O)){var J=$m();FTR(J,e,0)}else FTR($m(),e,O);_.Cl(E)})};_.X6=function(){};
_.m(_.X6,Y_);
_.X6.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d;return _.V(function(g){E=_.I(l,wnq);z=(J=e.form)==null?void 0:J.element;Z=(M=z)==null?void 0:M.closest("ytd-enforcement-message-view-model");if(!E||!Z)return g.return();O.allowAdsAction||(u=E.fundingChoiceInstructionPageUrl,O.allowAdsAction=new qPi(window,_.YP(u)));var w=O.allowAdsAction;w.wallElement=Z;w.allowAdsPopup.style.setProperty("display","flex","important");var n=w.scrollManager;n.originalBodyOverflow=n.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow;n.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow=
"hidden";w.wallElement.style.setProperty("display","none","important");Jn1(w.accessibilityManager,w.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((d=O.allowAdsAction.allowAdsPopup)&&d instanceof HTMLElement)for(w=_.b(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),n=w.next();!n.done;n=w.next()){var k=_.b(n.value);n=k.next().value;k=k.next().value;d.style.setProperty(n,k)}_.Cl(g)})};
_.X6.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var zy=function(){};
_.m(zy,Y_);zy.prototype.resolveCommand=function(l){var e;return _.V(function(O){e=_.I(l,mBS);if(!e)return O.return();ajt(l);_.Cl(O)})};var bM=function(l){this.JSC$15103_commandHandler=l};
_.m(bM,Y_);
bM.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1){O=_.I(l,eoS);if((E=O)==null||!E.text||!navigator.clipboard)return g.return();_.b1(g,2);return _.C(g,navigator.clipboard.writeText(O.text),4)}if(g.nextAddress!=2){if(!O.successActions||O.successActions.length===0)return g.return();J=_.b(O.successActions);for(z=J.next();!z.done;z=J.next())M=z.value,e.JSC$15103_commandHandler.resolveCommand(M);return _.Q2(g,0)}_.u1(g);if(!O.failureActions||O.failureActions.length===
0)return g.return();Z=_.b(O.failureActions);for(u=Z.next();!u.done;u=Z.next())d=u.value,e.JSC$15103_commandHandler.resolveCommand(d);_.Cl(g)})};
bM[Jf]=[_.Zh];var Mw=function(l){this.JSC$15107_commandHandler=l};
_.m(Mw,Y_);
Mw.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n;return _.V(function(k){switch(k.nextAddress){case 1:E=_.I(l,sTS);if(!E)return k.return();_.b1(k,2);if(!E.imageBytes&&!E.imageUrl)throw Error("xi");if(!E.imageUrl){if(E.imageBytes){z=E.imageBytes;M=z.replace(/-/g,"+").replace(/_/g,"/");var y=TKp(M);J=_.aH(y)}k.jumpTo(4);break}return _.C(k,fetch(E.imageUrl),5);case 5:return Z=k.yieldResult,_.C(k,Z.blob(),6);case 6:u=k.yieldResult,J=_.aH(u);case 4:w=(d=e)==null?void 0:(g=d.form)==
null?void 0:g.element;n=document.createElement("a");yS(n,J);w.appendChild(n);n.download="";n.click();w.removeChild(n);URL.revokeObjectURL(_.W2(J));E.successCommand&&O.JSC$15107_commandHandler.resolveCommand(E.successCommand);_.Q2(k,0);break;case 2:_.u1(k),E.errorCommand&&O.JSC$15107_commandHandler.resolveCommand(E.errorCommand),_.Cl(k)}})};
Mw[Jf]=[_.Zh];var Vr=function(l){this.store=l};
_.m(Vr,Y_);Vr.prototype.resolveCommand=function(l){var e=this,O,E,J;return _.V(function(z){E=(O=_.I(l,_.W40))==null?void 0:O.entityBatchUpdate;if(!E)return z.jumpTo(0);J=Object.assign({},E,{mutations:[].concat(_.kA(E.mutations||[]))});return _.C(z,_.IM(J,e.store),0)})};var M60=function(l){this.JSC$15114_commandHandler=l;this.feedbackDialogMap=new Map};
M60.prototype.openDialog=function(l,e){(l=this.feedbackDialogMap.get(l))&&this.JSC$15114_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:l}},e)};
M60[Jf]=[_.Zh];var Zf=new _.Xa("FEEDBACK_CONTROLLER_TOKEN");var uM=new _.Xa("APP_STORE_TOKEN");var C8=function(l,e){this.store=l;this.controller=e};
_.m(C8,Y_);C8.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N;return _.V(function(t){if(t.nextAddress==1){E=_.I(l,_.Yx);if(z=(J=E)==null?void 0:J.contentId)for(Z=_.b(((M=E)==null?void 0:M.actions)||[]),u=Z.next();!u.done;u=Z.next())d=u.value,V61(O,d,z);n=(g=e)==null?void 0:(w=g.form)==null?void 0:w.element;return _.C(t,_.ii(n,[l]).catch(function(){}),2)}k=t.yieldResult;
((y=k)==null?0:(c=y.data)==null?0:(f=c.feedbackResponses)==null?0:f.length)&&(h=(P=k.data.feedbackResponses[0])==null?void 0:P.followUpDialog)&&z&&(N=O.controller)!=null&&N.feedbackDialogMap.set(z,h);_.Cl(t)})};
var V61=function(l,e,O){var E=_.I(e,_.nz);if(E){E=_.b(E.commands||[]);for(var J=E.next();!J.done;J=E.next())V61(l,J.value,O)}_.I(e,_.Kp)&&l.store.dispatch(_.IK("commandEntity",sSp(O),{key:O,command:e}));_.I(e,dJ0)&&l.store.dispatch(_.IK("commandEntity",sSp(O),{key:O,command:e}))};
C8[Jf]=[uM,Zf];var oO=function(l){this.controller=l};
_.m(oO,Y_);oO.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M;return _.V(function(Z){E=_.I(l,_.Nr);z=(J=E)==null?void 0:J.targetId;if(((M=E)==null?void 0:M.signal)!=="TELL_US_WHY"||!z)return Z.return();O.controller.openDialog(z,e);_.Cl(Z)})};
oO[Jf]=[Zf];var $O=function(l){this.store=l};
_.m($O,Y_);$O.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d;return _.V(function(g){E=_.I(l,XEg);z=(J=E)==null?void 0:J.contentId;u=(M=e)==null?void 0:(Z=M.form)==null?void 0:Z.element;d=_.ii(u,[l]);z&&O.undo(z);return _.C(g,d,0)})};
$O.prototype.undo=function(l){this.store.dispatch(_.IK("commandEntity",sSp(l),{key:l,command:void 0}))};
$O[Jf]=[uM];var Wj=function(l){this.JSC$15129_commandHandler=l};
_.m(Wj,Y_);Wj.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d;return _.V(function(g){O=_.I(l,crk);E=O.flowStateKey;J=O.validationFailureCommand;z=O.submitValidFormCommand;M=eb(_.ZL,[E||""]);Z=_.I(M,fmq);((u=Z)==null?0:u.isValid)&&z&&e.JSC$15129_commandHandler.resolveCommand(z);((d=Z)==null?0:d.isValid)||!J||e.JSC$15129_commandHandler.resolveCommand(J);_.Cl(g)})};
Wj[Jf]=[_.Zh];var dH=function(l){this.innertubeTransportService=l};
_.m(dH,Y_);dH.prototype.resolveCommand=function(l,e){var O=this,E;return _.V(function(J){return _.C(J,_.Qh(O.innertubeTransportService,l,(E=e)==null?void 0:E.form).then(function(z){var M,Z;e==null||(M=e.commandController)==null||(Z=M.onSuccess)==null||Z.call(M,l,z)},function(z){var M,Z;
e==null||(M=e.commandController)==null||(Z=M.onServerError)==null||Z.call(M,l,z)}),0)})};
dH[Jf]=[_.Um];var gH=function(){};
_.m(gH,Y_);gH.prototype.resolveCommand=function(l){var e,O,E,J;return _.V(function(z){if(e=_.I(l,_.Y10)){if(O=e.gtmId)E=_.hT("GL",""),_.fQ(O,E);(J=e.gtmData)&&_.R3(J)}_.Cl(z)})};var iM=function(l,e){this.innertubeTransportService=l;this.JSC$15140_actionRouter=e};
_.m(iM,Y_);iM.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){O=_.I(l,PY0);if(!O)return J.return();E=O.command;if(!E)return J.return();e.JSC$15140_actionRouter.triggerAction("yt-insert-rich-section-action",O);return _.C(J,_.Qh(e.innertubeTransportService,E,{disableCache:!0}),0)})};
iM[Jf]=[_.Um,O5];GAx.bind(null,hQ);var ZBH=GAx.bind(null,DPS);PcT.bind(null,hQ);var uEx=PcT.bind(null,DPS);YFM.bind(null,hQ);var CK0=YFM.bind(null,DPS);var wH=function(){};
_.m(wH,Y_);
wH.prototype.resolveCommand=function(l){var e,O,E,J,z,M,Z,u,d,g;return _.V(function(w){e=_.I(l,WyH);if(!e)return w.return();E=((O=e.operations)==null?void 0:O.operations)||[];J=_.b(E);for(z=J.next();!z.done;z=J.next())if(M=z.value,M.insertItemSectionContent){var n=M.insertItemSectionContent,k=n.contents||[];n.insertByPositionInSection?ZBH(n.insertByPositionInSection.sectionTargetId,k,n.insertByPositionInSection.position):n.insertByRelativePositionInSection&&n.insertByRelativePositionInSection.sectionTargetId&&n.insertByRelativePositionInSection.itemTargetId&&
uEx(n.insertByRelativePositionInSection.sectionTargetId,n.insertByRelativePositionInSection.itemTargetId,k,n.insertByRelativePositionInSection.relativePosition)}else M.replaceSection?(n=M.replaceSection,k={},n.replaceByTargetId?k=n.replaceByTargetId:n.replaceByGroupId&&(k={targetId:n.replaceByGroupId.groupId,newContent:n.replaceByGroupId.newContent,undoKey:""}),k.newContent&&xPq(k.targetId,{continuationItems:[k.newContent]})):M.removeItem?(n=M.removeItem,n.removeByTargetId&&n.sectionTargetId&&CK0(n.sectionTargetId,
n.removeByTargetId.targetIds||[])):M.removeSection&&(M.removeSection.removeByTargetId?(Z=void 0,oB1(((Z=M.removeSection)==null?void 0:Z.removeByTargetId.targetIds)||[])):M.removeSection.removeByGroupId&&(u=void 0,oB1(((u=M.removeSection)==null?void 0:u.removeByGroupId.groupIds)||[])));g=((d=e.operations)==null?void 0:d.scrollConfig)||{};$Kq(g);_.Cl(w)})};
var oB1=function(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next())xPq(e.value,{continuationItems:[]})},$Kq=function(l){if(l.scrollToItem){var e=l.scrollToItem.item||{},O=e.itemTargetId;
e=e.sectionTargetId;if(O&&e){var E=document.querySelector("[data-target-id="+e+"]"),J=E==null?void 0:E.querySelector("[data-target-id="+O+"]");E&&J&&setTimeout(function(){var z=J.offsetTop-E.offsetTop,M;if(((M=l.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_CENTER")z-=E.offsetHeight/2,z+=J.offsetHeight/2;else{var Z;((Z=l.scrollToItem)==null?void 0:Z.scrollPosition)==="SCROLL_POSITION_END"&&(z-=E.offsetHeight,z+=J.offsetHeight)}E.scroll({top:z,behavior:"smooth"})},100)}}};var A0=new _.Xa("CLIENT_NAME_TOKEN");var WQS=new _.Xa("DEFAULT_STORE_EXPIRATION_TOKEN");var wGW=new _.Xa("CLIENT_LOCATION_SERVICE_TOKEN");var n8=function(l,e,O){this.clientName=l||_.hT("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=e||_.G_.getInstance();this.JSC$15168_commandHandler=O||_.n4.instance};
_.m(n8,Y_);n8.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){E=(O=_.I(l,kvF))==null?void 0:O.onComplete;e.clientLocationService.clearLocationPlayabilityToken(e.clientName);E&&e.JSC$15168_commandHandler.resolveCommand(E);_.Cl(J)})};
n8[Jf]=[A0,wGW,_.Zh];var aO=function(l){this.innertubeTransportService=l};
_.m(aO,Y_);aO.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M;return _.V(function(Z){z=(E=e)==null?void 0:(J=E.form)==null?void 0:J.element;return _.C(Z,_.Qh(O.innertubeTransportService,l,(M=e)==null?void 0:M.form).then(function(u){H8T(z,new CustomEvent("yt-service-request-completed"),{data:u},_.hT("openPopupConfig"))}),0)})};
aO[Jf]=[_.Um];var kO=function(){};
_.m(kO,Y_);kO.prototype.resolveCommand=function(l){var e,O;return _.V(function(E){e=_.I(l,GPF);O=document.querySelector("mini-app-container-view-model");if(!e||!O)return E.return();e.isPlaying?O.dispatchEvent(new Event("play")):O.dispatchEvent(new Event("pause"));_.Cl(E)})};var IO=function(){};
_.m(IO,Y_);IO.prototype.resolveCommand=function(l){var e,O,E,J,z,M,Z;return _.V(function(u){e=_.I(l,TtC);if((O=e)==null||!O.paramKeys)return u.return();E=e.paramKeys;J=_.rk(window.location.href);z=_.b(E);for(M=z.next();!M.done;M=z.next())Z=M.value,J.JSC$8068_queryData_.remove(Z);window.history.replaceState(window.history.state,document.title,J.toString());_.Cl(u)})};var dKS=function(){this.dropdownMap=new Map};_.gB1=new _.Xa("DROPDOWN_CONTROLLER_TOKEN");var mJ=function(l){this.controller=l};
_.m(mJ,Y_);mJ.prototype.resolveCommand=function(l){var e=this,O,E,J,z;return _.V(function(M){O=_.I(l,WV1);if(!O)return M.return();E=O;J=E.dropdownId;z=E.selectedOptionIndex;if(J===void 0||z===void 0)return M.return();var Z=e.controller.dropdownMap.get(J);Z&&Z(z);_.Cl(M)})};
mJ[Jf]=[_.gB1];var yr=function(l){this.controller=l};
_.m(yr,Y_);yr.prototype.resolveCommand=function(l){var e=this,O;return _.V(function(E){return(O=_.I(l,cIH))?_.C(E,e.controller.closeDialog(),0):E.return()})};
yr[Jf]=[_.KC];var p8=function(l){this.controller=l};
_.m(p8,Y_);p8.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){O=_.I(l,oNi);if(!O)return J.return();var z,M=O.panelIdentifier||((z=O.identifier)==null?void 0:z.tag);if(!M)throw Error("yi");return(E=M)?_.C(J,e.controller.hidePanel(E),0):J.jumpTo(0)})};
p8[Jf]=[_.ye];var K8=function(l,e){this.innertubeTransportService=l;this.controller=e};
_.m(K8,Y_);K8.prototype.resolveCommand=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return O=_.I(l,$DS),(E=O)!=null&&E.panelId?_.C(M,e.controller.getReloadContinuation(O.panelId),2):M.return();if(M.nextAddress!=3)return(J=M.yieldResult)?_.C(M,_.Qh(e.innertubeTransportService,l,{continuation:J}),3):M.return();z=M.yieldResult;return _.C(M,e.controller.updatePanel(O.panelId,z.content,!1),0)})};
K8[Jf]=[_.Um,_.ye];var jr=function(l,e,O){this.innertubeTransportService=l;this.JSC$15204_screenManager=e;this.JSC$15204_commandHandler=O};
_.m(jr,Y_);
jr.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1){O=_.I(l,_.JfS);if(!O)return u.return();if(O.commands)for(E=_.b(O.commands),J=E.next();!J.done;J=E.next())z=J.value,e.JSC$15204_commandHandler.resolveCommand(z,{disableClickTracking:!0});M=_.cf(l.clickTrackingParams);_.on(e.JSC$15204_screenManager,21760,M,{layer:7,parentLayer:0});return _.C(u,_.Qh(e.innertubeTransportService,l),2)}Z=u.yieldResult;if(!Z)return u.return();e.JSC$15204_screenManager.graftServerVe(Z.trackingParams,M,
7);_.Cl(u)})};
jr[Jf]=[_.Um,_.Hu,_.Zh];var Hj=new _.Xa("PANEL_LOADING_STRATEGY_TOKEN");var cj=function(l,e){this.controller=l;this.panelLoadingStrategy=e};
_.m(cj,Y_);
cj.prototype.resolveCommand=function(l,e){var O=this,E,J,z;return _.V(function(M){E=_.I(l,QTk);if((J=E)==null||!J.panelLoadingStrategy)return M.return();z=function(Z){var u,d,g,w,n,k,y,c,f;return _.V(function(P){d=_.I((u=Z.dialogViewModel)==null?void 0:u.header,dSR);g={viewModel:Z.dialogViewModel};w={};if(y=_.a("web_enable_dialog_header_label")?(n=d)==null?void 0:(k=n.headline)==null?void 0:k.content:void 0)w.ariaLabel=y;E.dismissOnBackgroundTap===!1&&(w.isModal=!0);return Z.dialogViewModel?_.C(P,
O.controller.openDialog(g,(c=e)==null?void 0:(f=c.form)==null?void 0:f.element,w),0):P.return()})};
return _.C(M,O.panelLoadingStrategy.execute({command:l,data:E.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:4}}),0)})};
cj[Jf]=[_.KC,Hj];var F6=function(l,e,O){this.innertubeTransportService=l;this.controller=e;this.JSC$15224_screenManager=O};
_.m(F6,Y_);
F6.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n,k,y;return _.V(function(c){switch(c.nextAddress){case 1:E=_.I(l,_.UU);if(!E)return c.return();var f,P=E.panelIdentifier||((f=E.identifier)==null?void 0:f.tag);if(!P)throw Error("yi");J=P;return _.C(c,O.controller.isVisible(J,!0),2);case 2:if((z=c.yieldResult)&&E.blockIfPanelOpen)return c.return();u=(Z=(M=O.controller).getPanelContent)==null?void 0:Z.call(M,J);if(!(f=u))if(E){var h;f=((h=E.globalConfiguration)==null?void 0:h.initialState)||
E.engagementPanel;if(h=!f)h=!!(E==null?0:(P=E.engagementPanelPresentationConfigs)==null?0:P.engagementPanelPopupPresentationConfig);h&&(f=_.hz8(E.panelIdentifier,E.identifier))}else f=void 0;d=f;g=E.engagementPanelPresentationConfigs;w=E.engagementPanelExtras;return _.C(c,O.controller.showPanel(J,d,g,w,(n=e)==null?void 0:(k=n.form)==null?void 0:k.element),3);case 3:if(!E.globalConfiguration){c.jumpTo(0);break}_.on(O.JSC$15224_screenManager,32633);return _.C(c,_.Qh(O.innertubeTransportService,l),5);
case 5:return y=c.yieldResult,O.JSC$15224_screenManager.graftServerVe(y.trackingParams),_.C(c,O.controller.updatePanel(J,y.content,!0,w,void 0,y.updatePanelContinuationData),0)}})};
F6[Jf]=[_.Um,_.ye,_.Hu];var f8=function(l,e){this.controller=l;this.panelLoadingStrategy=e};
_.m(f8,Y_);f8.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u;return _.V(function(d){E=_.I(l,_.mM);if((J=E)==null||!J.panelLoadingStrategy)return d.return();Z=iB1(O.controller,(z=e)==null?void 0:(M=z.form)==null?void 0:M.element);u=function(g){return _.V(function(w){return g.sheetViewModel?_.C(w,O.controller.openSheet({viewModel:g.sheetViewModel},Z),0):w.return()})};
return _.C(d,O.panelLoadingStrategy.execute({command:l,data:E.panelLoadingStrategy,renderFn:u,createScreenConfig:{layer:0}}),0)})};
f8[Jf]=[_.pC,Hj];var RO=function(l,e){this.controller=l;this.JSC$15232_commandHandler=e};
_.m(RO,Y_);RO.prototype.resolveCommand=function(l,e){var O=this,E,J,z;return _.V(function(M){if(M.nextAddress==1){E=_.I(l,inx);var Z=_.I(E.showCommand,_.UU),u,d,g=(d=Z==null?void 0:Z.panelIdentifier)!=null?d:Z==null?void 0:(u=Z.identifier)==null?void 0:u.tag;if(!g)throw Error("zi");J=g;return _.C(M,O.controller.isVisible(J),2)}return(z=M.yieldResult)?_.C(M,O.controller.hidePanel(J),0):_.C(M,O.JSC$15232_commandHandler.resolveCommand(E.showCommand,e),0)})};
RO[Jf]=[_.ye,_.Zh];var Ty=function(l,e,O){this.innertubeTransportService=l;this.controller=e;this.JSC$15235_screenManager=O};
_.m(Ty,Y_);
Ty.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2;return _.V(function($V){switch($V.nextAddress){case 1:return E=O=_.I(l,w0S),J=E.targetPanelIdentifier,z=E.contentSourcePanelIdentifier,M=E.globalConfiguration,((Z=J)==null?0:Z.tag)&&((u=z)==null?0:u.tag)?M?_.C($V,e.controller.showPanel(J.tag,_.hz8(J.tag,J),void 0,void 0,void 0),5):_.C($V,(n=(w=e.controller).getPanel)==null?void 0:n.call(w,z.tag),4):$V.return();case 4:k=$V.yieldResult;d=(y=k)==null?void 0:
(f=(c=y).getPanelContent)==null?void 0:f.call(c);$V.jumpTo(3);break;case 5:return _.C($V,_.Qh(e.innertubeTransportService,l),6);case 6:P=$V.yieldResult,((h=P)==null?0:h.trackingParams)&&e.JSC$15235_screenManager.graftServerVe(P.trackingParams),d=(N=P)==null?void 0:N.content,g=(t=P)==null?void 0:t.updatePanelContinuationData;case 3:if(D=(r=d)==null?void 0:r.engagementPanelSectionListRenderer)return _.C($V,e.controller.showPanel(J.tag,void 0,void 0,void 0,void 0,{content:D.content,secondaryHeaderContent:(b2=
D.header)!=null?b2:{},targetId:D.targetId},g),0);$V.jumpTo(0)}})};
Ty[Jf]=[_.Um,_.ye,_.Hu];var sZ=function(l){this.JSC$15242_commandHandler=l};
_.m(sZ,Y_);
sZ.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return(O=_.I(l,jaS))?_.C(u,_.dC(),2):u.return();E=u.yieldResult;if(!E)return u.return();var d=E,g=(J=O)==null?void 0:J.languageCode,w=(z=O)==null?void 0:z.isAutoTranslated;d.getVideoData&&_.tL2(d).length&&((g=vcx(d,g,w))?d.setOption("captions","track",g):(d.setOption("captions","stickyLoading",{}),d.setOption("captions","track",{})));M=E.isSubtitlesOn()?_.ml("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.ml("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Z=_.Xv(M);e.JSC$15242_commandHandler.resolveCommand(Z);_.Cl(u)})};
sZ[Jf]=[_.Zh];var Gy=function(l,e){this.shortsPlayerPromise=l;this.JSC$15246_commandHandler=e};
_.m(Gy,Y_);
Gy.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1)return(O=_.I(l,q7S))?_.C(g,e.shortsPlayerPromise,2):g.return();E=g.yieldResult;var w=NK2(E);w!=null&&w.length||(E.loadModule("captions"),w=NK2(E));J=w;if((z=J)==null||!z.length)return M=_.ml("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Z=_.Xv(M),e.JSC$15246_commandHandler.resolveCommand(Z),g.return();E.toggleSubtitles();u=E.isSubtitlesOn()?_.ml("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.ml("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.Xv(u);e.JSC$15246_commandHandler.resolveCommand(d);_.Cl(g)})};
Gy[Jf]=[_.cxF,_.Zh];var Bj=function(l){this.JSC$15249_playerPromise=l};
_.m(Bj,Y_);Bj.prototype.resolveCommand=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return(O=_.I(l,dDS))?_.C(M,e.JSC$15249_playerPromise,2):M.return();E=M.yieldResult;J=E.getVideoData().video_id;O.videoId===J&&(z=Number(O.offsetFromVideoStartMilliseconds),z>=0&&E.seekTo(z/1E3));_.Cl(M)})};
Bj[Jf]=[_.CT];var wZq=_.iH("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Pj=function(l){this.store=l};
_.m(Pj,Y_);
var AXq=function(l){var e,O,E,J;return _.V(function(z){if(z.nextAddress==1)return e=_.hT("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,O=_.hT("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,E=e||O,l.mainAppPlayer=new DT(E),_.C(z,l.mainAppPlayer.api,2);J=z.yieldResult;J.addEventListener("onStateChange",l.JSC$15253_playerStateChangeListener.bind(l));document.addEventListener("yt-page-data-updated",l.pauseOnNavigation.bind(l));window.addEventListener("state-navigatestart",
l.pauseOnNavigation.bind(l));_.Cl(z)})};
Pj.prototype.JSC$15253_playerStateChangeListener=function(l){switch(l){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"}nBq(this)};
var nBq=function(l){l.store.dispatch(_.IK("sfvAudioItemCurrentlyPlayingEntity",wZq,{key:wZq,externalVideoId:l.externalVideoId,sfvAudioItemPlaybackState:l.playbackState,nowPlayingEntityValue:l.nowPlayingEntityValue}))};
Pj.prototype.pauseOnNavigation=function(){var l=this,e,O,E,J;return _.V(function(z){if(z.nextAddress==1){if(!l.mainAppPlayer){var M=new _.Hk("Error: mainAppPlayer is unavailable",l.mainAppPlayer);_.UW(M);return z.return()}return _.C(z,l.mainAppPlayer.api,2)}e=z.yieldResult;E=(O=e)==null?void 0:O.getPlayerState();E!==1||(J=e)!=null&&J.pauseVideo();_.Cl(z)})};
Pj.prototype.playVideo=function(l,e,O){var E=this,J,z;return _.V(function(M){if(M.nextAddress==1)return _.C(M,(J=E.mainAppPlayer)==null?void 0:J.api,2);z=M.yieldResult;if(!E.mainAppPlayer||!z){var Z=new _.Hk("Error: mainAppPlayer is unavailable",E.mainAppPlayer);_.UW(Z);return M.return()}return _.C(M,E.mainAppPlayer.loadVideoWithPlayerVars({videoId:E.externalVideoId,audio_only:"1",start:l/1E3,end:l/1E3+e,player_params:O}),0)})};
Pj.prototype.pauseVideo=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1){if(!l.mainAppPlayer){var J=new _.Hk("Error: mainAppPlayer is unavailable",l.mainAppPlayer);_.UW(J);return E.return()}return _.C(E,l.mainAppPlayer.api,2)}e=E.yieldResult;(O=e)==null||O.pauseVideo();_.Cl(E)})};
Pj.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t;return _.V(function(r){if(r.nextAddress==1)return O=_.I(l,YSS),J=(E=O)==null?void 0:E.nowPlayingEntityValue,M=(z=O)==null?void 0:z.externalVideoId,w=Number((g=(Z=O)==null?void 0:(u=Z.defaultStartPoints)==null?void 0:(d=u[0])==null?void 0:d.offsetMs)!=null?g:"0"),P=Number((f=(n=O)==null?void 0:(k=n.defaultStartPoints)==null?void 0:(y=k[0])==null?void 0:(c=y.duration)==null?void 0:c.seconds)!=null?f:"15"),t=(N=
(h=O)==null?void 0:h.playerParams)!=null?N:"",J&&M?e.mainAppPlayer?r.jumpTo(2):_.C(r,AXq(e),2):r.return();if(r.nextAddress!=6){if(e.nowPlayingEntityValue&&J===e.nowPlayingEntityValue)return e.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.C(r,e.pauseVideo(),0):_.C(r,e.playVideo(w,P,t),0);e.externalVideoId=M;e.nowPlayingEntityValue=J;e.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.C(r,e.playVideo(w,P,t),6)}nBq(e);return r.jumpTo(0)})};
Pj[Jf]=[iY];var UZ=function(l){this.JSC$15273_commandHandler=l};
_.m(UZ,Y_);UZ.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return(E=_.I(l,Hx1))?_.C(u,_.dC(),2):u.return();J=u.yieldResult;if(!J)return u.return();(z=xb8(J))?O.JSC$15273_commandHandler.resolveCommand(z,e):(M=_.ml("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Z=_.Xv(M),O.JSC$15273_commandHandler.resolveCommand(Z));_.Cl(u)})};
UZ[Jf]=[_.Zh];var YO=function(l){this.JSC$15276_playerPromise=l};
_.m(YO,Y_);YO.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1){O=_.I(l,gN1);if(!O)return Z.return();E=O.overlayRenderer;return E?(J=_.I(E,HpC))?_.C(Z,e.JSC$15276_playerPromise,3):Z.jumpTo(0):Z.return()}z=Z.yieldResult;z.renderChapterSeekingAnimation(1,_.lG(J.text),(M=J.icon)==null?void 0:M.iconType);_.Cl(Z)})};
YO[Jf]=[_.CT];var h0=function(l){this.store=l};
_.m(h0,Y_);
h0.prototype.resolveCommand=function(l){var e=this,O,E,J;return _.V(function(z){if(z.nextAddress==1){O=_.I(l,fZS);if(!O)return z.return();E="";(J=e.store.getState().collabInviteLink)&&O.id===J.playlistId?E=J.inviteLinkURL:O.shortUrl&&(E=O.shortUrl);return E?_.C(z,navigator.clipboard.writeText(E),3):z.jumpTo(0)}var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.ml("COPY_LINK_SUCCESS_TOAST")}}}}};_.V2().resolve(_.Zh).resolveCommand(M);_.Cl(z)})};
h0[Jf]=[uM];var L8=function(l,e){this.innertubeTransportService=l;this.JSC$15286_commandHandler=e};
_.m(L8,Y_);L8.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n;return _.V(function(k){if(k.nextAddress==1)return(E=_.I(l,_.tK))?_.C(k,_.Qh(O.innertubeTransportService,l,(J=e)==null?void 0:J.form),2):k.return();(z=k.yieldResult)&&z.errorMetadata&&(M=z,Z=_.Xv(M.error.message),O.JSC$15286_commandHandler.resolveCommand(Z));u=z;if((d=u)==null?0:d.actions)for(g=_.b(u.actions),w=g.next();!w.done;w=g.next())n=w.value,O.JSC$15286_commandHandler.resolveCommand(n);_.Cl(k)})};
L8[Jf]=[_.Um,_.Zh];var t0=function(){};
_.m(t0,Y_);t0.prototype.resolveCommand=function(l){var e;return _.V(function(O){e=_.I(l,IZS);if(!e)return O.return();(new FOR(e)).show();_.Cl(O)})};_.qw=new _.Xa("PLAYLIST_EDIT_CONTROLLER_TOKEN");var vj=function(l,e,O,E){this.store=l;this.innertubeTransportService=e;this.controller=O;this.JSC$15294_commandHandler=E};
_.m(vj,Y_);
vj.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2,$V,gT,mx,jM,cx;return _.V(function(tq){if(tq.nextAddress==1){E=_.I(l,_.BC);if(!E)return tq.return();if(E.clientActions){J=_.b(E.clientActions);for(z=J.next();!z.done;z=J.next())M=z.value,O.JSC$15294_commandHandler.resolveCommand(M);var Px,S0=e==null?void 0:(Px=e.form)==null?void 0:Px.element;S0&&_.$u(S0,"yt-dismissible-item-action",E.clientActions)}return _.C(tq,_.Qh(O.innertubeTransportService,l,(Z=e)==
null?void 0:Z.form),2)}if(u=tq.yieldResult)u.errorMetadata?(d=u,g=_.Xv(d.error.message),O.JSC$15294_commandHandler.resolveCommand(g),"error"in u&&((w=e)==null?0:(n=w.commandController)==null?0:n.onServerError)&&((k=e)==null||(y=k.commandController)==null||y.onServerError(l,u))):(c=e)==null||(f=c.commandController)==null||(h=(P=f).onSuccess)==null||h.call(P,l,u);N=u;((t=N)==null?0:t.collaborationInviteLink)&&E.playlistId&&(_.a("web_enable_invite_collaborators_link")||_.a("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
O.store.dispatch(_.oM({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:E.playlistId,inviteLinkUrl:N.collaborationInviteLink}}));((r=N)==null?0:r.redirectEndpoint)&&O.JSC$15294_commandHandler.resolveCommand(N.redirectEndpoint);((D=N)==null?0:(b2=D.newHeader)==null?0:b2.playlistHeaderRenderer)?aM0(O.controller,N.newHeader.playlistHeaderRenderer):(($V=N)==null?0:(gT=$V.newHeader)==null?0:gT.musicEditablePlaylistDetailHeaderRenderer)&&aM0(O.controller,N.newHeader.musicEditablePlaylistDetailHeaderRenderer);
O.controller.playlistVideoListElement&&((mx=N)==null?0:(jM=mx.playlistEditResults)==null?0:(cx=jM[0])==null?0:cx.playlistEditVideoAddedResultData)&&((S0=O.controller.playlistVideoListElement)==null||S0.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:N.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Cl(tq)})};
vj[Jf]=[uM,_.Um,_.qw,_.Zh];var Nw=function(l,e){this.controller=l;this.JSC$15304_commandHandler=e};
_.m(Nw,Y_);Nw.prototype.resolveCommand=function(l,e){var O=this,E,J,z;return _.V(function(M){E=_.I(l,R16);O.controller.showRefreshPill&&((J=E)==null?0:J.command)&&(O.JSC$15304_commandHandler.resolveCommand((z=E)==null?void 0:z.command,e),O.controller.showRefreshPill=!1);_.Cl(M)})};
Nw[Jf]=[_.Oq,_.Zh];var rH=function(l,e){this.store=l;this.JSC$15308_commandHandler=e||_.n4.instance};
_.m(rH,Y_);rH.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n;return _.V(function(k){E=_.I(l,NsS);J=O.store.getState().radioButtonGroup;if((z=E)==null?0:z.command)O.JSC$15308_commandHandler.resolveCommand((M=E)==null?void 0:M.command,e);else if(((Z=E)==null?void 0:Z.formId)===J.currentFormId)for(u=Object.values(J.commandsMap),d=_.b(u),g=d.next();!g.done;g=d.next()){w=g.value;n=_.t3(w);if(!n)return k.return();O.JSC$15308_commandHandler.resolveCommand(n,e)}_.Cl(k)})};
rH[Jf]=[uM];var Df=new _.Xa("USER_PREFS");var Sr=function(l){this.JSC$15312_prefCookie=l};
_.m(Sr,Y_);Sr.prototype.resolveCommand=function(l){var e=this,O;return _.V(function(E){(O=_.I(l,d3H))&&typeof O.useListView==="boolean"&&(_.jj(0,155,O.useListView),e.JSC$15312_prefCookie.save());_.Cl(E)})};
Sr[Jf]=[Df];var Qr=function(l){this.JSC$15316_prefCookie=l};
_.m(Qr,Y_);Qr.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M;return _.V(function(Z){O=_.I(l,yZk);if((E=O)==null||!E.gl)return Z.return();J=O.gl;z={persist_gl:"1",gl:J};e.JSC$15316_prefCookie.set("gl",J);e.JSC$15316_prefCookie.save();M=Pqk(z);_.DC(M);_.Cl(Z)})};
Qr[Jf]=[Df];var xO=function(l){this.JSC$15320_prefCookie=l};
_.m(xO,Y_);xO.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){O=_.I(l,s_q);if(!O)return J.return();E=!1;O.flagNum&&typeof O.value==="boolean"?(_.jj(0,O.flagNum,O.value),E=!0):O.key&&typeof O.stringValue==="string"&&(e.JSC$15320_prefCookie.set(O.key,O.stringValue),E=!0);E&&e.JSC$15320_prefCookie.save();_.Cl(J)})};
xO[Jf]=[Df];var l0=new _.Xa("PREF_STORAGE_PROMISE_TOKEN");var eE=function(l){this.JSC$15324_prefStoragePromise=l};
_.m(eE,Y_);eE.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1)return(O=_.I(l,BsR))?_.C(J,e.JSC$15324_prefStoragePromise,2):J.return();E=J.yieldResult;return E===void 0||O.key===void 0||O.value===void 0?J.return():_.C(J,E.set(O.key,O.value),0)})};
eE[Jf]=[l0];var k2x=function(l){this.innertubeTransportService=l};
_.m(k2x,Y_);k2x.prototype.resolveCommand=function(l,e){var O=this,E,J;return _.V(function(z){(E=_.I(l,_.us1))&&E&&E.isFirstRequest&&(_.UG("search_overview_answer"),_.Yu("so_rq",void 0,"search_overview_answer"));return _.C(z,_.Qh(O.innertubeTransportService,l,(J=e)==null?void 0:J.form),0)})};
k2x[Jf]=[_.Um];var IMq=function(){};
_.m(IMq,Y_);
IMq.prototype.resolveCommand=function(l){var e,O,E,J,z,M,Z,u,d;return _.V(function(g){e=_.I(l,W2x);if((O=e)==null?0:O.sectionIdentifier){if(e.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(J=(E=document.getElementsByTagName(e.sectionIdentifier))==null?void 0:E.item(0))J.scrollIntoView({behavior:"smooth"}),(z=T8u(J))&&z.focus({preventScroll:!0});return g.return()}M=document.querySelector("[section-identifier="+e.sectionIdentifier+"]");Z=document.querySelector("[section-identifier="+e.referenceSectionIdentifier+
"]");if(!M)return g.return();u=e.verticalScrollOffsetDp?e.verticalScrollOffsetDp:0;Z&&(u-=Z.offsetTop);window.scrollTo({top:M.offsetTop+u,behavior:"smooth"});(d=T8u(M))&&d.focus({preventScroll:!0})}_.Cl(g)})};var Ov=function(){};
_.m(Ov,Y_);
Ov.prototype.resolveCommand=function(l){var e,O,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1){e=_.I(l,Ga0);if(!e||!e.imageBytes||!navigator.clipboard)return u.return();if(e.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.UW(Error("Bi")),u.return();_.b1(u,2);E=(O=e)==null?void 0:O.imageBytes;J=E.replace(/-/g,"+").replace(/_/g,"/");z=TKp(J);M={};Z=[new ClipboardItem((M[z.type]=z,M))];return _.C(u,navigator.clipboard.write(Z),4)}if(u.nextAddress!=2)return _.Q2(u,0);
_.u1(u);_.Cl(u)})};var Ev=function(l,e){this.innertubeTransportService=l;this.JSC$15339_commandHandler=e};
_.m(Ev,Y_);Ev.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return(E=_.I(l,B0H))?_.C(u,_.Qh(O.innertubeTransportService,l,(J=e)==null?void 0:J.form),2):u.return();(z=u.yieldResult)&&z.errorMetadata&&E.onFailureCommand&&O.JSC$15339_commandHandler.resolveCommand(E.onFailureCommand);M=z;((Z=M)==null?0:Z.shareCommand)&&O.JSC$15339_commandHandler.resolveCommand(M.shareCommand,e);_.Cl(u)})};
Ev[Jf]=[_.Um,_.Zh];var JB=function(){};
_.m(JB,Y_);JB.prototype.resolveCommand=function(l){var e,O;return _.V(function(E){e=_.I(l,Fyk);if(!e||!navigator.share)return E.return();O={url:e.url};try{return E.return(navigator.share(O))}catch(J){}_.Cl(E)})};var Xq=function(){};
_.m(Xq,Y_);Xq.prototype.resolveCommand=function(){return _.V(function(l){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Cl(l)})};var zC=function(l){this.JSC$15349_navigationConfirmationService=l};
_.m(zC,Y_);zC.prototype.resolveCommand=function(){var l=this;return _.V(function(e){l.JSC$15349_navigationConfirmationService.cancelPendingNavigation();_.Cl(e)})};
zC[Jf]=[iF];var b0=function(l){this.JSC$15352_screenManager=l};
_.m(b0,Y_);b0.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d;return _.V(function(g){J=(E=e.form)==null?void 0:E.event;M=(z=e.form)==null?void 0:z.element;if(!J)throw new _.Hk("Event not passed in when resolving command");Z=_.b(J.composedPath());for(u=Z.next();!u.done;u=Z.next())if(d=u.value,d.tagName==="YT-COPY-LINK-RENDERER")return d.copyUrlToClipboard(),M&&_.rg(O.JSC$15352_screenManager,M),g.return();_.Cl(g)})};
b0[Jf]=[_.Hu];var M0=function(){this.JSC$15356_miniAppClientDataProvider=_.V2().resolve(_.T6)};
_.m(M0,Y_);M0.prototype.resolveCommand=function(){var l=this,e,O;return _.V(function(E){if(l.JSC$15356_miniAppClientDataProvider.clientData.has("video_id")){var J=l.JSC$15356_miniAppClientDataProvider,z=J.clientData.get("video_id");z&&J.clientData.delete("video_id");e="https://youtube.com/watch?v="+z;O=ir(e);if(O===void 0)throw Error("Ci`"+e);_.FC(window,O)}_.Cl(E)})};var VM=function(){};
_.m(VM,Y_);VM.prototype.resolveCommand=function(){return _.V(function(l){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Cl(l)})};var Z_=function(){};
_.m(Z_,Y_);Z_.prototype.resolveCommand=function(){var l;return _.V(function(e){if(e.nextAddress==1)return _.C(e,_.MVu(window.document.documentElement),2);(l=document.querySelector("mini-app-container-view-model iframe"))&&l.focus();_.Cl(e)})};var u0=function(l){this.JSC$15363_navigationConfirmationService=l};
_.m(u0,Y_);
u0.prototype.resolveCommand=function(){var l=this;return _.V(function(e){var O=l.JSC$15363_navigationConfirmationService,E=_.V2().resolve(_.KQ),J;if(((J=O.navigateParams)==null?void 0:J.data)!==void 0){var z;_.fJ0(E,O.navigateParams.endpoint,O.navigateParams.data,(z=O.navigateParams.navigationType)!=null?z:1,O.navigateParams.tempData,O.navigateParams.isMiniplayer,void 0,!0);O.navigateParams=void 0;O.customConfirmationCommand=void 0}else O.navigateParams&&(E.navigate(O.navigateParams.endpoint,O.navigateParams.reload,
O.navigateParams.params,O.navigateParams.tempData,O.navigateParams.requestType,O.navigateParams.createScreenConfig,!0),O.navigateParams=void 0,O.customConfirmationCommand=void 0);_.Cl(e)})};
u0[Jf]=[iF];var Cm=function(){};
_.m(Cm,Y_);Cm.prototype.resolveCommand=function(){return _.V(function(l){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Cl(l)})};var oP=function(l){this.JSC$15368_prefStorage=l};
_.m(oP,Y_);oP.prototype.resolveCommand=function(){var l=this,e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.C(E,l.JSC$15368_prefStorage,2);case 2:return(e=E.yieldResult)?_.C(E,e.set("sfvle",!1),3):E.return();case 3:return _.C(E,e.set("sfvles",!0),4);case 4:O=_.Kz(),_.jj(0,203,!1),_.jj(0,204,!0),O.save(),_.Cl(E)}})};
oP[Jf]=[l0];var $a=function(l){this.JSC$15371_prefStorage=l};
_.m($a,Y_);$a.prototype.resolveCommand=function(){var l=this,e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.C(E,l.JSC$15371_prefStorage,2);case 2:return(e=E.yieldResult)?_.C(E,e.set("sfvle",!0),3):E.return();case 3:return _.C(E,e.set("sfvles",!0),4);case 4:O=_.Kz(),_.jj(0,203,!0),_.jj(0,204,!0),O.save(),_.Cl(E)}})};
$a[Jf]=[l0];_.mKF=new _.Xa("SNACKBAR_CONTROLLER_TOKEN");var WH=function(l){this.controller=l};
_.m(WH,Y_);WH.prototype.resolveCommand=function(l){var e=this,O;return _.V(function(E){O=_.I(l,SlF);if(!O)return E.return();var J=e.controller;J.closeSnackbarFn&&J.closeSnackbarFn();_.Cl(E)})};
WH[Jf]=[_.mKF];var ka=function(l){this.controller=l};
_.m(ka,Y_);ka.prototype.resolveCommand=function(l){var e=this,O,E,J;return _.V(function(z){O=_.I(l,xZH);if(!O)return z.return();E=_.I(O.content,un0);if(!E)return z.return();var M=e.controller,Z=E,u=(J=O.animationStyle)!=null?J:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(M.showSnackbarFn)M.showSnackbarFn({snackbarViewModel:Z,animationStyle:u,durationMs:O.durationSeconds*1E3});else throw Error("lj");_.Cl(z)})};
ka[Jf]=[_.mKF];var IP=function(){};
_.m(IP,Y_);IP.prototype.resolveCommand=function(l){var e;return _.V(function(O){e=_.I(l,G8k);if(!e||typeof e.key!=="string"||typeof e.value!=="string")return O.return();window.localStorage.setItem(e.key,e.value);_.Cl(O)})};var m$=function(l){this.store=l};
_.m(m$,Y_);m$.prototype.resolveCommand=function(l){var e=this,O;return _.V(function(E){O=_.I(l,JRW);if(!O||!O.stepId||!O.token)return E.return();e.store.dispatch(fTR({stepId:O.stepId,token:O.token,isSelected:!1}));_.Cl(E)})};
m$[Jf]=[uM];var yM=function(l,e,O){this.innertubeTransportService=l;this.store=e;this.JSC$15390_screenManager=O};
_.m(yM,Y_);
yM.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r,D,b2,$V;return _.V(function(gT){O=_.I(l,UJi);if(!O||(E=O.stepIds)==null||!E.length)return gT.return();J=e.store.getState().talkToRecs;z=[];M=[];Z=_.b(O.stepIds);for(u=Z.next();!u.done;u=Z.next())for(d=u.value,g=void 0,(w=(g=J.stepStates[d])==null?void 0:g.userQuery)&&M.push({userQuery:w.userQuery,userQueryToken:w.token}),n=void 0,k=(n=J.stepStates[d])==null?void 0:n.selectionStates,y=_.b(Object.entries(k)),c=
y.next();!c.done;c=y.next())f=c.value,P=_.b(f),h=P.next().value,N=P.next().value,t=h,r=N,r.isSelected&&z.push(t);D={selectedChipTokens:z,userQueries:M,submittedStepIds:O.stepIds};b2={browseTalk2recsFormData:D};O.browseEndpoint?($V=l,_.Pf($V,_.ms,O.browseEndpoint)):O.command&&($V=O.command);return $V?_.C(gT,_.Qh(e.innertubeTransportService,$V,{formData:b2,disableCache:!0}).then(function(mx){(mx==null?0:mx.trackingParams)&&e.JSC$15390_screenManager.graftServerVe(mx==null?void 0:mx.trackingParams)}),
0):gT.return()})};
yM[Jf]=[_.Um,uM,_.Hu];var pm=function(l){this.store=l};
_.m(pm,Y_);pm.prototype.resolveCommand=function(l){var e=this,O;return _.V(function(E){O=_.I(l,Efp);if(!O||!O.stepId||!O.token)return E.return();e.store.dispatch(fTR({stepId:O.stepId,token:O.token,isSelected:!0}));_.Cl(E)})};
pm[Jf]=[uM];var Km=function(l){this.store=l};
_.m(Km,Y_);Km.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z;return _.V(function(u){E=_.I(l,YUH);if(!E||!E.stepId||!E.userQueryToken)return u.return();Z=(M=(J=e)==null?void 0:(z=J.form)==null?void 0:z.userQuery)!=null?M:"";O.store.dispatch(_.oM({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:E.stepId,userQueryToken:E.userQueryToken,userQuery:Z}}));_.Cl(u)})};
Km[Jf]=[uM];_.yXF=new _.Xa("TIMELY_ACTIONS_CONTROLLER_TOKEN");var jE=function(l){this.controller=l};
_.m(jE,Y_);jE.prototype.resolveCommand=function(l){var e=this,O,E,J,z;return _.V(function(M){O=_.I(l,COH);if(!O)return M.return();E=O;J=E.id;z=E.isVisible;if(J===void 0||z===void 0)return M.return();var Z;(Z=e.controller.timelyActionsMap.get(J))==null||Z(J,z);_.Cl(M)})};
jE[Jf]=[_.yXF];var pZx=function(){this.timelyActionsMap=new Map};var HH=function(l){this.JSC$15417_commandHandler=l};
_.m(HH,Y_);HH.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M;return _.V(function(Z){O=_.I(l,_.pp);if(!O)return Z.return();z=(E=O.item)==null?void 0:(J=E.notificationTextRenderer)==null?void 0:J.successResponseText;if(!z)return Z.return();M=_.J$(z);e.JSC$15417_commandHandler.resolveCommand(M);_.Cl(Z)})};
HH[Jf]=[_.Zh];var cH=function(l,e){this.innertubeTransportService=l;this.JSC$15422_playerApiPromise=e};
_.m(cH,Y_);
cH.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g;return _.V(function(w){if(w.nextAddress==1)return _.C(w,e.JSC$15422_playerApiPromise,2);O=w.yieldResult;E=O.getOption("captions","track");J=Object.assign({},_.I(l,_.XYk));(M=(z=O.getVideoData())==null?void 0:z.video_id)?J.externalVideoId=M:_.Nz(Error("Di"));if((Z=E)==null?0:Z.languageCode)J.languageCode=E.languageCode;if((u=E)==null?0:u.kind)J.kind=E.kind;if((d=E)==null?0:d.name)J.name=E.name;g=Object.assign({},l,{getTranscriptEndpoint:J});return _.C(w,
_.Qh(e.innertubeTransportService,g),0)})};
cH[Jf]=[_.Um,_.CT];var Fq=function(){};
_.m(Fq,Y_);Fq.prototype.resolveCommand=function(l){var e,O,E,J,z,M,Z,u;return _.V(function(d){e=_.I(l,vhS);if((O=e)==null||!O.paramKeyValuePairs)return d.return();E=window.location.href;J=_.b(e.paramKeyValuePairs);for(z=J.next();!z.done;z=J.next())M=z.value,M.key&&M.value&&(Z={},E=_.xd(E,(Z[M.key]=M.value,Z)));u=_.V2().resolve(_.W5);_.$G(u,E);_.Cl(d)})};var fm=function(l,e){this.JSC$15429_commandHandler=l;this.innertubeTransportService=e};
_.m(fm,Y_);
fm.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N;return _.V(function(t){switch(t.nextAddress){case 1:return(z=(E=e)==null?void 0:(J=E.form)==null?void 0:J.element)&&_.ed(z),M=_.Kz().get("hl"),Z="",_.b1(t,2),_.C(t,ELu(M),4);case 4:Z=t.yieldResult;_.Q2(t,3);break;case 2:return _.u1(t),z&&_.OU(z),_.UW(Error("Fi"),"ERROR"),t.return();case 3:u=_.I(l,Bti);if(!u)return z&&_.OU(z),t.return();(w=(d=u.commerceActionConfig)==null?void 0:(g=d.commandLifeCycleConfig)==null?
void 0:g.onStartCommand)&&O.JSC$15429_commandHandler.resolveCommand(w);return _.C(t,_.Qh(O.innertubeTransportService,l,{client_data:{paymentsClientToken:{token:Z}}}),5);case 5:(n=t.yieldResult)?(z&&_.OU(z),((f=n)==null?0:f.command)&&O.JSC$15429_commandHandler.resolveCommand(n.command),(N=(P=u.commerceActionConfig)==null?void 0:(h=P.commandLifeCycleConfig)==null?void 0:h.onSuccessCommand)&&O.JSC$15429_commandHandler.resolveCommand(N)):(z&&_.OU(z),_.UW(Error("Gi")),(c=(k=u.commerceActionConfig)==null?
void 0:(y=k.commandLifeCycleConfig)==null?void 0:y.onFailureCommand)&&O.JSC$15429_commandHandler.resolveCommand(c)),_.Cl(t)}})};
fm[Jf]=[_.Zh,_.Um];var RP=function(l,e,O){this.store=l;this.JSC$15445_commandHandler=e;this.innertubeTransportService=O};
_.m(RP,Y_);
RP.prototype.resolveCommand=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w;return _.V(function(n){E=_.I(l,PSq);J=E.googlePaymentPayload;E.onStartCommand&&O.JSC$15445_commandHandler.resolveCommand(E.onStartCommand);z=J.encryptedPurchaseParams;M=J.ypcLogWalletAnalyticDataEndpoint;Z=E.serializedTransactionFlowLoggingParams;u=J.serializedPaymentsClientParams;d=E.ypcCujContext;w=zQx(O.innertubeTransportService,(g=e)==null?void 0:g.form,z,M,Z,u,d);return n.return(w.then(function(k){JST(e==null?void 0:e.form,
!1);var y=O.store,c=O.JSC$15445_commandHandler,f=k.integratorData;f==null||f===""||k.error!=null?(String(k.error)==="-1"&&E.onDismissCommand?c.resolveCommand(E.onDismissCommand):String(k.error)!=="-1"&&E.onFailureCommand&&c.resolveCommand(E.onFailureCommand),String(k.error)!=="-1"&&String(k.error)!=="132"&&_.UW(Error("Hi"),"ERROR")):(E.googlePaymentEntityKey&&y.dispatch(_.IK("commerceAcquisitionClientPayloadEntity",E.googlePaymentEntityKey,{key:E.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:f,
fundsGuaranteeCallbackClientData:k.integratorClientCallbackData}}})),E.onSuccessCommand&&c.resolveCommand(E.onSuccessCommand));_.Ag()},function(k){JST(e==null?void 0:e.form,!1);
_.UW(k,"ERROR");E.onFailureCommand&&O.JSC$15445_commandHandler.resolveCommand(E.onFailureCommand)}))})};
RP[Jf]=[iY,_.Zh,_.Um];var TC=function(l,e){this.JSC$15449_commandHandler=l;this.purchaseManager=e};
_.m(TC,Y_);
TC.prototype.resolveCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g;return _.V(function(w){O=_.I(l,USk);((E=O)==null?0:(J=E.commandLifeCycleConfig)==null?0:J.onStartCommand)&&e.JSC$15449_commandHandler.resolveCommand(O.commandLifeCycleConfig.onStartCommand);if(!((z=O)==null?0:(M=z.googlePaymentPurchaseManagerPayload)==null?0:M.securePayloadBytes))return _.UW(Error("Ii"),"ERROR"),w.return();Z=Xbk(_.VH(O.googlePaymentPurchaseManagerPayload.securePayloadBytes));u=_.Kz().get("hl");d=_.x7();RDH(Z.serialize(),
u,function(n){d.resolve(n)},function(n){d.reject(n)},d.resolve);
g=d.promise;return w.return(g.then(function(n){if(n)if(n==null?0:n.errorCode){_.UW(Error("Ji`"+n.errorCode),"ERROR");var k,y;((k=O)==null?0:(y=k.commandLifeCycleConfig)==null?0:y.onFailureCommand)&&e.JSC$15449_commandHandler.resolveCommand(O.commandLifeCycleConfig.onFailureCommand)}else if(n==null?0:n.isCancelled){var c,f;((c=O)==null?0:(f=c.commandLifeCycleConfig)==null?0:f.onCancelCommand)&&e.JSC$15449_commandHandler.resolveCommand(O.commandLifeCycleConfig.onCancelCommand)}else{var P,h;((P=O)==
null?0:(h=P.commandLifeCycleConfig)==null?0:h.onSuccessCommand)&&e.JSC$15449_commandHandler.resolveCommand(O.commandLifeCycleConfig.onSuccessCommand)}},function(n){_.UW(n,"ERROR");
var k,y;((k=O)==null?0:(y=k.commandLifeCycleConfig)==null?0:y.onFailureCommand)&&e.JSC$15449_commandHandler.resolveCommand(O.commandLifeCycleConfig.onFailureCommand)}))})};
TC[Jf]=[_.Zh,T7S];var KQq=function(l,e){this.JSC$15457_commandHandler=l;this.commandAllowlistOverride=e;var O;this.commandAllowlist=(O=this.commandAllowlistOverride)!=null?O:lV};
KQq.prototype.handleResponse=function(l,e,O){var E,J=e==null?void 0:(E=e.config)==null?void 0:E.command;if(!J||this.commandAllowlist.some(function(z){return!!_.I(J,z)})){e=void 0;
O!==void 0&&(e={form:{element:O}});l.onResponseReceivedCommand&&this.JSC$15457_commandHandler.resolveCommand(l.onResponseReceivedCommand,e);l.onResponseReceivedAction&&this.JSC$15457_commandHandler.resolveCommand(l.onResponseReceivedAction,e);l.onResponseReceivedEndpoint&&this.JSC$15457_commandHandler.resolveCommand(l.onResponseReceivedEndpoint,e);l.command&&this.JSC$15457_commandHandler.resolveCommand(l.command,e);if(l.onResponseReceivedCommands)for(O=_.b(l.onResponseReceivedCommands),E=O.next();!E.done;E=
O.next())this.JSC$15457_commandHandler.resolveCommand(E.value,e);if(l.onResponseReceivedActions)for(O=_.b(l.onResponseReceivedActions),E=O.next();!E.done;E=O.next())this.JSC$15457_commandHandler.resolveCommand(E.value,e);if(l.onResponseReceivedEndpoints)for(O=_.b(l.onResponseReceivedEndpoints),E=O.next();!E.done;E=O.next())this.JSC$15457_commandHandler.resolveCommand(E.value,e);if(l.actions)for(l=_.b(l.actions),O=l.next();!O.done;O=l.next())this.JSC$15457_commandHandler.resolveCommand(O.value,e)}};
KQq[Jf]=[_.Zh,_.MG(imT)];var ju1=new _.Xa("INNERTUBE_TOKEN_SERVICE");var HBx=new _.Xa("SCHEDULER_TOKEN");var cXq=function(l){this.scheduler=l;l={};this.tokenMap=(l.app={},l.user={},l)};
cXq.prototype.handleResponse=function(l,e){if(!e)throw Error("Ki");var O;if(l=(O=l.responseContext)==null?void 0:O.innertubeTokenJar){if(l.appTokens){var E,J,z;O=(E=e.innerTubeRequest.context)==null?void 0:(J=E.request)==null?void 0:(z=J.innertubeTokenJar)==null?void 0:z.appTokens;FQS(this,l.appTokens,this.tokenMap.app,O)}if(l.userTokens){var M,Z,u;e=(M=e.innerTubeRequest.context)==null?void 0:(Z=M.request)==null?void 0:(u=Z.innertubeTokenJar)==null?void 0:u.userTokens;FQS(this,l.userTokens,this.tokenMap.user,
e)}}};
cXq.prototype.processContext=function(l){l.request||(l.request={});var e=Object.keys(this.tokenMap.app).length,O=Object.keys(this.tokenMap.user).length;if(e||O)l.request.innertubeTokenJar={},e&&(l.request.innertubeTokenJar.appTokens=[].concat(_.kA(Object.values(this.tokenMap.app).flat()))),O&&(l.request.innertubeTokenJar.userTokens=[].concat(_.kA(Object.values(this.tokenMap.user).flat())))};
var FQS=function(l,e,O,E){e=_.b(e);for(var J=e.next(),z={};!J.done;z={token$jscomp$138:void 0},J=e.next()){z.token$jscomp$138=J.value;if(z.token$jscomp$138.type===void 0)throw new _.Hk("InnerTube token has no type",z.token$jscomp$138);if(z.token$jscomp$138.clearTokens)O[z.token$jscomp$138.type]=[];else if(z.token$jscomp$138.value!==void 0){O[z.token$jscomp$138.type]||(O[z.token$jscomp$138.type]=[]);if(E!==void 0&&E.length){J=_.b(E);for(var M=J.next(),Z={};!M.done;Z={requestToken:void 0},M=J.next())Z.requestToken=
M.value,M=O[z.token$jscomp$138.type].findIndex(function(u){return function(d){return d===u.requestToken||(0,_.mm.equals)(d,u.requestToken)}}(Z)),M>-1&&O[z.token$jscomp$138.type].splice(M,1)}O[z.token$jscomp$138.type].push(z.token$jscomp$138);
z.token$jscomp$138.maxAgeSeconds&&Number(z.token$jscomp$138.maxAgeSeconds)>0&&l.scheduler.addLowPriorityJob(function(u){return function(){var d=O[u.token$jscomp$138.type].indexOf(u.token$jscomp$138);d>-1&&O[u.token$jscomp$138.type].splice(d,1)}}(z),Number(z.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.Hk("InnerTube token has no value",z.token$jscomp$138);
}};
cXq[Jf]=[HBx];var fMS=new _.Xa("LOCAL_INNERTUBE_ROUTER_TOKEN"),RlC=new _.Xa("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var sv=function(l){this.serviceMap=l};
sv.prototype.shouldPreferLocalResponse=function(l,e){return(l=TDS(this,l))?l.shouldPreferLocalResponse(e):!1};
sv.prototype.localInnertubeResponse=function(l,e){var O=this,E;return _.V(function(J){return(E=TDS(O,l))?J.return(E.localInnertubeResponse(e)):J.return(Promise.reject(Error("Li")))})};
sv.prototype.canProvideFallbackResponse=function(l,e){return(l=TDS(this,l))?l.canProvideFallbackResponse(e):!1};
sv.prototype.localFallbackInnertubeResponse=function(l,e){var O=this,E;return _.V(function(J){return(E=TDS(O,l))?J.return(E.localFallbackInnertubeResponse(e)):J.return(Promise.reject(Error("Li")))})};
var TDS=function(l,e){e=_.A5(e);return e?(l=l.serviceMap[e])?l:null:null};
sv[Jf]=[RlC];var Hn=function(){};
Hn.prototype.shouldPreferLocalResponse=function(){return!1};
Hn.prototype.localInnertubeResponse=function(){return _.V(function(l){return l.return(Promise.reject(Error("Mi")))})};
Hn.prototype.canProvideFallbackResponse=function(){return!0};
Hn.prototype.localFallbackInnertubeResponse=function(){var l,e,O;return _.V(function(E){l=s6("CLOSE_POPUP");e={openPopupAction:Mud()};O={actions:[l,e]};return E.return(O)})};var NRW=function(l,e){this.JSC$15507_upliftPromise=l;this.store=e};
_.X=NRW.prototype;_.X.shouldPreferLocalResponse=function(l){var e=l.videoId,O;if(O=e)O=mZg(this.store.getState().entities,l.videoId);return O&&yJx(this.store.getState().entities,e)?ZhL(this.store.getState().entities,l.playlistId):!1};
_.X.localInnertubeResponse=function(l){var e=this,O;return _.V(function(E){return(O=e.getPlayerResponse(l))?E.return(Promise.resolve(O)):E.return(Promise.reject(Error("Ni")))})};
_.X.canProvideFallbackResponse=function(l){return!!l.videoId};
_.X.localFallbackInnertubeResponse=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.JSC$15507_upliftPromise,2);O=e.getPlayerResponse(l);var J;O?J=E.return(Promise.resolve(O)):J=ct(e.store.getState().entities,l.videoId)?E.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Zr(_.ml("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Fdx()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
E.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Zr(_.ml("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:csT()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return J})};
_.X.getPlayerResponse=function(l){return xZ8(this.store.getState().entities,l.videoId)};var jd=function(l,e){this.localPlayerService=l;this.localWatchNextService=e};
jd.prototype.shouldPreferLocalResponse=function(l){var e=l.playerRequest;l=l.watchNextRequest;return!!(e&&this.localPlayerService.shouldPreferLocalResponse(e)&&l&&this.localWatchNextService.shouldPreferLocalResponse(l))};
jd.prototype.localInnertubeResponse=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1){O=l.playerRequest;E=l.watchNextRequest;if(!O||!E)throw new _.Hk("Missing streaming request",l);return _.C(M,e.localPlayerService.localInnertubeResponse(O),2)}if(M.nextAddress!=3)return J=M.yieldResult,_.C(M,e.localWatchNextService.localInnertubeResponse(E),3);z=M.yieldResult;return M.return({playerResponse:J,watchNextResponse:z})})};
jd.prototype.canProvideFallbackResponse=function(l){var e=l.playerRequest;l=l.watchNextRequest;return!!(e&&this.localPlayerService.canProvideFallbackResponse(e)&&l&&this.localWatchNextService.canProvideFallbackResponse(l))};
jd.prototype.localFallbackInnertubeResponse=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return O=l.playerRequest,E=l.watchNextRequest,O&&E?_.C(M,e.localPlayerService.localFallbackInnertubeResponse(O),2):M.return(Promise.reject(new _.Hk("Missing streaming request",l)));if(M.nextAddress!=3)return J=M.yieldResult,_.C(M,e.localWatchNextService.localFallbackInnertubeResponse(E),3);z=M.yieldResult;return M.return({playerResponse:J,watchNextResponse:z})})};var yQ=function(l){this.JSC$15517_persistentStorePromiseAccessor=l};
yQ.prototype.shouldPreferLocalResponse=function(){return!1};
yQ.prototype.localInnertubeResponse=function(){return _.V(function(l){return l.return(Promise.reject(Error("Oi")))})};
yQ.prototype.canProvideFallbackResponse=function(){return!0};
yQ.prototype.localFallbackInnertubeResponse=function(){var l=this,e,O;return _.V(function(E){return E.nextAddress==1?_.C(E,l.JSC$15517_persistentStorePromiseAccessor(),2):E.nextAddress!=3?(e=E.yieldResult)?_.C(E,e.get("service:guide:fallback"),3):E.return(Promise.reject(Error("Pi"))):(O=E.yieldResult)&&_.dd(O)?E.return(uHt(_.dd(O))):E.return(Promise.reject(Error("Qi")))})};var fN=function(){};
fN.prototype.shouldPreferLocalResponse=function(){return!1};
fN.prototype.localInnertubeResponse=function(){return _.V(function(l){return l.return(Promise.reject(Error("Ri")))})};
fN.prototype.canProvideFallbackResponse=function(){return!0};
fN.prototype.localFallbackInnertubeResponse=function(){var l,e,O;return _.V(function(E){l=s6("CLOSE_POPUP");e={openPopupAction:Mud()};O={actions:[l,e]};return E.return(O)})};var mC=function(){this.urlMap=suq;this.fallbackCommand=_.an};
mC.prototype.shouldPreferLocalResponse=function(l){return(l=l.url)?!!G2S(this,l):!1};
mC.prototype.localInnertubeResponse=function(l){var e=this,O;return _.V(function(E){return(O=l.url)?E.return(BDH(l,G2S(e,O))):E.return(Promise.reject(Error("Si")))})};
mC.prototype.canProvideFallbackResponse=function(){return!0};
mC.prototype.localFallbackInnertubeResponse=function(l){var e=this,O,E,J,z,M,Z,u;return _.V(function(d){O=l.url;if(!O)return d.return(BDH(l,e.fallbackCommand));if(E=G2S(e,O))return d.return(BDH(l,E));J=void 0;z=_.A5(O);z==="/watch"&&(M=_.vD(O,"v"))&&(u=(Z=_.vD(O,"list"))!=null?Z:void 0,J=_.Vy(M,u));J||(J=e.fallbackCommand);return d.return(BDH(l,J))})};
var G2S=function(l,e){if(e)return l.urlMap[_.Dp(e)]},BDH=function(l,e){e&&l.parentTrackingParams&&(e.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:l.parentTrackingParams}},e.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:e})};var pN=function(l,e,O){this.JSC$15527_upliftPromise=l;this.store=e;this.JSC$15527_persistentStorePromiseAccessor=O};
pN.prototype.shouldPreferLocalResponse=function(){return!1};
pN.prototype.localInnertubeResponse=function(){return _.V(function(l){return l.return(Promise.reject(Error("Ti")))})};
pN.prototype.canProvideFallbackResponse=function(){return!0};
pN.prototype.localFallbackInnertubeResponse=function(){var l=this;return _.V(function(e){return e.return(PKq(l))})};
var PKq=function(l){var e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,Wn(l.JSC$15527_upliftPromise,l.store),2);e=E.yieldResult;O={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Vug(e)]}}}};return E.return(UKq(l,O))})},UKq=function(l,e){var O,E;
return _.V(function(J){if(J.nextAddress==1)return _.C(J,l.JSC$15527_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return O=J.yieldResult,_.C(J,gd(O),3);E=J.yieldResult;return J.return({responseContext:{},contents:e,topbar:E})})};var kx=function(l,e,O){this.JSC$15534_upliftPromise=l;this.store=e;this.JSC$15534_persistentStorePromiseAccessor=O};
kx.prototype.shouldPreferLocalResponse=function(l){var e=l.videoId;return e&&mZg(this.store.getState().entities,e)&&yJx(this.store.getState().entities,e)?ZhL(this.store.getState().entities,l.playlistId):!1};
kx.prototype.localInnertubeResponse=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1)return(O=l.videoId)?_.C(J,e.JSC$15534_upliftPromise,2):J.return(Promise.reject(Error("Ui")));if(J.nextAddress!=3)return _.C(J,YT0(e,l,O),3);E=J.yieldResult;return J.return(hlC(e,E,O))})};
kx.prototype.canProvideFallbackResponse=function(l){return l.videoId?!0:!1};
kx.prototype.localFallbackInnertubeResponse=function(l){var e=this,O,E,J,z;return _.V(function(M){switch(M.nextAddress){case 1:return(O=l.videoId)?_.C(M,e.JSC$15534_upliftPromise,2):M.return(Promise.reject(Error("Ui")));case 2:return _.C(M,YT0(e,l,O),3);case 3:E=M.yieldResult;if(ct(e.store.getState().entities,O)){M.jumpTo(4);break}return _.C(M,Wn(e.JSC$15534_upliftPromise,e.store),5);case 5:return J=M.yieldResult,M.return(LQq(E,J));case 4:return mZg(e.store.getState().entities,O)&&yJx(e.store.getState().entities,
O)?M.return(hlC(e,E,O)):(z={title:_.Zr(_.ml("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Fdx()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},M.return(LQq(E,z)))}})};
var YT0=function(l,e,O){var E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return E=e.playlistId,J=_.Vy(O,E),_.C(u,l.JSC$15534_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return z=u.yieldResult,_.C(u,gd(z),3);M=u.yieldResult;Z={responseContext:{},currentVideoEndpoint:J,topbar:M};return u.return(Z)})},hlC=function(l,e,O){if(l=ct(l.store.getState().entities,O)){var E;
O=l.videoEntity;var J,z={title:uH(O.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.CO((E=O.localizedStrings)==null?void 0:E.viewCount),viewCount:_.CO((J=O.localizedStrings)==null?void 0:J.viewCount)}}};O.publishedTimestampMillis&&(z.dateText=_.CO(USu(new Date(Number(O.publishedTimestampMillis)))));E={videoPrimaryInfoRenderer:z};J=l.videoEntity;l=l.channelEntity;l={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:uH(_.ml("SHOW_MORE",void 0,"Show more")),
showLessText:uH(_.ml("SHOW_LESS",void 0,"Show less")),description:J.formattedDescription,owner:{videoOwnerRenderer:{title:uH(l.title),thumbnail:l.avatar}}}};e.contents={twoColumnWatchNextResults:{results:{results:{contents:[E,l]}}}}}return e},LQq=function(l,e){l.contents={singleColumnWatchNextResults:{results:{results:{contents:[Vug(e)]}}}};
return l};var KN=function(l,e,O){this.JSC$15539_upliftPromise=l;this.store=e;this.JSC$15539_persistentStorePromiseAccessor=O};
KN.prototype.shouldPreferLocalResponse=function(){return!1};
KN.prototype.localInnertubeResponse=function(){return _.V(function(l){return l.return(Promise.reject(Error("Vi")))})};
KN.prototype.canProvideFallbackResponse=function(){return!0};
KN.prototype.localFallbackInnertubeResponse=function(){var l=this,e,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return _.C(z,l.JSC$15539_persistentStorePromiseAccessor(),2);case 2:return e=z.yieldResult,_.C(z,gd(e),3);case 3:return O=z.yieldResult,E={responseContext:{},topbar:O},_.C(z,l.JSC$15539_upliftPromise,4);case 4:return _.C(z,Wn(l.JSC$15539_upliftPromise,l.store),5);case 5:return J=z.yieldResult,E.watchStatus={backgroundPromoRenderer:J},z.return(E)}})};var t6q=new _.Xa("ENDPOINT_MAP");var qT1=function(){var l=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return l.sequenceMap}}},jgk=function(l,e,O){var E,J=(E=e.config)==null?void 0:E.sequenceStrategy;
if(!J)return O();l.sequenceMap.has(J.sequenceKey)||l.sequenceMap.set(J.sequenceKey,[]);l=l.sequenceMap.get(J.sequenceKey);switch(J.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return vBq(l,e,O);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ND1(l,e,O);default:throw new _.Hk("Request could not be sequenced",e);}},vBq=function(l,e,O){var E,J,z;
return _.V(function(M){l.length>0?(J=l[l.length-1],E=J.responsePromise.then(function(){return O()})):E=O();
z={request:e,responsePromise:E};l.push(z);rXq(l,z);return M.return(z.responsePromise)})},ND1=function(l,e,O){O=O();
if(l.length>0)for(var E=_.b(l),J=E.next();!J.done;J=E.next())J.value.responsePromise=O;var z={request:e,responsePromise:O};l.push(z);rXq(l,z);return Promise.resolve().then(function(){return l.indexOf(z)>0?z.responsePromise.then(function(M){return Object.assign({},M,{sequenceMetaData:{skipProcessing:!0}})}):z.responsePromise})},rXq=function(l,e){e.responsePromise.then(function(){var O=l.indexOf(e);
O>-1&&l.splice(O,1)})};var DKH=new _.Xa("REQUEST_SEQUENCING");var GC=function(){};
_.m(GC,Wa);GC.prototype.getApiPaths=function(){return[]};
GC.prototype.getExtension=function(l){return _.I(l,MdH)};
GC.prototype.JSC$11037_buildRequest=function(l,e){l.recaptchaToken=e.recaptchaToken};
GC.prototype.getApiUrl=function(){return"/das_captcha"};var BH=function(){};
_.m(BH,Wa);BH.prototype.getApiPaths=function(){return GZq};
BH.prototype.getExtension=function(l){return _.I(l,TdH)};
BH.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.createBackstagePostParams&&(l.createBackstagePostParams=e.createBackstagePostParams);O.comment_text&&(l.commentText=O.comment_text);if(O.attached_video_id)l.videoAttachment={videoId:O.attached_video_id};else if(O.image_poll_options)l.pollAttachmentData={options:O.image_poll_options};else if(O.poll_options)l.pollAttachment={choices:O.poll_options};else if(O.quiz_options)l.quizAttachmentData={options:O.quiz_options};else if(O.image_blob_id)l.imageAttachment=
{encryptedBlobId:O.image_blob_id},O.source_video_id&&(l.imageAttachment.sourceExternalVideoId=O.source_video_id),O.image_preview_coordinates&&(l.imageAttachment.previewCoordinates=JSON.parse(O.image_preview_coordinates));else if(O.images_data)l.imagesAttachment={imagesData:O.images_data};else if(O.clip_external_video_id!==void 0||O.clip_offset_ms!==void 0||O.clip_duration_ms!==void 0){var E,J,z,M,Z;l.clipAttachment={externalVideoId:(z=O.clip_external_video_id)!=null?z:"",offsetMs:(M=(E=O.clip_offset_ms)==
null?void 0:E.toString())!=null?M:"",durationMs:(Z=(J=O.clip_duration_ms)==null?void 0:J.toString())!=null?Z:""}}else O.shared_post_id&&(l.sharedPostAttachment={postId:O.shared_post_id});O.tagged_video_id&&(l.postCreationData={taggedVideoId:O.tagged_video_id});O.access_restrictions&&(typeof O.access_restrictions==="number"&&(e=O.access_restrictions,l.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof O.access_restrictions==="string"&&
(l.accessRestrictionsParams=O.access_restrictions));O.scheduled_publish_time_sec&&(l.scheduledPublishTimeSec=O.scheduled_publish_time_sec.toString())};var PH=function(){};
_.m(PH,Wa);PH.prototype.getApiPaths=function(){return t9k};
PH.prototype.getExtension=function(l){return _.I(l,P_C)};
PH.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.decorateMessageParams&&(l.params=e.decorateMessageParams);O.text&&(l.text=O.text)};var Uv=function(){};
_.m(Uv,Wa);Uv.prototype.getApiPaths=function(){return uJ1};
Uv.prototype.getExtension=function(l){return _.I(l,s2x)};
Uv.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;O.video_id&&(l.videoId=O.video_id)};var Ya=function(){};
_.m(Ya,Wa);Ya.prototype.getApiPaths=function(){return g5k};
Ya.prototype.getExtension=function(l){return _.I(l,_.ku)};
Ya.prototype.JSC$11037_buildRequest=function(l,e,O){O.suggestions_query&&(l.input=O.suggestions_query)};var hB=function(){};
_.m(hB,Wa);hB.prototype.getApiPaths=function(){return D50};
hB.prototype.getExtension=function(l){return _.I(l,GiF)};
hB.prototype.JSC$11037_buildRequest=function(l,e,O){O.comment_text!==void 0&&(l.commentText=O.comment_text);O.scheduled_publish_time_sec&&(l.scheduledPublishTimeSec=O.scheduled_publish_time_sec.toString());l.updateBackstagePostParams=e.updateBackstagePostParams};var Lm=function(){};
_.m(Lm,Wa);Lm.prototype.getApiPaths=function(){return MJ};
Lm.prototype.getExtension=function(l){return _.I(l,_.qj)};
Lm.prototype.JSC$11037_buildRequest=function(l,e,O){O.formData&&(l.formData=O.formData);e.token?l.continuation=e.token:e.continuationTokenKey&&(O=_.Om().getState(),e=_.wV(O.entities,"continuationTokenEntity",e.continuationTokenKey))&&(l.continuation=String(e.continuationToken))};
var ST1=function(){};
_.m(ST1,Wa);_.X=ST1.prototype;_.X.getApiPaths=function(){return MJ};
_.X.getExtension=function(l){return _.I(l,_.ms)};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11044_getStoreKey=function(l){if((l=this.getExtension(l))&&l.browseId){var e={browseId:l.browseId};l.browseEndpointContextSupportedConfigs&&(e.browseEndpointContextSupportedConfigs=JSON.stringify(l.browseEndpointContextSupportedConfigs));l.params&&(e.params=l.params);l.query&&(e.query=l.query);return _.li("browse",e)}};
_.X.JSC$11037_buildRequest=function(l,e,O){e.browseId&&(l.browseId=e.browseId);e.params&&(l.params=e.params);e.query&&(l.query=e.query);O.formData?l.formData=O.formData:e.formData&&(l.formData=e.formData);e.browseId==="FEsubscriptions"&&_.Kz().getFlag(155)&&(l.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");e.browseId==="SPaccount_playback"&&(O=_.Kz(),l.formData||(l.formData={}),l.formData.accountSettingsFormData={flagCaptionsDefaultOff:O.getFlag(65),flagAutoCaptionsDefaultOn:O.getFlag(66),
flagDisableInlinePreview:O.getFlag(186),flagAudioDescriptionDefaultOn:O.getFlag(198)});if(e.browseId==="FEwhat_to_watch"){O=_.Kz();var E=O.getFlag(196);O.getFlag(197)&&(l.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:E}}})}e.browseId==="FEwhat_to_watch"&&(e=_.Kz().getFlag(186),l.inlineSettingStatus=e?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.X.getRequestConfig=function(l,e){e=e===void 0?{}:e;var O={};if(l=this.JSC$11044_getStoreKey(l,e))O.storeStrategy={storeKey:l,disableCache:e.disableCache};_.a("web_log_browse_ticks_ks")||(O.requestTick="br_s",O.responseTick="br_r");return O};var tB=function(){};
_.m(tB,Wa);tB.prototype.getApiPaths=function(){return c71};
tB.prototype.getExtension=function(l){return _.I(l,O3F)};
tB.prototype.JSC$11037_buildRequest=function(l,e,O){l.legacyYoutubeChannelUsername=O.legacyYouTubeChannelUsername||"";l.legacyYoutubeChannelPassword=O.legacyYouTubeChannelPassword||""};var q0=function(){};
_.m(q0,Wa);q0.prototype.getApiPaths=function(){return P4F};
q0.prototype.getExtension=function(l){return _.I(l,qUq)};
q0.prototype.JSC$11037_buildRequest=function(l,e,O){O.recaptcha_response_token&&(l.recaptchaResponseToken=O.recaptcha_response_token);O.channel_id&&(l.channelId=O.channel_id)};var vH=function(){};
_.m(vH,Wa);vH.prototype.getApiPaths=function(){return Sgq};
vH.prototype.getExtension=function(l){return _.I(l,Q2C)};
vH.prototype.JSC$11037_buildRequest=function(l,e,O){e.externalChannelId&&(l.externalChannelId=e.externalChannelId);O.handle&&(l.handleUpdate={handle:O.handle},e.handleEditSource&&(l.handleUpdate.handleEditSource=e.handleEditSource))};var N0=function(){};
_.m(N0,Wa);N0.prototype.getApiPaths=function(){return eyH};
N0.prototype.getExtension=function(l){return _.I(l,Cvq)};
N0.prototype.JSC$11037_buildRequest=function(l,e,O){e.request&&(l.channelId=e.request.channelId);var E;if(O==null?0:(E=O.uploadDefaults)==null?0:E.emojiReactionSet)l.uploadDefaultsRequest||(l.uploadDefaultsRequest={}),l.uploadDefaultsRequest.emojiReactionSet=O.uploadDefaults.emojiReactionSet};var rx=function(){};
_.m(rx,Wa);rx.prototype.getApiPaths=function(){return Jbq};
rx.prototype.getExtension=function(l){return _.I(l,vxq)};
rx.prototype.JSC$11037_buildRequest=function(l,e,O){e.externalChannelId&&(l.externalChannelId=e.externalChannelId);e.channelHandleEntityKey&&(l.channelHandleEntityKey=e.channelHandleEntityKey);e.handleEditSource&&(l.handleEditSource=e.handleEditSource);O.handle?l.handle=O.handle:O.name&&(l.name=O.name)};var D_=function(){};
_.m(D_,Wa);D_.prototype.getApiPaths=function(){return RIF};
D_.prototype.getExtension=function(l){return _.I(l,wXF)};
D_.prototype.JSC$11037_buildRequest=function(l,e){e.actions?l.actions=e.actions:e.action&&(l.actions=[e.action])};var SE=function(){};
_.m(SE,Wa);SE.prototype.getApiPaths=function(){return Tni};
SE.prototype.getExtension=function(l){return _.I(l,_.qj)};
SE.prototype.JSC$11037_buildRequest=function(l,e){e.token&&(l.continuation=e.token)};var QM=function(){};
_.m(QM,Wa);QM.prototype.getApiPaths=function(){return VQ6};
QM.prototype.getExtension=function(l){return _.I(l,_.qj)};
QM.prototype.JSC$11037_buildRequest=function(l,e){l.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";e.token&&(l.fetchCommentsParams={continuation:e.token})};var xa=function(){};
_.m(xa,Wa);xa.prototype.getApiPaths=function(){return Ugq};
xa.prototype.getExtension=function(l){return _.I(l,iiq)};
xa.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.createReplyParams&&(l.createReplyParams=e.createReplyParams);e.commentText&&(l.commentText=_.lG(e.commentText));O.comment_text&&(l.commentText=O.comment_text);O.image_blob_id&&(l.imageAttachment={encryptedBlobId:O.image_blob_id});O.botguard_response&&(l.botguardResponse=O.botguard_response)};
_.Ji.Object.defineProperties(xa.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lb=function(){};
_.m(lb,Wa);lb.prototype.getApiPaths=function(){return Y56};
lb.prototype.getExtension=function(l){return _.I(l,_.gn6)};
lb.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.createCommentParams&&(l.createCommentParams=e.createCommentParams);e.commentText&&(l.commentText=_.lG(e.commentText));e.videoPositionMention&&(l.videoPositionMention=e.videoPositionMention);e.sources&&(l.sources=e.sources);O.comment_text&&(l.commentText=O.comment_text);O.attached_video_id?l.videoAttachment={videoId:O.attached_video_id}:O.poll_options?l.pollAttachment={choices:O.poll_options}:O.image_blob_id?l.imageAttachment=
{encryptedBlobId:O.image_blob_id}:O.shared_post_id&&(l.sharedPostAttachment={postId:O.shared_post_id});O.access_restrictions&&typeof O.access_restrictions==="number"&&(e=O.access_restrictions,l.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});O.botguard_response&&(l.botguardResponse=O.botguard_response)};
_.Ji.Object.defineProperties(lb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var en=function(){};
_.m(en,Wa);en.prototype.getApiPaths=function(){return Q3S};
en.prototype.getExtension=function(l){return _.I(l,nnS)};
en.prototype.JSC$11037_buildRequest=function(l,e,O){e.commentText&&(l.replyText=_.lG(e.commentText));O.comment_text&&(l.replyText=O.comment_text);l.updateReplyParams=e.updateReplyParams};
_.Ji.Object.defineProperties(en.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OR=function(){};
_.m(OR,Wa);OR.prototype.getApiPaths=function(){return x51};
OR.prototype.getExtension=function(l){return _.I(l,AH1)};
OR.prototype.JSC$11037_buildRequest=function(l,e,O){e.commentText&&(l.commentText=_.lG(e.commentText));O.comment_text&&(l.commentText=O.comment_text);l.updateCommentParams=e.updateCommentParams};
_.Ji.Object.defineProperties(OR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ER=function(){};
_.m(ER,Wa);ER.prototype.getApiPaths=function(){return lHk};
ER.prototype.getExtension=function(l){return _.I(l,MRR)};
ER.prototype.JSC$11037_buildRequest=function(l,e){e.settings&&(l.settings=e.settings)};var J9=function(){};
_.m(J9,Wa);J9.prototype.getApiPaths=function(){return OQq};
J9.prototype.getExtension=function(l){return _.I(l,Nd1)};
J9.prototype.JSC$11037_buildRequest=function(l,e){e.channelCreationToken&&(l.channelCreationToken=e.channelCreationToken);e.source&&(l.source=e.source)};var XW=function(){};
_.m(XW,Wa);XW.prototype.getApiPaths=function(){return Pyq};
XW.prototype.getExtension=function(l){return _.I(l,SUq)};
XW.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;if(O.name&&(O.given_name||O.family_name))l=new _.Hk("channel creation cannot set both GAIA and YouTube names",e),_.UW(l);else{if(e.zeroStepChannelCreationParams){if(!O.comment_text){l=new _.Hk("zero_step_create_comment_params but no zero_step_texts",e);_.UW(l);return}l.zeroStepChannelCreationParams=e.zeroStepChannelCreationParams;l.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(l.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
O.comment_text,O.botguard_response&&(l.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=O.botguard_response))}l.channelCreationToken=e.channelCreationToken;O.given_name&&(l.givenName=O.given_name);O.family_name&&(l.familyName=O.family_name);e.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(l.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(O.name||O.handle||O.avatar_url||O.encryptedBlobId||O.isNameChanged!==void 0||O.isHandleChanged!==void 0||O.isDefaultProfilePhoto!==
void 0||O.obakeImageSource)l.overrideChannelCreationParams={},O.name&&(l.overrideChannelCreationParams.name=O.name),O.handle&&(l.overrideChannelCreationParams.handle=O.handle),O.avatar_url&&(l.overrideChannelCreationParams.avatarUrl=O.avatar_url),O.encryptedBlobId&&(l.overrideChannelCreationParams.blobEncryptionId=O.encryptedBlobId),O.enableIdentityForAllChannelCreationDialog&&(O.encryptedBlobId?l.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
O.isDefaultProfilePhoto!==void 0&&(l.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=O.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),O.isNameChanged!==void 0&&(l.overrideChannelCreationParams.identityForAllChannelCreationNameTag=O.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),O.isHandleChanged!==
void 0&&(l.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=O.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),O.obakeImageSource&&(l.overrideChannelCreationParams.obakeImageSourceType=O.obakeImageSource))}};var zY=function(){};
_.m(zY,Wa);zY.prototype.getApiPaths=function(l){return(l=this.getExtension(l))&&l.status==="DISLIKE"?r7k:l&&l.status==="INDIFFERENT"?RxH:alq};
zY.prototype.getExtension=function(l){return _.I(l,_.xJ)};
zY.prototype.JSC$11037_buildRequest=function(l,e){e.target&&(l.target=e.target);if(e=this.getParams(e))l.params=e};
zY.prototype.getParams=function(l){switch(l==null?void 0:l.status){case "DISLIKE":return l.dislikeParams;case "INDIFFERENT":return l.removeLikeParams;default:return l==null?void 0:l.likeParams}};var bb=function(){};
_.m(bb,Wa);bb.prototype.getApiPaths=function(){return tQC};
bb.prototype.getExtension=function(l){return _.I(l,pX1)};
bb.prototype.JSC$11037_buildRequest=function(l,e){e.settingItemId&&(l.settingItemId=e.settingItemId);e.stringValue!=null&&e.stringValue!==void 0?l.newValue={stringValue:e.stringValue}:e.intValue?l.newValue={intValue:e.intValue}:e.boolValue!==null&&e.boolValue!==void 0?l.newValue={boolValue:e.boolValue}:(l=new _.Hk("Unknown value type for SetSettingEndpoint.",e),_.UW(l))};var Mq=function(){};
_.m(Mq,Wa);Mq.prototype.getApiPaths=function(){return v5i};
Mq.prototype.getExtension=function(l){return _.I(l,rJS)||void 0};
Mq.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.channelIds&&(l.channelIds=e.channelIds);e.siloName&&(l.siloName=e.siloName);e.params&&(l.params=e.params);O.botguardResponse&&(l.botguardResponse=O.botguardResponse);O.feature&&(l.clientFeature=O.feature)};
_.Ji.Object.defineProperties(Mq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vs=function(){};
_.m(Vs,Wa);Vs.prototype.getApiPaths=function(){return rwq};
Vs.prototype.getExtension=function(l){return _.I(l,KRq)||void 0};
Vs.prototype.JSC$11037_buildRequest=function(l,e){e.channelIds&&(l.channelIds=e.channelIds);e.siloName&&(l.siloName=e.siloName);e.params&&(l.params=e.params)};
_.Ji.Object.defineProperties(Vs.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZJ=function(l){this.shareClientParamsProvider=l};
_.m(ZJ,Wa);ZJ.prototype.getApiPaths=function(){return o5x};
ZJ.prototype.getExtension=function(l){return _.I(l,E3R)||_.I(l,_.JfS)||_.I(l,OIH)};
ZJ.prototype.JSC$11037_buildRequest=function(l,e){e.serializedShareEntity&&(l.serializedSharedEntity=e.serializedShareEntity);if(e.clientParamIdentifier){var O;if((O=this.shareClientParamsProvider)==null?0:O.clientParams.has(e.clientParamIdentifier)){O=this.shareClientParamsProvider;e=e.clientParamIdentifier;var E=O.clientParams.get(e);E&&O.clientParams.delete(e);l.clientParams=E}}};
ZJ[Jf]=[W5S];var ub=function(){};
_.m(ub,Wa);ub.prototype.getApiPaths=function(){return Kgq};
ub.prototype.getExtension=function(l){return _.I(l,CQq)};
ub.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var CA=function(){};
_.m(CA,Wa);CA.prototype.getApiPaths=function(){return Dgq};
CA.prototype.getExtension=function(l){return _.I(l,Vaq)};
CA.prototype.JSC$11037_buildRequest=function(l,e){e.dismissal&&(l.items=[e.dismissal])};
_.Ji.Object.defineProperties(CA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oN=function(){};
_.m(oN,Wa);oN.prototype.getApiPaths=function(){return Aw0};
oN.prototype.getExtension=function(l){return _.I(l,_.Yx)||void 0};
oN.prototype.JSC$11037_buildRequest=function(l,e,O){l.feedbackTokens=[];e.feedbackToken&&l.feedbackTokens.push(e.feedbackToken);if(e=e.cpn||O.cpn)l.feedbackContext={cpn:e};l.isFeedbackTokenUnencrypted=!!O.is_feedback_token_unencrypted;l.shouldMerge=!1;O.extra_feedback_tokens&&(l.shouldMerge=!0,l.feedbackTokens=l.feedbackTokens.concat(O.extra_feedback_tokens))};
_.Ji.Object.defineProperties(oN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $C=function(){};
_.m($C,Wa);$C.prototype.getApiPaths=function(){return Aw0};
$C.prototype.getExtension=function(l){return _.I(l,_.ku)};
$C.prototype.JSC$11037_buildRequest=function(l,e,O){O.feedback_tokens&&(l.feedbackTokens=O.feedback_tokens,l.shouldMerge=!0)};
_.Ji.Object.defineProperties($C.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WT=function(){};
_.m(WT,Wa);WT.prototype.getApiPaths=function(){return Aw0};
WT.prototype.getExtension=function(l){return _.I(l,XEg)};
WT.prototype.JSC$11037_buildRequest=function(l,e){e.undoToken&&(l.feedbackTokens=[e.undoToken]);e.isUndoTokenUnencrypted&&(l.isFeedbackTokenUnencrypted=e.isUndoTokenUnencrypted)};
_.Ji.Object.defineProperties(WT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var d2=function(){};
_.m(d2,Wa);d2.prototype.getApiPaths=function(){return XuH};
d2.prototype.getExtension=function(l){return _.I(l,z9k)};
d2.prototype.JSC$11037_buildRequest=function(l,e){e.nextEndpoint&&_.I(e.nextEndpoint,_.Db)?l.nextEndpoint={urlEndpoint:_.I(e.nextEndpoint,_.Db)}:e.nextEndpoint&&_.I(e.nextEndpoint,_.ej)&&(l.nextEndpoint={watchEndpoint:_.I(e.nextEndpoint,_.ej)});e.setRacy&&(l.setRacy=e.setRacy);e.setControvercy&&(l.setControvercy=e.setControvercy)};var g2=function(l){this.JSC$15720_storeWithEntities=l};
_.m(g2,Wa);g2.prototype.getApiPaths=function(){return Qnk};
g2.prototype.getExtension=function(l){return _.I(l,H3q)};
g2.prototype.JSC$11037_buildRequest=function(l,e){e.flowId&&(l.flowId=e.flowId);e.targetId&&(l.targetId=e.targetId);e.continuation&&(l.continuation=e.continuation);var O=e.flowStateEntityKey;if(e.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&O&&this.JSC$15720_storeWithEntities){var E;if(e=(E=this.JSC$15720_storeWithEntities.getState())==null?void 0:E.entities)if(E=_.Wt(O).entityType,E=_.wV(e,E,O))l.flowState=E,l.flowStateEntityKey=O}};
_.Ji.Object.defineProperties(g2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
g2[Jf]=[iY];var QuH=function(){};
_.m(QuH,Wa);_.X=QuH.prototype;_.X.getApiPaths=function(){return wa1};
_.X.JSC$11044_getStoreKey=function(){return _.li("guide")};
_.X.getRequestConfig=function(){var l=this.JSC$11044_getStoreKey(),e;l&&(e={storeStrategy:{storeKey:l}});return e};
_.X.isNavigationCommand=function(){return!0};
_.X.getExtension=function(l){return _.I(l,_.ku)};
_.X.JSC$11037_buildRequest=function(l){l.fetchLiveState=!0};var ib=function(){};
_.m(ib,Wa);ib.prototype.getApiPaths=function(){return FgS};
ib.prototype.getExtension=function(l){return _.I(l,$BC)};
ib.prototype.JSC$11037_buildRequest=function(){};var w2=function(){};
_.m(w2,Wa);w2.prototype.getApiPaths=function(){return f11};
w2.prototype.getExtension=function(l){return _.I(l,WRq)};
w2.prototype.JSC$11037_buildRequest=function(){};var A9=function(){};
_.m(A9,Wa);A9.prototype.getApiPaths=function(){return pJS};
A9.prototype.getExtension=function(l){return _.I(l,_.qj)};
A9.prototype.JSC$11037_buildRequest=function(l,e){e.token&&(l.continuation=e.token);var O,E;l==null||(O=l.context)==null||(E=O.user)==null||delete E.onBehalfOfUser};
A9.prototype.getRequestConfig=function(l){var e={},O;if(((O=this.getExtension(l))==null?void 0:O.sessionIndex)!==void 0){var E;e={authStrategy:{sessionIndex:(E=this.getExtension(l))==null?void 0:E.sessionIndex}}}return e};var nA=function(){};
_.m(nA,Wa);nA.prototype.JSC$11037_getRequest=function(l){var e=this.getExtension(l),O=l="";if(e==null?0:e.popup)l="true";if(e==null?0:e.disableSignout)O="true";e={};return{input:"/getAccountSwitcherEndpoint",requestShell:xv("/getAccountSwitcherEndpoint","GET",(e["X-YouTube-Delegation-Context"]=_.hT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),e["X-YouTube-Account-Switcher-Popup"]=l,e["X-YouTube-Account-Switcher-Disable-Signout"]=O,e)),innerTubeRequest:{}}};
nA.prototype.getApiPaths=function(){return[]};
nA.prototype.getExtension=function(l){return _.I(l,_.$0g)};
nA.prototype.JSC$11037_buildRequest=function(){};var aN=function(){};
_.m(aN,Wa);aN.prototype.JSC$11037_getRequest=function(l){var e="/cross_account_channel_transfer";(l=this.getExtension(l))&&(e=gZT(e,{target_session:l.targetSessionIndex,source_rapt:l.sourceRapt,rapt:l.targetRapt}));return{input:e,requestShell:xv(e,"GET"),innerTubeRequest:{}}};
aN.prototype.getApiPaths=function(){return[]};
aN.prototype.getExtension=function(l){return _.I(l,$JC)};
aN.prototype.JSC$11037_buildRequest=function(){};var kC=function(){};
_.m(kC,Wa);kC.prototype.getApiPaths=function(){return xg6};
kC.prototype.isNavigationCommand=function(){return!0};
kC.prototype.getExtension=function(l){return _.I(l,_.ku)};
kC.prototype.JSC$11037_buildRequest=function(l){var e=_.Kz().get("gsml","");e&&(l.safetyModeLockerObfuscatedGaiaId=e);l.userInterfaceTheme=_.R4(!0);_.T_()?l.deviceTheme="DEVICE_THEME_SELECTED":_.o82()?l.deviceTheme="DEVICE_THEME_SUPPORTED":l.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var IN=function(){};
_.m(IN,Wa);IN.prototype.getApiPaths=function(){return pJS};
IN.prototype.getExtension=function(l){return _.I(l,WCS)};
IN.prototype.JSC$11037_buildRequest=function(l,e){if(e&&e.requestType&&(l.requestType=e.requestType,e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var O=e.nextUrl;O&&(_.wQT(O)||zR(O))&&(l.nextNavendpoint={urlEndpoint:{url:O}})}e&&e.channelSwitcherQuery&&(l.channelSwitcherQuery=e.channelSwitcherQuery);e&&e.triggerChannelCreation&&(l.triggerChannelCreation=e.triggerChannelCreation);var E;if(e==null?0:(E=e.contentOwnerConfig)==
null?0:E.externalContentOwnerId)l.contentOwnerConfig=e.contentOwnerConfig;l.callCircumstance=e&&e.requestType&&e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var J,z;e=l==null?void 0:(J=l.context)==null?void 0:(z=J.user)==null?void 0:z.onBehalfOfUser;if(e!==void 0){l.obfuscatedSelectedGaiaId=e;var M,Z;l==null||(M=l.context)==null||(Z=M.user)==null||delete Z.onBehalfOfUser}var u,d;if(J=l==null?void 0:(u=l.context)==null?void 0:(d=u.user)==null?
void 0:d.serializedDelegationContext)l.selectedSerializedDelegationContext=J};var mZ=function(){};
_.m(mZ,Wa);mZ.prototype.getApiPaths=function(){return C4x};
mZ.prototype.getExtension=function(l){return _.I(l,ZN0)};
mZ.prototype.JSC$11037_buildRequest=function(l,e){e.profileOwnerExternalChannelId&&(l.profileOwnerExternalChannelId=e.profileOwnerExternalChannelId);e.profileCardContext&&(l.profileCardContext=e.profileCardContext)};var ys=function(){};
_.m(ys,Wa);ys.prototype.getApiPaths=function(){return jn1};
ys.prototype.getExtension=function(l){return _.I(l,X0R)};
ys.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var pA=function(){};
_.m(pA,Wa);pA.prototype.getApiPaths=function(){return Bnq};
pA.prototype.getExtension=function(l){return _.I(l,_.we0)};
pA.prototype.JSC$11037_buildRequest=function(l,e){if(e=e.createBroadcastRequest)l.useMasks=e.useMasks,l.broadcastType=e.broadcastType,l.broadcastSource=e.broadcastSource,l.broadcastMetadata=e.broadcastMetadata,l.broadcastMetadataMask=e.broadcastMetadataMask,l.videoMetadata=e.videoMetadata,l.videoMetadataMask=e.videoMetadataMask,l.liveChatSettingsUpdate=e.liveChatSettingsUpdate,l.liveChatSettingsUpdateMask=e.liveChatSettingsUpdateMask,l.cloneVideoId=e.cloneVideoId,l.cloneWithOverrides=e.cloneWithOverrides,
l.targetEntity=e.targetEntity,l.scheduledRedirectMetadata=e.scheduledRedirectMetadata};var KA=function(){};
_.m(KA,Wa);KA.prototype.getApiPaths=function(){return hIq};
KA.prototype.getExtension=function(l){return _.I(l,ix1)};
KA.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.params&&(l.params=e.params);O.questionText&&(l.questionText=O.questionText);O.optionText&&O.optionText.length>0&&(l.optionText=O.optionText)};var jn=function(){};
_.m(jn,Wa);jn.prototype.getApiPaths=function(){return q5S};
jn.prototype.getExtension=function(l){return _.I(l,d8C)};
jn.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var HT=function(){};
_.m(HT,Wa);HT.prototype.getApiPaths=function(){return Jwi};
HT.prototype.getExtension=function(l){return _.I(l,CZk)};
HT.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var cT=function(){};
_.m(cT,Wa);cT.prototype.getApiPaths=function(){return zx1};
cT.prototype.getExtension=function(l){return _.I(l,o$0)};
cT.prototype.JSC$11037_buildRequest=function(l,e,O){e.params&&(l.params=e.params);e.continuation&&(l.continuation=e.continuation);O.currentPlayerState&&O.currentPlayerState.playerOffsetMs&&(l.currentPlayerState={playerOffsetMs:O.currentPlayerState.playerOffsetMs.toString()})};var FW=function(){};
_.m(FW,Wa);FW.prototype.getApiPaths=function(){return bQi};
FW.prototype.getExtension=function(l){return _.I(l,uV1)};
FW.prototype.JSC$11037_buildRequest=function(l,e,O){e.params&&(l.params=e.params);O.continuation&&(l.continuation=O.continuation);"hidden"in O&&(l.webClientInfo={isDocumentHidden:O.hidden});O.isInvalidationTimeoutRequest&&(l.isInvalidationTimeoutRequest=O.isInvalidationTimeoutRequest);O.invalidationPayload&&(e=ZxH(_.VH(bt(O.invalidationPayload))),l.invalidationPayloadLastPublishAtUsec=U9(e,2));O.reloadActionPanel&&(l.reloadActionPanel=O.reloadActionPanel);O.fullReload&&(l.fullReload=O.fullReload);
O.currentPlayerState&&(l.currentPlayerState=O.currentPlayerState)};var fA=function(){};
_.m(fA,Wa);fA.prototype.getApiPaths=function(){return klS};
fA.prototype.getExtension=function(l){return _.I(l,g$1)};
fA.prototype.JSC$11037_buildRequest=function(l,e){l.params=e.params};var RN=function(){};
_.m(RN,Wa);RN.prototype.getApiPaths=function(){return Xa1};
RN.prototype.getExtension=function(l){return _.I(l,n3q)};
RN.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var TY=function(){};
_.m(TY,Wa);TY.prototype.getApiPaths=function(){return MQx};
TY.prototype.getExtension=function(l){return _.I(l,aK0)};
TY.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var sR=function(){};
_.m(sR,Wa);sR.prototype.getApiPaths=function(){return IlH};
sR.prototype.getExtension=function(l){return _.I(l,wo1)};
sR.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var GY=function(){};
_.m(GY,Wa);GY.prototype.getApiPaths=function(){return yw1};
GY.prototype.getExtension=function(l){return _.I(l,AIF)};
GY.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var BT=function(){};
_.m(BT,Wa);BT.prototype.getApiPaths=function(){return TSx};
BT.prototype.getExtension=function(l){return _.I(l,MqF)};
BT.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var PT=function(){};
_.m(PT,Wa);PT.prototype.getApiPaths=function(){return hxx};
PT.prototype.getExtension=function(l){return _.I(l,_.n$F)};
PT.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.params&&(l.params=e.params);O.client_message_id&&(l.clientMessageId=O.client_message_id);O.recaptcha_token&&(l.recaptchaToken=O.recaptcha_token);O.rich_message&&O.rich_message.text_segments?(e=O.rich_message.text_segments.map(function(E){var J={};E.text&&(J.text=E.text);E.emoji_id&&(J.emojiId=E.emoji_id);return J}),l.richMessage={textSegments:e}):O.message&&(l.message=O.message);
O.currentPlayerState&&(l.currentPlayerState=O.currentPlayerState)};var UR=function(){};
_.m(UR,Wa);UR.prototype.getApiPaths=function(){return L6F};
UR.prototype.getExtension=function(l){return _.I(l,agq)};
UR.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var YC=function(){};
_.m(YC,Wa);YC.prototype.getApiPaths=function(){return NSF};
YC.prototype.getExtension=function(l){return _.I(l,IgS)};
YC.prototype.JSC$11037_buildRequest=function(l,e,O){e.isUserInitiated&&(l.isUserInitiated=e.isUserInitiated);e.initiationSource&&(l.initiationSource=e.initiationSource);O.locationInfo&&(l.context.client.locationInfo=O.locationInfo)};var h9=function(){};
_.m(h9,Wa);h9.prototype.getApiPaths=function(){return m5H};
h9.prototype.getExtension=function(l){return _.I(l,A6H)};
h9.prototype.JSC$11037_buildRequest=function(l,e,O){e.metadataUpdateRequest&&(e=e.metadataUpdateRequest,l.encryptedVideoId=e.encryptedVideoId,e.liveChat&&(e=e.liveChat,l.liveChat||(l.liveChat={}),e.performAsExternalChannelId&&(l.liveChat.performAsExternalChannelId=e.performAsExternalChannelId),e.source&&(l.liveChat.source=e.source)));var E;if(O==null?0:(E=O.liveChat)==null?0:E.liveChatSettings)l.liveChat||(l.liveChat={}),O=O.liveChat.liveChatSettings,l.liveChat.newLiveChatSettings=O,l.liveChat.newLiveChatSettingsMask||
(l.liveChat.newLiveChatSettingsMask={}),O.emojiReactionSet&&(l.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var LA=function(){};
_.m(LA,Wa);LA.prototype.getApiPaths=function(){return E8S};
LA.prototype.getExtension=function(l){return _.I(l,_.fYk)};
LA.prototype.JSC$11037_buildRequest=function(l,e,O){O.continuation?l.continuation=O.continuation:e.videoId&&(l.videoId=e.videoId);O.clientParams&&(l.clientParams=O.clientParams)};var t9=function(){};
_.m(t9,Wa);t9.prototype.getApiPaths=function(){return VQ6};
t9.prototype.getExtension=function(l){return _.I(l,_.GW)};
t9.prototype.JSC$11037_buildRequest=function(l,e){l.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";l.fetchCommentsParams={};e.videoId&&(l.fetchCommentsParams.encryptedVideoId=e.videoId);e.postId&&(l.fetchCommentsParams.postId=e.postId);e.externalChannelId&&(l.fetchCommentsParams.externalChannelId=e.externalChannelId);e.linkedCommentId&&(l.fetchCommentsParams.linkedCommentId=e.linkedCommentId);(0,_.mm.isEmpty)(l.fetchCommentsParams)&&delete l.fetchCommentsParams};var qq=function(){};
_.m(qq,Wa);qq.prototype.getApiPaths=function(){return MJ};
qq.prototype.JSC$11037_buildRequest=function(l){l.browseId="FEnotifications_inbox"};
qq.prototype.getExtension=function(l){return _.I(l,_.ku)};var vT=function(){};
_.m(vT,Wa);vT.prototype.getApiPaths=function(){return VQ6};
vT.prototype.JSC$11037_buildRequest=function(l,e){e.signal==="GET_NOTIFICATIONS_MENU"&&(l.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");e.ctoken&&(l.ctoken=e.ctoken)};
var xKS=function(){};
_.m(xKS,vT);xKS.prototype.getExtension=function(l){return _.I(l,_.ku)};
var l0k=function(){};
_.m(l0k,vT);l0k.prototype.getExtension=function(l){return _.I(l,EMF)};var Nq=function(){};
_.m(Nq,Wa);Nq.prototype.getApiPaths=function(){return d5x};
Nq.prototype.getExtension=function(l){return _.I(l,_.ku)};
Nq.prototype.JSC$11037_buildRequest=function(){};var r2=function(){};
_.m(r2,Wa);r2.prototype.getApiPaths=function(){return paF};
r2.prototype.getExtension=function(l){return _.I(l,I31)||void 0};
r2.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params);e.secondaryParams&&(l.secondaryParams=e.secondaryParams)};var DJ=function(){};
_.m(DJ,Wa);DJ.prototype.getApiPaths=function(){return K6k};
DJ.prototype.getExtension=function(l){return _.I(l,zo0)};
DJ.prototype.JSC$11037_buildRequest=function(l,e){e.undo&&(l.undo=e.undo);e.serializedOptOut&&(l.serializedOptOut=e.serializedOptOut);e.serializedRecordInteractionsRequest&&(l.serializedRecordInteractionsRequest=e.serializedRecordInteractionsRequest)};var Sn=function(){};
_.m(Sn,Wa);Sn.prototype.getApiPaths=function(){return cw6};
Sn.prototype.getExtension=function(l){return _.I(l,bI0)};
Sn.prototype.JSC$11037_buildRequest=function(l,e){e.serializedInteractionsRequest&&(l.serializedRecordNotificationInteractionsRequest=e.serializedInteractionsRequest)};var Qs=function(){};
_.m(Qs,Wa);Qs.prototype.getApiPaths=function(){return wLM};
Qs.prototype.getExtension=function(l){return _.I(l,a_8)};
Qs.prototype.JSC$11037_buildRequest=function(l,e,O){e=e===void 0?{}:e;O=O===void 0?{}:O;e.videoId?l.videoId=e.videoId:e.playlistId&&(l.playlistId=e.playlistId);var E,J=(E=e.offlineWebClientEligibility)!=null?E:O.offlineWebClientEligibility;J&&(l.offlineWebClientEligibility=J);var z;if(E=(z=e.preferredFormatType)!=null?z:O.preferredFormatType)l.preferredFormatType=E;var M;if(z=(M=e.lastOfflineQualitySettingsSavedMs)!=null?M:O.lastOfflineQualitySettingsSavedMs)l.lastOfflineQualitySettingsSavedMs=z;
e.params&&(l.params=e.params)};var xC=function(){};
_.m(xC,Wa);xC.prototype.getApiPaths=function(){return e9};
xC.prototype.getExtension=function(l){return _.I(l,_.qj)};
xC.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.token&&(l.continuation=e.token);O.formData&&(l.formData=O.formData)};var l5=function(){};
_.m(l5,Wa);l5.prototype.getApiPaths=function(){return e9};
l5.prototype.getExtension=function(l){return _.I(l,$DS)};
l5.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;l.continuation=O.continuation};var ee=function(){};
_.m(ee,Wa);ee.prototype.getApiPaths=function(){return e9};
ee.prototype.getExtension=function(l){return _.I(l,_.UU)};
ee.prototype.JSC$11037_buildRequest=function(l,e){var O,E=e.panelIdentifier||((O=e.identifier)==null?void 0:O.tag);E&&(l.panelId=E);var J;if((J=e.globalConfiguration)==null?0:J.params){var z;l.params=(z=e.globalConfiguration)==null?void 0:z.params}};
_.Ji.Object.defineProperties(ee.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Oa=function(){};
_.m(Oa,Wa);Oa.prototype.getApiPaths=function(){return e9};
Oa.prototype.getExtension=function(l){return _.I(l,QTk)};
Oa.prototype.JSC$11037_buildRequest=function(l,e){e.panelLoadingStrategy&&W9x(l,e.panelLoadingStrategy)};var Ea=function(){};
_.m(Ea,Wa);Ea.prototype.getApiPaths=function(){return e9};
Ea.prototype.getExtension=function(l){return _.I(l,iIR)};
Ea.prototype.JSC$11037_buildRequest=function(l,e){e.loadingStrategy&&W9x(l,e.loadingStrategy)};var Jv=function(){};
_.m(Jv,Wa);Jv.prototype.getApiPaths=function(){return e9};
Jv.prototype.getExtension=function(l){return _.I(l,_.mM)};
Jv.prototype.JSC$11037_buildRequest=function(l,e){e.panelLoadingStrategy&&W9x(l,e.panelLoadingStrategy)};var X9=function(){};
_.m(X9,Wa);X9.prototype.getApiPaths=function(){return e9};
X9.prototype.getExtension=function(l){return _.I(l,w0S)};
X9.prototype.JSC$11037_buildRequest=function(l,e){var O,E=(O=e.contentSourcePanelIdentifier)==null?void 0:O.tag;E&&(l.panelId=E);var J;if((J=e.globalConfiguration)==null?0:J.params){var z;l.params=(z=e.globalConfiguration)==null?void 0:z.params}};var zt=function(){};
_.m(zt,Wa);zt.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
zt.prototype.getExtension=function(l){return _.I(l,Af1)};
zt.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var b5=function(){};
_.m(b5,Wa);b5.prototype.getApiPaths=function(){return Ogq};
b5.prototype.getExtension=function(l){return _.I(l,k71)};
b5.prototype.JSC$11037_buildRequest=function(l,e){e.externalChannelId&&(l.externalChannelId=e.externalChannelId);e.superChatAction&&(l.superChatAction=e.superChatAction);e.superStickersAction&&(l.superStickersAction=e.superStickersAction)};var MM=function(){};
_.m(MM,Wa);MM.prototype.getApiPaths=function(){return ll1};
MM.prototype.getExtension=function(l){return _.I(l,on1)||_.I(l,I_p)};
MM.prototype.JSC$11037_buildRequest=function(l,e){e.videoIds?l.videoIds=e.videoIds:e.videoId&&(l.videoIds=[e.videoId]);e.playlistId&&(l.playlistId=e.playlistId);e.params&&(l.params=e.params);l.excludeWatchLater=!1};var Vx=function(){};
_.m(Vx,Wa);Vx.prototype.getApiPaths=function(){return Lgx};
Vx.prototype.getExtension=function(l){return _.I(l,_.tK)};
Vx.prototype.JSC$11037_buildRequest=function(l,e,O){O.create_playlist_title?l.title=O.create_playlist_title:e.title&&(l.title=e.title);if(O.create_playlist_privacy_status&&typeof O.create_playlist_privacy_status==="number"){a:{var E=O.create_playlist_privacy_status;if(E!==0){if(E===1){E="PUBLIC";break a}if(E===2){E="UNLISTED";break a}}E="PRIVATE"}l.privacyStatus=E}else e.privacyStatus&&(l.privacyStatus=e.privacyStatus);O.create_playlist_description&&(l.description=O.create_playlist_description);e.videoIds&&
(l.videoIds=e.videoIds);e.params&&(l.params=e.params);e.sourcePlaylistId&&(l.sourcePlaylistId=e.sourcePlaylistId)};var ZN=function(){};
_.m(ZN,Wa);ZN.prototype.getApiPaths=function(){return vwF};
ZN.prototype.getExtension=function(l){return _.I(l,a3x)};
ZN.prototype.JSC$11037_buildRequest=function(l,e){l.playlistId=e.playlistId};var u5=function(){};
_.m(u5,Wa);u5.prototype.getApiPaths=function(){return ZQR};
u5.prototype.getExtension=function(l){return _.I(l,lK1)};
u5.prototype.JSC$11037_buildRequest=function(l,e){e.playlistId&&(l.playlistId=e.playlistId);e.params&&(l.params=e.params)};var C9=function(){};
_.m(C9,Wa);C9.prototype.getApiPaths=function(){return HQx};
C9.prototype.getExtension=function(l){return _.I(l,_.BC)||void 0};
C9.prototype.JSC$11037_buildRequest=function(l,e){e.actions&&(l.actions=e.actions);e.params&&(l.params=e.params);e.playlistId&&(l.playlistId=e.playlistId)};var o1=function(){};
_.m(o1,Wa);_.X=o1.prototype;_.X.getApiPaths=function(){return F6k};
_.X.getExtension=function(l){return _.I(l,_.jT)};
_.X.JSC$11037_buildRequest=function(l,e){e.videoId&&(l.playerRequest={videoId:e.videoId},e.playerParams&&(l.playerRequest.params=e.playerParams),e.racyCheckOk&&(l.playerRequest.racyCheckOk=!!e.racyCheckOk),e.contentCheckOk&&(l.playerRequest.contentCheckOk=!!e.contentCheckOk));e.params&&(l.params=e.params);e.inputType&&(l.inputType=e.inputType);l.disablePlayerResponse=!0};
_.X.getRequestConfig=function(l){var e;(l=this.JSC$11044_getStoreKey(l))&&(e={storeStrategy:{storeKey:l}});_.a("web_log_reels_ticks")&&(e=e||{},e.requestTick="r_wrs",e.responseTick="r_wrr");return e};
_.X.JSC$11044_getStoreKey=function(l){l=this.getExtension(l);if(_.a("shorts_controller_retrieve_seedless_sequence_v2")){if((l==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.li("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.a("web_prefetch_riw_for_next_video")||_.a("web_shorts_prefetch_service_enabled"))&&l!=null&&l.videoId){var e={videoId:l.videoId};l.params&&(e.params=l.params);return _.li("reel_item_watch",e)}};var WO=function(){};
_.m(WO,Wa);_.X=WO.prototype;_.X.getApiPaths=function(){return flH};
_.X.getExtension=function(l){return _.I(l,_.jT)};
_.X.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;l.sequenceParams=e.sequenceParams;var E;((E=O)==null?0:E.contentPlaybackContext)&&_.a("web_shorts_prefetch_service_enabled")&&(l.playbackContext={contentPlaybackContext:O.contentPlaybackContext})};
_.X.JSC$11044_getStoreKey=function(l){if(_.a("shorts_controller_retrieve_seedless_sequence_v2")&&(l=this.getExtension(l),l==null?0:l.sequenceParams))return _.li("reel_watch_sequence",{sequenceParams:l.sequenceParams})};
_.X.getRequestConfig=function(l){l=this.JSC$11044_getStoreKey(l);var e;l&&(e={storeStrategy:{storeKey:l}});_.a("reel_watch_sequence_request_log_ticks")&&(e=e||{},e.requestTick="r_wsrs",e.responseTick="r_wsrr",e.processorTick="r_wsrp");return e};
var dl=function(){};
_.m(dl,Wa);dl.prototype.getApiPaths=function(){return flH};
dl.prototype.getExtension=function(l){return _.I(l,_.qj)};
dl.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.token&&(l.continuation=e.token);var E;((E=O)==null?0:E.contentPlaybackContext)&&_.a("web_shorts_prefetch_service_enabled")&&(l.playbackContext={contentPlaybackContext:O.contentPlaybackContext})};
dl.prototype.getRequestConfig=function(l){l=this.JSC$11044_getStoreKey(l);var e;l&&(e={storeStrategy:{storeKey:l}});_.a("reel_watch_sequence_request_log_ticks")&&(e=e||{},e.requestTick="r_wsrs",e.responseTick="r_wsrr",e.processorTick="r_wsrp");return e};var gl=function(){};
_.m(gl,Wa);gl.prototype.getApiPaths=function(){return S5q};
gl.prototype.getExtension=function(l){return _.I(l,_.jIH)};
gl.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.flagAction&&(l.action=e.flagAction);e.flagRequestType&&(l.flagRequestType=e.flagRequestType);e.additionalDetailCheckboxChecked&&(l.additionalDetailCheckboxChecked=e.additionalDetailCheckboxChecked);e.legalCheckboxChecked&&(l.legalCheckboxChecked=e.legalCheckboxChecked);e={};O.flag_issue_type!==void 0&&(e.issue=O.flag_issue_type);O.flag_affiliation!==void 0&&(e.affiliation=O.flag_affiliation);O.flag_full_name&&(e.fullName=O.flag_full_name);
Object.keys(e).length&&(l.legalReportDetails=e);if(O.flag_description||O.text)l.userComments=O.flag_description||O.text;e={};O.minutes!==void 0&&O.seconds!==void 0&&(e.minutes=O.minutes,e.seconds=O.seconds);O.vss_id&&(e.vssId=O.vss_id);Object.keys(e).length&&(l.videoReportDetails=e);e={};O.video_ids&&(e.videoIds=O.video_ids);O.impersonated_channel_url&&(e.impersonatedChannelUrl=O.impersonated_channel_url);Object.keys(e).length&&(l.channelAbuseReportDetails=e)};
_.Ji.Object.defineProperties(gl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var i5=function(){};
_.m(i5,Wa);i5.prototype.getApiPaths=function(){return E50};
i5.prototype.getExtension=function(l){return _.I(l,OxS)};
i5.prototype.JSC$11037_buildRequest=function(l,e){e.blockedForKidsContent&&(l.blockedForKidsContent=e.blockedForKidsContent)};var wl=function(){};
_.m(wl,Wa);wl.prototype.getApiPaths=function(){return s3R};
wl.prototype.getExtension=function(l){return _.I(l,kC2)};
wl.prototype.JSC$11037_buildRequest=function(l,e,O){l.params=e.params;O.impersonated_channel_url&&(l.impersonatedChannelUrl=O.impersonated_channel_url)};var Av=function(){};
_.m(Av,Wa);Av.prototype.getApiPaths=function(){return n5H};
Av.prototype.getExtension=function(l){return _.I(l,_.E$F)};
Av.prototype.JSC$11037_buildRequest=function(l,e){e.items&&(l.items=e.items);e.kidGaiaId&&(l.kidGaiaId=e.kidGaiaId)};var n9=function(){};
_.m(n9,Wa);n9.prototype.getApiPaths=function(){return exq};
n9.prototype.getExtension=function(l){return _.I(l,_.us1)};
n9.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params);e.targetId&&(l.targetId=e.targetId)};var a1=function(){};
_.m(a1,Wa);a1.prototype.getApiPaths=function(){return U56};
a1.prototype.getExtension=function(l){return _.I(l,Jrx)};
a1.prototype.JSC$11037_buildRequest=function(l,e){e.externalVideoId&&(l.externalVideoId=e.externalVideoId);e.query&&(l.query=e.query);e.sourceTimelines&&(l.sourceTimelines=e.sourceTimelines)};var kj=function(){};
_.m(kj,Wa);kj.prototype.getApiPaths=function(){return YgH};
kj.prototype.getExtension=function(l){return _.I(l,_.qj)||void 0};
kj.prototype.JSC$11037_buildRequest=function(l,e){e.token&&(l.continuation=e.token)};
_.ePi=function(){};
_.m(_.ePi,Wa);_.X=_.ePi.prototype;_.X.getApiPaths=function(){return YgH};
_.X.getExtension=function(l){return _.I(l,_.yF)||void 0};
_.X.isNavigationCommand=function(){return!0};
_.X.JSC$11044_getStoreKey=function(l,e){e=e===void 0?{}:e;if(!e.disableCache&&(l=this.getExtension(l))&&l.query)return e={query:l.query},l.params&&(e.params=l.params),_.li("search",e)};
_.X.JSC$11037_buildRequest=function(l,e,O){e.query&&(l.query=e.query);e.params&&(l.params=e.params);if(!_.a("web_forward_suggest_stats_killswitch")){var E=_.I(e,vNR);E&&(l.suggestStats=E)}var J;!_.a("kevlar_searchbox_stats_killswitch")&&((J=O.tempData)==null?0:J.gs_l)&&!_.I(e,vNR)&&(l.webSearchboxStatsUrl="/search?oq="+(O.tempData.oq||"")+"&gs_l="+O.tempData.gs_l);var z;if((z=O.tempData)==null?0:z.entityMid)e=l.suggestionSearchParams||{},e.entityMid=O.tempData.entityMid,l.suggestionSearchParams=e};
_.X.getRequestConfig=function(l,e){e=e===void 0?{}:e;l=this.JSC$11044_getStoreKey(l,e);var O;l&&(O={storeStrategy:{storeKey:l}});_.a("web_log_search_ticks_ks")||(O=O||{},O.requestTick="sr_s",O.responseTick="sr_r");return O};var I1=function(){};
_.m(I1,Wa);I1.prototype.getApiPaths=function(){return $51};
I1.prototype.getExtension=function(l){return _.I(l,B0H)};
I1.prototype.JSC$11037_buildRequest=function(l,e){e.serializedGetSharingProviderDataParams&&(l.serializedGetSharingProviderDataParams=e.serializedGetSharingProviderDataParams)};var ma=function(){};
_.m(ma,Wa);ma.prototype.getApiPaths=function(){return W6R};
ma.prototype.getExtension=function(l){return _.I(l,Imi)};
ma.prototype.JSC$11037_buildRequest=function(l,e){e.endpoint&&(l.endpoint=e.endpoint);e.action&&(l.action=e.action)};var yx=function(){};
_.m(yx,Wa);yx.prototype.getApiPaths=function(){return NnC};
yx.prototype.getExtension=function(l){return _.I(l,kxk)};
yx.prototype.JSC$11037_buildRequest=function(l,e){l.videoId=e.videoId;e.scheduledRedirectMetadataSourceVideoId&&(l.scheduledRedirectMetadata={sourceVideoId:e.scheduledRedirectMetadataSourceVideoId})};var p9=function(){};
_.m(p9,Wa);p9.prototype.getApiPaths=function(){return qgx};
p9.prototype.getExtension=function(l){return _.I(l,_.AK1)};
p9.prototype.JSC$11037_buildRequest=function(l,e){l.params=e.params;l.correctionText=e.correctionText};var K9=function(){};
_.m(K9,Wa);K9.prototype.getApiPaths=function(){return gcL};
K9.prototype.getExtension=function(l){return _.I(l,_.XYk)};
K9.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params);l.searchQuery=e.searchQuery;l.languageCode=e.languageCode;l.kind=e.kind;l.name=e.name;l.externalVideoId=e.externalVideoId};var je=function(){};
_.m(je,Wa);je.prototype.getApiPaths=function(){return bgi};
je.prototype.getExtension=function(l){return _.I(l,Rfq)};
je.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.params=e.params)};var HO=function(l){this.JSC$15995_storeWithEntities=l};
_.m(HO,Wa);HO.prototype.getApiPaths=function(){return snq};
HO.prototype.getExtension=function(l){return _.I(l,s6q)||_.I(l,Bti)};
HO.prototype.JSC$11037_buildRequest=function(l,e,O){O.client_data&&(l.clientData=O.client_data);if(e.commerceActionConfig){var E=e.commerceActionConfig;e=E.actionId;E=E.commerceActionParams;e&&(l.actionId=e);E&&(l.commerceActionParams=E)}else{var J=e.actionId,z=e.commerceActionParams;O=e.entityKeys;J&&(l.actionId=J);z&&(l.commerceActionParams=z);var M;e=(E=this.JSC$15995_storeWithEntities)==null?void 0:(M=E.getState())==null?void 0:M.entities;if(O&&e){E=[];M=_.b(O);for(O=M.next();!O.done;O=M.next())if(J=
O.value,O=_.Wt(J).entityType,J=_.wV(e,O,J))z={},E.push((z[O]=J,z));l.entityMutationPayloads=E}}};
HO.prototype.getRequestConfig=function(l){var e,O=(e=_.I(l,s6q))==null?void 0:e.requestSequenceType;if(O&&l.clickTrackingParams&&O!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:l.clickTrackingParams,sequenceType:O}}};
HO[Jf]=[iY];var cO=function(){};
_.m(cO,Wa);cO.prototype.getApiPaths=function(){return MFq};
cO.prototype.getExtension=function(l){return _.I(l,_.EwS)};
cO.prototype.JSC$11037_buildRequest=function(l,e){e.feedbackData&&(l.feedbackData=e.feedbackData);e.params&&(l.itemParams=e.params)};
_.Ji.Object.defineProperties(cO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var F9=function(){};
_.m(F9,Wa);F9.prototype.getApiPaths=function(){return VF1};
F9.prototype.getExtension=function(l){return _.I(l,J7i)};
F9.prototype.JSC$11037_buildRequest=function(l,e,O){O.payments_payload&&(l.paymentsPayload=O.payments_payload);O.offer_params&&(l.offerParams=O.offer_params);e.transactionParams&&(l.transactionParams=e.transactionParams)};var f9=function(){};
_.m(f9,Wa);f9.prototype.getApiPaths=function(){return ZgF};
f9.prototype.getExtension=function(l){return _.I(l,_.XJC)};
f9.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.buybucketParams&&(l.buybucketData={params:e.buybucketParams},e.stickerParams?l.buybucketData.stickerParams=e.stickerParams:(O.rich_chat_message?l.buybucketData.richChatMessage=O.rich_chat_message:O.chat_message_text&&(l.buybucketData.chatMessageText=O.chat_message_text),O.purchase_price_micros&&(l.buybucketData.purchasePriceMicros=O.purchase_price_micros.toString())));e.donationAmountMicros&&(l.tipAmountMicros=e.donationAmountMicros,
e.tipParams&&(l.tipParams=e.tipParams));e.offerParams&&(l.offerParams=e.offerParams);e.productData&&(l.productData=e.productData);e.transactionParams&&(l.transactionParams=e.transactionParams)};var R1=function(){};
_.m(R1,Wa);R1.prototype.getApiPaths=function(){return uP1};
R1.prototype.getExtension=function(l){return _.I(l,M9S)};
R1.prototype.JSC$11037_buildRequest=function(l,e){e.updateFopParams&&(l.updateFopParams=e.updateFopParams)};var Tt=function(){};
_.m(Tt,Wa);Tt.prototype.getApiPaths=function(){return CB1};
Tt.prototype.getExtension=function(l){return _.I(l,_.o9)};
Tt.prototype.JSC$11037_buildRequest=function(l,e){e.couponCode&&(l.couponCode=e.couponCode);e.params&&(l.itemParams=e.params)};var sa=function(){};
_.m(sa,Wa);sa.prototype.getApiPaths=function(){return o8q};
sa.prototype.getExtension=function(l){return _.I(l,_.GWS)};
sa.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;e.params&&(l.params=e.params);O.ctk&&(l.clientToken=O.ctk)};var Gt=function(l){this.JSC$16030_storeWithEntities=l};
_.m(Gt,Wa);Gt.prototype.getApiPaths=function(){return $e0};
Gt.prototype.getExtension=function(l){return _.I(l,_.vC)};
Gt.prototype.JSC$11037_buildRequest=function(l,e,O){O.purchase_price_micros&&(l.productData={pdgData:{purchasePriceMicros:O.purchase_price_micros.toString()}},O.rich_chat_message&&(l.productData.pdgData.richChatMessage=O.rich_chat_message),O.currency_code&&(l.productData.pdgData.currencyCode=O.currency_code));e.transactionParams&&(l.transactionParams=e.transactionParams);e.clientLocationContext&&(l.clientLocationContext=e.clientLocationContext);O.payments_payload&&(l.paymentsPayload=O.payments_payload);
O.funds_guarantee_callback_client_data&&(l.fundsGuaranteeCallbackClientData=O.funds_guarantee_callback_client_data);var E,J;O=(E=this.JSC$16030_storeWithEntities)==null?void 0:(J=E.getState())==null?void 0:J.entities;if(e.entityKeys&&O){E=[];e=_.b(e.entityKeys);for(J=e.next();!J.done;J=e.next()){var z=J.value;J=_.Wt(z).entityType;if(z=_.wV(O,J,z)){var M={};E.push((M[J]=z,M))}}l.entityMutationPayloads=E}};
Gt[Jf]=[iY];var BO=function(){};
_.m(BO,Wa);BO.prototype.getApiPaths=function(){return W81};
BO.prototype.getExtension=function(l){return _.I(l,zIi)};
BO.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;O.backend_analytics&&(l.serializedBackendAnalyticsEvent=O.backend_analytics);e.offerParams&&(l.offerParams=e.offerParams)};var PO=function(){};
_.m(PO,Wa);PO.prototype.getApiPaths=function(){return CB1};
PO.prototype.getExtension=function(l){return _.I(l,uTq)};
PO.prototype.JSC$11037_buildRequest=function(l,e){e.params&&(l.itemParams=e.params)};var Ua=function(){};
_.m(Ua,Wa);Ua.prototype.getApiPaths=function(){return deq};
Ua.prototype.getExtension=function(l){return _.I(l,_.LVk)};
Ua.prototype.JSC$11037_buildRequest=function(l,e,O){O.resume_time_ms&&(l.resumeTimeMs=O.resume_time_ms);e.pauseParams&&(l.pauseParams=e.pauseParams)};var Yj=function(){};
_.m(Yj,Wa);Yj.prototype.getApiPaths=function(){return g80};
Yj.prototype.getExtension=function(l){return _.I(l,_.b66)};
Yj.prototype.JSC$11037_buildRequest=function(l,e,O){O=O===void 0?{}:O;O.c&&(l.redeemCode=O.c);O.rd&&(l.riskData=O.rd);O.ctk&&(l.clientToken=O.ctk)};var hv=function(){};
_.m(hv,Wa);hv.prototype.getApiPaths=function(){return igR};
hv.prototype.getExtension=function(l){return _.I(l,_.tKF)};
hv.prototype.JSC$11037_buildRequest=function(l,e){e.resumeParams&&(l.resumeParams=e.resumeParams)};var L9=function(l,e){this.clientName=l;this.defaultExpirationDelayMs=e};
L9.prototype.put=function(l,e){var O=this,E;return _.V(function(J){E=Object.assign({},e.data);E.key=l;E.clientName=O.clientName;E.expireTimestampMs===void 0&&(E.expireTimestampMs=(Math.round((0,_.VZ)())+O.defaultExpirationDelayMs).toString());return J.return(O.putInternal(l,E))})};
L9[Jf]=[A0,WQS];var ODq=function(){L9.apply(this,arguments);this.JSC$16060_responseStore=new Map};
_.m(ODq,L9);_.X=ODq.prototype;_.X.get=function(l){var e=this;return _.V(function(O){return O.return(CC(e,l))})};
_.X.putInternal=function(l,e){var O=this,E,J,z;return _.V(function(M){E=O.defaultExpirationDelayMs;e.expireTimestampMs&&(E=Number(e.expireTimestampMs)-Math.round((0,_.VZ)()),J=_.Cv("mweb_override_response_store_expiration_ms"),J>0&&J<E&&(E=J));z=setTimeout(function(){O.remove(l)},E);
O.JSC$16060_responseStore.set(l,{entryData:e,timer:z});_.Cl(M)})};
_.X.remove=function(l){var e=this;return _.V(function(O){Ebq(e,l);_.Cl(O)})};
_.X.removeAll=function(){var l=this;return _.V(function(e){l.JSC$16060_responseStore.forEach(function(O){clearTimeout(O.timer)});
l.JSC$16060_responseStore.clear();_.Cl(e)})};
_.X.has=function(l){return!!this.JSC$16060_responseStore.get(l)};
_.X.getKeys=function(){return this.JSC$16060_responseStore.keys()};
var CC=function(l,e){if(l=l.JSC$16060_responseStore.get(e))return new _.uF(l.entryData)},Ebq=function(l,e){var O=l.JSC$16060_responseStore.get(e);
O&&(clearTimeout(O.timer),l.JSC$16060_responseStore.delete(e))};var d2u;var wPW=function(l,e,O){L9.call(this,l,e);this.token=O};
_.m(wPW,L9);_.X=wPW.prototype;_.X.get=function(l){var e=this,O,E;return _.V(function(J){return J.nextAddress==1?_.C(J,ihd(e.token),2):J.nextAddress!=3?(O=J.yieldResult,_.C(J,O.get("ResponseStore",[l,e.clientName]),3)):(E=J.yieldResult)?J.return(new _.uF(E)):J.return(void 0)})};
_.X.putInternal=function(l,e){var O=this,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,ihd(O.token),2);E=J.yieldResult;return _.C(J,E.put("ResponseStore",e),0)})};
_.X.remove=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,ihd(e.token),2);O=E.yieldResult;return E.return(O.delete("ResponseStore",[l,e.clientName]))})};
_.X.removeAll=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,ihd(l.token),2);e=O.yieldResult;return _.C(O,buH(e,IDBKeyRange.only(l.clientName)),0)})};
_.X.has=function(){throw Error("Wi");};_.tv=new _.Xa("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var JOx=function(l){var e;this.stateTagsData=(e=l.responseContext)==null?void 0:e.stateTags},X71=function(l){var e;
return((e=l.stateTagsData)==null?void 0:e.stateTagsModified)||[]};var zP0;zP0=function(l){this.JSC$16073_responseStore=l};
_.xx=function(l,e,O){if(!_.a("state_tags_killswitch")){var E=new JOx(e);if(X71(E).length>0){var J=l.JSC$16073_responseStore.getKeys();J=_.b(J);for(var z=J.next();!z.done;z=J.next()){z=z.value;var M=CC(l.JSC$16073_responseStore,z);if(M){var Z=_.dd(M);a:{var u=void 0;M=X71(E);Z=((u=(new JOx(Z)).stateTagsData)==null?void 0:u.relevantStateTags)||[];u=_.b(Z);for(Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.stateTag!=null&&M.includes(Z.stateTag)&&Z.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){M=
!0;break a}M=!1}M&&Ebq(l.JSC$16073_responseStore,z)}}}}var d;E=(d=e.responseContext)==null?void 0:d.maxAgeSeconds;_.a("web_prefetch_riw_for_next_video")&&!E&&e.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(E=3600);O&&E&&Number(E)>0&&(e=$D(e,E),l.JSC$16073_responseStore.put(O,new _.uF(e)))};
zP0.prototype.handleResponse=function(l,e){if(!e)throw Error("Xi");var O,E;e=(O=e.config)==null?void 0:(E=O.storeStrategy)==null?void 0:E.storeKey;_.xx(this,l,e)};
zP0[Jf]=[_.Z2];_.WvT=new _.Xa("STORE_RESPONSE_PROCESSOR_TOKEN");var bDq=function(l){this.JSC$16076_responseStore=l};
bDq.prototype.handleResponse=function(l,e){if(e.input.match(_.Em(flH))){var O;if(l==null?0:(O=l.entries)==null?0:O.length)for(l=_.b(l.entries),e=l.next();!e.done;e=l.next()){O=e.value.command;var E=void 0;e=(E=_.I(O,_.jT))==null?void 0:E.unserializedPrefetchData;if(!O||!e)break;E=(new o1).JSC$11044_getStoreKey(O);var J=_.I(e,rfq),z=void 0,M=void 0,Z=void 0,u=_.Cv("web_shorts_prefetch_service_ttl_seconds")>0?_.Cv("web_shorts_prefetch_service_ttl_seconds"):Number((Z=(z=J)==null?void 0:(M=z.responseContext)==
null?void 0:M.maxAgeSeconds)!=null?Z:3600);E&&u>0&&(J=$D(J,u),this.JSC$16076_responseStore.put(E,new _.uF(J)));O=(new Aw).JSC$11044_getStoreKey(O);e=_.I(e,FSq);z=J=E=void 0;M=_.Cv("web_shorts_prefetch_service_ttl_seconds")>0?_.Cv("web_shorts_prefetch_service_ttl_seconds"):Number((z=(E=e)==null?void 0:(J=E.responseContext)==null?void 0:J.maxAgeSeconds)!=null?z:3600);O&&M>0&&(e=$D(e,M),this.JSC$16076_responseStore.put(O,new _.uF(e)))}}};
bDq[Jf]=[_.Z2];var Mlk=function(l){this.innertubeTransportService=l};
Mlk[Jf]=[_.Um];var Vl0=new _.Xa("SUBMIT_API_SERVICE_TOKEN");var qM=function(){this.scheduler=_.Gi()},ZDF;
qM.prototype.pause=function(){throw Error("Yi");};
qM.prototype.resume=function(){throw Error("Yi");};
qM.prototype.queue=function(l){var e=this,O=_.x7(),E=_.fZ(this.scheduler,function(){try{var J;if(_.n4.instance)var z=_.n4.instance;else{var M=new _.Hk("Error: Unexpected uninitialized CommandHandler.");_.UW(M);z=void 0}(J=z)==null||J.resolveCommand(l.command);O.resolve()}catch(Z){O.reject(Z)}});
O.promise.thenCatch(function(J){J instanceof _.lY&&e.scheduler.cancelJob(E)});
return O.promise};
qM.prototype.queueAll=function(l){var e=new Map;l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,e.set(O.id,this.queue(O));return e};var CfS=function(l,e){var O=this;this.taskModel=l;this.onTaskCancelledCallback=e;this.resolver=_.x7();l=l.proto.prefetchConfig;if(!l)throw Error("Zi");if(!l.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(E){E instanceof _.lY&&(uXS(O,O.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),O.onTaskCancelledCallback(O.taskModel.id,O.jobId),O.tick("pcc"));
throw E;});
this.timerName=this.taskModel.id;_.UG(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},obq=function(l){switch(l.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},uXS=function(l,e){_.Pb({prefetchInfo:{cancellationReason:e}},l.timerName)};
CfS.prototype.tick=function(l){_.Yu(l,void 0,this.timerName)};var NM=function(){var l=this;this.scheduler=_.Gi();this.maxInflightTasks=_.Cv("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Cv("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new KsS;this.onTaskCancelled=function(e,O){O&&l.scheduler.cancelJob(O);$Lq(l,e);vO(l,3)}},Wt1=function(){NM.instance||(NM.instance=new NM);
return NM.instance};
NM.prototype.pause=function(){this.prefetchCoordinatorState=0};
NM.prototype.resume=function(){vO(this,0)};
NM.prototype.queue=function(l){l=dLC(this,l);vO(this,1);return l};
NM.prototype.queueAll=function(l){var e=new Map;l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,e.set(O.id,dLC(this,O));vO(this,1);return e};
var dLC=function(l,e){var O=l.allPrefetchTasks.get(e.id);if(O)return O.cancellablePromise;try{var E=new CfS(e,l.onTaskCancelled)}catch(z){return _.Tr(z)}O=E;O.tick("pcq");var J={prefetchInfo:{taskId:O.taskModel.id,isPrefetch:!0,fetchAction:O.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:O.taskModel.command.clickTrackingParams}};O.taskModel.csn&&(J.clientScreenNonce=O.taskModel.csn);_.Pb(J,O.timerName);l.allPrefetchTasks.set(e.id,E);l.drainingHeap.insert(-obq(E),E);return E.cancellablePromise},
vO=function(l,e){l.prefetchCoordinatorState===e&&(l.prefetchCoordinatorState=2,gb0(l))},gb0=function(l){for(var e={};l.prefetchCoordinatorState!==0;e={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(l.inflightPrefetchTasks.size>=l.maxInflightTasks){l.prefetchCoordinatorState=3;break}e.prefetchTask$jscomp$1=l.drainingHeap.remove();if(!e.prefetchTask$jscomp$1){l.prefetchCoordinatorState=1;break}e.taskId$jscomp$3=e.prefetchTask$jscomp$1.taskModel.id;if(l.allPrefetchTasks.has(e.taskId$jscomp$3)){var O=-1;l.coordinatorTimeoutMs>0&&(O=_.fZ(l.scheduler,function(E){return function(){rl(l,E.taskId$jscomp$3,Error("aj"))}}(e),l.coordinatorTimeoutMs));
l.inflightPrefetchTasks.set(e.taskId$jscomp$3,O);if(!l.JSC$16094_commandHandler){if(!_.n4.instance){rl(l,e.taskId$jscomp$3,Error("bj"));continue}l.JSC$16094_commandHandler=_.n4.instance}a:switch(e.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":O=1;break a;default:O=0}e.prefetchTask$jscomp$1.jobId=l.scheduler.addJob(function(E){return function(){E.prefetchTask$jscomp$1.tick("pcr");try{l.JSC$16094_commandHandler.resolveCommand(E.prefetchTask$jscomp$1.taskModel.command)||
rl(l,E.taskId$jscomp$3,Error("cj"))}catch(J){rl(l,E.taskId$jscomp$3,J)}}}(e),O,0)}}},iD1=function(l,e){(e=$Lq(l,e))!=null&&(e.resolver.resolve(),e.tick("pce"));
vO(l,3)},rl=function(l,e,O){(e=$Lq(l,e,O))!=null&&(e.resolver.reject(O),e.tick("pcc"),uXS(e,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Cv("prefetch_coordinator_error_logging_sampling_rate")&&(O=new _.Hk("Prefetch Command failed.",e.taskModel.id,O.message),_.UW(O)));
vO(l,3)},$Lq=function(l,e,O){var E=l.allPrefetchTasks.get(e);
E?((O=l.inflightPrefetchTasks.get(e))&&O!==-1&&l.scheduler.cancelJob(O),l.inflightPrefetchTasks.delete(e),l.allPrefetchTasks.delete(e)):_.hG(new _.Hk("Unexpected missing prefetch task when deleting task.",e,O==null?void 0:O.message));return E};var w71=function(l,e,O,E,J){this.id=l;this.triggerOn=e;this.cancelOn=O;this.command=E;this.proto=J};
_.Ji.Object.defineProperties(w71.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var AOF=function(){this.JSC$16099_prefetchCoordinator=Wt1();ZDF||(ZDF=new qM);this.defaultCoordinator=ZDF},nbq;
AOF.getInstance=function(){nbq||(nbq=new AOF);return nbq};
AOF.prototype.get=function(l){switch(l){case 0:return this.JSC$16099_prefetchCoordinator;default:return this.defaultCoordinator}};var DN=function(){this.coordinatorSupplier=AOF.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},I00=function(l){var e=_.P9()||void 0,O=Object.keys(a0x)[0];
if(O){var E=l.taskIdByTriggerId.get(O);if(E!=null){l.taskIdByTriggerId.delete(O);O=[];E=_.b(E);for(var J=E.next();!J.done;J=E.next())if(J=l.tasks.get(J.value))e!=="UNDEFINED_CSN"&&(J.csn=e),O.push(J);O=a48(O);e=[];O=_.b(O);for(E=O.next();!E.done;E=O.next()){J=_.b(E.value);E=J.next().value;J=J.next().value;E=l.coordinatorSupplier.get(E).queueAll(J);E=_.b(E);var z=E.next();for(J={};!z.done;J={taskId$jscomp$9:void 0},z=E.next()){var M=_.b(z.value);z=M.next().value;M=M.next().value;J.taskId$jscomp$9=
z;z=M;e.push(J.taskId$jscomp$9);l.queuedPromisesByTask.set(J.taskId$jscomp$9,_.FV(z,function(Z){return function(){kpi(l,Z.taskId$jscomp$9)}}(J)))}}}}else _.hG(new _.Hk("Unexpected malformed TriggerEvent."))};
DN.prototype.trigger=function(l,e){var O=this,E=this.tasks.get(l);if(!E||this.queuedPromisesByTask.has(l))return!1;mLq(this,l,E.triggerOn);e!=="UNDEFINED_CSN"&&(E.csn=e);e=this.coordinatorSupplier.get(E.taskType).queue(E);this.queuedPromisesByTask.set(l,_.FV(e,function(){kpi(O,l)}));
return!0};
DN.prototype.cancel=function(l){var e=this.queuedPromisesByTask.get(l);if(e)e.cancel();else return kpi(this,l)};
var kpi=function(l,e){l.queuedPromisesByTask.delete(e);var O=l.tasks.get(e);if(!O)return!1;l.tasks.delete(e);mLq(l,e,O.triggerOn);(O=nLq(O.cancelOn))&&(l=l.taskIdByCancelId.get(O))&&l.delete(e);return!0},mLq=function(l,e,O){(O=Object.keys(O)[0])&&(l=l.taskIdByTriggerId.get(O))&&l.delete(e)};var a0x={taskRegistered:{}},Se=function(){DN.instance||(DN.instance=new DN);this.JSC$16108_taskManager=DN.instance};
_.m(Se,Y_);
Se.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){O=_.I(l,DZq);if((E=O)==null||!E.tasks){var z=new _.Hk("RegisterTasksCommand is missing tasks.");_.UW(z);return J.return()}z=e.JSC$16108_taskManager;for(var M=_.b(O.tasks),Z=M.next();!Z.done;Z=M.next())if(Z=Z.value,Z=Z.id&&Z.triggerOn&&Z.cancelOn&&Z.command?new w71(Z.id,Z.triggerOn,Z.cancelOn,Z.command,Z):void 0,Z){var u=Object.keys(Z.triggerOn)[0];if(u){var d=nLq(Z.cancelOn);d?(z.tasks.set(Z.id,Z),z.taskIdByTriggerId.has(u)||z.taskIdByTriggerId.set(u,
new Set),z.taskIdByTriggerId.get(u).add(Z.id),z.taskIdByCancelId.has(d)||z.taskIdByCancelId.set(d,new Set),z.taskIdByCancelId.get(d).add(Z.id)):_.hG(new _.Hk("Unexpected malformed cancelOn field."))}else _.hG(new _.Hk("Unexpected malformed triggerOn field."))}else _.hG(new _.Hk("Unexpected malformed Task proto."));I00(e.JSC$16108_taskManager);_.Cl(J)})};var yO6={},p7q=(yO6.rendered={priority:0,callback:function(){var l={};l.numCpu=navigator.hardwareConcurrency;var e={};e.ramGb=_.Op.navigator.deviceMemory;var O={staticContext:{}};e.ramGb&&kbL(e.ramGb)&&(O.staticContext.memoryTotalKbytes=(e.ramGb*1048576).toString());l.numCpu&&kbL(l.numCpu)&&(O.staticContext.cpuCores=l.numCpu);if(_.a("web_enable_adaptive_appl_signal")){l={};e=_.tg("rses_dpj");var E=_.tg("rsef_dpj");e&&e>0&&E&&E>0&&(e=Math.ceil(E-e),e>0&&(l.loadLatency=e));l.loadLatency&&kbL(l.loadLatency)&&
(O.appL=l.loadLatency.toString())}_.Bm("applicationStarted",O)}},yO6);var Ktq=new _.Xa("WINDOW_ON_ERROR"),jwH=new _.Xa("ERROR_WEIGHT_MAPS"),HDk=new _.Xa("INIT_ERROR");var cOx={},Ftk=(cOx.initialized={priority:10,callback:function(l){l.injector.resolve(HDk)()}},cOx);var f0F=function(){},RPC=function(){var l=_.vK("meta_logger_impl");
l||(l=new f0F,_.zJ("meta_logger_impl",l));return l},ToC=function(){RPC().csiSubscriptionKey=CHu("meta_logging_csi_event",function(l){var e=l.timerName;
if(l=l.timelineData){_.UG(e,{startTime:l.startTime},e);l.infos&&_.Pb(l.infos,e);for(var O=_.b(Object.keys(l.ticks)),E=O.next();!E.done;E=O.next())E=E.value,_.Yu(E,l.ticks[E],e)}})};
f0F.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&WcT(this.csiSubscriptionKey)};var swi={},GpS=(swi.initialized={priority:10,callback:function(){ToC()}},swi);var BoR=function(l,e){this.innertubeClientName=l;this.JSC$16124_prefCookie=e};
BoR.prototype.record=function(){if(_.a("web_li_record_binary_eval_tick")){var l=_.tg("rsef_dpj");var e=_.tg("rses_dpj");l=l!==void 0&&e!==void 0?Math.round(l-e):void 0;if(l!==void 0&&l>0){e=_.gS(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var O=this.poolSize;if(!(e.valuesSeen>=1E9)){if(e.valuesSample.length<O)e.valuesSample.push(l);else{var E=Math.floor(Math.random()*(e.valuesSeen+1));E<O&&(e.valuesSample[E]=l)}e.valuesSeen+=1}_.dS(this.storagePrefix+"-"+this.innertubeClientName,
e,2592E3);l=e.valuesSample;e=I4x(l);l=l.length<5?void 0:e<400?1:e<1700?2:3;l!==void 0&&(this.JSC$16124_prefCookie.set(this.cookiePrefix+this.innertubeClientName,l),this.JSC$16124_prefCookie.save())}}else _.i4(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16124_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16124_prefCookie.save()};
BoR[Jf]=[A0,Df];var Pfq=function(){BoR.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.m(Pfq,BoR);var ULq=new _.Xa("PAGE_LOAD_TIME_TOKEN");var YIS=new _.Xa("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Qx=function(l,e){this.JSC$16147_storeWithEntities=l;this.JSC$16147_commandHandler=e;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Qx.prototype.start=function(){this.JSC$16147_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Qx.prototype.observeDownloadingEntities=function(){var l=_.AJq(this.JSC$16147_storeWithEntities.getState().entities).map(function(E){return nkT(E)});
if(l.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var e={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:foq()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Zr(_.ml("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16147_commandHandler.resolveCommand(e)}this.downloadingEntities=l}else if(this.downloadingEntities.length){var O=wyu(this.JSC$16147_storeWithEntities.getState().entities).map(function(E){return nkT(E)});
this.downloadingEntities.filter(function(E){return O.includes(E)}).length&&(l={openPopupAction:bhW()},this.JSC$16147_commandHandler.resolveCommand(l));
this.downloadingEntities=[]}};
Qx[Jf]=[iY,_.Zh];var hPH;_.xj=function(l,e,O,E,J,z,M,Z){this.JSC$16150_playerApiPromise=l;this.JSC$16150_commandHandler=e;this.JSC$16150_screenManager=O;this.offlineWebClientEligibility=E;this.JSC$16150_prefStorage=J;this.JSC$16150_actionRouter=z;this.entityTypeMap=M;this.JSC$16150_persistentStorePromiseAccessor=Z;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
hPH=function(){var l=_.V2().resolve(_.xj),e;_.V(function(O){if(O.nextAddress==1)return l.downloadFailureListenerBound?O.return():_.C(O,l.JSC$16150_playerApiPromise,2);e=O.yieldResult;e.addEventListener("onOfflineOperationFailure",function(E){if(E.failureReason&&E.entityKey&&E.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(E.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var J=_.Wt(E.entityKey).entityId;J&&l.JSC$16150_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
J)}else if(_.a("kevlar_woffle")){J=l.JSC$16150_commandHandler;var z=J.resolveCommand;E=E.failureReason;var M=_.ml("TRANSFER_FAILED",void 0,"Download failed");E==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(M=_.ml("STORAGE_FULL",void 0,"Storage full"));z.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Zr(M),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
l.downloadFailureListenerBound=!0;_.Cl(O)})};
_.xj.prototype.deleteVideo=function(l,e){var O=this,E,J,z;return _.V(function(M){if(M.nextAddress==1)return _.C(M,O.JSC$16150_playerApiPromise,2);E=M.yieldResult;z={offlineLoggingData:{offlineDeleteReason:(J=e)!=null?J:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.C(M,E.queueOfflineAction(l,O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",z),0)})};
_.xj.prototype.pauseVideoDownload=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.JSC$16150_playerApiPromise,2);O=E.yieldResult;O.pauseVideoDownload(l);_.Cl(E)})};
_.xj.prototype.resumeVideoDownload=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.JSC$16150_playerApiPromise,2);O=E.yieldResult;return _.C(E,O.resumeVideoDownload(l),0)})};
_.xj[Jf]=[_.CT,_.Zh,_.Hu,YIS,l0,O5,aTq,wS];var Ltx=new _.Xa("DOWNLOAD_STATE_STORE_TOKEN");var tlS=function(l,e){this.JSC$16169_persistentStorePromiseAccessor=l;this.store=e;this.upliftCompletionResolver=new _.d8},Noq=function(){var l=_.V2().resolve(qIx),e;
_.V(function(O){switch(O.nextAddress){case 1:if(l.upliftImplPromise)return O.return(l.upliftImplPromise);_.b1(O,2);l.upliftImplPromise=vbC(l);return _.C(O,l.upliftImplPromise,4);case 4:l.upliftCompletionResolver.resolve();_.Q2(O,3);break;case 2:throw e=_.u1(O),l.upliftCompletionResolver.reject(e),e;case 3:return O.return(l.upliftImplPromise)}})},vbC=function(l){var e,O,E;
return _.V(function(J){switch(J.nextAddress){case 1:return _.LH("LOGGED_IN")?_.C(J,l.JSC$16169_persistentStorePromiseAccessor(),2):J.return();case 2:e=J.yieldResult;if(!e)return _.Yu("vdeur"),J.return();_.Yu("vdeus");_.b1(J,3);return _.C(J,rOk(e),5);case 5:O=J.yieldResult;l.store.dispatch(KRd(O));e.observe(function(z){jtA(l.store,z)});
_.Q2(J,4);break;case 3:throw E=_.u1(J),_.Yu("vdeur"),E;case 4:_.Yu("vdeuc"),_.Cl(J)}})},rOk=function(l){var e;
return _.V(function(O){if(O.nextAddress==1)return _.C(O,cSV(l),2);e=O.yieldResult;return O.return(e.reduce(function(E,J){if(!J.data||!J.key||!J.entityType)return E;E[J.entityType]||(E[J.entityType]={});E[J.entityType][J.key]=J.data;return E},{}))})};
tlS[Jf]=[wS,_.LQ];var qIx;qIx=new _.Xa("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.l9=new _.Xa("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var ew=function(l,e){this.JSC$16172_persistentStorePromiseAccessor=l;this.transportService=e};
ew.prototype.refresh=function(){var l=this,e,O,E,J;return _.V(function(z){if(z.nextAddress==1)return _.LH("LOGGED_IN")?_.C(z,l.JSC$16172_persistentStorePromiseAccessor(),2):z.return();if(z.nextAddress!=3)return(e=z.yieldResult)?_.C(z,oLd(e),3):z.return();if((O=z.yieldResult)&&!(Number(O.data.refreshTimestampMs||0)<(0,_.VZ)()))return z.return();E={browseId:"SPaccount_downloads"};J=_.Em(MJ);_.PJ(l.transportService,E,J).then(function(M){var Z;if(e&&(M==null?void 0:(Z=M.responseContext)==null?void 0:
Z.maxAgeSeconds)!==0){var u;Z=(M==null?void 0:(u=M.responseContext)==null?void 0:u.maxAgeSeconds)||604800;u=String(Math.floor((0,_.VZ)())+Z*1E3);e.put("service:downloads_settings:fallback",new _.uF({innertubeResponse:M,refreshTimestampMs:u}))}});
_.Cl(z)})};
ew[Jf]=[_.tv,_.Um];var OX=function(l,e){this.JSC$16176_playerPromise=l;this.store=e;this.started=!1};
OX.prototype.start=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return l.started?O.return():_.C(O,l.JSC$16176_playerPromise,2);e=O.yieldResult;e.addEventListener("onOrchestrationBecameLeader",l.updateIsLeader.bind(l,!0));e.addEventListener("onOrchestrationLostLeader",l.updateIsLeader.bind(l,!1));if(e.isOrchestrationLeader)l.updateIsLeader(e.isOrchestrationLeader());else{var E=new _.Hk("Function isOrchestrationLeader is undefined",{"player.isReady":e.isReady(),"player.playVideo":e.playVideo?
"defined":"undefined"});_.UW(E);l.updateIsLeader(!1)}l.started=!0;_.Cl(O)})};
OX.prototype.updateIsLeader=function(l){this.store.dispatch(_.oM({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:l}}))};
OX[Jf]=[_.CT,_.LQ];var DLS=function(l,e){this.networkStatusManager=l;this.JSC$16179_prefStoragePromise=e;this.redirectsToPreload=["https://youtube.com"]},SI6=function(){var l=_.V2().resolve(DLS),e,O,E,J,z,M;
_.V(function(Z){switch(Z.nextAddress){case 1:return _.C(Z,l.JSC$16179_prefStoragePromise,2);case 2:e=Z.yieldResult;if(!(O=e)){Z.jumpTo(3);break}return _.C(Z,e.get("yt-redirect-prefetch-id"),4);case 4:O=Z.yieldResult;case 3:if(O||!l.networkStatusManager.isNetworkAvailable())return Z.return();E={cache:"reload",redirect:"manual"};J=_.b(l.redirectsToPreload);z=J.next();case 5:if(z.done){if(!e){Z.jumpTo(0);break}return _.C(Z,e.set("yt-redirect-prefetch-id",!0,86400),0)}M=z.value;_.b1(Z,8);return _.C(Z,
_.Op.fetch(M,E),10);case 10:_.Q2(Z,6);break;case 8:_.u1(Z);case 6:z=J.next(),Z.jumpTo(5)}})};var EX=function(l){l?(this.container=l,this.containerWasInjected=!0):this.containerWasInjected=!1};
EX.prototype.openDialog=function(l,e,O){var E=this,J;return _.V(function(z){(J=E.container)==null||J.openDialog(l,e,O);_.Cl(z)})};
EX.prototype.closeDialog=function(){var l=this,e;return _.V(function(O){(e=l.container)==null||e.closeDialog();_.Cl(O)})};
EX.prototype.isDialogOpen=function(){var l=this,e,O;return _.V(function(E){return E.return((O=(e=l.container)==null?void 0:e.isDialogOpen())!=null?O:!1)})};
EX[Jf]=[_.MG(O9H)];_.Qwi=new _.Xa("POPUP_CONTROLLER_TOKEN");var xLR=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
xLR.prototype.registerPanel=function(l,e){if(l){this.panelMap.set(l,e);var O=this.pendingPanelResolvers.get(l);O&&(O.resolve(e),this.pendingPanelResolvers.delete(l))}};
xLR.prototype.getPanel=function(l){var e=this,O;return _.V(function(E){return(O=e.panelMap.get(l))?E.return(O):E.return(lWP(e,l))})};
var lWP=function(l,e){var O,E;return _.V(function(J){if(O=l.pendingPanelResolvers.get(e))return J.return(O.promise);E=new _.d8;l.pendingPanelResolvers.set(e,E);return J.return(E.promise)})},et4=function(l){xLR.call(this);
var e=this;this.popupController=l;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return e.panelMap.size}}};
_.m(et4,xLR);_.X=et4.prototype;_.X.getReloadContinuation=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.getPanel(l),2);O=E.yieldResult;return E.return(O.getReloadContinuation())})};
_.X.showPanel=function(l,e,O,E,J,z,M){var Z=this,u,d,g,w;return _.V(function(n){if(n.nextAddress==1){M&&Z.updatePanelContinuationDatas.set(l,M);if((u=O)==null?0:(d=u.engagementPanelPopupPresentationConfig)==null?0:d.popupType){g=O.engagementPanelPopupPresentationConfig.popupType;J===void 0&&(J=document.body);var k=n.return,y=Z.popupController,c=y.openPopup;a:switch(g){case "PANEL_POPUP_TYPE_DIALOG":var f="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":f="DROPDOWN";break a;default:throw Error("ej`"+
g);}return k.call(n,c.call(y,l,e,f,J))}return _.C(n,Z.getPanel(l),2)}w=n.yieldResult;(e||z)&&w.updatePanel(e,!1,E,z);w.showPanel(E);_.Cl(n)})};
_.X.hidePanel=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,e.getPanel(l),2);O=E.yieldResult;O.hidePanel();e.popupController.closePopup(l);_.Cl(E)})};
_.X.isVisible=function(l,e){var O=this,E;return _.V(function(J){if(J.nextAddress==1)return e&&!O.panelMap.has(l)?J.return(!1):_.C(J,O.getPanel(l),2);E=J.yieldResult;return J.return(E.isVisible())})};
_.X.updatePanel=function(l,e,O,E,J,z){O=O===void 0?!1:O;var M=this,Z;return _.V(function(u){if(u.nextAddress==1){if(!e&&!J)return u.return();z&&M.updatePanelContinuationDatas.set(l,z);return _.C(u,M.getPanel(l),2)}Z=u.yieldResult;Z.updatePanel(e,O,E,J);_.Cl(u)})};
_.X.registerPanelContent=function(l,e){l&&this.panelContentMap.set(l,e)};
_.X.getPanelContent=function(l){return this.panelContentMap.get(l)};
_.X.getUpdatePanelContinuationData=function(l){return this.updatePanelContinuationDatas.get(l)};
et4[Jf]=[_.Qwi];var JE=function(l,e){this.innertubeTransportService=l;this.JSC$16195_screenManager=e},OLP=function(l){var e;
return!((e=l.panelLoadingStrategy)==null||!e.requestTemplate)};
JE.prototype.makeRequest=function(l){var e=this,O,E;return _.V(function(J){switch(J.nextAddress){case 1:if(!OLP(e)){J.jumpTo(2);break}_.b1(J,3);return _.C(J,_.Qh(e.innertubeTransportService,l),5);case 5:return O=J.yieldResult,O?J.return(O.content):(_.UW(Error("fj")),J.return(void 0));case 3:E=_.u1(J),_.UW(E);case 2:return J.return(void 0)}})};
JE.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
JE.prototype.execute=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w;return _.V(function(n){if(n.nextAddress==1){O=l;E=O.data;J=O.fallbackVe;z=O.parentVe;M=O.createScreenConfig;Z=O.renderFn;u=O.command;e.panelLoadingStrategy=E;var k,y,c=((k=e.panelLoadingStrategy)==null?0:k.screenVe)?(y=e.panelLoadingStrategy)==null?void 0:y.screenVe:J;c&&_.on(e.JSC$16195_screenManager,c,z,M);return(d=e.getContent())?_.C(n,Z(d),2):n.jumpTo(2)}return n.nextAddress!=4?OLP(e)?_.C(n,e.makeRequest(u),4):n.return():(w=g=n.yieldResult)?
_.C(n,Z(w),0):n.return()})};
JE[Jf]=[_.Um,_.Hu];var Xy=function(){};
Xy.prototype.getContainer=function(){return _.ZG()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Xy.prototype.openSheet=function(l,e){var O=this,E,J,z,M,Z,u;return _.V(function(d){switch(d.nextAddress){case 1:return E={stack:[],error:void 0,hasError:!1},_.b1(d,2,3),J=JF,_.C(d,O.isSheetOpen(),5);case 5:z=d.yieldResult;ltg(E,IBA(J));if(z){if(e&&O.currentTarget===e)return(M=O.getContainer())==null||M.closeSheet(),d.return();O.pendingData={data:l,target:iB1(O,e)};return d.return()}l.viewModel&&(l={viewModel:l.viewModel});(Z=O.getContainer())==null||Z.openSheet(l,e);O.currentTarget=e;case 3:_.MR(d);
e3T(E);_.ZU(d,0);break;case 2:u=_.u1(d),E.error=u,E.hasError=!0,d.jumpTo(3)}})};
Xy.prototype.closeSheet=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,(e=l.getContainer())==null?void 0:e.closeSheet(),2);if(O.nextAddress!=4)return l.currentTarget=void 0,l.pendingData?_.C(O,l.openSheet(l.pendingData.data,l.pendingData.target),4):O.jumpTo(0);l.pendingData=void 0;_.Cl(O)})};
Xy.prototype.isSheetOpen=function(){var l=this,e,O;return _.V(function(E){return E.return((O=(e=l.getContainer())==null?void 0:e.isSheetOpen())!=null?O:!1)})};
var iB1=function(l,e){if(!_.a("web_parent_target_for_sheets"))return e;var O,E;return(E=(O=l.getContainer())==null?void 0:O.getParentTarget(e))!=null?E:e};var wd=window.documentPictureInPicture;var L92=_.E9(["dark"]),tuW=_.E9(["system-icons"]),qcM=_.E9(["typography"]),vLx=_.E9(["lang"]),NJq=_.E9(["style"]),PT2=_.E9(["dir"]),U2A=_.E9(["rounded-container"]),YcW=_.E9(["style"]),D2x=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],zo=function(l){this.JSC$16207_clientRoot=l;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
zo.prototype.openWindow=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1)return window.documentPictureInPicture&&_.Hx()&&!e.currentPipWindow?_.C(J,(O=wd?wd:null)==null?void 0:O.requestWindow(l),2):J.return(!1);if(J.nextAddress!=3){E=J.yieldResult;if(!E)return J.return(!1);E.addEventListener("pagehide",function(){EV0(e)});
E.addEventListener("resize",e.handlePipWindowResize);e.pipWindowResizeDelay=new _.be(function(){e.currentPipWindow&&_.Wb(e.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.uX(e.currentPipWindow.innerWidth,e.currentPipWindow.innerHeight)])},E);
rSu(E);Qru(E);return _.C(J,BJL(E),3)}if(!TJg())return J.return(!1);e.currentPipWindow=E;e.JSC$16207_eventForwarder=ScL(E,e.JSC$16207_clientRoot);e.pipWindowResizeDelay.start();return J.return(!0)})};
zo.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var EV0=function(l){if(l.currentPipWindow){var e,O;(e=wd?wd:null)==null||(O=e.window)==null||O.close();l.currentPipWindow.removeEventListener("resize",l.handlePipWindowResize);var E;(E=l.pipWindowResizeDelay)==null||E.dispose();l.pipWindowResizeDelay=void 0;var J;(J=l.JSC$16207_eventForwarder)==null||J.stop();l.JSC$16207_eventForwarder=void 0;e=_.b(l.onCloseCallbacks);for(O=e.next();!O.done;O=e.next())O=O.value,O();l.onCloseCallbacks=[];l.currentPipWindow=null}};
zo.prototype.getWindow=function(){return this.currentPipWindow};
var Jqh=function(l,e){var O;(O=l.onCloseCallbacks)==null||O.push(e)};
zo.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Hx()};
_.Ji.Object.defineProperties(zo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
zo[Jf]=[aJx];var XxP=new _.Xa("PICTURE_IN_PICTURE_CONTROLLER");var x2p=function(l,e){this.lengthY=this.lengthX=0;this.lengthX=e.x-l.x;this.lengthY=e.y-l.y};var ztz=function(){},aM0=function(l,e){var O;
(O=l.headerElement)==null||O.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:e}))};var bLH=function(){};
bLH.prototype.openPopup=function(l,e,O,E){var J=this,z;return _.V(function(M){if(!J.container)return M.return();z={openPopupAction:{popup:e,popupType:O,uniqueId:l}};return M.return(J.container.handleOpenPopupAction(z,E))})};
bLH.prototype.closePopup=function(l){this.container&&this.container.closePopup(l)};var MMf=function(){this.openTunnels=new Map},ZAu=function(l,e,O){if(Xzu(O)){var E=_.vD(O,"gclid");
O={handleEvent:function(Z){e&&!e.closed&&typeof e.postMessage==="function"&&Z&&Z.origin&&Z.source===e&&Z.data&&Z.data.action==="gcl_setup"&&e.postMessage(Object.assign({},{action:"gcl_transfer"},E&&{gclid:E},{gadSource:2}),Z.origin)}};
for(var J=_.b(l.openTunnels),z=J.next();!z.done;z=J.next()){var M=_.b(z.value);z=M.next().value;M=M.next().value;if(z.closed)try{window.removeEventListener("message",M),l.openTunnels.delete(z)}catch(Z){_.UW(Z)}}e&&l.openTunnels.size<15&&(l.openTunnels.set(e,O),window.addEventListener("message",O))}};var VMz=function(){this.clientParams=new Map},mV1=function(l){for(var e=_.b(l.clientParams.keys()),O=e.next();!O.done;O=e.next())O=O.value,O.startsWith("yt-mini-app-share")&&l.clientParams.delete(O)};var ZLf=function(l,e){_.y6.call(this);var O=this;this.shortsController=l;this.storeWithShorts=e;l=_.kw(this.storeWithShorts,_.FTL,function(E){if(E){var J,z=(J=O.shortsController.getRoot())==null?void 0:J.getPlayer(),M;(J=(M=O.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer())&&(z==null||z.appendTo(J))}else{var Z;M=(Z=O.shortsController.alternativePlayerContainerElement)==null?void 0:Z.getPlayerContainer().querySelector("#player");J=O.shortsController.activeIndex;
(Z=(z=O.shortsController.getRoot())==null?void 0:z.querySelector('ytd-reel-video-renderer[id="'+J+'"] #player-container'))&&(M==null||M.appendTo(Z,void 0,!0))}});
this.addOnDisposeCallback(l)};
_.m(ZLf,_.y6);var b9=function(l,e,O,E,J){var z=this;this.storeWithShorts=l;this.ephemeralResponseStore=e;this.store=O;this.innertubeTransportService=E;this.innertubeTransportLoader=J;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Ld(_.mI);this.isShortsPipActive=_.Ld(_.yP);this.nextReelVe=_.sL(56921);this.prevReelVe=_.sL(56922);this.backButtonVe=_.sL(22156);this.TEST_ONLY={getActiveModules:function(){return z.activeModules}}},KO6,jeq,uu0;
b9.prototype.initOrDisposeActiveModules=function(l){l?this.activeModules.push(new ZLf(this,this.storeWithShorts)):(_.xS(this.activeModules),this.activeModules.length=0)};
b9.prototype.getRoot=function(){return this.rootElement};
b9.prototype.setActiveIndex=function(l){this.activeIndex=l};
_.aEx=function(l,e){var O,E,J,z,M,Z,u;return _.V(function(d){switch(d.nextAddress){case 1:return O=new o1,(E=O.JSC$11044_getStoreKey(e))&&l.ephemeralResponseStore.has(E)?_.C(d,l.ephemeralResponseStore.get(E),7):_.C(d,uu0(l,e),4);case 4:J=d.yieldResult;if(!E){d.jumpTo(3);break}z=$D(J,3600);return _.C(d,l.ephemeralResponseStore.put(E,new _.uF(z)),3);case 7:J=(M=d.yieldResult)==null?void 0:_.dd(M);case 3:return((Z=J)==null?0:Z.replacementEndpoint)&&(u=_.I(J.replacementEndpoint,_.jT))&&J.sequenceContinuation&&
(u.sequenceParams=J.sequenceContinuation),d.return(J)}})};
KO6=function(l,e){e=(new WO).JSC$11044_getStoreKey(e);return!!e&&l.ephemeralResponseStore.has(e)};
jeq=function(l,e,O){var E,J,z,M,Z;_.V(function(u){if(u.nextAddress==1){E=new WO;J=E.JSC$11044_getStoreKey(e);if(!J)return u.return();if(O.reelWatchSequenceResponse)return z=$D(O.reelWatchSequenceResponse,3600),l.ephemeralResponseStore.put(J,new _.uF(z)),u.jumpTo(0);if(!l.ephemeralResponseStore.has(J))return u.jumpTo(0);Z=O;return _.C(u,l.ephemeralResponseStore.get(J),4)}Z.reelWatchSequenceResponse=(M=u.yieldResult)==null?void 0:_.dd(M);_.Cl(u)})};
uu0=function(l,e){var O=O===void 0?{}:O;var E,J,z;return _.V(function(M){switch(M.nextAddress){case 1:if(l.innertubeTransportService){E=l.innertubeTransportService;M.jumpTo(2);break}if(!l.innertubeTransportLoader){_.tT(Error("hj"));M.jumpTo(2);break}return _.C(M,l.innertubeTransportLoader(),4);case 4:E=M.yieldResult;case 2:return _.C(M,(J=E)==null?void 0:_.Qh(J,e,O),5);case 5:return z=M.yieldResult,M.return(z)}})};
_.Ji.Object.defineProperties(b9.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
b9[Jf]=[oRR,_.Z2,iY,_.MG(_.Um),_.MG(Mfi)];_.C2O=new _.Xa("STORAGE_MANAGER_TOKEN");var oQV=["touchmove","scroll"];var $yx={onSpanEnd:function(l){if(l.parent==null){var e=l.name;_.UG(e);uox(l,e)}}};var CCt={exportToCsi:_.a("web_tracing_export_to_csi"),exportBreadcrumbs:_.a("web_enable_tracing"),bufferSize:_.Cv("web_max_tracing_events"),enabledSpansArray:_.$6("web_tracing_enabled_spans")};var oV4=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},$AP;
oV4.prototype.enqueue=function(l,e){e===1?this.currentPersistentToast=l:this.queue.push(l);this.openToast()};
oV4.prototype.openToast=function(){var l;(l=this.currentToast)!=null&&l.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.MQ=new _.Xa("TOAST_MANAGER_TOKEN");var WxF=new _.Xa("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");_.VY=new _.Xa("VIEW_TRANSITION_COORDINATOR_TOKEN");var dAF=function(l){this.config=l;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;l=_.b(l.transitionConfigs);for(var e=l.next();!e.done;e=l.next())e=_.b(e.value).next().value,this.transitionTasksMap.set(e,[])};
dAF.prototype.registerElement=function(l,e,O){O=O===void 0?!1:O;for(var E=_.b(Object.keys(e)),J=E.next(),z={};!J.done;z={viewTransitionName:void 0},J=E.next()){J=J.value;z.viewTransitionName=e[J];var M=this.elementTasksMap.get(l),Z=void 0;if((Z=M)==null?0:Z.has(J)){_.YE(new _.Hk("Element already registered for transition",l,J));break}M=M||new Map;M.set(J,{beforeTransition:function(u){return function(){l.style.viewTransitionName=u.viewTransitionName}}(z),
afterTransition:function(){l.style.viewTransitionName&&(l.style.viewTransitionName="")},
runOnce:O});this.elementTasksMap.set(l,M)}};
var v9V=function(l,e){var O=l.elementTasksMap.get(e);O&&(O.clear(),O.size===0&&l.elementTasksMap.delete(e))};
dAF[Jf]=[WxF];var gVF;_.iLz=_.XO(function(l){return _.W("basic-content-view-model",{class:_.ax("ytBasicContentViewModelHost",_.Et(l.className))},_.W(_.A,{cond:function(){return l.data().headline},
then:function(e){return _.W("div",{class:"ytBasicContentViewModelHeadline"},_.W(_.zK,{text:e}))}}),_.W(_.KH,{each:function(){return l.data().paragraphs||[]},
keyBy:"INDEX"},function(e){return _.W("div",{class:"ytBasicContentViewModelParagraph"},_.W(_.A,{cond:function(){var O=e();return!!(O.header||O.customHeader||O.headline)},
then:function(){return _.W(gVF,{paragraph:e})}}),_.W(_.A,{cond:function(){return e().asset||e().text},
then:function(){return _.W("div",{class:"ytBasicContentViewModelParagraphContent"},_.W(_.A,{cond:function(){return e().asset},
then:function(O){return _.W("div",{class:"ytBasicContentViewModelParagraphAsset"},_.W(_.Tn,{data:O},{contentPreviewImageViewModel:_.VD}))}}),_.W(_.A,{cond:function(){return e().text},
then:function(O){return _.W("div",{class:"ytBasicContentViewModelParagraphText"},_.W(_.zK,{text:O}))}}))}}))}))},"me");
gVF=_.XO(function(l){var e=l.paragraph;return _.W(_.ZB,null,_.W(_.A,{cond:function(){return e().headline},
then:function(O){return _.W(_.zK,{text:O,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.W(_.Tn,{data:function(){return e().header||e().customHeader}},{sectionHeaderViewModel:function(O){return _.W(_.z3,{data:O.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var AqO=_.XO(function(l){var e=_.e4("yt-expandable-metadata-header-view-model"),O=_.pd(function(E){if(!_.DP(_.rC(E),e.value,["A".toString(),"BUTTON".toString()])){var J;(J=l.expandedCallback)==null||J.call(l,!1)}});
return _.W("yt-expandable-metadata-header-view-model",{el:e,class:"ytExpandableMetadataHeaderViewModelHost"},_.W(_.A,{cond:function(){return l.expanded()},
then:function(){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":O},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.W(_.A,{cond:function(){return l.data().expandedTitleImage},
then:function(E){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.W(_.Jm,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E}))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.W(_.zK,{text:function(){return l.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.W(_.zK,{text:function(){return l.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.W(_.zK,{text:function(){return l.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.Tn,{data:function(){return l.data().infoButton}},{buttonViewModel:_.hM}),_.W(_.Tn,{data:function(){return l.data().collapseButton}},{buttonViewModel:function(E){return _.W(_.hM,{data:E.data,
onClick:function(){var J;(J=l.expandedCallback)==null||J.call(l,!1)}})}})))},
else:function(){return _.W(wxh,Object.assign({},l))}}))},"oe"),nVf=_.XO(function(l){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.W(_.A,{cond:function(){return l.data().collapsedLabelImage},
then:function(e){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.W(_.Jm,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:e,alt:""}))}}),_.W(_.zK,{text:function(){return l.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),wxh=_.XO(function(l){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.pd(function(){var e;return void((e=l.expandedCallback)==null?void 0:e.call(l,!0))})},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.W(_.A,{cond:function(){return l.data().collapsedImage},
then:function(e){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.W(_.Jm,{width:16,height:16,data:e,alt:""}))}}),_.W(_.A,{cond:function(){return l.data().showLeadingCollapsedLabel},
then:function(){return _.W(nVf,Object.assign({},l))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.W(_.zK,{text:function(){return l.data().collapsedTitle}}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.A,{cond:function(){return!l.data().showLeadingCollapsedLabel},
then:function(){return _.W(nVf,Object.assign({},l))}}),_.W(_.Tn,{data:function(){return l.data().infoButton}},{buttonViewModel:_.hM}),_.W(_.Tn,{data:function(){return l.data().expandButton}},{buttonViewModel:function(e){return _.W(_.hM,{data:e.data,
onClick:function(){var O;(O=l.expandedCallback)==null||O.call(l,!0)}})}})))},"qe");_.aWf=_.XO(function(l){var e=_.b(_.jN(function(){return l.data().initiallyExpanded})),O=e.next().value,E=e.next().value,J,z=(J=_.V2().resolve(_.MG(_.lp)))==null?void 0:J(),M=function(){var Z=l.data().colorData;
if(Z)return z?Z==null?void 0:Z.darkColorPalette:Z==null?void 0:Z.lightColorPalette};
return _.W("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.HF({"background-color":function(){var Z=M();return(Z==null?0:Z.section2Color)?_.qv(Z.section2Color):""}})},_.W(_.Tn,{data:function(){return l.data().header}},{expandableMetadataHeaderViewModel:function(Z){return _.W(AqO,{data:Z.data,
expanded:function(){return!!O()},
expandedCallback:function(u){E(u)}})}}),_.W(_.A,{cond:function(){return O()},
then:function(){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.W(_.Tn,{data:function(){return l.data().expandedContent}},{horizontalShelfViewModel:function(Z){return _.W(_.cq,{data:Z.data,
includeMargin:!0,forceNarrowLayout:!0,palette:M})},
videoSummaryContentViewModel:function(Z){return _.W(Qhx,{data:Z.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(Z){return _.W(_.Cw,{data:Z.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(Z){return _.W(_.iLz,{data:Z.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.W(_.Tn,{data:function(){return l.data().expandedBottomButtons}},{buttonViewModel:function(Z){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.W(_.hM,{data:Z.data}))}}))}}))},"re");var kg0=_.XO(function(l){var e=l.text;var O=l.marqueeSpacing;var E=l.scrollDelay;var J=l.scrollDuration;var z=l.enableMarqueeScroll;l=l.large;var M=_.b(_.AF(!1,void 0,"kfNqfd")),Z=M.next().value,u=M.next().value,d=_.b(_.AF(0,void 0,"bYgZbf"));M=d.next().value;var g=d.next().value,w=_.e4("marquee-scroll");d=_.e4("div");var n=_.e4("span"),k=_.V2().resolve(_.OL);_.Gh(function(){if(z()){var f=n.value.getBoundingClientRect().width,P=w.value.getBoundingClientRect().width;if(f>P){var h=(k==="ltr"?-1:1)*
(f+(O?O():16));Promise.resolve().then(function(){u(!0);g(h)})}}},"giRlme");
var y={},c={};return _.W("marquee-scroll",{class:_.ax("ytMarqueeScrollHost",(y.ytMarqueeScrollHostLarge=l,y)),el:w},_.W("div",{id:"marquee-scroll-inner-container",class:_.ax("ytMarqueeScrollInnerContainer",(c.ytMarqueeScrollAnimationEnabled=function(){return Z()},c)),
el:d,style:_.HF({gap:O?(0,_.pc)(O):"16px","animation-duration":J?L9q(J):"16s","animation-delay":E?L9q(E):"3s","--marquee-translate":(0,_.pc)(M)})},_.W("span",{el:n,dir:"auto"},_.W(_.zK,{text:e,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.W(_.A,{cond:Z,then:function(){return _.W("span",{"aria-hidden":"true",dir:"auto"},_.W(_.zK,{text:e,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.IWO=_.XO(function(l){var e=l.data;var O=l.overlayDensity;l=_.pd(function(){e().onTapCommand&&_.r6(e().onTapCommand);return!1});
var E=_.erW(),J={};return _.W("reel-sound-metadata-view-model",{class:_.ax("ytReelSoundMetadataViewModelHost",(J.ytReelSoundMetadataViewModelHostLarge=function(){return(O==null?void 0:O())===1},J)),
"on:click":l,tabindex:0,role:"button","on:keydown":E},_.W("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.W(_.A,{cond:function(){return e().musicIcon},
then:function(z){return _.W(_.Jm,{data:z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.W("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.W(kg0,{text:function(){return e().soundMetadata},
enableMarqueeScroll:function(){return!!e().enableMarqueeScroll},
large:function(){return(O==null?void 0:O())===1}}))))},"te");var mAH,yqO,Zx,HLu,FxO,jdz,TTf,RtF;mAH=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];yqO=_.Cv("wil_icon_max_concurrent_fetches",Infinity);
Zx=function(l,e,O){var E=this;this.iconSet=l;this.appDirection=e;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Op.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.a("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.a("wil_icon_network_first");this.renderWhenIdle=_.a("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.a("wil_icon_load_immediately");this.isPurging=!1;l=function(){E.cacheStorageAvailable&&(E.cacheStorageAsync=_.Op.caches.open("yt-icons").then(function(z){return E.cacheStorageSync=z}).catch(function(){E.cacheStorageAvailable=!1}))};
O=(O==null?void 0:O())||{};O=_.b(Object.entries(O));for(e=O.next();!e.done;e=O.next()){var J=_.b(e.value);e=J.next().value;J=J.next().value;J=AT(J);pxo(J);this.iconCache[e]=J.cloneNode(!0)}this.isPurging=Kx3(this);this.isPurging instanceof Promise?this.isPurging.then(l):l()};
_.Thq=function(l,e){var O=l.resolveIcon(e);return O?l.renderingMode===1?jdz(l,O,l.renderingMode):(e=l.iconCache[O.url])?(e=e.cloneNode(!0),HLu(l,e),jdz(l,O,l.renderingMode,e)):_.cqz(l,O).then(function(E){var J=E?0:1;HLu(l,E);return jdz(l,O,J,E)}):(_.YE(new _.Hk("Icon not found",{iconShape:e})),function(){})};
HLu=function(l,e){if(e){l.counter+=1;l="_yt"+l.counter;e=[e].concat(_.kA(e.getElementsByTagName("*")));e=_.b(e);for(var O=e.next();!O.done;O=e.next())if(O=O.value,O.tagName==="style"&&O.textContent)O.textContent=FxO(O.textContent,l,!0);else for(var E=_.b(O.attributes),J=E.next();!J.done;J=E.next()){J=J.value;J.name==="id"&&(J.value+=l);["mask","fill","clip-path"].includes(J.name)&&(J.value=FxO(J.value,l));if(J.name==="style"){var z=O.style;try{z.cssText=FxO(z.cssText,l,!0)}catch(g){var M=void 0,Z=
void 0,u=void 0,d=void 0;u9({error:((M=g)==null?void 0:(u=(Z=M).toString)==null?void 0:u.call(Z))||"",el:O.outerHTML,style:!!z,cssText:(d=z)==null?void 0:d.cssText})}}J.name==="xlink:href"&&(J.value=J.value.replace(/#(.*)/,"#$1"+l))}}};
FxO=function(l,e,O){var E=/url\(["']?#(.*?)["']?\)/;(O===void 0?0:O)&&(E=/url\(["']?#(.*?)["']?\)/g);return l.replace(E,"url(#$1"+e+")")};
jdz=function(l,e,O,E){return function(J,z){var M=Object.assign({},{iconColor:"currentcolor",iconWidth:e.size+"px",iconHeight:e.size+"px",iconDisplay:"block"},z);z=_.i$("DIV");var Z=M.iconColor,u=M.iconFilter;M="width: "+M.iconWidth+"; height: "+M.iconHeight+"; display: "+M.iconDisplay+";";u&&(M+=" filter: "+u+";");O===0&&(M+=" fill: "+Z+";");O===1&&(u=e.url,M+=" -webkit-mask: url("+u+") no-repeat center / cover; mask: url("+(u+") no-repeat center / cover; background-color: ")+Z);e.allowMirroring&&
l.appDirection==="rtl"&&(M+=" transform: scale(-1, 1); transform-origin: center center;");z.setAttribute("style",M);O===0&&E&&z.appendChild(E);J.appendChild(z)}};
_.cqz=function(l,e){var O,E,J;return _.V(function(z){O=function(M){return KU(M)};
E=e.url;if(!fW4(E))throw Error("jj");J=RtF(l,E);return z.return(J.then(function(M){return M.clone().text()}).then(function(M){var Z=O(M);
M=e.size;var u=_.i$("DIV");_.Ye(u,Z);Z=_.wk(u.firstElementChild!==void 0?u.firstElementChild:_.rq6(u.firstChild,!0));M=pxo(Z,M);l.iconCache[E]=M.cloneNode(!0);delete l.responsePromises[E];return M}).catch(function(){}))})};
TTf=function(l){var e,O=(e=l.requestAninmationFrameResolver)==null?void 0:e.promise;O||(l.requestAninmationFrameResolver=new _.d8,O=l.requestAninmationFrameResolver.promise,_.Op.requestAnimationFrame(function(){var E;(E=l.requestAninmationFrameResolver)==null||E.resolve();l.requestAninmationFrameResolver=null}));
return O};
RtF=function(l,e){var O,E;return _.V(function(J){if(J.nextAddress==1)return l.waitForAnimationFrame?_.C(J,TTf(l),2):J.jumpTo(2);O=l.responsePromises[e];O||(E=function(){var z,M,Z;return _.V(function(u){switch(u.nextAddress){case 1:if(!l.cacheStorageAvailable){z=void 0;u.jumpTo(2);break}if(M=l.cacheStorageSync){u.jumpTo(3);break}return _.C(u,l.cacheStorageAsync,4);case 4:M=u.yieldResult;case 3:z=M;case 2:return Z=z,l.isNetworkFirstStrategy?u.return(l.fetchAndUpdateCache(e,Z).catch(l.getCacheStorageResponse.bind(l,
e,Z))):u.return(l.getCacheStorageResponse(e,Z).catch(l.fetchAndUpdateCache.bind(l,e,Z)))}})},O=l.renderWhenIdle?new Promise(function(z,M){_.fZ(_.UD,function(){E().then(z).catch(M)},10)}):E(),l.responsePromises[e]=O);
return J.return(O.catch(function(z){delete l.responsePromises[e];u9({error:(z==null?0:z.toString)?z.toString():"",url:e});throw z;}))})};
Zx.prototype.fetchAndUpdateCache=function(l,e){var O=this;return _.V(function(E){return E.return(sdu(O,l).then(function(J){Gg4(O,l,J,e);return J}))})};
var sdu=function(l,e){var O;return _.V(function(E){if(l.numFetches<yqO)return l.numFetches+=1,E.return(BTP(l,e).finally(function(){--l.numFetches;if(Object.keys(l.queuedResponseResolvers).length){var J=Object.keys(l.queuedResponseResolvers)[0],z=l.queuedResponseResolvers[J];delete l.queuedResponseResolvers[J];z.resolve(sdu(l,J))}}));
O=new _.d8;l.queuedResponseResolvers[e]=O;return E.return(O.promise)})},BTP=function(l,e,O){O=O===void 0?2:O;
var E;return _.V(function(J){E={credentials:"same-origin",priority:"low"};return J.return(_.Op.fetch(e,E).then(function(z){return z.ok?z:Promise.reject(Error("kj`"+z.status+"`"+z.statusText))}).catch(function(z){if(O>0)return BTP(l,e,O-1);
throw z;}))})},Gg4=function(l,e,O,E){_.V(function(J){return E?J.return(new Promise(function(z){_.fZ(_.UD,function(){var M,Z;
return _.V(function(u){switch(u.nextAddress){case 1:if(!l.isNetworkFirstStrategy){M=void 0;u.jumpTo(2);break}return _.C(u,E.match(e).catch(function(){}),3);
case 3:M=u.yieldResult;case 2:if(Z=M){u.jumpTo(4);break}return _.C(u,E.put(e,O.clone()).catch(function(d){u9({error:(d==null?0:d.toString)?d.toString():"",url:e})}),4);
case 4:z(),_.Cl(u)}})},50)})):J.return()})};
Zx.prototype.getCacheStorageResponse=function(l,e){return _.V(function(O){return e?O.return(e.match(l).then(function(E){return E&&E.ok?E:Promise.reject()})):O.return(Promise.reject())})};
var pxo=function(l,e){e===void 0||l.getAttribute("viewBox")||l.setAttribute("viewBox","0 0 "+e+" "+e);l.setAttribute("focusable","false");l.setAttribute("aria-hidden","true");try{l.style.pointerEvents="none",l.style.display="inherit",l.style.width="100%",l.style.height="100%"}catch(J){var O;u9({error:((O=J)==null?0:O.toString)?J.toString():""});try{l.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(z){var E;u9({error:((E=z)==null?0:E.toString)?z.toString():
""})}}return l},fW4=function(l){for(var e=_.b(mAH),O=e.next();!O.done;O=e.next())if(l.startsWith(O.value)&&l.endsWith(".svg"))return!0;
return!1};
Zx.prototype.resolveIcon=function(l){return this.iconSet.resolveIcon(l)};
var u9=function(l){_.hG(new _.Hk("Error in IconManager",l))},Kx3=function(l){if(_.a("wil_icons_cache_purge_killswitch"))return!1;
try{var e=_.Op.localStorage}catch(z){return!1}if(!e||!l.cacheStorageAvailable)return!1;var O=function(z){try{var M;(M=e)==null||M.setItem("yt-icons-last-purged",z.toString())}catch(u){var Z;u9({error:((Z=u)==null?0:Z.toString)?u.toString():""})}},E=Number(e.getItem("yt-icons-last-purged"));
if(!E)return E=new Date,E=E.setDate(E.getDate()-Math.floor(Math.random()*90+1)),O(E),!1;if(function(z,M){z=new Date(z);M=new Date(M);return M.getMonth()-z.getMonth()+12*(M.getFullYear()-z.getFullYear())}(E,Date.now())<3)return!1;
try{return _.Op.caches.delete("yt-icons").then(function(z){z&&O(Date.now());return z}).catch(function(){return!1}).finally(function(){l.isPurging=!1})}catch(z){var J;
u9({error:((J=z)==null?0:J.toString)?z.toString():""});return!1}};
Zx[Jf]=[DIS,_.OL,_.MG(xI6)];_.Cf=function(l,e){this.iconManager=l;this.iconsToFetch=e};
_.Cf[Jf]=[_.A3,_.MG(Q8q)];var P2P=function(){};var UAF=function(l,e,O){this.requestKey=l;this.byc=e;this.mz0=O;this.g2t=function(){return new XMLHttpRequest};
this.ckr=void 0;this.kWq=[]};
UAF.prototype.getLatestChallengeResponse=function(){return this.mz0};
var vei=function(l,e,O){var E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1){_.UG("attestation_challenge_fetch");_.Yu("att_fs",void 0,"attestation_challenge_fetch");if(!l.ckr)throw new _.Ra(9,"Missing fetcher");return _.C(Z,l.ckr(e,O),2)}E=Z.yieldResult;z=(J=E)==null?void 0:J.bgChallenge;if(!z)throw new _.Ra(15,"Missing field");l.mz0=E;l.kWq.forEach(function(u){u(E)});
M=ocM(z);_.Yu("att_fc",void 0,"attestation_challenge_fetch");OI8("attestation_challenge_fetch");return Z.return(M)})},dRH=function(l,e){var O,E,J,z,M;
return _.V(function(Z){switch(Z.nextAddress){case 1:O=new V6(100,3E5,.25,2),E=void 0;case 2:if(!(O.currBackoffCount_<10)){Z.jumpTo(4);break}_.b1(Z,5);if(!(O.currBackoffCount_>0)){Z.jumpTo(7);break}return _.C(Z,dyA(O.getValue()),7);case 7:return _.C(Z,Ypu(l,e),9);case 9:return J=Z.yieldResult,Z.return(J);case 5:z=_.u1(Z);z instanceof _.Ra?E=z:(M=z instanceof Error?z.message:"Unknown",E=new _.Ra(9,M));OJq(O);Z.jumpTo(2);break;case 4:if(E)throw E;throw new _.Ra(9,"Unknown error");}})},Ypu=function(l,
e){e=TGk(sHk(new R5H,e),l.requestKey);
var O=new _.d8,E=l.g2t();E.open("POST",l.byc);E.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");E.setRequestHeader("Content-Type","application/json+protobuf");E.onload=function(){if(_.cPg(E)){var J=q$q(E.responseText);O.resolve(J)}else O.reject(new _.Ra(_.u$(_.Wk(E)),E.statusText))};
E.onerror=function(){O.reject(new _.Ra(_.u$(_.Wk(E)),E.statusText))};
E.send(e.serialize());return O.promise};var Lxo=function(l){this.networkStatusManager=l;this.isDownloaded=$2q===void 0?function(){return!1}:$2q;
this.isReady=!1;this.o7A=htu(this)},htu=function(l){var e;
return _.V(function(O){if(O.nextAddress==1)return _.C(O,jQg(),2);if(O.nextAddress!=3)return e=O.yieldResult,_.C(O,Cz6(e),3);l.pj=O.yieldResult;i$x(l.pj).then(function(){l.isReady=!0});
return O.return(l.pj)})},tMF=function(l,e,O){l.pj?(l=l.pj.uq({fZ:O,
oHB:!0,yI8:!0}),e.serviceIntegrityDimensions={poToken:l}):_.UW(Error("mj"))};
Lxo.prototype.processContext=function(l){var e=this;if(!l.input.match(_.Em(j31)))return _.SK();var O=l.innerTubeRequest,E=O.videoId;return!E||this.isDownloaded(O)||this.networkStatusManager&&!this.pj&&!this.networkStatusManager.isNetworkAvailable()?_.SK():this.pj?this.isReady?(tMF(this,O,E),_.SK()):new Dn(i$x(this.pj).then(function(){tMF(e,O,E)})):new Dn(this.o7A.then(function(J){return _.V(function(z){if(z.nextAddress==1)return _.C(z,i$x(J),2);
tMF(e,O,E);_.Cl(z)})}))};var qpi=new _.Xa("WEB_PO_CONTEXT_PROCESSOR");var vV4=function(l,e){var O=this;this.nPv=0;var E;this.zWl=(E=e==null?void 0:e.zWl)!=null?E:window;this.networkStatusManagerPromise=e==null?void 0:e.networkStatusManagerPromise;var J;this.requestKey=(J=e==null?void 0:e.requestKey)!=null?J:_.oy("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var z;this.mdI=(z=e==null?void 0:e.mdI)!=null?z:function(u){return new Y$(u)};
var M;E=(M=e==null?void 0:e.kVA)!=null?M:function(u,d,g){return new UAF(u,d,g)};
this.bgChallenge=ocM(l.bgChallenge);this.ttlSeconds=$bx(zi(l.challenge||""));this.cT=E(this.requestKey,_.a("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Op.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",l);gQp(this.cT);var Z;this.flk=(Z=e==null?void 0:e.flk)!=null?Z:function(u){_.f4(O.zWl.document,"visibilitychange",function(){O.zWl.document.visibilityState===
"visible"&&u()})}},rqh=function(l){if(!l.pJ){var e={maxAttempts:5,
g6Z:l.ttlSeconds*1E3};wzT(l.zWl);l.pJ=l.mdI({cT:l.cT,dZ:{disable:_.a("html5_web_po_disable_remote_logging"),w7:"aGIf",xbk:yP8("html5_web_po_experiment_ids"),gNV:_.a("wpo_dis_lfdms")?0:1E3,vz:_.a("wpo_gel_strz")?function(E){var J=KnR.get(E);J||(J=new p5x(E),J=new $z(J),KnR.set(E,J));return J}:void 0},
zyl:e,uaZ:l.bgChallenge,noV:A_T});l.nPv=Date.now();YN6(l.pJ,function(){l.nPv=Date.now()});
fFA(l.pJ,function(){return _.V(function(E){return E.return(NTP(l))})});
var O=l.j7k.bind(l);l.networkStatusManagerPromise&&l.ttlSeconds>0&&l.networkStatusManagerPromise.then(function(E){E.listen("publicytnetworkstatus-online",O)});
l.flk(O)}};
vV4.prototype.j7k=function(){if(Date.now()>this.nPv+this.ttlSeconds*1E3){var l;(l=this.pJ)==null||Umq(l)}};
var NTP=function(l){if(l.qYC)return l.qYC;if(!l.pJ)throw Error("nj");l.qYC=new q8({pJ:l.pJ,cT:l.cT,l2r:!0,onError:A_T});return l.qYC},aXd=function(l,e){l=new vV4(l,e);
rqh(l);NTP(l)};var ob=function(l,e){this.store=l;this.queue=[];this.supportsFocus=_.a("web_ephemeral_actions_focus");e==null||e.addEventListener("yt-navigate-start",this.reset.bind(this))};
ob.prototype.enqueue=function(l){var e=l.command,O=l.durationMs,E=l.elementToFocus;var J=l.label;var z=l.elementToFocus;l.command?J=_.ml("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:J,shortcut:_.ml("SHIFT_PLUS_ENTER")}):z&&this.supportsFocus&&(l=J+". "+_.ml("SHIFT_PLUS_ENTER")+" for more information.",J=_.ml("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:J,shortcut:_.ml("SHIFT_PLUS_ENTER")},l));O={announcement:J,durationMs:O!=null?O:this.supportsFocus?8E3:void 0};e?O.command=e:E&&this.supportsFocus&&(E.classList.add("ephemeral-action-focusable-element"),
O.selector=E.tagName+".ephemeral-action-focusable-element");this.queue.push(O);DAO(this)};
ob.prototype.activate=function(l){var e=_.K9T(this.store.getState());if(e){if(e==null?0:e.command)_.qT(e.command),this.store.dispatch(ITR(null));(e==null?0:e.selector)&&this.supportsFocus&&(e=document.querySelector(e.selector),_.lBT(e));l.preventDefault()}};
var DAO=function(l){if(!_.K9T(l.store.getState())&&l.queue.length){var e=l.queue.shift();e&&(l.previousAnnouncement===e.announcement&&(e.announcement+="\u00a0"),l.store.dispatch(ITR(e)),l.previousAnnouncement=e.announcement,l.timeoutId=setTimeout(function(){if(e.selector&&l.supportsFocus){var O;(O=document.querySelector(e.selector))==null||O.classList.remove("ephemeral-action-focusable-element")}l.store.dispatch(ITR(null));DAO(l)},e.durationMs))}};
ob.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(ITR(null));this.queue.length=0;this.timeoutId=void 0};
ob[Jf]=[_.LQ,_.KQ];_.$Y=new _.Xa("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var SpC=new _.Xa("AUTH_SERVICE_TOKEN");var myt=_.E9(["about:blank"]),IXW;var QdH=new _.Xa("API_IFRAME_TOKEN"),xAu=new _.Xa("FETCH_FN_TOKEN"),lSu=new _.Xa("PARSE_FN_TOKEN"),eF3=new _.Xa("WINDOW_REQUEST_TOKEN");var NpH;NpH=new _.Xa("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.OR3=new _.Xa("MISC_UI_SHARED_FLAGS_TOKEN");var EqF=function(){};
EqF.prototype.getFlag=function(l){if(l.configType!==2)throw Error("oj");return JCF(l)};
var JCF=function(l){switch(l.flagType){case "bool":return _.a(l.flagName);case "int":return _.qi(_.Cv(l.flagName));case "double":return _.Cv(l.flagName);case "string":return _.oy(l.flagName);case "int32_list":return yP8(l.flagName);case "int64_list":return yP8(l.flagName).map(function(e){return _.qi(e)});
case "string_list":return _.$6(l.flagName);default:throw Error("pj");}};var Wr=function(l,e,O){e=e===void 0?{}:e;G7.call(this,O===void 0?"uninitialized":O);this.env=l;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];e.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=e.shouldWaitOnAsyncImmediate)};
_.m(Wr,G7);Wr.prototype.init=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?_.C(E,l(e.env),2):(l(e.env),E.jumpTo(2));if(E.nextAddress!=4)return e.jobSet?_.C(E,e.jobSet.completedResolver.promise,4):E.jumpTo(4);O=_.h7();O.parkOrScheduleJob(function(){e.transition("rendering")},10,"ci");
_.Cl(E)})};
Wr.prototype.initialRender=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?_.C(E,l(e.env),2):(l(e.env),E.jumpTo(2));if(E.nextAddress!=4)return e.jobSet?_.C(E,e.jobSet.completedResolver.promise,4):E.jumpTo(4);O=_.h7();O.parkOrScheduleJob(function(){e.transition("rendered")},10,"cr");
_.Cl(E)})};
Wr.prototype.afterRenderImmediate=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?_.C(E,l(e.env),2):(l(e.env),E.jumpTo(2));if(E.nextAddress!=4)return e.jobSet?_.C(E,e.jobSet.completedResolver.promise,4):E.jumpTo(4);O=_.h7();O.parkOrScheduleJob(function(){e.transition("after-render-deferred")},10,"carml");
_.Cl(E)})};
Wr.prototype.afterRenderDeferred=function(l){var e=this;return _.V(function(O){l(e.env);_.Cl(O)})};var X64={},zFu=(X64.rendered={priority:0,callback:function(l){pwq(l.injector.resolve(RD))}},X64);var bRu=!1,RVx=0,H$u=null,fXV=null;var M0O=new _.Xa("NETWORK_SLI_TOKEN");var V03=function(l,e,O,E){this.networkSli=l;this.fetchFn=e;this.parseFn=O;this.requestFn=E};
V03.prototype.fetch=function(l,e,O){var E=this,J,z,M;return _.V(function(Z){J=ZRz(E,l,e);M=(z=E.fetchFn)!=null?z:fetch;return Z.return(M(J).then(function(u){return E.handleResponse(u,O)}).catch(function(u){_.hG(u);
if((O==null?0:O.expectJsonStrict)&&u instanceof m6&&u.errorType===1)return Promise.reject(u)}))})};
var Keq=function(l,e,O,E){var J,z,M,Z,u,d,g;return _.V(function(w){switch(w.nextAddress){case 1:return J=ZRz(l,e,O),_.b1(w,2),_.C(w,fetch(J),4);case 4:z=w.yieldResult;_.Q2(w,3);break;case 2:throw _.u1(w),new m6(2,"Failed to parse streaming response",J.url);case 3:if(!z.redirected&&!z.ok)throw(M=l.networkSli)==null||M.failure(),new _.Hk("Streaming fetch request not ok",J.url);if(!z.body)throw new _.Hk("No response body in streaming response",J.url);Z={};if(_.a("web_streaming_fast"))return u=z.body.getReader(),
w.return(ukF(l,u,Z,E));d=z.body.pipeThrough(new TextDecoderStream).getReader();g=new _.uI;return w.return(CqF(l,d,g,EaL,Z,E))}})},ZRz=function(l,e,O){if(l.networkSli){var E=_.A5(_.M9(e,"key"))||"/UNKNOWN_PATH";
l.networkSli.start(E)}E=O;_.a("wug_networking_gzip_request")&&(E=PH8(O));var J;return new ((J=l.requestFn)!=null?J:window.Request)(e,E)},ukF=function(l,e,O,E){var J,z,M,Z,u,d,g,w,n,k,y;
return _.V(function(c){switch(c.nextAddress){case 1:J=new TextDecoder("utf-8"),z="",M=function(f){f=f.trim();f.length!==0&&f!=="]"&&f!=="["?(f.startsWith("[")&&(f=f.substring(1)),f.endsWith("]")&&(f=f.slice(0,-1)),f.endsWith(",")&&(f=f.slice(0,-1)),f=f.trim()):f=void 0;if(f)try{var P=JSON.parse(f);EaL(O,P);E==null||E(O,P)}catch(h){throw new m6(1,"Failed to parse streaming response",f);}},_.b1(c,2,3);
case 5:return _.C(c,e.read(),8);case 8:Z=c.yieldResult;u=Z.value;if(d=Z.done)return z.length>0&&M(z),g=void 0,(g=l.networkSli)==null||g.success(),c.return(O);z+=J.decode(u,{stream:!0});w=z.split("\n");z=w.pop()||"";n=_.b(w);for(k=n.next();!k.done;k=n.next())y=k.value,M(y);c.jumpTo(5);break;case 3:_.MR(c);e.releaseLock();_.ZU(c,0);break;case 2:throw _.u1(c),new m6(1,"Failed to parse streaming response");}})},CqF=function(l,e,O,E,J,z){var M,Z,u,d,g,w,n,k,y;
return _.V(function(c){if(c.nextAddress==1)return _.C(c,e.read(),2);M=c.yieldResult;Z=M.value;if(u=M.done)return(d=l.networkSli)==null||d.success(),c.return(J);try{g=O.parse(Z)}catch(f){throw new m6(1,"Failed to parse streaming response",Z);}if(g!=null)for(w=_.b(g),n=w.next();!n.done;n=w.next())k=n.value,E(J,k),y=void 0,(y=z)==null||y(J,k);return c.return(CqF(l,e,O,E,J,z))})};
V03.prototype.handleResponse=function(l,e){var O,E=(O=this.parseFn)!=null?O:JSON.parse;O=l.text().then(function(J){if((e==null?0:e.jspbResponseCtor)&&l.ok)return EHu(e.jspbResponseCtor,J);J=J.replace(")]}'","");if((e==null?0:e.expectJsonStrict)&&J)try{var z=E(J)}catch(Z){throw new m6(1,"JSON parsing failed after fetch");}var M;return(M=z)!=null?M:E(J)});
l.redirected||l.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),O=O.then(function(J){_.hG(new _.Hk("Error: API fetch failed",l.status,l.url,J));return Object.assign({},J,{errorMetadata:{status:l.status}})}));
return O};
V03[Jf]=[_.MG(M0O),_.MG(xAu),_.MG(lSu),_.MG(eF3)];var oqO=new _.Xa("NETWORK_MANAGER_TOKEN");var $iz=[1,2,4,8,16,30],di3=function(l){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=l.maxTimeMs;this.maxFrameCount=l.maxFrameCount===void 0?Math.ceil(60*l.maxTimeMs/1E3):l.maxFrameCount;l=_.b($iz);for(var e=l.next();!e.done;e=l.next())this.brokenFrameSummarizers.push(new W1u(e.value/60*1E3))},gqh=function(l){var e=l.frameCountInternal>=l.maxFrameCount;
return l.elapsedTimeMs>=l.maxTimeMs||e},iRh=function(l){for(var e=[],O=_.b(l.brokenFrameSummarizers),E=O.next();!E.done;E=O.next())E=E.value,E=E.brokenFrameCount!==0?{severityMs:Math.round(E.targetFrameTimeMs),
eventCount:E.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(E.averageDurationBetweenEventsMs)}:void 0,E&&e.push(E);return{summaries:e,monitoringDurationMs:Math.round(l.elapsedTimeMs)}};
_.Ji.Object.defineProperties(di3.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 W1u=function(l){this.targetFrameTimeMs=l;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Ji.Object.defineProperties(W1u.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var w6P=function(){};
w6P.prototype.start=function(l,e){var O=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var E=new di3({maxTimeMs:l});this.monitor=E;this.lastSummaryInternal=void 0;this.metadataToLog=e;return new Promise(function(J){var z=function(M){if(M===void 0)O.stop(),J(void 0);else if(O.monitor!==E)M=Object.assign({},iRh(E),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),J(M);else{var Z=O.monitor;if(!gqh(Z)){Z.frameCountInternal++;if(Z.prevTime===void 0)Z.startTime=
M;else for(var u=M-Z.prevTime,d=_.b(Z.brokenFrameSummarizers),g=d.next();!g.done;g=d.next()){g=g.value;var w=g.currTimeMs;g.currTimeMs+=u;u>g.targetFrameTimeMs+2&&(g.brokenFrameCount++,g.timeOfFirstBrokenFrameMs===void 0&&(g.timeOfFirstBrokenFrameMs=w),g.timeOfLastBrokenFrameMs=w)}Z.prevTime=M}gqh(O.monitor)?J(O.stop()):_.UD.addJob(z,5,0)}};
_.UD.addJob(z,5,0)})};
w6P.prototype.stop=function(l){if(!this.monitor)return this.lastSummaryInternal;var e=Object.assign({},iRh(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(e.monitoringDurationMs){l=l!=null?l:this.metadataToLog;var O={droppedFramesSummary:e,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};l&&(O[l.type]=l.data);_.Bm("manualSmoothnessMeasurement",O)}this.monitor=void 0;this.lastSummaryInternal=e;this.metadataToLog=void 0;return e};_.AC3=new _.Xa("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var nq4;nq4=function(l){this.JSC$16350_expiringStorage=new FR(l)};
_.aS4=function(l){if(_.TRL()&&(l=_.Wux(_.Kv()+"::"+l)))return new nq4(l)};
nq4.prototype.set=function(l,e,O){O=O!==void 0?Date.now()+O:void 0;this.JSC$16350_expiringStorage.set(l,e,O)};
nq4.prototype.get=function(l){return this.JSC$16350_expiringStorage.get(l)};
nq4.prototype.remove=function(l){this.JSC$16350_expiringStorage.remove(l)};var kSC=new _.Xa("SESSION_STORAGE");_.dw=function(){};
_.dw.getInstance=function(){var l=_.vK("ytglobal.storage_");l||(l=new _.dw,_.zJ("ytglobal.storage_",l));return l};
_.dw.prototype.estimate=function(){var l,e,O;return _.V(function(E){l=navigator;return((e=l.storage)==null?0:e.estimate)?E.return(l.storage.estimate()):((O=l.webkitTemporaryStorage)==null?0:O.queryUsageAndQuota)?E.return(sjx()):E.return()})};
_.zJ("ytglobal.storageClass_",_.dw);var Uyg=!!(VK[1]>>14&1);var PCV=!1;var IS4=_.E9(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),miO=_.E9(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var suq={"/":_.an,"/?feature=ytca":_.an,"/feed/downloads":_.jGx};var I2=function(l,e,O){this.JSC$16362_upliftPromise=l;this.store=e;this.JSC$16362_persistentStorePromiseAccessor=O};
I2.prototype.shouldPreferLocalResponse=function(l){return l.browseId==="FEdownloads"||l.browseId==="FEsmart_downloads"&&_.a("kevlar_modern_downloads_page")?!0:!1};
I2.prototype.localInnertubeResponse=function(l){var e=this;return _.V(function(O){return l.browseId==="FEdownloads"?_.a("kevlar_modern_downloads_page")?O.return(yCF(e)):O.return(p64(e)):l.browseId==="FEsmart_downloads"&&_.a("kevlar_modern_downloads_page")?O.return(K13(e)):O.return(Promise.reject(Error("rj")))})};
I2.prototype.canProvideFallbackResponse=function(){return!0};
I2.prototype.localFallbackInnertubeResponse=function(l){var e=this,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return _.C(z,e.JSC$16362_persistentStorePromiseAccessor(),2);case 2:O=z.yieldResult;if(l.browseId!=="SPaccount_downloads"||!O){z.jumpTo(3);break}return _.C(z,oLd(O),4);case 4:if(E=z.yieldResult)return z.return(_.dd(E));case 3:return l.browseId==="FEwhat_to_watch"?z.return(jqh(e)):(J=_.a("web_offline_continuation_automatic_retry")||_.a("web_offline_continuation_retry_button"))&&
l.continuation?z.return(HRf(e)):z.return(cCH(e))}})};
var jqh=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$16362_upliftPromise,2);e=_.QTu(l.store.getState().entities);return e.length?O.return(F1u(l,e)):O.return(cCH(l))})},p64=function(l){var e,O;
return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$16362_upliftPromise,2);if(E.nextAddress!=3)return e=fSO([{offlineItemSectionRenderer:{}}]),_.C(E,RF4(l,e),3);O=E.yieldResult;O.onResponseReceivedActions=[s6("REFRESH_DOWNLOADS")];return E.return(O)})},yCF=function(l){var e,O,E,J,z,M,Z,u,d,g,w,n,k;
return _.V(function(y){if(y.nextAddress==1)return _.C(y,l.JSC$16362_upliftPromise,2);if(y.nextAddress!=3)return e=l.store.getState(),O=e.entities,E=_.RM(O),J=_.T4(O),z=_.KV8(e),M=_.pCg(e),Z=_.j62(e),u=_.OpA(O),d=_.jo(E),g=_.sn(O),w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Ph8(E,J,u,z,M,d,g,Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},n=_.ml("DOWNLOADS",void 0,"Downloads"),_.C(y,T1h(l,w,n),3);k=y.yieldResult;
k.onResponseReceivedActions=[s6("REFRESH_DOWNLOADS")];return y.return(k)})},K13=function(l){var e,O,E,J,z,M,Z,u,d;
return _.V(function(g){if(g.nextAddress==1)return _.C(g,l.JSC$16362_upliftPromise,2);if(g.nextAddress!=3)return e=l.store.getState(),O=e.entities,E=_.RM(O),J=_.jo(E),z=_.sn(O),M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Y2x(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},Z=_.ml("SMART_DOWNLOADS",void 0,"Smart downloads"),u=Gdx(J,z),_.C(g,T1h(l,M,Z,u),3);d=g.yieldResult;d.onResponseReceivedActions=[s6("REFRESH_DOWNLOADS")];
return g.return(d)})},cCH=function(l){var e,O;
return _.V(function(E){if(E.nextAddress==1)return _.C(E,Wn(l.JSC$16362_upliftPromise,l.store),2);e=E.yieldResult;O=fSO([Vug(e)]);return E.return(RF4(l,O))})},HRf=function(l){var e,O,E,J;
return _.V(function(z){if(z.nextAddress==1)return e={},O=l.store.getState().continuation.continuationCommand,_.Pf(e,_.qj,O),_.C(z,Wn(l.JSC$16362_upliftPromise,l.store,e,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);E=z.yieldResult;J={};_.Pf(J,_.ohS,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:E}}}],targetId:"browse-feedFEwhat_to_watch"});return z.return({responseContext:{},onResponseReceivedActions:[J]})})},fSO=function(l){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:l}}}}]}}},F1u=function(l,e){var O,E;
return _.V(function(J){var z={contents:GK(e)};O=z&&z.contents?z:{};_.a("kevlar_modern_downloads_page")&&(O=Object.assign({},_.hC2(e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));E={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:O}}}]}};return J.return(RF4(l,E))})},RF4=function(l,e){var O,E;
return _.V(function(J){if(J.nextAddress==1)return _.C(J,l.JSC$16362_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return O=J.yieldResult,_.C(J,gd(O),3);E=J.yieldResult;return J.return({responseContext:{},contents:e,topbar:E})})},T1h=function(l,e,O,E){var J,z;
return _.V(function(M){if(M.nextAddress==1)return _.C(M,l.JSC$16362_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return J=M.yieldResult,_.C(M,gd(J),3);z=M.yieldResult;var Z=M.return;var u=E;u=u===void 0?"":u;u={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:O}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.ml("SETTINGS",void 0,"Settings"),accessibilityText:_.ml("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:Mu("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:u}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:O};
return Z.call(M,{responseContext:{},contents:e,topbar:z,header:{pageHeaderRenderer:u}})})};var sq3=function(){this.moduleRegistry={};this.fetchCount=0};
sq3.prototype.isFetching=function(){return this.fetchCount>0};
var rd=function(l,e){l.moduleRegistry[e.toString()]={asyncId:e,isFetching:!1};return l};
sq3.prototype.JSC$16373_loadModules=function(){for(var l=this,e=new Map,O=[],E=_.b(_.ke.apply(0,arguments)),J=E.next();!J.done;J=E.next()){J=J.value;var z=this.moduleRegistry[J];z?z.resolver?e.set(J,z.resolver):(z.resolver=new _.d8,e.set(J,z.resolver),O.push(z.asyncId),z.isFetching=!0):(z=new _.d8,e.set(J,z),z.resolve(void 0))}O.length&&(this.fetchCount+=1,_.FV(_.Zl.getMultipleAsync.apply(_.Zl,_.kA(O)).then(function(M){for(var Z=0;Z<O.length;Z++){var u=M[Z],d=l.moduleRegistry[O[Z].toString()];d.isFetching=
!1;d.resolver.resolve(u)}}).catch(function(M){for(var Z=_.b(O),u=Z.next();!u.done;u=Z.next()){u=u.value;
var d=l.moduleRegistry[u.toString()];d.resolver=void 0;d.isFetching=!1;e.get(u.toString()).reject(M)}}),function(){--l.fetchCount}));
return Promise.all([].concat(_.kA(e.values())).map(function(M){return M.promise}))};_.DL=new _.Xa("MODULE_REGISTRY_TOKEN");var GSu={},B14=(GSu.rendered={priority:0,callback:function(l){a:{var e=void 0;try{var O;b:{if(_.lT8()){var E=_.$dV(_.Kv()+"::pom");if(E){var J=new ca(E);break b}}J=void 0}var z=(O=J)==null?void 0:O.get("role_text");if(!z)break a;e={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:z}]}}}}}}catch(u){}e&&l.injector.resolve(_.Zh).resolveCommand(e)}try{var M=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(M){var Z=JSON.parse(M);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
Z&&l.injector.resolve(_.Zh).resolveCommand(Z)}}catch(u){}}},GSu);var PqF,Uiu={},Yxf=(Uiu.initialized={priority:10,callback:function(){PqF=Ti()}},Uiu.rendering={callback:function(l){var e;
return _.V(function(O){if(O.nextAddress==1)return _.C(O,PqF,2);e=O.yieldResult;if(!e.endpoint)throw Error("tj`"+_.Op.location.href);Pn(l,e);_.Cl(O)})}},Uiu);var hFC={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.kA(_.a("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(l){var e=l.stack;if(e.includes("chrome://")||e.includes("chrome-extension://")||l.message.includes("chrome-extension://")||e.includes("moz-extension://")||e.includes("local.adguard.org")||e.includes("auctioneer3.50million.club")||e.includes("youtubedownloader")||e.includes("youtube_home_page")||e.includes("is_youtube_video_no_longer_available")||
e.includes("switchScreenSizeHack")||e.includes("yt_main_big_banner.js")||e.includes("YouTubeCenter.js")||e.includes("/mytube.js")||e.includes("JSON.parseWrapper")||e.includes("/inj_js/common.js")||e.includes("firebug-lite")||e.includes(".repl.co/")||e.includes("linkfix")||e.includes("playAfterAd")||l.message.includes("Access is denied for this document")&&e.includes("<anonymous>")||l.fileName==="user-script"||l.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
e.includes("<anonymous>"))return!0;if(e.includes("https://www.youtube.com"))return!1;l=e.split("\n");if(!l.length)return!1;if(l.length<=3&&e.includes("s.onloadeddata"))return!0;e=0;for(var O=_.b(l),E=O.next();!E.done;E=O.next())E=E.value,(E.includes("https://")||E.includes("http://"))&&e++;return e/l.length>.95},
weight:0},{callback:function(l){return l.message==="Unknown Error"&&l.name.indexOf("NS_")===0},
weight:100},{callback:function(l){if(!_.gs)return!1;var e=l.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||l.message.includes("available to complete this operation"),O=l.stack.includes("webcomponents")&&l.message==="Object doesn't support this action";l=l.message.includes("object that does not implement interface Element");return e||O||l},
weight:0},{callback:function(l){return l.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(l){return l.message==="Operation is not supported"&&(l.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(l){return l.stack.includes("eval code (eval (code:1:1)")||l.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(l){return l.message.includes("Permission denied")&&l.stack.includes("this.domHandler")?!0:l.name.includes("TypeError")&&l.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(l){if(!l.stack)return!1;var e=l.stack.trim().split("\n");e.length&&e[0].endsWith("Error: "+l.message)&&e.shift();e.length&&e[e.length-1].includes("at window.onerror (")&&e.pop();if(!e.length)return!0;if(l.message==="Script error.")return e[0].includes("www.youtube.com")||e.length>=2&&e[0].startsWith("at new")&&e[1].startsWith("at window.onerror");if(l.message==="Unexpected token")return!0;l=_.b(e);for(e=l.next();!e.done;e=l.next())if(e=e.value,!(e.includes("<anonymous>")||
e.startsWith("load@")||e.startsWith("global code@")||e.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(l){return l.message==="Cannot read property 'experiments'"&&l.stack.includes("/s/player/")},
weight:500},{callback:function(l){return l.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(l){return l.stack.includes("/embed.js")?(l.params&&l.params&&(l.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.a("use_error_suppression"))var l=_.hT("SUPPRESS_CLIENT_ERRORS",!1);else{if(l=_.a_)l=/Chrome\/(\d+)/.exec(_.dT()),l=(l?parseFloat(l[1]):NaN)>=66;l=!(l||_.n2&&_.AZ(65)||_.Lv&&_.AZ(12.1)||JW&&_.AZ(79))}return l},
weight:500}]};var L10={},t0H=(L10.initialized={priority:10,callback:function(l){l.injector.addProvider({provide:aJx,useValue:l.root});l.injector.addProvider({provide:Ktq,useValue:uOV});l.injector.addProvider({provide:jwH,useValue:hFC});var e={};l.injector.addProvider((e.provide=HDk,e.useFactory=function(O,E){return function(){pP8(O,E)}},e[Jf]=[Ktq,
jwH],e));l.injector.addProvider({provide:di,useClass:di})}},L10);var qxF={},vqP=(qxF.initialized={priority:3,callback:function(){var l;if(l=b_d()){l=l.replace("/",".");var e=_.Kz();e.set("tz",l);e.save();l=!0}else l=!1;l||(l=_.Kz(),l.set("utco",-Math.floor((new Date).getTimezoneOffset())),l.save())}},qxF);var N10={},rCH=(N10.initialized={priority:10,callback:function(l){l.injector.resolve(di).start();l=_.ST();var e=_.LH("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.LH("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.LH("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.LH("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.nN(_.fgx(),{mainAppWeb:Object.assign({},l,{pageType:e})});_.nN(TEV(),{mainAppWeb:Object.assign({},l,{pageType:e})});
_.nN(saq(),{mainAppWeb:l});_.nN(GvM(),{mainAppWeb:l});Pt1(function(){_.a2(saq(),"FAILURE");_.a2(GvM(),"FAILURE")});
eOT();OM8();L8V()}},N10);var Diz={},Sxo=(Diz.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Yu("dl"),_.h7().processSignal("pcl");else{var l=function(){_.Yu("dl");_.h7().processSignal("pcl");window.removeEventListener("load",l)};
window.addEventListener("load",l)}}},Diz);var Qq4={},xi4=(Qq4.rendering={priority:0,callback:function(){var l=_.h7();l.parkOrScheduleJob(function(){l.processSignal("eocs")},10,"eor",5E3)}},Qq4);var lO4=function(){};
_.m(lO4,Y_);
lO4.prototype.resolveCommand=function(l,e){var O,E,J,z,M,Z,u,d;return _.V(function(g){J=(O=_.I(l,_.DD6))==null?void 0:(E=O.dialog)==null?void 0:E.commentReplyDialogRenderer;if(!J)throw new _.Hk("No dialog in createCommentReplyDialogEndpoint");M=(z=e.form)==null?void 0:z.event;if(!M)throw new _.Hk("Event not passed in when resolving command");Z=_.b(M.composedPath());for(u=Z.next();!u.done;u=Z.next())if(d=u.value,d.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||d.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return d.showReplyDialog(J),g.return();
_.Cl(g)})};var gw=function(l){this.pageRequestService=l;this.JSC$16388_prefetchCoordinator=Wt1()};
_.m(gw,Y_);gw.prototype.resolveCommand=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1){O=_.I(l,jFF);if((E=O)==null||!E.taskId)throw Error("uj");J=O.taskId;_.b1(M,2);return _.C(M,_.ydS(e.pageRequestService,l,{},"").then(function(Z){if(!Z)throw Error("vj");},function(Z){throw Error("wj`"+Z);
}),4)}if(M.nextAddress!=2)return iD1(e.JSC$16388_prefetchCoordinator,J),_.Q2(M,0);
z=_.u1(M);rl(e.JSC$16388_prefetchCoordinator,J,z);_.Cl(M)})};
gw[Jf]=[R2];var i9=function(l){this.innertubeTransportService=l};
_.m(i9,Y_);i9.prototype.resolveCommand=function(l){var e=this,O,E;return _.V(function(J){O=_.I(l,pX1);if(O.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||O.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")E=O.boolValue?2:1,_.E5.getInstance().setState(E,!0,!0);return _.C(J,_.Qh(e.innertubeTransportService,l),0)})};
i9[Jf]=[_.Um];var ww={},e4u=(ww.addToPlaylistEndpoint=bH(aO),ww.addToToastAction=bH(HH),ww.adsControlFlowOpportunityReceivedCommand=bH(J0),ww.captionLanguageSelectActionCommand=bH(sZ),ww.captionPickerEndpoint=bH(Gy),ww.changeMiniAppPlayStateCommand=bH(kO),ww.changeTimelyActionVisibilityCommand=bH(jE),ww.channelCreationFormEndpoint=bH(dH),ww.clearLocationCommand=bH(n8),ww.clearUrlParamCommand=bH(IO),ww.copyLinkCommand=bH(h0),ww.copyTextEndpoint=bH(bM),ww.createCommentReplyDialogEndpoint=sFt(lO4),ww.createPlaylistServiceEndpoint=
bH(L8),ww.dismissDialogEndpoint=bH(yr),ww.entityUpdateCommand=bH(Vr),ww.feedbackEndpoint=bH(C8),ww.getAnswerCommand=bH(k2x),ww.getPaymentsClientTokenCommand=bH(fm),ww.getTranscriptEndpoint=bH(cH),ww.googlePaymentBillingCommand=bH(RP),ww.googlePaymentPurchaseManagerCommand=bH(TC),ww.hideEngagementPanelEndpoint=bH(p8),ww.hideSnackbarCommand=bH(WH),ww.insertRichSectionCommand=bH(iM),ww.listMutationCommand=bH(wH),ww.logGtmCommand=bH(gH),ww.notifyDropdownOptionSelectedCommand=bH(mJ),ww.openAdAllowlistInstructionCommand=
bH(_.X6),ww.openOnePickAddVideoModalCommand=bH(t0),ww.persistSubscriptionsDisplayPreferencesCommand=bH(Sr),ww.pingingEndpoint=bH(zy),ww.playlistEditEndpoint=bH(vj),ww.playlistVotingRefreshPopupCommand=bH(Nw),ww.refreshPanelEndpoint=bH(K8),ww.saveImageToDeviceEndpoint=bH(Mw),ww.scrollToSectionEndpoint=sFt(IMq),ww.seekToVideoTimestampCommand=bH(Bj),ww.selectCountryCommand=bH(Qr),ww.setCookieCommand=bH(xO),ww.setLocalStorageCommand=bH(IP),ww.setPrefStorageEntryCommand=bH(eE),ww.setSettingEndpoint=bH(i9),
ww.sfvAudioItemPlaybackCommand=bH(Pj),ww.shareImageCommand=bH(Ov),ww.sharingProviderDataCommand=bH(Ev),ww.showCaptionLanguageSelectActionCommand=bH(UZ),ww.showDialogCommand=bH(cj),ww.showEngagementPanelEndpoint=bH(F6),ww.showSheetCommand=bH(f8),ww.showSnackbarCommand=bH(ka),ww.showTransientPlayerScrimOverlayCommand=bH(YO),ww.submitFormWithValidationFlowCommand=bH(Wj),ww.talkToRecsDeselectCommand=bH(m$),ww.talkToRecsNextCommand=bH(yM),ww.talkToRecsSelectCommand=bH(pm),ww.talkToRecsUpdateTextCommand=
bH(Km),ww.toggleEngagementPanelCommand=bH(RO),ww.undoFeedbackEndpoint=bH($O),ww.updateEngagementPanelContentCommand=bH(Ty),ww.updateUrlParamCommand=bH(Fq),ww.verifyCommand=bH(dH),ww.webNativeShareCommand=bH(JB),ww.webSubmitFormCommand=bH(rH),ww.ACK_PLAYABLES_3P_DATA_CONSENT=bH(Xq),ww.CANCEL_NAVIGATION=bH(zC),ww.COPY_SHARE_URL=bH(b0),ww.MINI_APP_EXIT_DIALOG_SEEN=bH(VM),ww.MINI_APP_OPEN_URL=bH(M0),ww.REQUEST_MINI_APP_FULLSCREEN=bH(Z_),ww.RESUME_NAVIGATION=bH(u0),ww.SHARE_PLAYABLE_WITH_HIGH_SCORE=bH(Cm),
ww.TELL_US_WHY=bH(oO),ww);_.a("web_enable_prefetching_videos_on_home")&&(e4u.prefetchWatchCommand=bH(gw),e4u.registerTasksCommand=bH(Se));_.a("enable_share_panel_navigation_logging_fix_on_web")&&(e4u.shareEntityServiceEndpoint=bH(jr));var fHS=Object.assign({},e4u);var OP4={},E40=(OP4.initialized={priority:10,callback:bMT},OP4);var Juz={},XhH=(Juz.initialized={callback:function(l){var e={},O={};D0T().install((e.document_disposed={callback:function(){_.a("finalize_all_timelines")?E3L():Bb();c_x("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.bAd();var E=l.injector.resolve(di);E.intervalId!==void 0&&(E.intervalId&&_.UD.cancelJob(E.intervalId),E.intervalId=void 0,--E.currentPartitionIndex,E=ZAk(E),E>0&&wJq({mainAppWeb:_.ST(),survivalSli:{partitionMinute:E,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Z6H(NS);rt!=null&&
rt.flush();uG&&uG.snapshotAndFlush();E=_.b(KnR.values());for(var J=E.next();!J.done;J=E.next())J.value.snapshotAndFlush()}},e),(O.flush_logs={callback:function(){_.Pm()}},O))}},Juz);var z4u={},bPH=(z4u.rendered={priority:0,callback:function(){var l=new yDR;l.increment("STARTED");if(_.hT("LOGGED_IN")&&_.hT("SERVER_VERSION")!=="test"&&_.hT("SERVER_VERSION")!=="dev"&&!uuS()&&!ZL1()){l.increment("EXECUTING");var e=document.createElement("iframe");e.style.display="none";_.wvu(e,2,_.nU("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.hT("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(e);l.increment("DONE")}}},z4u);var M3z={},V3C=(M3z.rendered={callback:function(){Wt1().resume()}},M3z);var ZPC={acknowledgeChannelTouStrikeCommand:Hc(ub),addToPlaylistServiceEndpoint:Hc(MM),addToPlaylistEndpoint:Hc(MM),addUpcomingEventReminderEndpoint:Hc(ys),browseEndpoint:Hc(ST1),channelCreationFormEndpoint:Hc(J9),channelCreationServiceEndpoint:Hc(XW),claimLegacyYoutubeChannelEndpoint:Hc(tB),clearSearchHistoryEndpoint:Hc(ib),clearWatchHistoryEndpoint:Hc(w2),commerceActionCommand:cc(HO),createBackstagePostEndpoint:Hc(BH),createBroadcastCommand:Hc(pA),createCommentEndpoint:Hc(lb),createCommentReplyEndpoint:Hc(xa),
createLiveChatPollEndpoint:Hc(KA),createPlaylistServiceEndpoint:Hc(Vx),crossAccountChannelTransferEndpoint:Hc(aN),deleteLiveChatMessageCommand:Hc(jn),deletePlaylistEndpoint:Hc(ZN),deleteVideoEndpoint:Hc(yx),dismissalEndpoint:Hc(CA),feedbackEndpoint:Hc(oN),flagEndpoint:Hc(gl),getAccountSwitcherEndpoint:Hc(nA),verifyCommand:Hc(GC),getAccountsListInnertubeEndpoint:Hc(IN),getCommentsFromInboxCommand:Hc(t9),getDownloadActionCommand:Hc(Qs),getFlowCommand:cc(g2),getKidsBlocklistPickerCommand:Hc(i5),getNotificationMenuEndpoint:Hc(l0k),
getPaymentInstrumentsParamsCommand:Hc(sa),getPaymentsClientTokenCommand:cc(HO),getPdgBuyFlowCommand:Hc(zt),getReportFormEndpoint:Hc(wl),getSearchInVideoCommand:Hc(a1),getAnswerCommand:Hc(n9),getSurveyCommand:Hc(ma),getTranscriptEndpoint:Hc(K9),getPostVideoPreviewEndpoint:Hc(Uv),decorateMessageEndpoint:Hc(PH),likeEndpoint:Hc(zY),liveChatActionEndpoint:Hc(fA),liveChatEndpoint:Hc(FW),liveChatItemContextMenuEndpoint:Hc(HT),liveChatPurchaseMessageEndpoint:Hc(RN),liveChatReplayEndpoint:Hc(cT),manageLiveChatUserEndpoint:Hc(sR),
metadataUpdateCommand:Hc(h9),moderateLiveChatEndpoint:Hc(GY),modifyChannelNotificationPreferenceEndpoint:Hc(r2),notificationOptOutEndpoint:Hc(DJ),openSuperStickerBuyFlowCommand:Hc(TY),performCommentActionEndpoint:Hc(D_),playlistEditEndpoint:Hc(C9),playlistEditorEndpoint:Hc(u5),profileCardCommand:Hc(mZ),recordNotificationInteractionsEndpoint:Hc(Sn),reelWatchEndpoint:Hc(o1),refreshPanelEndpoint:Hc(l5),removeUpcomingEventReminderEndpoint:Hc(BT),resolveLocationCommand:Hc(YC),revealBusinessEmailCommand:Hc(q0),
searchEndpoint:Hc(_.ePi),sendLiveChatMessageEndpoint:Hc(PT),sendLiveChatVoteEndpoint:Hc(UR),setSettingEndpoint:Hc(bb),shareEntityServiceEndpoint:cc(ZJ),sharingProviderDataCommand:Hc(I1),showEngagementPanelEndpoint:Hc(ee),showMoreDrawerCommand:Hc(Ea),showSheetCommand:Hc(Jv),showDialogCommand:Hc(Oa),subscribeEndpoint:Hc(Mq),transcriptSubmitCaptionCorrectionCommand:Hc(p9),undoFeedbackEndpoint:Hc(WT),unsubscribeEndpoint:Hc(Vs),updateBackstagePostEndpoint:Hc(hB),updateCommentEndpoint:Hc(OR),updateCommentReplyEndpoint:Hc(en),
updateCommentsSettingsEndpoint:Hc(ER),updateCreatorChannelInnertubeCommand:Hc(N0),updateKidsBlacklistEndpoint:Hc(Av),updateEngagementPanelContentCommand:Hc(X9),updatePdgFeatureEnablementCommand:Hc(b5),updatedMetadataEndpoint:Hc(LA),validateChannelHandleCommand:Hc(rx),updateChannelPageSettingsEndpoint:Hc(vH),verifyAgeEndpoint:Hc(d2),watchEndpoint:cc(Aw),whitelistEditEndpoint:Hc(je),ypcCancelRecurrenceEndpoint:Hc(cO),ypcCompleteTransactionEndpoint:Hc(F9),ypcFixInstrumentEndpoint:Hc(R1),ypcGetCartEndpoint:Hc(f9),
ypcGetOffersEndpoint:Hc(Tt),ypcHandleTransactionEndpoint:cc(Gt),ypcLogWalletAnalyticDataEndpoint:Hc(BO),ypcOffersEndpoint:Hc(PO),ypcPauseSubscriptionCommand:Hc(Ua),ypcRedeemCodeEndpoint:Hc(Yj),ypcResumeSubscriptionCommand:Hc(hv),ypcUpdateFopEndpoint:Hc(R1)},AE={},uF4=(AE.GET_ACCOUNT_MENU=Hc(kC),AE.GET_NOTIFICATIONS_MENU=Hc(xKS),AE.GET_NOTIFICATIONS_INBOX=Hc(qq),AE.GET_UNSEEN_NOTIFICATION_COUNT=Hc(Nq),AE.GET_USER_MENTION_SUGGESTIONS=Hc(Ya),AE.LOAD_GUIDE=Hc(QuH),AE.SUBMIT_FEEDBACK=Hc($C),AE),nf={},
Czh=(nf.CONTINUATION_REQUEST_TYPE_BROWSE=Hc(Lm),nf.CONTINUATION_REQUEST_TYPE_SEARCH=Hc(kj),nf.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Hc(a3),nf.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Hc(A9),nf.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Hc(QM),nf.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Hc(SE),nf.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Hc(dl),nf.CONTINUATION_REQUEST_TYPE_GET_PANEL=Hc(xC),nf),o4H={player:cc(Aw),watchNext:Hc(nQ)},$oP={player:cc(Aw),reelItemWatch:Hc(o1),reelWatchSequence:Hc(WO)},
WHH={watchEndpoint:cc(k5)},do0={commandEndpointMap:ZPC,signalEndpointMap:uF4,continuationEndpointMap:Czh,watchEndpointMap:o4H,reelWatchEndpointMap:$oP,streamingEndpointMap:WHH};var g4C,iPH,wh3,AuH={disableAllTransitions:(iPH=(g4C=window).matchMedia)==null?void 0:(wh3=iPH.call(g4C,"(prefers-reduced-motion: reduce)"))==null?void 0:wh3.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var Mzq={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var ZM8=["videoPrimaryInfoRenderer","title"],uld=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var n4P;n4P=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.aOO=_.XO(function(l){l=_.J3(l,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var e=l.data,O=l.playlistData,E=l.expanded,J=l.onExpandClick,z=l.isReadyToResume,M=function(){var g;return!((g=O())==null||!g.contents)},Z=function(){var g=O();
return g&&g.totalVideos&&g.currentIndex!==void 0?g.currentIndex+1+" / "+g.totalVideos:""};
l=_.pd(function(){_.ab(_.V2().resolve(_.NJ));return!1});
var u=_.pd(function(){M()&&J&&J()}),d={};
return _.W("ytd-miniplayer-info-bar",{class:_.ax("ytdMiniplayerInfoBarHost",(d.ytdMiniplayerInfoBarHasPlaylistData=M,d)),"on:click":u},_.W("div",{class:"ytdMiniplayerInfoBarContent"},_.W("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":l},_.W(_.zK,{text:function(){var g=e();var w=O();if(w==null?0:w.contents){var n;g=(n=_.Qnu(w))==null?void 0:n.title}else g=g==null?void 0:g.miniplayerTitle;return ofx(g)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.W(_.A,{cond:z,then:function(){return _.W(aN6,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:n4P})}}),_.W("h1",null,_.W(_.zK,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var g=e();var w=O();g=z()?{simpleText:_.ml("CONTINUE_WATCHING",void 0,"Continue watching")}:(w==null?0:w.contents)?w.titleText:g==null?void 0:g.miniplayerSubtitle;return ofx(g)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W(_.A,{cond:function(){return!!Z()&&!z()},
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.W("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.W("span",null,Z))}}))),_.W(_.A,{cond:M,
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarExpand"},_.W(Ms,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(g){J&&(J(),g.stopPropagation())}}},
iconName:function(){return E()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var k0C;k0C=_.XO(function(l){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.W(Ms,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:l.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.IOu=_.XO(function(l){l=_.J3(l,{playabilityStatus:void 0,isDisabled:!1});var e=l.size,O=l.playabilityStatus,E=l.isDisabled,J=_.e4("div");l=_.b(_.AF(void 0,void 0,"bJr0Se"));var z=l.next().value,M=l.next().value;l=_.Ld(_.yP);var Z=!1,u=function(){return e().height<=0};
_.Gh(function(){var n=e(),k=u(),y=z();y&&!k&&y.setInternalSize(n.width,n.height)},"OUOyKb");
_.RU(function(){var n,k,y;return _.V(function(c){if(c.nextAddress==1){n=_.V2().resolve(_.NJ);k=n.getPlayerElement();if(!n.isMiniplayerActive()||!k||!J.value)return c.return();k.appendTo(J.value);return _.C(c,k.getPlayerPromise(),2)}y=c.yieldResult;y.setSizeStyle(!1,!0);M(y);_.Cl(c)})});
_.B3(function(){d()});
_.Gh(function(){var n=z();if(n)if(E()){var k=n.getPlayerState();(Z=k===-1||k===1||k===3)&&n.pauseVideo()}else d()},"KKHe5");
var d=function(){if(Z){Z=!1;var n;(n=z())==null||n.playVideo()}},g=_.pd(function(){_.ab(_.V2().resolve(_.NJ))}),w={};
return _.W("ytd-miniplayer-player-container",{class:_.ax("ytdMiniplayerPlayerContainerHost",(w.ytdMiniplayerPlayerContainerHidden=u,w.ytdMiniplayerPlayerContainerHostShortsPip=l,w)),style:_.HF({width:function(){return e().width+"px"},
height:function(){return e().height+"px"}})},_.W("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:J}),_.W(_.A,{cond:function(){return!!O()&&!_.O$A(O())},
then:function(){return _.W(dIq,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var n;return((n=O())==null?void 0:n.errorScreen)||null},
status:function(){var n;return((n=O())==null?void 0:n.status)||null}})}}),_.W(_.A,{cond:E,
then:function(){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":g},_.W(k0C,{onTap:function(){_.V2().resolve(_.NJ).close()}}))}}))},"we");_.moi=_.XO(function(l){var e=l.toastData;var O=_.e4("ytd-miniplayer-toast");l=_.b(_.jN(function(){return!!e()}));
var E=l.next().value,J=l.next().value;l=_.b(_.AF(!1,void 0,"xkrBze"));var z=l.next().value,M=l.next().value,Z=function(){var g;return _.lG((g=e())==null?void 0:g.data.title)};
_.sC(function(){_.qZ.requestAvailability();e()&&J(!1)});
var u,d;_.Gh(function(){E()&&(_.$u(O.value,"iron-announce",{text:e().label+" "+Z()}),u&&_.UD.cancelJob(u),u=_.UD.addLowPriorityJob(function(){M(!0)},2500))},"OTdL1e");
_.Gh(function(){z()&&(d&&_.UD.cancelJob(d),d=_.UD.addLowPriorityJob(function(){J(!1);M(!1)},300))},"yybqib");
l={};return _.W("ytd-miniplayer-toast",{el:O,class:_.ax("ytdMiniplayerToastHost",(l.ytdMiniplayerToastOpening=function(){return E()},l.ytdMiniplayerToastClosing=function(){return z()},l))},_.W(_.A,{cond:function(){var g;
return(g=e())==null?void 0:g.data},
then:function(g){return _.W(jbq,{className:"ytdMiniplayerToastThumbnail",data:g,width:78})}}),_.W("div",{class:"ytdMiniplayerToastInfo"},_.W("div",{class:"ytdMiniplayerToastLabel"},function(){var g;
return(g=e())==null?void 0:g.label}),_.W("div",{class:"ytdMiniplayerToastTitle"},Z)))},"xe");var kTg;var pEd=new Set,yRW=null;var jVW=null;var phP=_.XO(function(l){var e=l.progressState;var O=l.multiMarkersPlayerBarRenderer;var E=l.progressBarWidth;var J=function(){return fyM(O())},z=function(){return sVx(e())},M=function(){return E()*(e().playedTime/e().videoDuration)};
return _.W("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.W(_.KH,{each:J},function(Z,u){return _.W(yuu,{modifiedProps:z,chapters:J,index:u,playedProgressWidth:M,backgroundGradientPosition:function(){var d=z(),g=J(),w=u(),n=M();return(d.playedTime-qJ(_.I(g[w],tc)))/d.playedTime*n}})}))},"ye"),yuu=_.XO(function(l){var e=l.modifiedProps;
var O=l.chapters;var E=l.index;var J=l.playedProgressWidth;var z=l.backgroundGradientPosition;l={};l=_.ax("ytChapteredProgressBarChapteredPlayerBarChapter",(l.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return M().isScrubbing},l.ytChapteredProgressBarHoveredMacroMarker=function(){return M().scrubberHovering},l.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return M().videoPosition==="seen"},l));
var M=function(){return GTx(e(),O(),E())},Z=function(){var u=e();
var d=O(),g=E();if(GTx(u,d,g).videoPosition!=="active")u=0;else{var w=qJ(_.I(d[g],tc));u=(u.playedTime-w)/((qJ(_.I(d[g+1],tc))||u.videoDuration)-w)}return u};
return _.W("div",{class:l,style:_.HF({width:function(){var u=e(),d=O(),g=E(),w=_.I(d[g],tc);d=_.I(d[g+1],tc);return(d?qJ(d)-qJ(w):u.videoDuration-qJ(w))/u.videoDuration*100+"%"},
"background-color":function(){a:{var u=M();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(BNg(M())?J():"")+"px"},
"background-position-x":function(){return(BNg(M())?z():"")+"px"}})},_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var u=e(),d=O(),g=E();if(GTx(u,d,g).videoPosition==="seen")var w=0;else w=qJ(_.I(d[g],tc)),d=qJ(_.I(d[g+1],tc))||u.videoDuration,u=u.videoDuration*u.percentLoaded,w=d<=u?1:w>=u?0:(u-w)/(d-w);return"width: "+w*100+"%"}}),_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.HF({width:function(){return Z()*100+"%"},
"background-size":function(){return(BNg(M(),Z())?J():"")+"px"},
"background-position-x":function(){return(BNg(M(),Z())?z():"")+"px"}})}))},"ze");var KHH=function(l,e){e=e===void 0?vT6:e;var O,E=[],J,z=!1;return function(){var M=_.ke.apply(0,arguments);if(z&&O===this&&e(M,E))return J;J=l.apply(this,M);z=!0;O=this;E=M;return J}}(function(l){var e=l.heatMarkers,O=l.minHeightDp===void 0?0:l.minHeightDp,E=l.maxHeightDp===void 0?60:l.maxHeightDp;
var J=J===void 0?!1:J;var z=1E3/e.length;l=[];l.push({x:0,y:100});for(var M=0;M<e.length;M++){var Z=void 0,u=((Z=_.I(e[M],j6q))==null?void 0:Z.heatMarkerIntensityScoreNormalized)||0;Z=(M+.5)*z;u=100-_.hc(u*100,O/321*100,E/321*100);M!==0||J||l.push({x:0,y:u});l.push({x:Z,y:u});M===e.length-1&&l.push({x:1E3,y:u})}l.push({x:1E3,y:100});e="";for(O=0;O<l.length;O++)J=l[O],O===0?J="M "+J.x.toFixed(1)+","+J.y.toFixed(1):(E=lXT(l[O-1],l[O-2],J),z=lXT(J,l[O-1],l[O+1],!0),J=" C "+(E.x.toFixed(1)+","+E.y.toFixed(1)+
" "+z.x.toFixed(1)+","+z.y.toFixed(1)+" "+J.x.toFixed(1)+","+J.y.toFixed(1))),e+=J;return e});var ji3=_.XO(function(l){var e=l.progressBarProps;var O=l.config;var E={};l=_.ax("ytHeatSeekerHost",(E.ytHeatSeekerHighContrast=l.highContrast,E));var J=function(){return iM2(O().chapterData)};
return _.W("yt-progress-bar-heatseeker",{class:l,style:function(){var z;return"height: 320px; display: "+(e().isDragging&&((z=J())==null?0:z.heatMarkers)?"block":"none")}},_.W(_.A,{cond:J,
then:function(z){return _.W(_.A,{cond:function(){return z().heatMarkers},
then:function(){return _.W("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.W("path",{d:function(){return KHH(z())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var HP0=_.XO(function(l){var e=l.progressBarProps;var O=l.config;l={};l=_.ax("ytProgressBarLineProgressBarLine",(l.ytProgressBarLineProgressBarLineRounded=function(){return O().rounded},l.ytProgressBarLineProgressBarLineBottomInset=function(){return O().position===2},l));
return _.W("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.W("div",{class:l},_.W("div",{class:"ytProgressBarLineProgressBarBackground"}),_.W("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+e().percentLoaded*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var E=e();return"width: "+(E.videoDuration?_.hc(E.hoveredTime/E.videoDuration,0,1):0)*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+WDd(e())*100+"%"}})))},"Be");
HP0.idomCompat=!0;var cuz=_.XO(function(l){var e=l.progressBarProps;var O=l.playheadData;var E=l.interpolateDotPosition;var J=l.hidePlayhead;l={};var z=_.ax("ytProgressBarPlayheadProgressBarPlayheadDot",(l.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return e().isDragging},l.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!e().isDragging&&J()},l));
return _.W("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.HF({"margin-left":function(){return d6T(e())*100+"%"},
transform:function(){return"translateX(-"+(E()?d6T(e())*12:6)+"px)"}})},_.W(_.A,{cond:function(){var M;
return(M=_.Et(O)())==null?void 0:M.playheadImage},
then:function(M){var Z={};return _.W("div",{class:_.ax("ytProgressBarPlayheadProgressBarPlayheadCustom",(Z.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return e().isDragging},Z.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!e().isDragging&&J()},Z)),
style:_.HF({"transform-origin":function(){return(E()?d6T(e())*20:10)+"px center"}})},_.W(_.Jm,{data:M,
alt:"","aria-hidden":"true"}))},
else:function(){return _.W("div",{class:z,style:_.HF({"transform-origin":function(){return(E()?d6T(e())*12:6)+"px center"}})})}}))},"Ce");
cuz.idomCompat=!0;var kY=function(l,e,O,E,J,z){this.getProgressBarRect=l;this.updateProgressBarRect=e;this.getFilmstripYPosition=O;this.setFineScrubbingDraggedTime=E;this.updateFilmStripDraggedYDistance=J;this.resetFilmStripYOffset=z;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.b3(this.onThrottledSeek,100,this)},FHu=function(l,e,O){return function(E){l.handleClick(E,e(),O())}},Tfi=function(l,e){return function(O){fO4(l,
O,R4o(O),e())}},sif=function(l,e){return function(O){fO4(l,O,{x:O.clientX,
y:O.clientY},e())}},Bf4=function(l,e,O){return function(E){var J=e(),z=O();
G0C(l,E,R4o(E),J,z,!0);if(z.onTouchMove)z.onTouchMove(J)}},Uoo=function(l,e,O){return function(E){PzH(l,E,e(),O())}},YuF=function(l,e){return function(){l.handleMouseLeave(e())}},h4C=function(l,e,O){return function(){var E=e(),J=O();
Ib(l,E,J);if(J.onTouchEnd)J.onTouchEnd(E)}},LHf=function(l,e,O){return function(){var E=e(),J=O();
Ib(l,E,J);if(J.onTouchEnd)J.onTouchEnd(E)}},t3i=function(l,e,O){return function(){Ib(l,e(),O())}},quC=function(l){return function(e){if(e.keyCode===39||e.keyCode===38){var O,E;
(O=l())==null||(E=O.playerApi)==null||E.seekBy(5,void 0,void 0,72)}else if(e.keyCode===37||e.keyCode===40){var J,z;(J=l())==null||(z=J.playerApi)==null||z.seekBy(-5,void 0,void 0,71)}}},v4z=function(l,e,O){return function(E){!O().disableScrubbing&&l.startPosition&&PzH(l,E,e(),O())}},Nfu=function(l,e,O){return function(){if(!O().disableScrubbing)if(l.startPosition){var E=e(),J=O();
Ib(l,e(),O());if(J.onTouchEnd)J.onTouchEnd(E)}else e().setState({isDragging:!1})}},R4o=function(l){l=l.touches[0];
return{x:l.clientX,y:l.clientY}},PzH=function(l,e,O,E){if(e.buttons!==1){if(e.movementX||e.movementY)e.preventDefault(),e.stopPropagation(),l=ruo(l,O,e.clientX),O.setState({isHovering:!0,
hoveredTime:l*O.videoDuration})}else Do4(O),G0C(l,e,{x:e.clientX,y:e.clientY},O,E,!1)};
kY.prototype.handleMouseLeave=function(l){Do4(l)};
var Do4=function(l){l.isHovering&&l.setState({isHovering:!1,hoveredTime:0})},fO4=function(l,e,O,E){l.startPosition||(l.startPosition=O,l.updateProgressBarRect(),l.controlsWereVisibleBeforeDragging=E.controlsVisible,e.stopPropagation(),_.a("medium_progress_bar_modification")||e.preventDefault())},G0C=function(l,e,O,E,J,z){if(l.startPosition)if(z&&J.isInlinePlayback&&l.startPosition&&!l.hasDraggedTheMinimumDistance&&Math.abs(O.y-l.startPosition.y)>Math.abs(O.x-l.startPosition.x))Ib(l,E,J);
else if(e.preventDefault(),e.stopPropagation(),E.videoDuration&&(l.startPosition&&!l.hasDraggedTheMinimumDistance&&(l.hasDraggedTheMinimumDistance=Math.abs(O.x-l.startPosition.x)>=1),J.enableFineScrubbing&&(l.startPosition&&(l.isDraggedForFineScrubbing=-(O.y-l.startPosition.y)>=60),!l.startPosition||O.y>=l.startPosition.y||(E.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:PmM(E.draggedTime,E,J.chapterData)}),l.setFineScrubbingDraggedTime(E.draggedTime),l.updateFilmStripDraggedYDistance(l.startPosition.y,
O.y,E))),l.hasDraggedTheMinimumDistance)){e=ruo(l,E,O.x);if(l.isDraggedForFineScrubbing){var M;(M=E.playerApi)==null||M.pauseVideo();E.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:E.draggedTime,filmStripXDistance:PmM(e*E.videoDuration,E,J.chapterData)})}J.enableFineScrubbing&&(!J.enableFineScrubbing||l.getFilmstripYPosition(E)<68)||E.setState({draggedTime:e*E.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:l.controlsWereVisibleBeforeDragging});var Z;(Z=
J.cancelAutohideControlsFn)==null||Z.call(J)}},Ib=function(l,e,O){var E=O.enableFineScrubbing&&e.fineScrubbingActiveState!=="off";
if(e.isDragging||E){E={isDragging:!1,playedTime:e.draggedTime,controlsVisible:l.controlsWereVisibleBeforeDragging};O.enableFineScrubbing&&e.fineScrubbingActiveState!=="on"&&(l.resetFilmStripYOffset(),E.fineScrubbingActiveState="off");var J=J===void 0?jVW:J;var z=_.P9(0);z&&J&&_.En(z,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(e.playedTime*1E3),endMediaTimeMs:Math.round(e.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});e.setState(E);
l.seekThrottle.fire(e.draggedTime,e,7);_.a("mweb_new_progress_bar_play_on_seek")&&l.resumeVideo(e);O.unmuteOnSeek&&(O=e.playerApi,e.volumeMuted&&(O==null||O.unMute()))}else e.setState({controlsVisible:!e.controlsVisible}),(z=O.triggerAutohideControlsAfterDelayFn)==null||z.call(O);l.startPosition=null;l.hasDraggedTheMinimumDistance=!1;l.isDraggedForFineScrubbing=!1;l.controlsWereVisibleBeforeDragging=!1};
kY.prototype.handleClick=function(l,e,O){this.updateProgressBarRect();l.stopPropagation();l=ruo(this,e,l.clientX)*e.videoDuration;e.setState({playedTime:l});if(e.playerState!==2){var E;(E=O.triggerAutohideControlsAfterDelayFn)==null||E.call(O)}this.seekThrottle.fire(l,e,7)};
var ruo=function(l,e,O){l=l.getProgressBarRect(e);return _.hc(0,(O-l.left)/l.width,1)};
kY.prototype.resumeVideo=function(l){if(l.draggedTime<l.videoDuration){var e;(e=l.playerApi)==null||e.playVideo()}};
kY.prototype.onThrottledSeek=function(l,e,O){if(e=e.playerApi){var E;if((E=e.getVideoData())==null?0:E.isLive)E=this.getProgressState(e),l+=(E==null?void 0:E.seekableStart)||0;e.seekTo(l,void 0,void 0,void 0,O)}};
kY.prototype.getProgressState=function(l){var e=l==null?void 0:l.getPresentingPlayerType();return l==null?void 0:l.getProgressState(e)};var xoH,Qi4,lVu,OJ4,Suz,EHF,Jp3,Xv4,zS4;xoH=_.XO(function(l){var e=l.progressBarProps;var O=l.config;var E=l.progressBarWidthPx;var J=l.chapterData;var z=tzL(e,function(){return O().isShortsPage}),M=function(){return!e().isHovering&&!O().isShortsPage};
l={};var Z=_.ax("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(l.ytPlayerStoryboardHostMwebShorts=function(){return O().isShortsPage&&!1},l));
return _.W("yt-player-storyboard",null,_.W(_.A,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.W(_.A,{cond:z,then:function(u){return _.W(_.A,{cond:M,then:function(){return _.W("div",{class:Z,"aria-hidden":"true"},_.W(Suz,{props:e,config:O,isBigboard:!0,chapterData:J}))},
else:function(){return _.W(Qi4,{props:e,frame:u,config:O,progressBarWidthPx:E,chapterData:J})}})}})}}))},"De");
_.eSC=_.XO(function(l){var e=l.progressBarProps;var O=tzL(e,l.isShortsPage);return _.W("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.W(_.A,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.W(_.A,{cond:O,then:function(E){return _.W(lVu,{frame:E,props:e,isBigboard:!0})}})}}))},"Ee");
Qi4=_.XO(function(l){var e=l.props;var O=l.frame;var E=l.config;var J=l.progressBarWidthPx;l=l.chapterData;var z={};z=_.ax("ytPlayerStoryboardHost",(z.ytPlayerStoryboardHostMwebShorts=function(){return E().isShortsPage&&!1},z.ytPlayerStoryboardHostInlinePlayer=function(){return E().isInlinePlayer},z.ytPlayerStoryboardHostFadeIn=function(){return E().useFadeInAnimation},z));
return _.W("div",{class:z,"aria-hidden":"true",style:function(){var M=e(),Z=U6d(O()),u=J();M=YrT(M)/M.videoDuration;var d=u*M,g=Z/2+6;Z=u-(Z/2+6);return"left: "+(d<=g?g/u*100:d>=Z?Z/u*100:M*100)+"%"}},_.W(_.A,{cond:function(){var M=e();
return!(E().isShortsPage&&M.videoDuration<15)},
then:function(){return _.W(lVu,{frame:O,props:e,isBigboard:!1})}}),_.W(Suz,{props:e,
config:E,isBigboard:!1,chapterData:l}))},"Fe");
lVu=_.XO(function(l){var e=l.frame;var O=l.props;var E=l.isBigboard;var J=function(){var Z,u;return(u=(Z=O().playerApi)==null?void 0:Z.getVideoContentRect())!=null?u:{width:0,height:0}},z=function(){return U6d(e())},M=function(){var Z=e();
return Z?Z.height/Z.rows:0};
l={};l=_.ax((l.ytPlayerStoryboardBigboardImageWrapper=E,l.ytPlayerStoryboardStoryboardImageWrapper=function(){return!E()},l));
return _.W("div",{class:l,style:function(){return"width: "+(E()?J().width:z())+"px; height: "+(E()?J().height:M())+"px;"}},_.W(OJ4,{frame:e,
storyboardWidth:z,storyboardHeight:M,storyboardScale:function(){return(E()?J().width:z())/z()}}))},"Ge");
OJ4=_.XO(function(l){var e=l.frame;var O=l.storyboardWidth;var E=l.storyboardHeight;var J=l.storyboardScale;var z=function(){var M=e().row,Z=e().column,u=O(),d=E(),g=J();return{left:-Z*u*g,top:-M*d*g}};
return _.W("img",{src:function(){return e().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+z().left+"px; top: "+z().top+"px; width: "+e().width*J()+"px; height: "+e().height*J()+"px;"}})},"He");
Suz=_.XO(function(l){var e=l.props;var O=l.config;var E=l.isBigboard;var J=l.chapterData;l={};l=_.ax("ytPlayerStoryboardMetadata",(l.ytPlayerStoryboardMetadataBigboard=E,l));return _.W("div",{class:l},_.W(_.A,{cond:E,then:function(){return _.W(_.ZB,null,_.W(EHF,{props:e,config:O}),_.W(_.A,{cond:function(){a:{var z=e();var M=O(),Z=J(),u;if((M==null?0:M.activeChapter)&&((u=_.I(M==null?void 0:M.activeChapter,tc))==null?0:u.title))z=!0;else{M=_.b(wEt(Z));for(M=M.next();!M.done;M=M.next()){z=(M=_.I(M.value,
cKF))&&hOL(z,M);break a}z=!1}}return z},
then:function(){return _.W(Jp3,{props:e,config:O,isBigboard:!0,chapterData:J})}}))},
else:function(){return _.W(_.ZB,null,_.W(Jp3,{props:e,config:O,isBigboard:!0,chapterData:J}),_.W(EHF,{props:e,config:O}))}}))},"Ie");
EHF=_.XO(function(l){var e=l.props;var O=l.config;l={};l=_.ax("ytPlayerStoryboardTimestamp",(l.ytPlayerStoryboardTimestampShorts=function(){return O().isShortsPage},l.ytPlayerStoryboardTimestampIsHovering=function(){return e().isHovering||O().isShortsPage&&!0},l));
return _.W("div",{class:l},_.W(_.ZB,null,function(){return _.LDx(YrT(e()))}))},"Je");
Jp3=_.XO(function(l){var e=l.props;var O=l.config;var E=l.isBigboard;var J=l.chapterData;l={};E=_.ax("ytPlayerStoryboardTitle",(l.ytPlayerStoryboardTitleBigboard=E,l));return _.W("div",{class:E},_.W(_.A,{cond:function(){return!O().isShortsPage},
then:function(){return _.W(Xv4,{props:e,activeChapter:function(){return O().activeChapter},
chapterData:J})}}))},"Ke");
Xv4=_.XO(function(l){var e=l.props;var O=l.activeChapter;var E=l.chapterData;return _.W(_.ZB,null,_.W(_.KH,{each:function(){return wEt(E())},
keyBy:"INDEX"},function(J){return _.W(_.ZB,null,_.W(_.A,{cond:function(){return _.I(J(),cKF)&&hOL(e(),_.I(J(),cKF))},
then:function(){return _.W(zS4,{timedMarker:function(){return _.I(J(),cKF)}})}}))}),_.W(_.A,{cond:function(){var J;
return O()&&((J=_.I(O(),tc))==null?void 0:J.title)},
then:function(J){return _.W(_.zK,{text:J,noPreWrap:!0})}}))},"Le");
zS4=_.XO(function(l){var e=l.timedMarker;return _.W(_.ZB,null,_.W("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.W(_.cF,{icon:function(){return e().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.W(_.zK,{text:function(){return e().label},
noPreWrap:!0}))},"Me");_.bJC=_.XO(function(l){var e=l.progressBarProps;var O=l.playheadData;var E=l.config;l=_.e4("yt-progress-bar");var J=_.e4("div"),z=_.e4("div"),M=_.b(_.AF({width:0,left:0},void 0,"NcXsUb")),Z=M.next().value,u=M.next().value,d=function(){z.value&&u(z.value.getBoundingClientRect())},g=function(){Z().width<=0&&d();
return Z()};
bg("resize",d);var w=new kY(g,function(){},function(){return 0},function(){},function(){},function(){}),n=function(){return e()};
M=_.b(_.AF(!1,void 0,"ZsF6Xc"));var k=M.next().value,y=M.next().value;M=_.pd(function(){y(!0);E().position===2?setTimeout(function(){d()},100):d()});
var c=_.pd(function(){y(!1);YuF(w,n)()}),f=_.pd(function(Px){E().doSeekOnClick&&FHu(w,n,E)(Px);
return!1}),P=_.pd(function(Px){Tfi(w,n)(Px);
return!1}),h=_.pd(function(Px){sif(w,n)(Px);
return!1}),N=_.pd(function(Px){Bf4(w,n,E)(Px);
return!1}),t=_.pd(function(Px){Uoo(w,n,E)(Px);
return!1}),r=_.pd(function(){h4C(w,n,E)();
return!1}),D=_.pd(function(){LHf(w,n,E)();
return!1}),b2=_.pd(function(){t3i(w,n,E)();
return!1}),$V=_.pd(function(Px){quC(n)(Px);
return!1});
bg("mousemove",v4z(w,n,E));bg("mouseup",Nfu(w,n,E));_.sC(function(){HML(J.value);y(!1);d();Nfu(w,n,E)()});
var gT={};gT=_.ax("ytPlayerProgressBarHost",function(){return E().className},(gT.ytPlayerProgressBarHostReadOnly=function(){return E().disableScrubbing},gT.ytPlayerProgressBarHostHidden=function(){return E().hideProgressBar&&!k()},gT.ytPlayerProgressBarHostLowerPlayer=function(){return E().position===0},gT.ytPlayerProgressBarHostBottomEdge=function(){return E().position===1},gT.ytPlayerProgressBarHostBottomInset=function(){return E().position===2},gT.ytPlayerProgressBarHostCustom=function(){return E().position===
3},gT));
var mx={},jM=_.ax("ytPlayerProgressBarBackground",(mx.ytPlayerProgressBarBackgroundHide=function(){return E().position===2&&!k()&&!e().isDragging},mx));
mx={};mx=_.ax("ytPlayerProgressBarDragContainer",(mx.ytPlayerProgressBarDragContainerBottomEdge=function(){return E().position===1},mx));
var cx={};cx=_.ax("ytPlayerProgressBarProgressBar",(cx.ytPlayerProgressBarProgressBarInset=function(){return E().position===2},cx.ytPlayerProgressBarProgressBarInsetMinimized=function(){return E().position===2&&!k()&&!e().isDragging},cx));
var tq=function(){return Math.floor(WDd(e())*100)};
return _.W("yt-progress-bar",{el:l,class:gT},_.W(_.A,{cond:function(){return E().position===2},
then:function(){return _.W("div",{class:jM})}}),_.W("div",{el:J,
"on:click":f,"on:touchstart":P,"on:touchmove":N,"on:mouseenter":M,"on:mousedown":h,"on:mouseleave":c,"on:mousemove":t,"on:mouseup":D,"on:touchend":r,"on:touchcancel":b2,"on:keydown":$V,class:mx,role:"slider","aria-valuenow":tq,"aria-valuetext":function(){return tq()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return e().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.ml("SEEK_SLIDER")},_.W("div",{el:z,class:cx},_.W(ji3,{progressBarProps:e,config:E,highContrast:function(){return!!E().isInlinePlayback}}),_.W(_.A,{cond:function(){return E().chapterData&&ARt(E().chapterData)},
then:function(){return _.W(phP,{progressState:e,multiMarkersPlayerBarRenderer:function(){return E().chapterData},
progressBarWidth:function(){return Z().width}})},
else:function(){return _.W(HP0,{progressBarProps:e,config:E})}}),_.W(cuz,{progressBarProps:e,
playheadData:O,interpolateDotPosition:function(){return E().position!==2},
hidePlayhead:function(){return E().playheadDotBehavior===1&&!k()}}))),_.W(xoH,{progressBarProps:e,
config:function(){return{activeChapter:TNd(e(),E().chapterData),getProgressBarWidthPx:function(){return g().width},
isShortsPage:!!E().isShortsPage,isInlinePlayer:!!E().isInlinePlayback,useFadeInAnimation:!!E().isInlinePlayback}},
progressBarWidthPx:function(){return Z().width},
chapterData:function(){return E().chapterData}}))},"Ne");
_.bJC.idomCompat=!0;Object.assign({},_.nf2(),{setState:function(){},
domMeasurements:{},appApi:_.$6u(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var MOo;
_.VOf=_.XO(function(){var l,e=(l=_.vn(qrp().playerApi))!=null?l:void 0;l=_.b(_.AF(!1,void 0,"HLFBmb"));var O=l.next().value,E=l.next().value;l=_.b(_.AF(!1,void 0,"lHH9bc"));var J=l.next().value,z=l.next().value;l=_.b(_.AF(!1,void 0,"zsY7yd"));var M=l.next().value,Z=l.next().value;l=_.b(_.AF(!1,void 0,"KeHQgc"));var u=l.next().value,d=l.next().value;l=_.b(_.AF(0,void 0,"gLLCj"));var g=l.next().value,w=l.next().value;l=_.b(_.AF(0,void 0,"s3RYkf"));var n=l.next().value,k=l.next().value;l=_.b(_.AF(!1,void 0,
"Dn608e"));var y=l.next().value,c=l.next().value;l=_.b(_.AF(0,void 0,"AnkH1b"));var f=l.next().value,P=l.next().value;l=_.b(_.AF(0,void 0,"QYNL0b"));var h=l.next().value,N=l.next().value;l=_.b(_.AF("",void 0,"Yzw45d"));var t=l.next().value,r=l.next().value;l=_.b(_.AF(-1,void 0,"iiVI0c"));var D=l.next().value,b2=l.next().value,$V=_.mF(function(){var gT={controlsVisible:O(),isOverlayHidden:J(),shouldWaitToHideControls:M(),isDragging:u(),isHovering:y(),videoDuration:f(),playedTime:h(),videoId:t(),draggedTime:n(),
hoveredTime:g(),playerState:D()};return Object.assign({},_.nf2(),gT,{domMeasurements:{},setState:function(mx){mx.controlsVisible!==void 0&&E(mx.controlsVisible);mx.isOverlayHidden!==void 0&&z(mx.isOverlayHidden);mx.shouldWaitToHideControls!==void 0&&Z(mx.shouldWaitToHideControls);mx.isDragging!==void 0&&d(mx.isDragging);mx.isHovering!==void 0&&c(mx.isHovering);mx.draggedTime!==void 0&&k(mx.draggedTime);mx.hoveredTime!==void 0&&w(mx.hoveredTime);mx.videoDuration!==void 0&&P(mx.videoDuration);mx.playedTime!==
void 0&&N(mx.playedTime);mx.videoId!==void 0&&r(mx.videoId);mx.playerState!==void 0&&b2(mx.playerState)},
appApi:_.$6u(),playerApi:e})},void 0,"ZW7y9");
_.RU(function(){e==null||e.addEventListener("onVideoProgress",m6p($V));e==null||e.addEventListener("onVideoDataChange",Iyp($V));e==null||e.addEventListener("onStateChange",ayx($V))});
_.B3(function(){if(e==null?0:e.isReady())e==null||e.removeEventListener("onVideoProgress",m6p($V)),e==null||e.removeEventListener("onVideoDataChange",Iyp($V)),e==null||e.removeEventListener("onStateChange",ayx($V))});
return _.W("desktop-shorts-player-controls",null,_.W(MOo,{playerControlsProps:$V}))},"Oe");
MOo=_.XO(function(l){var e=l.playerControlsProps;return _.W("div",{class:"desktopShortsPlayerControlsWizHost"},_.W(_.bJC,{progressBarProps:e,config:function(){return{isShortsPage:!0,hideProgressBar:e().videoDuration<30&&e().playerState!==2&&!e().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.ZJo=_.XO(function(l){function e(gT){gT!==0||w()?gT>50&&(w()||!k())?(n(!1),y(!0)):gT<=50&&(w()||k())&&(n(!1),y(!1)):n(!0)}
function O(gT,mx){var jM;return _.V(function(cx){if(cx.nextAddress==1)return _.C(cx,_.dC(),2);jM=cx.yieldResult;mx&&jM?(jM.unMute(!0),gT&&(NNp(gT,jM.getVolume()),f(jM.getVolume()))):jM&&(jM.mute(!0),gT&&NNp(gT,0));_.Cl(cx)})}
function E(gT){var mx,jM;return _.V(function(cx){if(cx.nextAddress==1)return _.C(cx,_.dC(),2);mx=cx.yieldResult;jM=50;mx&&(jM=mx.getVolume(),mx.isMuted()?NNp(gT,0):NNp(gT,jM));f(jM);_.Cl(cx)})}
var J=l.orientation;l=_.e4("desktop-shorts-volume-controls");var z=_.e4("button"),M=_.O0("input"),Z=_.b(_.AF(!1,void 0,"F6vt0d")),u=Z.next().value,d=Z.next().value,g=_.b(_.AF(!1,void 0,"S5PCqb"));Z=g.next().value;g=g.next().value;var w=Z,n=g;g=_.b(_.AF(!0,void 0,"Tgy4e"));Z=g.next().value;g=g.next().value;var k=Z,y=g;Z=_.b(_.AF(50,void 0,"Dq3efd"));var c=Z.next().value,f=Z.next().value;Z=_.mF(function(){var gT=w();return _.a("web_shorts_keyboard_enable_mute_shortcut")?gT?_.ml("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.ml("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):gT?_.ml("UNMUTE_VOLUME",void 0,"Unmute"):_.ml("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
g=_.mF(function(){var gT=w(),mx=k();return{sources:[{clientResource:{imageName:gT?_.a("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":mx?_.a("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.a("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var P=_.mF(function(){var gT=c();return w()?gT+"% volume muted":gT+"% volume"},void 0,"kvkmyc"),h=_.mF(function(){return J()==="vertical_down"},void 0,"zaNsZ");
_.sC(function(){function gT(){d(!0)}
function mx(){d(!1)}
M&&M.value&&(M.value.addEventListener("focus",gT),M.value.addEventListener("focusout",mx),E(M.value).then(function(){e(Number(rRq(M.value)))}));
z&&z.value&&(z.value.addEventListener("focus",gT),z.value.addEventListener("focusout",mx));_.B3(function(){var jM;M==null||(jM=M.value)==null||jM.removeEventListener("focus",gT);var cx;M==null||(cx=M.value)==null||cx.removeEventListener("focusout",mx);var tq;z==null||(tq=z.value)==null||tq.removeEventListener("focus",gT);var Px;z==null||(Px=z.value)==null||Px.removeEventListener("focusout",mx)})});
var N=_.pd(function(){if(M&&M.value){var gT=Number(rRq(M.value));vfL(gT);f(gT);M.value.style.setProperty("--gradient-percent",gT+"%");e(gT)}return!1}),t=_.pd(function(){d(!0)}),r=_.pd(function(){M&&M.value&&(O(M.value,w()),n(!w()));
return!1}),D={},b2={},$V={};
return _.W("desktop-shorts-volume-controls",{"on:pointerleave":_.pd(function(){d(!1)}),
class:_.ax("ytdDesktopShortsVolumeControlsHost",(D.ytdDesktopShortsVolumeControlsHostVertical=h,D.ytdDesktopShortsVolumeControlsHostExpanded=u,D)),el:l},_.W(_.A,{cond:function(){return!h()},
then:function(){var gT={};return _.W("div",{class:_.ax("ytdDesktopShortsVolumeControlsBackgroundScrim",(gT.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=u,gT))})}}),_.W("div",{class:_.ax((b2.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=h,b2))},_.W("button",{"aria-label":Z,
title:Z,el:z,"on:click":r,"on:pointerenter":t,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},g?_.W(_.Jm,{data:g,alt:Z,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.W("div",{class:_.ax("ytdDesktopShortsVolumeControlsSliderContainer",($V.ytdDesktopShortsVolumeControlsSliderContainerExpanded=u,$V.ytdDesktopShortsVolumeControlsSliderContainerVertical=h,$V.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=h,$V.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return u()&&h()},$V))},_.W("input",{"aria-label":_.ml("VOLUME"),
title:_.ml("VOLUME"),el:M,"on:input":N,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":c,"aria-valuetext":P,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.uSP=_.XO(function(l){var e=l.data;return _.W("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.W(_.$8,{command:function(){return e().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.W(_.A,{cond:function(){return e().iconName},
then:function(O){return _.W(_.cF,{icon:O})}}),_.W("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return e().text}),_.W(_.A,{cond:function(){return e().showEndChevron},
then:function(){return _.W(_.cF,{icon:"CHEVRON_RIGHT"})}})))},"Re");var Ckz=_.XO(function(l){var e=l.data;var O=l.overlayDensity;l={};return _.W("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.W(_.Tn,{data:function(){return e().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(E){var J=E.data;
return _.W(_.cp,{data:function(){return(O==null?void 0:O())===1?Object.assign({},J(),{avatar:{avatarViewModel:Object.assign({},_.I(J().avatar,_.l3),{avatarImageSize:"AVATAR_SIZE_48"})}}):J()}})}}),_.W(_.Tn,{data:function(){return e().avatarStackViewModel}},{avatarStackViewModel:function(E){return _.W(_.Ff,{data:E.data})}}),_.W(_.zK,{className:_.ax("ytReelChannelBarViewModelChannelName",(l.ytReelChannelBarViewModelChannelNameLarge=function(){return(O==null?void 0:O())===1},l)),
text:function(){return e().channelName},
linkInheritColor:!0,userInput:!0}),_.W("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.W(_.Tn,{data:function(){return e().subscribeButtonViewModel}},{subscribeButtonViewModel:function(E){var J=E.data;
return _.W(_.jf,{data:function(){return(O==null?void 0:O())===1?Object.assign({},J(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},J().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):J()},
isOverlay:!1})},
buttonViewModel:_.hM})),_.W("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.W(_.Tn,{data:function(){var E,J;return(J=_.I((E=e())==null?void 0:E.sponsorButtonViewModel,N9q))==null?void 0:J.sponsorButton}},{buttonViewModel:function(E){return _.W(_.hM,{data:E.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var oHh=_.XO(function(l){var e={};return _.W("yt-reel-multi-format-link-view-model",{class:_.ax("ytReelMultiFormatLinkViewModelHost",(e.ytReelMultiFormatLinkViewModelHostTall=!0,e.ytReelMultiFormatLinkViewModelHostLarge=function(){var O;return((O=l.overlayDensity)==null?void 0:O.call(l))===1},e))},_.W(_.$8,{ariaLabel:function(){return l.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.t3(l.data().command)},
dangerousStopPropagation:!1},_.W("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.W(_.A,{cond:function(){return l.data().icon},
then:function(O){return _.W(_.Jm,{data:O,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.W(_.zK,{text:function(){return l.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
oHh.idomCompat=!0;var $HP=_.XO(function(l){var e=l.data;var O=l.overlayDensity;var E=_.e4("yt-shorts-suggested-action-view-model");l=_.b(_.AF(!1,void 0,"xDqzhe"));var J=l.next().value,z=l.next().value;l=_.b(_.AF(!1,void 0,"LI9CFd"));var M=l.next().value,Z=l.next().value,u=function(){return e().isMultiLineSa},d=_.kD(k6p,function(){var N,t;
return(t=(N=e().toggleableContent)==null?void 0:N.entityKey)!=null?t:""}),g=function(){var N,t,r;
return(r=e().toggleableContent)!=null&&r.entityKey?(t=(N=d())==null?void 0:N.value)!=null?t:!1:!1},w=function(){var N,t,r,D,b2,$V,gT,mx,jM,cx,tq;
return e().toggleableContent?g()?(N=e().toggleableContent)==null?void 0:N.toggledData:(t=e().toggleableContent)==null?void 0:t.untoggledData:{primaryText:(mx=(r=e().defaultContent)==null?void 0:r.primaryText)!=null?mx:e().text,secondaryText:(D=e().defaultContent)==null?void 0:D.secondaryText,onTapCommand:(jM=(b2=e().defaultContent)==null?void 0:b2.onTapCommand)!=null?jM:e().onTapCommand,icon:(cx=($V=e().defaultContent)==null?void 0:$V.icon)!=null?cx:e().icon,image:(tq=(gT=e().defaultContent)==null?
void 0:gT.image)!=null?tq:e().image}},n=function(){return u()?e().trailingTapTarget:void 0};
l=function(N,t){return function(){return J()?t:N}};
var k={leadingSection:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};l={};l=_.ax((l.ytShortsSuggestedActionViewModelStaticHost=function(){return!u()},l.ytShortsSuggestedActionViewModelDynamicHost=u,l.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return u()&&M()},l.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return u()&&!M()},l));
_.sC(function(){if(u()){var N=0,t;if((t=e().animationParams)==null?0:t.shouldExpand){var r,D;N=((D=(r=e().animationParams)==null?void 0:r.expansionDelaySecs)!=null?D:0)*1E3}var b2,$V=((b2=e().animationParams)==null?0:b2.shouldExpand)?setTimeout(function(){z(!0)},N):void 0,gT,mx;
N=((gT=e().animationParams)==null?0:gT.visibilityDelaySecs)?((mx=e().animationParams)==null?NaN:mx.visibilityDelaySecs)*1E3:0;var jM=setTimeout(function(){Z(!0)},N);
_.B3(function(){$V&&clearTimeout($V);clearTimeout(jM)})}});
var y=function(N){_.r6(N,Object.assign({},{form:{element:E.value}}))},c=_.pd(function(){var N,t=(N=w())==null?void 0:N.onTapCommand;
t&&y(t)}),f=_.pd(function(){var N,t;
if(N=(t=n())==null?void 0:t.onTapCommand)return y(N),!1}),P=_.HF({"vertical-align":"bottom",
"border-radius":function(){var N;return u()?((N=e().defaultContent)==null?0:N.isCircleImage)?"50%":"4px":"0px"},
width:function(){var N,t,r;return u()&&((N=e().defaultContent)==null?0:N.imageSize)?((r=(t=e().defaultContent)==null?void 0:t.imageSize)!=null?r:24)+"px":null},
height:function(){var N,t,r;return u()&&((N=e().defaultContent)==null?0:N.imageSize)?((r=(t=e().defaultContent)==null?void 0:t.imageSize)!=null?r:24)+"px":null}}),h={};
return _.W("yt-shorts-suggested-action-view-model",{class:l,el:E},_.W("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.W("button",{class:_.ax(function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var N;
return(N=e().useFullRoundedBorder)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!n()&&u()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":u()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var N;
return(N=e().disableFixedHeight)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(h.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(O==null?void 0:O())===1},h)),
"on:click":c},_.W(_.Rx,{model:{color:4}}),_.W("div",{class:_.ax(function(){return u()?k.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.W(_.A,{cond:function(){var N;
return(N=w())==null?void 0:N.image},
then:function(N){return _.W(_.Jm,{data:N,alt:"",className:function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:P})}}),_.W(_.A,{cond:function(){var N,t;
return(N=w())==null?void 0:(t=N.icon)==null?void 0:t.iconType},
then:function(N){return _.W(_.cF,{icon:N,active:g,className:function(){return u()?J()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.W("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.W(_.A,{cond:function(){var N;
return(N=w())==null?void 0:N.primaryText},
then:function(N){return _.W("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.W(_.zK,{text:N}))}}),_.W(_.A,{cond:function(){var N;
return(N=w())==null?void 0:N.secondaryText},
then:function(N){return _.W("div",{class:k.secondaryText},_.W(_.zK,{text:N}))}}))),_.W(_.A,{cond:n,
then:function(N){return _.W("div",{class:k.trailingSection,"aria-label":function(){var t;return(t=N().a11yLabel)!=null?t:""},
"on:click":f,role:"button",tabindex:0},_.W(_.Rx,{model:{color:4}}),_.W(_.cF,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var Wb4=_.XO(function(l){var e=l.data;var O=l.overlayDensity;var E=_.e4("yt-shorts-video-title-view-model");l=_.pd(function(M){if(_.DP(_.rC(M),E.value,["A".toString()]))return!1;(M=e().truncatedTextOnTapCommand)&&_.r6(M);return!1});
var J={},z={};return _.W("yt-shorts-video-title-view-model",{el:E,class:_.ax("ytShortsVideoTitleViewModelHost",(J.ytShortsVideoTitleViewModelHostClickable=function(){return!!e().truncatedTextOnTapCommand},J)),
"on:click":l},_.W("h2",{class:_.ax("ytShortsVideoTitleViewModelShortsVideoTitle",(z.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(O==null?void 0:O())===1},z))},_.W(_.zK,{text:function(){return e().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.dHC=_.XO(function(l){var e=l.data;var O=l.overlayDensity;return _.W("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.W(_.Tn,{data:function(){return e().metadataItems}},{badgeViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.MU,{data:E.data}))},
playerDisclosureViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.uSP,{data:E.data}))},
shortsSuggestedActionViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W($HP,{data:E.data,overlayDensity:O}))},
reelChannelBarViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(Ckz,{data:E.data,overlayDensity:O}))},
reelMultiFormatLinkViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(oHh,{data:E.data,overlayDensity:O}))},
shortsVideoTitleViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(Wb4,{data:E.data,overlayDensity:O}))},
reelSoundMetadataViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.IWO,{data:E.data,overlayDensity:O}))},
toggleButtonViewModel:function(E){return _.W("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.W(_.sh,{data:E.data}))}}))},"We");var gHP=_.XO(function(l){var e=_.J3(l,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),O=e.size,E=e.onTap,J=e.disabled,z=e.tooltipText;return _.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(Ms,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:O(),disabled:J(),tooltipText:z(),onTap:E}},
iconName:l.iconType}))},"Xe"),iJi=_.XO(function(l){function e(g){g.stopPropagation();
g.code==="ArrowUp"?(g.preventDefault(),QVu(Z.value)):g.code==="ArrowDown"?(g.preventDefault(),x6p(Z.value)):g.code==="KeyM"?D62():(g.code==="KeyK"||g.code==="Space")&&Srx(u())}
var O=_.J3(l,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});l=O.previousButtonDisabled;var E=O.nextButtonDisabled,J=O.data,z=O.playabilityStatus,M=O.previewThumbnail,Z=_.e4("ytd-shorts-miniplayer-overlay"),u=_.Ld(_.WVT),d;_.RU(function(){(d=_.HR(Z.value))&&d.addEventListener("keydown",e)});
_.B3(function(){var g;(g=d)==null||g.removeEventListener("keydown",e)});
O=function(){var g,w,n;return(g=J())==null?void 0:(w=g.reelPlayerOverlayRenderer)==null?void 0:(n=w.likeButton)==null?void 0:n.likeButtonRenderer};
return _.W("ytd-shorts-miniplayer-overlay",{el:Z,class:"ytdShortsMiniplayerOverlayHost"},_.W("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.HF({"background-image":function(){var g=M();return g?'url("'+_.Cd(g.thumbnails)+'")':""}})}),_.W("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.W("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.W(gHP,{iconType:function(){var g=u();
return g===2||g===-1||g===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Srx(u())},
tooltipText:function(){var g=u();return g===1||g===3?_.ml("PLAYER_LABEL_PAUSE"):_.ml("PLAYER_LABEL_PLAY")}}),_.W(_.ZJo,{orientation:"horizontal_right"})),_.W("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.W(gHP,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:l,onTap:function(){QVu(Z.value)},
tooltipText:_.ml("PREVIOUS_VIDEO_LABEL")}),_.W(gHP,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:E,onTap:function(){x6p(Z.value)},
tooltipText:_.ml("NEXT_VIDEO_LABEL")}),_.a("web_shorts_pip_like_button")?_.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(rNq,{buttonTooltipPosition:"left",data:O,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.W("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.W(_.A,{cond:function(){var g,w;return _.I((g=J())==null?void 0:(w=g.reelPlayerOverlayRenderer)==null?void 0:w.metapanel,
_.LSS)},
then:function(g){return _.W("div",{class:_.ax("ytdShortsMiniplayerOverlayInteractive")},_.W(_.dHC,{data:g}))}})),_.W("div",{class:_.ax("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var g;return!((g=J())==null||!g.adsOverlay)||z()&&!eVM(z())}},_.W("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.W(_.VOf,null)))),_.W(_.A,{cond:function(){var g=J(),w,n;
g=_.I(g==null?void 0:(w=g.adsOverlay)==null?void 0:(n=w.fulfillmentContent)==null?void 0:n.fulfilledLayout,kix);return _.I(g==null?void 0:g.renderingContent,KCS)},
then:function(g){return _.W("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.W(rVx,{data:g}))}}))},"Ye");var l6d=_.XO(function(){var l=_.b(_.AF(new _.uX(NaN,NaN),void 0,"HSMFk")),e=l.next().value,O=l.next().value;l=_.b(_.AF(!1,void 0,"uaAxwf"));var E=l.next().value,J=l.next().value,z=_.b(_.AF(!1,void 0,"nVSwef"));l=z.next().value;var M=z.next().value,Z=_.V2().resolve(_.NJ).miniplayerPropSignalMap[0],u=Z.data,d=Z.shortsData,g=Z.nextButtonDisabled,w=Z.shortsPreviewThumbnail,n=Z.previousButtonDisabled,k=Z.externalPlaylistData;z=Z.toastData;var y=Z.playabilityStatus,c=Z.isDisabled,f=Z.playerVe,P=Z.closeVe;
Z=_.Ld(_.yP);_.lg("yt-pip-window-resized",function(r){O(r)});
_.lg("yt-activate-pip-miniplayer",function(){return _.V(function(r){M(!0);_.Cl(r)})});
var h=function(){var r;return!((r=k())==null||!r.contents)&&E()},N=function(){var r=e(),D=!!u(),b2=h();
r=r.clone();D&&(r.height-=76);b2&&(r.height-=285);return r},t=function(){J(!E())};
_.Gh(function(){var r=f(),D=_.P9(11),b2=_.B9(11);D&&b2&&r&&(_.DG(D,b2,r),b2=P())&&(_.Sj(D,r,[b2]),_.xu(D,[b2]))},"HPkp0c");
return _.W("ytd-pip-container",{class:"ytdPipContainerHost"},_.W(_.A,{cond:l,then:function(){return _.W(_.IOu,{isDisabled:c,playabilityStatus:y,size:N})}}),_.W(_.A,{cond:u,
then:function(){return _.W(_.aOO,{data:u,expanded:E,onExpandClick:t,playlistData:k})}}),_.W(_.A,{cond:h,
then:function(){return _.W("div",{class:"ytdPipContainerPlaylistPanel"},_.W(_.vFF,{data:k,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.W(_.A,{cond:Z,
then:function(){return _.W(iJi,{data:d,nextButtonDisabled:g,previousButtonDisabled:n,playabilityStatus:y,previewThumbnail:w})}}),_.W("div",{class:"ytdPipContainerToast"},_.W(_.moi,{toastData:z})))},"Ze");var mp=function(l,e){var O=this;this.pipController=l;this.JSC$16522_clientRoot=e;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Vzx();this.watchPipEnabled=_.a("web_watch_pip");this.shortsPipEnabled=_.a("web_shorts_pip");this.JSC$16522_watchWhileEnabled=_.a("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;_.kw(_.Om(),_.unM,function(E){O.isSingleOptionSurveyActive=E});
this.JSC$16522_onPlayerPlayVideo=this.JSC$16522_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);_.QW(_.SU.getInstance(),this.miniplayerServiceActionMap,this.JSC$16522_clientRoot);l.pictureInPictureSupported()&&_.Bm("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},mqq,Kbu,IVu,j5o,HJh,jJ6;
mp.prototype.handleMediaSessionPipActivation=function(){var l=this,e;return _.V(function(O){_.n6().mediaSessionPipActivation=!0;e=_.V2().resolve(_.XZ);return e.isOnWatch()&&l.watchPipEnabled?(_.n6().watchPipActivation=!0,_.wvF(l,e.data),O.jumpTo(0)):e.isOnShorts()&&l.shortsPipEnabled?(_.n6().shortsPipActivation=!0,_.ApC(l),O.jumpTo(0)):l.isMiniplayerActive()&&l.watchPipEnabled&&!l.watchWhileMode?_.C(O,nHz(l),0):O.jumpTo(0)})};
var nHz=function(l){var e,O,E,J;return _.V(function(z){if(z.nextAddress==1)return e=!l.miniplayerToPipMode,O=l.playerElement,E=l.miniplayerData,J=l.watchResponse,_.C(z,l.deactivate(),2);if(z.nextAddress!=3)return e?(_.n6().mediaSessionPipActivation=!0,_.n6().watchPipActivation=!0):_.n6().miniplayerButtonActivation=!0,_.C(z,l.activate(O,E,J),3);l.miniplayerToPipMode=e;_.Cl(z)})};
mp.prototype.onDownloadedVideoDeleted=function(l){var e,O=_.I((e=this.miniplayerData)==null?void 0:e.watchEndpoint,_.ej),E,J;O&&((E=this.watchResponse)==null?void 0:(J=E.playerResponse)==null?void 0:J.offlineState)!==void 0&&(e=O.videoId)&&l&&e===l&&this.close()};
mp.prototype.onShowMiniplayerCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w,n,k,y;return _.V(function(c){switch(c.nextAddress){case 1:return O=_.I(l,fg6),J=(E=O)==null?void 0:E.miniplayerCommand,z=_.I(J,_.ej),J&&z&&!e.active?_.C(c,_.HJ.getInstance(),2):c.return();case 2:return M=c.yieldResult,_.C(c,(Z=M)==null?void 0:Z.get("yt-miniplayer-shown-video-id"),3);case 3:u=c.yieldResult;d=z.videoId;if(!d||u===d)return c.return();g=_.V2().resolve(_.XZ);if(g.isOnWatch())return _.hG(Error("Fj")),c.return();
w={channelItem:{externalId:btoa(d)}};e.readyToResumeVe=_.sL(121253,void 0,void 0,w);_.n6().showMiniplayerCommandActivation=!0;return _.C(c,_.H7H(e,J,!0),4);case 4:return e.active?(_.yY(e,{readyToResumeVe:e.readyToResumeVe,continueWatching:!0,premiumBranding:!((n=O)==null||!n.showPremiumBranding)}),_.a("ytd_miniplayer_to_wiz")&&_.yY(e,{isReadyToResume:!0}),e.isReadyToResume=!0):_.yY(e,{continueWatching:!0,premiumBranding:!((k=O)==null||!k.showPremiumBranding)}),_.C(c,(y=M)==null?void 0:y.set("yt-miniplayer-shown-video-id",
z.videoId),5);case 5:e.readyToResumeVe=void 0,_.Cl(c)}})};
mp.prototype.init=function(l){this.miniplayerEl?_.hG(new _.Hk("MiniplayerService already initialized.")):this.miniplayerEl=l};
mp.prototype.isInitialized=function(){var l=!!this.miniplayerEl;l||_.hG(new _.Hk("MiniplayerService used before initialized."));return l};
_.wvF=function(l,e){if(l.isInitialized()){var O=_.CmA(e.response,e.playerResponse),E=_.V2().resolve(_.XZ).getPlayerFromWatch();_.n6().currentEndpoint=O.watchEndpoint||null;l.activate(E,O,e)}};
_.ApC=function(l){if(l.isInitialized()){var e=_.V2().resolve(_.XZ).getPlayerFromShorts();l.activate(e)}};
mqq=function(l,e){var O;(O=!l.isInitialized())||(O=_.V2().resolve(_.XZ).isOnWatch()&&l.watchPipMode,O=!(l.isMiniplayerActive()&&(_.n6().userActivation||_.n6().lockupActivation||O)));if(O)return!1;aV4(l,e)?_.ab(l):jJ6(l,e);return l.watchPipMode?!_.V2().resolve(_.XZ).isOnWatch():!0};
mp.prototype.isMiniplayerActive=function(){return this.active};
var aV4=function(l,e){var O;e=(O=_.I(e,_.ej))==null?void 0:O.videoId;var E,J;l=(J=_.I((E=l.miniplayerData)==null?void 0:E.watchEndpoint,_.ej))==null?void 0:J.videoId;return e!=null&&e===l};
mp.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.$u(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Wb(this.miniplayerEl,"yt-navigate-home-action"))};
_.H7H=function(l,e,O,E){O=O===void 0?!1:O;var J,z,M;return _.V(function(Z){switch(Z.nextAddress){case 1:if(l.active){Z.jumpTo(2);break}J=_.V2().resolve(_.XZ);if(M=(z=l.playerElement)!=null?z:J.getPlayerFromWatch()){Z.jumpTo(3);break}return _.C(Z,_.V2().resolve(_.CT),4);case 4:M=J.getPlayerFromWatch();case 3:if(!M){_.hG(Error("Hj"));Z.jumpTo(2);break}return _.C(Z,l.activate(M,E),2);case 2:return l.active?_.C(Z,jJ6(l,e,O),0):Z.return()}})};
mp.prototype.activate=function(l,e,O){var E=this,J,z,M,Z,u,d,g,w,n;return _.V(function(k){switch(k.nextAddress){case 1:if(!E.isInitialized())return k.return();if(!l)return _.hG(Error("Hj")),k.return();if(_.hyC()||E.isMiniplayerActive())var y=!0;else y=_.n6().watchPipActivation||_.n6().watchWhileActivation,_.V2().resolve(_.XZ).isOnWatch()&&!y?(_.hG(new _.Hk("miniplayer activated on watch page")),y=!0):y=_.n6().watchWhileActivation?E.userDeactivatedWatchWhile||!!document.pictureInPictureElement||TJg():
!1;if(y)return Ydx(),k.return();J=_.n6().mediaSessionPipActivation;z=_.n6().shortsPipActivation;M=_.n6().watchPipActivation;u=(Z=_.n6().watchWhileActivation)||M;d=M||z;if(!E.pictureInPictureEnabled()||!d){k.jumpTo(2);break}return _.C(k,kuz(E,J),3);case 3:if(!k.yieldResult)return _.hG(Error("Gj")),Ydx(),k.return();case 2:return E.setActive(!0),E.watchResponse=O,E.playerElement=l,E.updateMiniplayerData(e),_.C(k,IVu(E,l),4);case 4:if(!E.active)return _.hG(new _.Hk("miniplayer deactivated during activation")),
E.removePlayerListeners(),k.return();y=_.V2().resolve(_.U5);y.addEventListener("yt-navigate",_.id(E,E.onPlaylistNavigate));y.addEventListener("yt-playlist-data-updated",_.id(E,E.JSC$16522_onPlaylistDataUpdated));E.JSC$16522_onPlaylistDataUpdated();Ydx();E.JSC$16522_watchWhileEnabled&&_.mHO(E,Z);E.pictureInPictureEnabled()&&E.shortsPipEnabled&&(E.shortsPipMode=z,_.Om().dispatch(KYq(E.shortsPipMode)));E.pictureInPictureEnabled()&&E.watchPipEnabled&&(E.watchPipMode=M,_.Gbq(E.handleMediaSessionPipActivation));
E.player&&(g=E.player.getPlayerState(),w=g===1,_.Om().dispatch(skx(g)),_.dQ(E.miniplayerEl,"yt-miniplayer-play-state-changed",[w]),_.n6().isVideoPlaying=w);_.dQ(E.miniplayerEl,"yt-miniplayer-endpoint-changed");yp0(E);_.pvo(E);return E.shortsPipMode||E.watchPipMode?_.C(k,_.gQ(E.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.a("ytd_miniplayer_to_wiz")?_.C(k,_.gQ(E.miniplayerEl,"yt-activate-miniplayer",[u]),6):_.C(k,_.gQ(E.miniplayerEl,"yt-activate-miniplayer-action",[l,u]),6);case 6:if(E.watchResponse&&
!_.a("miniplayer_copy_screen_on_activation_killswitch")){y=E.getScreenLayer();var c=_.P9(0),f=woT(0);c&&f&&(_.Yv(c,f,y),y===0&&g$x(void 0,0))}Kbu(E);j5o(E,!0);(n=E.getPlayerElement())==null||n.focusOnPlayer();_.Cl(k)}})};
mp.prototype.updateMiniplayerData=function(l){this.miniplayerData=l;_.yY(this,{data:l})};
_.pvo=function(l){var e,O,E=((e=l.miniplayerData)==null?void 0:(O=e.miniplayerRenderer)==null?void 0:O.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";e=l.watchWhileMode||l.watchPipMode?E&&!_.V2().resolve(_.XZ).isOnWatch():E;_.yY(l,{isDisabled:e});var J,z;O=_.I((J=l.miniplayerData)==null?void 0:(z=J.miniplayerRenderer)==null?void 0:z.minimizedEndpoint,_.Fn);e&&O&&_.V2().resolve(_.pC).openSheet({openPopupActionCommand:{openPopupAction:O}},l.miniplayerEl)};
Kbu=function(l){if(l.watchResponse&&!HJh(l)){var e,O=(e=l.watchResponse.playerResponse)==null?void 0:e.trackingParams;O&&(_.yY(l,{expandVe:_.sL(35989),closeVe:_.sL(34699),readyToResumeCloseVe:_.sL(131070),repositionVe:_.sL(226204),resizeVe:_.sL(226205)}),_.yY(l,{playerVe:_.cf(O)}))}};
IVu=function(l,e){return _.V(function(O){if(O.nextAddress==1)return e.preparePlayer(),_.C(O,e.getPlayerPromise(),2);l.player=O.yieldResult;l.player&&(l.player.addEventListener("onPlayVideo",l.JSC$16522_onPlayerPlayVideo),l.player.addEventListener("onCloseMiniplayer",l.onPlayerCloseMiniplayer),l.player.addEventListener("onExpandMiniplayer",l.onPlayerExpandMiniplayer),l.player.addEventListener("onStateChange",l.onPlayerStateChange));_.Cl(O)})};
_.X=mp.prototype;_.X.JSC$16522_onPlayerPlayVideo=function(l){var e=l.sessionData&&"autonav"in l.sessionData,O;l.sessionData&&l.sessionData.itct&&(O=l.sessionData.itct);var E=l.watchEndpoint;e=E&&e?_.f_2(E,O):_.Vy(l.videoId,l.listId||void 0,O);l.sessionData&&_.bi(_.I(e.commandMetadata,_.V4).url,l.sessionData);jJ6(this,e)};
_.X.onPlayerExpandMiniplayer=function(){_.ab(this)};
_.X.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.X.onPlayerStateChange=function(){if(this.player){var l=this.player.getPlayerState(),e=l===1;_.Om().dispatch(skx(l));_.Om().dispatch(_.P8x(l));_.dQ(this.miniplayerEl,"yt-miniplayer-play-state-changed",[e]);_.n6().isVideoPlaying=e;if(l===0){e=!_.E5.getInstance().isAutoplaySetExplicitly();var O,E,J,z,M,Z,u=(O=this.watchResponse.response)==null?void 0:(E=O.contents)==null?void 0:(J=E.twoColumnWatchNextResults)==null?void 0:(z=J.autoplay)==null?void 0:(M=z.autoplay)==null?void 0:(Z=M.autoplayExplicitChoiceDialogRenderer)==
null?void 0:Z.confirmDialogRenderer;e&&u&&this.player.setAutonavState(1)}l===0&&this.watchWhileMode&&this.deactivate()}};
_.X.onPlaylistNavigate=function(l,e){var O=this,E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1){if(!_.I(e.endpoint,_.ej))return g.return();_.n6().currentEndpoint=e.endpoint;_.dQ(O.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.V2().resolve(_.XZ).isOnWatch()&&(O.watchWhileMode||O.watchPipMode))return g.return();l.stopPropagation();(z=(J=_.I((E=e.endpoint)==null?void 0:E.commandMetadata,_.V4))==null?void 0:J.url)&&e.tempData&&!_.mm.isEmpty(e.tempData)&&_.bi(z,e.tempData);M={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};Z=new Ywi(function(){return O.getPlayerElement()},M,{layer:O.getScreenLayer()});
u=function(w){Z.processChunk({endpoint:e.endpoint,data:w})};
cpP(O);O.miniplayerFetchRequest=Fb0(O,e.endpoint,u);_.b1(g,2);return _.C(g,O.miniplayerFetchRequest,4)}if(g.nextAddress!=2)return d=g.yieldResult,fV4(O,d),_.Q2(g,0);_.u1(g);_.Cl(g)})};
_.X.JSC$16522_onPlaylistDataUpdated=function(){var l=_.V2().resolve(_.U5).getPlaylistData();this.hasPlaylistData=!!l;_.yY(this,{externalPlaylistData:l||{}})};
_.X.close=function(l){if(this.isInitialized())if(l){if(!((this.watchWhileMode||this.watchPipMode)&&_.V2().resolve(_.XZ).isOnWatch()||this.shortsPipMode)){var e;(e=this.getPlayerElement())==null||e.stop()}this.deactivate()}else _.qg().closeMiniplayer(this.miniplayerEl)};
_.X.deactivate=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1){if(!e.isInitialized()||!e.active)return M.return();e.setActive(!1);cpP(e);(O=!!l&&aV4(e,l))&&e.isSingleOptionSurveyActive&&_.Wb(e.miniplayerEl,"yt-show-watch-page-survey",[e.isSingleOptionSurveyActive]);return _.C(M,RSi(e),2)}if(M.nextAddress!=3){j5o(e,!1);e.isReadyToResume=!1;e.watchResponse=void 0;e.updateMiniplayerData(void 0);e.shortsPipMode&&(e.shortsPipMode=!1,_.Om().dispatch(KYq(e.shortsPipMode)),EV0(e.pipController),
(E=e.player)==null||E.setInternalSize(NaN,NaN));e.watchPipMode&&(e.watchPipMode=!1,EV0(e.pipController));(J=e.watchWhileMode)&&_.mHO(e,!1);e.removePlayerListeners();var Z=_.V2().resolve(_.U5);Z.removeEventListener("yt-navigate",_.id(e,e.onPlaylistNavigate));Z.removeEventListener("yt-playlist-data-updated",_.id(e,e.JSC$16522_onPlaylistDataUpdated));_.n6().currentEndpoint=null;_.dQ(e.miniplayerEl,"yt-miniplayer-endpoint-changed");e.playerElement=null;Ydx();return e.shortsPipMode||e.watchPipMode?M.jumpTo(3):
_.C(M,_.gQ(e.miniplayerEl,_.a("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[O,J]),3)}(z=e.player)==null||z.setInternalSize(NaN,NaN);e.player=null;_.Cl(M)})};
var RSi=function(l){var e;return _.V(function(O){e=_.V2().resolve(_.XZ);return l.shortsPipMode?_.C(O,e.movePlayerToShorts(l.playerElement),0):_.C(O,e.movePlayerToWatch(l.playerElement),0)})};
mp.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16522_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
mp.prototype.setActive=function(l){this.active=l;this.isSingleOptionSurveyActive?_.Wb(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Wb(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Om().dispatch(_.oM({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.mHO=function(l,e){l.watchWhileMode=e;_.yY(l,{watchWhile:e})};
j5o=function(l,e){if(!HJh(l))if(l.shortsPipMode||l.watchPipMode){var O;(O=l.player)==null||O.setDocumentPictureInPicture(e)}else{var E;(E=l.player)==null||E.setMinimized(e)}};
HJh=function(l){return l.watchWhileMode&&_.a("kevlar_watch_while_counterfactual")};
_.ab=function(l){var e;return _.V(function(O){switch(O.nextAddress){case 1:if(!l.isInitialized())return O.return();_.b1(O,2);return _.C(O,l.miniplayerFetchRequest,4);case 4:_.Q2(O,3);break;case 2:_.u1(O);case 3:l.watchResponse&&l.miniplayerData&&l.miniplayerData.watchEndpoint?(e={url:l.watchResponse.url,endpoint:l.miniplayerData.watchEndpoint,data:l.watchResponse,miniplayer:!0},_.$u(l.miniplayerEl,"yt-navigate-cache",e)):l.miniplayerData&&l.miniplayerData.watchEndpoint&&_.$u(l.miniplayerEl,"yt-navigate",
{endpoint:l.miniplayerData.watchEndpoint}),_.Cl(O)}})};
jJ6=function(l,e,O){var E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1){if(aV4(l,e))return Z.return();_.n6().currentEndpoint=e;_.dQ(l.miniplayerEl,"yt-miniplayer-endpoint-changed");_.dQ(l.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.n6().isVideoPlaying=!1;E={clientParams:{miniplayer:!0,autoSaveToQueue:!O}};J=new Ywi(function(){return l.getPlayerElement()},E,{layer:l.getScreenLayer(),
parentLayer:0},void 0,l.readyToResumeVe);z=function(u){var d,g,w=Object.assign({},(d=u.playerResponse)==null?void 0:(g=d.playerConfig)==null?void 0:g.playbackStartConfig,{startPaused:!0}),n;O&&((n=u.playerResponse)==null?0:n.playerConfig)&&(u.playerResponse.playerConfig.playbackStartConfig=w);J.processChunk({endpoint:e,data:u})};
cpP(l);l.miniplayerFetchRequest=Fb0(l,e,z);_.b1(Z,2);return _.C(Z,l.miniplayerFetchRequest,4)}if(Z.nextAddress!=2)return M=Z.yieldResult,fV4(l,M),_.Q2(Z,0);_.u1(Z);_.Cl(Z)})};
mp.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var cpP=function(l){l.miniplayerFetchRequest&&(l.miniplayerFetchRequest.cancel&&l.miniplayerFetchRequest.cancel("Active request obsolete"),l.miniplayerFetchRequest=null)},Fb0=function(l,e,O){var E=_.yd.instance,J,z=(J=_.I(e.commandMetadata,_.V4))==null?void 0:J.url,M;
J=!z||_.a("disable_miniplayer_tempdata")?{}:(M=Xe8(z))!=null?M:{};return Sd(E,e,J,window.location.href,"watch",function(Z,u){O(u)},function(Z){return Z!==l.miniplayerFetchRequest})},fV4=function(l,e){var O;
_.V(function(E){if(!e)return E.return();l.watchResponse=e;Kbu(l);yp0(l);O=_.CmA(e.response,e.playerResponse);if(l.isMiniplayerActive()){e.response&&(l.playerElement.watchNextData=e.response);var J=_.mm.getValueByKeys.apply(_.mm,[e].concat(_.kA(QkS)));_.mm.getValueByKeys.apply(_.mm,[e].concat(_.kA(EGq)))&&J&&_.V2().resolve(_.U5).setAutoplayRenderer(J);if(J)if(_.a("kevlar_is_pupi_enabled")){var z,M,Z,u,d,g=((z=e.response)==null?0:(M=z.playerOverlays)==null?0:(Z=M.playerOverlayRenderer)==null?0:(u=Z.autonavToggle)==
null?0:(d=u.autoplaySwitchButtonRenderer)==null?0:d.enabled)?2:1;_.E5.getInstance().setState(g,!1,!1)}else z=inp()?2:1,(g=l.player)==null||g.setAutonavState(z);l.updateMiniplayerData(O);_.pvo(l)}_.Cl(E)})},yp0=function(l){var e,O,E=(e=l.watchResponse)==null?void 0:(O=e.playerResponse)==null?void 0:O.playabilityStatus,J;
e=E==null?void 0:(J=E.miniplayer)==null?void 0:J.miniplayerRenderer;(e==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&e.minimizedEndpoint&&_.ii(l.miniplayerEl,[e.minimizedEndpoint]);_.yY(l,{miniplayerRenderer:e,playabilityStatus:E})};
mp.prototype.openToast=function(l,e){_.yY(this,{toastData:{data:l,label:e}})};
_.yY=function(l,e){var O=l.miniplayerEl,E;for(E in e)O[E]=e[E];(0,l.miniplayerPropSignalMap[1])(e)};
mp.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var l;return this.playerElement?this.playerElement:(l=_.ud(this.miniplayerEl).querySelector("#player-container"))==null?void 0:l.firstElementChild};
mp.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var kuz=function(l,e){e=e===void 0?!1:e;var O,E,J,z,M,Z,u;return _.V(function(d){if(d.nextAddress==1){O=navigator.userActivation.isActive||e;if(!O||!l.pictureInPictureSupported())return d.return(!1);E=Tcu(l);J=E.width;z=E.height;return _.C(d,l.pipController.openWindow({width:J,height:z}),2)}M=d.yieldResult;Z=l.pipController.getWindow();if(!Z||!M)return d.return(!1);Z.document.body.style.overflow="hidden";u=eiL(Z);Jqh(l.pipController,function(){s53(l);u()});
return d.return(!0)})},Tcu=function(l){var e=_.n6().shortsPipActivation,O,E;
l=e?.5625:(E=(O=l.player)==null?void 0:O.getVideoAspectRatio())!=null?E:16/9;O=Math.min(window.innerWidth,window.innerHeight)/2;e=e?0:76;return l>1?new _.uX(O,e+O/l):new _.uX(O*l,e+O)},s53=function(l){var e;
_.V(function(O){e=_.V2().resolve(_.XZ);return e.isOnWatch()&&l.watchPipMode||e.isOnShorts()&&l.shortsPipMode?_.C(O,l.deactivate(),0):l.miniplayerToPipMode?_.C(O,nHz(l),0):l.watchPipMode?_.C(O,_.ab(l),0):O.jumpTo(0)})};
mp.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Ji.Object.defineProperties(mp.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
mp[Jf]=[XxP,aJx];var Guh="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(" "),
BcO="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(" "),Pki="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
UH4="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Yjh=null;var hSO={},Lbu=(hSO.initialized={priority:10,callback:function(l){var e=_.V2();e.addProvider({provide:NpH,useClass:EqF});e.addProvider({provide:_.OR3,useFactory:function(){return new rD6}});
e.addProvider({provide:A0,useValue:_.hT("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});e.addProvider({provide:WQS,useValue:5184E6});e.addProvider({provide:HBx,useValue:_.Gi()});e.addProvider({provide:ULq,useClass:m$1});e.addProvider({provide:Lw,useClass:Lw});e.addProvider({provide:_.CT,useFactory:function(){return jkk.promise}});
e.addProvider({provide:_.cxF,useFactory:function(){return _.He0.promise}});
e.addProvider({provide:HAL,useValue:function(){var Z;return((Z=_.bV())==null?void 0:Z.getPlayer())||null}});
var O={};e.addProvider((O.provide=_.tv,O.useFactory=function(Z,u){return function(){return AS2(Z,u)}},O[Jf]=[A0,
WQS],O));O={};e.addProvider((O.provide=_.Z2,O.useClass=ODq,O[Jf]=[A0,WQS],O));O={};e.addProvider((O.provide=_.WvT,O.useClass=zP0,O[Jf]=[_.Z2],O));e.addProvider({provide:uM,useFactory:_.Om});e.addProvider({provide:iY,useFactory:_.Om});e.addProvider({provide:Ltx,useFactory:_.Om});e.addProvider({provide:oRR,useFactory:_.Om});e.addProvider({provide:_.LQ,useFactory:_.Om});e.addProvider({provide:wS,useValue:_.aM});e.addProvider({provide:SpC,useClass:wbx});e.addProvider({provide:N71,useClass:vXH});e.addProvider({provide:HO,
useClass:HO});e.addProvider({provide:Aw,useClass:Aw});e.addProvider({provide:nQ,useClass:nQ});e.addProvider({provide:k5,useClass:k5});e.addProvider({provide:Gt,useClass:Gt});e.addProvider({provide:g2,useClass:g2});e.addProvider({provide:ZJ,useClass:ZJ});e.addProvider({provide:t6q,useValue:do0});e.addProvider({provide:_.Hu,useFactory:_.yN});e.addProvider({provide:Df,useFactory:_.Kz});O={};e.addProvider((O.provide=Qjx,O.useFactory=function(Z){return function(u){var d=d===void 0?{}:d;var g,w,n=(w=_.I((g=
u.endpoint)==null?void 0:g.commandMetadata,_.V4))==null?void 0:w.rootVe;if(n){var k,y;if(g=u.previousCsn||((y=_.I((k=u.endpoint)==null?void 0:k.commandMetadata,VJi))==null?void 0:y.parentCsn)){var c=c===void 0?{}:c;if(g!==_.P9(c.layer)||n!==woT(c.layer))IgW(g,c.cttAuthInfo,c.layer||0),g$x(g,c.layer||0),k=c.layer||0,_.Yd(ixT(k===void 0?0:k),n);d.parentCsn=g}u.endpoint&&g?ybx(Z,u.endpoint,d):_.on(Z,n,void 0,d);var f;((f=u.response)==null?0:f.trackingParams)&&Z.graftServerVe(u.response.trackingParams);
var P;((P=u.playerResponse)==null?0:P.trackingParams)&&Z.graftServerVe(u.playerResponse.trackingParams);var h;((h=u.reelWatchSequenceResponse)==null?0:h.trackingParams)&&Z.graftServerVe(u.reelWatchSequenceResponse.trackingParams)}}},O[Jf]=[_.Hu],O));
O={};e.addProvider((O.provide=qIx,O.useClass=tlS,O[Jf]=[wS,_.LQ],O));O={};e.addProvider((O.provide=OX,O.useClass=OX,O[Jf]=[_.CT,_.LQ],O));O={};e.addProvider((O.provide=Qx,O.useClass=Qx,O[Jf]=[iY,_.Zh],O));e.addProvider({provide:_.Qwi,useClass:bLH});O={};e.addProvider((O.provide=_.ye,O.useClass=et4,O[Jf]=[_.Qwi],O));e.addProvider({provide:_.pC,useClass:Xy});e.addProvider({provide:_.mKF,useClass:P2P});e.addProvider({provide:_.KC,useClass:EX});O={};e.addProvider((O.provide=_.qw,O.useClass=ztz,O[Jf]=
[_.qw],O));e.addProvider({provide:_.Oq,useClass:UI6});e.addProvider({provide:dH,useClass:dH});e.addProvider({provide:aO,useClass:aO});e.addProvider({provide:Hj,useClass:JE});O={};e.addProvider((O.provide=f8,O.useClass=f8,O[Jf]=[_.pC,Hj],O));_.a("web_enable_feedback_endpoint_resolver")&&(O={},e.addProvider((O.provide=C8,O.useClass=C8,O[Jf]=[uM,Zf],O)),e.addProvider({provide:Zf,useClass:M60}));_.a("web_enable_feedback_endpoint_resolver_batch_2")&&(O={},e.addProvider((O.provide=$O,O.useClass=$O,O[Jf]=
[uM],O)),O={},e.addProvider((O.provide=oO,O.useClass=oO,O[Jf]=[Zf],O)));O={};e.addProvider((O.provide=cj,O.useClass=cj,O[Jf]=[_.KC,Hj],O));O={};e.addProvider((O.provide=yr,O.useClass=yr,O[Jf]=[_.KC],O));O={};e.addProvider((O.provide=F6,O.useClass=F6,O[Jf]=[_.Um,_.ye],O));O={};e.addProvider((O.provide=jr,O.useClass=jr,O[Jf]=[_.Um,_.Hu],O));e.addProvider({provide:Ov,useClass:Ov});O={};e.addProvider((O.provide=rH,O.useClass=rH,O[Jf]=[uM],O));e.addProvider({provide:ka,useClass:ka});e.addProvider({provide:WH,
useClass:WH});O={};e.addProvider((O.provide=m$,O.useClass=m$,O[Jf]=[uM],O));O={};e.addProvider((O.provide=yM,O.useClass=yM,O[Jf]=[_.Um,uM],O));O={};e.addProvider((O.provide=pm,O.useClass=pm,O[Jf]=[uM],O));O={};e.addProvider((O.provide=Km,O.useClass=Km,O[Jf]=[uM],O));O={};e.addProvider((O.provide=p8,O.useClass=p8,O[Jf]=[_.ye],O));O={};e.addProvider((O.provide=b0,O.useClass=b0,O[Jf]=[_.Hu],O));O={};e.addProvider((O.provide=oP,O.useClass=oP,O[Jf]=[l0],O));O={};e.addProvider((O.provide=$a,O.useClass=
$a,O[Jf]=[l0],O));e.addProvider({provide:Z_,useClass:Z_});e.addProvider({provide:u0,useClass:u0});e.addProvider({provide:zC,useClass:zC});O={};e.addProvider((O.provide=RO,O.useClass=RO,O[Jf]=[_.ye,_.Zh],O));e.addProvider({provide:wH,useClass:wH});O={};e.addProvider((O.provide=K8,O.useClass=K8,O[Jf]=[_.Um,_.ye],O));e.addProvider({provide:kO,useClass:kO});O={};e.addProvider((O.provide=vj,O.useClass=vj,O[Jf]=[uM,_.Um,_.qw],O));O={};e.addProvider((O.provide=L8,O.useClass=L8,O[Jf]=[_.Um,_.Zh],O));e.addProvider({provide:Zt6,
useValue:Rzp});e.addProvider({provide:Wj6,useValue:xtt});e.addProvider({provide:t0,useClass:t0});O={};e.addProvider((O.provide=h0,O.useClass=h0,O[Jf]=[uM],O));O={};e.addProvider((O.provide=Nw,O.useClass=Nw,O[Jf]=[_.Oq,_.Zh],O));O={};e.addProvider((O.provide=Wj,O.useClass=Wj,O[Jf]=[_.Zh],O));e.addProvider({provide:Vr,useFactory:function(){return new Vr(_.Om())}});
e.addProvider({provide:wGW,useFactory:_.G_.getInstance});O={};e.addProvider((O.provide=n8,O.useClass=n8,O[Jf]=[A0,wGW,_.Zh],O));e.addProvider({provide:gH,useClass:gH});e.addProvider({provide:J0,useClass:J0});e.addProvider({provide:zy,useClass:zy});e.addProvider({provide:_.X6,useClass:_.X6});e.addProvider({provide:cH,useClass:cH});O={};e.addProvider((O.provide=Pj,O.useClass=Pj,O[Jf]=[iY],O));O={};e.addProvider((O.provide=UZ,O.useClass=UZ,O[Jf]=[_.Zh],O));_.a("web_enable_prefetching_videos_on_home")&&
(e.addProvider({provide:Se,useClass:Se}),e.addProvider({provide:gw,useClass:gw}));O={};e.addProvider((O.provide=HH,O.useClass=HH,O[Jf]=[_.Zh],O));e.addProvider({provide:bM,useClass:bM});O={};e.addProvider((O.provide=Ev,O.useClass=Ev,O[Jf]=[_.Um,_.Zh],O));O={};e.addProvider((O.provide=Mw,O.useClass=Mw,O[Jf]=[_.Zh],O));e.addProvider({provide:i9,useClass:i9});e.addProvider({provide:Gy,useClass:Gy});O={};e.addProvider((O.provide=sZ,O.useClass=sZ,O[Jf]=[iY,_.Zh],O));O={};e.addProvider((O.provide=RP,O.useClass=
RP,O[Jf]=[iY,_.Zh,_.Um],O));O={};e.addProvider((O.provide=TC,O.useClass=TC,O[Jf]=[_.Zh],O));O={};e.addProvider((O.provide=fm,O.useClass=fm,O[Jf]=[_.Zh,_.Um],O));O={};e.addProvider((O.provide=YO,O.useClass=YO,O[Jf]=[_.CT],O));O={};e.addProvider((O.provide=Bj,O.useClass=Bj,O[Jf]=[_.CT],O));e.addProvider({provide:xO,useClass:xO});e.addProvider({provide:eE,useClass:eE});e.addProvider({provide:IP,useClass:IP});e.addProvider({provide:JB,useClass:JB});e.addProvider({provide:Qr,useClass:Qr});e.addProvider({provide:IO,
useClass:IO});e.addProvider({provide:Sr,useClass:Sr});_.a("kevlar_enable_mss_lazy_load")&&e.addProvider({provide:_.DL,useClass:sq3});e.addProvider({provide:_.I3,useClass:b9});e.addProvider({provide:O5,useFactory:function(){return _.SU.getInstance()}});
e.addProvider({provide:YIS,useFactory:RQM});e.addProvider({provide:l0,useFactory:function(){return _.HJ.getInstance()}});
e.addProvider({provide:aTq,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});O={};e.addProvider((O.provide=_.xj,O.useClass=_.xj,O[Jf]=[_.CT,_.Zh,_.Hu,YIS,l0,O5,aTq,wS],O));e.addProvider({provide:_.W5,useClass:zAq});e.addProvider({provide:_.gB1,useClass:dKS});O={};e.addProvider((O.provide=mJ,O.useClass=mJ,O[Jf]=[_.gB1],O));O={};e.addProvider((O.provide=_.l9,O.useFactory=function(Z){return Z.upliftCompletionResolver.promise},O[Jf]=[qIx],O));
O=_.LH("IS_SHELL_LOAD")?"aa":"eocs";var E=_.LH("IS_SHELL_LOAD")?3:2;_.h7().parkOrScheduleJob(function(){Noq()},E,O);
_.h7().parkOrScheduleJob(function(){_.V2().resolve(OX).start()},2,"eocs");
_.h7().parkOrScheduleJob(function(){hPH()},2,"eocs");
_.h7().parkOrScheduleJob(function(){_.V2().resolve(Qx).start()},2,"eocs");
_.a("kevlar_debug_data_app_registration_ks")||OA8();e.addProvider({provide:_.BF,useValue:new xVC(l.root)});e.addProvider({provide:rA,useValue:new GrW});e.addProvider({provide:_.bXR,useValue:new Xgk(l.root)});e.addProvider({provide:_.Pc,useValue:new zD6});e.addProvider({provide:_.KQ,useClass:wi});e.addProvider({provide:XxP,useClass:zo});_.a("kevlar_network_sli_killswitch")||e.addProvider({provide:M0O,useValue:CoC});e.addProvider({provide:QdH,useFactory:y_T});_.a("web_bind_fetch")&&(O={},e.addProvider((O.provide=
xAu,O.useFactory=pzu,O[Jf]=[_.MG(QdH)],O)));_.a("web_bind_parse")&&(O={},e.addProvider((O.provide=lSu,O.useFactory=KUd,O[Jf]=[_.MG(QdH)],O)));_.a("web_bind_window_request")&&(O={},e.addProvider((O.provide=eF3,O.useFactory=jj2,O[Jf]=[_.MG(QdH)],O)));O={};e.addProvider((O.provide=RlC,O.useFactory=r_8,O[Jf]=[_.l9,uM,_.tv],O));O={};e.addProvider((O.provide=fMS,O.useClass=sv,O[Jf]=[RlC],O));e.addProvider({provide:DKH,useClass:qT1});e.addProvider({provide:ju1,useClass:cXq});O=[].concat(_.kA(lV));_.a("web_continuation_response_processing")&&
O.push(_.qj);O.push(s6q);_.a("enable_share_panel_navigation_logging_fix_on_web")&&O.push(_.JfS);e.addProvider({provide:imT,useValue:O});e.addProvider({provide:a6p,useClass:KQq});e.addProvider({provide:oqO,useClass:V03});O={};e.addProvider((O.provide=i5u,O.useClass=gX0,O[Jf]=[iY],O));_.UD.addLowPriorityJob(function(){J1x()});
O={};e.addProvider((O.provide=dl6,O.useFactory=function(Z){return function(u){var d,g=(d=_.I(u.commandMetadata,_.V4))==null?void 0:d.url;if(!g)throw new _.Hk("No URL for PBJ Command",u);g=gZT(g,{pbj:"1"});d=T4V(g,{})||{};d=Object.assign({},d,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.hT("STS").toString()});u=_.ay({command:JSON.stringify(u),session_token:_.hT("XSRF_TOKEN")});return Z.fetch(g,{method:"POST",headers:d,body:u})}},O[Jf]=[oqO],O));
O=[];O.push(e.resolve(ju1));E={};E=(E.client_location=_.G_.getInstance(),E.consistency=_.g8M(),E.entities=e.resolve(N71),E.response_received_commands=e.resolve(a6p),E.store=e.resolve(_.WvT),E.tokens=e.resolve(ju1),E);if(_.a("web_shorts_prefetch_service_enabled")){var J=new bDq(e.resolve(_.Z2));E.shorts_prefetch=J}E.adblock_detection=e.resolve(i5u);e.addProvider({provide:_.xP,useClass:_.xP});J=e.resolve(t6q);var z=[];_.a("PremiumClientSharedConfig__enable_att_context_processor")&&(e.addProvider({provide:c81,
useClass:Kzq}),z.push(e.resolve(c81)));if(_.a("owl_pl_await")){var M={};e.addProvider((M.provide=qpi,M.useFactory=function(Z){return new Lxo(Z)},M[Jf]=[_.xP],M));
z.push(e.resolve(qpi))}I$x(J,e.resolve(oqO),e.resolve(SpC),E,e.resolve(_.Z2),O,z,e.resolve(fMS),e.resolve(DKH));e.addProvider({provide:_.Um,useValue:_.Dw.instance});_.a("start_client_gcf")&&e.addProvider({provide:RD,useValue:IAk()});e.addProvider({provide:DLS,useFactory:function(){return new DLS(_.V2().resolve(_.xP),_.HJ.getInstance())}});
_.h7().parkOrScheduleJob(function(){SI6()},1,"eocs");
O={};e.addProvider((O.provide=ew,O.useClass=ew,O[Jf]=[_.tv,_.Um],O));e.addProvider({provide:_.C2O,useFactory:_.dw.getInstance});_.h7().parkOrScheduleJob(function(){_.V2().resolve(ew).refresh()},0,"eocs");
gRS(do0.watchEndpointMap||{},J.reelWatchEndpointMap||{},l.injector.resolve(_.Um));e.addProvider({provide:R2,useValue:_.yd.instance});_.a("kevlar_signal_collection_killswitch")||(O={},e.addProvider((O.provide=Pfq,O.useClass=Pfq,O[Jf]=[A0,Df],O)),_.h7().parkOrScheduleJob(function(){_.V2().resolve(Pfq).record()},1,"eocs"));
_.a("web_debug_handler_registration_killswitch")||_.h7().parkOrScheduleJob(function(){lJV("DOWNLOAD_PES",f4V);_.a("offline_client_state_export_ks")||lJV("OFFLINE_CLIENT_STATE",Hhp)},0,"eocs");
_.a("kevlar_prevent_polymer_dynamic_font_load")&&_.h7().parkOrScheduleJob(function(){var Z=[_.OP(IS4),_.OP(miO)];Z=_.b(Z);for(var u=Z.next();!u.done;u=Z.next()){u=u.value;var d=document.createElement("link");_.LU(d,u,"stylesheet");document.head.appendChild(d)}},1,"eocs");
O=l.injector.resolve(_.Um);_.HXq.instance=new _.HXq(O);dbx(aR1(new j8q(O)));O={};l.injector.addProvider((O.provide=MY,O.useFactory=function(Z){(Z=Z==null?void 0:Z.getCurrentPage())?Z=Z.visibilityObserver:(Yjh||(Yjh=kHT()),Z=Yjh);return Z},O[Jf]=[_.MG(_.XZ)],O.skipCache=!0,O));
e.addProvider({provide:_.NJ,useClass:mp});e.addProvider({provide:iF,useClass:oCq});l.injector.addProvider({provide:uzq,useValue:QA0});e.addProvider({provide:rE1,useValue:f52});e.addProvider({provide:_.lp,useValue:tht});l=e.addProvider;$AP||($AP=new oV4);l.call(e,{provide:_.MQ,useValue:$AP});e.addProvider({provide:_.OL,useValue:_.hT("HTML_DIR")==="rtl"?"rtl":"ltr"});e.addProvider({provide:DIS,useClass:zl1});e.addProvider({provide:_.A3,useClass:Zx});_.V2().addProvider({provide:Q8q,useValue:_.a("enable_web_delhi_icons")?
BcO.concat(UH4):Guh.concat(Pki)});e.addProvider({provide:_.Cf,useClass:_.Cf});e.addProvider({provide:_.AC3,useValue:new w6P});e.addProvider({provide:DFq,useClass:t2k});e.addProvider({provide:Xq,useClass:Xq});e.addProvider({provide:M0,useClass:M0});l={};e.addProvider((l.provide=Ty,l.useClass=Ty,l[Jf]=[_.Um,_.ye],l));e.addProvider({provide:Fq,useClass:Fq});e.addProvider({provide:W5S,useClass:VMz});e.addProvider({provide:Cm,useClass:Cm});e.addProvider({provide:qQH,useValue:Hsk});e.addProvider({provide:_.T6,
useClass:qAR});_.a("enable_payments_purchase_manager")&&e.addProvider({provide:T7S,useClass:Fz1});e.addProvider({provide:kSC,useFactory:function(){return function(Z){return _.aS4(Z)}}});
e.addProvider({provide:_.yXF,useClass:pZx});l={};e.addProvider((l.provide=jE,l.useClass=jE,l[Jf]=[_.yXF],l));e.addProvider({provide:VM,useClass:VM});e.addProvider({provide:Vz1,useValue:Puq});e.addProvider({provide:kfx,useValue:_.aWf});e.addProvider({provide:uWT,useClass:MMf});e.addProvider({provide:WxF,useValue:AuH});l={};e.addProvider((l.provide=_.VY,l.useClass=dAF,l[Jf]=[WxF],l));_.a("web_ephemeral_actions")&&(l={},e.addProvider((l.provide=_.$Y,l.useClass=ob,l[Jf]=[_.LQ,_.KQ],l)));if(_.a("web_explore_hub_on_hover")||
_.a("web_client_explore_hub_on_hover"))l={},e.addProvider((l.provide=iM,l.useClass=iM,l[Jf]=[_.Um,O5],l));e.addProvider({provide:RqV,useValue:plA});l={};e.addProvider((l.provide=Vl0,l.useClass=Mlk,l[Jf]=[_.Um],l))}},hSO);var tOh={},qjF=(tOh.initialized={priority:10,callback:function(){if(!bRu){Lsu();c_x("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.gL(_.pz(c_x,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.a("log_heartbeat_with_lifecycles")){var l={};xl.instance||(xl.instance=new xl);xl.instance.install((l.document_visible={callback:FU8,priority:10},l.document_hidden={callback:FU8,priority:10},l))}else _.bN(document,"visibilitychange",FU8);bRu=!0}(l=_.P9())&&l!=="UNDEFINED_CSN"&&Whx(l)}},tOh);var vH0={},Nc4=(vH0.initialized={callback:function(l){var e=_.sL(232091),O=l.injector.resolve(_.Hu);_.$w(O,e);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?O5L()&&_.dn(O,e):(l=l.injector.resolve(kSC)("refresh_detector"))&&(l.get("first_tab_load")?_.dn(O,e):l.set("first_tab_load","1"))}},vH0);var rpP={},DHP=(rpP.initialized={priority:10,callback:Z5d},rpP);var Sj3={},Q5f=(Sj3.initialized={priority:0,callback:function(){var l=new mR1,e="other";_.a_?e="chrome":_.n2?e="firefox":_.Lv?e="safari":JW&&(e="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(O){l.increment(_.pv(),O,e)}).catch(function(){l.increment(_.pv(),!1,e)}):l.increment(_.pv(),!1,e)}},Sj3);var xH4={},l9o=(xH4.rendering={priority:8,callback:udx},xH4);var e5i={},OUF=(e5i.rendering={priority:10,callback:I6x},e5i.rendered={callback:kcu},e5i),Eeu={},Jzi=(Eeu.rendering={callback:I6x},Eeu.rendered={callback:kcu},Eeu);var X2f=!1,z54={},bU3=(z54.initialized={priority:10,callback:function(){X2f||(nEp({didPatch:function(l){l.el&&wrx(l.el,l.props)},
didUnmount:function(l){gYx(l.el)}}),X2f=!0)}},z54);var MvH=/^\/shorts\/?$/;_.Yd("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.a("kevlar_enable_mss")){_.OHp(new M41);var VvP=!0,ZUf,pf;VvP=VvP===void 0?!1:VvP;ZUf=ZUf===void 0?!1:ZUf;pf=pf===void 0?{}:pf;var uCH=pf.cssRowKey||"",Cr0=pf.combinedSignature||"";!uCH&&window&&window._F_cssRowKey&&(uCH=window._F_cssRowKey,!Cr0&&window._F_combinedSignature&&(Cr0=window._F_combinedSignature));if(uCH&&typeof window._F_installCss!=="function")throw Error("vd");var oeP=pf.loaderClass||_.tf,Kf=B5x("base-js"),$mO,W73=Uz2("",Kf);$mO=_.VS(W73);var jw=new oeP($mO,uCH,Cr0,VvP,ZUf),dmF=
pf.useCors||Kf&&Kf.hasAttribute("crossorigin"),geF=pf.corsMode||Kf&&Kf.getAttribute("crossorigin");dmF&&(jw.useCors_=dmF);geF&&(jw.corsMode_=geF);pf.urlMaxLength&&(jw.urlMaxLength=pf.urlMaxLength);pf.fetchPriority&&(jw.fetchPriority=pf.fetchPriority);var iUP=fb();iUP.JSC$8090_loader_=jw;iUP.setBatchModeEnabled(!0)}
(function(){var l=document.querySelector("ytd-app");if(!l)throw Error("Ij");l=new Wr({root:l,injector:_.V2()});l.install(qjF);var e={};l.install((e.initialized={priority:10,callback:$Ox},e));_.a("wp_lat_b")&&(e={},l.install((e.initialized={priority:10,callback:function(){kUq()}},e)));
e={};l.install((e.rendered={priority:0,callback:uNg},e));e={};l.install((e.rendered={priority:0,callback:function(){_.UD.addLowPriorityJob(function(){_.bBq>1&&(Jxg(),Vkp())},4E4)}},e));
l.install(Sxo);l.install(Nc4);l.install(bU3);LUT();l.install(XhH);l.install(t0H);l.install(rCH);l.install(Ftk);l.install(GpS);l.install(E40);l.install(Lbu);_.a("kevlar_enable_mss_lazy_load")&&l.install(DHP);l.install(vqP);l.install(Q5f);if(!_.LH("IS_SHELL_LOAD")||_.a("kevlar_fetch_initial_data_promise_client")||_.a("sw_nav_preload_pbj")){var O=_.A5(window.location.href);e=O&&O==="/watch";O=O&&O.match(MvH);e?l.install(Jzi):O?l.install(l9o):l.install(OUF)}else l.install(Yxf);l.install(xi4);_.a("web_enable_prefetching_videos_on_home")&&
l.install(V3C);_.a("start_client_gcf")&&l.install(zFu);l.install(p7q);(new yDR).increment("INSTALLED");l.install(bPH);l.install(B14);l.transition("initialized");WUx()})();
_.Wc=[[["dXRnMG5rZWtpbmQjZnFmanM=","NThiNmpydmFsdWUjbmFqendq"],"X0tJTkRfUEFVU0UjeTlyMWZ1M3J2dHE2QURfUExBQ0VNRU5U"]];_.$1=["YWxDYWxsYmFja3MjNGQ4Mm5tbTZ4ZzZrZ2xvYg==","aXR5RGV0ZWN0ZWQjdXhvZzY3Ymw4YWVib25BYm5vcm1hbA==","M2twb25BZFNraXAjeWJpNGZ2YWtk","ZXJfcmVzcG9uc2UjOXNtcjI0eWRwOTNpcmF3X3BsYXk=","cmluZ0NvbnRlbnQjM2ZhM2JrNmRpZnVjcmVuZGU="];_.rn="YWxDYWxsYmFja3MjNGQ4Mm5tbTZ4ZzZrZ2xvYg== aXR5RGV0ZWN0ZWQjdXhvZzY3Ymw4YWVib25BYm5vcm1hbA== M2twb25BZFNraXAjeWJpNGZ2YWtk ZXJfcmVzcG9uc2UjOXNtcjI0eWRwOTNpcmF3X3BsYXk= cGxlX3NraXBzX2tzI3QxYzhscWEwODNrd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRp ejFpYWJfc2FfZWYjOGwybnQwYnZj cmluZ0NvbnRlbnQjM2ZhM2JrNmRpZnVjcmVuZGU=".split(" ");
_._ModuleManager_initialize=function(l,e){if(!_.HD){if(!_.F8)return;_.OHp(_.F8())}_.HD.setAllModuleInfoString(l,e)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syc','sya','sy6','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.ff=function(l,e,O,E,J){var z={};e&&(z[e]=O);E?z.errorType=E:J&&(z.errorReason=J);_.Bm(l,z);_.Pm()};
_.Rb=function(l){var e=_.h7();return _.ZCx(e,l,1)};
_.RB({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 l=this.query;l&&(this.full||l[0]==="("||(l="("+l+")"),this._mq=window.matchMedia(l),this._add(),this.queryHandler(this._mq))},
queryHandler:function(l){this._setQueryMatches(l.matches)}});var K7o;var jHu;var HUu=function(){};
_.X=HUu.prototype;_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._focusedChanged=function(){};
_.X._createRipple=function(){};
_.X.registered=function(){};
_.X._invalidChanged=function(){};
_.X.hasValidator=function(){};
_.X.validate=function(){};
_.X._getValidity=function(){};
_.X._requiredChanged=function(){};
_.X._valueChanged=function(){};
_.X._checkedChanged=function(){};
_.X._buttonStateChanged=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
HUu=_.RB({is:"tp-yt-paper-radio-button",_template:function(){if(jHu!==void 0)return jHu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;K7o===void 0&&(K7o=document.createElement("template"));var E=K7o;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return jHu=l},
behaviors:[_.Ngx],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(){_.OK(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var l=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),e=Math.floor(3*l);e%2!==l%2&&e++;this.updateStyles({"--paper-radio-button-ink-size":e+"px"})}})}});var czz;var F7o;_.RB({_template:function(){if(F7o!==void 0)return F7o;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;czz===void 0&&(czz=document.createElement("template"));var E=czz;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return F7o=l},
is:"tp-yt-paper-radio-group",behaviors:[_.b4R],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(l){var e=this._valueToItem(l);if(!e||!e.hasAttribute("disabled")){if(this.selected){e=this._valueToItem(this.selected);if(this.selected==l)if(this.allowEmptySelection)l="";else{e&&(e.checked=!0);return}e&&
(e.checked=!1)}_.Sy.select.apply(this,[l]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(l){this._focusPrevious();l.preventDefault();this._activateFocusedItem()},
_onDownKey:function(l){this._focusNext();l.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(l){_.zcF._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(l){_.zcF._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Sy._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Ta._resetTabindices.apply(this,arguments);this.items.forEach(function(l){l.removeAttribute("aria-selected")},this)}});var f9u;_.Y7("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var To=function(){return _.B.apply(this,arguments)||this};
_.m(To,_.B);_.X=To.prototype;_.X.computeHasPrimaryIcon=function(l){return!(!l.icon&&!l.thumbnail)};
_.X.computeHasSecondary=function(l){return!(!l.secondaryIcon&&!l.secondaryNotificationText)};
_.X.computeHideSecondaryString=function(l){return!_.a("disable_hide_empty_secondary_string")&&!l.secondaryNotificationText};
_.X.computeCompactLinkStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeHasFitHeight=function(l){return l==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.X.isActiveEndpoint=function(l){return(l=this.get("commandMetadata.webCommandMetadata.url",l))?_.A5(window.location.href)!=="/account_transfer_channel"&&_.A5(window.location.href)!=="/gaia_link"&&_.A5(window.location.href)!=="/channel_switcher"||l!=="/account"?_.A5(window.location.href)===l:!0:!1};
_.X.onTap=function(){var l;((l=this.data)==null?0:l.serviceEndpoint)&&_.ii(this.hostElement,[this.data.serviceEndpoint])};
To.prototype.onTap=To.prototype.onTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],To.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.q("design:type",Boolean)],To.prototype,"active",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.q("design:type",String)],To.prototype,"compactLinkStyle",void 0);
_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",Object)],To.prototype,"icon",void 0);_.L([_.T({computed:"computeIcon_(data.secondaryIcon)"}),_.q("design:type",Object)],To.prototype,"secondaryIcon",void 0);_.L([_.T({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],To.prototype,"hasSecondary",void 0);_.L([_.T({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],To.prototype,"hideSecondaryString",void 0);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],To.prototype,"onTap",null);_.L([_.U({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],To);
_.Y(To,"ytd-compact-link-renderer",function(){if(f9u!==void 0)return f9u;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return f9u=l},{mode:1});var R5C;_.Y7("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var sX=function(){var l=_.B.apply(this,arguments)||this;l.role="link";l.tabindex="0";l.actionMap=_.a("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 l};
_.m(sX,_.B);_.X=sX.prototype;_.X.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.R4()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.X.getCurrentTheme=function(){return _.T_()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.R4()};
_.X.onThemeSelected=function(l,e){var O=l||e?l:_.f0(),E=(O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.$eM(_.A5(window.location.href));_.jj(0,165,l);_.jj(0,174,e);this.prefs.save();E&&_.Wb(this.hostElement,"yt-dark-mode-toggled-action",[O]);_.Wb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.onTap=function(){this.data.serviceEndpoint&&_.ii(this.hostElement,[this.data.serviceEndpoint])};
_.X.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.X.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.X.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
sX.prototype.onTap=sX.prototype.onTap;sX.prototype.dataChanged=sX.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],sX.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.lS),_.q("design:type",Object)],sX.prototype,"paperItemBehaviors",void 0);_.L([_.T(),_.q("design:type",Object)],sX.prototype,"data",void 0);_.L([_.T({value:function(){return _.Kz()}}),
_.q("design:type",_.b_)],sX.prototype,"prefs",void 0);_.L([_.T(),_.q("design:type",Object)],sX.prototype,"label",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],sX.prototype,"role",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],sX.prototype,"tabindex",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sX.prototype,"dataChanged",null);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sX.prototype,"onTap",null);_.L([_.U({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],sX);
_.Y(sX,"ytd-toggle-theme-compact-link-renderer",function(){if(R5C!==void 0)return R5C;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return R5C=l},{mode:1});
}catch(e){_._DumpException(e)}
try{
var sHF,G1H;_.Go=function(l){return!!l.getOptions("captions")};
_.TGF=function(l){return(l=l.getOption("captions","track"))?!!l.displayName:!1};
_.Br=function(l,e){_.LN(e,l,function(){return sHF[e]},function(O){sHF[e]=O;
if(!_.a("mweb_player_ve_show_ks")){var E=_.P9(0);E&&O&&_.Q4(E,O)}})};
_.Pr=function(l){(l=sHF[l])&&_.dn(_.yN(),l)};
sHF={};var BG4;/*

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
*/
_.RB({_template:function(){if(BG4!==void 0)return BG4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;G1H===void 0&&(G1H=document.createElement("template"));var E=G1H;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return BG4=l},
is:"tp-yt-paper-checkbox",behaviors:[_.Ngx],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.OK(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var l=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),e="px",O=l.match(/[A-Za-z]+$/);O!==null&&(e=O[0]);l=parseFloat(l);O=8/3*l;e==="px"&&(O=Math.floor(O),O%2!==l%2&&O++);this.updateStyles({"--paper-checkbox-ink-size":O+
e})}})},
_computeCheckboxClass:function(l,e){var O="";l&&(O+="checked ");e&&(O+="invalid");return O},
_computeCheckmarkClass:function(l){return l?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.qLx._createRipple.call(this)}});var Pru=new _.v("radioButtonSurveyOptionRenderer"),Umz=new _.v("checkboxSurveyOptionRenderer");var YNh;var h5C;var L7u=0,UX=function(){var l=_.B.call(this)||this;l.selected=!1;l.isOverlay=!1;l.inputId="toggle-option-"+L7u;L7u++;return l};
_.m(UX,_.B);UX.prototype.onTap=function(){_.$u(this.hostElement,"ytd-toggle-option-clicked")};
_.L([_.T(),_.q("design:type",String)],UX.prototype,"label",void 0);_.L([_.T(),_.q("design:type",String)],UX.prototype,"inputId",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],UX.prototype,"selected",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],UX.prototype,"isOverlay",void 0);_.L([_.U({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.q("design:paramtypes",[])],UX);
_.Y(UX,"ytd-toggle-option-renderer",function(){if(h5C!==void 0)return h5C;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return h5C=l},{mode:1});var YY=function(){var l=_.B.apply(this,arguments)||this;l.isToggleOption=!1;l.isOverlay=!1;return l};
_.m(YY,_.B);YY.prototype.onTap=function(l){l.preventDefault();this.data&&(l=!this.data.checked,this.set("data.checked",l),_.$u(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:l,value:this.data.value}))};
_.Ji.Object.defineProperties(YY.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
YY.prototype.onTap=YY.prototype.onTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],YY.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],YY.prototype,"isToggleOption",void 0);_.L([_.T(),_.q("design:type",Object)],YY.prototype,"isOverlay",void 0);_.L([_.R("data.responseText"),_.q("design:type",String),_.q("design:paramtypes",[])],YY.prototype,"label",null);
_.L([_.wP("ytd-toggle-option-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],YY.prototype,"onTap",null);_.L([_.U({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],YY);
_.Y(YY,"ytd-checkbox-survey-option-renderer",function(){if(YNh!==void 0)return YNh;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YNh=l},{mode:1});var tvu;var qNh;var hE=function(){var l=_.B.apply(this,arguments)||this;l.checked=!1;l.isToggleOption=!1;return l};
_.m(hE,_.B);hE.prototype.onTap=function(){this.data&&(this.checked?_.Wb(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Wb(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
hE.prototype.onTap=hE.prototype.onTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hE.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],hE.prototype,"checked",void 0);_.L([_.T(),_.q("design:type",Object)],hE.prototype,"isToggleOption",void 0);_.L([_.wP("ytd-toggle-option-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],hE.prototype,"onTap",null);
_.L([_.U({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],hE);
_.Y(hE,"ytd-radio-button-survey-option-renderer",function(){if(qNh!==void 0)return qNh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qNh=l},{mode:1});var Lf=function(){var l=_.B.apply(this,arguments)||this;l.disableAnimation=!1;l.isToggleOption=!0;l.followUpSurveyCommand=null;l.selectedRatingEndpoint=null;l.isSlimlineSurveyFollowUp=!1;l.isShortsStyle=!1;l.styleOverrideAttribute=!0;l.isDarkMode=!1;l.isSubmitted=!1;l.roundedContainer=!0;l.improveShortsResponseRate=_.a("web_improve_shorts_response_rate");l.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 l};
_.m(Lf,_.B);_.X=Lf.prototype;
_.X.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"}}}}};
_.X.attached=function(){var l=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(O){var E;if((E=O[0])!=null&&E.isIntersecting){_.IX().reportShown(l.hostElement);var J;(J=l.intersectionObserver)==null||J.unobserve(l.hostElement)}},{rootMargin:"0px",
threshold:.6});var e;(e=this.intersectionObserver)==null||e.observe(this.hostElement)};
_.X.onDarkModeToggledAction=function(l){this.isDarkMode=l};
_.X.dataChanged=function(){var l;if(((l=this.data)==null?void 0:l.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var e;((e=this.data)==null?void 0:e.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var O,E,J,z;this.darkColorPalette=(O=this.data)==null?void 0:(E=O.inlineContent)==null?void 0:(J=E.compactVideoRenderer)==null?void 0:(z=J.thumbnail)==null?
void 0:z.darkColorPalette;var M,Z,u,d;this.lightColorPalette=(M=this.data)==null?void 0:(Z=M.inlineContent)==null?void 0:(u=Z.compactVideoRenderer)==null?void 0:(d=u.thumbnail)==null?void 0:d.lightColorPalette;var g,w;if(((g=this.data)==null?0:(w=g.inlineContent)==null?0:w.compactVideoRenderer)&&this.isShortsStyle){var n,k,y,c;l=_.Cd((n=this.data)==null?void 0:(k=n.inlineContent)==null?void 0:(y=k.compactVideoRenderer)==null?void 0:(c=y.thumbnail)==null?void 0:c.thumbnails);_.dP(this.hostElement,
{"--yt-background-url":"url("+l+")"})}};
_.X.handleRequestCompletion=function(){this.hostElement.hidden&&_.$u(this.hostElement,"yt-dismissible-item-dismissed")};
_.X.onPopupClosed=function(l){var e;((e=l.detail)==null?void 0:e.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Wb(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.X.handleInlineSurveyRatingSelect=function(l,e){var O=this;this.selectedRatingEndpoint=l;this.followUpSurveyCommand=e;this.expanded=!!l;this.getOptionRenderers().forEach(function(E,J){O.notifyPath("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked");O.set("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),l=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Wb(this.hostElement,"yt-reel-non-video-content-dismissal-command",[l]))};
_.X.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Wb(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var l,e=(l=this.data)==null?void 0:l.dismissalEndpoint;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.X.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Wb(this.hostElement,"yt-close-popup-action"))};
_.X.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var l=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{l=this.getOptionRenderers().filter(function(E){return E.checked});
if(l.length===0)return;l=l.map(function(E){return E.responseEndpoint})}var e=[];
l.forEach(function(E,J){J!==0&&(E=_.I(E,_.Yx))&&E.feedbackToken&&e.push(E.feedbackToken)});
if(l=l[0]){var O={};e.length>0&&(O.extra_feedback_tokens=e);this.ytComponentBehavior.resolveCommand(l,{form:O})}}};
_.X.getOptionRenderers=function(){var l=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(e){l.isSingleSelect=!!_.I(e,Pru);return l.isSingleSelect?_.I(e,Pru):_.I(e,Umz)}):[]};
_.X.handleInlineSurveyOptionSelect=function(l){l=this.optionSelector.indexOf(l);l!==-1&&this.optionSelector.selectIndex(l)};
_.X.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.X.maybeGetBackgroundColor=function(l){return this.isDarkMode?l.section2Color:l.section3Color};
_.X.colorPaletteChanged=function(){var l=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;l=l&&this.maybeGetBackgroundColor(l);this.dismissibleEl.style.backgroundColor=!l||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.t$(l)};
_.Ji.Object.defineProperties(Lf.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Lf.prototype.colorPaletteChanged=Lf.prototype.colorPaletteChanged;Lf.prototype.onPopupClosed=Lf.prototype.onPopupClosed;Lf.prototype.handleRequestCompletion=Lf.prototype.handleRequestCompletion;Lf.prototype.dataChanged=Lf.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Lf.prototype,"actionHandlerBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Lf.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Lf.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.aB("#follow-up-survey-options"),_.q("design:type",Object)],Lf.prototype,"optionSelector",void 0);_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"disableAnimation",void 0);_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"isToggleOption",void 0);_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"followUpSurveyCommand",void 0);_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"selectedRatingEndpoint",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Lf.prototype,"expanded",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lf.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lf.prototype,"isShortsStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lf.prototype,"styleOverrideAttribute",void 0);_.L([_.T(),_.q("design:type",Boolean)],Lf.prototype,"isSingleSelect",void 0);_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"isDarkMode",void 0);
_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"lightColorPalette",void 0);_.L([_.T(),_.q("design:type",Object)],Lf.prototype,"darkColorPalette",void 0);_.L([_.R("selectedRatingEndpoint","isShortsStyle"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Lf.prototype,"isOptionSelected",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lf.prototype,"roundedContainer",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lf.prototype,"improveShortsResponseRate",void 0);_.L([_.aB("#dismissible"),_.q("design:type",HTMLElement)],Lf.prototype,"dismissibleEl",void 0);_.L([_.aB("#dismiss-button yt-icon-button"),_.q("design:type",HTMLElement)],Lf.prototype,"dismissButtonEl",void 0);_.L([_.aB("#inline-survey-header yt-icon-button"),_.q("design:type",HTMLElement)],Lf.prototype,"inlineHeaderDismissButtonEl",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lf.prototype,"dataChanged",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lf.prototype,"handleRequestCompletion",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Lf.prototype,"onPopupClosed",null);
_.L([_.AA("darkColorPalette","lightColorPalette","isDarkMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lf.prototype,"colorPaletteChanged",null);_.L([_.U({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Lf);
_.Y(Lf,"ytd-inline-survey-renderer",function(){if(tvu!==void 0)return tvu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tvu=l},{mode:1});var veo=["en-CA","en","es-MX","fr-CA"];_.NGu=_.XO(function(l){var e=_.J3(l,{isOverlay:!1,isModern:!1}),O=e.captionIconType,E=e.onClick;l=e.ariaLabel;var J=e.ariaPressed,z=e.isOverlay,M=e.isModern;e=_.e4("button",function(d){_.Br(d,127299)});
var Z=_.pd(function(d){_.Pr(127299);E==null||E(d);return!1}),u={};
return _.W("ytm-closed-captioning-button",{class:_.ax("ytmClosedCaptioningButtonHost",(u.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return O()===-1&&z()},u.ytmClosedCaptioningButtonIconDisabled=function(){return O()===-1&&!z()},u))},_.W("button",{el:e,
class:"ytmClosedCaptioningButtonButton",title:l,"aria-label":l,"aria-pressed":J,"on:click":Z},_.W(_.cF,{icon:function(){var d="";var g=M()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var w=_.Kz().get("hl");g=!w||veo.includes(w)?g:"SUBTITLES";w=O();switch(w){case -1:case 0:d=g;break;case 1:d=g+"_FILLED";break;default:_.VC(w)}return d}})))},"$e");
_.NGu.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.SX=function(l){return function(e,O){var E=l||O.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(e,O,{get:function(){var J;return this.$?this.$[E]:(J=_.n1(this))==null?void 0:J.querySelector("#"+E)},
enumerable:!0,configurable:!0})}};_.QL=function(l){l=l===void 0?!1:l;_.y6.call(this);this.pubSub_=new _.k6(l);_.oQ(this,this.pubSub_)};
_.o_(_.QL,_.y6);_.QL.prototype.subscribe=function(l,e,O){return this.isDisposed()?0:this.pubSub_.subscribe(l,e,O)};
_.QL.prototype.unsubscribe=function(l,e,O){return this.isDisposed()?!1:this.pubSub_.unsubscribe(l,e,O)};
_.QL.prototype.unsubscribeByKey=function(l){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(l)};
_.QL.prototype.publish=function(l,e){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var gCu=function(){_.ff("ypcRedeemFlowStarted")},oV=function(l){_.ff("ypcRedeemFlowFailed",void 0,void 0,void 0,l)},iAu=function(l,e,O){e&&O&&(l.videos.forEach(function(E){E.videoId===e&&(E.itemId=O)}),l.recommendedVideos.forEach(function(E){E.videoId===e&&(E.itemId=O)}))};var wTz;var A9H;/*

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
*/
_.RB({_template:function(){if(A9H!==void 0)return A9H;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;wTz===void 0&&(wTz=document.createElement("template"));var E=wTz;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return A9H=l},
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(l,e){var O=this._resolveSrc(l);O!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",l===""||e?this._setLoading(!1):(this._resolvedSrc=O,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 l=this.$.sizedImgDiv.style,e=this.$.placeholder.style;l.backgroundSize=e.backgroundSize=this.sizing;l.backgroundPosition=e.backgroundPosition=this.sizing?this.position:"";l.backgroundRepeat=e.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(l){l=_.om(l,this.$.baseURIAnchor.href);l.length>=2&&l[0]==="/"&&l[1]!=="/"&&(l=(location.origin||location.protocol+"//"+location.host)+l);return l}});var nCu;var aJu;_.RB({_template:function(){if(aJu!==void 0)return aJu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;nCu===void 0&&(nCu=document.createElement("template"));var E=nCu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return aJu=l},
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(l){return l?"false":"true"},
_headingChanged:function(l){var e=this.getAttribute("heading"),O=this.getAttribute("aria-label");typeof O==="string"&&O!==e||this.setAttribute("aria-label",l)},
_computeHeadingClass:function(l){return l?" over-image":""},
_computeAnimated:function(l){return l}});var kYC=new _.v("addRendererToItemSectionAction");var IJ3;var $f=function(){return _.B.apply(this,arguments)||this};
_.m($f,_.B);$f.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$f.prototype,"rendererBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],$f.prototype,"dismissibleItemBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$f.prototype,"rendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$f.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],$f);
_.Y($f,"ytd-comment-history-entry-renderer",function(){if(IJ3!==void 0)return IJ3;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return IJ3=l},{mode:1});var mq4;_.Y7("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Y7("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var WE=function(){return _.B.apply(this,arguments)||this};
_.m(WE,_.B);_.X=WE.prototype;_.X.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.onKeyUp=function(l){if(l.keyCode===13)this.onTap()};
_.X.onTap=function(){this.data.recordClickEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var l=this.data.navigationEndpoint;l&&_.I(l,_.GW)&&_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})};
_.X.readChanged=function(){var l;_.oB(this.hostElement,"unread",!((l=this.data)==null?0:l.read))};
_.X.dataChanged=function(){this.data&&_.oB(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.X.computeThumbnailSize=function(){var l;return((l=this.data)==null?0:l.highPriorityNotification)?32:48};
_.X.getEndpointURL=function(l){return l&&!_.I(l,_.GW)?this.componentBehavior.computeHref_(l):null};
_.X.getEndpointData=function(l){return l&&!_.I(l,_.GW)?l:null};
WE.prototype.computeThumbnailSize=WE.prototype.computeThumbnailSize;WE.prototype.dataChanged=WE.prototype.dataChanged;WE.prototype.readChanged=WE.prototype.readChanged;WE.prototype.onKeyUp=WE.prototype.onKeyUp;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],WE.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WE.prototype,"data",void 0);_.L([_.T({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.q("design:type",Number)],WE.prototype,"thumbnailSize",void 0);_.L([_.wP("keyup"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],WE.prototype,"onKeyUp",null);
_.L([_.AA("data.read"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WE.prototype,"readChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WE.prototype,"dataChanged",null);_.L([_.AA("data.highPriorityNotification"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WE.prototype,"computeThumbnailSize",null);
_.L([_.U({is:"ytd-notification-renderer",disableElementRegistration:!0})],WE);
_.Y(WE,"ytd-notification-renderer",function(){if(mq4!==void 0)return mq4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return mq4=l},{mode:1});var y9P;var dN=function(){return _.B.apply(this,arguments)||this};
_.m(dN,_.B);dN.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"}}}};
dN.prototype.computeActionButtonClass=function(l){return!l.actionButtons||l.actionButtons.length<=1?"single-button":l.description?"vertical-buttons":"horizontal-buttons"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dN.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],dN);
_.Y(dN,"ytd-playlist-show-metadata-renderer",function(){if(y9P!==void 0)return y9P;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return y9P=l},{mode:1});var pTF;_.Y7("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var gN=function(){return _.B.apply(this,arguments)||this};
_.m(gN,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gN.prototype,"data",void 0);_.L([_.U({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],gN);
_.Y(gN,"ytd-purchase-item-renderer",function(){if(pTF!==void 0)return pTF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return pTF=l},{mode:1});var KZu;var jNC={};jNC.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(l){if(l)return l.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(l){if(l==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Y7("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var im=function(){return _.B.apply(this,arguments)||this};
_.m(im,_.B);im.prototype.onYtNavigate=function(l){var e=this.openPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);e&&(l.stopPropagation(),this.openPopupBehavior.openPopup(e))};
im.prototype.onYtNavigate=im.prototype.onYtNavigate;_.L([_.K(jNC.YtSimpleTextSectionBehavior),_.q("design:type",Object)],im.prototype,"ytSimpleTextSectionBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],im.prototype,"openPopupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],im.prototype,"data",void 0);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],im.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],im);
_.Y(im,"ytd-simple-text-section-renderer",function(){if(KZu!==void 0)return KZu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return KZu=l},{mode:1});var HAP;_.Y7("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var wN=function(){return _.B.apply(this,arguments)||this};
_.m(wN,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wN.prototype,"data",void 0);_.L([_.U({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],wN);
_.Y(wN,"ytd-unlimited-page-feature-info-renderer",function(){if(HAP!==void 0)return HAP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return HAP=l},{mode:1});var c94;var FZO;var AR=function(){return _.B.apply(this,arguments)||this};
_.m(AR,_.B);AR.prototype.dataChanged=function(){if(this.data){var l=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);l&&(l=_.up(l,screen.width),this.hostElement.style.backgroundImage="url("+l+")")}};
AR.prototype.dataChanged=AR.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AR.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AR.prototype,"dataChanged",null);_.L([_.U({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],AR);
_.Y(AR,"ytd-post-redemption-section-renderer",function(){if(FZO!==void 0)return FZO;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return FZO=l},{mode:1});var fJ3;var nM=function(){return _.B.apply(this,arguments)||this};
_.m(nM,_.B);nM.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nM.prototype,"data",void 0);_.L([_.U({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],nM);
_.Y(nM,"ytd-ypc-post-redemption-renderer",function(){if(fJ3!==void 0)return fJ3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return fJ3=l},{mode:1});_.Y7("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var aV=function(){var l=_.B.apply(this,arguments)||this;l.MIN_CODE_LENGTH=12;l.MAX_CODE_LENGTH=24;return l};
_.m(aV,_.B);_.X=aV.prototype;_.X.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.X.created=function(){this.riskService=new _.l48;this.loadPaymentThenable=_.OhT(_.hT("YPC_MB_URL"))};
_.X.ready=function(){var l=this;this.code.addEventListener("keypress",function(e){l.onCodeInputKeypress(e)})};
_.X.dataChanged=function(){var l=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(e){e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,O.type==="attributes"&&O.attributeName==="dark"&&l.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.X.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var l=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+l+")")}};
_.X.computeRedeemButton=function(l){(l=this.get("redeemButton.buttonRenderer",l))&&(l=Object.assign({},l,{serviceEndpoint:void 0}));return l};
_.X.onRedeemButtonTap=function(l){l.stopPropagation();gCu();this.redeemCode()};
_.X.redeemCode=function(){var l=this;this.isLoading=!0;var e=this.riskService.init();_.co([e,this.loadPaymentThenable]).then(function(){var O=l.data.redeemButton.buttonRenderer.serviceEndpoint,E=_.eQ8(),J=payments.business.integration.ClientTokenFactory.createClientToken(_.I(O,_.b66).countryCode,E);E={c:l.code.value.trim(),rd:window.btoa(E),ctk:J};O&&_.V2().resolve(_.Zh).resolveCommand(O,{form:Object.assign({},E,{element:l.hostElement})})},function(){l.showGenericError();
oV("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.tT(Error("Ul"))})};
_.X.onYtServiceRequestCompleted=function(l){l.stopPropagation();this.isLoading=!1;var e,O;this.errorMessage=(e=l.detail)==null?void 0:(O=e.data)==null?void 0:O.errorMessage;var E,J;this.postRedemptionRenderer=(E=l.detail)==null?void 0:(J=E.data)==null?void 0:J.renderer;var z,M;if(l=(z=l.detail)==null?void 0:(M=z.data)==null?void 0:M.redirectEndpoint)this.isLoading=!0,_.$u(this.hostElement,"yt-navigate",{endpoint:l});this.errorMessage?oV("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
l)&&_.ff("ypcRedeemFlowSucceeded")};
_.X.onYtServiceRequestError=function(l){l.stopPropagation();this.isLoading=!1;if(l=this.get("detail.error.message",l))this.errorMessage=_.xp(l);oV("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.X.onInvokeInstrumentManagerActionCompleted=function(l){l.stopPropagation();this.redeemCode()};
_.X.onInvokeInstrumentManagerActionError=function(l){l.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",l)){case "instrumentManagerLoadError":this.showGenericError();oV("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();oV("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.ff("ypcRedeemFlowCancelled")}};
_.X.onInput=function(){var l=this;_.rP(this,"onInput",function(){var e=l.code.value.trim();l.redeemButtonDisabled=e.length<l.MIN_CODE_LENGTH||e.length>l.MAX_CODE_LENGTH},200)};
_.X.onCodeInputKeypress=function(l){l.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(gCu(),this.redeemCode())};
_.X.computeImageUrl=function(l){return l?_.up(l.thumbnails,600):null};
_.X.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
aV.prototype.onInvokeInstrumentManagerActionError=aV.prototype.onInvokeInstrumentManagerActionError;aV.prototype.onInvokeInstrumentManagerActionCompleted=aV.prototype.onInvokeInstrumentManagerActionCompleted;aV.prototype.onYtServiceRequestError=aV.prototype.onYtServiceRequestError;aV.prototype.onYtServiceRequestCompleted=aV.prototype.onYtServiceRequestCompleted;aV.prototype.dataChanged=aV.prototype.dataChanged;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],aV.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],aV.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Boolean)],aV.prototype,"redeemButtonDisabled",void 0);
_.L([_.T(),_.q("design:type",Object)],aV.prototype,"errorMessage",void 0);_.L([_.T(),_.q("design:type",Object)],aV.prototype,"postRedemptionRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],aV.prototype,"observer",void 0);_.L([_.aB("#code"),_.q("design:type",HTMLInputElement)],aV.prototype,"code",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aV.prototype,"dataChanged",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],aV.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],aV.prototype,"onYtServiceRequestError",null);
_.L([_.wP("yt-invoke-instrument-manager-action-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],aV.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.L([_.wP("yt-invoke-instrument-manager-action-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],aV.prototype,"onInvokeInstrumentManagerActionError",null);_.L([_.U({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],aV);
_.Y(aV,"ytd-redeem-code-renderer",function(){if(c94!==void 0)return c94;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return c94=l},{mode:1});var RAH;_.Y7("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var kf=function(){var l=_.B.apply(this,arguments)||this;l.businessEmailDisplayState="HIDE_SECTION";return l};
_.m(kf,_.B);_.X=kf.prototype;_.X.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}}}}}};
_.X.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"};
_.X.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.X.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Nd("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.X.onYtServiceRequestCompleted=function(l){var e;if((e=l.detail.data)==null?0:e.businessEmail)this.businessEmail=l.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var O;if((O=l.detail.data)==null?0:O.errorMessage)this.businessEmailErrorMessage=l.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.X.computeEmailHref=function(l){return"mailto:"+l};
_.X.computeSafeUrl=function(l){if(l)return _.nU(l)};
_.X.onBusinessEmailCaptchaSubmit=function(){var l;(l=this.data)!=null&&l.onBusinessEmailRevealClickCommand&&(l=this.JSC$19121_captchaTextarea.value)&&(l={recaptcha_response_token:l,channel_id:this.data.channelId},_.V2().resolve(_.Zh).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},l,{element:this.hostElement})}))};
_.X.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Ji.Object.defineProperties(kf.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 l,e;return!((l=this.data)==null||!l.primaryLinks)&&!((e=this.data)==null?0:e.links)&&this.data.primaryLinks.every(function(O){return O.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.primaryLinks)&&!((e=this.data)==null?0:e.links)&&!this.shouldShowNewLinks}}});
kf.prototype.onYtServiceRequestCompleted=kf.prototype.onYtServiceRequestCompleted;kf.prototype.dataChanged=kf.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],kf.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.aB("#g-recaptcha-response"),_.q("design:type",HTMLTextAreaElement)],kf.prototype,"JSC$19121_captchaTextarea",void 0);_.L([_.T(),_.q("design:type",Object)],kf.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],kf.prototype,"businessEmailDisplayState",void 0);_.L([_.T(),_.q("design:type",String)],kf.prototype,"businessEmail",void 0);_.L([_.T(),_.q("design:type",String)],kf.prototype,"businessEmailErrorMessage",void 0);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kf.prototype,"hideDetailsSection",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kf.prototype,"dataChanged",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kf.prototype,"shouldShowNewLinks",null);_.L([_.R("data","shouldShowLinks"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kf.prototype,"shouldShowLegacyLinks",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],kf.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],kf);
_.Y(kf,"ytd-channel-about-metadata-renderer",function(){if(RAH!==void 0)return RAH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return RAH=l},{mode:1});var T2f;_.Y7("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var IV=function(){return _.B.apply(this,arguments)||this};
_.m(IV,_.B);IV.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],IV.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],IV);
_.Y(IV,"ytd-channel-featured-content-renderer",function(){if(T2f!==void 0)return T2f;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return T2f=l},{mode:1});var sNh;_.Y7("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var mD=function(){var l=_.B.apply(this,arguments)||this;l.roundContainer=!0;l.amsterdamEnabled=_.a("enable_desktop_amsterdam_info_panels");return l};
_.m(mD,_.B);_.X=mD.prototype;_.X.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.X.dataChanged=function(){this.imageWidth=this.imageHeight=24;var l=this.data;l.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!l.style&&l.image&&l.image.thumbnails.length&&(l=l.image.thumbnails[0],this.imageWidth=l.width||0,this.imageHeight=l.height||0)};
_.X.computeSource=function(l){return l.secondarySource?_.lG(l.secondarySource):_.lG(l.source)};
_.X.computeClarifyStyle=function(l){return l?l.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.X.isLargeStyle=function(l){return l==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.X.computeBackgroundStyle=function(l){return l?l.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.X.computeHasActionButton=function(l){return!!l.actionButton};
_.X.computeHasBottomSection=function(l){return!!l.ctaHasBottomSection};
_.X.computeIsSourceMissing=function(l){return l.ctaHasBottomSection===!1?!0:l&&this.computeSource(l)?!1:!0};
_.X.computeSecondaryEndpoint=function(l){return l.secondaryEndpoint||l.endpoint};
mD.prototype.dataChanged=mD.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mD.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],mD.prototype,"imageWidth",void 0);_.L([_.T(),_.q("design:type",Number)],mD.prototype,"imageHeight",void 0);
_.L([_.T({computed:"computeSecondaryEndpoint(data)"}),_.q("design:type",Object)],mD.prototype,"secondaryEndpoint",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.q("design:type",Boolean)],mD.prototype,"hasActionButton",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.q("design:type",Boolean)],mD.prototype,"hasBottomSection",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.q("design:type",Boolean)],mD.prototype,"missingSource",void 0);_.L([_.T({computed:"computeIcon_(data.icon)"}),_.q("design:type",String)],mD.prototype,"icon",void 0);_.L([_.T({computed:"computeIcon_(data.secondaryIcon)"}),_.q("design:type",String)],mD.prototype,"secondaryIcon",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.q("design:type",String)],mD.prototype,"clarifyStyle",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.q("design:type",String)],mD.prototype,"backgroundStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mD.prototype,"roundContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],mD.prototype,"amsterdamEnabled",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mD.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-clarification-renderer",disableElementRegistration:!0})],mD);
_.Y(mD,"ytd-clarification-renderer",function(){if(sNh!==void 0)return sNh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return sNh=l},{mode:1});var GYO;var B2C;var yA=function(){var l=_.B.apply(this,arguments)||this;l.amsterdamEnabled=_.a("enable_desktop_amsterdam_info_panels");return l};
_.m(yA,_.B);_.X=yA.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.X.computeIcon=function(l){return l?"yt-icons:"+l.toLowerCase():null};
_.X.computeUseContacts=function(l){return!!l.contacts&&l.contacts.length>0};
_.X.computePhoneContact=function(l){var e,O;return(e=l.contacts)==null?void 0:(O=e.find(function(E){var J;return(E==null?void 0:(J=E.icon)==null?void 0:J.iconType)==="PHONE"}))==null?void 0:O.actionText};
_.X.computeSmsContact=function(l){var e,O;return(e=l.contacts)==null?void 0:(O=e.find(function(E){var J;return(E==null?void 0:(J=E.icon)==null?void 0:J.iconType)==="SMS"}))==null?void 0:O.actionText};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yA.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],yA.prototype,"amsterdamEnabled",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.q("design:type",Boolean)],yA.prototype,"useContacts",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.q("design:type",String)],yA.prototype,"phoneContact",void 0);_.L([_.U({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],yA);
_.Y(yA,"ytd-single-action-emergency-support-renderer",function(){if(B2C!==void 0)return B2C;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return B2C=l},{mode:1});_.Y7("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var pM=function(){var l=_.B.apply(this,arguments)||this;l.roundedContainer=!0;l.amsterdamEnabled=_.a("enable_desktop_amsterdam_info_panels");return l};
_.m(pM,_.B);pM.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pM.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pM.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],pM.prototype,"amsterdamEnabled",void 0);
_.L([_.U({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],pM);
_.Y(pM,"ytd-emergency-onebox-renderer",function(){if(GYO!==void 0)return GYO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GYO=l},{mode:1});var Pb3;_.Y7("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var KM=function(){return _.B.apply(this,arguments)||this};
_.m(KM,_.B);KM.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],KM.prototype,"data",void 0);_.L([_.U({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],KM);
_.Y(KM,"ytd-exploratory-results-renderer",function(){if(Pb3!==void 0)return Pb3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Pb3=l},{mode:1});var Uqu;_.Y7("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var jz=function(){var l=_.B.apply(this,arguments)||this;l.messageData=null;return l};
_.m(jz,_.B);_.X=jz.prototype;_.X.onServiceRequestCompleted=function(l,e){l=e.actions||[];e=0;for(var O=l.length;e<O;e++){var E=l[e],J=void 0,z=void 0;if((J=_.I(E,_.Kp))==null?0:(z=J.item)==null?0:z.messageRenderer)this.messageData=_.I(E,_.Kp).item.messageRenderer}};
_.X.dataChanged=function(){var l=this.data;this.hostElement.hidden=!1;_.oB(this.hostElement,"is-channel",l&&!l.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.X.computeThumbnailWidth=function(l){return l?126:56};
_.X.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.X.onSubmitTap=function(){var l=this.data,e=this.selectedResponseIndex;l!==void 0&&e!==void 0&&(l=l.responses[e],l.responseData&&_.V2().resolve(_.Zh).resolveCommand(l.responseData,{form:{element:this.hostElement}}))};
_.X.onDismissTap=function(){this.hostElement.hidden=!0;var l=this.data;l!==void 0&&l.dismissalEndpoint&&_.V2().resolve(_.Zh).resolveCommand(l.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.updateSelectedResponseIndexFromBinding=function(l){this.selectedResponseIndex=l.detail.value};
jz.prototype.onSelectedResponseIndexChange=jz.prototype.onSelectedResponseIndexChange;jz.prototype.dataChanged=jz.prototype.dataChanged;jz.prototype.onServiceRequestCompleted=jz.prototype.onServiceRequestCompleted;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jz.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],jz.prototype,"messageData",void 0);
_.L([_.T(),_.q("design:type",Number)],jz.prototype,"selectedResponseIndex",void 0);_.L([_.aB("#submit-button"),_.q("design:type",HTMLButtonElement)],jz.prototype,"submitButton",void 0);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],jz.prototype,"onServiceRequestCompleted",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jz.prototype,"dataChanged",null);
_.L([_.AA("selectedResponseIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jz.prototype,"onSelectedResponseIndexChange",null);_.L([_.U({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],jz);
_.Y(jz,"ytd-feedback-elicitation-single-question-renderer",function(){if(Uqu!==void 0)return Uqu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Uqu=l},{mode:1});var YRu;var HE=function(){return _.B.apply(this,arguments)||this};
_.m(HE,_.B);HE.prototype.computeThumbnailWidth=function(l){return l?602:428};
HE.prototype.updateWideFromBinding=function(l){this.wide=l.detail.value};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HE.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],HE.prototype,"wide",void 0);_.L([_.U({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],HE);
_.Y(HE,"ytd-newspaper-hero-video-renderer",function(){if(YRu!==void 0)return YRu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YRu=l},{mode:1});var hAo;var cE=function(){return _.B.apply(this,arguments)||this};
_.m(cE,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cE.prototype,"rendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cE.prototype,"data",void 0);_.L([_.U({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],cE);
_.Y(cE,"ytd-newspaper-mini-video-renderer",function(){if(hAo!==void 0)return hAo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return hAo=l},{mode:1});var LZ0;_.Y7("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Fl=function(){return _.B.apply(this,arguments)||this};
_.m(Fl,_.B);Fl.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"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Fl.prototype,"data",void 0);_.L([_.U({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Fl);
_.Y(Fl,"ytd-newspaper-renderer",function(){if(LZ0!==void 0)return LZ0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return LZ0=l},{mode:1});var tnf;_.Y7("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var fM=function(){var l=_.B.apply(this,arguments)||this;l.isSegment=!1;l.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};l.nextContinuation={continuationType:"playlistVideoListContinuation"};return l};
_.m(fM,_.B);_.X=fM.prototype;_.X.attached=function(){_.V2();var l;(l=_.V2().resolve(_.MG(_.qw)))!=null&&(l.playlistVideoListElement=this.hostElement)};
_.X.detached=function(){var l;(l=_.V2().resolve(_.MG(_.qw)))!=null&&(l.playlistVideoListElement=void 0);l=_.V2().resolve(_.MG(_.Oq));_.a("web_enable_voting_animation")&&l&&(l.parentElem=void 0,l.videos=[],l.continuationsPresent=!1,l.showRefreshPill=!1)};
_.X.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"}}}}}};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.X.dataChanged=function(){var l=_.V2().resolve(_.MG(_.Oq));if(_.a("web_enable_voting_animation")&&this.data&&l){var e=_.ud(this.hostElement).querySelector("#contents");e&&(l.parentElem=e);l.addVideos(this.data.contents)}_.Bx0(this.ytReorderableBehavior)};
_.X.onRendererstamperFinished=function(){this.canReorder&&_.P0R(this.ytReorderableBehavior,_.ud(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.X.onPlaylistReloading=function(){this.isReloading=!0};
_.X.onUpdateSetVideoId=function(l){if(l.detail&&this.data&&this.data.contents){var e=l.detail;l=this.data.contents.findIndex(function(J){var z;return((z=J.playlistVideoRenderer)==null?void 0:z.videoId)===e.videoId});
if(!(l<0)&&e.setVideoId&&(this.set("data.contents."+l+".playlistVideoRenderer.setVideoId",e.setVideoId),_.a("web_enable_voting_animation"))){var O;if(l=_.I((O=this.data.contents[l].playlistVideoRenderer)==null?void 0:O.engagementBar,_.kAT)){var E;(E=l.actions)==null||E.forEach(function(J){if(J=_.I(J,_.IIg))J.itemId=e.setVideoId})}(O=_.V2().resolve(_.MG(_.Oq)))&&iAu(O,e.videoId,e.setVideoId)}}};
_.X.computeContentsClass=function(l){return l?"reloading":""};
_.X.computeIsSortable=function(l,e){return l&&e>0&&!this.isSegment&&!_.a("shorts_in_playlists_web")};
_.X.computeIsEditable=function(l){return l};
_.X.computeCanReorder=function(l){return l};
_.X.handlePlaylistRemoveVideosAction=function(l){if(this.get("playlistRemoveVideosAction.setVideoIds",l)&&this.data&&this.data.contents){l=_.I(l,_.gh6).setVideoIds;for(var e=this.data.contents.length-1;e>=0;){var O=this.data.contents[e].playlistVideoRenderer;O&&O.setVideoId&&l.includes(O.setVideoId)&&this.splice("data.contents",e,1);e--}_.Wb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.X.updateIndices=function(){if(this.data&&this.data.contents)for(var l=0;l<this.data.contents.length;l++)this.set("data.contents."+l+".playlistVideoRenderer.index",_.xp(String(l+1)))};
_.X.handleDrop=function(l){l=l.currDragItem;var e=_.Up(l.parentNode.childNodes,l),O=this.data.contents.splice(Number(_.lG(l.data.index))-1,1)[0];this.data.contents.splice(e,0,O);e=e?this.get("contents."+(e-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();l=this.buildReorderServiceEndpoint(l.data.setVideoId,e);this.ytComponentBehavior.resolveCommand(l)};
_.X.buildReorderServiceEndpoint=function(l,e){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",l),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",e),this.data.onReorderEndpoint):null};
_.X.handleUpdatePlaylistAction=function(l){var e;(l=_.I((e=_.I(l,_.i2k))==null?void 0:e.updatedRenderer,_.Ro1))&&this.canReorder!==l.canReorder&&this.set("data.canReorder",l.canReorder);l&&l.contents&&(this.set("data.contents",l.contents),this.isReloading=!1);l&&l.continuations&&this.set("data.continuations",l.continuations)};
_.X.handleAddRendererToItemSectionAction=function(l){var e,O=(e=_.I(l,kYC))==null?void 0:e.renderer,E;O&&((E=_.I(l,kYC))==null?void 0:E.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,O),l=_.V2().resolve(_.MG(_.Oq)),_.a("web_enable_voting_animation")&&l&&(O&&(e=_.aIx(O))&&l.recommendedVideos.push({itemId:e,videoId:_.mbt(O),voteCount:_.y1u(O),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.X.isVotingEnabledOnPlaylist=function(l){if(!l)return!1;l=_.b(l);for(l=l.next();!l.done;l=l.next()){var e=void 0;return!!_.I((e=l.value.playlistVideoRenderer)==null?void 0:e.engagementBar,_.kAT)}return!1};
_.X.onAppendContinuationItemsActionFinished=function(){var l;this.isVotingEnabledOnPlaylist((l=this.data)==null?void 0:l.contents)&&(this.updateIndices(),l=_.V2().resolve(_.MG(_.Oq)),_.a("web_enable_voting_animation")&&l&&this.data&&l.addVideos(this.data.contents))};
_.X.updateVideoData=function(l){if(l.detail&&this.data&&this.data.contents){var e=l.detail;l=e.toIdx;var O=e.itemId,E=e.newVoteCount,J=e.voteStatus;e=e.hideItem;var z,M,Z=(z=this.data)==null?void 0:(M=z.contents)==null?void 0:M.findIndex(function(w){return _.aIx(w)===O});
if(!(Z<0)){z=this.data.contents[Z];var u;if((u=z.playlistVideoRenderer)==null?0:u.voteCount)z.playlistVideoRenderer.voteCount=E;var d;if(u=_.I((d=z.playlistVideoRenderer)==null?void 0:d.engagementBar,_.kAT)){var g;(g=u.actions)==null||g.forEach(function(w){(w=_.I(w,_.IIg))&&w.initialState&&(w.initialState.votes=E,w.initialState.status=J)})}this.data.contents.splice(Z,1);
e||this.data.contents.splice(l,0,z);this.updateIndices()}}};
fM.prototype.updateVideoData=fM.prototype.updateVideoData;fM.prototype.onAppendContinuationItemsActionFinished=fM.prototype.onAppendContinuationItemsActionFinished;fM.prototype.onUpdateSetVideoId=fM.prototype.onUpdateSetVideoId;fM.prototype.onPlaylistReloading=fM.prototype.onPlaylistReloading;fM.prototype.onRendererstamperFinished=fM.prototype.onRendererstamperFinished;fM.prototype.dataChanged=fM.prototype.dataChanged;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],fM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.vd.YtNextContinuationBehavior),_.q("design:type",Object)],fM.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.K(_.U06),_.q("design:type",Object)],fM.prototype,"ytReorderableBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],fM.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],fM.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fM.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],fM.prototype,"isReloading",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fM.prototype,"isSegment",void 0);_.L([_.T({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.q("design:type",Boolean)],fM.prototype,"isSortable",void 0);_.L([_.T({computed:"computeIsEditable(data.isEditable)"}),_.q("design:type",Boolean)],fM.prototype,"isEditable",void 0);_.L([_.T({computed:"computeCanReorder(data.canReorder)"}),_.q("design:type",Boolean)],fM.prototype,"canReorder",void 0);
_.L([_.T({value:101}),_.q("design:type",Number)],fM.prototype,"scrollMargin",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fM.prototype,"dataChanged",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fM.prototype,"onRendererstamperFinished",null);
_.L([_.wP("yt-playlist-reloading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fM.prototype,"onPlaylistReloading",null);_.L([_.wP("yt-update-set-video-id"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],fM.prototype,"onUpdateSetVideoId",null);
_.L([_.wP("yt-append-continuation-items-action-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fM.prototype,"onAppendContinuationItemsActionFinished",null);_.L([_.wP("yt-update-video-data-voting-animation"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],fM.prototype,"updateVideoData",null);_.L([_.U({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],fM);
_.Y(fM,"ytd-playlist-video-list-renderer",function(){if(tnf!==void 0)return tnf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return tnf=l},{mode:_.Wf("kevlar_poly_si_batch_j047")?1:2});var qRf;var RV=function(){return _.B.apply(this,arguments)||this};
_.m(RV,_.B);RV.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"}}}}};
RV.prototype.onTextWrapperTap=function(l){var e=this.data&&this.data.navigationEndpoint;e&&!_.Eh(_.ey(l),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.$u(this.hostElement,"yt-navigate",{endpoint:e})};
RV.prototype.dataChanged=function(){var l=this.get("data.offerButton.buttonRenderer.serviceEndpoint");l&&l.commandMetadata&&_.I(l.commandMetadata,_.fp)&&_.I(l.commandMetadata,_.fp).fireAutomatically&&_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})};
RV.prototype.dataChanged=RV.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qO),_.q("design:type",Object)],RV.prototype,"ytdLockupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],RV.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],RV.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],RV.prototype,"biggerThumbsStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],RV.prototype,"leftAligned",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RV.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-movie-renderer"})],RV);
_.Y(RV,"ytd-movie-renderer",function(){if(qRf!==void 0)return qRf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qRf=l},{mode:1});var vCH;var TT=function(){var l=_.B.apply(this,arguments)||this;l.rounded=!0;l.pageAttachedTo=void 0;l.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return l};
_.m(TT,_.B);TT.prototype.attached=function(){this.pageAttachedTo=_.V2().resolve(_.XZ).getCurrentPage();_.$u(this.hostElement,"yt-player-attached",this.player)};
TT.prototype.detached=function(){var l;if((l=this.pageAttachedTo)==null?0:l.hostElement)_.$u(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
TT.prototype.dataChanged=function(){var l;if((l=this.data)==null?0:l.videoId)l={video_id:this.data.videoId,autoplay:!0},!_.a("miniplayer_stop_channel_video_autoplay_killswitch")&&_.V2().resolve(_.NJ).isMiniplayerActive()&&(l.pause_at_start=!0,l.autoplay=!1),this.player.loadVideoWithPlayerVars(l)};
TT.prototype.handleSignalActionPausePlayer=function(){_.Mc().pause()};
TT.prototype.dataChanged=TT.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],TT.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],TT.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TT.prototype,"rounded",void 0);_.L([_.aB("#player"),_.q("design:type",Object)],TT.prototype,"player",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TT.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],TT);
_.Y(TT,"ytd-channel-video-player-renderer",function(){if(vCH!==void 0)return vCH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return vCH=l},{mode:1});var N2H;var r9H;var Dqi;var sr=function(){var l=_.B.apply(this,arguments)||this;l.playing=!1;l.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ox(l);l.active=!1;return l};
_.m(sr,_.B);_.X=sr.prototype;_.X.detached=function(){this.stop()};
_.X.play=function(){var l=this,e,O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return l.active=!0,e=l.get("data.inlinePlaybackEndpoint.watchEndpoint"),O=e.videoId||l.data.videoId,E=e.startTimeSeconds||0,J=e.playerParams||null,_.a("kevlar_player_update_killswitch")?_.C(M,l.playerEl.update({args:{video_id:O,startSeconds:E,player_params:J}}),2):(l.playerEl.loadVideoWithPlayerVars({video_id:O,startSeconds:E,player_params:J,autoplay:!0}),M.jumpTo(2));if(M.nextAddress!=4)return _.C(M,l.playerEl.getPlayerPromise(),
4);z=M.yieldResult;z.unloadModule("annotations_module");z.addEventListener("onStateChange",function(Z){l.onPlayerStateChange(Z)});
_.Cl(M)})};
_.X.onPlayerStateChange=function(l){if(this.active)switch(this.playing=l===1,l){case 1:_.$u(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.$u(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.X.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.X.resize=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.playerEl.getPlayerPromise(),2);e=O.yieldResult;e.setSize(NaN,NaN);_.Cl(O)})};
_.L([_.T(),_.q("design:type",Object)],sr.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],sr.prototype,"playing",void 0);_.L([_.T(),_.q("design:type",Object)],sr.prototype,"playerId",void 0);_.L([_.aB("#player"),_.q("design:type",Object)],sr.prototype,"playerEl",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],sr);
_.Y(sr,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Dqi!==void 0)return Dqi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Dqi=l},{mode:1});var SRP;var QNi;var GT=function(){var l=_.B.apply(this,arguments)||this;l.width=0;return l};
_.m(GT,_.B);_.X=GT.prototype;_.X.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.id(this,this.onEnded));this.mp4El.addEventListener("error",_.id(this,this.onError))};
_.X.detached=function(){this.videoEl.removeEventListener("ended",_.id(this,this.onEnded));this.mp4El.removeEventListener("error",_.id(this,this.onError))};
_.X.play=function(){var l=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var e=this.videoEl.play();e?e.then(function(){l.handleVideoStartPlaying()}).catch(function(){_.$u(l.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.$u(this.hostElement,"yt-video-thumbnail-not-playing")};
_.X.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.X.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.X.dataChanged=function(){var l;if((l=this.data)==null?0:l.thumbnailPlaceholder)l=_.up(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+l+")";this.stop();this.autoplay&&this.play()};
_.X.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.X.onEnded=function(){this.stop();_.$u(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.X.onError=function(){_.$u(this.hostElement,"yt-video-thumbnail-error")};
_.X.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.X.getVideoThumbnail=function(l){if(l&&l.length)return l[0]};
GT.prototype.dataChanged=GT.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],GT.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GT.prototype,"animatePlaceholderOnEntrance",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],GT.prototype,"autoplay",void 0);_.L([_.T({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.q("design:type",Object)],GT.prototype,"videoThumbnail",void 0);
_.L([_.T(),_.q("design:type",Boolean)],GT.prototype,"loop",void 0);_.L([_.T(),_.q("design:type",Boolean)],GT.prototype,"isVideoPlaying",void 0);_.L([_.T(),_.q("design:type",Object)],GT.prototype,"width",void 0);_.L([_.aB("#mp4"),_.q("design:type",HTMLElement)],GT.prototype,"mp4El",void 0);_.L([_.aB("#placeholder"),_.q("design:type",HTMLElement)],GT.prototype,"placeholderEl",void 0);_.L([_.aB("#video"),_.q("design:type",HTMLVideoElement)],GT.prototype,"videoEl",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GT.prototype,"dataChanged",null);_.L([_.Ps({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],GT);
_.Y(GT,"yt-video-as-thumbnail-details",function(){if(QNi===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;SRP===void 0&&(SRP=document.createElement("template"));var E=SRP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);QNi=l}l=QNi;return l},{mode:2});var BE=function(){var l=_.B.apply(this,arguments)||this;l.disableGridStateAware=!1;l.animationEnabled=_.a("enable_web_ketchup_hero_animation");l.transitioningOut=!1;l.narrow=!1;l.narrower=!1;l.isCarouselInFeed=!1;l.videoTimeoutJobId=0;l.panelTimeoutJobId=0;l.panelTimeoutJobStartMs=0;l.actionMap={"yt-window-resized":"onWindowResized"};return l};
_.m(BE,_.B);_.X=BE.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.X.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.X.attached=function(){this.onWindowResized()};
_.X.detached=function(){this.clearTimeouts()};
_.X.onWindowResized=function(){this.updateSize()};
_.X.computePanelLayout=function(l){return l&&l.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.X.playVideo=function(){var l;this.video&&((l=this.data)==null?0:l.videoThumbnail)&&this.video.play();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.play()};
_.X.stopVideo=function(){var l;this.video&&((l=this.data)==null?0:l.videoThumbnail)&&this.video.stop();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.stop()};
_.X.transitionOut=function(){var l=this;this.transitioningOut=!0;return new Promise(function(e){var O=function(){_.ud(l.hostElement).querySelector("#action-button").removeEventListener("animationend",O);_.UD.cancelJob(E);e();l.transitioningOut=!1};
var E=_.fZ(_.UD,O,1E3);_.ud(l.hostElement).querySelector("#action-button").addEventListener("animationend",O);l.player&&(l.player.playing=!1)})};
_.X.computeMetadataOrder=function(l){return l&&l.metadataOrder&&l.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?l.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.X.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.X.computeAvatarSize=function(l){return l&&l.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.X.onContentClick=function(l){if(!_.Eh(_.ey(l),this.hostElement,["A".toString(),"BUTTON".toString()])){var e;if((e=this.data)==null?0:e.navigationEndpoint){var O;this.componentBehavior.resolveCommand((O=this.data)==null?void 0:O.navigationEndpoint)}}};
_.X.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.X.setBackgroundImage=function(l){if(l=this.getBackgroundImageUrl(l))_.ud(this.hostElement).querySelector("#hero").style.backgroundImage="url("+l+")"};
_.X.setScrimLayer=function(l){var e=this.getScrimLayerColorStops(l);l=((l==null?void 0:l.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(l=180);_.hT("HTML_DIR")==="rtl"&&(l=-l);e&&(_.ud(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+l+"deg, "+e+")")};
_.X.isNarrower=function(){return this.hostElement.clientWidth<BE.NARROW_VERSION_SIZE};
_.X.getScrimLayerColorStops=function(){var l,e=(l=this.data)==null?void 0:l.scrimColorValues;if(!e)return null;if(e.length===1)return l=_.qv(e[0]),l+" 0%, "+l+" 100%";if(e.length===3){var O=[0,72,98];return e.map(function(E,J){return _.qv(E)+" "+O[J]+"%"}).join(",")}return null};
_.X.getBackgroundImageUrl=function(l){return l&&l.largeFormFactorBackgroundThumbnail?_.up((l.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||l.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.X.onPlaying=function(){this.startVideoTimeout()};
_.X.onEnded=function(){this.rotate()};
_.X.startPanelTimeout=function(){var l=this;if(!this.panelTimeoutJobId){var e=this.get("data.minPanelDisplayDurationMs");e&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.fZ(_.UD,function(){l.rotate()},e))}};
_.X.startVideoTimeout=function(){var l=this;if(!this.videoTimeoutJobId){_.UD.cancelJob(this.panelTimeoutJobId);var e=Date.now()-this.panelTimeoutJobStartMs;e=Math.max(0,this.get("data.minPanelDisplayDurationMs")-e);e=Math.max(this.get("data.minVideoPlayDurationMs")||0,e);this.videoTimeoutJobId=_.fZ(_.UD,function(){l.rotate()},e)}};
_.X.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.UD.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.UD.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.X.rotate=function(){this.clearTimeouts();_.$u(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Ji.Object.defineProperties(BE.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ud(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ud(this.hostElement).querySelector("#video")}}});
_.Ji.Object.defineProperties(BE,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
BE.prototype.onEnded=BE.prototype.onEnded;BE.prototype.onPlaying=BE.prototype.onPlaying;BE.prototype.dataChanged=BE.prototype.dataChanged;_.L([_.K(_.UY),_.q("design:type",Object)],BE.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],BE.prototype,"componentBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],BE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.K(_.mF1),_.q("design:type",Object)],BE.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],BE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"disableGridStateAware",void 0);_.L([_.T(),_.q("design:type",Object)],BE.prototype,"data",void 0);_.L([_.T({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.q("design:type",String)],BE.prototype,"panelLayout",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"animationEnabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"transitioningOut",void 0);
_.L([_.T({computed:"computeMetadataOrder(data)"}),_.q("design:type",Boolean)],BE.prototype,"metadataOrder",void 0);_.L([_.T({computed:"computeByline(data)"}),_.q("design:type",Object)],BE.prototype,"byline",void 0);_.L([_.T({computed:"computeAvatarSize(data)"}),_.q("design:type",Number)],BE.prototype,"avatarSize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"narrow",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"narrower",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"layoutStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BE.prototype,"isCarouselInFeed",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BE.prototype,"dataChanged",null);_.L([_.wP("yt-default-promo-panel-renderer-playing"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BE.prototype,"onPlaying",null);
_.L([_.wP("yt-default-promo-panel-renderer-ended"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BE.prototype,"onEnded",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],BE);
_.Y(BE,"ytd-default-promo-panel-renderer",function(){if(r9H!==void 0)return r9H;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return r9H=l},{mode:1});_.Y7("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var PE=function(){var l=_.B.apply(this,arguments)||this;l.narrower=!1;l.dotMenuVisible=!1;l.paginationThumbnailsVisible=!1;l.active=!0;l.disableGridStateAware=!1;l.actionMap={"yt-window-resized":"onWindowResized"};return l};
_.m(PE,_.B);_.X=PE.prototype;_.X.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]]"}}}}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.id(this,this.onPageTypeChange));this.currentPageSubtype=_.k1(location.pathname);this.onWindowResized()};
_.X.detached=function(){this.jobId&&_.UD.cancelJob(this.jobId);this.updateSizeJobId&&_.UD.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.id(this,this.onPageTypeChange))};
_.X.onPageTypeChange=function(l){this.active=l.detail.newPageSubtype===this.currentPageSubtype};
_.X.onWindowResized=function(){this.updateSize()};
_.X.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.X.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.X.setCarouselItem=function(l){l>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.UD.cancelJob(this.jobId);var e=this.getCurrentPanelElement();e&&e.stopVideo();this.currentItemIndex=l%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(e||(e=this.getCurrentPanelElement()),e.playVideo()):this.startRotationJob()};
_.X.scrollThumbnails=function(l){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var e=this.getCurrentPaginationElement();if(e){var O=_.ud(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?O.style.transform="translateX(0)":(e=e.offsetWidth+8,O.style.transform="translateX(-"+e*(l-Math.ceil(Math.floor(this.overlay.offsetWidth/e)/2)+1)+"px)")}}};
_.X.onDataChanged=function(){var l=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.RK(_.UD,function(){l.getCurrentPanelElement().updateSize();l.updateSize()}))};
_.X.getCurrentPanelElement=function(){return _.ud(_.ud(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.X.getCurrentPaginationElement=function(){return _.ud(_.ud(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.X.getNavigationClass=function(l,e){return l===e?"selected":""};
_.X.getNavigationDurationStyle=function(l){return"animation-duration:"+(this.get("data.carouselItems."+l+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.X.onNavigationTap=function(l){var e=this,O=l.model.index;O!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){e.setCarouselItem(O)}),this.autorotateActive=!1)};
_.X.onVideoThumbnailEnded=function(){var l=this;if(this.shouldRotate()){var e=this.getCurrentPaginationElement();e&&(e.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){e.classList.remove("finished");l.setNextCarouselItem()}))}};
_.X.onVideoThumbnailError=function(){this.startRotationJob()};
_.X.onVideoNotPlaying=function(){this.startRotationJob()};
_.X.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.X.startRotationJob=function(){var l=this;_.UD.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.UD.addLowPriorityJob(function(){l.getCurrentPanelElement().transitionOut().then(function(){l.setNextCarouselItem()})},this.rotationTimeout))};
_.X.computeDotMenuVisible=function(l,e){return!!l&&!!l.carouselItems&&l.carouselItems.length>1&&!l.paginationThumbnails||!!e};
_.X.computePaginationThumbnailsVisible=function(l,e){var O,E;return((E=l==null?void 0:(O=l.paginationThumbnails)==null?void 0:O.length)!=null?E:0)>1&&!e};
_.X.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.X.computePaginatorAlignment=function(l){return(l==null?void 0:l.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.X.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.X.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.X.isNarrower=function(l){return(l!=null?l:0)<BE.NARROW_VERSION_SIZE};
PE.prototype.activeChanged=PE.prototype.activeChanged;PE.prototype.onVideoNotPlaying=PE.prototype.onVideoNotPlaying;PE.prototype.onVideoThumbnailError=PE.prototype.onVideoThumbnailError;PE.prototype.onVideoThumbnailEnded=PE.prototype.onVideoThumbnailEnded;PE.prototype.onDataChanged=PE.prototype.onDataChanged;_.L([_.K(_.UY),_.q("design:type",Object)],PE.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],PE.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PE.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],PE.prototype,"currentItem",void 0);
_.L([_.T(),_.q("design:type",Number)],PE.prototype,"currentItemIndex",void 0);_.L([_.T(),_.q("design:type",Number)],PE.prototype,"rotationTimeout",void 0);_.L([_.T(),_.q("design:type",Number)],PE.prototype,"loopCount",void 0);_.L([_.T({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.q("design:type",String)],PE.prototype,"paginatorAlignment",void 0);_.L([_.T(),_.q("design:type",Number)],PE.prototype,"jobId",void 0);
_.L([_.T(),_.q("design:type",Number)],PE.prototype,"updateSizeJobId",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],PE.prototype,"isCarouselInFeed",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],PE.prototype,"narrower",void 0);_.L([_.T({computed:"computeDotMenuVisible(data, narrower)"}),_.q("design:type",Object)],PE.prototype,"dotMenuVisible",void 0);
_.L([_.T({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.q("design:type",Object)],PE.prototype,"paginationThumbnailsVisible",void 0);_.L([_.T({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.q("design:type",String)],PE.prototype,"layoutType",void 0);_.L([_.T({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],PE.prototype,"autorotateActive",void 0);_.L([_.T(),_.q("design:type",Object)],PE.prototype,"active",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],PE.prototype,"disableGridStateAware",void 0);_.L([_.aB("#overlay"),_.q("design:type",HTMLElement)],PE.prototype,"overlay",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PE.prototype,"onDataChanged",null);
_.L([_.wP("yt-video-thumbnail-ended"),_.wP("yt-default-promo-panel-renderer-rotate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PE.prototype,"onVideoThumbnailEnded",null);_.L([_.wP("yt-video-thumbnail-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PE.prototype,"onVideoThumbnailError",null);
_.L([_.wP("yt-video-thumbnail-not-playing"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PE.prototype,"onVideoNotPlaying",null);_.L([_.y0("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PE.prototype,"activeChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],PE);
_.Y(PE,"ytd-carousel-item-renderer",function(){if(N2H!==void 0)return N2H;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return N2H=l},{mode:2});var xqu;var lNz;var evP;var O9C;var Ur=function(){var l=_.B.apply(this,arguments)||this;l.originalQuery=null;l.originalEndpoint=null;return l};
_.m(Ur,_.B);Ur.prototype.computeShowOriginalQueryWithoutEndpoint_=function(l,e){return!(!l||e)};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ur.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ur.prototype,"correctedText",void 0);_.L([_.T(),_.q("design:type",Object)],Ur.prototype,"correctedQuery",void 0);_.L([_.T(),_.q("design:type",Object)],Ur.prototype,"correctedEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],Ur.prototype,"originalText",void 0);_.L([_.T(),_.q("design:type",Object)],Ur.prototype,"originalQuery",void 0);
_.L([_.T(),_.q("design:type",Object)],Ur.prototype,"originalEndpoint",void 0);_.L([_.T({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.q("design:type",Boolean)],Ur.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.L([_.Ps({is:"yt-search-query-correction",disableElementRegistration:!0})],Ur);
_.Y(Ur,"yt-search-query-correction",function(){if(O9C===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;evP===void 0&&(evP=document.createElement("template"));var E=evP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);O9C=l}l=O9C;return l},{mode:2});_.Y7("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Yf=function(){return _.B.apply(this,arguments)||this};
_.m(Yf,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Yf.prototype,"data",void 0);_.L([_.Ps({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Yf);
_.Y(Yf,"yt-did-you-mean-renderer",function(){if(lNz===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;xqu===void 0&&(xqu=document.createElement("template"));var E=xqu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);lNz=l}l=lNz;return l},{mode:2});var Ejh;var Jvh;_.Y7("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var hR=function(){return _.B.apply(this,arguments)||this};
_.m(hR,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hR.prototype,"data",void 0);_.L([_.Ps({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],hR);
_.Y(hR,"yt-including-results-for-renderer",function(){if(Jvh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Ejh===void 0&&(Ejh=document.createElement("template"));var E=Ejh;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Jvh=l}l=Jvh;return l},{mode:2});var XO0;var zv4;_.Y7("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var LM=function(){return _.B.apply(this,arguments)||this};
_.m(LM,_.B);LM.prototype.computeExtraClasses_=function(l,e){var O="";l&&(O+=" "+l.toLowerCase().replace(/_/g,"-"));e&&(O+=" "+e.toLowerCase().replace(/_/g,"-"));return O};
LM.prototype.computeUrlImg_=function(){var l=this.data;l.image&&(_.ud(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.up(l.image.thumbnails,Number.MAX_VALUE)+")")};
LM.prototype.computeUrlImg_=LM.prototype.computeUrlImg_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],LM.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LM.prototype,"computeUrlImg_",null);_.L([_.Ps({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],LM);
_.Y(LM,"yt-music-pass-feature-info-renderer",function(){if(zv4===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;XO0===void 0&&(XO0=document.createElement("template"));var E=XO0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);zv4=l}l=zv4;return l},{mode:2});var b94;var Me3;_.Y7("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var tR=function(){return _.B.apply(this,arguments)||this};
_.m(tR,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tR.prototype,"data",void 0);_.L([_.Ps({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],tR);
_.Y(tR,"yt-no-results-found-showing-results-for-renderer",function(){if(Me3===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;b94===void 0&&(b94=document.createElement("template"));var E=b94;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Me3=l}l=Me3;return l},{mode:2});var Veu;var Z9H;_.Y7("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var q6=function(){return _.B.apply(this,arguments)||this};
_.m(q6,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],q6.prototype,"data",void 0);_.L([_.Ps({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],q6);
_.Y(q6,"yt-results-without-quotes-renderer",function(){if(Z9H===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Veu===void 0&&(Veu=document.createElement("template"));var E=Veu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Z9H=l}l=Z9H;return l},{mode:2});var u93;var C5f;_.Y7("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var vE=function(){return _.B.apply(this,arguments)||this};
_.m(vE,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vE.prototype,"data",void 0);_.L([_.Ps({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],vE);
_.Y(vE,"yt-search-no-results-renderer",function(){if(C5f===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;u93===void 0&&(u93=document.createElement("template"));var E=u93;O.call(e,E.content.cloneNode(!0),l.content.firstChild);C5f=l}l=C5f;return l},{mode:2});var oju;var $M0;_.Y7("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var N6=function(){return _.B.apply(this,arguments)||this};
_.m(N6,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],N6.prototype,"data",void 0);_.L([_.Ps({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],N6);
_.Y(N6,"yt-showing-results-for-renderer",function(){if($M0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;oju===void 0&&(oju=document.createElement("template"));var E=oju;O.call(e,E.content.cloneNode(!0),l.content.firstChild);$M0=l}l=$M0;return l},{mode:2});var Wau;var dMP;var gjO;var i9z;var rN=function(){var l=_.B.apply(this,arguments)||this;l.answerExpanded=!1;return l};
_.m(rN,_.B);rN.prototype.toggleAnswer_=function(l){var e=_.OV(l);e&&e.classList.contains("yt-simple-endpoint")||(l.preventDefault(),l.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
rN.prototype.toggleAnswer_=rN.prototype.toggleAnswer_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rN.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],rN.prototype,"answerExpanded",void 0);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],rN.prototype,"toggleAnswer_",null);
_.L([_.Ps({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],rN);
_.Y(rN,"yt-generic-faq-question-renderer",function(){if(i9z===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;gjO===void 0&&(gjO=document.createElement("template"));var E=gjO;O.call(e,E.content.cloneNode(!0),l.content.firstChild);i9z=l}l=i9z;return l},{mode:2});_.Y7("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Dy=function(){return _.B.apply(this,arguments)||this};
_.m(Dy,_.B);Dy.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Dy.prototype,"data",void 0);_.L([_.Ps({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Dy);
_.Y(Dy,"yt-faq-section-renderer",function(){if(dMP===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Wau===void 0&&(Wau=document.createElement("template"));var E=Wau;O.call(e,E.content.cloneNode(!0),l.content.firstChild);dMP=l}l=dMP;return l},{mode:2});var wOh;var AvC;_.Y7("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Sz=function(){return _.B.apply(this,arguments)||this};
_.m(Sz,_.B);
Sz.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sz.prototype,"data",void 0);_.L([_.Ps({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Sz);
_.Y(Sz,"yt-offer-item-expanded-renderer",function(){if(AvC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;wOh===void 0&&(wOh=document.createElement("template"));var E=wOh;O.call(e,E.content.cloneNode(!0),l.content.firstChild);AvC=l}l=AvC;return l},{mode:2});var njO;var aNh;_.Y7("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var QA=function(){return _.B.apply(this,arguments)||this};
_.m(QA,_.B);
QA.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"}}}}};
QA.prototype.computeFullWidthMode=function(l){return!(!l||!l.fullWidthMode)};
QA.prototype.computeBorderlessMode=function(l){return!(!l||!l.borderlessMode)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],QA.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.q("design:type",Boolean)],QA.prototype,"fullWidthMode",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.q("design:type",Boolean)],QA.prototype,"borderlessMode",void 0);_.L([_.Ps({is:"yt-offer-item-renderer",disableElementRegistration:!0})],QA);
_.Y(QA,"yt-offer-item-renderer",function(){if(aNh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;njO===void 0&&(njO=document.createElement("template"));var E=njO;O.call(e,E.content.cloneNode(!0),l.content.firstChild);aNh=l}l=aNh;return l},{mode:2});var kt3;var INH;_.Y7("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var xf=function(){return _.B.apply(this,arguments)||this};
_.m(xf,_.B);xf.prototype.computeAriaLevel_=function(l){return this.getLevelID_(l)};
xf.prototype.getLevelID_=function(l){return(l=l.match(/[0-9]+$/))&&l.length==1?l[0]:"1"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xf.prototype,"data",void 0);_.L([_.T({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.q("design:type",String)],xf.prototype,"ariaLevel",void 0);_.L([_.T({value:"heading",reflectToAttribute:!0}),_.q("design:type",String)],xf.prototype,"role",void 0);
_.L([_.T({value:-1,reflectToAttribute:!0}),_.q("design:type",Number)],xf.prototype,"tabindex",void 0);_.L([_.Ps({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],xf);
_.Y(xf,"yt-subscription-product-header-renderer",function(){if(INH===void 0){var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;kt3===void 0&&(kt3=document.createElement("template"));var E=kt3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);INH=l}l=INH;return l},{mode:2});var mMu;var yvH;_.Y7("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var lW=function(){return _.B.apply(this,arguments)||this};
_.m(lW,_.B);lW.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:_.hm("menuRenderer"),events:!0}}};
lW.prototype.onStampFinished_=function(){_.ud(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
lW.prototype.onStampFinished_=lW.prototype.onStampFinished_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lW.prototype,"data",void 0);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lW.prototype,"onStampFinished_",null);
_.L([_.Ps({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],lW);
_.Y(lW,"yt-subscription-product-renderer",function(){if(yvH===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;mMu===void 0&&(mMu=document.createElement("template"));var E=mMu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);yvH=l}l=yvH;return l},{mode:2});var pOo;var Ka4;_.Y7("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var eC=function(){return _.B.apply(this,arguments)||this};
_.m(eC,_.B);eC.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
eC.prototype.imageScrimColorValuesChanged_=function(){var l,e=(l=this.data)==null?void 0:l.imageScrimColorValues;_.ud(this.hostElement).querySelector("#scrim").style.backgroundColor=e?_.qv(e[0]):"transparent"};
eC.prototype.imageScrimColorValuesChanged_=eC.prototype.imageScrimColorValuesChanged_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eC.prototype,"data",void 0);
_.L([_.AA("data.imageScrimColorValues"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eC.prototype,"imageScrimColorValuesChanged_",null);_.L([_.Ps({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],eC);
_.Y(eC,"yt-subscription-product-upsell-offer-renderer",function(){if(Ka4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;pOo===void 0&&(pOo=document.createElement("template"));var E=pOo;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Ka4=l}l=Ka4;return l},{mode:2});var j1u;var H9i;var cvF;var Fa4;var fN4;var Rvh;var OE=function(){return _.B.apply(this,arguments)||this};
_.m(OE,_.B);OE.prototype.onYtServiceRequestError_=function(l){_.Zs(this.hostElement,l.detail.error.message)};
OE.prototype.onYtServiceRequestError_=OE.prototype.onYtServiceRequestError_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OE.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],OE.prototype,"collapsible",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],OE.prototype,"isManageRed",void 0);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],OE.prototype,"onYtServiceRequestError_",null);_.L([_.Ps({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],OE);
_.Y(OE,"yt-single-ypc-offer-renderer",function(){if(Rvh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;fN4===void 0&&(fN4=document.createElement("template"));var E=fN4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Rvh=l}l=Rvh;return l},{mode:2});var EE=function(){return _.B.apply(this,arguments)||this};
_.m(EE,_.B);EE.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],EE.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],EE.prototype,"isManageRed",void 0);_.L([_.Ps({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],EE);
_.Y(EE,"yt-single-ypc-offer-list-renderer",function(){if(Fa4===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;cvF===void 0&&(cvF=document.createElement("template"));var E=cvF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Fa4=l}l=Fa4;return l},{mode:2});var Tlu;var s1f;_.Y7("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Jy=function(){return _.B.apply(this,arguments)||this};
_.m(Jy,_.B);Jy.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Jy.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Jy.prototype,"isManageRed",void 0);_.L([_.Ps({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Jy);
_.Y(Jy,"yt-ypc-offers-list-renderer",function(){if(s1f===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Tlu===void 0&&(Tlu=document.createElement("template"));var E=Tlu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);s1f=l}l=s1f;return l},{mode:2});_.Y7("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Xd=function(){return _.B.apply(this,arguments)||this};
_.m(Xd,_.B);
Xd.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Xd.prototype,"data",void 0);_.L([_.Ps({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Xd);
_.Y(Xd,"yt-unlimited-manage-subscription-page-renderer",function(){if(H9i===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;j1u===void 0&&(j1u=document.createElement("template"));var E=j1u;O.call(e,E.content.cloneNode(!0),l.content.firstChild);H9i=l}l=H9i;return l},{mode:2});var Gto;var BlO;var zc=function(){return _.B.apply(this,arguments)||this};
_.m(zc,_.B);_.X=zc.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.X.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.onKeypress_=function(l){l.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.X.handleHeaderTap_=function(l){l.preventDefault();l.stopPropagation();this.expandOffers_()};
_.X.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.X.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
zc.prototype.dataChanged_=zc.prototype.dataChanged_;_.L([_.K(_.po),_.q("design:type",Object)],zc.prototype,"ironA11yKeysBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zc.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],zc.prototype,"offersVisible_",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zc.prototype,"dataChanged_",null);_.L([_.Ps({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],zc);
_.Y(zc,"yt-collapsible-ypc-offer-renderer",function(){if(BlO===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Gto===void 0&&(Gto=document.createElement("template"));var E=Gto;O.call(e,E.content.cloneNode(!0),l.content.firstChild);BlO=l}l=BlO;return l},{mode:2});var P5z;var UMu;_.Y7("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var bW=function(){return _.B.apply(this,arguments)||this};
_.m(bW,_.B);_.X=bW.prototype;_.X.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.X.dataChanged_=function(){if(this.data.backgroundImage){var l=_.up(this.data.backgroundImage.thumbnails,screen.width),e=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=e?"linear-gradient(180deg, "+e+"), url("+l+")":"url("+l+")";this.data.gtmId&&_.fQ(this.data.gtmId,_.hT("GL",""))}};
_.X.onYtServiceRequestError_=function(l){_.Zs(this.hostElement,l.detail.error.message)};
_.X.getScrimLayerColorStops_=function(){var l,e,O=(l=this.data.unlimitedHeaderV2Data)==null?void 0:(e=l.unlimitedHeaderV2Data)==null?void 0:e.scrimLayerColors;if(!O)return null;var E=100/O.length;return O.map(function(J,z){z*=E;return _.qv(J)+" "+z+"%"}).join(",")};
_.X.computeLogoWithPadding=function(l){var e,O,E;return(l=(e=l.unlimitedLogoImage)==null?void 0:(O=e.thumbnails)==null?void 0:(E=O[0])==null?void 0:E.height)&&l%31===0?!0:!1};
bW.prototype.onYtServiceRequestError_=bW.prototype.onYtServiceRequestError_;bW.prototype.dataChanged_=bW.prototype.dataChanged_;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.L([_.T({computed:"computeLogoWithPadding(data)"}),_.q("design:type",Boolean)],bW.prototype,"logoWithPadding",void 0);
_.L([_.T(),_.q("design:type",Object)],bW.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bW.prototype,"dataChanged_",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],bW.prototype,"onYtServiceRequestError_",null);_.L([_.Ps({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],bW);
_.Y(bW,"yt-unlimited-page-header-renderer",function(){if(UMu===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;P5z===void 0&&(P5z=document.createElement("template"));var E=P5z;O.call(e,E.content.cloneNode(!0),l.content.firstChild);UMu=l}l=UMu;return l},{mode:2});var Ya3;var hvf;_.Y7("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var MF=function(){return _.B.apply(this,arguments)||this};
_.m(MF,_.B);MF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],MF.prototype,"data",void 0);_.L([_.Ps({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],MF);
_.Y(MF,"yt-unlimited-user-notification-renderer",function(){if(hvf===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Ya3===void 0&&(Ya3=document.createElement("template"));var E=Ya3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);hvf=l}l=hvf;return l},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.E6u=_.XO(function(l){var e=_.J3(l,{numberOfChips:5}).numberOfChips;return _.W("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.W(_.KH,{each:function(){return Array(e==null?void 0:e())}},function(){return _.W("div",{class:"ytGhostChipShelfChip"})}))},"lg");_.J50=_.XO(function(l){var e=_.iV(),O=_.V2().resolve(_.OL);_.RU(function(){requestAnimationFrame(function(){var J;(J=e.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var z;(z=l.onLottieLoaded)==null||z.call(l)})})});
var E={};return _.W("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var J;return((J=l.data)==null?void 0:J.call(l).targetId)||""}},_.W(_.k7,{className:_.ax((E.ytChatLoadingViewModelRtl=O==="rtl",E)),
animationName:"YOUCHAT_LOADER",data:function(){var J;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((J=l.data)==null?void 0:J.call(l).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:e}))},"mg");
}catch(e){_._DumpException(e)}
try{
var mRf,yDP,pI4,KAo,jzh,Hli,cDu,fU0,Y$i,EJ,URh,szH,P1z,BpP,Gq4,Tp0,huu,LAh,tS4,q$4,Jj,vAC,NpC,rDh,QzO,bU,DRh,MX,Xg,VL,S$F,zf,xRH,l7f,ewP,OFi,JnH,MBu,uei,CXF,oSF,WmH,gSu,wR4,AnC,nSf,a7P,I74,m4h,ynf,pRP,KmO,j7C,HFh,FmH,s7f,Taz,f7z,G5F,Rwo,Bao,hwu,YP4,PXu,U4z,uU,Lm4,tBf,vSP,D4u,ObO,Ezu,Jli,XDo,zJ0,bbh,M$h,V$C,ZbF,u80,oz4,$hF,W3h,x4C;
_.eX=function(l){var e=new _.Hk("Error accessing DB");return _.K8p().then(function(O){return new Promise(function(E,J){try{var z=O.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(l);z.onsuccess=function(){var M=z.result;E(M?M.value:null)};
z.onerror=function(){e.params={key:l,source:"onerror"};J(e)}}catch(M){e.params={key:l,
thrownError:String(M)},J(e)}})},function(){return null})};
_.IUu=function(l,e){var O=_.dH8(e);O!=="javascript:"&&O!=="data:"&&l.setAttribute("href",e)};
mRf=function(l,e){return _.wV(l.entities,"flowStateEntity",e)};
yDP=function(l){return _.Gg(l,function(e){return e.languageCode==="en"})};
pI4=function(l){var e=OJ;if(_.TGF(l))l.setOption("captions","stickyLoading",{}),l.setOption("captions","track",{});else{var O=_.Gg(_.tL2(l),function(E){return E.displayName===e});
l.setOption("captions","track",O)}};
KAo=function(l){if(!l)return 0;var e=l.getPresentingPlayerType(),O=l.getVideoData();return O&&O.isLive?(l=l.getProgressState(e),l.seekableEnd-l.seekableStart):l.getDuration(e)};
jzh=function(l,e){for(var O=_.b(Object.keys(l)),E=O.next();!E.done;E=O.next())if(E=E.value,l[E]!==e[E])return!1;return!0};
Hli=function(){return document.getElementById("player-control-overlay")};
cDu=function(l){l!==-1&&!_.a("player_controls_log_creation_killswitch")&&Hli()&&(_.Yu("pcu_cs",l),_.Yu("pcu_ce"))};
fU0=function(l){return _.W("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(l.subscribeButton?[l.subscribeButton,l.channelAccess]:[l.channelAccess]).map(function(e){return _.W("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz--button"},FAu(e)))}))};
_.RuP=function(l){var e=l.data;l=l.hideDivider;var O={};O=(O["yt-profile-identity-info-view-model-wiz__frame"]=!0,O["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!e.channelBanner,O);O={class:_.Ix(O)};var E,J={imageBannerViewModel:{image:(E=e.channelBanner)==null?void 0:E.image,style:"IMAGE_BANNER_STYLE_INSET"}};E=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},e.channelBanner?_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
FAu(J,{imageBannerViewModel:{isPositionRelative:!0}})):null);J=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},FAu(e.avatar));var z;var M=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},e.channelDisplayName),e.verifiedOrOacBadge?_.W("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.W(_.Jm,{data:{thumbnails:[{url:(z=e.verifiedOrOacBadge)==null?void 0:z.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);z=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},M,FAu(e.threeDotMenu));M=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.W("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},e.channelHandle),e.channelPronouns&&e.channelHandle?_.W("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.W("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},e.channelPronouns)),_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},e.leftOfBulletInfo),e.leftOfBulletInfo&&e.rightOfBulletInfo?_.W("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.W("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},e.rightOfBulletInfo)));z=_.W("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},z,M);return _.W("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.W("div",O,E,_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},J,z),e.channelDescription?_.W("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},e.channelDescription):
null,fU0(e),l?null:_.W("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
Y$i=function(l,e){var O=_.Et(l,{}),E=Tp0("top",e),J=Tp0("bottom",e),z=Tp0("left",e),M=Tp0("right",e);return _.HF({top:function(){return EJ(O().position,E)},
bottom:function(){return EJ(O().position,J)},
left:function(){return EJ(O().position,z)},
right:function(){return EJ(O().position,M)},
position:function(){return EJ(O().positionType,szH)},
height:function(){return EJ(O().height,Jj)},
width:function(){return EJ(O().width,Jj)},
"min-width":function(){return EJ(O().minWidth,Jj)},
"min-height":function(){return EJ(O().minHeight,Jj)},
"max-width":function(){return EJ(O().maxWidth,Jj)},
"max-height":function(){return EJ(O().maxHeight,Jj)},
"aspect-ratio":function(){return EJ(O().aspectRatio,String)},
"margin-top":function(){return EJ(O().margin,E)},
"margin-bottom":function(){return EJ(O().margin,J)},
"margin-left":function(){return EJ(O().margin,z)},
"margin-right":function(){return EJ(O().margin,M)},
"padding-top":function(){return EJ(O().padding,E)},
"padding-bottom":function(){return EJ(O().padding,J)},
"padding-left":function(){return EJ(O().padding,z)},
"padding-right":function(){return EJ(O().padding,M)},
"flex-direction":function(){return EJ(O().flexDirection,Gq4)},
"justify-content":function(){return EJ(O().justifyContent,BpP)},
"align-items":function(){return EJ(O().alignItems,P1z)},
"flex-grow":function(){return EJ(O().flexGrow,String)},
"flex-shrink":function(){return EJ(O().flexShrink,String)},
"flex-basis":function(){return EJ(O().flexBasis,Jj)},
"align-self":function(){return EJ(O().alignSelf,P1z)},
"flex-wrap":function(){return EJ(O().flexWrap,URh)},
"align-content":function(){return EJ(O().alignContent,P1z)}})};
EJ=function(l,e){return l!==void 0?e(l):void 0};
URh=function(l){switch(l){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
szH=function(l){switch(l){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
P1z=function(l){switch(l){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"}};
BpP=function(l){switch(l){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"}};
Gq4=function(l){switch(l){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"}};
Tp0=function(l,e){var O=e==="rtl";switch(l){case "top":var E=huu;break;case "bottom":E=LAh;break;case "left":E=tS4;break;default:E=q$4}return function(J){return EJ(E(J,O),Jj)}};
huu=function(l){var e=l.top;var O=l.vertical;l=l.all;var E;return(E=e!=null?e:O)!=null?E:l};
LAh=function(l){var e=l.bottom;var O=l.vertical;l=l.all;var E;return(E=e!=null?e:O)!=null?E:l};
tS4=function(l,e){var O=l.left;var E=l.end;var J=l.start;var z=l.horizontal;l=l.all;var M,Z;return(Z=(M=O!=null?O:e?E:J)!=null?M:z)!=null?Z:l};
q$4=function(l,e){var O=l.right;var E=l.end;var J=l.start;var z=l.horizontal;l=l.all;var M,Z;return(Z=(M=O!=null?O:e?J:E)!=null?M:z)!=null?Z:l};
Jj=function(l){var e=l.value;switch(l.unit){case "YPC_DIMENSION_UNIT_POINT":return e+"px";case "YPC_DIMENSION_UNIT_FRACTION":return e+"%";default:return""+e}};
vAC=function(l){switch(l){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"}};
NpC=function(l){var e=l!=null?l:{};l=e.fontRole;var O=e.fontSize;e=e.fontWeight;if(l!==null&&O!==null)switch(l){case "YPC_FONT_ROLE_DISPLAY":switch(O){case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(O){case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return e===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(O){case "YPC_FONT_SIZE_XL":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
rDh=function(l,e){return _.wV(l.entities,"pdpStateEntity",e)};
QzO=function(l,e,O){function E(g){return Object.values(g).map(function(w){var n=w.productId;w=w.pricingOptionIndex;return Xg(J(n).pricingOptions,w).pricingOptionId})}
function J(g){return Z().get(g)}
function z(g){g=E(g);O(g)}
var M=zf([l,e],function(g,w){var n=g==null?void 0:g.selectedPricingOptions;g={};var k=!0;if(n&&w.length)for(var y=_.b(w),c=y.next();!c.done;c=y.next()){c=c.value;var f=DRh(c.pricingOptions,function(N){a:{N=N.pricingOptionId;for(var t=_.b(n),r=t.next();!r.done;r=t.next())if(r.value===N){N=!0;break a}N=!1}return N});
if(f>=0){k=!1;var P=Xg(c.pricingOptions,f),h=void 0;g[c.groupId]={productId:c.productId,pricingOptionIndex:f,pricingGroupAttributes:(h=P)==null?void 0:h.pricingGroupAttributes}}}k&&w.length&&(k=Xg(w[0].pricingOptions,0),g[w[0].groupId]={productId:w[0].productId,pricingOptionIndex:0,pricingGroupAttributes:k==null?void 0:k.pricingGroupAttributes});return g}),Z=zf([e],function(g){return new Map(g.map(function(w){return[w.productId,
w]}))}),u=zf([e],function(g){var w=new Map;
g=_.b(g);for(var n=g.next();!n.done;n=g.next()){var k=n.value;n=k.groupId;var y=k.productId;k=_.b(bU(k.pricingOptions));for(var c=k.next();!c.done;c=k.next()){var f=_.b(c.value);c=f.next().value;f=f.next().value;w.set(f.pricingOptionId,{groupId:n,productId:y,index:c,pricingOption:f,pricingGroupAttributes:f.pricingGroupAttributes})}}return w}),d=zf([e],function(g){var w=new Map;
g=_.b(g);for(var n=g.next();!n.done;n=g.next()){var k=n.value;n=k.groupId;var y=k.productId,c=void 0;k=_.b(bU((c=k.pricingGroups)!=null?c:[]));for(c=k.next();!c.done;c=k.next()){var f=_.b(c.value);c=f.next().value;f=f.next().value;w.set(f.pricingGroupId,{groupId:n,productId:y,index:c,pricingGroup:f,pricingGroupAttributes:f.pricingGroupAttributes})}}return w});
return{getProductById:J,isProductSelected:function(g){var w=J(g);if(!w)return!1;var n;return((n=M()[w.groupId])==null?void 0:n.productId)===g},
getSelectedPricingOptions:function(){return Object.values(M()).map(function(g){var w=g.productId;g=g.pricingOptionIndex;return Xg(J(w).pricingOptions,g)})},
getSelectedPricingGroupAttributesByGroupId:function(g){var w;return(g=(w=M()[g])==null?void 0:w.pricingGroupAttributes)?Array.from(g):void 0},
getSelectedProductByGroupId:function(g){var w;return(g=(w=M()[g])==null?void 0:w.productId)?J(g):void 0},
onProductSelected:function(g){var w=J(g);if(w){var n=M(),k;if(((k=n[w.groupId])==null?void 0:k.productId)!==g){var y,c;k=(c=(y=n[w.groupId])==null?void 0:y.pricingOptionIndex)!=null?c:0;MX(w.pricingOptions)<=k&&(k=0);y=Xg(w.pricingOptions,k);var f;c={};z(Object.assign({},n,(c[w.groupId]={productId:g,pricingOptionIndex:k,pricingGroupAttributes:(f=y==null?void 0:y.pricingGroupAttributes)!=null?f:[]},c)))}}},
onPricingOptionSelected:function(g){var w=u().get(g);if(w){g=w.groupId;var n=w.productId;w=w.index;var k=M(),y,c;if(((y=k[g])==null?void 0:y.productId)!==n||((c=k[g])==null?void 0:c.pricingOptionIndex)!==w){var f,P;y={};z(Object.assign({},k,(y[g]={productId:n,pricingOptionIndex:w,pricingGroupAttributes:(P=(f=k[g])==null?void 0:f.pricingGroupAttributes)!=null?P:[]},y)))}}},
onPricingGroupSelected:function(g){var w=d().get(g);if(w){g=w.groupId;var n=w.productId,k=w.pricingGroup.pricingGroupAttributes,y=J(n);if(y){w=M();var c=w[g].pricingGroupAttributes,f;if(((f=w[g])==null?void 0:f.productId)!==n||!VL(S$F(c,MX(k)),k)){f=Array.from(k);for(k=MX(k);k<MX(c);k++){var P="",h=!1,N=Array.from(f);N.push(Xg(c,k));for(var t=_.b(y.pricingGroups),r=t.next();!r.done;r=t.next())if(r=r.value,VL(r.pricingGroupAttributes,N)){f.push(Xg(c,k));h=!0;break}else P===""&&MX(r.pricingGroupAttributes)===
N.length&&VL(S$F(r.pricingGroupAttributes,f.length),f)&&(P=Xg(r.pricingGroupAttributes,k));h||f.push(P)}P=w[g].pricingOptionIndex;k=[];h=new Map;N=0;y=_.b(bU(y.pricingOptions));for(t=y.next();!t.done;t=y.next())r=_.b(t.value),t=r.next().value,r=r.next().value,VL(r.pricingGroupAttributes,f)&&k.push(t),VL(r.pricingGroupAttributes,c)&&h.set(t,N++);k.length===0?c=0:(c=h.get(P),c=c!==void 0&&c<k.length?k[c]:k[0]);y={};z(Object.assign({},w,(y[g]={productId:n,pricingOptionIndex:c,pricingGroupAttributes:f},
y)))}}}},
onClearGroupSelected:function(g){var w=M();w[g]&&(w=Object.fromEntries(Object.entries(w).filter(function(n){return _.b(n).next().value!==g})),z(w))}}};
bU=function(l){return function O(){var E,J,z,M,Z;return _.zVA(O,function(u){switch(u.nextAddress){case 1:_.VE(u,2),E=0,J=_.b(l),z=J.next();case 4:if(z.done){u.jumpTo(2);break}M=z.value;Z=_.b$d;return _.C(u,[E++,M],7);case 7:Z(u.yieldResult);z=J.next();u.jumpTo(4);break;case 2:_.MR(u),_.ZU(u,0)}})}()};
DRh=function(l,e){l=_.b(bU(l));for(var O=l.next();!O.done;O=l.next()){var E=_.b(O.value);O=E.next().value;E=E.next().value;if(e(E))return O}return-1};
MX=function(l){var e=0;for(l=l[Symbol.iterator]();!l.next().done;)++e;return e};
Xg=function(l,e){l=_.b(bU(l));for(var O=l.next();!O.done;O=l.next()){var E=_.b(O.value);O=E.next().value;E=E.next().value;if(O===e)return E}};
VL=function(l,e){if(!l&&!e)return!0;if(!l||!e)return!1;l=Array.from(l);e=Array.from(e);if(l.length!==e.length)return!1;for(var O=0;O<l.length;O++)if(l[O]!==e[O])return!1;return!0};
S$F=function(l,e){e=e===void 0?Infinity:e;var O=[];l=_.b(bU(l));for(var E=l.next();!E.done;E=l.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;if(E>=e)break;E>=0&&O.push(J)}return O};
zf=function(l,e){var O,E;return function(){for(var J=l.map(function(M){return M()}),z=0;z<J.length;z++)if(!O||J[z]!==O[z]){O=J;
E=e.apply(null,_.kA(J));break}return E}};
xRH=function(l){var e,O;return!!(l.productId&&l.groupId&&((e=l.pricingOptions)==null?0:e.length)&&l.pricingOptions.every(function(E){return E.pricingOptionId})&&((O=l.pricingGroups)==null||!O.length||Array.isArray(l.pricingGroups)&&l.pricingGroups.every(function(E){return E.pricingGroupId&&E.pricingGroupAttributes&&E.pricingGroupAttributes.length>0})))};
l7f=function(l,e,O){return QzO(l,zf([e],function(E){return E.filter(xRH)}),O)};
ewP=function(l,e){return e.length===0?[l]:[l.slice(0,e[0]),l.slice(e[0])].filter(function(O){return O.length>0})};
OFi=function(l){switch(l){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""}};
JnH=function(l,e,O,E){E=Object.assign({},E);_.Pf(E,ESC,{selectedOptionId:l,primaryButtonOverride:O});_.ls().dispatch(_.IK("flowStateEntity",e,E))};
_.bFC=function(){if(!XRH){var l=_.b(_.AF(new Map,void 0,"UJImUe"));XRH=l.next().value;zw4=l.next().value}return XRH};
MBu=function(l){if(l)return _.bFC()().get(l)};
_.VBC=function(l,e){if(l&&e){var O=_.bFC();O().set(l,e);l=O();zw4(new Map(l))}};
_.ZFP=function(l){return{onSubmit:function(){var e;(e=MBu(l()))==null||e.onSubmit()},
isValid:function(){var e=MBu(l());return e?e.isValid():!0},
isSubmitting:function(){var e,O;return!!((e=MBu(l()))==null?0:(O=e.isSubmitting)==null?0:O.call(e))}}};
uei=function(l,e){return _.wV(l.entities,"contextNoteFeedEntityPayload",e)};
CXF=function(l){l.style.height="auto";l.style.height=l.scrollHeight+"px"};
oSF=function(l){return[l.syncStep,l.asyncStep].filter(function(e){return e!==void 0})};
WmH=function(l){var e,O,E;if(l=(e=l.structuredContextNoteFormSchema)==null?void 0:(O=e.fieldSchemas)==null?void 0:(E=O.noteBody)==null?void 0:E.validationSchema)for(e=_.b(oSF(l)),O=e.next();!O.done;O=e.next()){O=O.value.rules;if(!O)break;O=_.b(O);for(O=O.next();!O.done;O=O.next())return _.I(O.value,_.$4o)}};
gSu=function(l){if(l){l=_.b(oSF(l));for(var e=l.next();!e.done;e=l.next()){e=e.value.rules;if(!e)break;e=_.b(e);for(e=e.next();!e.done;e=e.next())return _.I(e.value,d4F)}}};
wR4=function(l){if(l){l=_.b(oSF(l));for(var e=l.next();!e.done;e=l.next()){e=e.value.rules;if(!e)break;e=_.b(e);for(e=e.next();!e.done;e=e.next())return _.I(e.value,iF3)}}};
AnC=function(l){l=/^https?:\/\//.test(l)?l:"http://"+l;try{var e=_.rk(l)}catch(O){return!1}if(e.toString()!==l)return!1;l=e.JSC$8068_domain_.split(".");return l.length>1&&l.every(function(O){return!!O})};
nSf=function(l,e,O,E){var J;E=(J=E.structuredContextNoteData)==null?void 0:J.createCommentEndpoint;if(J=_.I(E,_.gn6))return J.commentText=_.xp(l),J.videoPositionMention=e,J.sources=O,E};
a7P=function(l){return l==null?void 0:l.stringValue};
I74=function(l,e,O){l=l.map(function(E,J){return{listItemViewModel:{title:E.title,subtitle:E.subtitle,leadingImage:E.leadingImage,trailingImage:J===e?k5h:void 0,rendererContext:{commandContext:{onTap:E.onTap}}}}});
return Object.assign({},O&&{header:{panelHeaderViewModel:{title:O}}},{content:{listViewModel:{listItems:l}}})};
m4h=function(l,e){if(l&&e)switch(e){case "SELECTION_TYPE_BOOL":return l.boolValue;case "SELECTION_TYPE_INT":return l.intValue;case "SELECTION_TYPE_STRING":return l.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return l.privacyStatusValue}};
ynf=function(l){var e;l=(e=l.options)==null?void 0:e.findIndex(function(O){return O.isSelected});
return l===void 0?-1:l};
pRP=function(l,e,O){var E=function(){return l().label},J={},z=_.ax("ytDropdownViewModelLabel",(J.ytDropdownViewModelLabelError=e,J));
return _.W(_.A,{cond:function(){return l().label&&!(O()===-1&&l().label&&!l().placeholderText)},
then:function(){return _.W("div",{class:z},_.W(_.zK,{text:E}))}})};
KmO=function(l,e){var O={};O=_.ax("ytDropdownViewModelTitle",(O.ytDropdownViewModelTitlePlaceholder=function(){return e()===-1},O));
return _.W("div",{class:O},_.W(_.zK,{text:function(){var E=l();var J=e();if(J===-1)E=E.placeholderText?E.placeholderText:E.label;else{var z,M;E=(z=E.options)==null?void 0:(M=z[J])==null?void 0:M.title}return E}}))};
j7C=function(l,e){var O=function(){return l().hint};
return _.W(_.ZB,null,_.W(_.A,{cond:function(){return O()&&!e()},
then:function(){return _.W("div",{class:_.ax("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.W(_.zK,{text:O,className:"ytDropdownViewModelSupportText"}))}}),_.W(_.A,{cond:e,
then:function(){return _.W("div",{id:"dropdown-view-model-error",role:"alert",class:_.ax("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.W(_.cF,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.W(_.zK,{text:e,className:"ytDropdownViewModelSupportText"}))}}))};
HFh=function(l,e){var O=_.V2().resolve(_.gB1);_.sC(function(){var E=l().id;E&&O!=null&&O.dropdownMap.set(E,e)})};
FmH=function(l){l=_.I(l.scheduleButton,cn4);l=_.I(l==null?void 0:l.primaryButton,_.Hi);l=_.I(l==null?void 0:l.onTap,_.L4);var e,O,E=((O=_.I(l,_.nz))==null?void 0:O.commands)||[l];O=_.b(E);for(l=O.next();!l.done&&!(e=_.I(l.value,_.we0));l=O.next());var J;e=(J=e)==null?void 0:J.createBroadcastRequest;if(!e)throw Error("Kj");return e};
s7f=function(l,e,O){O=O===void 0?{}:O;var E,J;return _.V(function(z){if(E=f7z(e))return z.return(E);(J=Rwo(l,e,O))&&Taz(e,J);return z.return(J)})};
Taz=function(l,e){var O=G5F(l);O&&e.then(function(E){_.V2().resolve(_.Z2).put(O,new _.uF({innertubeResponse:E}))})};
f7z=function(l){if(l=G5F(l)){var e=_.V2().resolve(_.Z2);if(e.has(l))return e.get(l).then(function(O){return O==null?void 0:_.dd(O)})}return null};
G5F=function(l){var e=_.I(l.endpoint,_.ej);if(e!=null&&e.videoId)return e={videoId:e.videoId},_.a("web_imp_player_mute_params")&&(e.mutedAtStart=l.startPlaybackInMutedState),_.li("inline_playback",e)};
Rwo=function(l,e,O){l=_.Qh(l,e.endpoint,Bao(e,O)).then(function(E){return E});
return Promise.resolve(l)};
Bao=function(l,e){e=_.a("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!l.startPlaybackInMutedState},e):Object.assign({},{vis:5,autonav:"1"},e);var O;e={contentPlaybackContext:_.Fv(e,(O=_.I(l.endpoint.commandMetadata,_.V4))==null?void 0:O.url,window.location.href)};_.a("web_imp_player_mute_params")&&(e.overrideMutedAtStart=!l.startPlaybackInMutedState);return e};
hwu=function(l,e){var O=window.MutationObserver;O&&(Zv=new O(function(E,J){E=_.b(E);for(var z=E.next();!z.done;z=E.next()){z=z.value;var M;if(M=z.type==="childList"&&z.target)a:{M=l;z=PXu(z.target);M=PXu(M);for(var Z=null,u=0;u<z.length;u++)if(M.includes(z[u])){if(u===0){M=!1;break a}Z=z[u];break}Z?(z=U4z(z,Z),M=U4z(M,Z),M=z<M):M=!1}if(M){e();J.disconnect();break}}}),(O=YP4())&&Zv.observe(O,{childList:!0,
subtree:!0}))};
YP4=function(){var l=document.getElementsByTagName("ytd-rich-grid-renderer");if(l.length>0)return l[0];l=document.getElementsByTagName("ytd-section-list-renderer");return l.length>0?l[0]:null};
PXu=function(l){for(var e=[];l;)e.push(l),l=l.parentElement;return e};
U4z=function(l,e){var O=Array.from(e.children);e=l.indexOf(e);return e>0?O.indexOf(l[e-1]):-1};
uU=function(l,e,O){O=O===void 0?{}:O;return _.ml(l,O,e)};
Lm4=function(l){switch(l){case "MUSIC":return!0;default:return!1}};
tBf=function(l){return l==null?void 0:l.filter(function(e){return e.premiereTrailerBadgeRenderer})};
vSP=function(l){var e,O=l==null?void 0:(e=l.find(function(w){return w.thumbnailOverlayTimeStatusRenderer}))==null?void 0:e.thumbnailOverlayTimeStatusRenderer,E,J;
if((O==null?0:(E=O.icon)==null?0:E.iconType)&&Lm4(O==null?void 0:(J=O.icon)==null?void 0:J.iconType)){var z;return{icon:O==null?void 0:(z=O.icon)==null?void 0:z.iconType}}var M,Z;var u=(l=(M=l==null?void 0:(u=l.find(function(w){return w.thumbnailBottomOverlayViewModel}))==null?void 0:u.thumbnailBottomOverlayViewModel)==null?void 0:(Z=M.badges)==null?void 0:Z.find(function(w){var n,k;
return((n=_.I(w,qPo))==null?void 0:(k=n.inlinePlaybackBadgeData)==null?void 0:k.replicateAsTimestamp)===!0}))?_.I(l,qPo):void 0;
if(u==null?0:u.icon){var d,g;if((u=(d=_.bcx(u==null?void 0:u.icon))==null?void 0:(g=d.clientResource)==null?void 0:g.imageName)&&Lm4(u))return{icon:u}}return{}};
D4u=function(l,e){var O="",E="";switch(l){case -1:case 0:O=e?"VOLUME_OFF":"VOLUME_OFF_FILLED";E=Na0;break;case 1:O=e?"VOLUME_UP_OUTLINE":"VOLUME_UP";E=rnu;break;default:_.VC(l)}return{iconName:O,ariaLabel:E}};
ObO=function(l,e){var O=SP4,E=_.b(_.AF(Q74(new x4C(function(){},O,e)),void 0,"PAnyd")),J=E.next().value,z=E.next().value,M=new x4C(function(Z){z(Z)},O,e);
_.Gh(function(){Promise.resolve().then(function(){var Z,u=(Z=l())!=null?Z:{};M.playerControlsData=u;_.a("player_controls_skip_double_signal_old")&&(M.lastSeenPlayerApi=_.vn(u.playerApi));_.a("player_controls_skip_double_signal_old")||(M.lastSeenPlayerApi=_.vn(u.playerApi));lFC(M)});
_.B3(function(){eJF(M)})},"HikUP");
_.B3(function(){eJF(M)});
return function(){return J()}};
Ezu=function(l){return function(e){var O=l(),E={playerState:e};if(e===1){var J;(J=O.playerApi)==null||J.loadModule("captions")}if(e===0){var z;(z=O.playerApi)==null||z.unloadModule("captions")}(e!==-1||_.a("web_imp_controls_set_player_state_killswitch"))&&O.setState(E)}};
Jli=function(l){return function(e){l().setState({playbackRate:e})}};
XDo=function(l){return function(e){var O=l(),E=O.playerApi,J=E==null?void 0:E.getVideoData(),z=(J==null?void 0:J.isLive)||!1;J=J==null?void 0:J.video_id;z={videoDuration:KAo(E||void 0),isLive:z,videoId:J};z.videoId!==O.videoId&&(z=Object.assign({},_.nf2(E),z));if(e==null?0:e.playertype)z.playerType=e.playertype;if(E){z.captionsAvailable=_.Go(E);e=z;var M;J=(M=E.getStoryboardLevel(E.getNumberOfStoryboardLevels()-1))==null?void 0:M.intervalMs;e.storyboardInterval=J?J/1E3:void 0;z.captionsAvailable&&
(z.captionsEnabled=_.TGF(E))}z.volumeMuted=!(E==null||!E.isMuted());O.setState(z)}};
zJ0=function(l){return function(e){var O=l(),E=O.playerApi;if(E){var J=E.getPresentingPlayerType();e={playedTime:e||0,percentLoaded:E.getVideoLoadedFraction(),playerType:J};O.playerState===0&&(e.playedTime=O.videoDuration);O.isLive&&(J=E.getProgressState(J),e.playedTime-=J.seekableStart,e.videoDuration=KAo(E));if(O.playerType===1)E=!1;else{var z;if((z=O.uxConfig)==null?0:z.showCuedOverlay){var M;E=!((M=O.playerApi)==null?0:M.getPlayerStateObject(O.playerType).isDomPaused)}else E=!0}E&&delete e.playedTime;
O.setState(e)}}};
bbh=function(l){return function(){var e=l(),O,E,J,z={volume:(J=(O=e.playerApi)==null?void 0:O.getVolume())!=null?J:0,volumeMuted:!((E=e.playerApi)==null||!E.isMuted())};e.setState(z)}};
M$h=function(l){return function(){var e=l(),O=e.playerApi;if(O){var E={captionsAvailable:_.Go(O)};E.captionsAvailable&&(E.captionsEnabled=_.TGF(O));e.setState(E)}}};
V$C=function(l){return function(){var e=l();if(e.playerApi&&!(e.volumeMuted||e.controlsVisible&&e.isProbablyAScreenreaderUser)){e.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var O;(O=document.querySelector(".player-control-play-pause-icon"))==null||O.focus()}}};
ZbF=function(l){return{appApi:Object.assign({},_.$6u(),{showCaptionsToggleToast:function(e){var O,E;(E=(O=l()).showCaptionsToggleToast)==null||E.call(O,e)},
openInMiniplayer:function(){var e,O;(O=(e=l()).openInMiniplayer)==null||O.call(e)}})}};
u80=function(l,e){var O,E,J;return!!(l==null?0:(O=l.playerResponse)==null?0:(E=O.playerConfig)==null?0:(J=E.inlinePlaybackConfig)==null?0:J.showScrubbingControls)&&!(e==null?0:e.hideScrubbingControls)};
_.C$u=function(l){var e=!l.miniplayerIsActive;return[5,2,0].includes(l.miniplayerPlaybackState)||e};
oz4={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};$hF=function(l,e){var O,E,J,z,M;_.V(function(Z){if(!e.length)return Z.return([]);O=[];E=_.b(e);for(J=E.next();!J.done;J=E.next())z=J.value,(M=l.resolveIcon(z))&&!l.iconCache[M.url]&&O.push(_.cqz(l,M).then(function(){}).catch(function(){}));
return Z.return(Promise.all(O))})};
W3h=function(l,e){var O=[];e=(new Set(e)).values();e=_.b(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;for(var J=_.b(Object.values(oz4)),z=J.next();!z.done;z=J.next())O.push({iconName:E,iconStyle:z.value})}$hF(l.iconManager,O)};
_.dhh=function(l,e,O){var E=O!=null?O:l.iconsToFetch;E!=null&&E.length?e!==void 0&&e>=0?_.fZ(_.UD,function(){W3h(l,E)},e):W3h(l,E):Promise.resolve()};
x4C=function(l,e,O){var E=this;this.renderFn=l;this.listeners=e;this.context=O;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var J;this.lastSeenPlayerApi=_.vn((J=this.playerControlsData)==null?void 0:J.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.nf2(),void 0);_.a("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Q74(E).setState({playerState:-1});E.resetRecentlyNavigatedJobId&&_.UD.cancelJob(E.resetRecentlyNavigatedJobId);
E.recentlyNavigated=!0;E.resetRecentlyNavigatedJobId=_.UD.addJob(function(){E.recentlyNavigated=!1},8,1E4)})};
x4C.prototype.setState=function(l){if(!_.a("mweb_player_skip_no_op_state_changes")||!jzh(l,this.state))if(this.state=Object.assign({},this.state,l),!_.a("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)l=-1,_.a("player_controls_log_creation_killswitch")||Hli()||(l=(0,_.VZ)()),_.Yu("pcu_s"),_.Yu("pcu_se"),_.Yu("pcu_rs"),this.renderFn(Q74(this)),_.Yu("pcu_re"),cDu(l),_.UD.addJob(function(){_.Yu("pcu_ap")},8)};
var Q74=function(l){var e;var O=_.vn((e=l.playerControlsData)==null?void 0:e.playerApi);return Object.assign({},l.state,{setState:l.boundSetState,domMeasurements:{progressBarLineRect:l.progressBarLineRect},playerApi:O,appApi:l.context.appApi,playerContainer:l.context.playerContainer,playerControlContainer:l.context.playerControlContainer,uxConfig:l.context.uxConfig})},lFC=function(l){l.listeners.forEach(function(e){l.eventListenerCleanupFunctions.push(e.register(function(){return Q74(l)},function(){return l.getData()}))})},
eJF=function(l){l.eventListenerCleanupFunctions.forEach(function(e){e()});
l.eventListenerCleanupFunctions.length=0};
x4C.prototype.getData=function(){return this.playerControlsData};
var Ct=new _.v("abuseReportFlowState");var gz4=new _.v("feedbackFormFlowState");var ib3=new _.v("inputBoxViewModel");var wDo=new _.v("flowNextStepCommand");var Alh=new _.v("flowPrevStepCommand");var nz0=new _.v("updateFlowCommand");_.aF0=new _.v("flowStepRenderer");_.$4o=new _.v("lengthValidationRule");var d4F=new _.v("regexValidationRule");var iF3=new _.v("selectedValidationRule");var kj4=new _.v("talkToRecsViewModel");var IFu=new _.v("creatorGoalSetUpFlowDropdownItemViewModel");var mhu=new _.v("creatorGoalSetUpFlowDropdownViewModel");var qPo=new _.v("thumbnailBadgeViewModel");_.ylu=new _.v("radioButtonGroupViewModel");var cn4=new _.v("panelFooterViewModel");var pDC=new _.v("ypcCancelRecurrenceCommand");var K33=new _.v("cancellationFlowState");var ESC=new _.v("premiumPurchaseFlowState");var jQ0=new _.v("surveyAnswerCardRenderer");var HbH=new _.v("showMoreButtonRenderer");var clC;var F30,fFo=function(){if(F30!==void 0)return F30;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;clC===void 0&&(clC=document.createElement("template"));var E=clC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return F30=l};var oh=function(){var l=_.B.apply(this,arguments)||this;l.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";l.goalDescription="";l.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";l.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";l.startButtonId="start-button";l.exampleButtonId="example-button";return l};
_.m(oh,_.B);_.X=oh.prototype;_.X.getGoalDropdownItems=function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.purchaseTargetDropdown,mhu))==null?void 0:e.dropdownItems};
_.X.getTimerDropdownItems=function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.timerDropdown,mhu))==null?void 0:e.dropdownItems};
_.X.getColorDropdownItems=function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.colorDropdown,mhu))==null?void 0:e.dropdownItems};
_.X.getDropdownItemText=function(l){var e;return(e=_.I(l,IFu))==null?void 0:e.itemLabel};
_.X.getDropdownItemValue=function(l){l=_.I(l,IFu);return(l==null?void 0:l.timeLimit)||(l==null?void 0:l.purchaseTarget)||(l==null?void 0:l.eligiblePurchaseType)};
_.X.updateFlowState=function(l){_.Wb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:l}])};
_.X.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.X.updateGoalValue=function(l){this.goal=l.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.X.onTextValueChanged=function(l){this.goalDescription=l.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.X.updateTimerValue=function(l){this.timer=l.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.X.updateTierValue=function(l){this.tier=l.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.X.getButtonViewModel=function(l){l=(l==null?void 0:l.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var e,O=_.I((e=this.data)==null?void 0:e.startGoalButton,_.Hi);return Object.assign({},O,{state:l})};
_.Ji.Object.defineProperties(oh,{template:{configurable:!0,enumerable:!0,get:function(){return fFo()}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],oh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],oh.prototype,"goal",void 0);_.L([_.T(),_.q("design:type",Object)],oh.prototype,"goalDescription",void 0);_.L([_.T(),_.q("design:type",Object)],oh.prototype,"timer",void 0);_.L([_.T(),_.q("design:type",Object)],oh.prototype,"tier",void 0);
_.L([_.T(),_.q("design:type",Object)],oh.prototype,"startButtonId",void 0);_.L([_.T(),_.q("design:type",Object)],oh.prototype,"exampleButtonId",void 0);_.L([_.Ps({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],oh);_.Y(oh,"yt-creator-goal-set-up-flow-view-model",function(){return fFo()},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var RJi;var Tku;var sQ4;var GjO=function(){return _.B.apply(this,arguments)||this};
_.m(GjO,_.B);_.L([_.T(),_.q("design:type",Object)],GjO.prototype,"data",void 0);_.L([_.Ps({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],GjO);
_.Y(GjO,"yt-survey-answer-card-renderer",function(){if(sQ4===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Tku===void 0&&(Tku=document.createElement("template"));var E=Tku;O.call(e,E.content.cloneNode(!0),l.content.firstChild);sQ4=l}l=sQ4;return l},{mode:2});var Bku;var P$i;var $9=function(){return _.B.apply(this,arguments)||this};
_.m($9,_.B);_.X=$9.prototype;_.X.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.X.selectedItemChanged=function(l){_.Wb(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[l.feedbackToken||""]}])};
_.X.surveyAnswerCardRendererClicked=function(l){if(l.target&&_.I(l.model.item,jQ0)){var e=l.target;l=_.I(l.model.item,jQ0);l.onTapCommand?_.wQ(e,[l.onTapCommand],e):this.data.onTapCommand&&_.wQ(e,[this.data.onTapCommand],e);this.selectedItemChanged(l)}};
_.X.checkIsCancellationStyle=function(l){return l==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.X.updateSelectedItemFromBinding=function(l){this.selectedItem=l.detail.value};
$9.prototype.onSelectedItemChanged=$9.prototype.onSelectedItemChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$9.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],$9.prototype,"selectedItem",void 0);_.L([_.T({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.q("design:type",Boolean)],$9.prototype,"isCancellationStyle",void 0);
_.L([_.AA("selectedItem"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$9.prototype,"onSelectedItemChanged",null);_.L([_.Ps({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],$9);
_.Y($9,"yt-survey-flow-step-renderer",function(){if(P$i===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Bku===void 0&&(Bku=document.createElement("template"));var E=Bku;O.call(e,E.content.cloneNode(!0),l.content.firstChild);P$i=l}l=P$i;return l},{mode:2});var W_=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return l};
_.m(W_,_.B);W_.prototype.handleSurveyFlowStepOptionChanged=function(l){this.ytdReduxBehavior.dispatch(_.oM({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:l}));_.Wb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:l}}])};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],W_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],W_.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],W_.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],W_);
_.Y(W_,"ytd-survey-flow-step-renderer",function(){if(RJi!==void 0)return RJi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return RJi=l},{mode:1});var FAu;FAu=_.jp({avatarViewModel:_.Hp,buttonViewModel:_.hM,subscribeButtonViewModel:_.jf,imageBannerViewModel:_.RV1});_.UhC=_.yh(_.RuP);_.Z8(_.RuP);var Yoi;var dj=function(){return _.B.apply(this,arguments)||this};
_.m(dj,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],dj.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dj.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],dj);
_.Y(dj,"ytd-channel-history-renderer",function(){if(Yoi!==void 0)return Yoi;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Yoi=l},{mode:1});var hJP;var L3z=function(){return _.B.apply(this,arguments)||this};
_.m(L3z,_.B);_.L([_.T(),_.q("design:type",Object)],L3z.prototype,"data",void 0);_.L([_.U({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],L3z);
_.Y(L3z,"ytd-feature-enablement-info-renderer",function(){if(hJP!==void 0)return hJP;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return hJP=l},{mode:1});var t$0;var qo4;var gj=function(){var l=_.B.apply(this,arguments)||this;l.textBoxMaxLength=_.a("enable_tvod_campaign_code_integration")?15:12;return l};
_.m(gj,_.B);_.X=gj.prototype;_.X.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.X.onSubmit=function(){var l=this.data.serviceEndpoint,e=_.I(l,_.o9);e&&l&&(e.couponCode=this.userInput,_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}}))};
_.X.validate=function(){var l=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=l&&!this.data.errorMessage;this.showErrorMessage=l&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.a("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.X.computeStyle=function(l){return l};
_.X.computeShowValidationBelowInput=function(l){return l!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.X.updateUserInputFromBinding=function(l){this.userInput=l.currentTarget.value};
_.X.updateShowErrorMessageFromBinding=function(l){this.showErrorMessage=l.detail.value};
_.Ji.Object.defineProperties(gj.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
gj.prototype.dataChanged=gj.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gj.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],gj.prototype,"userInput",void 0);_.L([_.T(),_.q("design:type",Boolean)],gj.prototype,"disableApplyButton",void 0);_.L([_.T(),_.q("design:type",Boolean)],gj.prototype,"hideApplyButton",void 0);
_.L([_.T(),_.q("design:type",Boolean)],gj.prototype,"hideErrorMessage",void 0);_.L([_.T(),_.q("design:type",Boolean)],gj.prototype,"showTick",void 0);_.L([_.T(),_.q("design:type",Boolean)],gj.prototype,"showErrorMessage",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],gj.prototype,"couponStyle",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.q("design:type",Boolean)],gj.prototype,"showValidationBelowInput",void 0);_.L([_.T(),_.q("design:type",Object)],gj.prototype,"textBoxMaxLength",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gj.prototype,"dataChanged",null);
_.L([_.R("showTick","showErrorMessage","userInput"),_.q("design:type",String),_.q("design:paramtypes",[])],gj.prototype,"validationState",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],gj);
_.Y(gj,"ytd-ypc-coupon-renderer",function(){if(qo4!==void 0)return qo4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qo4=l},{mode:1});var iU=function(){return _.B.apply(this,arguments)||this};
_.m(iU,_.B);iU.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"}}}};
iU.prototype.computeStyle=function(l){return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],iU.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],iU.prototype,"buttonStyle",void 0);_.L([_.U({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],iU);
_.Y(iU,"ytd-flow-bottom-bar-renderer",function(){if(t$0!==void 0)return t$0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return t$0=l},{mode:1});var vzz;var NkH;var rl4;var wj=function(){return _.B.apply(this,arguments)||this};
_.m(wj,_.B);wj.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wj.prototype.focus=function(l){this.title&&_.OW(this.title,l)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wj.prototype,"data",void 0);_.L([_.aB("#title"),_.q("design:type",HTMLElement)],wj.prototype,"title",void 0);_.L([_.U({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],wj);
_.Y(wj,"ytd-flow-top-bar-renderer",function(){if(rl4!==void 0)return rl4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return rl4=l},{mode:1});var Dhz;var SoH;var QQu;var Aj=function(){return _.B.apply(this,arguments)||this};
_.m(Aj,_.B);Aj.prototype.freeTextValueChanged=function(){_.Wb(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Aj.prototype.updateFreeTextValueFromBinding=function(l){this.freeTextValue=l.detail.value};
_.Ji.Object.defineProperties(Aj.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(e=(l=this.data)==null?void 0:l.responseMaxLength)!=null?e:500,E;return((E=this.freeTextValue)!=null?E:"").length>=O?"maxed-out":""}}});
Aj.prototype.freeTextValueChanged=Aj.prototype.freeTextValueChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Aj.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],Aj.prototype,"freeTextValue",void 0);_.L([_.aB("#user-input"),_.q("design:type",HTMLTextAreaElement)],Aj.prototype,"input",void 0);
_.L([_.R("freeTextValue"),_.q("design:type",Object),_.q("design:paramtypes",[])],Aj.prototype,"characterLimitClass",null);_.L([_.AA("freeTextValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Aj.prototype,"freeTextValueChanged",null);_.L([_.Ps({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Aj);
_.Y(Aj,"yt-free-text-input-flow-step-renderer",function(){if(QQu===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;SoH===void 0&&(SoH=document.createElement("template"));var E=SoH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);QQu=l}l=QQu;return l},{mode:2});var nt=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return l};
_.m(nt,_.B);nt.prototype.handleFreeTextFlowStepInputChanged=function(l){_.Wb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:l}}])};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],nt.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],nt.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nt.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],nt);
_.Y(nt,"ytd-free-text-input-flow-step-renderer",function(){if(Dhz!==void 0)return Dhz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Dhz=l},{mode:1});var xh0;var lcf;var e_u=function(){return _.B.apply(this,arguments)||this};
_.m(e_u,_.B);_.L([_.T(),_.q("design:type",Object)],e_u.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],e_u);
_.Y(e_u,"ytd-metadata-line-renderer",function(){if(lcf!==void 0)return lcf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return lcf=l},{mode:1});var ah=function(){return _.B.apply(this,arguments)||this};
_.m(ah,_.B);ah.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ah.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ah.prototype,"isMasthead",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],ah);
_.Y(ah,"ytd-media-product-renderer",function(){if(xh0!==void 0)return xh0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return xh0=l},{mode:1});var OSu;var k9=function(){return _.B.apply(this,arguments)||this};
_.m(k9,_.B);k9.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
k9.prototype.onBillboardImageLoaded=function(){_.$u(this.hostElement,"yt-refit")};
k9.prototype.onBillboardImageLoaded=k9.prototype.onBillboardImageLoaded;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],k9.prototype,"data",void 0);_.L([_.aB("#billboardImage"),_.q("design:type",Object)],k9.prototype,"billboardImage",void 0);_.L([_.wP("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],k9.prototype,"onBillboardImageLoaded",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],k9);
_.Y(k9,"ytd-billboard-masthead-renderer",function(){if(OSu!==void 0)return OSu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return OSu=l},{mode:1});var Eoo;var Ih=function(){var l=_.B.apply(this,arguments)||this;l.smallSize=!1;return l};
_.m(Ih,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ih.prototype,"ytComponentBehaviorType",void 0);_.L([_.T(),_.q("design:type",Object)],Ih.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ih.prototype,"smallSize",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Ih);
_.Y(Ih,"ytd-bullet-formatted-string",function(){if(Eoo!==void 0)return Eoo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Eoo=l},{mode:1});var JFh;var mj=function(){return _.B.apply(this,arguments)||this};
_.m(mj,_.B);mj.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mj.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],mj);
_.Y(mj,"ytd-offer-detail-renderer",function(){if(JFh!==void 0)return JFh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return JFh=l},{mode:1});var X3H;var yL=function(){return _.B.apply(this,arguments)||this};
_.m(yL,_.B);yL.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yL.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],yL);
_.Y(yL,"ytd-offer-detail-step-renderer",function(){if(X3H!==void 0)return X3H;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return X3H=l},{mode:1});var z_P;var pt=function(){var l=_.B.apply(this,arguments)||this;l.isInOfferModule=!1;return l};
_.m(pt,_.B);_.X=pt.prototype;_.X.computeHasEndpoint=function(){var l;return!((l=this.data)==null||!l.onClickCommand)};
_.X.dataChanged=function(){var l;if((l=this.data)==null?0:l.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")};
_.X.detached=function(){var l;if((l=this.data)==null?0:l.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.X.handleClickEvent=function(){var l;if((l=this.data)==null?0:l.onClickCommand){var e;this.componentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.X.onContentKeyDown=function(l){l.key==="Enter"?this.handleClickEvent(l):l.key===" "&&l.preventDefault()};
_.X.onContentKeyUp=function(l){l.key===" "&&this.handleClickEvent(l)};
pt.prototype.dataChanged=pt.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],pt.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pt.prototype,"data",void 0);_.L([_.T({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],pt.prototype,"hasEndpoint",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],pt.prototype,"isInOfferModule",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],pt.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],pt);
_.Y(pt,"ytd-channel-masthead-renderer",function(){if(z_P!==void 0)return z_P;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return z_P=l},{mode:1});var bSH;var Kt=function(){var l=_.B.apply(this,arguments)||this;l.thumbnailObjectFit="CONTAIN";l.thumbnailObjectPosition="LEFT";l.isExpanded=!1;return l};
_.m(Kt,_.B);_.X=Kt.prototype;_.X.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.X.dataChanged=function(){this.resetStates()};
_.X.computeisTapOnOfferInfoContainerEnabled=function(){var l;return((l=this.data)==null?void 0:l.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.X.onExpandBtnClick=function(){var l,e=_.I((l=this.data)==null?void 0:l.showMoreButtonRenderer,HbH);e&&_.gn(_.yN(),e.trackingParams);this.isExpanded=!this.isExpanded};
_.X.onOfferInfoClick=function(l){this.isTapOnOfferInfoContainerEnabled&&(_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.JM(_.ey(l)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.X.onBottomBarClick=function(){this.executeTapCommand()};
_.X.executeTapCommand=function(){var l,e=(l=this.data)==null?void 0:l.tapCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.X.resetStates=function(){this.isExpanded=!1};
_.Ji.Object.defineProperties(Kt.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var l=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),e,O,E;return((e=this.data)==null?void 0:e.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&l&&!!((O=this.data)==null?0:(E=O.benefits)==null?0:E.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((e=_.I((l=this.data)==null?void 0:l.showMoreButtonRenderer,HbH))==null?void 0:e.showMoreButtonTitle)||((O=this.data)==null?void 0:O.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((e=_.I((l=this.data)==null?void 0:l.showMoreButtonRenderer,HbH))==null?void 0:e.showLessButtonTitle)||((O=this.data)==null?void 0:O.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var l;return(l=this.showLessButtonTitle)!=null?l:""}var e;return(e=this.showMoreButtonTitle)!=null?e:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?void 0:l.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((e=this.data)==null?0:e.footerTitle)||((O=this.data)==null?0:O.footerSubtitle))}}});
Kt.prototype.dataChanged=Kt.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Kt.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",String)],Kt.prototype,"thumbnailObjectFit",void 0);
_.L([_.T(),_.q("design:type",String)],Kt.prototype,"thumbnailObjectPosition",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.q("design:type",Boolean)],Kt.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.L([_.T(),_.q("design:type",Object)],Kt.prototype,"isExpanded",void 0);_.L([_.T(),_.q("design:type",Object)],Kt.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.footerIcon)"}),_.q("design:type",String)],Kt.prototype,"icon",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kt.prototype,"dataChanged",null);_.L([_.R("data.thumbnail"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kt.prototype,"hasThumbnail",null);_.L([_.R("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kt.prototype,"enableExpandButton",null);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kt.prototype,"enableOfferContentIcon",null);_.L([_.R("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Kt.prototype,"showMoreButtonTitle",null);_.L([_.R("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Kt.prototype,"showLessButtonTitle",null);
_.L([_.R("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.q("design:type",String),_.q("design:paramtypes",[])],Kt.prototype,"expandedBtnText",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Kt.prototype,"enableBottomBar",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Kt);
_.Y(Kt,"ytd-offer-card-renderer",function(){if(bSH!==void 0)return bSH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return bSH=l},{mode:1});var Msi;var jX=function(){return _.B.apply(this,arguments)||this};
_.m(jX,_.B);jX.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"}}}};
jX.prototype.onClick=function(l){if(!_.Eh(l.composedPath()||[],this.hostElement,["A".toString()])){var e,O;if((l=(O=_.I((e=this.data)==null?void 0:e.actionButton,_.YU))==null?void 0:O.command)&&!this.ytComponentBehavior.resolveCommand(l)){var E;(E=_.yN())==null||E.clickCommand(l);_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})}}};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],jX.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jX.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],jX);
_.Y(jX,"ytd-offer-content-renderer",function(){if(Msi!==void 0)return Msi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Msi=l},{mode:1});var Vsi;var H_=function(){return _.B.apply(this,arguments)||this};
_.m(H_,_.B);H_.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Ji.Object.defineProperties(H_.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.title)||!((e=this.data)==null||!e.description)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],H_.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],H_.prototype,"hasHeaderData",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],H_);
_.Y(H_,"ytd-offer-section-renderer",function(){if(Vsi!==void 0)return Vsi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Vsi=l},{mode:1});var ZS0;var c_=function(){return _.B.apply(this,arguments)||this};
_.m(c_,_.B);
c_.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],c_.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],c_);
_.Y(c_,"ytd-offer-selection-step-renderer",function(){if(ZS0!==void 0)return ZS0;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ZS0=l},{mode:1});var u7P;var Fg=function(){return _.B.apply(this,arguments)||this};
_.m(Fg,_.B);Fg.prototype.computeStyle=function(l){return l};
Fg.prototype.computeImageWidth=function(l){return l==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.L([_.T({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.q("design:type",String)],Fg.prototype,"containerStyle",void 0);_.L([_.T({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.q("design:type",String)],Fg.prototype,"imageWidth",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Fg.prototype,"data",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Fg);
_.Y(Fg,"ytd-confirmation-masthead-renderer",function(){if(u7P!==void 0)return u7P;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return u7P=l},{mode:1});var CJu;var ft=function(){return _.B.apply(this,arguments)||this};
_.m(ft,_.B);ft.prototype.computeStyle=function(l){return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ft.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.q("design:type",String)],ft.prototype,"containerStyle",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],ft);
_.Y(ft,"ytd-purchase-complete-detail-renderer",function(){if(CJu!==void 0)return CJu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return CJu=l},{mode:1});var ooz;var Rh=function(){var l=_.B.apply(this,arguments)||this;l.scriptsAppended=!1;return l};
_.m(Rh,_.B);Rh.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"}}}};
Rh.prototype.onDataChanged=function(){var l=this.get("data.gtmId");l&&(_.fQ(l,_.hT("GL","")),this.setupConversionTracking())};
Rh.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var l=document.createElement("noscript");l.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(l);this.scriptsAppended=!0}};
Rh.prototype.onDataChanged=Rh.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Rh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Rh.prototype,"scriptsAppended",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Rh.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Rh);
_.Y(Rh,"ytd-purchase-complete-step-renderer",function(){if(ooz!==void 0)return ooz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ooz=l},{mode:1});var $af;var Tf=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(Tf,_.B);Tf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Tf.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Tf.prototype,"darkerDarkTheme",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Tf);
_.Y(Tf,"ytd-ypc-transaction-error-message-renderer",function(){if($af!==void 0)return $af;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $af=l},{mode:1});var WFH;var daP;var sJ=function(){var l=_.B.apply(this,arguments)||this;l.handlePhoneVerificationSuccess=function(e){if(l.isValidPhoneVerificationCompletionMessageEvent(e)){var O;((O=l.data)==null?0:O.nextStepCommand)&&l.ytComponentBehavior.resolveCommand(l.data.nextStepCommand)}};
return l};
_.m(sJ,_.B);sJ.prototype.isValidPhoneVerificationCompletionMessageEvent=function(l){if(l.data!=="yt-phone-verification-complete")return!1;l=_.Es(l.origin);return l!==null&&l.includes("youtube.com")};
sJ.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
sJ.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sJ.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sJ.prototype,"data",void 0);_.L([_.Ps({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],sJ);
_.Y(sJ,"yt-feature-enablement-soft-entry-renderer",function(){if(daP===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;WFH===void 0&&(WFH=document.createElement("template"));var E=WFH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);daP=l}l=daP;return l},{mode:1});var goF;var iSu;var w3o;var AFh;var nof=function(){return _.B.apply(this,arguments)||this};
_.m(nof,_.B);_.L([_.T(),_.q("design:type",Object)],nof.prototype,"data",void 0);_.L([_.Ps({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],nof);
_.Y(nof,"yt-benefits-item-renderer",function(){if(AFh===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;w3o===void 0&&(w3o=document.createElement("template"));var E=w3o;O.call(e,E.content.cloneNode(!0),l.content.firstChild);AFh=l}l=AFh;return l},{mode:2});var aci;var khH;var Gf=function(){return _.B.apply(this,arguments)||this};
_.m(Gf,_.B);Gf.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Gf.prototype.computeisWithoutPadding=function(){var l;return((l=this.data)==null?void 0:l.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Gf.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.q("design:type",Boolean)],Gf.prototype,"isWithoutPadding",void 0);_.L([_.Ps({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Gf);
_.Y(Gf,"yt-benefits-section-renderer",function(){if(khH===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;aci===void 0&&(aci=document.createElement("template"));var E=aci;O.call(e,E.content.cloneNode(!0),l.content.firstChild);khH=l}l=khH;return l},{mode:2});var B_=function(){return _.B.apply(this,arguments)||this};
_.m(B_,_.B);B_.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
B_.prototype.computeisUsingLargeWidth=function(){var l;return((l=this.data)==null?void 0:l.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],B_.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.q("design:type",Boolean)],B_.prototype,"isUsingLargeWidth",void 0);_.L([_.Ps({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],B_);
_.Y(B_,"yt-benefits-flow-step-renderer",function(){if(iSu===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;goF===void 0&&(goF=document.createElement("template"));var E=goF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);iSu=l}l=iSu;return l},{mode:2});var Icu;var ma3;var P_=function(){return _.B.apply(this,arguments)||this};
_.m(P_,_.B);P_.prototype.checkIsUsingLargeWidth=function(){var l;return((l=this.data)==null?void 0:l.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.T(),_.q("design:type",Object)],P_.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.L([_.T({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.q("design:type",Boolean)],P_.prototype,"isUsingLargeWidth",void 0);_.L([_.Ps({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],P_);
_.Y(P_,"yt-confirmation-flow-step-renderer",function(){if(ma3===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Icu===void 0&&(Icu=document.createElement("template"));var E=Icu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);ma3=l}l=ma3;return l},{mode:2});var yFh;var p34;var KFf=function(){return _.B.apply(this,arguments)||this};
_.m(KFf,_.B);_.L([_.T(),_.q("design:type",Object)],KFf.prototype,"data",void 0);_.L([_.Ps({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],KFf);
_.Y(KFf,"yt-info-flow-step-renderer",function(){if(p34===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;yFh===void 0&&(yFh=document.createElement("template"));var E=yFh;O.call(e,E.content.cloneNode(!0),l.content.firstChild);p34=l}l=p34;return l},{mode:2});var jLC;var HSi;var cFh=function(){return _.B.apply(this,arguments)||this};
_.m(cFh,_.B);_.L([_.T(),_.q("design:type",Object)],cFh.prototype,"data",void 0);_.L([_.Ps({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],cFh);
_.Y(cFh,"yt-info-list-flow-step-renderer",function(){if(HSi===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;jLC===void 0&&(jLC=document.createElement("template"));var E=jLC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);HSi=l}l=HSi;return l},{mode:2});var FFo=_.XO(function(l){var e=l.data;return _.W("styled-text-view-model",{class:_.ax("ytStyledTextViewModelHost",function(){return NpC(e().fontAttributes)},function(){return vAC(e().color)})},_.W(_.zK,{text:function(){return e().text},
ariaLabel:function(){var O,E,J;return(J=(O=e().accessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label)!=null?J:""}}))},"af");
FFo.idomCompat=!0;var fcP=_.XO(function(l){var e=function(){var J,z,M,Z;return(Z=(M=(J=l.alt)==null?void 0:J.call(l))!=null?M:(z=l.data().accessibilityData)==null?void 0:z.label)!=null?Z:""},O=function(){return l.data().imageWidth},E=function(){return l.data().imageHeight};
return _.W("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.W(_.A,{cond:function(){var J=l.data();if(J){var z,M,Z;var u=((z=_.V2().resolve(_.MG(_.lp)))==null?0:z())?(M=J.imageDark)!=null?M:J.imageLight:(Z=J.imageLight)!=null?Z:J.imageDark}else u=void 0;return u},
then:function(J){return _.W(_.Jm,Object.assign({},l,{data:J,alt:e,targetWidth:O,targetHeight:E,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
fcP.idomCompat=!0;var UJ=_.XO(function(l){var e=l.data;l=_.Et(function(){return e().slots},[]);
var O=_.Et(function(){return e().layoutProperties},{}),E=_.V2().resolve(_.OL);
return _.W("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Y$i(O,E)},_.W(_.KH,{each:l,keyBy:"INDEX"},function(J){return _.W("div",{class:"ytContainerLayoutViewModelSlot",style:Y$i(function(){return J().layoutProperties},E)},_.W(_.Tn,{data:function(){return J().contents}},{containerLayoutViewModel:UJ,
badgeViewModel:_.MU,buttonViewModel:_.hM,styledTextViewModel:FFo,contentPreviewImageViewModel:function(z){return _.W(_.VD,{data:z.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(z){return _.W(fcP,{data:z.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
UJ.idomCompat=!0;var R_4=_.XO(function(l){var e=l.data;var O=l.stateFns;var E=function(){var d=e(),g=d.productId;return!(!d.clearGroupId&&!g)},J=function(){var d=e(),g=d.clearGroupId;
return(d=d.productId)?O().isProductSelected(d):g?O().getSelectedProductByGroupId(g)==null:!1},z=function(){var d=e(),g=d.clearGroupId;
if(d=d.productId)O().onProductSelected(d);else if(g)O().onClearGroupSelected(g)},M=function(){var d=e(),g=d.clearGroupId;
if(d=d.productId){var w;return"group:"+(((w=O().getProductById(d))==null?void 0:w.groupId)||"")}return g?"group:"+g:""},Z=_.Et(function(){return e().header},[]),u=_.Et(function(){return e().body},[]);
return _.W("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.W(_.A,{cond:function(){return Z().length>0||E()},
then:function(){return _.W("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.W("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.W(_.Tn,{data:Z},{containerLayoutViewModel:function(d){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(UJ,{data:d.data}))},
styledTextViewModel:function(d){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(FFo,{data:d.data}))}})),_.W(_.A,{cond:E,
then:function(){return _.W("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.W(_.Kc,{checked:J,name:M,onChange:z}))}}))}}),_.W(_.A,{cond:function(){return u().length>0},
then:function(){return _.W("div",null,_.W(_.Tn,{data:u},{containerLayoutViewModel:function(d){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(UJ,{data:d.data}))}}))}}))},"df");
R_4.idomCompat=!0;var TX4=_.XO(function(l){var e=l.data;var O=l.stateFns;return _.W("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.W(_.A,{cond:function(){return e().banner},
then:function(E){return _.W("div",{class:"ytPdpCardViewModelBanner"},_.W(_.zK,{text:E}))}}),_.W(_.Tn,{data:function(){return e().sections}},{pdpCardSectionViewModel:function(E){E=E.data;
var J={};return _.W("div",{class:_.ax("ytPdpCardViewModelSectionContainer",(J.ytPdpCardViewModelShowDividers=function(){return e().showDividers},J))},_.W(R_4,{data:E,
stateFns:O}))}}))},"ef");
TX4.idomCompat=!0;var sL0=_.XO(function(l){var e=l.data;var O=l.isOverlay;l={};return _.W("pdp-masthead-view-model",{class:_.ax("ytPdpMastheadViewModelHost",(l.ytPdpMastheadViewModelIsOverlay=O,l))},_.W(_.Tn,{data:function(){return e().image}},{contentPreviewImageViewModel:_.VD,
themedImageViewModel:function(E){return _.W(fcP,{data:E.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.W(_.A,{cond:function(){return e().title},
then:function(E){return _.W("h1",{class:"ytPdpMastheadViewModelHeading"},_.W(_.zK,{text:E,isOverlay:O}))}}),_.W(_.KH,{each:function(){var E;
return(E=e().finePrint)!=null?E:[]}},function(E){return _.W("div",{class:"ytPdpMastheadViewModelFinePrint"},_.W(_.zK,{text:E,
isOverlay:O}))}))},"ff");
sL0.idomCompat=!0;var Gho=_.XO(function(l){var e=l.data;var O=l.stateFns;return _.W("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.W(_.KH,{each:function(){var E=O().getSelectedPricingOptions().map(function(z){return z.pricingOptionId}),J=O().getSelectedProductByGroupId(e().groupId);
return J?J.pricingOptions.map(function(z){return{pricingOption:z,isSelected:E.includes(z.pricingOptionId)}}):(_.YE(Error("Jj`"+e().groupId)),[])},
keyBy:"INDEX"},function(E){return _.W("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.W(_.Tn,{data:function(){return E().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:UJ})),_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.W(_.Kc,{checked:function(){return E().isSelected},
onClick:function(){O().onPricingOptionSelected(E().pricingOption.pricingOptionId);var J=E().pricingOption.onSelectPricingOption;if(J=_.t3(J)){var z;(z=_.V2().resolve(_.Zh))==null||z.resolveCommand(J)}}})))}))},"gf");
Gho.idomCompat=!0;var BXP=_.XO(function(l){var e=l.data;var O=l.stateFns;return _.W("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.W(_.Tn,{data:function(){var E,J;return(J=(E=O().getSelectedPricingOptions()[0])==null?void 0:E.primaryButton)!=null?J:e().emptyStateButton}},{buttonViewModel:_.hM}))},"hf");
BXP.idomCompat=!0;var PJ4=_.XO(function(l){var e=l.stateFns;return _.W("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.W(_.Tn,{data:function(){return e().getSelectedPricingOptions().flatMap(function(O){return O.summaryLines}).filter(function(O){return!!O})}},{containerLayoutViewModel:function(O){return _.W("div",{class:"ytPdpSummaryViewModelLineItem"},_.W(UJ,{data:O.data}))}}))},"jf");
PJ4.idomCompat=!0;var UaF=_.XO(function(l){function e(f){var P=M();_.Ot(_.Gn("pdpStateEntity",P,{key:P,selectedPricingOptions:f}))}
var O=l.data;var E=l.internalScrolling;var J=l.stateFnsForTesting;var z=_.Et(function(){return O().allProducts},[]),M=_.Et(function(){return O().pdpStateEntityKey},""),Z=_.kD(rDh,M),u=_.mF(function(){_.UB(!0);
var f;return(f=J==null?void 0:J())!=null?f:l7f(Z,z,e)},void 0,"tAB69c"),d=_.Et(function(){return O().body},[]),g=_.Et(function(){return O().columnBreakHints},[]),w=function(){return O().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},n=function(){return w()||O().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},k=_.mF(function(){var f=_.XL(O().background),P;
if(f==null?0:(P=f.sources)==null?0:P.length){var h=h===void 0?!0:h;f=_.ZcT(void 0,f.sources,void 0,h,h?1E3:void 0,h?void 0:1E3)}else f=null;return f},void 0,"bHjkUb");
l=_.HF({"--pdp-view-model-background":function(){return k()?"url("+k()+")":void 0}});
var y={};E=_.ax("ytPdpViewModelHost",(y.ytPdpViewModelHasBackground=function(){return n()||!!k()},y.ytPdpViewModelHasDarkBackground=n,y.ytPdpViewModelHasScrim=w,y.ytPdpViewModelInternalScrolling=_.Et(E,!1),y));
var c=function(f){var P={};return _.ax("ytPdpViewModelItem",(P.ytPdpViewModelFullBleed=function(){return _.La2(f())==="dividerViewModel"||_.La2(f())==="sectionHeaderViewModel"},P.ytPdpViewModelNoVerticalPadding=function(){return _.La2(f())==="sectionHeaderViewModel"},P))};
_.sC(function(){var f=O().onStartCommand;if(f&&(f=_.t3(f))){var P;(P=_.V2().resolve(_.Zh))==null||P.resolveCommand(f)}});
return _.W("pdp-view-model",{class:E,style:l},_.W("div",{class:"ytPdpViewModelColumnContainer"},_.W(_.KH,{each:function(){return ewP(d(),g())},
keyBy:"INDEX"},function(f){return _.W("div",{class:"ytPdpViewModelColumn"},_.W(_.Tn,{data:f},{containerLayoutViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(UJ,{data:P}))},
dividerViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(_.YcS,{data:P}))},
pdpCardViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(TX4,{data:P,
stateFns:u}))},
pdpMastheadViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(sL0,{data:P,
isOverlay:n}))},
pdpPricingOptionSelectorViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(Gho,{data:P,
stateFns:u}))},
pdpPrimaryButtonViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(BXP,{data:P,
stateFns:u}))},
pdpSummaryViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(PJ4,{data:P,
stateFns:u}))},
sectionHeaderViewModel:function(P,h){P=P.data;return _.W("div",{class:c(function(){return f()[h()]})},_.W(_.z3,{data:P}))}}))})))},"kf");
UaF.idomCompat=!0;_.Zw(UaF,"pdp-view-model",{props:{data:_.lB,stateFnsForTesting:_.Vh,internalScrolling:_.Vh}});var YBo=_.XO(function(l){var e=l.data;var O=l.className;var E=_.kD(_.ZL,function(){return e().flowStateEntityKey});
return _.W("ytm-premium-purchase-button-renderer",{class:_.ax("yt-premium-purchase-button-renderer",O)},_.W(_.Tn,{data:function(){var J;return(J=_.I(E(),ESC))==null?void 0:J.primaryButtonOverride}},{buttonRenderer:function(J){return _.W(_.vp,{data:J.data,
className:O})},
buttonViewModel:function(J){return _.W(_.hM,{data:J.data,className:O})}}))},"lf");
YBo.idomCompat=!0;var h_z=_.XO(function(l){var e=l.data;l=l.className;var O=function(){return OFi(e().style)},E=_.ax("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",O),J=_.ax("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",O);
return _.W("yt-flow-bottom-bar-renderer",{class:_.ax("yt-flow-bottom-bar-renderer",l,O)},_.W(_.Tn,{data:function(){return e().secondaryButton}},{buttonRenderer:function(z){return _.W(_.vp,{data:z.data,
className:J})},
buttonViewModel:function(z){return _.W(_.hM,{data:z.data,className:J})},
premiumPurchaseButtonRenderer:function(z){return _.W(YBo,{data:z.data,className:J})}}),_.W(_.Tn,{data:function(){return e().primaryButton}},{buttonRenderer:function(z){return _.W(_.vp,{data:z.data,
className:E})},
buttonViewModel:function(z){return _.W(_.hM,{data:z.data,className:E})},
premiumPurchaseButtonRenderer:function(z){return _.W(YBo,{data:z.data,className:E})}}))},"mf");
h_z.idomCompat=!0;_.Zw(h_z,"yt-flow-bottom-bar-renderer",{props:{data:_.lB,className:_.lB}});var LFo=_.XO(function(l){var e=_.ax(l.className,"ytOfferSummaryRendererHost");return _.W("yt-offer-summary-renderer",{class:e},_.W("div",{class:"ytOfferSummaryRendererTextContainer"},_.W("div",{class:"ytOfferSummaryRendererEyebrowText"},_.W(_.zK,{text:function(){return l.data().eyebrowText}})),_.W("div",{class:"ytOfferSummaryRendererTitle"},_.W(_.zK,{text:function(){return l.data().title}})),_.W("div",{class:"ytOfferSummaryRendererSubtitle"},_.W(_.zK,{text:function(){return l.data().subtitle}})),
_.W("div",{class:"ytOfferSummaryRendererFeatureListData"},_.W(_.KH,{each:function(){var O;
return(O=l.data().featureListData)!=null?O:[]}},function(O){var E;
return _.W("div",{class:"ytOfferSummaryRendererFeatureList"},_.W(_.cF,{icon:(E=O.icon)==null?void 0:E.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"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.W("div",{class:"ytOfferSummaryRendererFeatureListText"},_.W(_.zK,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.W("div",{class:"ytOfferSummaryRendererDescription"},_.W(_.zK,{text:function(){return l.data().description}}))))},"nf");_.Zw(_.XO(function(l){var e={};e=_.ax("ytOfferSummaryFlowStepRendererHost",(e.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=l.shouldDisableHeaderTopMargin,e));return _.W("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:e},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.W(_.zK,{text:function(){return l.data().header}})),_.W("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.W(_.zK,{text:function(){return l.data().subtitle}}))),_.W("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.W(_.Tn,{data:function(){return l.data().offerSummary}},{offerSummaryRenderer:function(O){return _.W(LFo,{data:O.data,
className:l.flowClassName})}})))},"of"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Vh,
flowClassName:_.Vh,flowStateEntityKey:_.Vh,shouldDisableHeaderTopMargin:_.Vh}});var ts4=_.XO(function(l){var e=l.data;var O=l.className;var E=l.flowStateEntityKey;var J=l.selectionStepStyle;l=_.pd(function(u){var d=e(),g=E==null?void 0:E();u.target&&(u.stopPropagation(),u=g||"",g=_.ZL(_.ls().getState(),u),d=Object.assign({},g,{premiumPurchaseFlowState:{selectedOptionId:d.optionId,primaryButtonOverride:d.primaryButtonOverride}}),_.ls().dispatch(_.IK("flowStateEntity",u,d)));return!1});
var z=function(){return(E==null?void 0:E())||""},M=_.kD(_.ZL,z);
_.sC(function(){var u=e(),d=z(),g=M();u.defaultSelected&&d!==""&&u.primaryButtonOverride&&JnH(u.optionId||"",d,u.primaryButtonOverride,g)});
var Z={};return _.W("ytm-option-item-renderer",{"on:click":l,class:_.ax(O,"ytm-option-item-renderer",(Z["ytm-option-item-renderer--lp2-style"]=function(){return(J==null?void 0:J())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Z))},_.W("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.W("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var u=e(),d=z(),g=M();g=_.I(g,ESC);return(g?(g==null?void 0:g.selectedOptionId)||"":u.defaultSelected&&d!==""?(u==null?void 0:u.optionId)||"":"")===e().optionId},
name:("input"+_.Be(_.yp)).toString()})),_.W("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.W(_.A,{cond:function(){return e().eyebrowText},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.W(_.zK,{text:function(){return e().eyebrowText}}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-title"},_.W(_.zK,{text:function(){return e().title}})),_.W("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.W(_.zK,{text:function(){return e().subtitle}})),_.W(_.A,{cond:function(){return e().featureListData},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__feature-list-data"},_.W(_.KH,{each:function(){return e().featureListData||[]}},function(u){var d,g=(d=u.icon)==null?void 0:d.iconType;
a:switch(u.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":d="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":d="ytm-option-item-renderer__feature-list-icon-small";break a;default:d="ytm-option-item-renderer__feature-list-icon-default"}return _.W("div",{class:"ytm-option-item-renderer__feature-list"},_.W(_.cF,{icon:g,className:d,active:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.W("div",{class:"ytm-option-item-renderer__feature-list-text"},_.W(_.zK,{text:u.text,
className:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-description"},_.W(_.zK,{text:function(){return e().description}}))))},"pf");var qBu=_.XO(function(l){var e=l.data;var O=l.flowClassName;var E=l.flowStateEntityKey;var J=l.selectionStepStyle;return _.W("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.W("div",{class:"yt-option-section-renderer__option-section-header-section"},_.W("div",{class:"yt-option-section-renderer__option-section-header"},_.W(_.zK,{text:function(){return e().title}}),_.W(_.Tn,{data:function(){return e().titleBadge}},{badgeViewModel:function(z){return _.W(_.MU,
{data:z.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.W(_.A,{cond:function(){return e().subtitle},
then:function(){return _.W("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.W(_.zK,{text:function(){return e().subtitle}}))}}),_.W(_.A,{cond:function(){return e().featureListData},
then:function(z){return _.W("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.W(_.KH,{each:z},function(M){var Z;return _.W("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.W(_.cF,{icon:(Z=M.icon)==null?void 0:Z.iconType,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.W("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.W(_.zK,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.W(_.A,{cond:function(){return e().secondaryTitle},
then:function(){return _.W("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.W(_.zK,{text:function(){return e().secondaryTitle}}))}}),_.W(_.KH,{each:function(){return e().sectionDisclaimers||[]}},function(z){return _.W("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.W(_.zK,{text:z}))})),_.W(_.Tn,{data:function(){return e().optionItems}},{optionItemRenderer:function(z){return _.W("div",{class:"yt-option-section-renderer__option-item"},_.W(ts4,{data:z.data,
className:O,flowStateEntityKey:E,selectionStepStyle:J}))}}),_.W(_.A,{cond:function(){return e().offerText},
then:function(){return _.W("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.W(_.zK,{text:function(){return e().offerText}}))}}))},"qf");
qBu.idomCompat=!0;var voC=_.XO(function(l){var e=l.data;var O=l.flowClassName;var E=l.flowStateEntityKey;l=l.isDesktop;var J=function(){var d;return(d=e().flowStateEntityKey)!=null?d:E==null?void 0:E()},z=function(){return(J==null?void 0:J())||""},M=function(){return e().style},Z=_.kD(_.ZL,z);
_.sC(function(){var d=e(),g=z(),w=Z();!_.I(w,ESC)&&d.noPreselect&&g!==""&&d.defaultButtonOverride&&JnH("default",g,d.defaultButtonOverride,w)});
var u={};return _.W("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ax("ytm-option-selection-flow-step-renderer",(u["ytm-option-selection-flow-step-renderer--desktop"]=l,u["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return e().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.W("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"},
_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.W(_.zK,{text:function(){return e().header}})),_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.W(_.zK,{text:function(){return e().subtitle}}))),_.W(_.Tn,{data:function(){return e().optionItems||[]}},{optionItemRenderer:function(d){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.W(ts4,{data:d.data,
className:O,flowStateEntityKey:J,selectionStepStyle:M}))},
optionSectionRenderer:function(d){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.W(qBu,{data:d.data,flowClassName:O,flowStateEntityKey:J,selectionStepStyle:M}))}}))},"rf");
voC.idomCompat=!0;_.Zw(voC,"yt-option-selection-flow-step-renderer",{props:{data:_.lB,flowClassName:_.lB,flowStateEntityKey:_.lB,isDesktop:_.lB}});var XRH,zw4;_.Y9=_.XO(function(l){var e=_.J3(l,{type:1,disablePadding:!1,disablePrimaryButton:!1}),O=e.data,E=e.type;l=e.disablePadding;var J=e.disablePrimaryButton,z=e.onClickPrimaryButton,M=function(){return O().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},Z=function(){return{disabled:J(),
state:J()?"disabled":"active"}},u=function(){return O().leadingLabel||O().trailingLabel};
e={};return _.W("yt-panel-footer-view-model",{class:_.ax("yt-panel-footer-view-model-wiz",(e["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return O().shouldHideDivider},e["yt-panel-footer-view-model-wiz--disable-padding"]=l,e))},_.W(_.A,{cond:u,
then:function(){var d={},g={};return _.W("div",{class:_.ax("yt-panel-footer-view-model-wiz__text-row",(d["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var w=O();return!(!w.leadingLabel&&!w.trailingLabel||!w.primaryButton&&!w.secondaryButton)},d))},_.W(_.zK,{text:function(){return O().leadingLabel},
className:_.ax((g["yt-panel-footer-view-model-wiz--text-padding"]=u,g))}),_.W(_.zK,{text:function(){return O().trailingLabel}}))}}),_.W(_.A,{cond:M,
then:function(){var d={};return _.W("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.W("div",{class:_.ax("yt-panel-footer-view-model-wiz__primary-button",(d["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return O().secondaryButton},d))},_.W(_.Tn,{data:function(){return O().primaryButton}},{buttonViewModel:function(g){return _.W(_.hM,{data:g.data,
buttonOverrides:Z,onClick:z})}})),_.W(_.Tn,{data:function(){return O().secondaryButton}},{buttonViewModel:_.hM}))}}),_.W(_.A,{cond:function(){return!M()},
then:function(){var d={},g={},w={};return _.W("div",{class:_.ax("yt-panel-footer-view-model-wiz__button-row",(d["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===E()},d))},_.W("div",{class:_.ax("yt-panel-footer-view-model-wiz__button-row--left-button",(g["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===E()},g["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!O().secondaryButton||0===E()},g["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===E()},g))},_.W(_.Tn,{data:function(){return O().secondaryButton}},{buttonViewModel:_.hM})),_.W("div",{class:_.ax("yt-panel-footer-view-model-wiz__primary-button",(w["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===E()||1===E()},w["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===E()},w))},_.W(_.Tn,{data:function(){return O().primaryButton}},{buttonViewModel:function(n){return _.W(_.hM,{data:n.data,
buttonOverrides:Z,onClick:z})}})))}}))},"sf");
_.Y9.idomCompat=!0;_.NXF=_.XO(function(l){l=_.J3(l,{disablePadding:!1});var e=l.data,O=l.disablePadding;l=_.ZFP(function(){return e().formId});
var E=l.onSubmit,J=l.isValid,z=l.isSubmitting;return _.W("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.W(_.Tn,{data:function(){return e().panelFooter}},{panelFooterViewModel:function(M){return _.W(_.Y9,{data:M.data,
onClickPrimaryButton:function(){E()},
disablePrimaryButton:function(){return!J()||z()},
disablePadding:O})}}))},"tf");_.Zw(_.NXF,"yt-form-footer-view-model",{props:{data:_.lB,disablePadding:_.lB}});_.Zw(_.XO(function(l){return _.W("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.W(_.A,{cond:function(){var e;return(e=l.data())==null?void 0:e.image},
then:function(e){return _.W(_.Jm,{data:e,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.W(_.zK,{text:function(){var e;
return(e=l.data())==null?void 0:e.title}})),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.W(_.zK,{text:function(){var e;
return(e=l.data())==null?void 0:e.subtitle}})),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.W(_.Tn,{data:function(){var e;
return(e=l.data())==null?void 0:e.viewTipsButton}},{buttonViewModel:_.hM}))))},"uf"),"yt-contributor-zero-state-view-model",{props:{data:_.lB}});var rFP=_.XO(function(l){var e=_.kD(uei,_.Et(function(){var O;return(O=l.data())==null?void 0:O.noteFeedEntityKey},""));
return _.W("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.W(_.A,{cond:function(){var O,E;return(O=l.data())==null?void 0:(E=O.noteData)==null?void 0:E.isPinned},
then:function(){return _.W(_.cF,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.W(_.zK,{text:function(){var O,E;
return(O=l.data())==null?void 0:(E=O.noteData)==null?void 0:E.headerText}}),_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.W(_.zK,{text:function(){var O,E;
return(O=l.data())==null?void 0:(E=O.noteData)==null?void 0:E.delimiter}})),_.W(_.zK,{text:function(){var O,E;
return(O=e())==null?void 0:(E=O.contributorNote)==null?void 0:E.publishedTimeText}})),_.W(_.Tn,{data:function(){var O,E,J,z=(O=l.data())==null?void 0:O.noteData;
O=(E=e())==null?void 0:(J=E.contributorNote)==null?void 0:J.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:z.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:z.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:z.deleteDialogTitle}]},dialogMessages:[{runs:[{text:z.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:z.deleteActionText}]},command:{performCommentActionEndpoint:{action:O}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:z.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.W("div",{class:"ytNoteViewModelNoteContent"},_.W(_.zK,{text:function(){var O,E;
return(O=e())==null?void 0:(E=O.contributorNote)==null?void 0:E.text}})))},"vf");
rFP.idomCompat=!0;_.Zw(rFP,"yt-note-view-model",{props:{data:_.lB}});var hj=_.XO(function(l){var e=_.J3(l,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),O=e.label,E=e.text,J=e.placeholder,z=e.hint;l=e.rows;var M=e.overflowStyle,Z=e.outline,u=e.disabled,d=e.disableNewLines,g=e.characterLimit,w=e.validation,n=e.onInput,k=_.e4("textarea");e=_.b(_.jN(function(){return E()}));
var y=e.next().value,c=e.next().value;e=_.b(_.AF(!1,void 0,"fXvinf"));var f=e.next().value,P=e.next().value,h=function(){P(!0)},N=function(){P(!1)};
_.sC(function(){var tq=k.value,Px=M(),S0=y();Px==="expand-vertically"&&S0&&CXF(tq);k.value.addEventListener("focusin",h);k.value.addEventListener("focusout",N)});
_.B3(function(){k.value.removeEventListener("focusin",h);k.value.removeEventListener("focusout",N)});
var t=function(){var tq;return(tq=w())==null?void 0:tq.validate(y())},r=function(){return g()&&!t()&&y().length>g().maxChars},D=function(){return!!t()||r()};
e=_.pd(function(tq){if(!tq.currentTarget)return!1;tq=tq.currentTarget;c(tq.value);M()==="expand-vertically"&&CXF(tq);n==null||n(tq.value);return!0});
var b2=_.pd(function(tq){d()&&tq.key==="Enter"&&tq.preventDefault();return!1}),$V=_.pd(function(){k.value.focus()}),gT=function(){return J()||O()},mx={},jM={},cx={};
return _.W("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.W("div",{class:_.ax("ytStandardsTextareaShapeTextareaContainer",(mx.ytStandardsTextareaShapeTextareaContainerOutline=Z,mx.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=u,mx.ytStandardsTextareaShapeTextareaContainerOutlineError=D,mx)),"on:click":$V},_.W("label",{class:_.ax("ytStandardsTextareaShapeLabel",(jM.ytStandardsTextareaShapeLabelFocused=f,jM.ytStandardsTextareaShapeLabelDisabled=u,jM.ytStandardsTextareaShapeLabelError=
function(){return D()&&!u()},jM.ytStandardsTextareaShapeLabelHidden=function(){return!f()&&!y()&&!!gT()},jM))},O),_.W("div",{class:_.ax("ytStandardsTextareaShapePlaceholder",(cx.ytStandardsTextareaShapePlaceholderVisible=function(){return!f()&&!y()},cx)),
"aria-hidden":"true"},gT),_.W("textarea",{el:k,class:"ytStandardsTextareaShapeTextarea",rows:l,disabled:u,placeholder:gT,"on:input":e,"on:keydown":b2},y)),_.W(_.A,{cond:function(){return z()&&!D()},
then:function(){var tq={};return _.W("div",{class:_.ax("ytStandardsTextareaShapeHint",(tq.ytStandardsTextareaShapeHintDisabled=u,tq))},_.W("div",{class:"ytStandardsTextareaShapeHintHintMessage"},z))}}),_.W(_.A,{cond:t,
then:function(){return _.W(Daf,{disabled:u},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},t))}}),_.W(_.A,{cond:g,
then:function(tq){return _.W(_.A,{cond:r,then:function(){return _.W(Daf,{disabled:u},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return tq().errorMessage}),_.W("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return y().length+"/"+tq().maxChars}))}})}}))},"wf");
hj.idomCompat={callbacks:{onInput:!0}};var Daf=_.XO(function(l){var e={};return _.W("div",{class:_.ax("ytStandardsTextareaShapeError",(e.ytStandardsTextareaShapeErrorDisabled=l.disabled,e)),role:"alert"},_.W(_.cF,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),l.children)},"xf");_.SB4=_.XO(function(l){var e=l.data;return _.W("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.W(hj,{text:l.text,label:function(){var O;return(O=e().contentProperties)==null?void 0:O.labelText},
placeholder:function(){var O;return(O=e().contentProperties)==null?void 0:O.placeholderText},
hint:function(){var O;return(O=e().contentProperties)==null?void 0:O.hintText},
outline:function(){var O;return!((O=e().displayProperties)==null?0:O.hideBorder)},
overflowStyle:function(){var O;return((O=e().displayProperties)==null?0:O.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:l.disabled,disableNewLines:function(){var O;return(O=e().displayProperties)==null?void 0:O.disableNewLines},
onInput:l.onInput,characterLimit:l.characterLimit,validation:l.validation,rows:function(){var O;return(O=e().displayProperties)==null?void 0:O.rows}}))},"yf");_.QLu=_.XO(function(l){var e=l.data;return _.W("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.W(hj,{text:l.text,label:function(){var O;return(O=e().contentProperties)==null?void 0:O.labelText},
placeholder:function(){var O;return(O=e().contentProperties)==null?void 0:O.placeholderText},
hint:function(){var O;return(O=e().contentProperties)==null?void 0:O.hintText},
outline:function(){var O;return!((O=e().displayProperties)==null?0:O.hideBorder)},
overflowStyle:function(){var O;return((O=e().displayProperties)==null?0:O.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var O;return(O=e().displayProperties)==null?void 0:O.disableNewLines},
onInput:l.onInput,characterLimit:l.characterLimit,validation:l.validation,rows:function(){var O;return(O=e().displayProperties)==null?void 0:O.rows}}))},"zf");var xau=_.XO(function(l){var e=_.b(_.jN(function(){var gT,mx;return((gT=l.data().structuredContextNoteFormSchema)==null?0:(mx=gT.initialValues)==null?0:mx.noteBody)?l.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),O=e.next().value,E=e.next().value;
e=_.b(_.jN(function(){l.data();return!1}));
var J=e.next().value,z=e.next().value;e=_.b(_.jN(function(){l.data();return!1}));
var M=e.next().value,Z=e.next().value;e=_.b(_.jN(function(){var gT,mx;return((gT=l.data().structuredContextNoteFormSchema)==null?0:(mx=gT.initialValues)==null?0:mx.timestamp)?l.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var u=e.next().value,d=e.next().value;e=_.b(_.jN(function(){l.data();return!1}));
var g=e.next().value,w=e.next().value;e=_.b(_.jN(function(){var gT,mx;return((gT=l.data().structuredContextNoteFormSchema)==null?0:(mx=gT.initialValues)==null?0:mx.sources)?[l.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var n=e.next().value,k=e.next().value;e=_.b(_.jN(function(){l.data();return!1}));
var y=e.next().value,c=e.next().value;e=_.b(_.jN(function(){return!1}));
var f=e.next().value,P=e.next().value;_.sC(function(){var gT;_.VBC((gT=l.data().structuredContextNoteFormSchema)==null?void 0:gT.id,{isSubmitting:f,onSubmit:function(){P(!0);var mx=nSf(O(),u(),n(),l.data()),jM=_.V2().resolve(_.Zh);mx&&jM&&jM.resolveCommand(mx,{commandController:{onSuccess:function(){P(!1)}}})},
isValid:function(){return J()&&!M()&&!g()&&!y()}})});
var h=function(gT){if(gT!==void 0&&(E(gT),!J()&&gT.length>0&&z(!0),J())){var mx=WmH(l.data());if(mx){var jM=mx.minLength;mx=mx.maxLength;jM&&gT.length<jM?Z(!0):mx&&gT.length>mx?Z(!0):Z(!1)}}},N=function(gT){if(gT!==void 0){d(gT);
if(gT.length>0){var mx,jM,cx,tq,Px=gSu((mx=l.data())==null?void 0:(jM=mx.structuredContextNoteFormSchema)==null?void 0:(cx=jM.fieldSchemas)==null?void 0:(tq=cx.timestamp)==null?void 0:tq.validationSchema);if(Px&&(mx=Px.regex)&&!(new RegExp(mx)).test(gT)){w(!0);return}}w(!1)}},t=function(gT){if(gT!==void 0){var mx=gT.split(/[ \n]/).map(function(jM){return jM.trim()});
k(mx);if(gT.length>0)for(gT=_.b(mx),mx=gT.next();!mx.done;mx=gT.next())if(!AnC(mx.value)){c(!0);return}c(!1)}},r=function(){return{validate:function(gT){if(J()){var mx=WmH(l.data());
if(mx){var jM=mx.minLength;mx=mx.translations;if(jM&&gT.length<jM)return mx==null?void 0:mx.minLengthErrorMessage}}}}},D=function(){var gT=WmH(l.data()),mx=gT==null?void 0:gT.maxLength,jM;
gT=gT==null?void 0:(jM=gT.translations)==null?void 0:jM.maxLengthErrorMessage;if(mx&&gT)return{maxChars:mx,errorMessage:gT}},b2=function(){return{validate:function(gT){if(gT){var mx,jM,cx,tq,Px=gSu((mx=l.data())==null?void 0:(jM=mx.structuredContextNoteFormSchema)==null?void 0:(cx=jM.fieldSchemas)==null?void 0:(tq=cx.timestamp)==null?void 0:tq.validationSchema);
if(Px&&(mx=Px.regex,Px=Px.translations,mx&&!(new RegExp(mx)).test(gT)))return Px==null?void 0:Px.regexErrorMessage}}}},$V=function(){return{validate:function(gT){if(gT){var mx,jM,cx,tq,Px=wR4((mx=l.data())==null?void 0:(jM=mx.structuredContextNoteFormSchema)==null?void 0:(cx=jM.fieldSchemas)==null?void 0:(tq=cx.sources)==null?void 0:tq.validationSchema);
if(Px&&(mx=Px.translations,mx==null?0:mx.selectedErrorMessage))for(gT=gT.split(/[ \n]/).map(function(S0){return S0.trim()}),gT=_.b(gT),jM=gT.next();!jM.done;jM=gT.next())if(!AnC(jM.value))return gT=void 0,(gT=mx)==null?void 0:gT.selectedErrorMessage}}}};
return _.W("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.Tn,{data:function(){var gT;return(gT=l.data())==null?void 0:gT.noteContents}},{textFormFieldViewModel:function(gT){return _.W(_.QLu,{data:gT.data,
onInput:h,validation:r,characterLimit:D})},
textFieldViewModel:function(gT){return _.W(_.SB4,{data:gT.data,onInput:h,validation:r,characterLimit:D})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.Tn,{data:function(){var gT;
return(gT=l.data())==null?void 0:gT.noteTimestamp}},{textFormFieldViewModel:function(gT){return _.W(_.QLu,{data:gT.data,
onInput:N,validation:b2})},
textFieldViewModel:function(gT){return _.W(_.SB4,{data:gT.data,onInput:N,validation:b2})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.Tn,{data:function(){var gT;
return(gT=l.data())==null?void 0:gT.noteSources}},{textFormFieldViewModel:function(gT){return _.W(_.QLu,{data:gT.data,
onInput:t,validation:$V})},
textFieldViewModel:function(gT){return _.W(_.SB4,{data:gT.data,onInput:t,validation:$V})}})))},"Af");
xau.idomCompat=!0;_.Zw(xau,"yt-structured-context-note-view-model",{props:{data:_.lB}});var lBf=_.XO(function(l){var e=_.b(_.jN(function(){var z;if((z=l.controlled)==null?0:z.call(l))return[];var M;return(((M=l.data())==null?void 0:M.chips)||[]).map(function(Z){Z=_.I(Z,_.qS);if(Z==null?0:Z.selected)return a7P(Z.chipValue)}).filter(function(Z){return Z!==void 0})})),O=e.next().value,E=e.next().value,J=function(z){var M=a7P(z.chipValue);
if(M!==void 0){var Z;if((Z=l.controlled)==null?0:Z.call(l))return void l.controlled().onTap(M);z=O().includes(M)?[].concat(_.kA(O().filter(function(d){return d!==M}))):[].concat(_.kA(O()),[M]);
E(z);var u;if((u=l.uncontrolled)==null?0:u.call(l))l.uncontrolled().onUpdate(z)}};
return _.W("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.W(_.KH,{each:function(){return l.data().chips||[]}},function(z){return _.W("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.W(_.PTq,{data:function(){return _.I(z,_.qS)},
selected:function(){var M;if(M=_.I(z,_.qS)){var Z=a7P(M.chipValue);if(Z!==void 0){var u;M=((u=l.controlled)==null?0:u.call(l))?l.controlled().selectedValues.includes(Z):O().includes(Z)}else M=void 0}else M=!1;return M},
callback:J}))}))},"Bf");var eTF=_.XO(function(l){var e=l.data;var O=function(){var Z;return((Z=e())==null?void 0:Z.flowStateKey)||""},E=_.kD(_.ZL,O),J=function(){var Z;
return(Z=_.I(E(),gz4))==null?void 0:Z.chips},z=function(Z){if(Z!==void 0){var u=J()||[];
u=u.find(function(d){return d===Z})?u.filter(function(d){return d!==Z}):[].concat(_.kA(u),[Z]);
u=Object.assign({},E(),{feedbackFormFlowState:Object.assign({},_.I(E(),gz4),{chips:u})});_.Ot(_.IK("flowStateEntity",O(),u))}},M=function(){var Z;
return _.I((Z=e())==null?void 0:Z.inputBox,ib3)};
l=_.yl(function(Z){var u=M();u=!(u==null?0:u.maxChars)||Z.length<=u.maxChars;Z=Object.assign({},E(),{feedbackFormFlowState:Object.assign({},_.I(E(),gz4),{detail:Z}),abuseReportFlowState:Object.assign({},_.I(E(),Ct),{navigationEnabled:u})});_.Ot(_.IK("flowStateEntity",O(),Z))},150);
return _.W("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.W("div",{class:"ytFeedbackFormViewModelChips"},_.W(_.Tn,{data:function(){var Z;return(Z=e())==null?void 0:Z.chipSelection}},{chipSelectionFormFieldViewModel:function(Z){return _.W(lBf,{data:Z.data,
controlled:function(){return{selectedValues:J()||[],onTap:z}}})}})),_.W("div",{class:"ytFeedbackFormViewModelInputBox"},_.W(hj,{text:function(){var Z;
return(Z=_.I(E(),gz4))==null?void 0:Z.detail},
placeholder:function(){var Z;return((Z=M())==null?void 0:Z.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var Z=M();if(Z&&Z.maxChars)return{maxChars:Z.maxChars,errorMessage:Z.maxCharsExceededErrorMessage||""}},
onInput:l})),_.W("div",{class:"ytFeedbackFormViewModelFooterText"},_.W(_.zK,{text:function(){return e().footerText}})))},"Cf");
eTF.idomCompat=!0;_.Zw(eTF,"yt-feedback-form-view-model",{props:{data:_.lB}});var OHu=_.XO(function(l){var e=l.data;var O=function(){return e().flowStateKey||""},E=_.kD(mRf,O),J=function(){return _.I(E(),Ct)},z=function(){if(_.a("enable_gff_accessibility_fix")){var M=!0,Z;
if((Z=J())==null?0:Z.navigationEnabled){var u;_.r6((u=J())==null?void 0:u.navigationCommand);M=!1}Z=Object.assign({},E(),{abuseReportFlowState:Object.assign({},J(),{isReportFormDirty:M})});_.Ot(_.IK("flowStateEntity",O(),Z))}else _.r6((M=J())==null?void 0:M.navigationCommand)};
return _.W("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.W("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.W(_.Tn,{data:function(){return e().cancelButton}},{buttonViewModel:function(M){return _.W(_.hM,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}}),_.W(_.Tn,{data:function(){var M;
if(e().navButton){var Z=Object;var u=Z.assign,d=_.I(e().navButton,_.Hi),g=((M=J())==null?0:M.navigationEnabled)||_.a("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",w,n;M=_.I((w=J())==null?void 0:w.navigationCommand,_.L4);w=(n=_.I(M,_.Db))==null?void 0:n.url;Z={buttonViewModel:u.call(Z,{},d,{state:g,iconName:w?"OPEN_IN_NEW":""})}}else Z=void 0;return Z}},{buttonViewModel:function(M){return _.W(_.hM,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}})))},"Df");
OHu.idomCompat=!0;_.Zw(OHu,"yt-report-form-bottom-bar-view-model",{props:{data:_.lB}});var Edu=_.XO(function(l){var e=l.nextStep;return _.W("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.W("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.W(_.cF,{icon:function(){return e().iconName||""}})),_.W("div",null,_.W(_.zK,{text:function(){return e().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ef"),JTz=_.XO(function(l){var e=l.data;
var O,E=(O=_.V2().resolve(_.MG(_.lp)))==null?void 0:O(),J=_.kD(_.ZL,function(){return e().flowStateKey||""});
return _.W("yt-report-form-confirmation-page-view-model",{class:function(){var z;return((z=_.I(J(),Ct))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.W("div",{class:function(){var z;
return((z=_.I(J(),Ct))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.W(_.Jm,{data:function(){return E&&e().imageDark?e().imageDark:e().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return e().confirmationHeader}),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.W(_.zK,{text:function(){return e().confirmationText}})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.W(_.zK,{text:function(){return e().lawEnforcementText}})),
_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return e().whatToExpectHeader}),_.W(_.A,{cond:function(){return e().nextSteps},
then:function(z){return _.W("div",null,_.W(_.KH,{each:z},function(M){return _.W(Edu,{nextStep:M})}))}}),_.W(_.A,{cond:function(){return e().legalReportText},
then:function(z){return _.W("div",null,_.W(_.zK,{text:z,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ff");
JTz.idomCompat=!0;_.Zw(JTz,"yt-report-form-confirmation-page-view-model",{props:{data:_.lB}});var XK4=_.XO(function(l){var e=l.data;var O=function(){var z;return((z=_.I(e().inputBox,ib3))==null?void 0:z.maxChars)||500},E=function(){return e().flowStateKey||""},J=_.kD(_.ZL,E);
l=_.yl(function(z){z=Object.assign({},J(),{flowFormState:{isValid:z.length<=O()},abuseReportFlowState:{userComments:z,navigationEnabled:!(z.length>O()),isReportFormDirty:!0}});_.ls().dispatch(_.Gn("flowStateEntity",E(),z))},150);
_.sC(function(){var z=Object.assign({},J(),{flowFormState:{isValid:!0}});_.ls().dispatch(_.Gn("flowStateEntity",E(),z))});
return _.W("yt-report-form-details-page-view-model",{class:function(){var z;return((z=_.I(J(),Ct))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.W("h1",{class:function(){var z;
return((z=_.I(J(),Ct))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return e().detailsPageHeader}),_.W("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.W(_.zK,{text:function(){return e().bodyText}})),_.W("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.W(hj,{label:function(){var z;
return((z=_.I(e().inputBox,ib3))==null?void 0:z.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var z;return{errorMessage:((z=_.I(e().inputBox,ib3))==null?void 0:z.maxCharsExceededErrorMessage)||"",maxChars:O()}},
onInput:l})))},"Gf");
XK4.idomCompat=!0;_.Zw(XK4,"yt-report-form-details-page-view-model",{props:{data:_.lB}});var zTC=_.XO(function(l){var e=l.data;var O=l.selectedKey;var E=l.onSelected;var J=l.groupName;var z=function(){return e().text},M=function(){return e().attributedText},Z=function(){return e().subtext},u=function(){return e().attributedSubtext},d=_.W("div",{class:"ytRadioButtonItemViewModelLabel"},_.W(_.A,{cond:z,
then:function(){return _.W("div",null,z)}}),_.W(_.A,{cond:M,
then:function(){return _.W(_.zK,{text:M})}}),_.W(_.A,{cond:Z,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},Z)}}),_.W(_.A,{cond:u,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},_.W(_.zK,{text:u}))}})),g=function(){if(M()){var n;
return(n=M())==null?void 0:n.content}return z()},w=function(){if(u()){var n;
return(n=u())==null?void 0:n.content}return Z()};
l={};return _.W("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.W(_.Kc,{name:J,checked:function(){return!(O==null||!O()||e().key!==(O==null?void 0:O()))},
onChange:function(n){E==null||E(n.target,e(),J==null?void 0:J())},
labelRenderable:function(){return d},
ariaLabel:function(){return w()?g()+", "+w():g()},
className:_.ax((l.ytRadioButtonItemViewModelSubTitle=function(){return!!e().subtext},l))}))},"Hf");_.bHu=_.XO(function(l){var e=l.data;var O=l.onSelected;var E=l.selectedKey;var J=l.groupName;return _.W("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.W("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.W(_.Tn,{data:function(){return e().radioButtons}},{radioButtonItemViewModel:function(z){return _.W(zTC,{data:z.data,
onSelected:O,selectedKey:E,groupName:function(){return(J==null?void 0:J())||e().key}})}})))},"If");var MDC=_.XO(function(l){var e=l.data;var O=_.O0("div"),E=function(){return e().flowStateKey||""},J=_.kD(_.ZL,E),z=function(){return _.I(J(),Ct)};
_.Gh(function(){var M,Z;if(((M=z())==null?0:M.isReportFormDirty)&&((Z=z())==null||!Z.navigationEnabled)&&_.a("enable_gff_accessibility_fix")){var u;if(((u=z())==null?void 0:u.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||d.scrollIntoView()}else{var g;(g=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||g.scrollIntoView()}}},"VvP2Ne");
return _.W("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=z())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.W("h1",{class:function(){var M;
return((M=z())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return e().pageHeader}),_.W("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.W(_.zK,{text:function(){return e().bodyText}})),_.W("div",{class:function(){var M;
return((M=z())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.W(_.A,{cond:function(){var M,Z;
return((M=z())==null?void 0:M.isReportFormDirty)&&!((Z=z())==null?0:Z.navigationEnabled)&&_.a("enable_gff_accessibility_fix")},
then:function(){return _.W("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:O},_.W(_.cF,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.W("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return e().emptyReasonSelectErrorMessage}))}}),_.W(_.bHu,{data:function(){return _.I(e().radioButtonGroup,_.ylu)},
onSelected:function(M,Z){M=Object.assign({},J(),{abuseReportFlowState:Object.assign({},z(),{reasonKey:Z.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:Z.command})});_.Ot(_.IK("flowStateEntity",E(),M))},
selectedKey:function(){var M;return(M=z())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"Jf");
MDC.idomCompat=!0;_.Zw(MDC,"yt-report-form-reason-select-page-view-model",{props:{data:_.lB}});var VD4=_.XO(function(l){var e=l.data;var O,E=(O=_.V2().resolve(_.MG(_.lp)))==null?void 0:O();return _.W("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.W("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.W(_.Jm,{data:function(){return E&&e().imageDark?e().imageDark:e().image},
alt:""})),_.W("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.W("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return e().header}),_.W(_.zK,{text:function(){return e().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Kf");
VD4.idomCompat=!0;_.Zw(VD4,"yt-report-form-sign-in-page-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=function(){var d;return(d=e().textInputPlaceholder)==null?void 0:d.content},E=function(d){d=d.target.value.trim();
var g=e().onUpdateText;g&&_.r6(g,{form:{userQuery:d}});e().userQuery=d},J=_.yl(function(d){E(d)},150),z=_.pd(function(d){J(d);
return!1}),M=_.pd(function(d){d.key==="Enter"&&(E(d),(d=e().onNextStepCommand)&&_.r6(d,{forceClickLogging:!0}));
return!1}),Z=_.e4("yt-talk-to-recs-view-model"),u=function(){if(_.a("web_hide_explore_hub_until_user_navigates_back_to_home")){var d,g,w;
(w=(g=(d=Z.value)==null?void 0:d.closest("ytd-flow-step-renderer"))==null?void 0:g.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||w.click()}};
return _.W("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:Z},_.W("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.W(_.Tn,{data:function(){return e().topCornerButton}},{buttonViewModel:_.hM})),_.W("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.W("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.W(_.zK,{text:function(){return e().title}}),_.W("sup",{class:"ytwTalkToRecsSuperScript"},"BETA")),_.W("div",{class:"ytwTalkToRecsSubtitle"},_.W(_.zK,{text:function(){return e().subtitle}})),_.W("div",{class:"ytwTalkToRecsChipsShelf"},_.W(_.Tn,{data:function(){return e().answersShelf}},{chipsShelfViewModel:function(d){return _.W("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.W(_.rSk,{data:d.data,
callback:u,enableSingleChipSelection:!0}))}})),_.W(_.A,{cond:function(){return e().showOpenTextInput&&!_.a("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.W("div",{class:"ytwTalkToRecsUserInputBox"},_.W("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:O,value:function(){return e().userQuery},
"on:input":z,"on:keyup":M,maxlength:200}))}})))},"Lf"),"yt-talk-to-recs-view-model",{props:{data:_.lB}});var k5h={sources:[{clientResource:{imageName:"CHECK"}}]};_.ZH0=_.XO(function(l){var e=_.e4("div");l=_.J3(l,{error:void 0});var O=l.data,E=l.error,J=l.onSelected;l=_.b(_.jN(function(){return ynf(O())}));
var z=l.next().value,M=l.next().value;HFh(O,function(w){M(w);var n,k,y=m4h((n=O().options)==null?void 0:(k=n[w])==null?void 0:k.value,O().type);J==null||J(y);e.value.focus()});
l=_.pd(function(){if(!O().disabled){var w=O(),n=z(),k=e.value;w.options&&(w=I74(w.options,n,w.label),_.V2().resolve(_.pC).openSheet({viewModel:w},k))}});
var Z=_.OtA(),u=function(){return!!E()},d=function(){return!!O().disabled},g={};
g=_.ax("ytDropdownViewModelDropdownContainer",(g.ytDropdownViewModelDropdownContainerErrorBorder=u,g.ytDropdownViewModelDropdownContainerDisabled=d,g));return _.W("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.W("div",{class:g,"on:click":l,el:e,role:"combobox",tabindex:0,"on:keydown":Z,"aria-invalid":u,"aria-disabled":d,"aria-describedby":function(){return u()?"dropdown-view-model-error":void 0}},_.W("div",{class:"ytDropdownViewModelText"},pRP(O,u,z),KmO(O,z)),_.W("div",{class:"ytDropdownViewModelChevronDown"},
_.W(_.cF,{icon:"CHEVRON_DOWN"}))),j7C(O,E))},"Mf");_.Zw(_.XO(function(l){var e=l.data;var O=function(J){var z=FmH(e());z.videoMetadata||(z.videoMetadata={});z.videoMetadata.sponsorshipsMetadata||(z.videoMetadata.sponsorshipsMetadata={});z.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(J)},E=function(J){var z=FmH(e());
z.scheduledRedirectMetadata||(z.scheduledRedirectMetadata={});z.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(J)};
return _.W("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.W("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.W("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.W(_.zK,{text:function(){return e().title}}),_.W(_.cF,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.W(_.zK,{text:function(){return e().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.W(_.Tn,{data:function(){return e().tierChoices}},{dropdownViewModel:function(J){return _.W("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.W(_.ZH0,{data:J.data,
onSelected:O}))}}),_.W(_.Tn,{data:function(){return e().startTimeChoices}},{dropdownViewModel:function(J){return _.W("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.W(_.ZH0,{data:J.data,
onSelected:E}))}}),_.W(_.zK,{text:function(){return e().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.W("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.W(_.Tn,{data:function(){return e().scheduleButton}},{panelFooterViewModel:_.Y9})))},"Nf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;l=l.className===void 0?"":l.className;var O=_.kD(mRf,function(){return e().flowStateEntityKey||""}),E={};
E=_.ax("ytFlowBottomBarViewModelFlowBottomBarButtons",(E.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},E));
var J={},z=_.ax("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",E,(J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},J));
J={};var M=_.ax("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",E,(J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},J));
E={};E=_.ax("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},E.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
E));
l=_.ax("ytFlowBottomBarViewModelHost",l);return _.W("yt-flow-bottom-bar-view-model",{class:l},_.W(_.A,{cond:function(){var Z;return(Z=e())==null?void 0:Z.textSection},
then:function(Z){return _.W("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.W(_.zK,{text:Z}))}}),_.W("div",{class:E},_.W(_.Tn,{data:function(){return e().secondaryButton}},{buttonViewModel:function(Z){return _.W(_.hM,{data:Z.data,
className:M})}}),_.W(_.Tn,{data:function(){return e().primaryButton}},{buttonViewModel:function(Z){return _.W(_.hM,{data:Z.data,
className:z,buttonOverrides:function(){var u;return{disabled:!((u=O())==null||!u.primaryButtonDisabled)}}})}})))},"Of"),"yt-flow-bottom-bar-view-model",{props:{data:_.lB,
className:_.Vh}});var umP="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Lt=function(){var l=_.B.apply(this,arguments)||this;l.enableScrollingFix=!0;l.bottomBar=!1;l.hideBottomBar=!1;l.fitContent=!1;return l};
_.m(Lt,_.B);_.X=Lt.prototype;_.X.ready=function(){_.a("enable_pdp_icon_prefetch")&&_.dhh(_.V2().resolve(_.Cf),0,umP)};
_.X.focus=function(l){this.topBar?_.OW(this.topBar,l):this.paperDialog.focus(l)};
_.X.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16883_scroller&&(this.JSC$16883_scroller.dialogElement=this.paperDialog,this.JSC$16883_scroller.attached&&typeof this.JSC$16883_scroller.attached==="function"&&this.JSC$16883_scroller.attached())};
_.X.onDataChanged=function(){var l;this.fitContent=!((l=this.data)==null||!l.fitContent);var e;this.bottomBar=!((e=this.data)==null||!e.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.X.onProgressChanged=function(){var l,e,O=((e=(l=this.data)==null?void 0:l.progress)!=null?e:0)*100;this.progressElement.style.width=O+"%"};
_.X.isProgressHidden=function(){var l;return!((l=this.data)==null?0:l.progress)};
_.X.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(l){return _.a("enable_wiz_next_lp2_msof")&&l&&!l.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Ji.Object.defineProperties(Lt.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var l;return _.a("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.I((l=this.data)==null?void 0:l.content,kj4)}}});
Lt.prototype.onProgressChanged=Lt.prototype.onProgressChanged;Lt.prototype.onDataChanged=Lt.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Lt.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lt.prototype,"enableScrollingFix",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lt.prototype,"bottomBar",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lt.prototype,"hideBottomBar",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Lt.prototype,"containsExploreHub",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Lt.prototype,"fitContent",void 0);_.L([_.aB("#progress"),_.q("design:type",HTMLElement)],Lt.prototype,"progressElement",void 0);
_.L([_.aB("#scroller"),_.q("design:type",Object)],Lt.prototype,"JSC$16883_scroller",void 0);_.L([_.aB("ytd-flow-top-bar-renderer"),_.q("design:type",HTMLElement)],Lt.prototype,"topBar",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lt.prototype,"onDataChanged",null);_.L([_.AA("data.progress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lt.prototype,"onProgressChanged",null);
_.L([_.U({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Lt);
_.Y(Lt,"ytd-flow-step-renderer",function(){if(NkH!==void 0)return NkH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return NkH=l},{mode:1});var CPu=function(l){this.resolveCommand=l;this.steps={}},odh=function(l,e){e=_.b(e||[]);
for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=Object.values(O)[0],J=void 0;if((J=E)==null?0:J.stepId)l.steps[E.stepId]=O}},dzu=function(l,e){var O,E,J,z,M;
return _.V(function(Z){if((O=l.state)==null||!O.currentStepId)return Z.return(void 0);E=$z4(l);if(!E)return Z.return(WGu(l));if(J=_.I(E,_.aF0)){var u;((u=J.screenLoggingData)==null?0:u.screenVeType)&&_.on(_.yN(),J.screenLoggingData.screenVeType);((z=J)==null?0:z.onStepStartCommand)&&l.resolveCommand((M=J)==null?void 0:M.onStepStartCommand,{})}if(J&&e){u=J;var d,g,w,n;((d=e.flowLoggingData)==null?0:d.eventNamespace)&&((g=u.flowEventData)==null?0:g.eventType)&&((w=u.flowEventData)==null?0:w.eventMetadata)&&
((n=e.flowLoggingData)==null?0:n.flowType)&&(d=_.g8(e.flowLoggingData.eventNamespace,u.flowEventData.eventType,u.flowEventData.eventMetadata),_.iG(_.w8(),d,e.flowLoggingData.flowType));e.steps&&!e.steps.includes(E)&&e.steps.push(E)}return Z.return(E)})};
CPu.prototype.back=function(){var l;(l=this.state)!=null&&l.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
CPu.prototype.handleUpdateFlowCommand=function(l){l.steps&&odh(this,l.steps);l.entityUpdateCommand&&this.resolveCommand(l.entityUpdateCommand,{});l.flowContinuationCommand&&(l=l.flowContinuationCommand)&&(this.getFlowContinuationCommand=l);this.awaitFlowContinuation&&(this.awaitFlowContinuation($z4(this)),this.awaitFlowContinuation=void 0)};
CPu.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var WGu=function(l){return _.V(function(e){return l.getFlowContinuationCommand?e.return(new Promise(function(O){l.awaitFlowContinuation=O;l.getFlowContinuationCommand&&l.resolveCommand(l.getFlowContinuationCommand,{flow_state:l.state})})):e.return(Promise.resolve(void 0))})},$z4=function(l){var e;
if((e=l.state)!=null&&e.currentStepId)return l.steps[l.state.currentStepId]};var tj=function(){var l=_.B.apply(this,arguments)||this;l.flowState=new CPu(function(e,O){O=O===void 0?{}:O;_.n4.instance.resolveCommand(e,{form:{form:O,element:l.hostElement}})});
l.initialState=!0;l.isLoading=!1;l.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return l};
_.m(tj,_.B);_.X=tj.prototype;_.X.onPopupClosed=function(l){l&&this.hostElement!==l.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.X.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.X.focus=function(l){var e=this;_.N7(function(){var O=_.ud(e.hostElement).querySelector("ytd-flow-step-renderer");(O==null?0:O.topBar)?O.focus(l):e.topBar&&_.OW(e.topBar,l)},1)};
_.X.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.X.computeTopBarHidden=function(l){var e;return!((e=_.I(l,_.aF0))==null||!e.topBarOverride)};
_.X.dataChanged=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1){((e=l.data)==null?0:e.steps)&&odh(l.flowState,l.data.steps);if((O=l.data)==null?0:O.flowContinuationCommand){var J=l.flowState,z=l.data.flowContinuationCommand;z&&(J.getFlowContinuationCommand=z)}return _.C(E,dzu(l.flowState,l.data),2)}l.currentFlowStep=E.yieldResult;_.Cl(E)})};
_.X.flowChanged=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1){if(!l.flow)return O.return();l.flowState.state=l.flow;l.isLoading=!0;return _.C(O,dzu(l.flowState,l.data),2)}e=O.yieldResult;if(!e||l.flow.isLoading)return O.return();l.currentFlowStep=e;l.initialState=!1;l.isLoading=!1;l.autofocusAndRefit();_.Cl(O)})};
_.X.autofocusAndRefit=function(){var l=this,e=_.V2().resolve(_.MG(_.of)),O=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),E=document.querySelector("yt-report-form-confirmation-page-view-model"),J=document.querySelector("yt-report-form-details-page-view-model"),z=document.querySelector("yt-report-form-reason-select-page-view-model"),M=document.querySelector("yt-contributor-zero-state-view-model"),
Z=document.querySelector("yt-structured-context-note-view-model"),u=document.querySelector("yt-note-view-model");(!O&&e&&e.isKeyBoardInUse()||E||!O&&J||!O&&z||M||Z||u)&&_.EW(this.hostElement);_.OK(this,function(){_.$u(l.hostElement,"yt-refit")})};
_.X.handleUpdateFlowCommand=function(l){this.data&&(l=_.I(l,nz0),l.targetId===this.data.targetId&&(l.flowContinuationCommand&&(this.data.flowContinuationCommand=l.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(l),this.autofocusAndRefit()))};
_.X.handleFlowNextStepCommand=function(l){this.data&&this.flow&&this.flow.key&&(l=_.I(l,wDo),l.targetId===this.data.targetId&&(l=l.stepId||"",this.ytdReduxBehavior.dispatch(_.Gn("flowStateEntity",this.flow.key,{currentStepId:l,stepIdStack:(this.flow.stepIdStack||[]).concat(l)}))))};
_.X.handleFlowPrevStepCommand=function(l){if(this.data&&this.flow&&this.flow.key&&(l=_.I(l,Alh),l.targetId===this.data.targetId)){var e=[].concat(_.kA(this.flow.stepIdStack||[]));e.length>1?(e.pop(),this.ytdReduxBehavior.dispatch(_.Gn("flowStateEntity",this.flow.key,{currentStepId:e[e.length-1],stepIdStack:e}))):l.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(l.onFirstStepCommand)}};
_.X.handleYpcCancelRecurrenceCommand=function(l){if(this.data&&this.flow&&this.flow.key&&(l=_.I(l,pDC),l.targetId===this.data.targetId&&l.endpointCommand)){var e=_.I(this.flow,K33);e&&_.I(l.endpointCommand,_.EwS)&&(_.I(l.endpointCommand,_.EwS).feedbackData=e.surveyFeedback);this.ytComponentBehavior.resolveCommand(l.endpointCommand)}};
_.X.handlePartialUpdateFlowStateEntity=function(l){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Gn("flowStateEntity",this.flow.key,l,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
tj.prototype.flowChanged=tj.prototype.flowChanged;tj.prototype.dataChanged=tj.prototype.dataChanged;tj.prototype.onPopupClosed=tj.prototype.onPopupClosed;_.L([_.K(_.sY),_.q("design:type",Object)],tj.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],tj.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],tj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],tj.prototype,"initialState",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],tj.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Object)],tj.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],tj.prototype,"currentFlowStep",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],tj.prototype,"onPopupClosed",null);_.L([_.T({selectorArgs:["data.flowStateEntityKey"],selector:mRf}),_.q("design:type",Object)],tj.prototype,"flow",void 0);_.L([_.aB("ytd-flow-top-bar-renderer"),_.q("design:type",HTMLElement)],tj.prototype,"topBar",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],tj.prototype,"dataChanged",null);_.L([_.y0("flow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],tj.prototype,"flowChanged",null);_.L([_.U({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],tj);
_.gdP=_.$0()(tj,"ytd-flow-root-renderer",function(){if(vzz!==void 0)return vzz;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return vzz=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var iHu;var Zv=null;_.Zw(_.XO(function(l){return _.W("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.W("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.W(_.zK,{text:function(){return l.data().text}}),_.W("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Pf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.lB}});var wKC=_.XO(function(l){var e=l.playerControlsProps;var O=l.isShortsPage;return _.W("yt-bigboard",null,_.W(_.A,{cond:function(){return e().isDragging},
then:function(){return _.W("div",{class:"ytBigboardStoryboardHost"},_.W(_.eSC,{progressBarProps:e,isShortsPage:O}))}}))},"Qf");
wKC.idomCompat=!0;_.qX={ACCOUNT_LABEL:uU("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:uU("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:uU("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:uU("AD_BADGE_HINT"),AD_BADGE_TEXT:uU("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:uU("ALL_CHANNELS_LABEL"),AMBIENT_MODE:uU("AMBIENT_MODE"),AMBIENT_MODE_OFF:uU("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:uU("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:uU("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:uU("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:uU("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:uU("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:uU("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:uU("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:uU("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:uU("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:uU("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:uU("AUTO_ZOOM","Auto zoom"),BACK:uU("BACK"),CANCEL:uU("CANCEL"),CHANNEL_SWITCHER_LABEL:uU("CHANNEL_SWITCHER_LABEL"),CLOSE:uU("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:uU("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:uU("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:uU("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:uU("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:uU("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:uU("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:uU("COMMENT_MODAL_CONTENT"),CONFIRM_OK:uU("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:uU("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:uU("COPIED_TO_CLIPBOARD"),COPY:uU("COPY"),COPY_DEBUG_INFO:uU("COPY_DEBUG_INFO"),COPY_EMBED_CODE:uU("COPY_EMBED_CODE"),
COPY_LINK_LABEL:uU("COPY_LINK_LABEL"),COPY_VIDEO_URL:uU("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:uU("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:uU("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:uU("DELETE_FROM_DOWNLOADS"),DIALOG:uU("DIALOG"),DONE:uU("DONE"),DOWNLOAD:uU("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:uU("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:uU("FLAG_CONFIRM"),FLAG_CONTENT:uU("FLAG_CONTENT"),FLAG_LABEL:uU("FLAG_LABEL"),FLAG_TITLE:uU("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:uU("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:uU("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:uU("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:uU("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:uU("HIDE_SEARCH_FILTERS_LABEL"),HOME:uU("HOME","Home"),INVALID_RESPONSE_RECEIVED:uU("INVALID_RESPONSE_RECEIVED"),LIBRARY:uU("LIBRARY","Library"),LISTENING:uU("LISTENING"),LOADING:uU("LOADING"),LONG_PRESS_MIC_TO_SPEAK:uU("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:uU("LOOP"),MENU_DESKTOP:uU("MENU_DESKTOP"),
MENU_EXIT:uU("MENU_EXIT"),MENU_FEEDBACK:uU("MENU_FEEDBACK"),MENU_HELP:uU("MENU_HELP"),MENU_IMPRESSUM:uU("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:uU("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:uU("MENU_SETTINGS"),MENU_SIGN_IN:uU("MENU_SIGN_IN"),MENU_TITLE:uU("MENU_TITLE"),MENU_YOUR_DATA:uU("MENU_YOUR_DATA"),MORE_INFO:uU("MORE_INFO"),MORE_OPTIONS:uU("MORE_OPTIONS"),MUTE_VOLUME:uU("MUTE_VOLUME"),NEW_PLAYLIST:uU("NEW_PLAYLIST"),NEXT_VIDEO:uU("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:uU("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:uU("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:uU("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:uU("NOT_FOUND_TITLE"),NO_DOWNLOADS:uU("NO_DOWNLOADS"),NO_MIC_INPUT:uU("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:uU("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:uU("OOPS_MESSAGE"),OPEN_APP:uU("OPEN_APP"),OPEN_YOUTUBE:uU("OPEN_YOUTUBE"),PAUSE:uU("PAUSE"),PLAY:uU("PLAY"),PLAYER_CAPTION:uU("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:uU("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:uU("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:uU("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:uU("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:uU("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:uU("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:uU("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:uU("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:uU("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:uU("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:uU("PLAYER_MINIMIZE"),PLAYER_NEXT:uU("PLAYER_NEXT"),PLAYER_PAUSE:uU("PLAYER_PAUSE"),PLAYER_PLAY:uU("PLAYER_PLAY"),
PLAYER_PREVIOUS:uU("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:uU("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:uU("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:uU("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:uU("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:uU("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:uU("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:uU("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:uU("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:uU("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:uU("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:uU("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:uU("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:uU("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:uU("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:uU("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:uU("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:uU("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:uU("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:uU("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:uU("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:uU("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:uU("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:uU("PLAY_ALL"),PLEASE_FIX_ERRORS:uU("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:uU("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:uU("PREVIOUS_VIDEO"),PRIVACY_POLICY:uU("PRIVACY_POLICY"),RELOAD:uU("RELOAD"),REQUIRED_LABEL:uU("REQUIRED_LABEL"),SAVE_PLAYLIST:uU("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:uU("SCRUB_SLIDE_USER_EDU"),SEARCH:uU("SEARCH","Search"),
SEARCH_APPEND_LABEL:uU("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:uU("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:uU("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:uU("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:uU("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:uU("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:uU("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:uU("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:uU("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:uU("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:uU("SEEK_SLIDER"),SETTINGS_LABEL:uU("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:uU("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:uU("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:uU("SHOW_LESS"),SHOW_MORE:uU("SHOW_MORE"),SHOW_PLAYER_CONTROLS:uU("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:uU("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:uU("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:uU("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:uU("SIGN_IN_ON_WEB"),STABLE_VOLUME:uU("STABLE_VOLUME"),STABLE_VOLUME_OFF:uU("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:uU("STABLE_VOLUME_ON"),STATS_FOR_NERDS:uU("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:uU("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:uU("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:uU("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:uU("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:uU("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:uU("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:uU("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:uU("TIMESTAMP_SECONDS"),TOGGLE_OFF:uU("TOGGLE_OFF"),TOGGLE_ON:uU("TOGGLE_ON"),TRENDING:uU("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:uU("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:uU("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:uU("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:uU("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:uU("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:uU("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:uU("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:uU("VIDEO_LINK_LABEL")};var ATh=_.XO(function(l){var e=l.playerApi;l=_.e4("button",function(E){_.Br(E,36843)});
var O=uU("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.W("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.W("button",{el:l,class:"ytPlayerControlsJumpForwardButtonButton",title:O,"aria-label":O,"on:click":_.pd(function(){_.Pr(36843);e&&e().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.W("span",null,_.W(_.cF,{icon:"FAST_FORWARD"}))))},"Rf");var nd4=_.XO(function(l){var e=l.appApi;l=_.e4("button",function(E){_.Br(E,62946)});
var O=uU("OPEN_IN_MINIPLAYER");return _.W("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.W("button",{el:l,class:"ytMiniplayerButtonButton",title:O,"aria-label":O,"on:click":_.pd(function(){_.Pr(62946);var E,J;(J=(E=e()).openInMiniplayer)==null||J.call(E);return!1})},_.W(_.cF,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Sf");var aBH=_.XO(function(l){var e=l.playerApi;l=_.e4("button",function(z){_.Br(z,142812)});
var O=_.b(_.AF(!1,void 0,"I3VCyb")),E=O.next().value,J=O.next().value;O=function(){return uU("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(E()?1:2)})};
return _.W("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.W("button",{el:l,class:"ytPlaybackSpeedButtonButton",title:O,"aria-label":O,"on:click":_.pd(function(){_.Pr(142812);if(e){var z=e(),M=E();z.setPlaybackRate(M?1:2);J(!E())}return!1})},_.W("span",null,_.W(_.cF,{icon:function(){return E()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Tf");var kQu=_.XO(function(l){var e=l.title;var O=l.ariaLabel;var E=l.icon;var J=l.command;var z=l.veType;l=_.e4("button",function(M){z&&_.Br(M,z())});
return _.W("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.W("button",{el:l,class:"ytdThumbnailOverlayButtonButton",title:e,"aria-label":O,"on:click":_.pd(function(){z&&_.Pr(z());J&&_.V2().resolve(_.Zh).resolveCommand(J())})},_.W(_.cF,{icon:E})))},"Uf");var OJ="";var IBo=_.XO(function(l){var e=l.playerControlsProps,O=l.onClickFn;l=_.mF(function(){var z=e(),M=-1;z.captionsAvailable&&(M=z.captionsEnabled?1:0);return M},void 0,"WecR8e");
var E=_.mF(function(){var z=e();return z.captionsAvailable?_.ml(z.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.ml("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),J=_.mF(function(){var z=e();
z=z.captionsAvailable?z.captionsEnabled:void 0;return z},void 0,"Q17ly");
return _.W("yt-closed-captions-toggle-button",null,_.W(_.NGu,{captionIconType:l,ariaLabel:E,ariaPressed:J,onClick:function(z){var M=e();if(M.captionsAvailable){var Z=M.playerApi;if(Z){var u=M.playerApi;if(u){var d=OJ;if(d){u=u.getOption("captions","track");var g;OJ=(g=u?u.displayName:null)!=null?g:d}else _.Go(u)?(d=_.tL2(u),OJ=d.length?(g=yDP(d))?g.displayName:d[0].displayName:""):OJ=""}pI4(Z);_.a("mweb_disable_set_state_captions_killswitch")&&M.setState({captionsEnabled:!M.captionsEnabled})}}var w,
n;(n=(w=M.appApi).showCaptionsToggleToast)==null||n.call(w,M);O==null||O(z)},
isOverlay:!0}))},"Vf");var mz0=_.XO(function(l){var e=l.data;return _.W("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.W(_.Je,{data:function(){return{type:16,text:_.aoM(e().label)}}}))},"Wf");var yT4=_.XO(function(l){var e=_.ax("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return l.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return l.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return l.size()==="small"?l.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
l.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.W("animated-seek-arrows",{class:_.ax("ytPlayerControlsAnimatedSeekArrowsHost")},_.W("span",{class:e}),_.W("span",{class:e}),_.W("span",{class:e}))},"Xf");
yT4.idomCompat=!0;var pKf=_.XO(function(){var l=_.ml("PLAYER_SECONDS",{seconds_placeholder:"30"}),e=_.b(_.AF(!1,void 0,"Yj8msb")),O=e.next().value,E=e.next().value,J=_.b(_.AF(!1,void 0,"r9Z50e"));e=J.next().value;var z=J.next().value;J={};var M=_.ax("jumpForwardOverlayOverlay",(J.jumpForwardOverlayOverlayHidden=e,J));_.sC(function(){var Z=null,u=null,d=function(){Z!==null&&_.Gi().cancelJob(Z);u!==null&&_.Gi().cancelJob(u);z(!0);E(!0);_.WF(_.Gi(),function(){z(!1)});
Z=_.WF(_.Gi(),function(){z(!0);u=_.WF(_.Gi(),function(){E(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",d);_.B3(function(){window.removeEventListener("jump-forward-clicked",d)})});
return _.W("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.W(_.A,{cond:O,then:function(){return _.W("div",{class:M},_.W(yT4,{direction:1,size:"large"}),_.W("div",null,l))}}))},"Yf");var rnu=_.qX.MUTE_VOLUME,Na0=_.qX.UNMUTE_VOLUME,KGP=_.XO(function(l){var e=l.muteIconType;var O=l.onClick;var E=l.useOutlineIcon;l=_.e4("button",function(z){_.Br(z,28662)});
var J=function(){return D4u(e(),E==null?void 0:E()).ariaLabel};
return _.W("ytm-mute-button",{class:"ytmMuteButtonHost"},_.W("button",{el:l,class:"ytmMuteButtonButton",title:J,"aria-label":J,"on:click":_.pd(function(z){_.Pr(28662);O==null||O(z);return!1})},_.W("span",null,_.W(_.cF,{icon:function(){return D4u(e(),E==null?void 0:E()).iconName}}))))},"Zf");var jU3=_.XO(function(l){var e=l.volumeProps;var O=l.onClickFn;var E=l.useOutlineIcon;return _.W("yt-mute-toggle-button",null,_.W(KGP,{muteIconType:function(){var J=e(),z=!_.a("mweb_treat_zero_volume_as_muted_killswitch")&&J.volume===0;return J.volumeMuted||z?0:1},
onClick:function(J){var z=e().playerApi;z&&(z.isMuted()?z.unMute():z.mute(!1));O==null||O(J)},
useOutlineIcon:function(){return!(E==null||!E())}}))},"$f");
jU3.idomCompat=!0;var HH0=_.XO(function(l){var e=l.data;var O=_.e4("ytm-paid-content-overlay-renderer");return _.W("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:O,"on:animationend":_.pd(function(){O.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.W(_.$8,{command:function(){return e().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.W(_.A,{cond:function(){var E;return(E=e().icon)==null?void 0:E.iconType},
then:function(){return _.W("span",null,_.W(_.cF,{icon:function(){var E;return(E=e().icon)==null?void 0:E.iconType}}))}}),_.W("div",{class:"ytmPaidContentOverlayText"},_.W(_.zK,{text:function(){return e().text}})),_.W(_.A,{cond:function(){return e().navigationEndpoint},
then:function(){return _.W(_.cF,{icon:"CHEVRON_RIGHT"})}})))},"ag");
HH0.idomCompat=!0;var SP4=[].concat(_.kA([{register:function(l){var e=bbh(l),O;(O=l().playerApi)==null||O.addEventListener("onVolumeChange",e);return function(){}}},
{register:function(l){var e=M$h(l);l=l().playerApi;l==null||l.addEventListener("captionschanged",e);l==null||l.addEventListener("captionssettingschanged",e);l==null||l.addEventListener("onCaptionsTrackListChanged",e);return function(){}}},
{register:function(l){if(!_.a("mweb_screenreader_accessible_player"))return function(){};
var e=V$C(l),O=document.querySelector("video");O==null||O.addEventListener("touchend",e);return function(){O==null||O.removeEventListener("touchend",e)}}},
{register:function(l){if(!_.a("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var e=V$C(l),O=document.querySelector("video");O==null||O.addEventListener("focus",e);return function(){O==null||O.removeEventListener("focus",e)}}}]),[{register:function(l){var e=Ezu(l),O;
(O=l().playerApi)==null||O.addEventListener("onStateChange",e);return function(){}}},
{register:function(l){var e=Jli(l),O;(O=l().playerApi)==null||O.addEventListener("onPlaybackRateChange",e);return function(){}}},
{register:function(l){var e=XDo(l),O;(O=l().playerApi)==null||O.addEventListener("onVideoDataChange",e);return function(){}}},
{register:function(l){var e=zJ0(l),O,E;(O=l())==null||(E=O.playerApi)==null||E.addEventListener("onVideoProgress",e);return function(){}}}]);var cT4=_.XO(function(l){var e=l.data;var O=function(){return _.ml("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+e().playbackRate})};
return _.W(_.A,{cond:function(){return e().playbackRate&&e().playbackRate!==1},
then:function(){return _.W("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.W("div",{class:"ytPlaybackRateOverlayOverlay"},_.W(yT4,{direction:1,size:"small"}),_.W("div",{class:"ytPlaybackRateOverlayLabel"},O)))}})},"bg");var FGz=_.XO(function(l){var e=l.data;return _.W("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.W(_.A,{cond:function(){var O,E=(O=e())==null?void 0:O.playerResponse,J;return E==null?void 0:(J=E.paidContentOverlay)==null?void 0:J.paidContentOverlayRenderer},
then:function(O){return _.W(HH0,{data:O})}}))},"dg"),fB3=_.XO(function(l){var e=l.props;
var O=l.data;var E=l.options;var J=function(){var d,g,w,n;return(d=O())==null?void 0:(g=d.playerResponse)==null?void 0:(w=g.playerConfig)==null?void 0:(n=w.inlinePlaybackConfig)==null?void 0:n.showAudioControls},z=function(){var d,g;
if(J()&&((d=E())==null?void 0:(g=d.additionalButton)==null?void 0:g.button)!==void 0){var w,n,k;d=(w=O())==null?void 0:(n=w.playerApi)==null?void 0:(k=n.getSize())==null?void 0:k.height;if(!(d===void 0||d<180)){var y,c;return(y=E())==null?void 0:(c=y.additionalButton)==null?void 0:c.button}}},M=function(){var d,g;
return(d=E())==null?void 0:(g=d.additionalButton)==null?void 0:g.thumbnailOverlayButtonRenderers},Z=function(){var d,g;
return(d=E())==null?void 0:(g=d.additionalButton)==null?void 0:g.thumbnailOverlayButtonViewModels},u=function(){var d=[_.W(jU3,{volumeProps:e}),
_.W(IBo,{playerControlsProps:e})];z()===1&&d.push(_.W(ATh,{playerApi:function(){return e().playerApi}}));
z()===2&&d.push(_.W(nd4,{appApi:function(){return e().appApi}}));
z()===3&&d.push(_.W(aBH,{playerApi:function(){return e().playerApi}}));
var g=M();if(z()===4&&g){g=_.b(g);for(var w=g.next(),n={};!w.done;n={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},w=g.next()){w=w.value;n.tooltip$jscomp$2=w.tooltip;var k=void 0,y=void 0;n.ariaLabel$jscomp$20=((k=w.accessibility)==null?void 0:(y=k.accessibilityData)==null?void 0:y.label)||n.tooltip$jscomp$2;k=void 0;n.icon$jscomp$52=(k=w.icon)==null?void 0:k.iconType;n.command$jscomp$569=w.command;n.tooltip$jscomp$2&&n.ariaLabel$jscomp$20&&n.icon$jscomp$52&&
d.push(_.W(kQu,{title:function(c){return function(){return c.tooltip$jscomp$2}}(n),
ariaLabel:function(c){return function(){return c.ariaLabel$jscomp$20}}(n),
icon:function(c){return function(){return c.icon$jscomp$52}}(n),
command:function(c){return function(){return c.command$jscomp$569}}(n)}))}}g=Z();
if(z()===4&&g)for(g=_.b(g),w=g.next(),n={};!w.done;n={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},w=g.next())w=w.value,n.tooltip$jscomp$3=w.title,n.ariaLabel$jscomp$21=w.accessibilityText||n.tooltip$jscomp$3,n.icon$jscomp$53=w.iconName,n.command$jscomp$570=_.t3(w.onTap),n.tooltip$jscomp$3&&n.ariaLabel$jscomp$21&&n.icon$jscomp$53&&d.push(_.W(kQu,{title:function(c){return function(){return c.tooltip$jscomp$3}}(n),
ariaLabel:function(c){return function(){return c.ariaLabel$jscomp$21}}(n),
icon:function(c){return function(){return c.icon$jscomp$53}}(n),
command:function(c){return function(){return c.command$jscomp$570}}(n)}));
return d};
return _.W(_.A,{cond:J,then:function(){return _.W("div",{class:"ytInlinePlayerControlsTopRightControls"},_.W(_.KH,{each:u},function(d){return _.W("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.W("div",{class:"ytInlinePlayerControlsButtonIcon"},d))}))}})},"eg"),sUH=_.XO(function(l){var e=l.props;
var O=l.data;var E=l.options;l={};l=_.ax("ytInlinePlayerControlsBottomRightControls",(l.ytInlinePlayerControlsBottomRightControlsHidden=function(){var J;return u80(O(),E())&&((J=E())==null?void 0:J.insetProgressBar)&&(e().isHovering||e().isDragging)},l));
return _.W("div",{class:l},_.W(RTF,{data:O}),_.W(_.A,{cond:function(){var J;return!((J=E())==null?0:J.hideTimeDisplay)},
then:function(){return _.W(T5C,{props:e,data:O})}}))},"fg"),RTF=_.XO(function(l){var e=l.data;
return _.W(_.Tn,{data:function(){var O;return tBf((O=e())==null?void 0:O.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:mz0})},"gg"),T5C=_.XO(function(l){var e=l.props;
var O=l.data;return _.W(_.A,{cond:function(){return e().isLive},
then:function(){return _.W(GQ0,null)},
else:function(){return _.W(B5H,{props:e,data:O})}})},"hg"),B5H=_.XO(function(l){var e=l.props;
var O=l.data;var E=_.mF(function(){var J;return vSP((J=O())==null?void 0:J.thumbnailOverlays)},void 0,"kUmuA");
return _.W("div",{class:_.ax("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.qX.PLAYER_TIME_ELAPSED+" "+_.LDx(e().playedTime)}},_.W(_.Je,{data:function(){var J=_.LDx(e().videoDuration-e().playedTime);
return Object.assign({},{type:16,text:J},E())}}))},"ig"),GQ0=_.XO(function(){var l=_.ax("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.W("div",{class:l},_.W(_.Je,{data:{type:17,text:_.qX.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"jg"),PPO=_.XO(function(l){var e=l.props;
var O=l.data;var E=l.options;return _.W(_.bJC,{progressBarProps:e,config:function(){var J,z=_.I((J=O())==null?void 0:J.multiMarkersPlayerBar,_.KVH),M;J=((M=E())==null?0:M.insetProgressBar)?2:1;var Z;M=(Z=E())==null?void 0:Z.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:J,chapterData:z,isInlinePlayback:!0,doSeekOnClick:M,playheadDotBehavior:M?1:0}}})},"kg");_.Zw(_.XO(function(l){var e=l.data;var O=l.appApi;var E=l.options;var J=ObO(e,ZbF(O));l={};O={};return _.W("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.W("div",{class:_.ax("ytInlinePlayerControlsDarkenedOverlay",(l.ytInlinePlayerControlsDarkenedOverlayShow=function(){return J().isHovering},l))}),_.W(pKf,null),_.W(cT4,{data:J}),_.W(FGz,{data:e}),_.W(wKC,{playerControlsProps:J,
isShortsPage:!1}),_.W("div",{class:_.ax((O.ytInlinePlayerControlsControlsHidden=function(){return J().isDragging},O))},_.W(fB3,{props:J,
data:e,options:E}),_.W(sUH,{props:J,data:e,options:E})),_.W(_.A,{cond:function(){return u80(e(),E())},
then:function(){return _.W(PPO,{props:J,data:e,options:E})}}))},"cg"),"yt-inline-player-controls",{props:{data:_.lB,
appApi:_.Vh,options:_.lB}});var v_=function(){var l=_.B.apply(this,arguments)||this;l.opts=null;l.playerControlsData=null;l.playerControlsAppApi={openInMiniplayer:function(){l.openInMiniplayer()}};
l.playerControlsOptions={};l.noAnimation=!1;l.playbackIntentTriggered=!1;l.positionData=null;l.hidden=!0;l.active=!1;l.playing=!1;l.videoPreviewDataIndex=0;l.JSC$16939_playerPromise=null;l.player=null;l.enableAudioControls=!1;l.hasBeenUnmuted=!1;l.captionsHaveBeenTurnedOff=!1;l.JSC$16939_playerEvents=new Map;l.videoPreviewFetchRequest=null;l.scheduledPreviewEndJobId=null;l.JSC$16939_preventProgressSaveTimer=null;l.watchEndpointStartTimeUpdaterInterval=null;l.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};l.windowOnBlurFn=function(){l.deactivate()};
return l};
_.m(v_,_.B);_.X=v_.prototype;
_.X.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.a("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.X.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16939_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16939_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16939_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16939_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.id(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.id(this,this.onScroll))};
_.X.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.id(this,this.onScroll))};
_.X.onPageTypeChange=function(){this.deactivate()};
_.X.onWindowResized=function(){this.deactivate()};
_.X.onCaptionsChanged=function(l){l=!!l.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!l);this.setCaptionSize()};
_.X.setCaptionSize=function(){var l;if(this.active&&!this.captionsHaveBeenTurnedOff&&((l=this.player)==null?0:l.getCaptionWindowContainerId())){var e;(e=this.player)==null||e.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.X.currentPageAllowed=function(){return!this.isWatchPage};
_.X.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var l=this.positionData,e=l.initialTopPosition,O=l.initialHorizontalPosition;_.dP(this.hostElement,{"--ytd-video-preview-translate-left":l.finalHorizontalPosition-O+"px","--ytd-video-preview-translate-top":l.finalTopPosition-e+"px","--ytd-video-preview-original-top-position":e+"px","--ytd-video-preview-original-horizontal-position":O+"px",
"--ytd-video-preview-initial-scale":"scale("+l.initialScale+")","--ytd-video-preview-width":l.videoPreviewWidth+"px","--ytd-video-preview-height":l.videoPreviewHeight+"px"});return!0};
_.X.handleOpenVideoPreviewAction=function(l){var e=this,O;return _.V(function(E){if(!e.currentPageAllowed())return E.return(0);e.opts=l;return(O=e.alignVideoPreviewForAnimation(l.thumbnail))?E.return(e.activate()):E.return(0)})};
_.X.onMouseLeave=function(l){this.shouldDeactivateOnMouseLeave(l)&&this.deactivate()};
_.X.onScroll=function(){var l,e;((l=this.opts)==null?0:l.isAutoplay)&&((e=this.opts)==null?0:e.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.X.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.UD.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.X.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.X.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",v_.JSC$16938_DEFAULT_CLICK_LOCATION_BEHAVIOR,v_.JSC$16938_CLICK_LOCATION_ID_MAP)};
_.X.shouldDeactivateOnMouseLeave=function(l){l=l.relatedTarget;if(!l)return!0;var e;return(e=this.opts)!=null&&e.mediaRenderer?!_.C1(this.opts.mediaRenderer).contains(l):!0};
_.X.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.X.onPlaybackStart=function(){var l=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$16939_preventProgressSaveTimer=
_.WF(_.UD,function(){l.resetPreventProgressSaveTimer()},1E4);
var e;if((e=this.opts)==null?0:e.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.WF(_.UD,function(){l.hasMultipleVideoPreviews()?l.startPlaybackForNextVideo():l.deactivate()},this.opts.videoPreviewDurationMs);
var O;this.player.setGlobalCrop(((O=this.opts)==null?0:O.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.X.getRoundedCornersSize=function(){var l;if((l=this.opts)==null?0:l.roundedCornersSize){var e;return(e=this.opts)==null?void 0:e.roundedCornersSize}var O;if((O=this.opts)==null?0:O.enableRounding){var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="small")return 1;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="medium")return 2;var z;if(((z=this.opts)==null?void 0:z.thumbnailSize)==="large")return 3}return _.a("web_imp_inset_progress_bar")?3:0};
_.X.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.X.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.X.onMediaContainerClick=function(l){this.isShortcutClick(l)||(this.navigateToWatch(l),l.preventDefault(),l.stopPropagation())};
_.X.activate=function(){var l=this,e,O,E,J,z,M,Z,u,d;return _.V(function(g){switch(g.nextAddress){case 1:if(!l.currentPageAllowed())return g.return(0);O=(e=l.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint;E=_.Dw.instance;if(!O||!E)return g.return(0);l.playbackIntentTriggered=!0;((J=l.opts)==null?0:J.mediaRenderer)&&((z=l.opts)==null||!z.isAutoplay)&&hwu(l.opts.mediaRenderer,function(){l.deactivate()});
_.OK(l,function(){l.revealPreviewUi()});
M={};_.a("enable_unknown_lact_fix_on_html5")&&(_.V2().resolve(_.BF),M.lact=_.uN());l.videoPreviewFetchRequest=s7f(E,l.getInlinePlaybackRequestData(l.videoPreviewData),M);_.b1(g,2);return _.C(g,l.videoPreviewFetchRequest,4);case 4:Z=g.yieldResult;if(((u=Z)==null?void 0:(d=u.playabilityStatus)==null?void 0:d.status)==="OK")return g.return(l.handlePlayerResponse(Z));throw Error("Lj");case 2:_.u1(g),l.deactivate();case 3:return g.return(1)}})};
_.X.getInlinePlaybackRequestData=function(l){var e,O=_.a("web_imp_player_mute_params")?((e=this.opts)==null?void 0:e.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:l.inlinePlaybackEndpoint,startPlaybackInMutedState:O}};
_.X.handlePlayerResponse=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w;return _.V(function(n){if(n.nextAddress==1){O=e.getInlinePlaybackVideoId();if(!(((E=l)==null?0:(J=E.videoDetails)==null?0:J.videoId)&&e.currentPageAllowed()&&e.playbackIntentTriggered&&e.opts&&O))return e.deactivate(),n.return(0);if(l.videoDetails.videoId!==O)return n.return(0);e.enableAudioControls=!!((z=l.playerConfig)==null?0:(M=z.inlinePlaybackConfig)==null?0:M.showAudioControls);l.trackingParams=e.getInlinePlaybackTrackingParams();
if(!e.inlinePlayer)return n.return(0);Z={};if(d=_.I((u=e.videoPreviewData)==null?void 0:u.inlinePlaybackEndpoint,_.ej))Z.watch_endpoint=d;if(e.videoPreviewData){var k,y=(k=_.I(e.videoPreviewData.inlinePlaybackEndpoint,_.ej))==null?void 0:k.startTimeSeconds;y!==void 0&&(l.playerConfig||(l.playerConfig={}),l.playerConfig.playbackStartConfig||(l.playerConfig.playbackStartConfig={}),l.playerConfig.playbackStartConfig.startPosition||(l.playerConfig.playbackStartConfig.startPosition={}),l.playerConfig.playbackStartConfig.startSeconds=
y,l.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(y*1E3))}e.inlinePlayer.loadVideoWithPlayerResponse(l,Z);if(e.JSC$16939_playerPromise)return n.jumpTo(2);e.JSC$16939_playerPromise=e.inlinePlayer.getPlayerPromise();return _.C(n,e.JSC$16939_playerPromise,3)}n.nextAddress!=2&&(g=n.yieldResult,g.setInlinePreview(!0),g.setSizeStyle(!1,!0),e.ytPlayerListenerBehavior.listenToPlayerEvents(g,e.JSC$16939_playerEvents),e.player=g,_.$u(e.hostElement,"player-api-ready"));((w=e.opts)==
null?0:w.showPlayerControls)&&e.videoPreviewData&&e.player&&(e.playerControlsData={playerResponse:l,isInlinePlayback:!0,thumbnailOverlays:e.videoPreviewData.thumbnailOverlays,playerApi:e.player},e.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!e.unroundCornersForPlayback,additionalButton:e.getAdditionalButtonType(e.videoPreviewData.thumbnailOverlays)});return n.return(2)})};
_.X.revealPreviewUi=function(){var l=this;this.playbackIntentTriggered&&_.Hkd(this,function(){l.hasThumbnailPositionChangedSinceTriggered()||(l.updateActiveState(!0),l.noAnimation=!1)})};
_.X.hasThumbnailPositionChangedSinceTriggered=function(){var l=this.positionData,e=this.getThumbnailPositionData();return(l==null?void 0:l.initialTopPosition)!==(e==null?void 0:e.initialTopPosition)||(l==null?void 0:l.initialHorizontalPosition)!==(e==null?void 0:e.initialHorizontalPosition)};
_.X.getThumbnailPositionData=function(){var l,e;if((e=this.opts)==null||!e.thumbnail)return null;e=this.opts.thumbnail;var O=((l=this.opts)==null?0:l.cropPlayerToFillThumbnailHorizontally)?!1:!0;var E=e.getBoundingClientRect();l=E.width;e=E.height;var J=E.top+window.scrollY;E=E.left+window.scrollX;var z=O?Math.ceil(l):l;O=O?Math.ceil(e):e;var M=l/z;l={initialScale:M,initialTopPosition:J-12*M,finalTopPosition:J-12-(O-e)/2,initialHorizontalPosition:E-(12+(z-l)/2),finalHorizontalPosition:E-12-(z-l)/
2,videoPreviewWidth:z,videoPreviewHeight:O};return l};
_.X.updateActiveState=function(l){this.active=l;this.ytdReduxBehavior.dispatch(_.oM({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:l}))};
_.X.stopPlayer=function(l){l=l.resetWatchEndpointStartTime===void 0?!1:l.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(l)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.UD.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.X.deactivate=function(l){l=l===void 0?{}:l;l=l.resetWatchEndpointStartTime===void 0?!1:l.resetWatchEndpointStartTime;Zv&&(Zv.disconnect(),Zv=null);this.stopPlayer({resetWatchEndpointStartTime:l});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.X.isValidThumbnailOverlayButton=function(l,e){l=l.thumbnailOverlayButtonRenderer;var O;return!!l&&!!l.tooltip&&!((O=l.icon)==null||!O.iconType)&&e.includes(l.icon.iconType)};
_.X.isValidThumbnailOverlayButtonViewModel=function(l,e){var O;l=_.I((O=l.thumbnailOverlayButtonViewModel)==null?void 0:O.overlayButton,_.Hi);return!!l&&!!l.title&&!!l.iconName&&e.includes(l.iconName)};
_.X.getAdditionalButtonType=function(l){var e=this;if(_.a("web_imp_fastforward_button"))return{button:1};if(_.a("web_imp_miniplayer_button"))return{button:2};if(_.a("web_imp_playback_speed_button"))return{button:3};var O=["BOX_STACK_3"],E=(l||[]).filter(function(z){return e.isValidThumbnailOverlayButton(z,O)}).map(function(z){return z.thumbnailOverlayButtonRenderer});
if(E.length)return{button:4,thumbnailOverlayButtonRenderers:E};var J=["BOX_STACK_3"];l=(l||[]).filter(function(z){return e.isValidThumbnailOverlayButtonViewModel(z,J)}).map(function(z){return _.I(z.thumbnailOverlayButtonViewModel.overlayButton,_.Hi)});
if(l.length)return{button:4,thumbnailOverlayButtonViewModels:l}};
_.X.allowCaptions=function(){var l;return!((l=this.opts)==null?0:l.forceCaptionsOff)};
_.X.allowUnmuting=function(){var l;return this.enableAudioControls&&!((l=this.opts)==null?0:l.forceMutedVolume)};
_.X.beginStartTimeUpdater=function(){var l=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.gL(function(){l.updateWatchEndpointStartTime()},1E3)};
_.X.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.X.resetPreventProgressSaveTimer=function(){this.JSC$16939_preventProgressSaveTimer!==null&&(_.UD.cancelJob(this.JSC$16939_preventProgressSaveTimer),this.JSC$16939_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.X.updateWatchEndpointStartTime=function(l){var e=this.videoPreviewData;if(this.player&&e!=null&&e.inlinePlaybackEndpoint&&!this.JSC$16939_preventProgressSaveTimer){l=l?0:Math.floor(this.player.getCurrentTime());var O=_.I(e.navigationEndpoint,_.ej);O&&(O.startTimeSeconds=l);if(e=_.I(e.inlinePlaybackEndpoint,_.ej))e.startTimeSeconds=l}};
_.X.isShortcutClick=function(l){return!!l&&(l.ctrlKey||l.shiftKey||l.metaKey)};
_.X.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.X.openInMiniplayer=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1){O=(e=l.videoPreviewData)==null?void 0:e.navigationEndpoint;if(!O)return E.return();_.n6().lockupActivation=!0;return _.C(E,_.H7H(_.V2().resolve(_.NJ),O),2)}_.n6().userActivation=!0;_.Cl(E)})};
_.X.navigateToWatch=function(l){var e,O=(e=this.videoPreviewData)==null?void 0:e.navigationEndpoint;if(O){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(O,l,!0);else{if(_.a("web_thumbnail_to_watch_transition")){var E,J;(E=this.opts)==null||(J=E.onNavigateToWatchCallback)==null||J.call(E)}_.$u(this.hostElement,"yt-navigate",{endpoint:O})}this.deactivate()}};
_.X.getInlinePlaybackVideoId=function(){var l,e;return(e=_.I((l=this.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint,_.ej))==null?void 0:e.videoId};
_.X.getInlinePlaybackTrackingParams=function(){var l,e;return(l=this.videoPreviewData)==null?void 0:(e=l.inlinePlaybackEndpoint)==null?void 0:e.clickTrackingParams};
_.X.hasMultipleVideoPreviews=function(){var l;return!!(((l=this.opts)==null?0:l.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.X.startPlaybackForNextVideo=function(){var l;(l=this.opts)!=null&&l.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())};
_.Ji.Object.defineProperties(v_.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.opts)==null?0:l.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.opts)==null||!l.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 l;if(Array.isArray((l=this.opts)==null?void 0:l.videoPreviewData)){var e;return(e=this.opts)==null?void 0:e.videoPreviewData[this.videoPreviewDataIndex]}var O;return(O=this.opts)==null?void 0:O.videoPreviewData}}});
v_.prototype.onIsAdsVideoChange=v_.prototype.onIsAdsVideoChange;v_.prototype.onInlinePreviewIsEnabledChange=v_.prototype.onInlinePreviewIsEnabledChange;v_.prototype.optsChanged=v_.prototype.optsChanged;v_.prototype.onMouseLeave=v_.prototype.onMouseLeave;v_.JSC$16938_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);v_.JSC$16938_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"}];
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],v_.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],v_.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],v_.prototype,"componentBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.Ew.YtSparklesClickLocationBehavior),_.q("design:type",Object)],v_.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],v_.prototype,"opts",void 0);_.L([_.T(),_.q("design:type",Object)],v_.prototype,"playerControlsData",void 0);
_.L([_.T(),_.q("design:type",Object)],v_.prototype,"playerControlsAppApi",void 0);_.L([_.T(),_.q("design:type",Object)],v_.prototype,"playerControlsOptions",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v_.prototype,"noAnimation",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v_.prototype,"hidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v_.prototype,"active",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v_.prototype,"playing",void 0);_.L([_.T({selector:_.$Sd}),_.q("design:type",Boolean)],v_.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.T(),_.q("design:type",String)],v_.prototype,"pagePath",void 0);_.L([_.T({selector:_.Un}),_.q("design:type",Boolean)],v_.prototype,"isWatchPage",void 0);_.L([_.R("videoPreviewData"),_.q("design:type",Object),_.q("design:paramtypes",[])],v_.prototype,"thumbnailData",null);
_.L([_.R("opts","active"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v_.prototype,"hidePlayerControls",null);_.L([_.R("opts"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v_.prototype,"isAdsVideo",null);_.L([_.R("opts"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v_.prototype,"roundedCornersSmall",null);
_.L([_.R("opts"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v_.prototype,"roundedCornersMedium",null);_.L([_.R("opts"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v_.prototype,"roundedCornersLarge",null);_.L([_.R("opts"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],v_.prototype,"unroundCornersForPlayback",null);
_.L([_.R("opts","videoPreviewDataIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],v_.prototype,"videoPreviewData",null);_.L([_.T(),_.q("design:type",Object)],v_.prototype,"videoPreviewDataIndex",void 0);_.L([_.aB("#inline-player"),_.q("design:type",Object)],v_.prototype,"inlinePlayer",void 0);_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[MouseEvent]),_.q("design:returntype")],v_.prototype,"onMouseLeave",null);
_.L([_.y0("opts"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v_.prototype,"optsChanged",null);_.L([_.y0("inlinePreviewIsEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v_.prototype,"onInlinePreviewIsEnabledChange",null);_.L([_.AA("isAdsVideo"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],v_.prototype,"onIsAdsVideoChange",null);
_.L([_.U({is:"ytd-video-preview",disableElementRegistration:!0})],v_);
_.Y(v_,"ytd-video-preview",function(){if(iHu!==void 0)return iHu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iHu=l},{mode:2});
}catch(e){_._DumpException(e)}
try{
var kIP,Iz0,mEu;kIP=function(l){return _.a("kevlar_watch_cinematics_invisible")||l.fullscreen&&_.a("kevlar_watch_cinematics_invisible_in_fullscreen")||l.theater&&!l.fullscreen&&_.a("kevlar_watch_cinematics_invisible_in_theater")};
Iz0=function(){var l=document.createElement("canvas"),e=l.getContext("2d");if(!e)throw Error("Yl");_.YM(l,{position:"absolute",width:"100%",height:"100%"});return{element:l,context:e}};
mEu=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.a("kevlar_watch_cinematics_css_blur")};
_.yVP=function(l,e,O){return Math.abs(l-e)<=(O||1E-6)};
_.pAP=function(l,e){return l==e?!0:l&&e?l.width==e.width&&l.height==e.height:!1};_.KTo=new _.v("notificationActionRenderer");var jRh=function(l){var e=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.d8;this.element.addEventListener("load",function(){e.loaded=!0;e.resolver.resolve(e.element)});
this.element.addEventListener("error",function(){e.failed=!0});
this.element.src=l};var Hy3=function(l,e){this.image=l;this.frame=e};
Hy3.prototype.drawToCanvas=function(l,e){var O=this.frame.width/this.frame.columns,E=this.frame.height/this.frame.rows,J=e.offsetX,z=e.offsetY;kIP(e)?(l.fillStyle=e.fullscreen?"#000":"#0f0f0f",l.fillRect(J,z,(e==null?void 0:e.width)||O,(e==null?void 0:e.height)||E)):l.drawImage(this.image,this.frame.column*O,this.frame.row*E,O,E,J,z,(e==null?void 0:e.width)||O,(e==null?void 0:e.height)||E)};
var cVf=function(l){this.color=l};
cVf.prototype.drawToCanvas=function(l,e){var O=e.offsetX,E=e.offsetY,J=e.width,z=e.height;l.fillStyle=kIP(e)?e.fullscreen?"#000":"#0f0f0f":this.color;l.fillRect(O,E,J,z)};var lj=function(l,e){_.QL.call(this);this.playerApi=e;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.uX(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();FTP(this,l);fzi(this);this.update()};
_.m(lj,_.QL);lj.prototype.addEventListeners=function(){var l=this,e=function(){l.update()},O=function(J){l.paused||(J.type==="newdata"&&(l.mosaics.clear(),RXf(l),e2(l)),fzi(l),l.update())},E=function(){l.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",e);this.playerApi.addEventListener("onVideoDataChange",O);this.playerApi.addEventListener("onStateChange",E);this.addOnDisposeCallback(function(){l.playerApi.removeEventListener("onVideoProgress",e);l.playerApi.removeEventListener("onVideoDataChange",O);l.playerApi.removeEventListener("onStateChange",E)})};
var FTP=function(l,e){l.cinematicContainerRenderer!==e&&(l.cinematicContainerRenderer=e,RXf(l),e2(l),l.colorStoreUpdateJobId=_.UD.addLowPriorityJob(function(){var O;if((O=l.cinematicContainerRenderer.colorStore)!=null&&O.sampledColors){O=Infinity;for(var E=_.b(l.cinematicContainerRenderer.colorStore.sampledColors),J=E.next();!J.done;J=E.next()){J=J.value;var z=Number(J.key);z!==0&&z<O&&(O=z);z=_.qv(J.value);l.colorStore.set(J.key,z)}l.colorStoreTimeInterval=O}}))},RXf=function(l){l.colorStoreUpdateJobId&&
(_.UD.cancelJob(l.colorStoreUpdateJobId),l.colorStoreUpdateJobId=void 0);
l.colorStore.clear();l.currentStoryboardColor=void 0},TW4=function(l,e){var O;
return(O=l.getStoryboardFrame(e))==null?void 0:O.url};
lj.prototype.onPlayerStateChange=function(){this.update()};
lj.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var fzi=function(l){var e=l.getStoryboardFrame(0);e&&(e=new _.uX(e.width/e.columns,e.height/e.rows),_.pAP(l.currentStoryboardSize,e)||(l.currentStoryboardSize=e,l.publish("STORYBOARD_SIZE_CHANGED",l.currentStoryboardSize)))},sR3=function(l,e){l.currentStoryboardIndex=e;
l.pendingStoryboardIndex=NaN;e=l.getStoryboardFrame(l.currentStoryboardIndex);l.currentStoryboard=new Hy3(l.mosaics.get(e.url).element,e);l.publish("STORYBOARD_CHANGED",l.currentStoryboard);l.lastUpdateTime=(0,_.VZ)()};
lj.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var e2=function(l){l.currentStoryboardIndex=NaN;l.pendingStoryboardIndex=NaN;l.currentStoryboard&&(l.currentStoryboard=void 0,l.publish("STORYBOARD_CHANGED",void 0));l.lastUpdateTime=NaN};
lj.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)e2(this);else{var l=this.playerApi.getPlayerState(1);if(l===-1||l===5||l===0)e2(this);else if(isNaN(this.lastUpdateTime)||!((0,_.VZ)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(l=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){l=""+Math.round(l*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var e=this.colorStore.get(l);e?e!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=e,this.currentStoryboard=new cVf(e),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.VZ)()):(_.hG(new _.Hk("Could not find color for timestamp: "+l,this.cinematicContainerRenderer)),e2(this))}else e2(this);else GIi(this,l)}};
var GIi=function(l,e){var O=l.getStoryboardFrameIndex(e);if(O!==l.currentStoryboardIndex&&O!==l.pendingStoryboardIndex){e=TW4(l,O);var E=l.mosaics.get(e);E?E.loaded&&sR3(l,O):(l.pendingStoryboardIndex=O,O=new jRh(e),l.mosaics.set(e,O),O.resolver.promise.then(function(){if(!l.isDisposed()&&!l.paused&&!isNaN(l.pendingStoryboardIndex)){var J=TW4(l,l.pendingStoryboardIndex);if(J){var z;(z=l.mosaics.get(J))!=null&&z.loaded&&sR3(l,l.pendingStoryboardIndex)}else e2(l)}}))}};
lj.prototype.getStoryboardFrameIndex=function(l){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(l,e)};
lj.prototype.getStoryboardFrame=function(l){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,O,E;return((E=(O=this.playerApi).getStoryboardFrame)==null?void 0:E.call(O,l,e))||null};
lj.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var EA=function(l,e,O,E){E=E===void 0?!1:E;_.y6.call(this);this.cinematicContainerRenderer=e;this.playerApi=O;this.theater=this.fullscreen=!1;var J;this.ambientLightThemeEnabled=!E&&!!(e==null?0:(J=e.config)==null?0:J.enableInLightTheme);this.ambientFullscreenEnabled=E&&_.a("web_cinematic_fullscreen");this.container=document.createElement("div");l.appendChild(this.container);var z;if(_.a("web_cinematic_theater_mode")||_.a("web_cinematic_fullscreen")||(e==null?0:(z=e.config)==null?0:z.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);BWC(this);l=this.ambientV2Container||this.container;this.backCanvas=Iz0();this.frontCanvas=Iz0();l.appendChild(this.backCanvas.element);l.appendChild(this.frontCanvas.element);this.storyboardManager=new lj(e,this.playerApi);_.oQ(this,this.storyboardManager);this.addEventListeners();PDo(this)?UEu(this,100+OA(this)*3*2,100+OA(this)*3*2):YiC(this);hXu(this,this.storyboardManager.currentStoryboard)};
_.m(EA,_.y6);var BWC=function(l){l.ambientV2Container?LT0(l):(_.YM(l.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+t5o(l)+", "+qiz(l)+")"}),mEu()&&_.YM(l.container,"filter","blur("+_.Cv("cinematic_watch_css_filter_blur_strength",40)+"px)"))},LT0=function(l){if(l.ambientV2Container){var e=l.playerApi.getVideoAspectRatio();
_.YM(l.container,{"aspect-ratio":""+e,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.YM(l.ambientV2Container,{"aspect-ratio":""+e,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+t5o(l)+", "+qiz(l)+")"});mEu()&&_.YM(l.ambientV2Container,"filter","blur("+_.Cv("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
EA.prototype.setFullscreen=function(l,e){this.fullscreen=l;this.theater=!!e;BWC(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),l=this.storyboardManager.currentStoryboard,vI0(this),l&&NWF(this,l)};
EA.prototype.addEventListeners=function(){var l=this,e=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(J){hXu(l,J)}),O=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){YiC(l)});
this.addOnDisposeCallback(function(){l.storyboardManager.unsubscribeByKey(e);l.storyboardManager.unsubscribeByKey(O)});
if(this.ambientV2Container){var E=function(){LT0(l)};
this.playerApi.addEventListener("onVideoDataChange",E);this.addOnDisposeCallback(function(){l.playerApi.removeEventListener("onVideoDataChange",E)})}};
var YiC=function(l){if(!PDo(l)){var e=l.storyboardManager.currentStoryboardSize;isNaN(e.width)||isNaN(e.height)||UEu(l,Number(e.width)+OA(l)*3*2,Number(e.height)+OA(l)*3*2)}},UEu=function(l,e,O){l.backCanvas.element.width=e;
l.backCanvas.element.height=O;l.frontCanvas.element.width=e;l.frontCanvas.element.height=O},PDo=function(l){return l.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},hXu=function(l,e,O){O=O===void 0?!1:O;
var E=l.frontCanvas.element.getAnimations()[0];E?(E.pause(),l.backCanvas.context.globalAlpha=Number(getComputedStyle(l.frontCanvas.element).opacity),l.frontCanvas.element.style.opacity="0",E.finish()):l.backCanvas.context.globalAlpha=1;l.backCanvas.context.drawImage(l.frontCanvas.element,0,0,l.backCanvas.element.width,l.backCanvas.element.height);vI0(l);e&&NWF(l,e);e=e?l.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Cv("cinematic_watch_fade_out_duration",500);E=_.Cv("cinematic_watch_transition_frame_rate")/
1E3;var J={};E&&(J={easing:"steps("+Math.round(e*E)+")"});(O===void 0?0:O)||l.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:e,iterations:1},J));l.frontCanvas.element.style.opacity="1"},vI0=function(l){var e=l.ambientLightThemeEnabled,O=l.ambientLightThemeEnabled||l.ambientFullscreenEnabled&&!_.a("web_cinematic_fullscreen_v2");
l.frontCanvas.context.fillStyle=l.theater&&e||l.fullscreen&&O?"#000":"#0f0f0f";mEu()||(l.frontCanvas.context.filter="blur(0)");l.frontCanvas.context.fillRect(0,0,l.frontCanvas.element.width,l.frontCanvas.element.height)},NWF=function(l,e){mEu()||(l.frontCanvas.context.filter="blur("+OA(l)+"px)");
l.frontCanvas.context.globalAlpha=_.Cv("cinematic_watch_effect_opacity",.4);var O={offsetX:OA(l)*3,offsetY:OA(l)*3,theater:l.theater,fullscreen:l.fullscreen};PDo(l)&&(O.width=100,O.height=100);e.drawToCanvas(l.frontCanvas.context,O);l.frontCanvas.context.globalAlpha=1},OA=function(l){var e;
return(e=l.cinematicContainerRenderer.config.blurStrength)!=null?e:5},t5o=function(l){var e,O;
if((l.fullscreen||l.theater)&&((e=l.cinematicContainerRenderer.config)==null?0:(O=e.watchFullscreenConfig)==null?0:O.colorSourceWidthMultiplier))return l.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var E;return(E=l.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?E:l.cinematicContainerRenderer.config.colorSourceSizeMultiplier},qiz=function(l){var e,O;
if((l.fullscreen||l.theater)&&((e=l.cinematicContainerRenderer.config)==null?0:(O=e.watchFullscreenConfig)==null?0:O.colorSourceHeightMultiplier))return l.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var E;return(E=l.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?E:l.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
EA.prototype.disposeInternal=function(){_.y6.prototype.disposeInternal.call(this);this.container.remove()};
EA.prototype.clear=function(){hXu(this,void 0,!0)};
EA.prototype.pause=function(){this.storyboardManager.pause()};var rVu;rVu=_.m4(function(){var l,e,O=!((e=(l=document.createElement("canvas")).getContext)==null||!e.call(l,"2d")),E;l=!((E=CSS)==null||!E.supports("filter: blur(0)"));E=!!Element.prototype.animate&&!!Element.prototype.getAnimations;e=_.a("web_cinematic_fullscreen")||_.a("web_cinematic_theater_mode")||_.a("web_cinematic_light_theme")||!1;var J;return O&&l&&E&&(!e||!((J=CSS)==null||!J.supports("aspect-ratio: 1 / 1")))});
_.J8=function(l,e){_.QL.call(this);this.container=l;this.playerApi=e;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=DEz(this);this.update()};
_.m(_.J8,_.QL);_.SiF=function(l){var e=document.documentElement.hasAttribute("dark");l.isDarkModeEnabled=e;l.update()};
_.QR4=function(l,e){l.settingEnabled=e;l.update()};
_.J8.prototype.setFullscreen=function(l,e){this.fullscreen=l;this.theater=!!e;this.update()};
_.xEu=function(l,e){l.cinematicContainerRenderer=e;l.cinematicContainerRenderer&&(l.cinematicsVe=_.sL(l.isShorts()?227858:159022),_.$w(_.yN(),l.cinematicsVe),l.loggingClientData={watchCinematicContainerData:{presentationStyle:l.cinematicContainerRenderer.presentationStyle}});l.update()};
_.J8.prototype.isShorts=function(){var l,e;return((l=this.cinematicContainerRenderer)==null?void 0:(e=l.config)==null?void 0:e.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.J8.prototype.isAllowed=function(){var l;if(l=rVu()){var e,O,E;l=((O=this.cinematicContainerRenderer)==null?void 0:O.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((E=this.cinematicContainerRenderer)==null||!E.colorStore)||((e=this.cinematicContainerRenderer)==null?void 0:e.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(l)if(_.a("web_cinematics_pausing")){var J,z;l=this.isDarkModeEnabled||!!((J=this.cinematicContainerRenderer)==
null?0:(z=J.config)==null?0:z.enableInLightTheme)}else{var M,Z;J=!!((M=this.cinematicContainerRenderer)==null?0:(Z=M.config)==null?0:Z.enableInLightTheme)&&(_.hT("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);l=this.isDarkModeEnabled||J}if(M=l){var u,d;M=!((d=(u=this.prefersReducedMotionQuery)==null?void 0:u.matches)!=null&&d)}return M};
_.loC=function(l){(l=l.currentCinematicEffect)!=null&&(l=l.storyboardManager,l.paused=!1,fzi(l),l.update())};
_.J8.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var DEz=function(l){if(!_.a("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),O=function(){l.update()};
e.addListener(O);l.addOnDisposeCallback(function(){e.removeListener(O)});
return e}};
_.J8.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var l=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new EA(this.container,l,this.playerApi,this.isDarkModeEnabled),_.oQ(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var e=this.currentCinematicEffect;e.cinematicContainerRenderer!==
l&&(e.cinematicContainerRenderer=l,FTP(e.storyboardManager,l),BWC(e));l=_.Kz();_.jj(0,194,!0);l.save();l=_.P9();this.cinematicsVe&&l&&_.xu(l,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(l=_.P9(),this.cinematicsVe&&l&&_.lH(l,[this.cinematicsVe],!1,this.loggingClientData),_.Q9(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Ji.Object.defineProperties(_.J8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var xP4;var lz0;_.RB({_template:function(){if(lz0!==void 0)return lz0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=
l.content,O=e.insertBefore;xP4===void 0&&(xP4=document.createElement("template"));var E=xP4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return lz0=l},
is:"tp-yt-iron-pages",behaviors:[_.sl,_.Sy],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var NwC;_.rEH=function(){if(_.a("kevlar_home_skeleton")&&!NwC){var l=document.querySelector("#home-page-skeleton");l&&(_.Yu("hgcr"),_.wk(l),NwC=!0)}};
NwC=!1;_.a0=new _.v("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var teh,qa3,vju,NlF,rvF,DMf,xM3,e8u,OfP,lxC,Sa4,Q1u,Xri,z84;_.Laz=function(l,e,O){e=e===void 0?5:e;if(e!==0){var E=typeof l==="function"?l():document.querySelector(l);E?(O==null?0:O.enableSmartFocus)?_.lBT(E):E.focus():setTimeout(function(){_.Laz(l,e-1,O)},500)}};
teh=function(l){return _.xeT(_.QfW(l&16777215))<.5};
qa3=function(l,e,O){var E=O.minimumRowsOfVideosBetweenSections===void 0?1:O.minimumRowsOfVideosBetweenSections;return l<(O.minimumRowsOfVideosAtStart===void 0?2:O.minimumRowsOfVideosAtStart)||e!==null&&l-e<=E?!1:!0};
vju=function(l,e){var O=0,E=0;l=_.b(l);for(var J=l.next();!J.done;J=l.next()){var z=J.value;if(z.richItemRenderer)z.richItemRenderer.rowIndex=E,z.richItemRenderer.colIndex=O++,O===e&&(O=0,E++);else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.rowIndex=E,z.richGroupRenderer.colIndex=O,O+=z.richGroupRenderer.numColumns,O===e&&(O=0,E++);else if(z.richSectionRenderer){var M=J=void 0;if(z=_.I((J=z)==null?void 0:(M=J.richSectionRenderer)==null?void 0:M.content,_.Q_S))z.rowIndex=
E++}}};
NlF=function(l,e){var O=e.contentElement;e=e.rendererToTagNameMap;if(O&&e&&e.size!==0){for(var E=new Map,J=_.b(O.children),z=J.next();!z.done;z=J.next()){z=z.value;var M=z.tagName.toLowerCase(),Z=E.get(M);Z||(Z=[],E.set(M,Z));Z.push(z)}if(E.size!==0)for(J=Math.min(l.length,O.children.length),z=new Map,M=0;M<J;M++){Z=Object.keys(l[M])[0];Z=e.get(Z);if(!Z)break;var u=z.get(Z);u===void 0&&(u=0,z.set(Z,u));var d=E.get(Z);if(!d||u>=d.length)break;z.set(Z,u+1);Z=d[u];u=O.children[M];u!==Z&&(_.h$x=!0,_.LeM.set(Z,
!0),O.insertBefore(Z,u),_.LeM.delete(Z),_.h$x=!1)}}};
rvF=function(l,e,O,E,J,z,M){E=E===void 0?{}:E;if(!l||!l.length)return[];l=l.slice();var Z=[],u=[];J=null;for(var d=0,g=function(P){u.sort(function(t,r){return r.skippedOnRow-t.skippedOnRow});
for(var h,N=(h=u.shift())==null?void 0:h.content;N;)!N.richSectionRenderer&&P||Z.push(N),h=void 0,N=(h=u.shift())==null?void 0:h.content},w=[];l.length>0||u.length>0;){for(var n=[],k=e;k>0;){var y=void 0,c=void 0,f=(c=u[0]&&u[0].skippedOnRow<d?(y=u.shift())==null?void 0:y.content:void 0)!=null?c:l.shift();
if(!f)break;if(f.richItemRenderer)y=f.richItemRenderer.targetId,c=void 0,y&&((c=M)==null?0:c.has(y))&&w.push(M.get(y)),n.push(f),k--;else if(f.richGroupRenderer&&f.richGroupRenderer.numColumns!==void 0)f.richGroupRenderer.numColumns<=k?(n.push(f),k-=f.richGroupRenderer.numColumns):k===e&&f.richGroupRenderer.numColumns>e?(n.push({richGroupRenderer:Object.assign({},f.richGroupRenderer,{numColumns:e})}),k=0):u.push({content:f,skippedOnRow:d});else if(f.richSectionRenderer)if(qa3(d,J,E)&&k===e){Z.push(f);
J=d;d++;continue}else u.push({content:f,skippedOnRow:d});else if(f.continuationItemRenderer){g(!0);Z.push(f);k=0;break}if(k===0)Z.push.apply(Z,_.kA(n));else if(!O&&l.length===0){g(!1);Z.push.apply(Z,_.kA(n));k=0;break}}d++;w=_.b(w);for(n=w.next();!n.done;n=w.next())Z.push(n.value),d++;w=[]}vju(Z,e);z&&NlF(Z,z);return Z};
DMf=function(l){return l.talkToRecs};
xM3=function(l,e){if(e){var O=_.Om().getState().entities.flowStateEntity,E=Sa4(l),J=[e];E&&E!==e&&J.push(E);var z=!0,M;if(O&&l.flowStateEntityKey&&((M=O[l.flowStateEntityKey])==null?void 0:M.primaryButtonDisabled)!==void 0){var Z;z=!((Z=O[l.flowStateEntityKey])==null||!Z.primaryButtonDisabled)}Q1u(l,E!=null?E:e,J,z)}};
e8u=function(l){return _.kw(_.Om(),function(e){return e.entities.flowStateEntity},function(e,O){if(l.flowStateEntityKey){var E,J=e==null?void 0:(E=e[l.flowStateEntityKey])==null?void 0:E.currentStepId,z;
O=O==null?void 0:(z=O[l.flowStateEntityKey])==null?void 0:z.currentStepId;z=_.Om().getState().talkToRecs;if(J&&J!==O){var M;e=(e==null?void 0:(M=e[l.flowStateEntityKey])==null?void 0:M.stepIdStack)||Object.keys(z.stepStates);M=!lxC(z==null?void 0:z.stepStates[J]);Q1u(l,J,e,M)}}})};
OfP=function(l){return _.kw(_.Om(),DMf,function(e){var O=Sa4(l);if(O){var E=Object.keys(e.stepStates);e=!lxC(e==null?void 0:e.stepStates[O]);Q1u(l,O,E,e)}})};
lxC=function(l){var e=Object.keys((l==null?void 0:l.selectionStates)||{}).reduce(function(z,M){return z||(l==null?void 0:l.selectionStates[M].isSelected)},!1),O,E,J=!!(l==null?0:(O=l.userQuery)==null?0:(E=O.userQuery)==null?0:E.trim());
return e||J};
Sa4=function(l){if(l.flowStateEntityKey){var e,O,E=(e=_.Om().getState().entities.flowStateEntity)==null?void 0:(O=e[l.flowStateEntityKey])==null?void 0:O.currentStepId;if(E)return E}};
Q1u=function(l,e,O,E){_.Om().dispatch(_.IK("flowStateEntity",l.flowStateEntityKey,{currentStepId:e,stepIdStack:O,key:l.flowStateEntityKey,primaryButtonDisabled:E}))};
_.EYO=function(l,e){return _.wV(l.entities,"youchatPendingResponseEntity",e)};
_.JE0=function(l){return function(e){_.Ot(_.IK("youchatPendingResponseEntity",l,{entityKey:l,isPendingResponse:e}))}};
Xri=function(l){l==null||l.addEventListener("DOMLoaded",function(){l.goToAndPlay(l.totalFrames-48,!0)})};var bfz;_.RB({_template:function(){if(bfz!==void 0)return bfz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
var e=l.content,O=e.insertBefore;z84===void 0&&(z84=document.createElement("template"));var E=z84;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return bfz=l},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var MwF=new _.v("talkToRecsFlowRenderer");var Vw4=new _.v("flowRootRenderer");var Zfu=new _.v("learningJourneyQuizViewModel");var uyo=new _.v("chipsShelfViewModel");var C9z=new _.v("responsiveContainerConfiguration");var oY4=new _.v("horizontalShelfViewModel");_.$Qz=new _.v("engagementPanelSectionListRenderer");var Wpz=new _.v("conversationResourceViewModel");var dQh=function(){this.horizontal=!1},gYh=function(l,e){l.horizontal=e};
dQh.prototype.position=function(l,e,O,E){E=E===void 0?1:E;l=this.delta(l)*E+e;E=Math.max(e,O);return l>=Math.min(e,O)&&l<=E?l:O};
dQh.prototype.axis=function(l){l=this.direction(l);return l==="up"||l==="down"?"Y":"X"};var Vm=function(l,e,O){e=e===void 0?_.Ha():e;this.target=l;this.manager=e;this.touchAction=O;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Vm.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(_.kA(this.events)));for(var l=_.b(this.events),e=l.next();!e.done;e=l.next())this.listen(e.value)}};
Vm.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.kA(this.events)));for(var l=_.b(this.events),e=l.next();!e.done;e=l.next())this.unlisten(e.value)}};
Vm.prototype.listen=function(l){this.eventMap[l]&&this.target.addEventListener(l,this.eventMap[l])};
Vm.prototype.unlisten=function(l){this.eventMap[l]&&this.target.removeEventListener(l,this.eventMap[l])};var Z6=function(){dQh.apply(this,arguments)};
_.m(Z6,dQh);Z6.prototype.direction=function(l){var e=l.detail;l=e.deltaY;e=e.deltaX;return l&&!this.horizontal?l>0?"down":"up":e&&this.horizontal?e>0?"right":"left":"none"};
Z6.prototype.distance=function(l){return Math.abs(this.delta(l))};
Z6.prototype.delta=function(l){var e=this.direction(l),O=l.detail;l=O.deltaX;O=O.deltaY;return e==="up"||e==="down"?O||0:l||0};
Z6.prototype.velocity=function(l){var e=this.direction(l),O=l.detail;l=O.velocityX;O=O.velocityY;return Math.abs(e==="up"||e==="down"?O||0:l||0)};_.uW=function(l,e,O,E,J,z){J=J===void 0?new Z6:J;z=z===void 0?_.Ha():z;Vm.call(this,e,z,E);var M=this;this.element=l;this.target=e;this.config=O;this.input=J;this.manager=z;this.events=["panstart","panmove","panend"];this.onPanStart=function(){M.config.draggingClass&&M.element.classList.add(M.config.draggingClass);M.config.startAction&&M.config.startAction()};
this.onPanMove=function(Z){var u=ifi(M,Z);if(u){M.move(Z,u);u.fade&&M.fade(Z,u);var d=M.input.direction(Z);u.moveAction&&u.moveAction(wrH(M,Z,u),d)}};
this.onPanEnd=function(Z){var u,d,g,w,n,k;return _.V(function(y){if(y.nextAddress==1){M.animationRequestId&&cancelAnimationFrame(M.animationRequestId);M.animationRequestId=void 0;u=ifi(M,Z);if(!u)return y.return();d=u;g=d.triggerAction;w=d.fade;n=d.disableFinish;k=d.translateBack;var c=M.input.velocity(Z),f=M.input.distance(Z),P=M.threshold(u);return c>.3&&f>10||f>P?n?y.jumpTo(6):w?_.C(y,AEo(M,Z),6):_.C(y,nYi(M,Z,u),6):k?_.C(y,M.translateBack(Z),3):y.jumpTo(3)}y.nextAddress!=3&&g&&g();M.config.draggingClass&&
M.element.classList.remove(M.config.draggingClass);M.reset();_.Cl(y)})};
l=Object.keys(O.triggers);this.directions=new Set(l);gYh(this.input,this.directions.has("right")||this.directions.has("left"))};
_.m(_.uW,Vm);_.uW.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var ifi=function(l,e){e=l.input.direction(e);return l.config.triggers[e]};
_.uW.prototype.move=function(l,e){var O=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var E=O.input.axis(l),J=O.input.position(l,O.config.startPosition,e.endPosition,e.moveRatio||1);O.element.style.transform="translate"+E+"("+J+"px)";O.animationRequestId=void 0}))};
var wrH=function(l,e,O){var E=O.moveRatio||1;O=Math.abs(l.config.startPosition-O.endPosition);return Math.min(l.input.distance(e)*E,O)/O};
_.uW.prototype.fade=function(l,e){var O=e.endOpacity;l=wrH(this,l,e);l>0&&(this.element.style.opacity=""+(((O||0)-1)*l+1))};
_.uW.prototype.threshold=function(l){return l.threshold?l.threshold:Math.abs(l.endPosition-this.config.startPosition)/3};
var nYi=function(l,e,O){var E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1)return E=l.input.delta(e)+l.config.startPosition,J=l.input.axis(e),z=O,M=z.endPosition,Z=z.transitionEndPosition,d=(u=Z)!=null?u:M,_.C(g,l.element.animate([{transform:"translate"+J+"("+E+"px)"},{transform:"translate"+J+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);l.element.style.transform="translate"+J+"("+d+"px)";_.Cl(g)})};
_.uW.prototype.translateBack=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1){if(!e.element.style.transform)return J.return();O=e.input.axis(l);E=e.config.startPosition;return _.C(J,e.element.animate([{transform:e.element.style.transform},{transform:"translate"+O+"("+E+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}e.element.style.transform="translate"+O+"("+E+"px)";_.Cl(J)})};
var AEo=function(l,e){var O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return O=l.input.delta(e)+l.config.startPosition,E=l.input.axis(e),J=O+70,z=l.element.style.opacity===""?1:l.element.style.opacity,_.C(M,l.element.animate([{transform:"translate"+E+"("+O+"px)",opacity:z},{transform:"translate"+E+"("+J+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);l.element.style.transform="translate"+E+"("+J+"px)";l.element.style.opacity="0";_.Cl(M)})};var C5=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;l.scrollRate=3;l.autoScrollAnimationStart=0;l.autoScrollPaused=!1;l.autoScrollRafId=0;return l};
_.m(C5,_.IB);_.X=C5.prototype;_.X.created=function(){var l=this;this.boundAutoScrollHandler=function(e){l.autoScroll(e)}};
_.X.detached=function(){this.hostElement.removeEventListener("mouseout",_.id(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.id(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.id(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.X.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.id(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.id(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.id(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.id(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.id(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.id(this,this.endAutoScroll)),this.endAutoScroll())};
_.X.autoScroll=function(l){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=l);var e;if(e=!this.autoScrollPaused&&this.scrollTarget)e=this.scrollTarget,e=e.scrollHeight-e.scrollTop!==e.clientHeight;e&&(e=1E3/this.scrollRate,l-=this.autoScrollAnimationStart,l>e&&(this.scrollTarget.scrollTop+=Math.ceil(l/e),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.X.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.X.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
C5.prototype.autoScrollEnabledChanged=C5.prototype.autoScrollEnabledChanged;_.L([_.T(),_.q("design:type",Object)],C5.prototype,"scrollRate",void 0);_.L([_.T(),_.q("design:type",Object)],C5.prototype,"scrollTarget",void 0);_.L([_.T(),_.q("design:type",Boolean)],C5.prototype,"autoScrollEnabled",void 0);_.L([_.AA("autoScrollEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],C5.prototype,"autoScrollEnabledChanged",null);_.L([_.m0()],C5);_.axC=[C5.prototype];var kof;var o0=function(){var l=_.B.apply(this,arguments)||this;l.buttonUpdate=_.a("web_button_rework");l.dismissButtonOverrides=_.a("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;l.forceDarkTheme=!1;l.forceLightTheme=!1;l.dynamicTextHeight=94;l.hasOverflowButton=!1;l.isInfeedModernization=!1;return l};
_.m(o0,_.B);_.X=o0.prototype;_.X.computeUrlImg=function(l){if(l)return _.Cd(l.thumbnails)};
_.X.getLogoHeight=function(l){return this.logoWithPadding(l)?"31":"24"};
_.X.getLogoClassName=function(l){return this.logoWithPadding(l)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.X.logoWithPadding=function(l){var e,O;return(l=(e=l.thumbnails)==null?void 0:(O=e[0])==null?void 0:O.height)&&l%31===0?!0:!1};
_.X.sendImpressionEndpoints=function(l){l.impressionEndpoints&&_.ii(this.hostElement,l.impressionEndpoints)};
_.X.observeBasicPalette=function(){var l,e,O=(l=this.data)==null?void 0:(e=l.colorData)==null?void 0:e.basicColorPaletteData;O?_.PF(this.hostElement,O):_.PF(this.hostElement,{})};
_.X.observeDataChanged=function(){var l;this.dynamicTextHeight=((l=this.data)==null?0:l.supplementalText)?74:94;var e;this.hasSupplementalText=!((e=this.data)==null||!e.supplementalText);if(_.a("web_button_rework")){var O,E,J,z;l=(O=this.data)==null?void 0:(E=O.actionButton)==null?void 0:(J=E.buttonRenderer)==null?void 0:(z=J.colorData)==null?void 0:z.basicColorPaletteData;var M,Z,u;if(!((M=this.data)==null?0:(Z=M.actionButton)==null?0:(u=Z.buttonRenderer)==null?0:u.style)&&l){this.computeIsInfeedModernization(this.data)||
(l.borderColor=l.foregroundTitleColor);var d,g;this.set("data.actionButton.buttonRenderer",_.mm.unsafeClone((d=this.data)==null?void 0:(g=d.actionButton)==null?void 0:g.buttonRenderer))}}};
_.X.observeDataForCounterfactual=function(){if(_.a("kevlar_banner_cf_extra_logging")){var l;((l=this.data)==null?0:l.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.X.computeSupplementalStyle=function(){var l;if((l=this.data)!=null&&l.supplementalText){var e,O,E;if((e=this.data)==null?0:(O=e.colorData)==null?0:(E=O.basicColorPaletteData)==null?0:E.foregroundActivatedColor)return l=_.t$(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+l+"; --yt-endpoint-hover-color:"+l+"; --yt-endpoint-visited-color:"+l+"; --yt-formatted-string-bold-font-weight:700;"}};
_.X.computeForcedDarkTheme=function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.actionButton)==null?void 0:(O=e.buttonRenderer)==null?void 0:O.style,J,z,M;l=teh(((J=this.data)==null?void 0:(z=J.colorData)==null?void 0:(M=z.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return E&&l};
_.X.computeForcedLightTheme=function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.actionButton)==null?void 0:(O=e.buttonRenderer)==null?void 0:O.style,J,z,M;l=!teh(((J=this.data)==null?void 0:(z=J.colorData)==null?void 0:(M=z.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return E&&l};
_.X.computeHasOverflowButton=function(l){return!!l.overflowButton};
_.X.computeHasTitle=function(l){return!!l.title};
_.X.computeTitleMaxFontSize=function(l){return this.computeHasOverflowButton(l)?28:64};
_.X.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.X.computeIsInfeedModernization=function(){var l,e,O,E,J=(l=this.data)==null?void 0:(e=l.actionButton)==null?void 0:(O=e.buttonRenderer)==null?void 0:(E=O.colorData)==null?void 0:E.basicColorPaletteData;return(J==null?void 0:J.backgroundColor)===452984831||(J==null?void 0:J.backgroundColor)===218103808};
o0.prototype.observeDataForCounterfactual=o0.prototype.observeDataForCounterfactual;o0.prototype.observeDataChanged=o0.prototype.observeDataChanged;o0.prototype.observeBasicPalette=o0.prototype.observeBasicPalette;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],o0.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],o0.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],o0.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],o0.prototype,"buttonUpdate",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],o0.prototype,"hasSupplementalText",void 0);_.L([_.T(),_.q("design:type",Object)],o0.prototype,"dismissButtonOverrides",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.q("design:type",Boolean)],o0.prototype,"hasTitle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.q("design:type",Object)],o0.prototype,"forceDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.q("design:type",Object)],o0.prototype,"forceLightTheme",void 0);_.L([_.T(),_.q("design:type",Object)],o0.prototype,"dynamicTextHeight",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.q("design:type",Object)],o0.prototype,"hasOverflowButton",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.q("design:type",Object)],o0.prototype,"isInfeedModernization",void 0);_.L([_.AA("data.colorData.basicColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],o0.prototype,"observeBasicPalette",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],o0.prototype,"observeDataChanged",null);_.L([_.AA("data.isVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],o0.prototype,"observeDataForCounterfactual",null);_.L([_.U({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],o0);
_.Y(o0,"ytd-banner-promo-renderer",function(){if(kof!==void 0)return kof;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return kof=l},{mode:1});var Ix4;var mQH;var yE4;var $s=function(){return _.B.apply(this,arguments)||this};
_.m($s,_.B);_.L([_.T(),_.q("design:type",Object)],$s.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],$s);
_.Y($s,"ytd-hashtag-grid-tile-renderer",function(){if(yE4!==void 0)return yE4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return yE4=l},{mode:1});var WG=function(){return _.B.apply(this,arguments)||this};
_.m(WG,_.B);WG.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
WG.prototype.updateRichGridTrendingHashtagsVisibility=function(){var l,e;if(((l=this.data)==null||!l.isExpanded)&&(e=this.data)!=null&&e.tiles){l=this.data.tiles.length;e=l>this.richGridItemsPerRow?this.richGridItemsPerRow+1:l;var O=Math.ceil(l/e);this.fullyVisibleRows=l%e===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}};
WG.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
WG.prototype.updateRichGridTrendingHashtagsVisibility=WG.prototype.updateRichGridTrendingHashtagsVisibility;_.L([_.T(),_.q("design:type",Object)],WG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Number)],WG.prototype,"fullyVisibleRows",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],WG.prototype,"isShowMoreVisible",void 0);_.L([_.T({selector:_.Bt,value:0}),_.q("design:type",Number)],WG.prototype,"richGridItemsPerRow",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],WG.prototype,"ytdReduxBehavior",void 0);_.L([_.AA("data","richGridItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WG.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.L([_.U({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],WG);
_.Y(WG,"ytd-hashtag-grid-shelf-renderer",function(){if(mQH!==void 0)return mQH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return mQH=l},{mode:1});var pr3;var Kpu;var dy=function(){var l=_.B.apply(this,arguments)||this;l.visibleVideos=[];l.hiddenVideos=[];l.modern=_.a("web_modern_buttons");l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(dy,_.B);_.X=dy.prototype;_.X.attached=function(){var l=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",l);this.onDarkModeToggledAction(l)};
_.X.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"}}}};
_.X.dataChanged=function(){var l=this;this.requestElementsPerRow();var e,O;this.currentColorPalette=this.isDarkTheme?(e=this.data)==null?void 0:e.darkColorData:(O=this.data)==null?void 0:O.lightColorData;var E;if((E=this.currentColorPalette)==null?0:E.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.OK(this,function(){l.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.X.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.X.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.X.computeIsFirstFeedItem=function(l){return l};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l);this.data&&(this.currentColorPalette=l?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.X.getCurrentLogo=function(l,e){if(l)return e?l.darkLogoImage:l.lightLogoImage};
_.X.computeTitleStyle=function(l){var e;if((e=this.data)!=null&&e.title&&l&&l.textPrimary!==void 0)return"color:"+_.t$(l.textPrimary)+";"};
_.X.computeSubtitleStyle=function(l){var e;if((e=this.data)!=null&&e.subtitle&&l&&l.textSecondary!==void 0)return"color:"+_.t$(l.textSecondary)+";"};
_.X.computeDismissIconStyle=function(l){if(this.data&&this.data.dismissButton&&l&&l.textPrimary!==void 0)return"--yt-button-color:"+_.t$(l.textPrimary)+";"};
_.X.computeOverflowButtonStyle=function(l){if(this.data&&this.data.overflowButton&&l&&l.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.t$(l.textPrimary)+";--yt-spec-icon-active-other:"+_.t$(l.textPrimary)+";"};
_.X.computeBackgroundStyle=function(l){if(l&&this.data){var e="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var O=_.Cd((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);O&&(e+='background-image:url("'+O+'");')}l.backgroundColor!==void 0&&(e+="background-color:"+_.qv(l.backgroundColor)+";");return e}};
_.X.computeButton=function(){var l,e=Object.assign({},_.I((l=this.data)==null?void 0:l.showMoreButton,_.YU));if(this.modern&&e){e.style="STYLE_MONO_OUTLINE";var O;if(l=(O=this.currentColorPalette)==null?void 0:O.textPrimary)e.colorData={basicColorPaletteData:{foregroundTitleColor:l,borderColor:l}}}return e};
_.X.shouldShowBottomButton=function(l,e){return!(l==null?0:l.header)&&!(l==null||!l.primaryButton)&&e<3};
_.X.checkExpanded=function(l){this.isExpanded=l&&l.content?this.hiddenVideos.length===0:!0};
_.X.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.X.getLogoHeight=function(l){return this.logoWithPadding(l)?"26":"20"};
_.X.getLogoImageId=function(l){return this.logoWithPadding(l)?"logo-image-with-padding":"logo-image"};
_.X.computeHasSectionHeader=function(l){return!!l.header};
_.X.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var l;if((l=this.data.primaryButton)==null?0:l.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var e;((e=this.data.dismissButton)==null?0:e.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var O,E;((O=this.data)==null?0:(E=O.primaryButton)==null?0:E.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.X.setVisibleVideos=function(l){if(this.data&&this.data.content)if(this.data.content.length){var e=this.data.content.length;this.data.header?l?(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.slimItemsPerRow),e)):(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow),e)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(e,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow),e)):(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow-1),e))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.X.setHasMovieRenderer=function(){var l;if((l=this.data)!=null&&l.content){var e;this.hasMovieRenderer=!!_.I((e=this.data)==null?void 0:e.content[0],_.y66)}else this.hasMovieRenderer=!1};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
_.X.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var l=_.b(this.hiddenMediaRenderers),e=l.next();!e.done;e=l.next())e.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(l=_.ud(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&l.focus()}};
_.X.updateTitleSpec=function(){var l;(l=this.data)!=null&&l.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.X.logoWithPadding=function(l){var e,O,E;return(l=(e=this.getCurrentLogo(l,this.isDarkTheme))==null?void 0:(O=e.thumbnails)==null?void 0:(E=O[0])==null?void 0:E.height)&&l%31===0?!0:!1};
_.X.onUpdateElementsPerRowAction=function(l,e,O){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l);O&&this.slimItemsPerRow!==O&&(this.slimItemsPerRow=O)};
dy.prototype.slimItemsPerRowChanged=dy.prototype.slimItemsPerRowChanged;dy.prototype.elementsPerRowChanged=dy.prototype.elementsPerRowChanged;dy.prototype.dataChanged=dy.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],dy.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],dy.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],dy.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dy.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],dy.prototype,"currentColorPalette",void 0);_.L([_.T(),_.q("design:type",Array)],dy.prototype,"visibleVideos",void 0);_.L([_.T(),_.q("design:type",Array)],dy.prototype,"hiddenVideos",void 0);
_.L([_.T(),_.q("design:type",Object)],dy.prototype,"primaryButton",void 0);_.L([_.T({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],dy.prototype,"elementsPerRow",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],dy.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],dy.prototype,"isExpanded",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],dy.prototype,"largeTitle",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],dy.prototype,"hasMovieRenderer",void 0);_.L([_.T(),_.q("design:type",Number)],dy.prototype,"slimItemsPerRow",void 0);_.L([_.T(),_.q("design:type",Boolean)],dy.prototype,"showLightVideoMetadata",void 0);_.L([_.T(),_.q("design:type",Boolean)],dy.prototype,"showDarkVideoMetadata",void 0);_.L([_.T(),_.q("design:type",Number)],dy.prototype,"videoMetadataColor",void 0);
_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],dy.prototype,"miniMode",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.q("design:type",Boolean)],dy.prototype,"isFirstFeedItem",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.q("design:type",Boolean)],dy.prototype,"hasSectionHeader",void 0);
_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],dy.prototype,"roundedContainer",void 0);_.L([_.kT("#visible-video-container ytd-rich-grid-media"),_.q("design:type",Array)],dy.prototype,"visibleMediaRenderers",void 0);_.L([_.kT("#hidden-video-container ytd-rich-grid-media"),_.q("design:type",Array)],dy.prototype,"hiddenMediaRenderers",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dy.prototype,"modern",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dy.prototype,"dataChanged",null);_.L([_.AA("elementsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dy.prototype,"elementsPerRowChanged",null);_.L([_.AA("slimItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dy.prototype,"slimItemsPerRowChanged",null);
_.L([_.U({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],dy);
_.Y(dy,"ytd-brand-video-shelf-renderer",function(){if(Kpu!==void 0)return Kpu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Kpu=l},{mode:1});var jb4;var gy=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(gy,_.B);_.X=gy.prototype;_.X.attached=function(){var l=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",l);this.onDarkModeToggledAction(l)};
_.X.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"}}}};
_.X.dataChanged=function(){this.requestElementsPerRow();var l,e;this.currentColorPalette=this.isDarkTheme?(l=this.data)==null?void 0:l.darkColorData:(e=this.data)==null?void 0:e.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.X.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.X.computeIsFirstFeedItem=function(l){return l};
_.X.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l);this.data&&(this.currentColorPalette=l?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(l),this.updateButtonPalette())};
_.X.shouldShowThumbnailInMetadata=function(l){return l<=1};
_.X.computeVideoMetadataColor=function(){if(this.data){var l;if((l=this.currentColorPalette)==null?0:l.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.X.computeTitleStyle=function(l){var e;if((e=this.data)!=null&&e.title&&l&&l.textPrimary!==void 0)return"color:"+_.t$(l.textPrimary)+";"};
_.X.computeSubtitleStyle=function(l){var e;if((e=this.data)!=null&&e.subtitle&&l&&l.textSecondary!==void 0)return"color:"+_.t$(l.textSecondary)+";"};
_.X.computeOverflowButtonStyle=function(l){var e;if(this.data&&this.data.overflowButton&&(l==null?0:(e=l.dismissButtonColorData)==null?0:e.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.t$(l.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.t$(l.dismissButtonColorData.foregroundTitleColor)+";"};
_.X.computeBackgroundStyle=function(l){if(l&&this.data){var e="";l.backgroundColor!==void 0&&(e+="background-color:"+_.qv(l.backgroundColor)+";");return e}};
_.X.computeHasOverflowButton=function(l){return!!l.overflowButton};
_.X.updateButtonPalette=function(){if(this.data){var l;if((l=this.data.primaryButton)==null?0:l.buttonRenderer){var e;if((e=this.currentColorPalette)==null?0:e.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var O;((O=this.currentColorPalette)==null?0:O.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)})}}};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
_.X.updateTitleSpec=function(){var l;(l=this.data)!=null&&l.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")};
_.X.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l)};
gy.prototype.elementsPerRowChanged=gy.prototype.elementsPerRowChanged;gy.prototype.dataChanged=gy.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],gy.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],gy.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],gy.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gy.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],gy.prototype,"currentColorPalette",void 0);_.L([_.T(),_.q("design:type",Object)],gy.prototype,"primaryButton",void 0);
_.L([_.T({reflectToAttribute:!0,value:3}),_.q("design:type",Number)],gy.prototype,"elementsPerRow",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],gy.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],gy.prototype,"titleSize",void 0);_.L([_.T(),_.q("design:type",Number)],gy.prototype,"videoMetadataColor",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],gy.prototype,"miniMode",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.q("design:type",Boolean)],gy.prototype,"isFirstFeedItem",void 0);_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],gy.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.q("design:type",Boolean)],gy.prototype,"hasOverflowButton",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gy.prototype,"dataChanged",null);_.L([_.AA("elementsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gy.prototype,"elementsPerRowChanged",null);_.L([_.U({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],gy);
_.Y(gy,"ytd-brand-video-singleton-renderer",function(){if(jb4!==void 0)return jb4;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return jb4=l},{mode:_.Wf("kevlar_poly_si_batch_j070")?1:2});var Hfz;var cEf=_.XO(function(l){var e=l.data;return _.W(_.Jm,{data:function(){return e().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(e().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var O=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":O=88;break a;default:O=88}return O},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return e().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"qi"),fxF=_.XO(function(l){var e=l.metadataRow;
var O=l.delimiter;return _.W(_.KH,{each:function(){return e().textParts||[]},
keyBy:"INDEX"},function(E,J){return _.W(_.ZB,null,_.W(_.zK,{text:E,noWrap:!0,userInput:!0}),_.W(FpF,{delimiter:O,max:function(){return e().textParts.length},
index:J}))})},"ri"),FpF=_.XO(function(l){var e=l.delimiter;
var O=l.max;var E=l.index;return _.W(_.A,{cond:function(){return(e==null?void 0:e())&&O()-1>E()},
then:function(){return _.W("span",null,e)}})},"si"),R8i=_.XO(function(l){var e=l.data;
l={};return _.W("yt-profile-page-header-information-view-model",{class:_.ax("profile-page-header-information-view-model-wiz",(l["profile-page-header-information-view-model-wiz--mobile"]=!1,l))},_.W(_.A,{cond:function(){return e().onTap},
then:function(){return _.W(_.$8,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.t3(e().onTap)}},_.W(_.Tn,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:cEf}))},
else:function(){return _.W("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.W(_.Tn,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:cEf}))}}),_.W("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.W(_.A,{cond:function(){return e().onTap},
then:function(){return _.W(_.Tn,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(O){var E=O.data;
return _.W(_.$8,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.t3(E().onTap)}},_.W(_.zK,{text:function(){return E().title}}))}})},
else:function(){return _.W(_.Tn,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(O){var E=O.data;
return _.W(_.zK,{text:function(){return E().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.W(_.Tn,{data:function(){return e().metadata}},{profilePageHeaderMetadataViewModel:function(O){var E=O.data;
return _.W(_.A,{cond:function(){return E().metadataRows},
then:function(J){return _.W("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.W(_.KH,{each:J,keyBy:"INDEX"},function(z,M){return _.W(_.ZB,null,_.W(fxF,{metadataRow:z,delimiter:" \u2022 "}),_.W(FpF,{delimiter:" \u2022 ",max:function(){return J().length},
index:M}))}))}})}})))},"ti");
R8i.idomCompat=!0;_.Zw(R8i,"yt-profile-page-header-information-view-model",{props:{data:_.lB}});var iW=function(){return _.B.apply(this,arguments)||this};
_.m(iW,_.B);iW.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],iW.prototype,"data",void 0);_.L([_.U({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],iW);
_.Y(iW,"ytd-effect-pivot-header-view-model",function(){if(Hfz!==void 0)return Hfz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Hfz=
l},{mode:1});var Two;var wy=function(){return _.B.apply(this,arguments)||this};
_.m(wy,_.B);wy.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wy.prototype,"data",void 0);_.L([_.U({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],wy);
_.Y(wy,"ytd-source-pivot-header-renderer",function(){if(Two!==void 0)return Two;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Two=l},{mode:1});_.sbf=_.XO(function(l){var e=l.data;l=_.e4("content-list-item-view-model");_.xD(l,function(){return e().rendererContext});
var O=function(){var J;return _.Qz((J=e())==null?void 0:J.rendererContext)},E={};
return _.W("content-list-item-view-model",{el:l,class:_.ax("ytContentListItemViewModelHost",(E.ytContentListItemViewModelTappable=O,E)),role:function(){return O()?"listitem":void 0},
tabindex:function(){return O()?0:void 0}},_.W("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.W("div",{class:"ytContentListItemViewModelImageContainer"},_.W(_.A,{cond:function(){return e().image},
then:function(J){return _.W(_.Jm,{data:J,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.W(_.Tn,{data:function(){var J;
return(J=e())==null?void 0:J.avatar}},{avatarViewModel:_.Hp})),_.W("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.W("div",{class:_.ax("ytContentListItemViewModelTitle",function(){a:{switch(e().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var J="ytContentListItemViewModelProminentTitle";
break a}J=void 0}return J})},_.W(_.zK,{text:function(){return e().title}})),_.W("div",{class:"ytContentListItemViewModelMetadata"},_.W(_.Tn,{data:function(){return e().metadata}},{contentMetadataViewModel:function(J){return _.W(_.Bj0,{data:J.data,
layout:1})}})))),_.W("div",{class:"ytContentListItemViewModelActionButton"},_.W(_.Tn,{data:function(){var J;
return(J=e())==null?void 0:J.actionButton}},{buttonViewModel:_.hM,
toggleButtonViewModel:_.sh})))},"ui");_.Zw(_.XO(function(l){var e={},O={},E={},J={};return _.W("yt-card-view-model",{class:_.ax("ytCardViewModelHost",l.className,(e.ytCardViewModelOutline=function(){return l.data().cardStyle==="CARD_STYLE_OUTLINE"},e),(O.ytCardViewModelRaised=function(){return l.data().cardStyle==="CARD_STYLE_RAISED"||l.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},O),(E.ytCardViewModelTonal=function(){return l.data().cardStyle==="CARD_STYLE_TONAL"},E),(J.ytCardViewModelInverted=function(){return l.data().cardStyle===
"CARD_STYLE_INVERSE"},J))},_.W(_.Tn,{data:function(){return l.data().background}},{cinematicContainerViewModel:function(z){return _.W(_.pzk,{data:z.data})}}),_.W("div",{class:"ytCardViewModelContentWrapper"},_.W(_.Tn,{data:function(){return l.data().content}},{contentListItemViewModel:function(z){return _.W(_.sbf,{data:z.data})}})),_.W(_.Tn,{data:function(){return l.data().dismissAction}},{buttonViewModel:function(z){return _.W(_.hM,{data:z.data})}}))},"vi"),"yt-card-view-model",{props:{data:_.lB,
className:_.lB}});_.Zw(_.XO(function(l){var e=function(){return _.I(l.data().flowRoot,Vw4)};
_.sC(function(){var O=e(),E=function(){},J=function(){};
if(O){var z,M,Z,u=((Z=_.I((z=e())==null?void 0:(M=z.steps)==null?void 0:M[0],_.aF0))==null?void 0:Z.stepId)||"";xM3(O,u);E=e8u(O);J=OfP(O)}_.B3(function(){var d=e();d&&_.Om().dispatch(_.IK("flowStateEntity",d.flowStateEntityKey));E();E=function(){};
J();J=function(){}})});
return _.W("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.W(_.hrq,{contentId:function(){return l.data().contentId}},function(){return _.W("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.W(_.A,{cond:e,
then:function(O){return _.W(_.gdP,{data:O})}}))}))},"wi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.lB}});_.Zw(_.XO(function(){return _.W("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.W(_.E6u,null)),_.W(_.LE1,{data:{rows:1},isExploreHub:!0}))},"xi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Zw(_.XO(function(l){var e=l.data;var O=l.standardUnitMinWidth;l=_.e4("ytd-chips-shelf-with-video-shelf-renderer");var E=_.b((0,_.NBk)(e)),J=E.next().value,z=E.next().value,M=function(){var u,d=(u=J())==null?void 0:u.contents;return d==null||d.length===0},Z=function(){z(Object.assign({},J(),{contents:[]}))};
_.VR(l,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var u=_.I(e().chipsShelf,uyo);if(u!=null&&u!=null&&u.autoselectChipOnVisible){var d,g,w=_.I(u==null?void 0:(d=u.contents)==null?void 0:d[(g=u.autoselectedChipIndex)!=null?g:0],_.qS);w&&w.tapCommand&&_.r6(w.tapCommand)}}});
return _.W("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:l},_.W(_.hrq,{contentId:function(){return e().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.W("div",null,_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.W(_.Tn,{data:function(){return e().header}},{sectionHeaderViewModel:function(u){return _.W(_.z3,{data:u.data,
disableHorizontalPadding:!0})}})),_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.W(_.Tn,{data:function(){return e().chipsShelf}},{chipsShelfViewModel:function(u){return _.W(_.rSk,{data:u.data,
callback:Z,enableSingleChipSelection:!0})}})),_.W("div",null,_.W(_.A,{cond:M,
then:function(){return _.W("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.W(_.LE1,{data:{rows:1},isExploreHub:!0}))}}),_.W(_.Tn,{data:function(){var u;
return(u=J())==null?void 0:u.contents}},{richShelfRenderer:function(u){return _.W(_.r2q,{data:u.data,
isInnerShelf:!0,standardUnitMinWidth:O})}})))}))},"yi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.lB,
standardUnitMinWidth:_.lB}});var Ay=function(){return _.B.apply(this,arguments)||this};
_.m(Ay,_.B);
Ay.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Ay.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.L([_.K(_.sY),_.q("design:type",Object)],Ay.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],Ay.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ay.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Number)],Ay.prototype,"standardUnitMinWidth",void 0);_.L([_.U({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Ay);
_.Y(Ay,"ytd-rich-section-renderer",function(){if(pr3!==void 0)return pr3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return pr3=l},{mode:_.Wf("kevlar_poly_si_batch_j029")?
1:2});_.Zw(_.UhC,"yt-profile-identity-info-view-model",{props:{data:_.lB,hideDivider:_.lB}});_.Zw(_.sj1,"yt-page-header-view-model",{props:{data:_.lB,noPadding:_.lB,enableBanner:_.lB,cinematicContainerTopbarOffset:_.lB,allowCinematicContainerOverflow:_.lB,displayAsSidebar:_.lB,displayAsPanel:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=function(){var J;return(J=e().numColumns)!=null?J:2},E=function(){return O()>1?3:2};
l={};return _.W("ytd-rich-grid-group",{class:_.ax("ytdRichGridGroupHost",(l.ytdRichGridGroupHostFirstColumn=function(){return e().colIndex===0},l)),
style:_.HF({"--ytd-rich-grid-group-num-columns":O,"--ytd-rich-grid-items-per-group":E})},_.W("div",{class:"ytdRichGridGroupContents"},_.W(_.Tn,{data:function(){var J;return(J=e().contents)==null?void 0:J.slice(0,E())}},{richItemRenderer:function(J){return _.W(_.vi1,{data:J.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"zi"),"ytd-rich-grid-group",{props:{data:_.lB}});var n5=function(){var l=_.B.apply(this,arguments)||this;l.resizeOnObserverInit=!1;l.isInlinePreviewDisabled=_.a("web_disable_inline_preview");l.disableStickyFilterBar=!1;l.transparentBackgroundChipsBar=!1;l.hideChipsBar=!1;l.isWatchDefaultLayout=!0;l.continuationShowButton=!1;l.rowReducedHorizontalMargin=!1;l.useCompactList=!1;l.manualDownloadsPresent=!1;l.smartDownloadsPresent=!1;l.shouldRenderDownloadsBanner=!1;l.hasOptedIntoSmartDownloads=!1;l.elementsPerRow=4;l.typographyBump=!1;l.showGnomeContents=
!1;l.showExploreHubContents=!1;l.slimItemsPerRow=1;l.pageLoadingFromNavigation=!1;l.loggingRefactor=_.a("kevlar_rich_grid_logging_fix");l.resizeObserver=null;l.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"};l.rendererToTagNameMap=
new Map(Object.entries(l.contentMapping()).map(function(e){var O=_.b(e);e=O.next().value;O=O.next().value;return[e,O.component]}));
l.insertedContent=new Map;return l};
_.m(n5,_.B);_.X=n5.prototype;_.X.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var l=_.b(_.ud(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=l.next();!e.done;e=l.next())e.value.useCompactList=this.useCompactList};
_.X.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var l=_.b(_.ud(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=l.next();!e.done;e=l.next())e=e.value,e.sizing=this.sizing,e.typographyBump=this.typographyBump};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.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]]"}}}};
_.X.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}}};
_.X.attached=function(){document.addEventListener("yt-page-type-changed",_.id(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19312_throttledOnResize=new _.b3(this.resizeObserved,_.Cv("rich_grid_resize_delay_ms",50),this)};
_.X.detached=function(){var l;(l=this.resizeObserver)==null||l.disconnect();document.removeEventListener("yt-page-type-changed",_.id(this,this.onPageChange))};
_.X.insertRichSection=function(l){var e=l.richItemTargetId;l=l.richSectionRendererToInsert;e&&l&&(this.insertedContent.set(e,l),this.reflowContent())};
_.X.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.X.computeIsInlinePreviewEnabled=function(l,e,O){return _.a("web_disable_inline_preview")?!1:!O&&_.C$u({miniplayerIsActive:l,miniplayerPlaybackState:e})};
_.X.computeSizing=function(){var l=_.bjT(this.data);if(l||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return l?this.useCompactList?"COMPACT":l:this.miniMode?"COMPACT":_.a("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.X.updateItemMinAndMaxWidth=function(){var l=_.Cv("rich_grid_max_item_width",500);l>0&&_.dP(this.hostElement,{"--ytd-rich-grid-item-max-width":l+"px"});var e;l=this.getRichItemMinWidth((e=this.hostElement)==null?void 0:e.clientWidth);l>0&&_.dP(this.hostElement,{"--ytd-rich-grid-item-min-width":l+"px"})};
_.X.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.X.resizeObserved=function(){_.dQ(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.X.navigateBackToHome=function(){_.a("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.a("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var l=_.V2().resolve(_.XZ).isOnWatch(),e,O=((e=_.k1(location.pathname))==null?void 0:e.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(O)||l)&&this.gnomeContents&&_.a("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);l&&this.exploreHubContents&&_.a("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Om().dispatch(_.oM({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.X.onPageChange=function(){var l=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.a("disable_chip_select_on_nav")||_.dQ(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.UD.addJob(function(){l.pageLoadingFromNavigation=!1;_.a("disable_chip_select_on_nav")&&_.a("h5_reset_cache_and_filter_before_update_masthead")&&l.resetCacheAndIsFilteredFeed();l.setMasthead();l.maybeSetBigYoodle();l.forceRefreshAndLog();l.terminateVideoPreview();_.a("web_hide_gnome_until_user_navigates_back_to_home")&&
(l.dataChanged(),_.OK(l,function(){if(l.showGnomeContents){var e=Array.from(_.ud(l.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(E){E=_.ud(E).querySelector("ytd-rich-shelf-renderer");return!!E&&E.isGnomeShelf()});
if(e){e=e.offsetTop-l.contentsElement.offsetTop;var O=_.V2().resolve(_.XZ).getCurrentPage();O&&O.getPageScrollingElement().scrollTo({top:e,behavior:"smooth"})}}}));
_.a("web_hide_explore_hub_until_user_navigates_back_to_home")&&(l.dataChanged(),_.OK(l,function(){if(l.showExploreHubContents&&!_.a("web_explore_hub_no_scroll")){var e=Array.from(_.ud(l.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(E){return!!E.querySelector("ytd-talk-to-recs-flow-renderer")});
if(e){e=e.offsetTop-l.contentsElement.offsetTop;var O=_.V2().resolve(_.XZ).getCurrentPage();O&&O.getPageScrollingElement().scrollTo({top:e,behavior:"smooth"})}}}))},8)):((_.a("web_hide_gnome_until_user_navigates_back_to_home")||_.a("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.X.dataChanged=function(){var l=this,e=_.Cv("web_rich_grid_row_margin",0);e>0&&_.dP(this.hostElement,{"--ytd-rich-grid-row-margin":e+"px"});_.dQ(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.OK(this,function(){l.updateRichItemGridPositions();l.contentsElement&&_.dP(l.hostElement,{"--ytd-rich-grid-content-offset-top":l.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.X.initResizeObserver=function(){var l=this;if(window.ResizeObserver){var e;(e=this.resizeObserver)==null||e.disconnect();var O=!1;this.resizeObserver=new ResizeObserver(function(){if(O){var E;(E=l.resizeObserver)==null||E.disconnect();var J;(J=l.JSC$19312_throttledOnResize)==null||J.fire();requestAnimationFrame(function(){var M;(M=l.JSC$19312_throttledOnResize)==null||M.fire();l.initResizeObserver()})}else if(O=!0,l.resizeOnObserverInit){var z;
(z=l.JSC$19312_throttledOnResize)==null||z.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.X.contentLengthChanged=function(){if(_.a("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.dQ(this.hostElement,"ytd-rich-item-index-update-action")};
_.X.updateElementsPerRow=function(){_.dQ(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.oM({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.oM({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.X.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.X.onRichShelfRendererCollapse=function(l){if(this.shownItems){var e=l.detail;l=this.shownItems.findIndex(function(E){var J,z;return((z=_.I(E==null?void 0:(J=E.richSectionRenderer)==null?void 0:J.content,_.Q_S))==null?void 0:z.trackingParams)===e});
var O=l+1;l<0||O>=this.contentsElement.children.length||!this.shownItems[O].richItemRenderer||this.contentsElement.children[O].scrollIntoView({behavior:"smooth",block:"start"})}};
_.X.onSoftReloadPage=function(){this.scrollUpToTop()};
_.X.handleRerenderDownloadsData=function(){_.a("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.X.handlePlaylistRemoveVideosAction=function(l){var e;if(((e=_.I(l,_.gh6))==null?0:e.setVideoIds)&&this.data&&this.data.contents){l=_.I(l,_.gh6).setVideoIds;for(e=this.data.contents.length-1;e>=0;){var O=_.I(this.data.contents[e],_.R6);(O=O&&_.I(O.content,_.U1))&&O.setVideoId&&l.includes(O.setVideoId)&&this.splice("data.contents",e,1);e--}this.updateIndices()}};
_.X.updateIndices=function(){if(this.data&&this.data.contents)for(var l=0;l<this.data.contents.length;l++)this.set("data.contents."+l+".richItemRenderer.index",_.xp(String(l+1)))};
_.X.hasTopRowInlinePlayableVideoWithEndorsement=function(l){var e;return!((e=l.slice(0,this.getItemsPerRow()))==null||!e.some(function(O){var E;O=_.I(O==null?void 0:(E=O.richItemRenderer)==null?void 0:E.content,_.Lp);var J;return(O==null?void 0:O.inlinePlaybackEndpoint)&&(O==null?void 0:(J=O.thumbnailOverlays)==null?void 0:J.some(function(z){return z.thumbnailOverlayEndorsementRenderer}))}))};
_.X.refreshGridLayoutNew=function(l,e,O,E){var J=E.postsPerRow;var z=E.slimItemsPerRow;var M=E.gameCardsPerRow;E=E.miniGameCardsPerRow;var Z;if((Z=this.data)==null||!Z.contents||!this.containerWidth)return!1;var u;if((u=this.data.responsiveContainerConfiguration)==null?0:u.responsiveSize){var d=_.v2d(this.data.responsiveContainerConfiguration,this.containerWidth),g;Z=_.E6(Object.assign({},d,{standardUnitMinWidth:(g=this.data)==null?void 0:g.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&d.isCompactList)}else Z=_.E6({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=Z.typographyBump;g=!1;if(l||this.elementsPerRow!==Z.numItems||this.postsPerRow!==J||this.slimItemsPerRow!==z||this.gameCardsPerRow!==
M||this.miniGameCardsPerRow!==E||this.gutter!==Z.gutter)g=this.elementsPerRow!==Z.numItems,this.elementsPerRow=Z.numItems,this.postsPerRow=J,this.slimItemsPerRow=z,this.gameCardsPerRow=M,this.miniGameCardsPerRow=E,this.gutter=Z.gutter,this.itemWidth=Z.itemWidth,this.reflowContent(e),_.dP(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Z.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(O);this.ytdReduxBehavior.dispatch(_.oM({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:Z.maxContainerWidth}));return g};
_.X.refreshGridLayout=function(l,e){var O,E=(O=this.hostElement)==null?void 0:O.clientWidth;this.containerWidth=this.adjustRichGridWidth(E,!0);var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return l&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.a("rg_pending_reflow_ks")&&(l=!0,this.pendingForceReflow=!1);O=this.getRichItemMinWidth(E);var z=this.isShortsPanel?146:194,M=this.getMiniGameCardMinWidth(),Z=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
E=O=this.calcElementsPerRow(O,Z);(J=O<=3&&this.miniModeAllowed())&&(O=this.calcElementsPerRow(240,4));var u=this.calcMaxSlimElementsPerRow(O,Z,this.isDefaultGrid);Z=this.calcElementsPerRow(z,u);var d=this.calcElementsPerRow(this.isCompactGrid?z:154,u);z=this.calcElementsPerRow(this.isCompactGrid?z:M,u);M=!1;if(this.sizing)return this.refreshGridLayoutNew(l,e,J,{postsPerRow:E,slimItemsPerRow:Z,gameCardsPerRow:d,miniGameCardsPerRow:z});if(l||this.elementsPerRow!==O||this.postsPerRow!==E||this.slimItemsPerRow!==
Z||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==z)M=this.elementsPerRow!==O,this.elementsPerRow=O,this.postsPerRow=E,this.slimItemsPerRow=Z,this.gameCardsPerRow=d,this.miniGameCardsPerRow=z,this.reflowContent(e),this.updateElementsPerRow(),_.dP(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)&&_.dP(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(J);_.dQ(this.hostElement,"yt-rich-grid-layout-refreshed");return M};
_.X.getRichItemMinWidth=function(l){var e=_.Cv("rich_grid_min_item_width",310);if(!_.a("kevlar_disable_min_width_override")){var O,E;e=(E=(O=this.data)==null?void 0:O.minItemWidth)!=null?E:e}return e+_.lQu(l)};
_.X.calcMaxSlimElementsPerRow=function(l,e,O){return(O===void 0?0:O)?l===1?2:l%2===0?_.a("web_shorts_2_by_3_reduce_items_per_row")&&l>=4?l/2*3-1:l/2*3:_.a("web_shorts_2_by_3_reduce_items_per_row")&&l>=3?l+1:l+2:e*2};
_.X.adjustRichGridWidth=function(l,e){var O=_.a("disable_rich_grid_guide_compensation");if(!this.isWatch&&!O){O=_.V2().resolve(_.MG(_.Yl));var E=O==null?void 0:O.guideElement;if(!(!O||O.getData()||E!=null&&E.opened||O.getMiniGuideVisible()))if(O.canFitPersistentGuide(l)&&O.getGuideExpandsAutomatically()){var J,z,M=Number((J=window.getComputedStyle(this.hostElement))==null?void 0:(z=J.getPropertyValue("--app-drawer-width"))==null?void 0:z.replace("px",""));l-=M||0}else if(O.canFitMiniGuide(l)){var Z;
J=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(Z=M.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:Z.replace("px",""));l-=J||0}}l>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(l-=e?32:48));return l};
_.X.calcElementsPerRow=function(l,e){var O=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),E=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((O+E)/(l+E))||1,e)};
_.X.reflowContent=function(l){var e=this;if(!this.isReflowing){this.isReflowing=!0;var O,E,J=!!((O=this.data)==null?0:(E=O.contents)==null?0:E.some(function(k){return _.I(k,_.o2)}));
O=this.getItemsPerRow();var z;E=(z=this.data)==null?void 0:z.reflowOptions;l&&(_.Yu("rgr_s"),_.OK(this,function(){_.Yu("rgr_nrf")}));
l={};(z=_.ud(this.hostElement).querySelector("#contents"))&&(l={contentElement:z,rendererToTagNameMap:this.rendererToTagNameMap});z=(z=this.data.contents)?z.slice():[];var M=(_.a("web_hide_gnome_behind_feed_filter_chip")||_.a("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,Z=_.a("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,u=-1,d=-1;if(this.isHomePage&&Z){for(Z=0;Z<z.length;Z++){var g=void 0,w=void 0;_.I((g=z[Z])==null?void 0:
(w=g.richSectionRenderer)==null?void 0:w.content,MwF)&&(d=Z)}d>-1&&(this.exploreHubContents=z.splice(d,1))}if(this.isHomePage&&M){for(d=0;d<z.length;d++)w=g=void 0,(Z=_.I((g=z[d])==null?void 0:(w=g.richSectionRenderer)==null?void 0:w.content,_.Q_S))&&M&&(w=g=void 0,Z=_.I((g=Z)==null?void 0:(w=g.contents)==null?void 0:w[0],_.R6),g=void 0,_.I((g=Z)==null?void 0:g.content,_.xCq)&&(u=d));u>-1&&(this.gnomeContents=z.splice(u,1))}var n=rvF(z,O,J,E,this.getRichGridStyle(),l,this.insertedContent);J=function(){e.shownItems=
n;e.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(n),_.OK(this,J)):J()}};
_.X.getFirstRowItems=function(l){for(var e=[],O=0;O<l.length;O++){var E=void 0,J=void 0,z=void 0,M=void 0,Z=void 0,u=void 0;if(((E=l[O])==null?void 0:(J=E.richItemRenderer)==null?void 0:J.rowIndex)===0||((z=l[O])==null?void 0:(M=z.richGroupRenderer)==null?void 0:M.rowIndex)===0||((Z=l[O])==null?void 0:(u=Z.richSectionRenderer)==null?void 0:u.rowIndex)===0)e.push(l[O]);else break}return e};
_.X.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.X.handleChipCloudChipSelectAction=function(l,e){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.a("web_hide_gnome_behind_feed_filter_chip")&&(e?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.X.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.a("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.X.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.a("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.X.terminateVideoPreview=function(){_.dQ(this.hostElement,"yt-terminate-video-preview-action")};
_.X.updateRichItemGridPositions=function(){var l={gridData:{gridColumnCount:this.elementsPerRow}},e;if((e=this.data)==null?0:e.trackingParams)this.loggingRefactor?_.yN().stateChanged(this.data.trackingParams,l):(e=_.P9())&&_.JY(e,_.cf(this.data.trackingParams),l);_.dQ(this.hostElement,"ytd-rich-item-index-update-action")};
_.X.miniModeAllowed=function(){return _.a("disable_channels_mini_mode")?!1:this.isChannelPage};
_.X.getMiniGameCardMinWidth=function(){return 154};
_.X.updateMiniMode=function(l){this.miniMode=this.miniModeAllowed()&&l;this.ytdReduxBehavior.dispatch(_.oM({type:"SET_RICH_GRID_MINI_MODE",payload:l}))};
_.X.isCurrentPage=function(){return location.pathname===this.pagePath};
_.X.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var l=_.V2().resolve(_.XZ).getCurrentPage();l&&l.setScrollTop(0)}};
_.X.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.X.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.X.maybeSetBigYoodle=function(){var l,e=(l=this.data)==null?void 0:l.bigYoodle;this.bigYoodleData!==e&&(this.bigYoodleData=e)};
_.X.setMasthead=function(){var l;((l=this.data)==null?0:l.masthead)?this.mastheadData=this.data.masthead:_.a("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.X.getRichGridStyle=function(){var l,e;return(e=(l=this.data)==null?void 0:l.style)!=null?e:"RICH_GRID_STYLE_UNKNOWN"};
_.X.onIsShortsGridChange=function(){var l=this.ytdReduxBehavior,e=l.dispatch,O=this.getRichGridStyle();e.call(l,_.oM({type:"SET_RICH_GRID_STYLE",payload:O}))};
_.Ji.Object.defineProperties(n5.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var l=_.V2().resolve(_.XZ).getCurrentPage(),e,O,E;return(((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_audio_pivot"||_.a("web_enable_channel_pivot_panel")&&((O=this.data)==null?void 0:O.targetId)==="browse-feedFEsfv_channel_pivot"||_.a("web_enable_effect_pivot_panel")&&((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_effect_pivot")&&(l==null?void 0:l.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.a("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 l;return!((l=this.data)==null?0:l.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var l;return((l=_.V2().resolve(_.XZ).getCurrentPage())==null?void 0:l.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var l;return((l=_.V2().resolve(_.XZ).getCurrentPage())==null?void 0:l.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var l;return this.hideChipsBar||(((l=this.data)==null?void 0:l.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.a("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.targetId)||"")==="watch-next-feed"&&!_.a("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?0:l.enableContentSpecificAspectRatio)||((e=this.data)==null?0:(O=e.responsiveContainerConfiguration)==null?0:O.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Cv("web_continuation_handler_margin",0):0}}});
n5.prototype.onIsShortsGridChange=n5.prototype.onIsShortsGridChange;n5.prototype.onReloadContinuationFinish=n5.prototype.onReloadContinuationFinish;n5.prototype.reflowContent=n5.prototype.reflowContent;n5.prototype.handleRerenderDownloadsData=n5.prototype.handleRerenderDownloadsData;n5.prototype.onRichShelfRendererCollapse=n5.prototype.onRichShelfRendererCollapse;n5.prototype.onRequestElementsPerRow=n5.prototype.onRequestElementsPerRow;n5.prototype.contentLengthChanged=n5.prototype.contentLengthChanged;
n5.prototype.dataChanged=n5.prototype.dataChanged;n5.prototype.onSizingChange=n5.prototype.onSizingChange;n5.prototype.onUseCompactListChange=n5.prototype.onUseCompactListChange;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],n5.prototype,"ironResizableBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],n5.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],n5.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],n5.prototype,"componentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],n5.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],n5.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],n5.prototype,"miniMode",void 0);_.L([_.T({value:[]}),_.q("design:type",Array)],n5.prototype,"shownItems",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],n5.prototype,"isReflowing",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],n5.prototype,"isFilteredFeed",void 0);_.L([_.T({selector:_.ZpL}),_.q("design:type",Boolean)],n5.prototype,"guideIsExpanded",void 0);
_.L([_.T({selectorArgs:["entitySelectorType"],selector:function(l,e){if(_.a("kevlar_modern_downloads_page")&&e&&e!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var O=l.entities;e=_.RM(O);var E=_.T4(O),J=_.KV8(l),z=_.pCg(l);l=_.j62(l);var M=_.OpA(O),Z=_.jo(e);O=_.sn(O);return _.Ph8(e,E,M,J,z,Z,O,l);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return e=_.RM(l.entities),_.Y2x(e);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return e=
_.QTu(l.entities),_.hC2(e);default:_.hG(new _.Hk("Error: entitySelectorType defined but not matched in selector.",l,e))}}}),
_.q("design:type",Object)],n5.prototype,"entityDrivenRichGridData",void 0);_.L([_.T(),_.q("design:type",Object)],n5.prototype,"resizeOnObserverInit",void 0);_.L([_.T(),_.q("design:type",Object)],n5.prototype,"bigYoodleData",void 0);_.L([_.T(),_.q("design:type",Object)],n5.prototype,"mastheadData",void 0);_.L([_.T(),_.q("design:type",Boolean)],n5.prototype,"isInlinePreviewDisabled",void 0);_.L([_.T(),_.q("design:type",Object)],n5.prototype,"disableStickyFilterBar",void 0);
_.L([_.T(),_.q("design:type",Object)],n5.prototype,"transparentBackgroundChipsBar",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],n5.prototype,"hideChipsBar",void 0);_.L([_.T(),_.q("design:type",Object)],n5.prototype,"isWatchDefaultLayout",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],n5.prototype,"continuationShowButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],n5.prototype,"rowReducedHorizontalMargin",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],n5.prototype,"useCompactList",void 0);_.L([_.T({selector:function(l){return _.T4(l.entities).length>0}}),
_.q("design:type",Object)],n5.prototype,"manualDownloadsPresent",void 0);_.L([_.T({selector:function(l){return _.RM(l.entities).length>0}}),
_.q("design:type",Object)],n5.prototype,"smartDownloadsPresent",void 0);_.L([_.T({selector:_.pCg}),_.q("design:type",Object)],n5.prototype,"shouldRenderDownloadsBanner",void 0);_.L([_.T({selector:_.KV8}),_.q("design:type",Object)],n5.prototype,"hasOptedIntoSmartDownloads",void 0);_.L([_.AA("useCompactList"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"onUseCompactListChange",null);
_.L([_.AA("sizing","typographyBump"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"onSizingChange",null);_.L([_.T({selector:_.WVT}),_.q("design:type",Number)],n5.prototype,"miniplayerPlaybackState",void 0);_.L([_.T({selector:_.Pt}),_.q("design:type",Boolean)],n5.prototype,"miniplayerIsActive",void 0);
_.L([_.T({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.q("design:type",Boolean)],n5.prototype,"isInlinePreviewEnabled",void 0);_.L([_.T({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.q("design:type",String)],n5.prototype,"sizing",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],n5.prototype,"elementsPerRow",void 0);
_.L([_.T(),_.q("design:type",Object)],n5.prototype,"typographyBump",void 0);_.L([_.T(),_.q("design:type",Number)],n5.prototype,"itemWidth",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],n5.prototype,"headerElement",void 0);_.L([_.aB("#contents"),_.q("design:type",HTMLElement)],n5.prototype,"contentsElement",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"dataChanged",null);
_.L([_.y0("data.contents.length"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"contentLengthChanged",null);_.L([_.wP("yt-request-elements-per-row"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"onRequestElementsPerRow",null);
_.L([_.wP("yt-rich-shelf-renderer-collapse"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],n5.prototype,"onRichShelfRendererCollapse",null);_.L([_.y0("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"handleRerenderDownloadsData",null);
_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],n5.prototype,"entitySelectorType",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isSub",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isWatch",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isShortsPanel",null);_.L([_.T({reflectToAttribute:!0}),_.R("isWatch"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"reducedTopMargin",null);_.L([_.T({reflectToAttribute:!0}),_.R("data","isWatch","isWatchDefaultLayout"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"noTopMargin",null);
_.L([_.T({reflectToAttribute:!0}),_.R("isInlinePreviewEnabled","shownItems"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"topRowEndorsement",null);_.L([_.R("data.header"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"hideHeader",null);_.L([_.wP("yt-rich-grid-reflow"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean]),_.q("design:returntype")],n5.prototype,"reflowContent",null);
_.L([_.wP("yt-reload-continuation-finish"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"onReloadContinuationFinish",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isSlimGrid",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isShortsGrid",null);
_.L([_.R("data","isSlimGrid","isShortsGrid"),_.T(),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"noRichItemGutterMargins",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isShortsGridSlim",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isCompactGrid",null);
_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"isDefaultGrid",null);_.L([_.R("data.targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"hideChipsBarOnHome",null);_.L([_.R("data.targetId"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"hideChipsBarOnWatch",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n5.prototype,"onIsShortsGridChange",null);_.L([_.R("data.enableContentSpecificAspectRatio"),_.T(),_.q("design:type",Boolean),_.q("design:paramtypes",[])],n5.prototype,"force16By9ThumbnailAspectRatio",null);_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],n5.prototype,"continuationTriggerOffset",null);_.L([_.U({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],n5);
_.Y(n5,"ytd-rich-grid-renderer",function(){if(Ix4!==void 0)return Ix4;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Ix4=l},{mode:2});var Go4=_.XO(function(l){var e=l.thumbsUp,O=l.thumbsDown,E=l.rightAlignThumbs;l=_.b(_.AF(!1,void 0,"FjNDrf"));var J=l.next().value,z=l.next().value;l=_.b(_.AF(!1,void 0,"Tphjfb"));var M=l.next().value,Z=l.next().value;l={};return _.W("div",{class:_.ax("ytwThumbsUpDownThumbs",(l.ytwThumbsUpDownRightAlign=function(){return E==null?void 0:E()},l))},_.W(_.sh,{data:e,
onToggle:function(u){z(u);M()&&Z(!1)},
buttonShapeOverrides:function(){return{toggled:J()}}}),_.W(_.sh,{data:O,
onToggle:function(u){Z(u);J()&&z(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}))},"Ai");
Go4.idomCompat=!0;var P93=_.XO(function(l){var e=function(){return l.data().pendingStateEntityKey||""},O=_.kD(_.EYO,e),E=function(){var J;
if(!(J=l.disabled())){var z;J=!((z=O())==null||!z.isPendingResponse)}return J};
return _.W("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.W(_.KH,{each:function(){return l.data().chipData||[]},
keyBy:"REFERENCE"},function(J){return _.W(Bwi,{data:J,disabled:E,pendingStateKey:e,onError:l.onError})}))},"Bi"),Bwi=_.XO(function(l){var e=_.e4("button"),O=_.b(_.AF(!0,void 0,"HBREAe")),E=O.next().value,J=O.next().value,z=function(){return l.data().text.content},M=_.pd(function(Z){var u,d,g,w,n,k,y,c;
return _.V(function(f){switch(f.nextAddress){case 1:Z.stopPropagation();if(l.disabled())return f.return();d=String(Math.floor(((u=_.gC())==null?void 0:u.getCurrentTime())||0)*1E3);g="youchat-"+Date.now();w=function(){_.qT(l.data().onClick||{});var P={continuationCommand:{token:l.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},h={inputComposerFormData:{clientMessageId:g,playerOffsetMs:d}};return new Promise(function(N,t){_.qT(P,{form:{formData:h},commandController:{onSuccess:function(r,
D){N(D)},
onServerError:function(r,D){t(D.error)}}})})};
n=_.JE0(l.pendingStateKey());n(!0);_.Laz("#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");J(!1);_.b1(f,2);return _.C(f,w(),4);case 4:_.Q2(f,3);break;case 2:k=_.u1(f),(c=(y=l).onError)==null||c.call(y,k);case 3:n(!1),_.Cl(f)}})});
return _.W(_.A,{cond:E,then:function(){return _.W("div",{class:"ytwYouChatChipsDataChipWrapper"},_.W("button",{el:e,class:"ytwYouChatChipsDataChip","data-disabled":l.disabled,"on:click":M,tabindex:0},z))}})},"Ci");var UQo=_.XO(function(l){var e=l.data;return _.W("yt-conversation-resource-view-model",{class:_.ax("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.W(_.Tn,{data:function(){var O,E;return((O=e().conversationResourceData)==null?void 0:(E=O.learningGuideData)==null?void 0:E.sections)||[]}},{expandableMetadataViewModel:function(O){return _.W(_.aWf,{data:O.data})}}))},"Di");
UQo.idomCompat=!0;var YX4=_.XO(function(l){var e=function(){var t;return(t=l.data().text)==null?void 0:t.content},O=function(){var t,r;
return(t=l.data().webData)==null?void 0:(r=t.textResult)==null?void 0:r.content},E=_.V2().resolve(_.OL),J=_.iV(),z=function(){return l.data().chatResponseStyle},M=function(){return!l.data().transparentBackground},Z=function(){return l.data().rightAlignThumbs},u=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:l.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},d=function(){var t;
return l.data().webData||((t=l.data().text)==null?void 0:t.content)||l.data().videoResultsData||l.data().conversationResourceViewModel||l.data().quiz},g=function(){var t;
return(t=l.data().videoResultsData)==null?void 0:t.videoShelf},w=function(){var t;
return _.I(((t=l.data().videoResultsData)==null?void 0:t.videoShelf)||{},oY4)},n=function(){var t;
return(t=l.data().webData)==null?void 0:t.sourcesShelf},k=function(){var t;
return _.I(((t=l.data().webData)==null?void 0:t.sourcesShelf)||{},oY4)},y=function(){return _.I(l.data().conversationResourceViewModel||{},Wpz)},c=function(){return _.I(l.data().quiz||{},Zfu)},f=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:l.data().thumbsDownViewModel&&l.data().thumbsUpViewModel},P=function(){return _.I(l.data().thumbsUpViewModel,_.ci)},h=function(){return _.I(l.data().thumbsDownViewModel,_.ci)};
_.RU(function(){requestAnimationFrame(function(){var t;(t=l.shouldAnimateIcon)!=null&&t.call(l)&&Xri(J.lottieEl)})});
var N={};return _.W("you-chat-item-view-model",{class:_.ax("ytwYouChatItemViewModelYouChatItemViewModel",(N.ytwYouChatItemViewModelHostNoPadding=function(){return!1},N)),
"data-target-id":function(){return l.data().id||""}},_.W(_.A,{cond:function(){return l.data().removeIcon?!1:d()},
then:function(){var t={};return _.W("div",{"aria-hidden":"true"},_.W(_.k7,{className:_.ax("ytwYouChatItemViewModelIcon",(t.ytwYouChatItemViewModelRtl=E==="rtl",t.ytwYouChatItemViewModelHidden=function(){return!(l.data().hideIcon||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:d())},t)),
animationName:"YOUCHAT_ICON",data:u,animationRef:J}))}}),_.W(_.A,{cond:d,
then:function(){var t={};return _.W("div",{class:_.ax("ytwYouChatItemViewModelHost",(t.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},t.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},t.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},t.ytwYouChatItemViewModelGradientBackground=M,t)),
role:"alert"},_.W(_.A,{cond:e,then:function(r){return _.W(_.fc,{text:r})}}),_.W(_.A,{cond:O,
then:function(r){return _.W(_.fc,{text:r})}}),_.W(_.A,{cond:g,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.cq,{data:w,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.W(_.A,{cond:n,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.cq,{data:k,hasPeek:!0,disableArrows:!1}))}}),_.W(_.A,{cond:y,
then:function(){return _.W(UQo,{data:y})}}),_.W(_.A,{cond:c,
then:function(){return _.W(_.i$1,{data:c})}}),_.W(_.A,{cond:f,
then:function(){return _.W(Go4,{thumbsUp:P,thumbsDown:h,rightAlignThumbs:Z})}}))}}),_.W(_.A,{cond:function(){return l.data().chipsData},
then:function(t){return _.W(P93,{data:t,disabled:l.pending,onError:l.onError})}}))},"Ei");
YX4.idomCompat={callbacks:{onError:!0,onSend:!0}};var h84=_.XO(function(l){var e=function(){return l.data().choiceSelectedText};
return _.W("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.W(_.A,{cond:e,then:function(){return _.W("div",{class:"ytYouChatUserTurnChoiceSelected"},_.W(_.zK,{text:e}))}}),_.W("div",{class:"ytYouChatUserTurnUserMessage"},function(){return l.data().text}))},"Fi");var LpC=_.XO(function(l){var e=_.b((0,_.S4q)(l.data)).next().value;return _.W("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return l.data().targetId||""}},_.W(_.Tn,{data:function(){return l.data().header}},{chipBarViewModel:_.U2i}),_.W(_.Tn,{data:function(){return e().contents}},{accordionViewModel:_.nQx,
alertBannerViewModel:_.NJC,chatLoadingViewModel:_.J50,chatUserTurnViewModel:h84,learningJourneyLoaderViewModel:_.gQx,lockupViewModel:function(O){return _.W(_.Cw,{data:O.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:l.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(O){return _.W(YX4,{data:O.data,pending:!1})}}))},"Gi");_.Zw(_.XO(function(l){var e=_.b((0,_.S4q)(l.data)).next().value,O=_.e4("yt-section-list-renderer"),E=_.b(_.AF(void 0,void 0,"rQpPgc")),J=E.next().value,z=E.next().value,M=function(){var Z;return _.I((Z=l.data().sectionListLayoutConfiguration)==null?void 0:Z.layoutConfiguration,C9z)};
_.sC(function(){var Z,u=(Z=O.value)==null?void 0:Z.clientWidth;if(M()){Z=M();var d=Z.responsiveSize;u=u<528?"CONTAINER_SIZE_NARROW":u<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var g=_.b(Z.responsiveMap||[]);for(var w=g.next();!w.done;w=g.next())if(w=w.value,w.containerSize===u){g=w.containerType;break b}g=void 0}if(g&&d){b:{if(g==="CONTAINER_TYPE_VERTICAL_LIST")if(d==="RESPONSIVE_SIZE_STANDARD"){if(u!=="CONTAINER_SIZE_NARROW"){w="50%";break b}}else{w=u==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}w=void 0}Z={responsiveSize:d,containerSize:u,containerType:g,force16By9ThumbnailAspectRatio:!Z.enableContentSpecificAspectRatio,contentPreviewWidth:w,fullbleed:(g==="CONTAINER_TYPE_VERTICAL_LIST"||g==="CONTAINER_TYPE_GRID")&&u==="CONTAINER_SIZE_NARROW"&&!1}}else Z=void 0}else Z=void 0;z(Z)});
return _.W("yt-section-list-renderer",{class:_.ax("ytSectionListRendererHost",l.className),el:O,"data-target-id":function(){return l.data().targetId||""}},_.W(_.Tn,{data:function(){return e().contents}},{itemSectionRenderer:function(Z){return _.W(LpC,{data:Z.data,
containerLayoutConfig:J})}}))},"Hi"),"yt-section-list-renderer",{props:{data:_.lB,
className:_.Vh}});var tw4;var qXH;var vYC=function(){return _.B.apply(this,arguments)||this};
_.m(vYC,_.B);_.L([_.T(),_.q("design:type",Object)],vYC.prototype,"data",void 0);_.L([_.Ps({is:"yt-alert-renderer",disableElementRegistration:!0})],vYC);
_.Y(vYC,"yt-alert-renderer",function(){if(qXH===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;tw4===void 0&&(tw4=document.createElement("template"));var E=tw4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);qXH=l}l=qXH;return l},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.k1u=function(l,e){var O,E;e=e===void 0?{}:e;var J,z,M,Z,u,d,g,w,n,k,y,c;return _.V(function(f){switch(f.nextAddress){case 1:J=e;z=J.shouldWrap===void 0?!0:J.shouldWrap;M=J.skipTransitionTimeoutMs===void 0?300:J.skipTransitionTimeoutMs;Z=J.beforeTransition;u=J.afterTransition;if(!z||!document.startViewTransition||document.visibilityState==="hidden")return f.return(l());O=window.innerWidth;E=window.innerHeight;d=!1;(g=Z)==null||g();_.b1(f,2);w=document.startViewTransition(l);n=setTimeout(function(){w.skipTransition();
d=!0},M);
return _.C(f,w.ready,4);case 4:return clearTimeout(n),_.C(f,w.finished,5);case 5:clearTimeout(n);(k=u)==null||k();_.Q2(f,0);break;case 2:y=_.u1(f),(c=u)==null||c(),y&&!d&&document.visibilityState!=="hidden"&&O===window.innerWidth&&E===window.innerHeight&&_.UW(y),_.Cl(f)}})};
_.Hr=function(){for(var l=Array(36),e=0,O,E=0;E<36;E++)E==8||E==13||E==18||E==23?l[E]="-":E==14?l[E]="4":(e<=2&&(e=33554432+Math.random()*16777216|0),O=e&15,e>>=4,l[E]=_.WXk[E==19?O&3|8:O]);return l.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var I94=_.E9(['<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>']),
mm3=_.Evq(I94);mm3.setAttribute("style","display: none;");document.head.appendChild(mm3.content);_.cr=_.wK8(function(l){var e=_.i$("DIV");l&&(e.className=l);e.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";l=_.i$("DIV");_.Cqk(l,"200px","200px");e.appendChild(l);document.body.appendChild(e);l=e.offsetWidth-e.clientWidth;_.wk(e);return l});var yz0;var p2C;var Fy=function(){var l=_.B.apply(this,arguments)||this;l.icon=null;return l};
_.m(Fy,_.B);Fy.prototype.dismiss=function(){_.$u(this.hostElement,"yt-live-chat-error-message-dismiss")};
Fy.prototype.computeIcon=function(l){return l&&l.iconType?"yt-icons:"+l.iconType.toLowerCase():"yt-icons:close"};
_.L([_.T(),_.q("design:type",Object)],Fy.prototype,"data",void 0);_.L([_.T({computed:"computeIcon(data.icon)"}),_.q("design:type",Object)],Fy.prototype,"icon",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Fy);
_.Y(Fy,"yt-live-chat-error-message-renderer",function(){if(p2C===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;yz0===void 0&&(yz0=document.createElement("template"));var E=yz0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);p2C=l}l=p2C;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var eK4,OaP,EtC,J4f,Zaf,ubu,C63,otP,$_4,y$,W_i,d_4,pX,gtC,iaf,wVh,A4z,nt4,adO,kOo,Id4,m_u,y44,pV4,K_4,jYO,Haz,c43,F_3,fd0,RKu,TOu,KX,sY3,GO0,BOf,Yyo,hKf,L_o,tm4,qyC,vti,P6H,U_z,r44,D_u,Syf,QY4,x_i,NO4,eZP;eK4=function(l,e){return _.wV(l.entities,"timedMarkersListSyncEntity",e)};
OaP=function(l,e){return _.wV(l.entities,"liveReactionsDataEntity",e)};
EtC=function(l,e){l=_.wV(l.entities,"booleanEntity",e);return!(!l||!l.value)};
J4f=function(l,e){var O=_.P9();O&&l&&_.DG(O,_.cf(l),e)};
_.XVO=function(){_.a("web_watch_log_theater_mode")&&_.YXt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.zK0=function(l,e,O){if(!l.includes("START_TIME_PLACEHOLDER")||!l.includes("END_TIME_PLACEHOLDER"))return l;var E=new Date(0),J=new Date(0);E.setUTCMilliseconds(e);J.setUTCMilliseconds(O);return l.replace("START_TIME_PLACEHOLDER",_.rV(E,7)).replace("END_TIME_PLACEHOLDER",_.rV(J,7))};
_.baH=function(l){return l.watch.isWatchActive};
_.Mmi=function(l){return _.tM(l)||_.qc(l)||_.qXx(l)};
_.VmP=function(l){return!_.Mmi(l)};
_.mz=function(l){return l.watch.watchScrollTop};
Zaf=function(l){return l.watch.isLiveChatCollapsed};
ubu=function(l){return l.watch.openEngagementPanels};
C63=function(l,e){return _.wV(l.entities,"booleanEntity",e)};
otP=function(){return function(l){_.Ot(_.IK("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:l}))}};
$_4=function(l){switch(l){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}};
y$=function(l,e,O){var E=_.t3(O);l&&e&&E&&l.getPlayerPromise().then(function(J){_.iAp(E)&&_.Pm();(new _.Kw(J)).executeCommand(E,e);_.a("continue_playback_on_desktop_companion_click")||J.pauseVideo()})};
W_i=function(l){var e=_.bV(),O;if(O=_.vK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;O=(E=O())==null?void 0:E.layoutId}else O=null;y$(e,O,l)};
d_4=function(l){var e=_.bV(),O;if(O=_.vK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;O=(E=O())==null?void 0:E.layoutId}else O=null;y$(e,O,l)};
pX=function(l,e){var O=l<0?"-":"";l=Math.abs(l);var E=Math.floor(l/3600),J=Math.floor(l)%3600,z=Math.floor(J/60);J=Math.floor(J)%60;var M="";(e===void 0?0:e)&&(M="."+Math.round((l-Math.floor(l))*10));return E>0?O+E+":"+(z<10?"0"+z:""+z)+":"+(J<10?"0"+J:""+J)+M:O+z+":"+(J<10?"0"+J:""+J)+M};
gtC=function(l){var e=l.match(/[^0-9:\.]/g);if(e&&e.length>0)return null;l=l.split(":");if(l.length===0||l.length>3)return null;e=1;for(var O=0;l.length>0;){var E=l.pop();if(E===void 0)break;var J=Number(E);if(E===""||isNaN(J))return null;O+=J*e;e*=60}return O};
iaf=function(l,e,O,E){l=Math.max(O,l);e=Math.min(e,E-O);l+e>E?(O=E,l=O-e):O=l+e;return{start:l,end:O}};
wVh=function(l,e,O,E,J,z){l<O?l=O:l+J>E&&(l=E-J);e>E&&(e=E);e=Math.min(l+z,Math.max(l+J,e));return{start:l,end:e}};
A4z=function(l,e,O,E,J,z){e>E?e=E:e-J<O&&(e=O+J);l<O&&(l=O);l=Math.min(e-J,Math.max(e-z,l));return{start:l,end:e}};
nt4=function(l){return _.a("web_transcript_cue_id_killswitch")?String(l):"ytd-transcript-renderer_"+l};
adO=function(l){return _.a("web_transcript_cue_id_killswitch")?!0:l.startsWith("ytd-transcript-renderer")};
kOo=function(l){var e=_.bV(),O;if(O=_.vK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;O=(E=O())==null?void 0:E.layoutId}else O=null;y$(e,O,l)};
Id4=function(l){l.style.height="auto";l.style.height=Math.min(l.scrollHeight||20,80)+"px"};
m_u=function(l,e){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:e}}],insertByPositionInSection:{sectionTargetId:l,position:"INSERTION_POSITION_LAST"}}}]}}}};
y44=function(l){var e=_.bV(),O;O=(O=_.vK("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.layoutId:null;y$(e,O,l)};
pV4=function(l){var e=_.bV(),O;O=(O=_.vK("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.layoutId:null;y$(e,O,l)};
K_4=function(l,e){e=e===void 0?!1:e;if(l.simpleText)l=[{text:l.simpleText}];else{var O;l=((O=l.runs)!=null?O:[]).map(function(E){return Object.assign({},E)})}if(e)for(e=_.b(l),O=e.next();!O.done;O=e.next())O.value.bold=!0;
return l};
jYO=function(l){var e=l.startEndTimeTemplate,O=l.startTimeUtcMillis;l=l.endTimeUtcMillis;if(e&&O&&l)return _.xp(_.zK0(_.lG(e),Number(O),Number(l)))};
Haz=function(l,e){var O,E,J=l==null?void 0:(O=l.viewCount)==null?void 0:(E=O.videoViewCountRenderer)==null?void 0:E.shortViewCount;if(!e&&J)return J;var z,M;return l==null?void 0:(z=l.viewCount)==null?void 0:(M=z.videoViewCountRenderer)==null?void 0:M.viewCount};
c43=function(l,e){var O=l==null?void 0:l.relativeDateText;return!e&&O?[O,!0]:[l==null?void 0:l.dateText,!1]};
F_3=function(l,e,O,E,J){E=E===void 0?!0:E;J=J===void 0?"":J;var z=Haz(l,e),M=_.b(c43(l,e)),Z=M.next().value;M=M.next().value;e=e?l==null?void 0:l.sponsorsOnlyFirstTimeLongText:l==null?void 0:l.sponsorsOnlyFirstTimeShortText;var u=[];O&&z&&u.push(z);!O&&M||!Z||u.push(Z);l=[].concat(_.kA(u),[e,l==null?void 0:l.stationName,l==null?void 0:l.rating,l?jYO(l):void 0,l==null?void 0:l.upNextProgramText,l==null?void 0:l.superTitleLink]).filter(function(d){return!!d});
O={runs:[]};for(z=0;z<l.length;z++)O.runs.push.apply(O.runs,_.kA(K_4(l[z],E))),z<l.length-1&&O.runs.push({text:" "+J+" ",bold:E});return O};
fd0=function(l){if(l)return{runs:[{text:l,bold:!0}]}};
RKu=function(l){var e,O,E,J;if(l=l==null?void 0:(e=l.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(E=O.results)==null?void 0:(J=E.results)==null?void 0:J.contents){var z,M;return(M=(z=l.find(function(Z){return!!Z.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer)==null?void 0:M.updatedMetadataEndpoint}};
TOu=function(l,e){var O;return(O=l.sourceConfigs)==null?void 0:O.find(function(E){return E.videoId===e})};
KX=function(l){return l==="End of video"||l==="End of playlist"};
sY3=function(l){var e,O,E,J;return(e=l.getWatchNextResponse())==null?void 0:(O=e.contents)==null?void 0:(E=O.twoColumnWatchNextResults)==null?void 0:(J=E.playlist)==null?void 0:J.playlist};
GO0=function(l){var e,O,E,J,z,M;return(e=sY3(l))==null?void 0:(O=e.playlistButtons)==null?void 0:(E=O.menuRenderer)==null?void 0:(J=E.topLevelButtons)==null?void 0:(z=J[0])==null?void 0:(M=z.playlistLoopButtonRenderer)==null?void 0:M.playlistLoopStateEntityKey};
BOf=function(l){var e=_.V2().resolve(_.U5),O;return(e=(O=_.I(e.getAutoplayEndpoint(),_.ej))==null?void 0:O.playlistId)&&e===l};
Yyo=function(l,e,O,E,J){function z(){_.UD.cancelJob(j2);var M=P6H(e,O/l.getPlaybackRate()),Z=M.hours,u=M.minutes;M=(M.seconds*1E3||6E4)/l.getPlaybackRate();l.setVideoTimeLeft(U_z(Z,u));E&&l.getPlayerState()!==0&&l.setSleepTimerTimeLeft(U_z(Z,u,!0));(Z>0||u>0)&&!J&&(j2=_.pT(_.UD,z,M))}
_.UD.cancelJob(j2);j2=_.pT(_.UD,z)};
hKf=function(l,e,O){function E(){_.UD.cancelJob(Hg);var J=P6H(e,O),z=J.hours;J=J.minutes;var M=6E4/l.getPlaybackRate();if(z>0||J>0)l.setSleepTimerTimeLeft(U_z(z,J,!0)),Hg=_.pT(_.UD,E,M)}
_.UD.cancelJob(Hg);Hg=_.pT(_.UD,E)};
L_o=function(l,e){var O=l.getVolume()/(e/500),E=function(J){_.UD.cancelJob(cg);var z=Math.floor(J-O);l.setVolume(z,!1);z>0&&(cg=_.pT(_.UD,function(){E(z)},500))};
_.UD.cancelJob(cg);cg=_.pT(_.UD,function(){E(l.getVolume())})};
tm4=function(l,e){_.UD.cancelJob(cg);e&&l.syncVolume()};
qyC=function(){var l={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.ml("SLEEP_TIMER_DISRUPTED")}}}}};_.V2().resolve(_.Zh).resolveCommand(l)};
vti=function(l){return(l.getDuration()-l.getProgressState().current)*1E3};
P6H=function(l,e){l=l+e-(0,_.VZ)();if(l<=0)return{hours:0,minutes:0,seconds:0};var O=new NO4(0,0,0,0,0,0,l);l=O.getHours();e=O.getMinutes();O=O.getSeconds();O!==0&&e++;e!==0&&e%60===0&&(l++,e=0);return{hours:l,minutes:e,seconds:O}};
U_z=function(l,e,O){return l>0&&e>0?O?_.ml("TIME_LEFT_HOURS_MINUTES",{hours:l.toString(),minutes:e.toString()}):_.ml("TIME_HOURS_MINUTES",{hours:l.toString(),minutes:e.toString()}):l>0?O?_.y4("TIME_LEFT_HOURS",l):_.y4("TIME_HOURS",l):O?_.ml("TIME_LEFT_MINUTES",{minutes:e.toString()}):_.ml("TIME_MINUTES",{minutes:e.toString()})};
r44=function(l,e){if(l.timelyActions)return l.timelyActions.find(function(O){var E;return((E=_.I(O,Fp))==null?void 0:E.cueRangeId)===e})};
D_u=function(l){var e=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.We(l);l.keyMap_.forEach(function(O,E){_.hq(e,E)||this.remove(E)},l)};
Syf=function(l,e){l.reloadContinuationItemsCommandMatcher=e};
_.fX=function(l,e){l.insertBefore(e,l.childNodes[0]||null)};
QY4=function(l){if(l>=48&&l<=57||l>=96&&l<=106||l>=65&&l<=90||_.ws&&l==0)return!0;switch(l){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 _.iv;default:return!1}};
x_i=function(l){if(l.altKey&&!l.ctrlKey||l.metaKey||l.keyCode>=112&&l.keyCode<=123)return!1;if(QY4(l.keyCode))return!0;switch(l.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!_.iv;default:return l.keyCode<166||l.keyCode>183}};
NO4=function(l,e,O,E,J,z,M){this.date=typeof l==="number"?new Date(l,e||0,O||1,E||0,J||0,z||0,M||0):new Date(l&&l.getTime?l.getTime():_.C2())};
_.o_(NO4,_.Ki);_.X=NO4.prototype;_.X.getHours=function(){return this.date.getHours()};
_.X.getMinutes=function(){return this.date.getMinutes()};
_.X.getSeconds=function(){return this.date.getSeconds()};
_.X.getMilliseconds=function(){return this.date.getMilliseconds()};
_.X.getUTCDay=function(){return this.date.getUTCDay()};
_.X.getUTCHours=function(){return this.date.getUTCHours()};
_.X.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.X.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.X.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.X.setHours=function(l){this.date.setHours(l)};
_.X.setMinutes=function(l){this.date.setMinutes(l)};
_.X.setSeconds=function(l){this.date.setSeconds(l)};
_.X.setMilliseconds=function(l){this.date.setMilliseconds(l)};
_.X.setUTCHours=function(l){this.date.setUTCHours(l)};
_.X.setUTCMinutes=function(l){this.date.setUTCMinutes(l)};
_.X.setUTCSeconds=function(l){this.date.setUTCSeconds(l)};
_.X.setUTCMilliseconds=function(l){this.date.setUTCMilliseconds(l)};
_.X.add=function(l){_.Ki.prototype.add.call(this,l);l.hours&&this.setUTCHours(this.date.getUTCHours()+l.hours);l.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+l.minutes);l.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+l.seconds)};
_.X.JSC$9270_toIsoString=function(l){var e=_.Ki.prototype.JSC$9270_toIsoString.call(this,l);return l?e+"T"+_.Vl(this.getHours(),2)+":"+_.Vl(this.getMinutes(),2)+":"+_.Vl(this.getSeconds(),2):e+"T"+_.Vl(this.getHours(),2)+_.Vl(this.getMinutes(),2)+_.Vl(this.getSeconds(),2)};
_.X.equals=function(l){return this.getTime()==l.getTime()};
_.X.toString=function(){return this.JSC$9270_toIsoString()};
_.X.clone=function(){var l=new NO4(this.date);l.firstDayOfWeek_=this.firstDayOfWeek_;l.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return l};
_.l53=function(l){return _.oM({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:l}})};
eZP=new _.v("imageTileRenderer");var Osu=new _.v("adGridCardCollectionViewModel");var Eih=new _.v("carouselTitleViewModel");var J2u=new _.v("ctaCarouselItemViewModel");var XMu=new _.v("textFieldViewModel");_.zZC=new _.v("engagementPanelHeaderShowNavigationButtonCommand");var bsP=new _.v("hideEngagementPanelScrimAction");var Mhi=new _.v("setActivePanelItemAction");var Vh3=new _.v("showEngagementPanelScrimAction");var Zsf=new _.v("updateEngagementPanelAction");var uIF=new _.v("updateSearchInVideoResultsAction");var CRu=new _.v("transcriptCueGroupRenderer");var oiz=new _.v("transcriptCueRenderer");var $n0=new _.v("transcriptFooterRenderer");var WN3=new _.v("engagementPanelAdSubtitleRenderer");var dnH=new _.v("videoDescriptionFantasySectionViewModel");var giP=new _.v("deleteClipEngagementPanelCommand");var ish=new _.v("loopCommand");var wMH=new _.v("changeCreatorEndscreenVisibilityCommand");var A2f=new _.v("liveChatCallForQuestionsRenderer");var niP=new _.v("updateTimedMarkersSyncObserverCommand");var Fp=new _.v("timelyActionViewModel");var a5f=new _.v("timelyActionsOverlayViewModel");var kXh=new _.v("repeatChapterCommand");var I54=new _.v("watchPlayerOverflowMenuCommand");var mnF=new _.v("compositeVideoOverlayRenderer");var y20=new _.v("sortFilterSubMenuRenderer");var pMz=new _.v("switchListItemViewModel");var KNP=new _.v("inputComposerViewModel");var jEP=new _.v("transcriptEditSegmentCommand");var HsF=new _.v("transcriptUpdateSegmentTextCommand");var c23=new _.v("transcriptSearchBoxRenderer");var FNz=new _.v("transcriptSegmentListRenderer");var f5z=new _.v("transcriptSegmentRenderer");_.RZF=new _.v("updateDateTextAction");var Tmf=new _.v("updateTitleAction");var sEh=new _.v("updateViewershipAction");var GX3=new _.v("carouselLockupRenderer");var BmC=new _.v("expandableVideoDescriptionBodyRenderer");var PR0=new _.v("videoDescriptionYouchatSectionViewModel");_.R8=_.Cv("kevlar_watch_page_horizontal_margin",24);_.UnF=_.Cv("kevlar_watch_page_columns_top_padding",24);_.YQC=426+_.R8*2;_.Tw=_.Cv("kevlar_watch_two_column_width_threshold",1E3);_.hZf=_.R8*2;_.LNi=_.Cv("kevlar_watch_secondary_width",402);_.th4=_.Cv("kevlar_watch_max_player_width",1280);_.qQC=_.Cv("kevlar_watch_flexy_metadata_height",136);_.vif=_.hZf+310+_.R8;_.NmP=_.hZf+360+_.R8;var r2z={PAUSE_CHAT:18};var Dn4;var SQ4;var sA=function(){return _.B.apply(this,arguments)||this};
_.m(sA,_.B);sA.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
sA.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var l=_.I(this.data.button,_.Hi);l&&(l.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Ji.Object.defineProperties(sA,{template:{configurable:!0,enumerable:!0,get:function(){if(SQ4===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;Dn4===void 0&&(Dn4=document.createElement("template"));var E=Dn4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);SQ4=l}l=SQ4;return l}}});
_.L([_.K(_.tw),_.q("design:type",Object)],sA.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({selectorArgs:["data.enabledEntityKey"],selector:EtC,observer:"onEnabledChange"}),_.q("design:type",Boolean)],sA.prototype,"enabled",void 0);_.L([_.T(),_.q("design:type",Object)],sA.prototype,"data",void 0);_.L([_.Ps({is:"yt-disableable-button-view-model",noInjection:!0})],sA);var QEu;var xnC;var lI0=["transVert01","transVert02","transVert03"],ezu="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Gw=function(){var l=_.B.apply(this,arguments)||this;l.emojiManager=_.hb;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};l.reactionBuckets=[];l.noEmojiIdentifier="NO_EMOJI";return l};
_.m(Gw,_.B);_.X=Gw.prototype;_.X.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.X.desktopFountainEmojiSizePxChanged=function(){_.dP(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.X.createUserReactionAnimation=function(l){this.createEmojiAnimation(l,!0)};
_.X.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var l;((l=this.data)==null?0:l.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.IK("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.kA(this.emojiContainer.children)).forEach(function(e){e.remove()})};
_.X.detached=function(){this.cleanupFountain()};
_.X.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var l;this.reactionBuckets=_.mm.unsafeClone((l=this.emojiFountainData)==null?void 0:l.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.X.processEmojiBucket=function(l){var e=this;if(this.reactionBuckets&&!(l>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var O=this.reactionBuckets[l];this.generateEmojiAnimations(O);if(l<this.reactionBuckets.length-1){var E;if(O==null?0:(E=O.duration)==null?0:E.seconds)this.emojiBucketTimerId=setTimeout(function(){e.processEmojiBucket(l+1)},Number(O.duration.seconds)*1E3)}}};
_.X.generateEmojiAnimations=function(l){var e=this,O=this.getRandomEmojiIdFromBucketWithOverride(l);if(O&&O!==this.noEmojiIdentifier){var E=0;l.targetEps?(E=this.linearInterpolateBounded(1,20,100,12,l.emojiSizeIndex||0),this.createEmojiAnimation(O,!1,l.emojiAnimationMs,E),E=this.getEmojiDelayMsFromTargetEps(l.targetEps)):(this.createEmojiAnimation(O),E=this.getEmojiDelayMsFromDistribution(l.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){e.generateEmojiAnimations(l)},E)}};
_.X.getRandomEmojiIdFromBucketWithOverride=function(l){if(!(l&&l.reactionsData&&l.reactionsData.length&&l.totalReactions))return this.noEmojiIdentifier;for(var e=l.totalReactions,O=1,E=_.b(l.reactionsData),J=E.next();!J.done;J=E.next())J=J.value,(J.reactionWeightOverride||J.reactionWeightOverride===0)&&J.reactionCount&&(e-=J.reactionCount,O-=J.reactionWeightOverride);E=!0;O<0&&(E=!1,e=l.totalReactions,O=1);if(E&&O>0&&e===0)if(O===1){J=0;for(var z=_.b(l.reactionsData),M=z.next();!M.done;M=z.next())M=
M.value,M.reactionCount&&M.reactionCount>0&&J++;J=1/J;z=_.b(l.reactionsData);for(M=z.next();!M.done;M=z.next())M.value.reactionWeightOverride=J}else for(J=1/(1-O),z=_.b(l.reactionsData),M=z.next();!M.done;M=z.next())M=M.value,M.reactionWeightOverride&&(M.reactionWeightOverride*=J);J=Math.random();z=0;M=_.b(l.reactionsData);for(var Z=M.next();!Z.done;Z=M.next())if(Z=Z.value,Z.reactionCount&&(z=(Z.reactionWeightOverride||Z.reactionWeightOverride===0)&&E?z+Z.reactionWeightOverride:z+O*Z.reactionCount/
e,z>J&&(Z.reactionCount--,l.totalReactions--,Z=this.reactionItemToEmojiString(Z),Z!==this.noEmojiIdentifier)))return Z;return this.noEmojiIdentifier};
_.X.reactionItemToEmojiString=function(l){if(l.unicodeEmojiId)return l.unicodeEmojiId;if(l.emoteId)return l.emoteId;if(l.videoReactionType)switch(l.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.X.createEmojiAnimation=function(l,e,O,E){e=e===void 0?!1:e;this.lastEmojiRequestedForTesting=l;var J=l.startsWith("yt-icons:"),z=_.Ud(this.emojiManager,l);if(z||J){var M=document.createElement("emoji");M.classList.add("yt-emoji-fountain-view-model");M.classList.add(lI0[Math.floor(Math.random()*lI0.length)]);var Z=document.createElement("div");Z.classList.add("yt-emoji-fountain-view-model");Z.classList.add("horizontal-container");Z.classList.add(ezu[Math.floor(Math.random()*ezu.length)]);e?(O=document.createElement("div"),
O.classList.add("user-reaction-bubble"),O.classList.add("yt-emoji-fountain-view-model"),Z.appendChild(O)):(O&&(M.style.animationDuration=O+"ms",Z.style.animationDuration=O+"ms"),E&&(M.style.width=E+"px",M.style.height=E+"px"));J?(J=document.createElement("yt-icon"),J.polymerController.icon=l,E&&(J.style.width=E+"px",J.style.height=E+"px"),l=J):l=this.emojiManager.createEmoji(z,!1);l.classList.add("yt-emoji-fountain-view-model");Z.appendChild(l);M.appendChild(Z);this.emojiContainer.appendChild(M);
M.addEventListener("animationend",function(){M.remove()});
var u,d;if((u=this.data)==null?0:(d=u.loggingDirectives)==null?0:d.trackingParams)e=e?_.sL(183501):_.sL(183500),J4f(this.data.loggingDirectives.trackingParams,e),_.y0u(e);setTimeout(function(){M&&M.remove()},2E3)}};
_.X.getEmojiDelayMsFromDistribution=function(l){return Math.random()*(l||1)*1E3};
_.X.getEmojiDelayMsFromTargetEps=function(l){return Math.random()*2*(1/l)*1E3};
_.X.linearInterpolateBounded=function(l,e,O,E,J){J=Math.min(Math.max(J,l),O);return(e*(O-J)+E*(J-l))/(O-l)};
Gw.prototype.onEmojiFountainDataEntityUpdate=Gw.prototype.onEmojiFountainDataEntityUpdate;Gw.prototype.desktopFountainEmojiSizePxChanged=Gw.prototype.desktopFountainEmojiSizePxChanged;Gw.prototype.isActiveChanged=Gw.prototype.isActiveChanged;_.L([_.T(),_.q("design:type",_.Pu)],Gw.prototype,"emojiManager",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],Gw.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Gw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Gw.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(l,e){return _.wV(l.entities,"emojiFountainDataEntity",e)}}),
_.q("design:type",Object)],Gw.prototype,"emojiFountainData",void 0);_.L([_.T(),_.q("design:type",Boolean)],Gw.prototype,"isActive",void 0);_.L([_.AA("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gw.prototype,"isActiveChanged",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Gw.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",String)],Gw.prototype,"lastEmojiRequestedForTesting",void 0);
_.L([_.T({value:function(){return _.Cv("desktop_fountain_emoji_size_px",20)}}),
_.q("design:type",Number)],Gw.prototype,"desktopFountainEmojiSizePx",void 0);_.L([_.AA("desktopFountainEmojiSizePx"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gw.prototype,"desktopFountainEmojiSizePxChanged",null);_.L([_.aB("#emoji-container"),_.q("design:type",HTMLElement)],Gw.prototype,"emojiContainer",void 0);
_.L([_.AA("emojiFountainData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Gw.prototype,"onEmojiFountainDataEntityUpdate",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Gw);
_.Y(Gw,"yt-emoji-fountain-view-model",function(){if(xnC===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;QEu===void 0&&(QEu=document.createElement("template"));var E=QEu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);xnC=l}l=xnC;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var O7O;var Ec4;var Bg=function(){return _.B.apply(this,arguments)||this};
_.m(Bg,_.B);Bg.prototype.onChoiceChanged=function(){this.data&&_.dP(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Bg.prototype.onChoiceChanged=Bg.prototype.onChoiceChanged;_.L([_.T(),_.q("design:type",Object)],Bg.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bg.prototype,"onChoiceChanged",null);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Bg);
_.Y(Bg,"yt-live-chat-banner-poll-choice",function(){if(Ec4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;O7O===void 0&&(O7O=document.createElement("template"));var E=O7O;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Ec4=l}l=Ec4;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var J1h;var XLH;var Pg=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_button_rework_with_live");l.small=!1;return l};
_.m(Pg,_.B);Pg.prototype.computeIsSmall=function(){var l;return((l=this.buttonOverrides)==null?void 0:l.size)==="S"};
Pg.prototype.computeId=function(){return this.data&&this.data.targetId};
_.L([_.K(_.q5.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],Pg.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.T({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",String)],Pg.prototype,"id",void 0);_.L([_.T(),_.q("design:type",Object)],Pg.prototype,"buttonOverrides",void 0);_.L([_.T(),_.q("design:type",Object)],Pg.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Pg.prototype,"modern",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.q("design:type",Object)],Pg.prototype,"small",void 0);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-button"})],Pg);
_.Y(Pg,"yt-live-chat-button",function(){if(XLH===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;J1h===void 0&&(J1h=document.createElement("template"));var E=J1h;O.call(e,E.content.cloneNode(!0),l.content.firstChild);XLH=l}l=XLH;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var zzu;var b7o;var UA=function(){var l=_.B.apply(this,arguments)||this;l.inCollapsedBanner=!1;l.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};l.questionButtonOverrides={style:"mono",type:"filled"};return l};
_.m(UA,_.B);_.X=UA.prototype;_.X.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]]"}}}}}};
_.X.onContextMenuButtonClick=function(l){this.ytLiveChatItemBehavior.showContextMenu(l)};
_.X.onYtRendererstamperFinished=function(){this.menuButton=_.ud(this.hostElement).querySelector("#menu-button")};
_.X.dataChanged=function(){var l,e;if((e=_.I((l=this.data)==null?void 0:l.overflowMenuButton,_.YU))==null?0:e.command)this.data.contextMenuEndpoint=_.I(this.data.overflowMenuButton,_.YU).command};
_.X.onButtonClick=function(){var l,e=_.I((l=this.data)==null?void 0:l.askQuestionButton,_.YU);if(e){if(e.trackingParams&&(l=_.cf(e.trackingParams))){var O=_.P9();O&&_.On(O,l)}_.$u(this.hostElement,"innertube-command",e.command)}};
UA.prototype.onYtRendererstamperFinished=UA.prototype.onYtRendererstamperFinished;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],UA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],UA.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],UA.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.T({observer:"dataChanged"}),_.q("design:type",Object)],UA.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],UA.prototype,"inCollapsedBanner",void 0);_.L([_.T(),_.q("design:type",Object)],UA.prototype,"buttonOverrides",void 0);_.L([_.T(),_.q("design:type",Object)],UA.prototype,"questionButtonOverrides",void 0);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UA.prototype,"onYtRendererstamperFinished",null);
_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],UA);
_.Y(UA,"yt-live-chat-call-for-questions-renderer",function(){if(b7o===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;zzu===void 0&&(zzu=document.createElement("template"));var E=zzu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);b7o=l}l=b7o;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var ML0={};ML0.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 l=this;window.requestAnimationFrame(function(){l.restoreFocusNode_||(l.restoreFocusNode_=document.activeElement);var e=_.ymi(l.hostElement);e.length&&e[e.length-1].focus()})},
isAttachedChanged_:function(l,e){l?this.focusChild_():e&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(l){this.hidden||_.ey(l).indexOf(this.hostElement)!==-1||(l.stopPropagation(),this.focusChild_())}};var VL4;var Z73;var YX=function(){return _.B.apply(this,arguments)||this};
_.m(YX,_.B);YX.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YX.prototype.onClick=function(l){l.target!==this.confirmButton&&l.target!==this.cancelButton&&(this.hidden=!0)};
_.L([_.aB("#confirm_button"),_.q("design:type",Object)],YX.prototype,"confirmButton",void 0);_.L([_.aB("#cancel_button"),_.q("design:type",Object)],YX.prototype,"cancelButton",void 0);_.L([_.T(),_.q("design:type",u2h)],YX.prototype,"data",void 0);_.L([_.T({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],YX.prototype,"hidden",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(ML0.YtLiveChatDialogBehavior),_.q("design:type",Object)],YX.prototype,"ytLiveChatDialogBehavior",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],YX);
var u2h=_.Y(YX,"yt-live-chat-dialog-renderer",function(){if(Z73===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;VL4===void 0&&(VL4=document.createElement("template"));var E=VL4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Z73=l}l=Z73;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var CcF;var oc3,$bh=function(){if(oc3!==void 0)return oc3;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;CcF===void 0&&(CcF=document.createElement("template"));var E=CcF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return oc3=l};var Wih;var dbH;var h8=function(){var l=_.B.apply(this,arguments)||this;l.tooltip=null;l.data=null;l.id="";l.active=!1;l.icon="";l.disabled=!1;l.showTooltip=!1;l.useToggledActiveState=!0;l.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return l};
_.m(h8,_.B);_.X=h8.prototype;
_.X.dataChanged=function(){var l;((l=this.data)==null?0:l.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,_.Ws)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var e;if((e=this.data)==null?0:e.disabled)this.disabled=!0};
_.X.computeId=function(l){return l};
_.X.computeIcon=function(l,e){if(!l)return"";if(this.useToggledActiveState)return"yt-icons:"+l.toLowerCase();var O,E;return e&&((O=this.data)==null?0:(E=O.toggledIcon)==null?0:E.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+l.toLowerCase()};
_.X.logPDGEntryPoint=function(){_.SgV(_.g8("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")};
_.X.immediatelyShowTooltip=function(){var l=_.ud(this.hostElement).querySelector("#tooltip");l.animationDelay=0;l.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};l.show()};
_.X.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.X.onClick=function(l){var e;((e=this.data)==null?0:e.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),l.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.$u(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.X.computeShowTooltip=function(l,e){return!!(l&&l.tooltip&&e)};
_.X.maybeUpdateTooltipText=function(){var l=this,e;if((e=this.data)==null?0:e.tooltip){var O=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Ws)(l.tooltip).textContent=O},250)}};
_.X.handleLiveChatActions=function(l){var e=this;l.length&&(this.id!=="creator"&&this.id!=="product-picker"||l.forEach(function(O){(O=e.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",O))&&O.durationSec===O.fullDurationSec&&e.startBubble(e.colorFromDecimal(O.startBackgroundColor))}))};
_.X.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.X.startBubble=function(l){_.dP(this.hostElement,{"--yt-live-chat-monetization-button-glow":l});this.hostElement.setAttribute("bubble","")};
_.X.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.X.colorFromDecimal=function(l){typeof l==="string"&&(l=Number(l));return"rgba("+[l>>16&255,l>>8&255,l&255,(l>>24&255)/255].join()+")"};
h8.prototype.onAnimationEnd=h8.prototype.onAnimationEnd;h8.prototype.disabledChanged=h8.prototype.disabledChanged;h8.prototype.dataChanged=h8.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],h8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.q5.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],h8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],h8.prototype,"data",void 0);_.L([_.T({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",Object)],h8.prototype,"id",void 0);_.L([_.T({notify:!0,reflectToAttribute:!0}),_.q("design:type",Object)],h8.prototype,"active",void 0);
_.L([_.T({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.q("design:type",Object)],h8.prototype,"icon",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],h8.prototype,"disabled",void 0);_.L([_.T({computed:"computeShowTooltip(data, disabled)"}),_.q("design:type",Object)],h8.prototype,"showTooltip",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],h8.prototype,"useToggledActiveState",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h8.prototype,"dataChanged",null);_.L([_.AA("disabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h8.prototype,"disabledChanged",null);_.L([_.wP("animationend"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],h8.prototype,"onAnimationEnd",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],h8);
_.Y(h8,"yt-live-chat-icon-toggle-button-renderer",function(){if(dbH===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Wih===void 0&&(Wih=document.createElement("template"));var E=Wih;O.call(e,E.content.cloneNode(!0),l.content.firstChild);dbH=l}l=dbH;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var gcP;var i7i;var LX=function(){return _.B.apply(this,arguments)||this};
_.m(LX,_.B);LX.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.T(),_.q("design:type",Object)],LX.prototype,"data",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],LX);
_.Y(LX,"yt-live-chat-message-input-prompt-header-renderer",function(){if(i7i===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;gcP===void 0&&(gcP=document.createElement("template"));var E=gcP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);i7i=l}l=i7i;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var wL3;var A1O;var ncC;var aIh;var kAf;var II0;var mb4=function(){return _.B.apply(this,arguments)||this};
_.m(mb4,_.B);_.L([_.T(),_.q("design:type",Object)],mb4.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],mb4);
_.Y(mb4,"yt-live-chat-message-subtext-renderer",function(){if(II0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;kAf===void 0&&(kAf=document.createElement("template"));var E=kAf;O.call(e,E.content.cloneNode(!0),l.content.firstChild);II0=l}l=II0;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var t8=function(){var l=_.B.apply(this,arguments)||this;l.subtextOnBottom=!1;l.buttonOverrides={style:"mono",type:"tonal"};return l};
_.m(t8,_.B);t8.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],t8.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],t8.prototype,"subtextOnBottom",void 0);_.L([_.T(),_.q("design:type",Object)],t8.prototype,"buttonOverrides",void 0);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],t8);
_.Y(t8,"yt-live-chat-message-renderer",function(){if(aIh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ncC===void 0&&(ncC=document.createElement("template"));var E=ncC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);aIh=l}l=aIh;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var y1F;var pLC;var qI=function(){var l=_.B.apply(this,arguments)||this;l.isRemovable=!1;l.hasPrefilledText=!1;l.isInputDirty=!1;l.overCharacterLimit=!1;l.underCharacterLimit=!1;l.showErrorMessage=!1;return l};
_.m(qI,_.B);_.X=qI.prototype;_.X.computeId=function(){return this.data.id};
_.X.computeInputData=function(){return this.data.inputData};
_.X.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.X.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.X.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.X.getLiveChatRichMessageInput=function(){return _.ud(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.X.clearInput=function(){_.ud(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.X.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.X.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.X.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.X.handleTextInputCharCountChanged=function(l){l=l.detail&&l.detail.characterCount;l!==void 0&&(this.characterCount=l,l!==0&&(this.isInputDirty=!0))};
_.X.onInputFocusOut=function(){this.isInputDirty=!0};
_.X.onClickCloseButton=function(){_.$u(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
qI.prototype.handleTextInputCharCountChanged=qI.prototype.handleTextInputCharCountChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qI.prototype,"data",void 0);_.L([_.T({computed:"computeId(data.id)"}),_.q("design:type",String)],qI.prototype,"id",void 0);_.L([_.T({computed:"computeInputData(data.inputData)"}),_.q("design:type",Object)],qI.prototype,"inputData",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.q("design:type",Object)],qI.prototype,"isRemovable",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.q("design:type",Object)],qI.prototype,"hasPrefilledText",void 0);_.L([_.T({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.q("design:type",Number)],qI.prototype,"charactersRemaining",void 0);
_.L([_.T(),_.q("design:type",Number)],qI.prototype,"characterCount",void 0);_.L([_.T(),_.q("design:type",Object)],qI.prototype,"isInputDirty",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.q("design:type",Object)],qI.prototype,"overCharacterLimit",void 0);_.L([_.T({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.q("design:type",Object)],qI.prototype,"underCharacterLimit",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.q("design:type",Object)],qI.prototype,"showErrorMessage",void 0);_.L([_.wP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],qI.prototype,"handleTextInputCharCountChanged",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],qI);
_.Y(qI,"yt-live-chat-poll-editor-input",function(){if(pLC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;y1F===void 0&&(y1F=document.createElement("template"));var E=y1F;O.call(e,E.content.cloneNode(!0),l.content.firstChild);pLC=l}l=pLC;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var KiC;var jJh;var H7C={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},vg=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_button_rework_with_live");l.closeButtonOverrides={iconPosition:"icon-only"};l.startButtonOverrides={style:"mono",type:"filled"};l.addOptionButtonOverrides={style:"mono",type:"text"};return l};
_.m(vg,_.B);_.X=vg.prototype;
_.X.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"}}}}};
_.X.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var l;_.I((l=this.data)==null?void 0:l.startButton,_.YU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.X.computeId=function(){return this.data&&this.data.id||""};
_.X.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.X.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.X.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.X.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.X.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var l=0;l<this.pollEditorInfoWithDefaults.minPollOptions;l++)this.addPollOptionData()};
_.X.getIsValidPoll=function(){var l=this;if(!this.pollEditorInfoWithDefaults)return!1;var e=this.pollEditorInfoWithDefaults,O=e.minPollOptionChars,E=e.maxPollOptionChars,J=e.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>e.maxPollQuestionChars)return!1;e=_.ud(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(e).every(function(z,M){z=z.characterCount;!z&&J[M]&&(z=l.ytRendererBehavior.getSimpleString(J[M]).length);return z!==void 0&&z>=O&&z<=E})};
_.X.isValidPollChanged=function(){var l;_.I((l=this.data)==null?void 0:l.startButton,_.YU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.X.addPollOptionData=function(){var l=this.pollEditorInfoWithDefaults,e=l.maxPollOptionChars,O=l.optionPlaceholderText,E=l.customOptionPlaceholderText,J=l.pollOptionData;this.currentNumPollOptions>=l.maxPollOptions||(l={liveChatPollOptionInput:{inputData:{placeholder:E[this.currentNumPollOptions]||O,maxCharacterLimit:e},maxCharacterLimit:e,minCharacterLimit:l.minPollOptionChars,hasPrefilledText:!!E[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=l.minPollOptions}},J.charCountErrorText&&
(l.liveChatPollOptionInput.charCountErrorText=J.charCountErrorText),J.charsRemainingAltLabel&&(l.liveChatPollOptionInput.charsRemainingAltLabel=J.charsRemainingAltLabel),J.removeOptionAltText&&(l.liveChatPollOptionInput.removeOptionAltText=J.removeOptionAltText),this.push("pollOptionsData",l),J=Array.from(_.ud(_.ud(this.hostElement).querySelector("#poll-options")).children),J.forEach(function(z,M){z.polymerController.set("data.id",M)}),_.ud(J[J.length-1]).querySelector("#input").focus())};
_.X.getPollOptionInputValues=function(){var l=this,e=[],O=_.ud(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),E=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(O).forEach(function(J,z){var M=null;J=J.getLiveChatRichMessageInput();var Z;(J==null?0:(Z=J.textSegments)==null?0:Z.length)?M=_.vF(J):E[z]&&(M=l.formattedStringToLiveChatRichMessageInput(E[z]));e.push(M)});
return e};
_.X.requestCreateAndStartPoll=function(l){var e=this.getPollOptionInputValues();if(!e.some(function(E){return!E})){e={optionText:e};
var O=_.ud(_.ud(this.hostElement).querySelector("#poll-question")).firstChild;O&&O.liveChatRichMessageInput&&(e.questionText=_.vF(O.liveChatRichMessageInput));_.ii(this.hostElement,[l,e])}};
_.X.selectedChanged=function(){if(this.selected){var l=_.ud(_.ud(this.hostElement).querySelector("#start-button")).firstElementChild;if(l){var e;(e=_.ud(l).querySelector("#button")||_.C1(l).querySelector("button"))==null||e.focus()}}};
_.X.handleTextInputChanged=function(l){var e;((e=l.target)==null?void 0:e.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=l.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.X.handleStartButtonAction=function(l){l.detail.actionName==="yt-service-request"&&(l.stopPropagation(),(l=l.detail.args[1])&&this.requestCreateAndStartPoll(l))};
_.X.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.X.handleServiceRequestCompleted=function(l){this.createPollRequestInFlight=!1;(l=l.detail&&l.detail.data)&&l.success&&(_.$u(this.hostElement,"picker-cancelled"),_.Wb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.X.onCloseClick=function(){_.$u(this.hostElement,"picker-cancelled");_.Wb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.X.handlePollEditorInputClosed=function(l){var e=this.pollOptionsData.findIndex(function(O){return O.liveChatPollOptionInput.id===l.detail.id});
this.splice("pollOptionsData",e,1);this.isValidPoll=this.getIsValidPoll()};
_.X.onPickerCancelled=function(){this.reset()};
_.X.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var l=_.ud(_.ud(this.hostElement).querySelector("#poll-question")).firstChild;l&&l.setLiveChatRichMessageInput(null);if(l=_.ud(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){l=_.b(Array.from(l));for(var e=l.next();!e.done;e=l.next())e.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.X.formattedStringToLiveChatRichMessageInput=function(l){return l.simpleText?{text_segments:[l.simpleText]}:{text_segments:l.runs}};
_.Ji.Object.defineProperties(vg.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(H7C,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
vg.prototype.onPickerCancelled=vg.prototype.onPickerCancelled;vg.prototype.handlePollEditorInputClosed=vg.prototype.handlePollEditorInputClosed;vg.prototype.handleServiceRequestCompleted=vg.prototype.handleServiceRequestCompleted;vg.prototype.handleServiceRequestSent=vg.prototype.handleServiceRequestSent;vg.prototype.handleTextInputChanged=vg.prototype.handleTextInputChanged;vg.prototype.selectedChanged=vg.prototype.selectedChanged;vg.prototype.isValidPollChanged=vg.prototype.isValidPollChanged;
vg.prototype.shouldInitializePollChanged=vg.prototype.shouldInitializePollChanged;vg.prototype.dataChanged=vg.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vg.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],vg.prototype,"modern",void 0);
_.L([_.T(),_.q("design:type",Object)],vg.prototype,"closeButtonOverrides",void 0);_.L([_.T(),_.q("design:type",Object)],vg.prototype,"startButtonOverrides",void 0);_.L([_.T(),_.q("design:type",Object)],vg.prototype,"addOptionButtonOverrides",void 0);_.L([_.T({computed:"computeId(data.id)",reflectToAttribute:!0}),_.q("design:type",String)],vg.prototype,"id",void 0);_.L([_.T({value:function(){return[]}}),
_.q("design:type",Array)],vg.prototype,"pollOptionsData",void 0);_.L([_.R("pollEditorInfoWithDefaults"),_.q("design:type",Object),_.q("design:paramtypes",[])],vg.prototype,"pollQuestionData",null);_.L([_.T({value:0}),_.q("design:type",Number)],vg.prototype,"pollQuestionCharacterCount",void 0);_.L([_.R("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.q("design:type",Object),_.q("design:paramtypes",[])],vg.prototype,"pollQuestionCharactersRemaining",null);
_.L([_.T({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.q("design:type",Boolean)],vg.prototype,"overQuestionCharacterLimit",void 0);_.L([_.R("data.pollEditorInfo"),_.q("design:type",Object),_.q("design:paramtypes",[])],vg.prototype,"pollEditorInfoWithDefaults",null);_.L([_.T({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.q("design:type",Number)],vg.prototype,"currentNumPollOptions",void 0);
_.L([_.T({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.q("design:type",Boolean)],vg.prototype,"hasMaxNumPollOptions",void 0);_.L([_.R("pollEditorInfoWithDefaults","pollOptionsData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],vg.prototype,"shouldInitializePoll",null);_.L([_.T(),_.q("design:type",Object)],vg.prototype,"isValidPoll",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],vg.prototype,"createPollRequestInFlight",void 0);_.L([_.T(),_.q("design:type",Object)],vg.prototype,"selected",void 0);_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.q("design:type",Boolean)],vg.prototype,"showQuestionErrorMessage",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vg.prototype,"dataChanged",null);_.L([_.AA("shouldInitializePoll"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vg.prototype,"shouldInitializePollChanged",null);_.L([_.AA("isValidPoll"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vg.prototype,"isValidPollChanged",null);
_.L([_.AA("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vg.prototype,"selectedChanged",null);_.L([_.wP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],vg.prototype,"handleTextInputChanged",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vg.prototype,"handleServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],vg.prototype,"handleServiceRequestCompleted",null);
_.L([_.wP("yt-live-chat-poll-editor-input-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],vg.prototype,"handlePollEditorInputClosed",null);_.L([_.wP("picker-cancelled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vg.prototype,"onPickerCancelled",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],vg);
_.Y(vg,"yt-live-chat-poll-editor-panel-renderer",function(){if(jJh===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;KiC===void 0&&(KiC=document.createElement("template"));var E=KiC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);jJh=l}l=jJh;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var c1i;var FiC;var NI=function(){return _.B.apply(this,arguments)||this};
_.m(NI,_.B);NI.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
NI.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Ji.Object.defineProperties(NI.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var l,e;return(l=this.data)==null?void 0:(e=l.title)==null?void 0:e.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var l;return _.t3((l=this.data)==null?void 0:l.onTapCommand)}}});
_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],NI.prototype,"ytEndpointBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NI.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],NI.prototype,"itemId",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],NI.prototype,"hasPromotion",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],NI.prototype,"innertubeCommand",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],NI);
_.Y(NI,"yt-live-chat-product-picker-panel-item-view-model",function(){if(FiC===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;c1i===void 0&&(c1i=document.createElement("template"));var E=c1i;O.call(e,E.content.cloneNode(!0),l.content.firstChild);FiC=l}l=FiC;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var fIP;var Rzu;var r7=function(){var l=_.B.apply(this,arguments)||this;l.id="product-picker";l.selected=!1;l.closeButtonId="close-button";l.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return l};
_.m(r7,_.B);_.X=r7.prototype;_.X.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.X.observeSelected=function(){this.selected&&this.hostElement.focus();var l=_.ud(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");l.length&&l[0].focus()};
_.X.onCloseBuyFlow=function(){_.$u(this.hostElement,"picker-cancelled")};
_.X.onCloseClick=function(){_.$u(this.hostElement,"picker-cancelled");var l;((l=this.data)==null?0:l.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.I(this.data.closeButton,_.Hi))};
_.X.onCloseEngageWithAudienceEditorPanels=function(){_.$u(this.hostElement,"picker-cancelled")};
r7.prototype.observeSelected=r7.prototype.observeSelected;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],r7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],r7.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],r7.prototype,"id",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],r7.prototype,"selected",void 0);_.L([_.T(),_.q("design:type",Object)],r7.prototype,"closeButtonId",void 0);_.L([_.AA("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],r7.prototype,"observeSelected",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],r7);
_.Y(r7,"yt-live-chat-product-picker-panel-view-model",function(){if(Rzu===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;fIP===void 0&&(fIP=document.createElement("template"));var E=fIP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Rzu=l}l=Rzu;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var TKu;var sJF;var DR=function(){var l=_.B.apply(this,arguments)||this;l.iconId="";l.icon="";l.disabled=!1;l.systemIcons=_.a("kevlar_system_icons");return l};
_.m(DR,_.B);_.X=DR.prototype;_.X.attached=function(){_.a("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.X.computeIconId=function(l){return l&&l.icon&&l.icon.iconType?l.icon.iconType.toLowerCase():""};
_.X.computeIcon=function(l){return l&&l.icon&&l.icon.iconType?(l=l.icon.iconType.toLowerCase(),(l.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+l):""};
_.X.computeDisabled=function(l){return!!l};
_.X.computeCommand=function(l,e){return e?void 0:l};
_.X.computeTooltip=function(l,e){return e&&l?l:""};
_.X.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Ji.Object.defineProperties(DR.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.a("live_chat_compute_product_button_aria_label"))return"";var l="",e,O,E;if((e=this.data)==null?0:(O=e.text)==null?0:(E=O.runs)==null?0:E.length)l=this.data.text.runs[0].text||"";else{var J,z;if((J=this.data)==null?0:(z=J.text)==null?0:z.simpleText)l=this.data.text.simpleText}var M,Z,u;if((M=this.data)==null?0:(Z=M.subtext)==null?0:(u=Z.runs)==null?0:u.length)l&&(l+=". "),l+=this.data.subtext.runs[0].text||
"";else{var d,g;if((d=this.data)==null?0:(g=d.subtext)==null?0:g.simpleText)l&&(l+=". "),l+=this.data.subtext.simpleText}return l}}});
_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],DR.prototype,"ytEndpointBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],DR.prototype,"data",void 0);_.L([_.T({computed:"computeIconId(data)",reflectToAttribute:!0}),_.q("design:type",Object)],DR.prototype,"iconId",void 0);
_.L([_.T({computed:"computeIcon(data)",reflectToAttribute:!0}),_.q("design:type",Object)],DR.prototype,"icon",void 0);_.L([_.T({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.q("design:type",Object)],DR.prototype,"disabled",void 0);_.L([_.T({computed:"computeCommand(data.command, disabled)"}),_.q("design:type",Object)],DR.prototype,"command",void 0);_.L([_.T({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.q("design:type",String)],DR.prototype,"tooltip",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],DR.prototype,"systemIcons",void 0);_.L([_.R("data.text","data.subtext"),_.T(),_.q("design:type",String),_.q("design:paramtypes",[])],DR.prototype,"ariaLabel",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],DR);
_.Y(DR,"yt-live-chat-product-button-renderer",function(){if(sJF===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;TKu===void 0&&(TKu=document.createElement("template"));var E=TKu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);sJF=l}l=sJF;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var GAH;var BKi;var S2=function(){var l=_.B.apply(this,arguments)||this;l.selected=!1;l.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 l};
_.m(S2,_.B);_.X=S2.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.computeId=function(l){return l.id||""};
_.X.onCloseClick=function(){_.$u(this.hostElement,"picker-cancelled")};
_.X.observeSelected=function(){this.selected&&this.hostElement.focus();var l=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");l.length&&l[0].focus()};
_.X.onCloseBuyFlow=function(){_.$u(this.hostElement,"picker-cancelled")};
_.X.onCloseEngageWithAudienceEditorPanels=function(){_.$u(this.hostElement,"picker-cancelled")};
S2.prototype.observeSelected=S2.prototype.observeSelected;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],S2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],S2.prototype,"data",void 0);
_.L([_.T({computed:"computeId(data)",reflectToAttribute:!0}),_.q("design:type",String)],S2.prototype,"id",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],S2.prototype,"selected",void 0);_.L([_.AA("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],S2.prototype,"observeSelected",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],S2);
_.Y(S2,"yt-live-chat-product-picker-renderer",function(){if(BKi===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;GAH===void 0&&(GAH=document.createElement("template"));var E=GAH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);BKi=l}l=BKi;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var Pcf;var UbH;var YF3;var hzC;var Q$=function(){return _.B.apply(this,arguments)||this};
_.m(Q$,_.B);Q$.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()};
Q$.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Q$.prototype.created=function(){this.ids={background:_.Hr(),maskOne:_.Hr(),maskTwo:_.Hr(),gradient:_.Hr(),largeBackground:_.Hr(),largeGradientOne:_.Hr(),largeGradientTwo:_.Hr(),largeGradientPath:_.Hr()}};
Q$.prototype.maybeLoadAnimationBackground=Q$.prototype.maybeLoadAnimationBackground;_.L([_.T({value:!1}),_.q("design:type",Boolean)],Q$.prototype,"useLargeBackground",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Q$.prototype,"useAnimationBackground",void 0);_.L([_.T({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.q("design:type",Boolean)],Q$.prototype,"useRegularBackground",void 0);
_.L([_.T(),_.q("design:type",Object)],Q$.prototype,"ids",void 0);_.L([_.T(),_.q("design:type",Object)],Q$.prototype,"lottieAnimation",void 0);_.L([_.aB("#animation-background"),_.q("design:type",HTMLDivElement)],Q$.prototype,"animationBackground",void 0);_.L([_.AA("useAnimationBackground"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Q$.prototype,"maybeLoadAnimationBackground",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Q$);
_.Y(Q$,"yt-live-interactivity-component-background",function(){if(hzC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;YF3===void 0&&(YF3=document.createElement("template"));var E=YF3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);hzC=l}l=hzC;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var xX=function(){var l=_.B.apply(this,arguments)||this;l.characterCount=0;l.showInputErrorMessage=!1;l.startQnaRequestInFlight=!1;l.modern=_.a("web_button_rework_with_live");l.buttonOverrides={style:"mono",type:"filled"};l.closeButtonOverrides={iconPosition:"icon-only"};l.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return l};
_.m(xX,_.B);_.X=xX.prototype;
_.X.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]]"}}}}}};
_.X.onCharacterCountChanged=function(l){var e,O,E,J,z=(O=_.I(this==null?void 0:(e=this.data)==null?void 0:e.creatorCallForQuestions,A2f))==null?void 0:(E=O.inputField)==null?void 0:(J=E.liveChatTextInputFieldRenderer)==null?void 0:J.maxCharacterLimit,M,Z;z!=null&&(l==null?void 0:(M=l.detail)==null?void 0:M.characterCount)!=null&&_.I(this==null?void 0:(Z=this.data)==null?void 0:Z.startButton,_.YU)&&(e=l.detail.characterCount>z,this.set("data.startButton.buttonRenderer.isDisabled",l.detail.characterCount===
0||e),this.showInputErrorMessage=e)};
_.X.onCloseClick=function(){_.$u(this.hostElement,"picker-cancelled");_.Wb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.onPickerCancelled=function(){var l=_.ud(this.hostElement).querySelector("#qna-creator-text-input-field");l&&l.setLiveChatRichMessageInput(null)};
_.X.handleOpenQnaStartPanel=function(){var l=_.ud(this.hostElement).querySelector("#qna-creator-text-input-field");l&&l.focus()};
_.X.handleStartButtonAction=function(l){var e=this;if(l.detail.actionName==="yt-service-request"&&(l.stopPropagation(),l=l.detail.args[1])){var O=_.ud(this.hostElement).querySelector("#qna-creator-text-input-field"),E;(O==null?0:(E=O.liveChatRichMessageInput)==null?0:E.textSegments)&&O.liveChatRichMessageInput.textSegments.length!==0&&(E={rich_message:_.vF(O.liveChatRichMessageInput)},_.ii(this.hostElement,[l,E]).then(function(){_.$u(e.hostElement,"picker-cancelled")}))}};
_.X.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.X.handleServiceRequestCompleted=function(l){var e;l=l==null?void 0:(e=l.detail)==null?void 0:e.data;(l==null?0:l.actions)&&l.actions.length>0?this.startQnaRequestInFlight=!1:_.Wb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.X.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
xX.prototype.handleServiceRequestError=xX.prototype.handleServiceRequestError;xX.prototype.handleServiceRequestCompleted=xX.prototype.handleServiceRequestCompleted;xX.prototype.handleServiceRequestSent=xX.prototype.handleServiceRequestSent;xX.prototype.onPickerCancelled=xX.prototype.onPickerCancelled;xX.prototype.onCharacterCountChanged=xX.prototype.onCharacterCountChanged;_.L([_.T(),_.q("design:type",Object)],xX.prototype,"characterCount",void 0);
_.L([_.T(),_.q("design:type",Object)],xX.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xX.prototype,"showInputErrorMessage",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xX.prototype,"startQnaRequestInFlight",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xX.prototype,"modern",void 0);_.L([_.T(),_.q("design:type",Object)],xX.prototype,"buttonOverrides",void 0);
_.L([_.T(),_.q("design:type",Object)],xX.prototype,"closeButtonOverrides",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],xX.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.K(_.Lg.YtLiveChatItemBehavior),_.q("design:type",_.tb)],xX.prototype,"ytLiveChatItemBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],xX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.wP("yt-live-chat-text-input-field-renderer-character-count-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],xX.prototype,"onCharacterCountChanged",null);_.L([_.wP("picker-cancelled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xX.prototype,"onPickerCancelled",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xX.prototype,"handleServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],xX.prototype,"handleServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],xX.prototype,"handleServiceRequestError",null);_.L([_.U({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],xX);
_.Y(xX,"yt-live-chat-qna-start-panel-renderer",function(){if(UbH===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Pcf===void 0&&(Pcf=document.createElement("template"));var E=Pcf;O.call(e,E.content.cloneNode(!0),l.content.firstChild);UbH=l}l=UbH;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var Li3;var tLz;var lK=function(){return _.B.apply(this,arguments)||this};
_.m(lK,_.B);lK.prototype.dismiss=function(){_.$u(this.hostElement,"yt-live-chat-error-message-dismiss")};
lK.prototype.edit=function(){_.$u(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.L([_.T(),_.q("design:type",Object)],lK.prototype,"data",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],lK);
_.Y(lK,"yt-live-chat-text-actions-error-message-renderer",function(){if(tLz===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Li3===void 0&&(Li3=document.createElement("template"));var E=Li3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);tLz=l}l=tLz;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var qFo;var vcH;var NKz;var r1f;var e6=function(){var l=_.B.apply(this,arguments)||this;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.newnessDotEligible=!1;return l};
_.m(e6,_.B);e6.prototype.sendReaction=function(){var l,e,O=((l=this.data)==null?void 0:l.emojiId)||((e=this.data)==null?void 0:e.emoteId),E;O&&((E=this.data)==null?0:E.shouldTriggerAnimation)&&_.Wb(this.hostElement,"yt-create-user-reaction-animation",[O]);var J;(l=_.t3((J=this.data)==null?void 0:J.onTap))&&_.aX(l,this.hostElement);this.showNewnessDot&&_.Wb(this.hostElement,"yt-hide-newness-dot")};
e6.prototype.onClick=function(l){(!l||l.clientX||l.clientY)&&this.sendReaction()};
e6.prototype.onKeyDown=function(l){l.key!=="Enter"&&l.key!==" "||l.repeat||this.sendReaction()};
_.Ji.Object.defineProperties(e6.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!(((l=this.data)==null?0:l.emojiId)||((e=this.data)==null?0:e.emoteId))}}});
_.L([_.T(),_.q("design:type",Object)],e6.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],e6.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],e6.prototype,"newnessDotEligible",void 0);_.L([_.R("data.maybeShowNewnessDot"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],e6.prototype,"showNewnessDot",null);_.L([_.R("data.emojiId","data.emoteId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],e6.prototype,"useYtImage",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],e6);
_.Y(e6,"yt-reaction-control-panel-button-view-model",function(){if(r1f===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;NKz===void 0&&(NKz=document.createElement("template"));var E=NKz;O.call(e,E.content.cloneNode(!0),l.content.firstChild);r1f=l}l=r1f;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var DbC;var SFO;var OT=function(){var l=_.B.apply(this,arguments)||this;l.reactionControlPanelExpanded=!1;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.newnessDotEligible=!1;return l};
_.m(OT,_.B);_.X=OT.prototype;_.X.expandedButtonsChanged=function(){var l,e;_.dP(this.hostElement,{"--expanded-buttons-height":((e=(l=this.expandedButtonsData)==null?void 0:l.length)!=null?e:0)*36+"px"})};
_.X.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}}};
_.X.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.X.onMouseLeave=function(){var l=this;this.collapseTimer=setTimeout(function(){l.reactionControlPanelExpanded=!1},500)};
_.X.onFocusIn=function(){this.onMouseEnter()};
_.X.onFocusOut=function(){this.onMouseLeave()};
_.X.onCollapsedButtonFocusIn=function(){var l=this;setTimeout(function(){var e;(e=l.expandedButtons.querySelector("button"))==null||e.focus()},100)};
_.X.onCollapsedButtonFocusOut=function(l){l.stopPropagation()};
_.Ji.Object.defineProperties(OT.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var l,e;return _.mm.unsafeClone((l=this.liveReactionsData)==null?void 0:l.emojiButtonData)||((e=this.data)==null?void 0:e.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var l;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((l=this.data)==null||!l.maybeShowNewnessDot)}}});
OT.prototype.expandedButtonsChanged=OT.prototype.expandedButtonsChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],OT.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OT.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],OT.prototype,"reactionControlPanelExpanded",void 0);_.L([_.T({selectorArgs:["data.liveReactionsDataEntityKey"],selector:OaP}),_.q("design:type",Object)],OT.prototype,"liveReactionsData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],OT.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],OT.prototype,"newnessDotEligible",void 0);
_.L([_.R("liveReactionsData","data.expandedButtons"),_.q("design:type",Object),_.q("design:paramtypes",[])],OT.prototype,"expandedButtonsData",null);_.L([_.R("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.T({reflectToAttribute:!0}),_.q("design:type",Object),_.q("design:paramtypes",[])],OT.prototype,"showNewnessDot",null);_.L([_.aB("#expanded-buttons"),_.q("design:type",HTMLElement)],OT.prototype,"expandedButtons",void 0);
_.L([_.AA("expandedButtonsData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OT.prototype,"expandedButtonsChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],OT);
_.Y(OT,"yt-reaction-control-panel-view-model",function(){if(SFO===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;DbC===void 0&&(DbC=document.createElement("template"));var E=DbC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);SFO=l}l=SFO;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var ET=new _.qx("yt-live-chat"),QJu=Date.parse("2024-7-24"),JX=function(){var l=_.B.apply(this,arguments)||this;l.emojiManager=_.hb;l.newnessDotEligible=!1;l.newnessDotImpressionCounted=!1;l.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return l};
_.m(JX,_.B);_.X=JX.prototype;_.X.emojiCustomizationEnabledChanged=function(){var l;((l=this.data)==null?0:l.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((l=ET.getCreationTime("emoji-customization-count"))&&l<QJu&&ET.set("emoji-customization-count","0"),l=Number(ET.get("emoji-customization-count"))||0,l<3&&(this.newnessDotEligible=!0,ET.set("emoji-customization-count",(l+1).toString())),this.newnessDotImpressionCounted=!0)};
_.X.hideNewnessDot=function(){this.newnessDotEligible=!1;ET.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.X.handleReactionsMute=function(l){var e=_.P9(),O=_.sL(206221),E={checkboxData:{state:l?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};e&&_.On(e,O,E);this.reactionsMuted=l};
_.X.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.X.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}}};
_.Ji.Object.defineProperties(JX.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var l;return(!((l=this.liveReactionsData)==null||!l.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
JX.prototype.liveReactionsSettingChanged=JX.prototype.liveReactionsSettingChanged;JX.prototype.emojiCustomizationEnabledChanged=JX.prototype.emojiCustomizationEnabledChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.tw),_.q("design:type",Object)],JX.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],JX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],JX.prototype,"data",void 0);_.L([_.T(),_.q("design:type",_.Pu)],JX.prototype,"emojiManager",void 0);_.L([_.T(),_.q("design:type",Object)],JX.prototype,"newnessDotEligible",void 0);_.L([_.T(),_.q("design:type",Object)],JX.prototype,"newnessDotImpressionCounted",void 0);
_.L([_.T({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:EtC}),_.q("design:type",Boolean)],JX.prototype,"liveReactionsSetting",void 0);_.L([_.T({selectorArgs:["data.liveReactionsDataEntityKey"],selector:OaP}),_.q("design:type",Object)],JX.prototype,"liveReactionsData",void 0);_.L([_.T({value:function(){var l=_.a("enable_lwe_web_mute"),e=ET.get("allow-reactions");return e===void 0?!1:!e&&l}}),
_.q("design:type",Boolean)],JX.prototype,"reactionsMuted",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],JX.prototype,"liveReactionsEnabled",null);_.L([_.AA("data.emojiCustomizationEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JX.prototype,"emojiCustomizationEnabledChanged",null);
_.L([_.AA("liveReactionsEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JX.prototype,"liveReactionsSettingChanged",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],JX);
_.Y(JX,"yt-reaction-control-panel-overlay-view-model",function(){if(vcH===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;qFo===void 0&&(qFo=document.createElement("template"));var E=qFo;O.call(e,E.content.cloneNode(!0),l.content.firstChild);vcH=l}l=vcH;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var xbC={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(l){var e=this.$.pickers.selected;if(e){_.ud(this.hostElement).removeAttribute(e+"-open");var O="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(O="#picker-buttons",e==="emoji"&&_.ud(this.hostElement).querySelector("#emoji-picker-button")&&(O="#emoji-picker-button"));if(O=_.ud(this.hostElement).querySelector(O).querySelector("#"+e))O.active=!1}O=l;e==l&&(O=null);e!=
l&&_.ud(this.hostElement).setAttribute(l+"-open","");this.$.pickers.selected=O;_.Wb(this.hostElement,"yt-live-chat-picker-changed",[O])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var XE=function(){var l=_.B.apply(this,arguments)||this;l.numSentMessages=0;l.timeoutDurationMs=0;l.timeoutMs=0;l.lastTimeoutTimeMs=0;l.pendingMessageId="";l.hasFiredInitialFocusActions=!1;l.isBeforeFocusEnabled=!0;l.id="";l.characterCount=0;l.maxCharacterLimit=0;l.remainingCharacterCount=0;l.inputExpanded=!1;l.buttonOverrides={iconPosition:"icon-only"};l.inReplyPanel=!1;l.countdownRatio=0;l.isTooltipVisible=!1;l.tooltipTimeout=1E4;l.systemIcons=_.a("kevlar_system_icons");l.tallerEmojiPicker=_.a("live_chat_taller_emoji_picker");
l.sendReplyMessageInFlight=!1;l.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"};l.onResize=function(){l.maybeToggleCharacterCount()};
return l};
_.m(XE,_.B);_.X=XE.prototype;
_.X.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"}}}};
_.X.attached=function(){window.addEventListener("resize",this.onResize)};
_.X.detached=function(){window.removeEventListener("resize",this.onResize)};
_.X.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.X.sendMessage=function(){var l=this,e,O,E,J;return _.V(function(z){if(l.sendDisabled)return z.return();l.isTooltipVisible&&_.Wb(l.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(l.data.sendButton&&l.data.sendButton.buttonRenderer){l.input.completeEmojis();e=l.data.sendButton.buttonRenderer.serviceEndpoint;if(!e)return z.return();E=((O=_.I(e,_.n$F))==null?void 0:O.clientIdPrefix)||"";J={client_message_id:E+String(l.numSentMessages++),rich_message:_.vF(l.input.liveChatRichMessageInput)};
l.pendingMessageId=J.client_message_id;l.inReplyPanel&&(l.sendReplyMessageInFlight=!0);_.ii(l.hostElement,[e,J]);l.input.setLiveChatRichMessageInput(null)}_.Cl(z)})};
_.X.handleSendButtonAction=function(l){l.detail.actionName==="yt-service-request"&&(l.stopPropagation(),this.sendMessage())};
_.X.onSendCompleted=function(l,e){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(l=this.get("timeoutDurationUsec",e.data))&&this.handleTimeout(Number(l)/1E3);this.errorMessage=this.get("errorMessage",e.data);this.pendingMessageId=""};
_.X.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Wb(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.X.handlePickerButtonToggle=function(l){l=l.detail.targetId;this.ytPickerBehavior.togglePicker_(l);if(l==="emoji")this.input.focus();else if(l==="qna-start-panel"){var e,O;(e=_.ud(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(O=e.querySelector("#qna-creator-text-input-field"))==null||O.focus()}};
_.X.onComponentReplaced=function(l){var e,O;l.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((e=l.replacement.liveChatMessageInputRenderer)==null?0:(O=e.headerRenderer)==null?0:O.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.X.onEmojiSelect=function(l){this.input.focus();this.input.insertEmoji(l.detail)};
_.X.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.X.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Wb(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Wb(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.X.onOpenPopupAction=function(l,e){var O=this;e===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Wb(O.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.X.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.X.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.X.focusChanged=function(){this.maybeToggleCharacterCount()};
_.X.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var l=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",l>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.X.computeId=function(){return this.data&&this.data.targetId||""};
_.X.computeSendDisabled=function(l,e,O,E){l=!!(!l||e&&l>e||E);(e=_.ud(this.hostElement).querySelector("#send-button"))&&e.children.length&&(e.children[0].disabled=l);return l};
_.X.handleTimeout=function(l){this.timeoutDurationMs=this.timeoutMs=l;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.X.updateTimeout=function(l){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(l-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=l,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.X.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.X.onErrorMessageEdit=function(l){this.input.setLiveChatRichMessageInput(l.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.X.errorMessageChanged=function(){var l=this;_.N7(function(){_.Wb(l.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.X.computeAuthorNameColor=function(l){var e;if(_.a("live_chat_author_name_color_usernames")&&(l==null?0:(e=l.authorName)==null?0:e.simpleText))return _.oWV(_.$$V(l.authorName.simpleText));if(_.a("live_chat_seed_color_usernames")&&(l==null?0:l.authorSeedColorArgb))return _.oWV(_.g6(l.authorSeedColorArgb));if(_.a("live_chat_colored_usernames"))return"#cc0000";var O;return _.a("live_chat_simple_color_usernames")&&(l==null?0:(O=l.authorName)==null?0:O.simpleText)&&(l==null?0:l.authorUsernameColorLight)&&
(l==null?0:l.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.g6(l.authorUsernameColorDark):_.g6(l.authorUsernameColorLight):""};
_.X.onIsTooltipVisibleChanged=function(){var l=_.ud(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){l.hidden=!1;l.setAttribute("role","alert")},0):(l.hidden=!0,l.removeAttribute("role"))};
_.X.onFocusedChanged=function(l){this.inputFocused=l.detail.value};
_.Ji.Object.defineProperties(XE.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 l;return!((l=this.data)==null||!l.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:(e=l.pickers)==null?void 0:e.find(function(O){return O.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return l?this.ytRendererBehavior.getSimpleString(l):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
XE.prototype.onIsTooltipVisibleChanged=XE.prototype.onIsTooltipVisibleChanged;XE.prototype.errorMessageChanged=XE.prototype.errorMessageChanged;XE.prototype.onErrorMessageEdit=XE.prototype.onErrorMessageEdit;XE.prototype.onErrorMessageDismiss=XE.prototype.onErrorMessageDismiss;XE.prototype.focusChanged=XE.prototype.focusChanged;XE.prototype.characterCountChanged=XE.prototype.characterCountChanged;XE.prototype.onEmojiSelect=XE.prototype.onEmojiSelect;XE.prototype.handlePickerButtonToggle=XE.prototype.handlePickerButtonToggle;
XE.prototype.onSendError=XE.prototype.onSendError;XE.prototype.onSendCompleted=XE.prototype.onSendCompleted;XE.prototype.sendMessage=XE.prototype.sendMessage;XE.prototype.dataChanged=XE.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],XE.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(xbC.YtPickerBehavior),_.q("design:type",Object)],XE.prototype,"ytPickerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.q5.YtLiveChatTooltipTargetingBehavior),_.q("design:type",Object)],XE.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"hasFiredInitialFocusActions",void 0);
_.L([_.T(),_.q("design:type",Object)],XE.prototype,"isBeforeFocusEnabled",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"data",void 0);_.L([_.T({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.q("design:type",Object)],XE.prototype,"id",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"characterCount",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"maxCharacterLimit",void 0);
_.L([_.T(),_.q("design:type",Object)],XE.prototype,"remainingCharacterCount",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],XE.prototype,"inputExpanded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],XE.prototype,"inputFocused",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],XE.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.L([_.T(),_.q("design:type",_.Ne)],XE.prototype,"participantsManager",void 0);
_.L([_.T(),_.q("design:type",Object)],XE.prototype,"buttonOverrides",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],XE.prototype,"inReplyPanel",void 0);_.L([_.R("characterCount, maxCharacterLimit, countdownActive"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XE.prototype,"sendDisabled",null);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"countdownRatio",void 0);
_.L([_.R("countdownRatio"),_.q("design:type",Number),_.q("design:paramtypes",[])],XE.prototype,"countdownStrokeDashOffset",null);_.L([_.R("countdownRatio"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XE.prototype,"countdownActive",null);_.L([_.R("data.interactionMessage"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XE.prototype,"hasInteractionMessage",null);
_.L([_.R("data.emojiPickerButton"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XE.prototype,"hasEmojiPickerButton",null);_.L([_.R("data, characterCount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XE.prototype,"showAvatar",null);_.L([_.R("data.pickers"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],XE.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.T(),_.q("design:type",Object)],XE.prototype,"errorMessage",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"genericErrorMessage",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"isTooltipVisible",void 0);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"tooltipTimeout",void 0);_.L([_.R("data.onInitialFocusCommand"),_.q("design:type",String),_.q("design:paramtypes",[])],XE.prototype,"tooltipMessage",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],XE.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],XE.prototype,"tallerEmojiPicker",void 0);_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],XE.prototype,"authorNameColor",null);_.L([_.T(),_.q("design:type",Object)],XE.prototype,"sendReplyMessageInFlight",void 0);_.L([_.aB("#input"),_.q("design:type",_.la1)],XE.prototype,"input",void 0);
_.L([_.aB("#count"),_.q("design:type",HTMLElement)],XE.prototype,"count",void 0);_.L([_.aB("#input-container"),_.q("design:type",HTMLElement)],XE.prototype,"inputContainer",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"dataChanged",null);_.L([_.wP("yt-live-chat-send-message"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],XE.prototype,"sendMessage",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[Event,_.Oh]),_.q("design:returntype")],XE.prototype,"onSendCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"onSendError",null);
_.L([_.wP("yt-live-chat-icon-toggle-button-renderer-toggle"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],XE.prototype,"handlePickerButtonToggle",null);_.L([_.wP("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],XE.prototype,"onEmojiSelect",null);
_.L([_.AA("characterCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"characterCountChanged",null);_.L([_.AA("inputFocused"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"focusChanged",null);_.L([_.wP("yt-live-chat-error-message-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"onErrorMessageDismiss",null);
_.L([_.wP("yt-live-chat-error-message-edit"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],XE.prototype,"onErrorMessageEdit",null);_.L([_.AA("errorMessage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"errorMessageChanged",null);_.L([_.AA("isTooltipVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],XE.prototype,"onIsTooltipVisibleChanged",null);
_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],XE);
_.Y(XE,"yt-live-chat-message-input-renderer",function(){if(A1O===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;wL3===void 0&&(wL3=document.createElement("template"));var E=wL3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);A1O=l}l=A1O;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var l4C;var eQC;var z2=function(){var l=_.B.apply(this,arguments)||this;l.systemIcons=_.a("kevlar_system_icons");l.firedOnClickCommand=!1;l.inReplyPanel=!1;return l};
_.m(z2,_.B);
z2.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"}}}};
z2.prototype.onButtonToggle=function(l){l.target.disabled||this.ytPickerBehavior.togglePicker_(l.detail.targetId)};
z2.prototype.onClick=function(){var l=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Wb(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return l.firedOnClickCommand=!1},5E3))};
_.Ji.Object.defineProperties(z2.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:(e=l.panels)==null?void 0:e.find(function(O){return O.liveChatProductPickerPanelViewModel}))!==void 0}}});
z2.prototype.onButtonToggle=z2.prototype.onButtonToggle;_.L([_.K(xbC.YtPickerBehavior),_.q("design:type",Object)],z2.prototype,"ytPickerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],z2.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],z2.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Object)],z2.prototype,"firedOnClickCommand",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],z2.prototype,"inReplyPanel",void 0);_.L([_.R("data.pickers"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],z2.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.wP("yt-live-chat-icon-toggle-button-renderer-toggle"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],z2.prototype,"onButtonToggle",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],z2);
_.Y(z2,"yt-live-chat-restricted-participation-renderer",function(){if(eQC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;l4C===void 0&&(l4C=document.createElement("template"));var E=l4C;O.call(e,E.content.cloneNode(!0),l.content.firstChild);eQC=l}l=eQC;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var bK=function(){var l=_.B.apply(this,arguments)||this;l.genericErrorMessage=_.xp("Error, try again.");l.inReplyPanel=!1;l.hideBorder=!1;return l};
_.m(bK,_.B);bK.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}}}}}};
_.Ji.Object.defineProperties(bK,{template:{configurable:!0,enumerable:!0,get:function(){return $bh()}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bK.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],bK.prototype,"genericErrorMessage",void 0);_.L([_.T(),_.q("design:type",Object)],bK.prototype,"inReplyPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],bK.prototype,"hideBorder",void 0);
_.L([_.Ps({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],bK);_.Y(bK,"yt-live-chat-engagement-panel-input-renderer",function(){return $bh()},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var Ohf,ELF;Ohf=_.sL(115994);ELF=_.sL(115993);_.MK=function(l,e,O){var E=this;var J=O.dragDownAction;this.layer=0;this.JSC$19960_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.JSC$19960_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.fullscreen=!1;var z=_.yN();_.WJ(z,Ohf,this.layer);_.WJ(z,ELF,this.layer);this.dragDownAction=function(){J();_.rg(z,{visualElement:E.fullscreen?Ohf:ELF})};
this.gesture=new _.uW(l,e,this.JSC$19960_watchConfig,"pandown");this.attach()};
_.MK.prototype.attach=function(){this.gesture.attach()};
_.MK.prototype.detach=function(){this.gesture.detach()};
_.MK.prototype.update=function(l){this.fullscreen=l;this.gesture.config=l?this.JSC$19960_watchFullScreenConfig:this.JSC$19960_watchConfig};var JSf={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(l){if(l&&l.length==1&&Array.isArray(l[0].loggingUrls)){l=_.mm.unsafeClone(l[0]);var e=this.macros||{},O=this.getAdModuleClient_();if(!O)return _.Ag();l.loggingUrls.forEach(function(E){if(E.baseUrl){var J=E.baseUrl;var z=e;z=z===void 0?{}:z;J=O.getOptions().includes("replaceUrlMacros")?_.WEi(O,"replaceUrlMacros",{url:J,additionalMapping:z}):J;E.baseUrl=J}},this);
l=[l]}return _.ii(this.hostElement,l)},
getAdModuleClient_:function(){var l=_.bV(this);return l?(l=l.getPlayer())?new _.Kw(l):null:null}}]};var XPu;var VB=function(){var l=_.B.apply(this,arguments)||this;l.isCollapsed=!1;l.modernPanels=_.a("kevlar_watch_modern_panels");l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return l};
_.m(VB,_.B);_.X=VB.prototype;_.X.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.onDonateTap=function(){var l=this.get("data.donateButton.buttonRenderer.command");if(l){var e=_.P9(),O=this.get("data.donateButton.buttonRenderer.trackingParams");e&&O&&_.On(e,_.cf(O));this.ytOpenPopupBehavior.openPopup(l)}};
_.X.onShowMore=function(){this.isCollapsed=!1;var l=_.P9(),e=this.get("data.expandButton.buttonRenderer.trackingParams");l&&e&&_.On(l,_.cf(e))};
_.X.onShowLess=function(){this.isCollapsed=!0};
_.X.dataChanged=function(){_.dP(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.handleUpdate=function(l){if(l=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",l))this.set("data.startLabel",l.startLabel),this.set("data.endLabel",l.endLabel),this.set("data.progress",l.progress),this.set("data.amountRaisedLabel",l.amountRaisedLabel),this.dataChanged()};
_.X.handleOpenPopupAction=function(l){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",l)&&_.Wb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.X.computeHeaderBackgroundUrl=function(l,e){if(l)return e?l.headerBackgroundDarkUrl:l.headerBackgroundUrl};
_.X.isProgressBarVisible=function(l){return!(!l||l.progress===void 0)};
_.X.headerBackgroundClass=function(){return _.hT("HTML_DIR")==="rtl"?"flip":""};
VB.prototype.dataChanged=VB.prototype.dataChanged;_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],VB.prototype,"ytOpenPopupBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],VB.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],VB.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],VB.prototype,"isCollapsed",void 0);_.L([_.T({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.q("design:type",String)],VB.prototype,"headerBackgroundUrl",void 0);_.L([_.T(),_.q("design:type",Boolean)],VB.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],VB.prototype,"modernPanels",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VB.prototype,"dataChanged",null);_.L([_.U({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],VB);
_.Y(VB,"ytd-donation-shelf-renderer",function(){if(XPu!==void 0)return XPu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return XPu=l},{mode:1});var zQH;var bhO=function(){return _.B.apply(this,arguments)||this};
_.m(bhO,_.B);_.L([_.T(),_.q("design:type",Object)],bhO.prototype,"data",void 0);_.L([_.U({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],bhO);
_.Y(bhO,"ytd-donation-unavailable-renderer",function(){if(zQH!==void 0)return zQH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zQH=l},{mode:1});var Mui;var ZM=function(){return _.B.apply(this,arguments)||this};
_.m(ZM,_.B);ZM.prototype.computeIconType=function(l){return l?"yt-icons:"+l.toLowerCase():null};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ZM.prototype,"data",void 0);_.L([_.U({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],ZM);
_.Y(ZM,"ytd-limited-state-message-renderer",function(){if(Mui!==void 0)return Mui;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Mui=l},{mode:1});var Vu0;var uK=function(){return _.B.apply(this,arguments)||this};
_.m(uK,_.B);uK.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
uK.prototype.onTap=function(l){var e=this.data&&this.data.endpoint;e&&!_.Eh(_.ey(l),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.$u(this.hostElement,"yt-navigate",{endpoint:e})};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],uK.prototype,"data",void 0);_.L([_.U({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],uK);
_.Y(uK,"ytd-autotagging-metadata-renderer",function(){if(Vu0!==void 0)return Vu0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Vu0=l},{mode:1});var ZhP;var CB=function(){return _.B.apply(this,arguments)||this};
_.m(CB,_.B);CB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CB.prototype,"data",void 0);_.L([_.U({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],CB);
_.Y(CB,"ytd-autotagging-metadata-row-renderer",function(){if(ZhP!==void 0)return ZhP;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ZhP=l},{mode:1});var uH4;var CTu;var ou=function(){var l=_.B.apply(this,arguments)||this;l.engagementPanelContent=!1;return l};
_.m(ou,_.B);ou.prototype.computeHasDividerLine=function(l,e){return l&&!e};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ou.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.q("design:type",Boolean)],ou.prototype,"hasDividerLine",void 0);_.L([_.T(),_.q("design:type",Object)],ou.prototype,"engagementPanelContent",void 0);
_.L([_.U({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ou);
_.Y(ou,"ytd-metadata-row-header-renderer",function(){if(CTu!==void 0)return CTu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return CTu=l},{mode:1});var oLi;var $B=function(){return _.B.apply(this,arguments)||this};
_.m($B,_.B);$B.prototype.computeHasDividerLine=function(l){return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$B.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.q("design:type",Boolean)],$B.prototype,"hasDividerLine",void 0);_.L([_.U({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],$B);
_.Y($B,"ytd-metadata-row-renderer",function(){if(oLi!==void 0)return oLi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return oLi=l},{mode:1});var $2u;var WZ=function(){return _.B.apply(this,arguments)||this};
_.m(WZ,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WZ.prototype,"data",void 0);_.L([_.U({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],WZ);
_.Y(WZ,"ytd-metadata-with-image-row-renderer",function(){if($2u!==void 0)return $2u;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $2u=l},{mode:1});var W9h;var dD=function(){var l=_.B.apply(this,arguments)||this;l.rounded=!0;l.fixie=!1;l.fullWidth=!1;return l};
_.m(dD,_.B);_.X=dD.prototype;_.X.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.onDataChanged=function(){var l=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(e){l.onEndpointLinkKeyPress(e)}))};
_.X.onEndpointLinkKeyPress=function(l){l.target===this.endpointLink&&l.keyCode===13&&_.$u(this.hostElement,"click")};
_.X.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var l;if((l=this.data)==null?0:l.endpoint)_.wQ(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.X.onYtNavigate=function(l){this.endpointHref||(l.stopPropagation(),l.preventDefault())};
_.X.onInformationButtonContainerClick=function(l){l.target.id!=="information-button-container"&&(l.stopPropagation(),l.preventDefault())};
_.X.computeStyle=function(l){return l};
_.X.computeIsThumbnailStyle=function(l){return l==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.X.computeThumbnailWidth=function(l){switch(l){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}};
_.X.computeThumbnailObjectFit=function(l){switch(l){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Ji.Object.defineProperties(dD.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
dD.prototype.onYtNavigate=dD.prototype.onYtNavigate;dD.prototype.onClick=dD.prototype.onClick;dD.prototype.onDataChanged=dD.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],dD.prototype,"componentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],dD.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],dD.prototype,"componentStyle",void 0);_.L([_.T({computed:"computeIsThumbnailStyle(data.style)"}),_.q("design:type",Boolean)],dD.prototype,"isThumbnailStyle",void 0);_.L([_.T({computed:"computeThumbnailObjectFit(data.style)"}),_.q("design:type",String)],dD.prototype,"thumbnailObjectFit",void 0);
_.L([_.T({computed:"computeThumbnailWidth(data.style)"}),_.q("design:type",Number)],dD.prototype,"thumbnailWidth",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dD.prototype,"rounded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dD.prototype,"fixie",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dD.prototype,"fullWidth",void 0);_.L([_.aB("#endpoint-link"),_.q("design:type",HTMLAnchorElement)],dD.prototype,"endpointLink",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dD.prototype,"onDataChanged",null);_.L([_.R("data.endpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],dD.prototype,"endpointHref",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],dD.prototype,"onClick",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],dD.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],dD);
_.Y(dD,"ytd-rich-metadata-renderer",function(){if(W9h!==void 0)return W9h;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return W9h=l},{mode:_.Wf("kevlar_poly_si_batch_j075")?1:2});var d2F;var gD=function(){var l=_.B.apply(this,arguments)||this;l.fixie=!1;l.fullWidth=!1;return l};
_.m(gD,_.B);gD.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
gD.prototype.computeHasDividerLine=function(l){return l};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gD.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.q("design:type",Boolean)],gD.prototype,"hasDividerLine",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],gD.prototype,"fixie",void 0);_.L([_.T(),_.q("design:type",Object)],gD.prototype,"fullWidth",void 0);
_.L([_.U({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],gD);
_.Y(gD,"ytd-rich-metadata-row-renderer",function(){if(d2F!==void 0)return d2F;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return d2F=l},{mode:1});var iK=function(){var l=_.B.apply(this,arguments)||this;l.engagementPanelContent=!1;l.fixie=!1;l.fullWidth=!1;return l};
_.m(iK,_.B);
iK.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"}}}};
iK.prototype.computeCollapsibleItems=function(l,e,O){return l===void 0||e===void 0||O===void 0||O?[]:l.slice(e)};
iK.prototype.computeAlwaysShownItems=function(l,e){return l&&l.length?l.slice(0,e):[]};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],iK.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],iK.prototype,"collapsed",void 0);
_.L([_.T({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.q("design:type",Array)],iK.prototype,"alwaysShownItems",void 0);_.L([_.T({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.q("design:type",Array)],iK.prototype,"collapsibleItems",void 0);_.L([_.T(),_.q("design:type",Object)],iK.prototype,"engagementPanelContent",void 0);_.L([_.T(),_.q("design:type",Object)],iK.prototype,"fixie",void 0);
_.L([_.T(),_.q("design:type",Object)],iK.prototype,"fullWidth",void 0);_.L([_.U({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],iK);
_.Y(iK,"ytd-metadata-row-container-renderer",function(){if(uH4!==void 0)return uH4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return uH4=l},{mode:1});var gLh;var wD=function(){var l=_.B.apply(this,arguments)||this;l.currentPageUrl="";l.baseUrl="";l.isHiddenByUser=null;l.hidden=!1;l.showAboveScrim=!1;l.watchNextGrid=_.a("kevlar_watch_grid");l.modernButtons=_.a("web_modern_buttons");l.roundedContainer=!0;l.noBorder=!1;l.roundBackground=!_.a("live_chat_round_background_killswitch");l.overflowHideChat=_.a("live_chat_overflow_hide_chat");l.forceDarkTheme=!1;l.theaterWatchWhile=!1;l.isListeningForPlayerProgress=!1;l.JSC$19996_playerEvents=new Map;l.isFrameReady=
!1;l.player=null;l.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 l};
_.m(wD,_.B);_.X=wD.prototype;_.X.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.dQ(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.X.created=function(){var l=this;this.handleIframeEventListener=function(e){l.handleIframeEvent(e)};
this.handleKeyboardEventListener=function(e){l.handleKeyboardEvent(e)};
this.JSC$19996_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19996_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19996_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19996_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19996_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.X.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()};
_.X.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};
_.X.computeBaseUrl=function(l){var e="/live_chat";this.isChatReplay()&&(e="/live_chat_replay");return _.Zq(_.Vi(_.MD(_.rk(l),e),null),"").toString()};
_.X.dataChanged=function(){_.a("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.X.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var l=this.url;if(this.isChatReplay()&&this.player){var e=Math.floor(this.player.getProgressState().current*1E3);l=_.S$(_.rk(l),"playerOffsetMs",e.toString()).toString()}e=this.chatframe;try{var O=l==="about:blank"?_.WtT:_.nU(l),E=e.contentDocument.location,J=_.m7(O);J!==void 0&&E.replace(J)}catch(z){e.src=l}}};
_.X.collapsedChanged=function(){_.$u(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.X.handleIframeEvent=function(l){if(l&&this.baseUrl.startsWith(l.origin)&&l.source===this.chatframe.contentWindow&&_.e0(l.data))if(l.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(l);else if(l.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(l.data["yt-show-feedback-dialog"]){var e=_.V2().resolve(_.MG(_.bXR));if(e){var O=l.ports,E;O&&O.length&&(E=function(){O[0].postMessage({})});
l=l.data["yt-show-feedback-dialog"];e.showFeedbackDialog(l.customProductData,l.feedbackContent,E,l.bucket)}}else if(l.data["yt-show-survey"])_.$u(this.hostElement,"yt-show-survey",l.data["yt-show-survey"]);else if(l.data["yt-purchase-membership"])_.V2().resolve(_.Zh).resolveCommand(l.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(l.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(l.data["yt-tunnel-out-live-service-request"]);else if(l.data["yt-user-activity"])_.Zb();
else if(l.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(l.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(l.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(l.data["yt-open-popup"]);else if(l.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(l.data["yt-log-flow-logging-event-command"]);else if(l.data["yt-hide-live-chat"])this.onShowHideChat();else l.data["yt-report-moderation-state-log"]&&
this.player&&(e={cpn:this.player.getVideoData().cpn},_.Bm("liveChatBeingModerated",e))};
_.X.attachLiveChatResponseVeTrackingParams=function(l){l=_.cf(l);var e=_.P9(),O=_.vK("liveChatRenderer.trackingParams",this.data);e&&O&&_.DG(e,_.cf(O),l)};
_.X.handleBuyflowMessages=function(l){var e=l.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,O=l.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,E=l.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.XPq(_.$x(_.ld),e.replace(/-/g,"+").replace(/_/g,"/"),function(J){l.ports[0].postMessage({success:!0,buyFlowResponse:J})},void 0,function(J){l.ports[0].postMessage({success:!1,
error:J&&J.message||"Buyflow rejected without error."})},_.Kz().get("hl"),void 0,function(){l.ports[0].postMessage({closed:!0})},O,E)};
_.X.setupPlayerProgressRelay=function(){var l=this;if(!this.isListeningForPlayerProgress){var e=_.Mc();e!=null&&e.getPlayerPromise&&(e.getPlayerPromise().then(function(O){l.playerApiReady(O)}),this.isListeningForPlayerProgress=!0)}};
_.X.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.X.playerApiReady=function(l){this.setPlayer(l)};
_.X.playerProgressHandler=function(){if(this.player){var l=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":l.current})}};
_.X.playerAdStartHandler=function(l){this.postToContentWindow({"yt-player-ad-start":l})};
_.X.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.X.playerStateChangeHandler=function(l){this.postToContentWindow({"yt-player-state-change":l})};
_.X.setPlayer=function(l){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19996_playerEvents);l&&(this.player=l,this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$19996_playerEvents),_.$u(this.hostElement,"player-api-ready"))};
_.X.liveChatPageUrl=function(l,e,O,E){return!O||e?"about:blank":O.liveChatRenderer?(e=_.rk(this.currentPageUrl).JSC$8068_queryData_,D_u(e),l=_.rk(l),e.add("continuation",O.liveChatRenderer.continuations[0].reloadContinuationData.continuation),O=_.R4()==="USER_INTERFACE_THEME_DARK",(E||O)&&e.add("dark_theme","true"),_.Vi(l,e),E=_.rk(l.toString()),O=E.JSC$8068_queryData_,"SESSION_INDEX"in _.UC&&(O.add("authuser",_.hT("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.UC&&O.add("pageId",_.hT("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.UC&&O.add("sdc",_.hT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),E.toString()):""};
_.X.isCollapsed=function(l,e){return e!==null?e:this.isChatReplay()||l&&l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage?!0:l?l.liveChatRenderer?l.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.a("live_chat_hide_premiere_replay_message")||l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.X.isHidden=function(l,e,O){var E=e&&e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage,J=e&&e.liveChatRenderer&&e.liveChatRenderer.showHideButton,z=e&&e.liveChatRenderer&&e.liveChatRenderer.showButton;return O&&l&&!E&&!z||!O&&l&&!E&&!J?!0:e&&e.liveChatRenderer&&e.liveChatRenderer.initialDisplayState?e.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.X.computeButtonOverride=function(l,e){if(l&&e)return{type:"outline"}};
_.X.setCollapsedState=function(l){_.I(l,_.bx1)&&(this.isHiddenByUser=!!_.I(l,_.bx1).collapsed,!this.isHiddenByUser&&_.a("enable_teaser_framework_web_client")&&_.Wb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.X.forwardReduxActionToIframe=function(l){this.postToContentWindow({"yt-live-chat-forward-redux-action":l})};
_.X.onLoopRangeChange=function(l){this.showAboveScrim=!(l==null||!l.postId)};
_.X.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.X.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.X.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.X.sendDarkThemePostMessage=function(l){this.postToContentWindow({"yt-live-chat-set-dark-theme":l})};
_.X.onLiveChatBuyFlowCallback=function(l){this.postToContentWindow({"yt-live-chat-buy-flow-callback":l})};
_.X.handleKeyboardEvent=function(l){(0,_.mm.containsValue)(r2z,l.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:l.type,keyCode:l.keyCode}})};
_.X.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.X.postToContentWindow=function(l){if(this.isFrameReady)try{var e=window.location.protocol+"//"+window.location.host,O;(O=this.chatframe)!=null&&O.contentWindow?this.chatframe.contentWindow.postMessage(l,e):_.hG(new _.Hk("Tried posting a message to an iframe with no content window",l))}catch(E){_.UW(E)}};
_.X.shouldHideChatFrame=function(l){return l&&_.a("hide_live_chat_button_when_collapsed")};
_.Ji.Object.defineProperties(wD.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.a("live_chat_overflow_hide_chat")||_.a("web_watch_chat_hide_button_killswitch"))return _.a("live_chat_overflow_hide_chat");var l,e,O,E;return!!((l=this.data)==null?0:(e=l.liveChatRenderer)==null?0:(O=e.header)==null?0:(E=O.liveChatHeaderRenderer)==null?0:E.collapseButton)}}});
wD.prototype.collapsedChanged=wD.prototype.collapsedChanged;wD.prototype.urlChanged=wD.prototype.urlChanged;wD.prototype.dataChanged=wD.prototype.dataChanged;wD.prototype.onShowHideChat=wD.prototype.onShowHideChat;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],wD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],wD.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],wD.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],wD.prototype,"ytOpenPopupBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wD.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],wD.prototype,"currentPageUrl",void 0);
_.L([_.T({computed:"computeBaseUrl(currentPageUrl,data)"}),_.q("design:type",Object)],wD.prototype,"baseUrl",void 0);_.L([_.T({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.q("design:type",String)],wD.prototype,"url",void 0);_.L([_.T(),_.q("design:type",Object)],wD.prototype,"isHiddenByUser",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.q("design:type",Object)],wD.prototype,"hidden",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.q("design:type",Boolean)],wD.prototype,"collapsed",void 0);_.L([_.T({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.q("design:type",Boolean)],wD.prototype,"hideChatFrame",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wD.prototype,"showAboveScrim",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wD.prototype,"watchNextGrid",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],wD.prototype,"modernButtons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wD.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wD.prototype,"noBorder",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],wD.prototype,"roundBackground",void 0);
_.L([_.T({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.q("design:type",Object)],wD.prototype,"toggleButtonOverride",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],wD.prototype,"overflowHideChat",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wD.prototype,"forceDarkTheme",void 0);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],wD.prototype,"enableShowWithoutHideChatButton",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wD.prototype,"theaterWatchWhile",void 0);_.L([_.aB("#chatframe"),_.q("design:type",HTMLIFrameElement)],wD.prototype,"chatframe",void 0);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wD.prototype,"onShowHideChat",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wD.prototype,"dataChanged",null);
_.L([_.AA("url"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wD.prototype,"urlChanged",null);_.L([_.AA("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wD.prototype,"collapsedChanged",null);_.L([_.U({is:"ytd-live-chat-frame",disableElementRegistration:!0})],wD);
_.Y(wD,"ytd-live-chat-frame",function(){if(gLh!==void 0)return gLh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gLh=l},{mode:1});var ihi;var AX=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_modern_buttons");l.buttonOverrides={style:"call-to-action",type:"filled"};return l};
_.m(AX,_.B);AX.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=_.t$(this.data.backgroundColor)))};
AX.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var l=this.getFormattedStringLoggingDirectives(this.data.headline);l&&this.rendererBehavior.logExplicitClick(l)}};
AX.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var l=this.getFormattedStringLoggingDirectives(this.data.description);l&&this.rendererBehavior.logExplicitClick(l)}};
AX.prototype.getFormattedStringLoggingDirectives=function(l){return l&&l.runs&&l.runs.length>0&&l.runs[0]&&l.runs[0].loggingDirectives?l.runs[0].loggingDirectives:null};
AX.prototype.dataChanged=AX.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AX.prototype,"rendererBehavior",void 0);_.L([_.K(JSf.YtMacroReplacementBehavior),_.q("design:type",Object)],AX.prototype,"macroReplacementBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AX.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],AX.prototype,"navigationEndpoint",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],AX.prototype,"enableColors",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],AX.prototype,"modern",void 0);_.L([_.T(),_.q("design:type",Object)],AX.prototype,"buttonOverrides",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AX.prototype,"dataChanged",null);_.L([_.U({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],AX);
_.Y(AX,"ytd-action-basic-immersive-content-renderer",function(){if(ihi!==void 0)return ihi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ihi=l},{mode:1});var wPO;var ASz;var nB=function(){return _.B.apply(this,arguments)||this};
_.m(nB,_.B);nB.prototype.dataChanged=function(){var l;((l=this.data)==null?void 0:l.backgroundColor)!==void 0&&_.dP(this.hostElement,{"--bgu-color":_.t$(this.data.backgroundColor)})};
nB.prototype.onImageTileClick=function(){var l;((l=this.data)==null?0:l.navigationEndpoint)&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var e;((e=this.data)==null?0:e.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Ji.Object.defineProperties(nB.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.data)==null?void 0:l.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 l;return((l=this.data)==null?void 0:l.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var l,e,O;if(((l=this.data)==null?void 0:(e=l.detailsLine)==null?void 0:e.texts)!=null&&((O=this.data)==null?void 0:O.detailsLine.texts.length)>0){var E;return(E=this.data)==null?void 0:E.detailsLine.texts.map(function(J){return J.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var l,e,O;if(((l=this.data)==null?void 0:(e=l.optionalDetailsLine)==null?void 0:e.texts)!=null&&((O=this.data)==null?void 0:O.optionalDetailsLine.texts.length)>0){var E;return(E=this.data)==null?void 0:E.optionalDetailsLine.texts.map(function(J){return J.text}).join("")}return null}}});
nB.prototype.dataChanged=nB.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nB.prototype,"rendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],nB.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nB.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.backgroundColor"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],nB.prototype,"hasBackgroundColor",null);
_.L([_.R("data.objectFit"),_.q("design:type",Object),_.q("design:paramtypes",[])],nB.prototype,"getObjectFit",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.tileRenderingStyle"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],nB.prototype,"hasTileMetadata",null);_.L([_.R("data.detailsLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],nB.prototype,"getSecondaryDetails",null);
_.L([_.R("data.optionalDetailsLine"),_.q("design:type",Object),_.q("design:paramtypes",[])],nB.prototype,"getOptionalDetails",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nB.prototype,"dataChanged",null);_.L([_.U({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],nB);
_.Y(nB,"ytd-image-tile-renderer",function(){if(ASz!==void 0)return ASz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ASz=l},{mode:1});var nLu;var au=function(){return _.B.apply(this,arguments)||this};
_.m(au,_.B);au.prototype.getOpenLinkIcon=function(){return _.a("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
au.prototype.onSitelinkTap=function(){_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.a("kevlar_command_handler_migration_killswitch"))_.wQ(this.hostElement,this.data.clickCommands,this.hostElement);else for(var l=_.b(this.data.clickCommands),e=l.next();!e.done;e=l.next())this.ytComponentBehavior.resolveCommand(e.value)};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],au.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],au.prototype,"rendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],au.prototype,"data",void 0);_.L([_.U({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],au);
_.Y(au,"ytd-sitelink-renderer",function(){if(nLu!==void 0)return nLu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return nLu=l},{mode:1});var kB=function(){var l=_.B.apply(this,arguments)||this;l.paddingFix=_.a("enable_ads_web_ep_buenos_aires_and_padding_fix");return l};
_.m(kB,_.B);kB.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"}}}};
kB.prototype.dataChanged=function(){var l=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;l.ytMacroReplacementBehavior.sendServiceRequestAction([e])})};
kB.prototype.shouldHideFooter=function(l){return!(l&&_.a("use_ads_engagement_panel_desktop_footer_cta"))};
_.Ji.Object.defineProperties(kB.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(O){var E;return(E=_.I(O,eZP))==null?void 0:E.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(O){var E;return((E=_.I(O,eZP))==null?void 0:E.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
kB.prototype.dataChanged=kB.prototype.dataChanged;_.L([_.K(JSf.YtMacroReplacementBehavior),_.q("design:type",Object)],kB.prototype,"ytMacroReplacementBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kB.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kB.prototype,"paddingFix",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kB.prototype,"removeBorderFromImageTiles",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kB.prototype,"useFooteredMetadataRenderingStyle",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kB.prototype,"dataChanged",null);_.L([_.U({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],kB);
_.Y(kB,"ytd-action-engagement-panel-content-renderer",function(){if(wPO!==void 0)return wPO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wPO=l},{mode:1});var a4C;var kbP=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;l=_.e4("ad-grid-card-image-full-metadata-view-model");_.O6(l,function(){return e().interaction},O);
_.VR(l,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});return _.W("ad-grid-card-image-full-metadata-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:l,"aria-label":function(){var E,J;return(E=e().interaction)==null?void 0:(J=E.accessibility)==null?void 0:J.label}},_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.W(_.gq,{data:E.data,
customCommandResolver:O})}})),_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.W(_.A,{cond:function(){return e().headline},
then:function(E){return _.W(_.zK,{text:E,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.W(_.A,{cond:function(){return e().detailsLine},
then:function(E){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.W(_.Tn,{data:E},{adDetailsLineViewModel:function(J){return _.W(_.uo,{data:J.data,customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.W(_.A,{cond:function(){return e().secondaryDetailsLine},
then:function(E){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.W(_.Tn,{data:E},{adDetailsLineViewModel:function(J){return _.W(_.uo,{data:J.data,customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Qi");var I4H=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;l=_.e4("ad-grid-card-image-view-model");_.O6(l,function(){return e().interaction},O);
_.VR(l,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});return _.W("ad-grid-card-image-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:l,"aria-label":function(){var E,J;return(E=e().interaction)==null?void 0:(J=E.accessibility)==null?void 0:J.label}},_.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.W(_.gq,{data:E.data,
customCommandResolver:O})}}),_.W("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.W(_.Tn,{data:function(){return e().adCardBadge}},{adCardBadgeViewModel:_.GIq})))},"Ri");var m2o=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;l=_.e4("ad-grid-card-text-view-model");_.O6(l,function(){return e().interaction},O);
_.VR(l,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});return _.W("ad-grid-card-text-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:l,"aria-label":function(){var E,J;return(E=e().interaction)==null?void 0:(J=E.accessibility)==null?void 0:J.label}},_.W("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.W(_.A,{cond:function(){return e().title},
then:function(E){return _.W(_.zK,{text:E,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.W("div",{class:function(){return _.a("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.W(_.KH,{each:function(){var E;
return((E=e())==null?void 0:E.descriptions)||[]},
keyBy:"INDEX"},function(E){return _.W(_.zK,{text:E,className:function(){return _.a("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.W("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.W(_.Tn,{data:function(){return e().moreInfoButton}},{adButtonViewModel:function(E){return _.W(_.Oz,{data:E.data,
customCommandResolver:O})}})))},"Si");var ySF=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;var E=l.adGridCardCollectionStyle;l=_.e4("ad-grid-card-collection-view-model");_.VR(l,{visibilityCallback:function(J){var z,M=(z=e().interaction)==null?void 0:z.onFirstVisible;J&&M&&_.r6(M)},
showOption:_.lo});return _.W("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:l,style:function(){return"grid-template-columns: repeat("+$_4(E?E():e().style)+", minmax(0, 1fr));"}},_.W(_.Tn,{data:function(){var J;
return(J=e())==null?void 0:J.gridCards}},{adGridCardImageViewModel:function(J){return _.W(I4H,{data:J.data,
customCommandResolver:O})},
adGridCardImageFullMetadataViewModel:function(J){return _.W(kbP,{data:J.data,customCommandResolver:O})},
adGridCardTextViewModel:function(J){return _.W(m2o,{data:J.data,customCommandResolver:O})}}))},"Ti");_.Zw(_.XO(function(l){var e=l.data;l=_.e4("panel-text-icon-image-tiles-button-layout-content-view-model");_.O6(l,function(){return e().interaction},W_i);
_.VR(l,{visibilityCallback:function(O){var E,J=(E=e().interaction)==null?void 0:E.onFirstVisible;O&&J&&_.r6(J)},
showOption:_.lo});return _.W("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:l},_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.W(_.A,{cond:_.GOg("(min-width: "+((0,_.cr)()+_.Tw)+"px)"),then:function(){return _.W(_.Tn,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(O){return _.W(ySF,{data:O.data,
customCommandResolver:W_i})}})},
else:function(){return _.W(_.Tn,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(O){return _.W(ySF,{data:O.data,
customCommandResolver:W_i,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.W(_.Tn,{data:function(){return e().adButton}},{adButtonViewModel:function(O){return _.W(_.Oz,{data:O.data,
customCommandResolver:W_i})}})))},"Ui"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;l=_.e4("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.O6(l,function(){return e().interaction},d_4);
_.VR(l,{visibilityCallback:function(O){var E,J=(E=e().interaction)==null?void 0:E.onFirstVisible;O&&J&&_.r6(J)},
showOption:_.lo});return _.W("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:l},_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.W(_.Tn,{data:function(){if(_.GOg("(min-width: "+((0,_.cr)()+_.Tw)+"px)")())var O=e().adGridCardCollection;else{O=Object.assign({},_.I(e().adGridCardCollection,Osu));var E;O.gridCards!==void 0&&((E=O.gridCards)==null?void 0:E.length)>1?O.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":O.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";O={adGridCardCollectionViewModel:O}}return O}},{adGridCardCollectionViewModel:function(O){return _.W(ySF,{data:O.data,
customCommandResolver:d_4})}})),_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.W(_.Tn,{data:function(){return e().adButton}},{adButtonViewModel:function(O){return _.W(_.Oz,{data:O.data,
customCommandResolver:d_4})}})))},"Vi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.lB}});var Iu=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return l};
_.m(Iu,_.B);_.X=Iu.prototype;_.X.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"}}}};
_.X.attached=function(){this.getDataFromPlayerAndRender()};
_.X.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.X.getDataFromPlayerAndRender=function(){var l=this,e=_.bV(this.hostElement);e&&e.getPlayerPromise().then(function(O){l.getCachedDataAndListen(O)})};
_.X.getCachedDataAndListen=function(l){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(l,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(l,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=l)};
_.X.resolveCachedActions=function(){var l=_.vK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(l=l&&l())&&!_.mm.isEmpty(l)&&this.sendUpdateEngagementPanelAction(l);(l=(l=_.vK("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&l())&&!_.mm.isEmpty(l)&&this.sendChangeEngagementPanelVisibilityAction(l);(l=(l=_.vK("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&l())&&!_.mm.isEmpty(l)&&this.sendScrollToEngagementPanelCommand(l)};
_.X.sendUpdateEngagementPanelAction=function(l){var e;_.Wb(this.hostElement,"yt-update-engagement-panel-action",[(e=_.mm.get(l,"action"))!=null?e:l])};
_.X.sendChangeEngagementPanelVisibilityAction=function(l){_.Wb(this.hostElement,"yt-change-engagement-panel-visibility-action",[l])};
_.X.sendScrollToEngagementPanelCommand=function(l){_.Wb(this.hostElement,"yt-scroll-to-engagement-panel-command",[l])};
_.X.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.a("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.hG(Error("hm"))};
Iu.prototype.dataChanged=Iu.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Iu.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Iu.prototype,"componentBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],Iu.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Iu.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Iu.prototype,"player",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iu.prototype,"dataChanged",null);_.L([_.U({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Iu);
_.Y(Iu,"ytd-ads-engagement-panel-content-renderer",function(){if(a4C!==void 0)return a4C;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return a4C=l},{mode:1});var pPC;var mQ=function(){var l=_.B.apply(this,arguments)||this;l.player=null;l.JSC$20033_playerEvents=new Map;l.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return l};
_.m(mQ,_.B);_.X=mQ.prototype;_.X.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]]"}}}}}};
_.X.created=function(){this.player=null;this.JSC$20033_playerEvents=new Map;this.JSC$20033_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20033_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20033_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20033_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.X.attached=function(){var l=this,e=_.bV();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));e&&e.getPlayerPromise().then(function(O){l.setPlayer(O);l.set("isPageLoad",!1)})};
_.X.setPlayer=function(l){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20033_playerEvents);this.set("player",l);l&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$20033_playerEvents),l.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.X.onLoopRangeChange=function(l){var e=_.V2().resolve(_.MG(_.XZ));if((!e||e.isOnWatch())&&this.hostElement.clientHeight){var O;!l&&((O=this.data)==null?0:O.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.X.onVideoProgress=function(l){var e,O,E=((e=this.player)==null?void 0:(O=e.getPresentingPlayerType)==null?void 0:O.call(e))===2;this.isAdPlaying!==E&&this.set("isAdPlaying",E);var J;if(!E&&(J=this.player)!=null&&J.getLoopRange()){O=this.player.getLoopRange();e=O.startTimeMs;O=O.endTimeMs;E=this.player.getProgressState(1).seekableStart;var z;e<E*1E3&&((z=this.data)==null?0:z.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
l=O<l*1E3;var M;((M=this.player)==null?0:M.getLoopRange())&&l&&this.player.seekTo(e/1E3)}};
_.X.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.X.onYtDeleteClipEngagementPanelCommand=function(l){_.I(l,giP).command&&this.ytComponentBehavior.resolveCommand(_.I(l,giP).command)};
_.Ji.Object.defineProperties(mQ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.voteCount)||_.xp("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],mQ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],mQ.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mQ.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],mQ.prototype,"isAdPlaying",void 0);_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],mQ.prototype,"isPageLoad",void 0);_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],mQ.prototype,"isDarkTheme",void 0);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],mQ.prototype,"voteCount",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],mQ.prototype,"channelEndpoint",null);_.L([_.R("channelEndpoint"),_.q("design:type",Object),_.q("design:paramtypes",[])],mQ.prototype,"channelHref",null);_.L([_.U({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],mQ);
_.Y(mQ,"ytd-clip-attribution-renderer",function(){if(pPC!==void 0)return pPC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return pPC=l},{mode:1});var K9f;var yB=function(){var l=_.B.apply(this,arguments)||this;l.player=null;l.JSC$20038_playerEvents=new Map;return l};
_.m(yB,_.B);_.X=yB.prototype;_.X.created=function(){this.player=null;this.JSC$20038_playerEvents=new Map;this.JSC$20038_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20038_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20038_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.X.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.X.attached=function(){var l=this,e=_.bV();e&&e.getPlayerPromise().then(function(O){l.setPlayer(O);l.set("isPageLoad",!1)})};
_.X.setPlayer=function(l){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20038_playerEvents);this.set("player",l);if(l){this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$20038_playerEvents);var e;(l==null?void 0:(e=l.getPresentingPlayerType)==null?void 0:e.call(l))===2&&this.playerAdStartHandler()}};
_.X.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.X.onVideoProgress=function(){var l,e,O=((l=this.player)==null?void 0:(e=l.getPresentingPlayerType)==null?void 0:e.call(l))===2;this.isAdPlaying!==O&&this.set("isAdPlaying",O)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],yB.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yB.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],yB.prototype,"isAdPlaying",void 0);
_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],yB.prototype,"isPageLoad",void 0);_.L([_.U({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],yB);
_.Y(yB,"ytd-clip-section-footer-renderer",function(){if(K9f!==void 0)return K9f;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return K9f=l},{mode:1});var jr4;var Hhu;var pB=function(){return _.B.apply(this,arguments)||this};
_.m(pB,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pB.prototype,"data",void 0);_.L([_.U({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],pB);
_.Y(pB,"ytd-clip-ad-state-renderer",function(){if(Hhu!==void 0)return Hhu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Hhu=l},{mode:1});var cS4;var KB=function(){var l=_.B.apply(this,arguments)||this;l.value="";l.valid=!1;l.userChangedValue=!1;l.disabled=!1;l.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return l};
_.m(KB,_.B);_.X=KB.prototype;_.X.detached=function(){this.userChangedValue=!1};
_.X.handleKeyDown=function(l){if(_.iv)var e=13;else _.yNM&&_.ws?e=13:e=13;l.keyCode===e&&l.preventDefault()};
_.X.handleInput=function(){var l=_.ud(this.hostElement).querySelector("#title");if(l){var e=(l.value||"").replace(/\r|\n/g," ");this.set("value",e);l.value=e;this.valid=l.validate();this.userChangedValue=!0}};
_.X.handleBlur=function(){this.valid=_.ud(this.hostElement).querySelector("#title").validate()};
_.X.onValueChanged=function(){_.$u(this.hostElement,"title-changed",{title:this.value})};
_.X.onValidChanged=function(){_.$u(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.X.setInput=function(l,e){var O=_.ud(this.hostElement).querySelector("#title");O&&(O.value=l,this.handleInput(),e&&(O.invalid=!1,this.valid=!0))};
_.X.onClipCreationDisable=function(){this.set("disabled",!0)};
_.X.onClipCreationEnable=function(){this.set("disabled",!1)};
_.X.onClipCreationVisibilityChange=function(l){var e=this;l.visible?requestAnimationFrame(function(){var O;((O=_.ud(e.hostElement).querySelector("#title"))==null?void 0:O.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
KB.prototype.onValidChanged=KB.prototype.onValidChanged;KB.prototype.onValueChanged=KB.prototype.onValueChanged;KB.prototype.handleBlur=KB.prototype.handleBlur;KB.prototype.handleInput=KB.prototype.handleInput;KB.prototype.handleKeyDown=KB.prototype.handleKeyDown;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],KB.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],KB.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],KB.prototype,"value",void 0);_.L([_.T(),_.q("design:type",Object)],KB.prototype,"valid",void 0);_.L([_.T(),_.q("design:type",Object)],KB.prototype,"userChangedValue",void 0);_.L([_.T(),_.q("design:type",Object)],KB.prototype,"disabled",void 0);_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],KB.prototype,"handleKeyDown",null);
_.L([_.wP("input"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KB.prototype,"handleInput",null);_.L([_.wP("blur"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KB.prototype,"handleBlur",null);_.L([_.AA("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KB.prototype,"onValueChanged",null);
_.L([_.AA("valid"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],KB.prototype,"onValidChanged",null);_.L([_.U({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],KB);
_.Y(KB,"ytd-clip-creation-text-input-renderer",function(){if(cS4!==void 0)return cS4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return cS4=l},{mode:1});var F93;var f44;var RQ3;var TJ0;var sr4;var j6=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};l.pendingStoryboardImages_={};l.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];l.tickLabelInterval=30;l.mediumTickInterval=5;l.largeTickInterval=15;l.aboveRulerHeight=32;l.rulerHeight=50;l.smallTickHeight=4;l.mediumTickHeight=8;l.largeTickHeight=16;l.mediaListeners_=
{};return l};
_.m(j6,_.B);_.X=j6.prototype;_.X.attached=function(){var l=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(e){e=_.b(["screen and (min-resolution: "+e+")","screen and (max-resolution: "+e+")"]);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=window.matchMedia(O);E&&(l.mediaListeners_[O]=l.updatePixelRatio_.bind(l),E.addEventListener?E.addEventListener("change",l.mediaListeners_[O]):E.addListener?E.addListener(l.mediaListeners_[O]):delete l.mediaListeners_[O])}})};
_.X.detached=function(){this.setPlayer(null);for(var l=_.b(Object.keys(this.mediaListeners_)),e=l.next();!e.done;e=l.next()){var O=e.value;e=this.mediaListeners_[O];(O=window.matchMedia(O))&&(O.removeEventListener?O.removeEventListener("change",e):O.removeListener&&O.removeListener(e))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.X.onVisibilityChangedAction_=function(l){var e=this;l.visible&&!this.player_&&(l=_.bV())&&l.getPlayerPromise().then(function(O){e.setPlayer(O)})};
_.X.setPlayer=function(l){l&&this.set("player_",l)};
_.X.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.X.setUpCanvas_=function(){var l=this.rulerWidth,e=this.devicePixelRatio_,O=this.visible;this.set("canvasReady_",!1);if(O&&e!==0){O=this.aboveRulerHeight+this.rulerHeight;var E=_.ud(this.hostElement).querySelector("#ticks");E.width=l*e;E.height=O*e;E.style.width=l+"px";E.style.height=O+"px";E.getContext("2d").scale(e,e);this.set("canvasReady_",!0)}};
_.X.drawRuler_=function(l,e,O,E,J,z,M,Z,u,d,g,w){l&&O&&e&&(l=_.ud(this.hostElement).querySelector("#ticks"),e=l.getContext("2d"),e.clearRect(0,0,l.width,l.height),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.lineWidth=2,e.beginPath(),e.moveTo(0,this.aboveRulerHeight),e.lineTo(l.width,this.aboveRulerHeight),e.moveTo(0,l.height),e.lineTo(l.width,l.height),e.stroke(),this.drawRulerTicks_(l,z,J,E),this.drawStoryboardImages_(l,O,z,J,E),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
e.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(M-z,E,!1),this.rulerHeight),O=this.timeToPixels_(Z-z,E,!1),e.fillRect(O,this.aboveRulerHeight,l.width-O,this.rulerHeight),this.drawSpeedLines_(l,z,w))};
_.X.drawRulerTicks_=function(l,e,O,E){var J=l.getContext("2d");J.save();J.lineWidth=1;for(var z=Math.floor(Math.max(0,e-this.tickLabelInterval));z<e+O;z++){J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var M=(z-e)*E;J.beginPath();J.moveTo(M,l.height);var Z=this.smallTickHeight;z%this.largeTickInterval===0?Z=this.largeTickHeight:z%this.mediumTickInterval===0&&(Z=this.mediumTickHeight);J.lineTo(M,l.height-Z);J.stroke();z%this.tickLabelInterval===0&&(J.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),J.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),J.fillText(pX(z),M+4,12),J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),J.moveTo(M,0),J.lineTo(M,this.aboveRulerHeight),J.stroke())}J.restore()};
_.X.percentToHex_=function(l){l=Math.round(l*255).toString(16);l.length<2&&(l="0"+l);return l};
_.X.drawSpeedLines_=function(l,e,O){var E=l.getContext("2d");E.save();var J=Math.min(25,Math.abs(O)-15)/25,z=l.width*.3*J,M=l.width*-.3,Z=l.width*1.3,u=this.aboveRulerHeight;l=l.height;var d=Math.round(4*J),g=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");g.length<7&&(g="#"+g.substring(1,4).repeat(2));var w=this.percentToHex_(.5+J/2);w=g+w;g+="00";if(J>0)for(J=0;J<d;J++){var n=M+Math.random()*(Z-M),k=u+Math.random()*(l-u),y=z+e%z,c=E.createLinearGradient(n,k,n+y,k);
O<0?(c.addColorStop(0,w),c.addColorStop(.4,w),c.addColorStop(.9,g)):(c.addColorStop(.1,g),c.addColorStop(.6,w),c.addColorStop(1,w));E.strokeStyle=c;E.lineWidth=1;E.beginPath();E.moveTo(n,k);E.lineTo(n+y,k);E.stroke()}E.restore()};
_.X.getStoryboardForTime_=function(l,e,O){O===void 0&&(O=e.getNumberOfStoryboardLevels()-1);l=e.getStoryboardFrameIndex(l,O);return e.getStoryboardFrame(l,O)};
_.X.drawStoryboardImages_=function(l,e,O,E,J){if(!this.disabled){l=l.getContext("2d");var z=this.getStoryboardForTime_(0,e);if(z){var M=z.width/z.columns;z=z.height/z.rows;var Z=M/z,u=this.rulerHeight*Z;u=this.tickLabelInterval*(Z<this.tickLabelInterval*J/this.rulerHeight?1/Math.floor(this.tickLabelInterval*J/u):Math.round(u/(this.tickLabelInterval*J)));var d=u*J,g=this.rulerHeight,w=d/this.rulerHeight,n=Math.floor(Math.max(0,O-u));for(n-=n%u;n<O+E;n+=u){var k=this.getStoryboardForTime_(n,e),y=this.getPreloadedStoryboard_(k.url);
if(y){var c=(n-O)*J,f=this.aboveRulerHeight,P=k.column*M,h=k.row*z;if(Z<w){var N=g/(d/Z);k=M;N*=z;h+=(z-N)/2}else k=d/(g*Z)*M,N=z,P+=(M-k)/2;l.drawImage(y,P,h,k,N,c,f,d,g)}else this.fetchStoryboardImage_(k)}}}};
_.X.getPreloadedStoryboard_=function(l){return this.storyboardImages_.find(function(e){if(e.src==l)return!0;var O=e.src.indexOf(l);return O!=-1&&O==e.src.length-l.length})};
_.X.fetchStoryboardImage_=function(l){var e=this,O=this.getPreloadedStoryboard_(l.url),E=this.pendingStoryboardImages_[l.url];O||E!==void 0||(O=new Promise(function(J){var z=new Image(l.width,l.height);z.src=l.url;z.onload=function(){J(z)};
z.onerror=function(){J(null)}}),this.pendingStoryboardImages_[l.url]=O,O.then(function(J){J&&e.push("storyboardImages_",J);
return J}).finally(function(){delete e.pendingStoryboardImages_[l.url]}))};
_.X.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.X.timeToPixels_=function(l,e,O){l*=e;return O===void 0||O?l+"px":l};
_.X.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
j6.prototype.drawRuler_=j6.prototype.drawRuler_;j6.prototype.setUpCanvas_=j6.prototype.setUpCanvas_;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],j6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],j6.prototype,"start",void 0);_.L([_.T({value:30}),_.q("design:type",Number)],j6.prototype,"end",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],j6.prototype,"visible",void 0);_.L([_.T(),_.q("design:type",Object)],j6.prototype,"player_",void 0);_.L([_.T(),_.q("design:type",Number)],j6.prototype,"tickSpacing",void 0);_.L([_.T(),_.q("design:type",Number)],j6.prototype,"windowSizeSec",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],j6.prototype,"rulerWidth",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],j6.prototype,"rulerShift",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],j6.prototype,"canvasReady_",void 0);_.L([_.T({value:function(){return[]}}),
_.q("design:type",Array)],j6.prototype,"storyboardImages_",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],j6.prototype,"disabled",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],j6.prototype,"forceRender_",void 0);_.L([_.T({value:1}),_.q("design:type",Number)],j6.prototype,"devicePixelRatio_",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],j6.prototype,"windowSpeed",void 0);
_.L([_.AA("visible","devicePixelRatio_","rulerWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],j6.prototype,"setUpCanvas_",null);
_.L([_.AA("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.q("design:returntype")],j6.prototype,"drawRuler_",null);_.L([_.Ps({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],j6);
_.Y(j6,"yt-clip-creation-scrubber-canvas",function(){if(sr4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);sr4=l}l=sr4;return l},
{mode:2});var Gbu;var BJP;var HZ=function(){var l=_.B.apply(this,arguments)||this;l.start=0;l.end=30;l.visible=!1;l.draggingLeft_=!1;l.draggingRight_=!1;l.draggingRuler_=!1;l.draggingWindow_=!1;l.seekableStart=0;l.seekableEnd=0;l.rulerWidth_=0;l.rulerShift_=0;l.windowSlideSpeed=0;l.disabled=!1;l.initialized=!1;l.durationAccessibilityLabel="";l.activeLoopRange_=!1;l.rulerDragMouseStart_=0;l.rulerDragRulerStart_=0;l.rulerDragStartTime_=0;l.rulerDragEndTime_=0;l.dragMouseLastX_=0;l.scrollInterval_=null;l.scrubberVe_=null;l.boundHandlers_=
{};l.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return l};
_.m(HZ,_.B);_.X=HZ.prototype;
_.X.created=function(){var l=this;this.JSC$20051_playerEvents=new Map;this.JSC$20051_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20051_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20051_playerEvents.set("onStateChange",this.onStateChange_);var e={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(e).forEach(function(O){l.boundHandlers_[O]=e[O].bind(l)})};
_.X.attached=function(){this.activeLoopRange_=!1;_.ud(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ud(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.sL(156731)};
_.X.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ud(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ud(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.X.onVisibilityChangedAction_=function(l){var e=this;l.visible&&!this.player_&&(l=_.bV())&&l.getPlayerPromise().then(function(O){e.setPlayer(O)})};
_.X.setPlayer=function(l){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20051_playerEvents);l&&(this.set("player_",l),this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$20051_playerEvents))};
_.X.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.X.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.X.beginHandleDrag_=function(l){this.disabled||(l.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=l.clientX,l.target===_.ud(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():l.target===_.ud(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.X.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.X.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.X.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.X.beginRulerDrag_=function(l){this.disabled||(l.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=l.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.X.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.X.beginWindowScroll_=function(){var l=this;this.scrollInterval_=setInterval(function(){var e=l.windowSlideSpeed;if(e=_.yVP(l.start,l.boundedRulerStartLimit_())?e-.1:_.yVP(l.end,l.boundedRulerEndLimit_())?e+.1:0){var O=l.capRulerOffset_(l.rulerShift_+e);O==l.rulerShift_?e=0:(l.set("rulerShift_",O),_.$u(l.hostElement,"set-fixed-length-range",{start:l.start+e,duration:l.end-l.start}))}l.set("windowSlideSpeed",e)},33)};
_.X.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.X.endDrag_=function(){this.logClick();var l=void 0;this.draggingRight_?l=this.end-1:this.draggingLeft_&&(l=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,l);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))};
_.X.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.X.updateRulerSize_=function(){this.set("rulerWidth_",_.ud(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.X.handleMouseDrag_=function(l){l.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(l):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(l):this.draggingWindow_&&this.handleWindowDrag_(l))};
_.X.handleRulerDrag_=function(l){l=this.pixelsToTime_(l.clientX-this.rulerDragMouseStart_);l=this.capRulerOffset_(this.rulerDragRulerStart_-l);this.set("rulerShift_",l);var e=this.rulerDragStartTime_-(this.rulerDragRulerStart_-l);_.$u(this.hostElement,"set-fixed-length-range",{start:e,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-l)-e})};
_.X.handleWindowDrag_=function(l){var e=l.clientX-this.dragMouseLastX_;this.dragMouseLastX_=l.clientX;l=this.pixelsToTime_(e);_.$u(this.hostElement,"set-fixed-length-range",{start:this.start+l,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.X.capRulerOffset_=function(l){var e=this.seekableStart-this.pixelsToTime_(16),O=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(e,l),O)};
_.X.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.X.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.X.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.X.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.X.handleWindowHandleDrag_=function(l){var e=l.clientX-this.dragMouseLastX_;this.dragMouseLastX_=l.clientX;l=this.pixelsToTime_(e);if(this.draggingLeft_){var O=this.start+l;var E=this.end}else this.draggingRight_&&(O=this.start,E=this.end+l);_.$u(this.hostElement,"set-range",{start:O,end:E,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.X.onVideoProgress_=function(l){this.disabled||(l=this.timeToPixels_(l-this.rulerShift_,this.tickSpacing_),_.ud(this.hostElement).querySelector("#playhead").style.transform="translateX("+l+")")};
_.X.onClipCreationDisable_=function(){this.endDrag_()};
_.X.timeToPixels_=function(l,e,O){l*=e;return O===void 0||O?l+"px":l};
_.X.pixelsToTime_=function(l){return l/this.tickSpacing_};
_.X.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.X.centerRuler_=function(l,e,O){this.set("rulerShift_",this.capRulerOffset_(l+(e-l)/2-O/2))};
_.X.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.X.updateLoopRange_=function(l,e,O,E,J,z,M){l&&(e&&E&&!O?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(l.pauseVideo(),l.seekTo(J,!1,void 0,void 0,50)):this.draggingRight_?(l.pauseVideo(),l.seekTo(z-.1,!1,void 0,void 0,50)):(M!==void 0?l.seekTo(M,!0,void 0,void 0,50):(e=l.getCurrentTime(),e<J||e>z?l.seekTo(J,!0,void 0,void 0,50):l.seekTo(e,!0,void 0,void 0,50)),l.playVideo()),l.setLoopRange({startTimeMs:J*1E3,endTimeMs:z*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(l.getCurrentTime())):
this.activeLoopRange_&&(l.setLoopRange(null),this.activeLoopRange_=!1))};
_.X.updateHandles_=function(){_.ud(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ud(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.X.updateRuler_=function(){var l=this.end,e=this.start,O=this.draggableStartLimit_(),E=this.draggableEndLimit_();(e<O-.001||l>E+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.X.computeDurationLabel_=function(l,e){return l?l.replace("$clip_length",parseFloat(e).toFixed(1)):""};
_.X.computeDuration_=function(l,e){return this.isValidTime_(l)&&this.isValidTime_(e)&&l<e?e-l:0};
_.X.isValidTime_=function(l){return isNaN(parseFloat(l))||l<0?!1:this.player_?l>=this.seekableStart&&l<=this.seekableEnd:!0};
_.X.computeWindowSizeSec_=function(l,e,O){return Math.min((l||12E4)/1E3,O-e)};
_.X.computeTickSpacing_=function(l,e){return e?e/l:1};
_.X.onDragStateChanged_=function(){_.$u(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.X.centerRangeOnTime_=function(l){var e=this.duration;l=iaf(l-e/2,e,this.seekableStart,this.seekableEnd);_.$u(this.hostElement,"set-fixed-length-range",{start:l.start,duration:l.end-l.start})};
_.X.nearlyLessThan_=function(l,e,O){return l+(O===void 0?1E-6:O)<e};
_.X.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var l=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(l,this.start)||this.nearlyLessThan_(this.end,l))&&this.centerRangeOnTime_(l)}};
_.X.onStateChange_=function(l){this.visible&&!this.disabled&&l==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.X.computeDragState_=function(l,e,O,E){return l?"left":e?"right":O?"ruler":E?"window":"none"};
_.X.logClick=function(){var l=_.P9(),e=_.B9();l&&e&&this.scrubberVe_&&(_.a("combine_ve_grafts")?_.$w(_.yN(),this.scrubberVe_,e):_.DG(l,e,this.scrubberVe_),_.On(l,this.scrubberVe_))};
HZ.prototype.onDragStateChanged_=HZ.prototype.onDragStateChanged_;HZ.prototype.updateRuler_=HZ.prototype.updateRuler_;HZ.prototype.updateHandles_=HZ.prototype.updateHandles_;HZ.prototype.onUpdateLoopRange=HZ.prototype.onUpdateLoopRange;HZ.prototype.onInitializedChanged_=HZ.prototype.onInitializedChanged_;HZ.prototype.onVisibleChanged_=HZ.prototype.onVisibleChanged_;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],HZ.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",Object)],HZ.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"start",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"end",void 0);_.L([_.T({computed:"computeDuration_(start, end)"}),_.q("design:type",Number)],HZ.prototype,"duration",void 0);
_.L([_.T(),_.q("design:type",String)],HZ.prototype,"lengthTemplate",void 0);_.L([_.T({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.q("design:type",String)],HZ.prototype,"durationLabel",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"visible",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"player_",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"draggingLeft_",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"draggingRight_",void 0);
_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"draggingRuler_",void 0);_.L([_.T({value:!1}),_.q("design:type",Object)],HZ.prototype,"draggingWindow_",void 0);_.L([_.T({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.q("design:type",Number)],HZ.prototype,"tickSpacing_",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"seekableStart",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"seekableEnd",void 0);
_.L([_.T(),_.q("design:type",Number)],HZ.prototype,"windowSizeMs",void 0);_.L([_.T({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.q("design:type",Number)],HZ.prototype,"windowSizeSec_",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"rulerWidth_",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"rulerShift_",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"windowSlideSpeed",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HZ.prototype,"disabled",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"initialized",void 0);_.L([_.T(),_.q("design:type",Object)],HZ.prototype,"durationAccessibilityLabel",void 0);_.L([_.T({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.q("design:type",String)],HZ.prototype,"dragState",void 0);
_.L([_.AA("visible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HZ.prototype,"onVisibleChanged_",null);_.L([_.AA("initialized"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HZ.prototype,"onInitializedChanged_",null);_.L([_.AA("player_","visible","disabled","initialized","start","end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HZ.prototype,"onUpdateLoopRange",null);
_.L([_.AA("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HZ.prototype,"updateHandles_",null);_.L([_.AA("start","end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HZ.prototype,"updateRuler_",null);
_.L([_.AA("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HZ.prototype,"onDragStateChanged_",null);_.L([_.Ps({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],HZ);
_.Y(HZ,"yt-clip-creation-scrubber-view",function(){if(BJP===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Gbu===void 0&&(Gbu=document.createElement("template"));var E=Gbu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);BJP=l}l=BJP;return l},{mode:2});var cZ=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};l.startHighlightTimeout=0;l.endHighlightTimeout=0;return l};
_.m(cZ,_.B);_.X=cZ.prototype;_.X.attached=function(){var l=this;this.startInput.addEventListener("input",function(e){return l.handleStartInput_(e)});
this.endInput.addEventListener("input",function(e){return l.handleEndInput_(e)});
this.startInput.addEventListener("focusout",function(e){return l.handleStartBlur_(e)});
this.endInput.addEventListener("focusout",function(e){return l.handleEndBlur_(e)})};
_.X.setPlayer=function(l){this.set("player_",l)};
_.X.onSetFixedLengthRange_=function(l){var e=l.detail;l=e.start;var O=e.duration,E=e.startLimit;e=e.endLimit;E||(E=this.seekableStart_);e||(e=this.seekableEnd_);l=iaf(l,O,E,e);this.start=l.start;this.end=l.end};
_.X.onSetRange_=function(l){var e=l.detail;l=e.start;var O=e.end,E=e.startLimit;e=e.endLimit;E||(E=this.seekableStart_);e||(e=this.seekableEnd_);if(l=wVh(l,O,E,e,this.minLengthSec,this.maxLengthSec))this.start=l.start,this.end=l.end};
_.X.updateInputs_=function(){var l=this.end,e=this.start;this.startInput.focused||(this.startInput.value=pX(e,!0));this.endInput.focused||(this.endInput.value=pX(l,!0))};
_.X.handleStartInput_=function(l){l=gtC(l.target.value);if(l===null)this.set("startValid",!1);else{var e=this.end,O=wVh(l,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);O?(this.set("endWillUpdate",O.end!==e),this.set("startValid",O.start===l)):this.set("startValid",!1)}};
_.X.handleEndInput_=function(l){l=gtC(l.target.value);if(l===null)this.set("endValid",!1);else{var e=this.start,O=A4z(this.start,l,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);O?(this.set("startWillUpdate",O.start!==e),this.set("endValid",O.end===l)):this.set("endValid",!1)}};
_.X.handleStartBlur_=function(l){l=gtC(l.target.value);l===null?this.startInput.value=pX(this.start,!0):this.forceUpdateInputs_(wVh(l,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.X.handleEndBlur_=function(l){l=gtC(l.target.value);l===null?this.endInput.value=pX(this.end,!0):this.forceUpdateInputs_(A4z(this.start,l,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.X.forceUpdateInputs_=function(l){l&&(this.start=l.start,this.end=l.end);this.startInput.value=pX(this.start,!0);this.endInput.value=pX(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.X.initializeClipRange_=function(){var l=this.seekableEnd_,e=this.seekableStart_,O=this.visible_,E=this.player_;if(!E||!O||e===null||!l)this.set("initialized",!1);else if(!this.initialized){var J=E.getCurrentTime(),z=this.getDefaultLengthSec_();O=E.getVideoData();var M=E.getPlayerState()==1,Z=O.isLive;z=Math.min(z,l-e);J=Math.max(0,J);l=Z?A4z(J-z,J,e,l,this.minLengthSec,this.maxLengthSec):M?iaf(J-z/2,z,e,l):iaf(J,z,e,l);this.start=l.start;this.end=l.end;this.set("initialized",!0);O.isLive&&E.seekTo(l.start);
this.startInput.value=pX(this.start,!0);this.endInput.value=pX(this.end,!0)}};
_.X.onStartChanged_=function(){var l=this;_.$u(this.hostElement,"start-changed",{start:this.start});var e;isNaN((e=this.oldStart)!=null?e:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){l.set("highlightStart",!1);l.startHighlightTimeout=0;l.oldStart=l.start},3E3))};
_.X.onEndChanged_=function(){var l=this;_.$u(this.hostElement,"end-changed",{end:this.end});var e;isNaN((e=this.oldEnd)!=null?e:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){l.set("highlightEnd",!1);l.endHighlightTimeout=0;l.oldEnd=l.end},3E3))};
_.X.onVisibilityChangedAction_=function(l){var e=this;this.set("visible_",l.visible);this.visible_&&!this.player_&&(l=_.bV())&&l.getPlayerPromise().then(function(O){e.setPlayer(O)})};
_.X.computeMinLengthSec_=function(l){return l/1E3||5};
_.X.computeMaxLengthSec_=function(l){return l/1E3||60};
_.X.computeDefaultLengthSec_=function(l){return l/1E3};
_.X.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.X.computeSeekableStart_=function(l,e){return l&&e?l.getProgressState(1).seekableStart:0};
_.X.computeSeekableEnd_=function(l,e){return l&&e?l.getProgressState(1).seekableEnd:0};
_.X.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.X.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.X.onDragState_=function(l){this.set("highlightStart",l.detail.startChanging);this.set("highlightEnd",l.detail.endChanging)};
cZ.prototype.onDragState_=cZ.prototype.onDragState_;cZ.prototype.onEndChanged_=cZ.prototype.onEndChanged_;cZ.prototype.onStartChanged_=cZ.prototype.onStartChanged_;cZ.prototype.initializeClipRange_=cZ.prototype.initializeClipRange_;cZ.prototype.updateInputs_=cZ.prototype.updateInputs_;cZ.prototype.onSetRange_=cZ.prototype.onSetRange_;cZ.prototype.onSetFixedLengthRange_=cZ.prototype.onSetFixedLengthRange_;
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],cZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cZ.prototype,"data",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],cZ.prototype,"start",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],cZ.prototype,"startValid",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cZ.prototype,"startWillUpdate",void 0);_.L([_.T({value:30}),_.q("design:type",Number)],cZ.prototype,"end",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],cZ.prototype,"endValid",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cZ.prototype,"endWillUpdate",void 0);_.L([_.T({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.q("design:type",Number)],cZ.prototype,"minLengthSec",void 0);
_.L([_.T({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.q("design:type",Number)],cZ.prototype,"maxLengthSec",void 0);_.L([_.T({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.q("design:type",Number)],cZ.prototype,"defaultLengthSec",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],cZ.prototype,"visible_",void 0);_.L([_.T(),_.q("design:type",Object)],cZ.prototype,"player_",void 0);
_.L([_.T({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.q("design:type",Number)],cZ.prototype,"seekableStart_",void 0);_.L([_.T({computed:"computeSeekableEnd_(player_, visible_)"}),_.q("design:type",Number)],cZ.prototype,"seekableEnd_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],cZ.prototype,"initialized",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cZ.prototype,"disabled",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cZ.prototype,"highlightStart",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cZ.prototype,"highlightEnd",void 0);_.L([_.aB("#start"),_.q("design:type",HTMLInputElement)],cZ.prototype,"startInput",void 0);_.L([_.aB("#end"),_.q("design:type",HTMLInputElement)],cZ.prototype,"endInput",void 0);
_.L([_.wP("set-fixed-length-range"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cZ.prototype,"onSetFixedLengthRange_",null);_.L([_.wP("set-range"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cZ.prototype,"onSetRange_",null);_.L([_.AA("start","end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cZ.prototype,"updateInputs_",null);
_.L([_.AA("player_","visible_","seekableStart_","seekableEnd_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cZ.prototype,"initializeClipRange_",null);_.L([_.AA("start"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cZ.prototype,"onStartChanged_",null);_.L([_.AA("end"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cZ.prototype,"onEndChanged_",null);
_.L([_.wP("clips-drag-state"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cZ.prototype,"onDragState_",null);_.L([_.Ps({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],cZ);
_.Y(cZ,"yt-clip-creation-scrubber-renderer",function(){if(TJ0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;RQ3===void 0&&(RQ3=document.createElement("template"));var E=RQ3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);TJ0=l}l=TJ0;return l},{mode:2});var FE=function(){var l=_.B.apply(this,arguments)||this;l.player_=null;l.JSC$20065_playerEvents=new Map;l.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return l};
_.m(FE,_.B);_.X=FE.prototype;_.X.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"}}}};
_.X.created=function(){this.JSC$20065_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20065_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20065_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20065_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.X.detached=function(){this.setPlayer(null)};
_.X.onVisibilityChangedAction_=function(l){var e=this,O;if((O=this.data)==null?0:O.externalVideoId){var E;this.videoId=(E=this.data)==null?void 0:E.externalVideoId}this.getPlayer().then(function(J){if(l.visible)e.returnTime=J.getCurrentTime(),e.isAtLiveHead=J.getProgressState().isAtLiveHead;else{var z=e.returnTime;e.isAtLiveHead&&(z=Number.POSITIVE_INFINITY);J.seekTo(z,void 0,void 0,void 0,51)}})};
_.X.getPlayer=function(){var l=this;if(!this.player_){var e=_.bV();if(e)return e.getPlayerPromise().then(function(O){l.setPlayer(O);return O})}return Promise.resolve(this.player_)};
_.X.setPlayer=function(l){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20065_playerEvents);if(l){this.player_=l;var e;((e=this.data)==null?0:e.externalVideoId)||this.set("videoId",l.getVideoData().video_id||"");var O;(l==null?void 0:(O=l.getPresentingPlayerType)==null?void 0:O.call(l))===2&&(this.set("isAdPlaying",!0),_.Wb(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$20065_playerEvents)}};
_.X.ready=function(){_.ud(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.X.onTitleChanged_=function(l){this.set("titleValue",l.detail.title)};
_.X.onStartChanged_=function(l){this.set("start",l.detail.start)};
_.X.onEndChanged_=function(l){this.set("end",l.detail.end)};
_.X.onTitleValidChanged_=function(l){this.set("titleValid",l.detail.valid)};
_.X.onStartValidChanged_=function(l){this.set("startValid",l.detail.valid)};
_.X.onEndValidChanged_=function(l){this.set("endValid",l.detail.valid)};
_.X.onVideoDataChange_=function(){var l;if((l=this.data)==null||!l.externalVideoId){var e;this.set("videoId",((e=this.player_)==null?void 0:e.getVideoData().video_id)||"")}};
_.X.computeFormValid_=function(l,e,O,E){return!!(l&&e&&O&&E)};
_.X.computeCancelButton_=function(l,e,O){return l&&_.I(l,_.YU)?{buttonRenderer:Object.assign({},_.I(l,_.YU),{isDisabled:e||O})}:null};
_.X.computeSubmitButton_=function(l,e,O){return l&&_.I(l,_.YU)?{buttonRenderer:Object.assign({},_.I(l,_.YU),{command:void 0,isDisabled:!this.formValid||e||O})}:null};
_.X.computeSubmitCommand_=function(l){return l||null};
_.X.onSubmit_=function(l){var e=this;l.stopPropagation();l.preventDefault();this.submitCommand_&&(l={},l.comment_text=this.titleValue,l.clip_external_video_id=this.videoId,l.clip_offset_ms=parseInt(this.start*1E3,10),l.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.ii(this.hostElement,[this.submitCommand_,l]).then(function(){e.set("isLoading_",!1)},function(){e.set("isLoading_",!1)}))};
_.X.playerAdStartHandler_=function(){_.Wb(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.X.playerAdEndHandler_=function(){_.Wb(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.X.onVideoProgress_=function(){var l=this;this.getPlayer().then(function(e){var O,E=(e==null?void 0:(O=e.getPresentingPlayerType)==null?void 0:O.call(e))===2;l.isAdPlaying!==E&&(E?l.playerAdStartHandler_():l.playerAdEndHandler_())})};
FE.prototype.onEndValidChanged_=FE.prototype.onEndValidChanged_;FE.prototype.onStartValidChanged_=FE.prototype.onStartValidChanged_;FE.prototype.onTitleValidChanged_=FE.prototype.onTitleValidChanged_;FE.prototype.onEndChanged_=FE.prototype.onEndChanged_;FE.prototype.onStartChanged_=FE.prototype.onStartChanged_;FE.prototype.onTitleChanged_=FE.prototype.onTitleChanged_;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],FE.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",Object)],FE.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FE.prototype,"data",void 0);_.L([_.T({value:""}),_.q("design:type",String)],FE.prototype,"titleValue",void 0);
_.L([_.T({value:!1}),_.q("design:type",Boolean)],FE.prototype,"titleValid",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],FE.prototype,"start",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],FE.prototype,"startValid",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],FE.prototype,"end",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],FE.prototype,"endValid",void 0);_.L([_.T({value:""}),_.q("design:type",String)],FE.prototype,"videoId",void 0);
_.L([_.T({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.q("design:type",Boolean)],FE.prototype,"formValid",void 0);_.L([_.T({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.q("design:type",Object)],FE.prototype,"submitButton_",void 0);_.L([_.T({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.q("design:type",Object)],FE.prototype,"submitCommand_",void 0);
_.L([_.T({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.q("design:type",Object)],FE.prototype,"cancelButton_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],FE.prototype,"isLoading_",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],FE.prototype,"isAdPlaying",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],FE.prototype,"returnTime",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],FE.prototype,"isAtLiveHead",void 0);
_.L([_.wP("title-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FE.prototype,"onTitleChanged_",null);_.L([_.wP("start-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FE.prototype,"onStartChanged_",null);_.L([_.wP("end-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FE.prototype,"onEndChanged_",null);
_.L([_.wP("title-valid-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FE.prototype,"onTitleValidChanged_",null);_.L([_.wP("start-valid-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FE.prototype,"onStartValidChanged_",null);_.L([_.wP("end-valid-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],FE.prototype,"onEndValidChanged_",null);
_.L([_.Ps({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],FE);
_.Y(FE,"yt-clip-creation-renderer",function(){if(f44===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;F93===void 0&&(F93=document.createElement("template"));var E=F93;O.call(e,E.content.cloneNode(!0),l.content.firstChild);f44=l}l=f44;return l},{mode:2});var fB=function(){return _.B.apply(this,arguments)||this};
_.m(fB,_.B);fB.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"}}}};
fB.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(l){return l.hasOwnProperty("clipCreationRenderer")})&&_.Wb(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
fB.prototype.onPanelContentVisibleChanged=fB.prototype.onPanelContentVisibleChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.Dl.YtVisibilityBehavior),_.q("design:type",Object)],fB.prototype,"ytVisibilityBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],fB.prototype,"ytdReduxBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],fB.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],fB.prototype,"panelContentVisible",void 0);_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fB.prototype,"onPanelContentVisibleChanged",null);_.L([_.U({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],fB);
_.Y(fB,"ytd-clip-section-renderer",function(){if(jr4!==void 0)return jr4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return jr4=l},{mode:1});var PTz;var Ru=function(){return _.B.apply(this,arguments)||this};
_.m(Ru,_.B);_.X=Ru.prototype;
_.X.onKeyDown=function(l){if(this.snippetElements.length!==0&&(l=l.keyCode,l===38||l===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);l===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.hc(this.highlightedIndex,-1,this.snippetElements.length);l=this.snippetElements.length;var e=this.highlightedIndex%l;this.highlightedIndex=e*l<0?e+l:e;l=this.snippetElements[this.highlightedIndex];this.highlightSnippet(l);this.ensureVisible(l)}};
_.X.onKeyUp=function(l){var e=this;x_i(l)&&(l.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.UD.cancelJob(this.inputTimerId),this.inputTimerId=_.UD.addLowPriorityJob(function(){e.typedValue&&(e.fetchSnippets(e.typedValue),e.logInputGesture(e.data))},1E3))};
_.X.onClick=function(l){(l=_.M0S(l.target,null,"snippet-item"))&&this.selectSnippet(l)};
_.X.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.X.ready=function(){var l=this;this.inputElement.addEventListener("focus",function(){l.snippetsWrapper.style.removeProperty("display")})};
_.X.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.X.getSourceTimelines=function(){if(!this.data)return[];var l=[];if(this.data.searchInVideoSources)for(var e=_.b(this.data.searchInVideoSources),O=e.next();!O.done;O=e.next())O=O.value,O==="SEARCH_IN_VIDEO_SOURCE_ASR"?l.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):O==="SEARCH_IN_VIDEO_SOURCE_OCR"&&l.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return l};
_.X.fetchSnippets=function(l){var e=_.Wb(this.hostElement,"yt-get-current-video-id-action")[0],O=this.getSourceTimelines();l={getSearchInVideoCommand:{externalVideoId:e,query:l!=null?l:"",sourceTimelines:O},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})};
_.X.filterSnippets=function(l,e){var O=this;if(e){this.filteredSnippets=(0,_.mm.unsafeClone)(l);var E=RegExp(_.G8u(e),"i");this.filteredSnippets=this.filteredSnippets.filter(function(M){return E.test(O.ytRendererBehavior.getSimpleString(M.snippet))});
l=_.b(this.filteredSnippets);for(var J=l.next();!J.done;J=l.next()){J=J.value;var z=this.ytRendererBehavior.getSimpleString(J.snippet);J.snippet={runs:[{text:z.substring(0,z.toLowerCase().indexOf(e))},{text:z.substring(z.toLowerCase().indexOf(e),z.toLowerCase().indexOf(e)+e.length),bold:!0},{text:z.substring(z.toLowerCase().indexOf(e)+e.length,z.length)}]}}}else this.filteredSnippets=l};
_.X.onUpdateSearchInVideoResults=function(l){if(!(this.snippets.length>0)){var e,O,E;if((E=(e=_.I(l,uIF))==null?void 0:(O=e.results)==null?void 0:O.length)!=null&&E){var J;this.filteredSnippets=this.snippets=((J=_.I(l,uIF))==null?void 0:J.results).map(function(z){var M,Z,u;return{startMs:z==null?void 0:(M=z.searchInVideoResultRenderer)==null?void 0:M.startMs,startTimeText:z==null?void 0:(Z=z.searchInVideoResultRenderer)==null?void 0:Z.startTimeText,snippet:z==null?void 0:(u=z.searchInVideoResultRenderer)==
null?void 0:u.snippet}})}}};
_.X.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};
_.X.highlightSnippet=function(l){l.classList.add("highlighted")};
_.X.removeSnippetHighlight=function(l){l.classList.remove("highlighted")};
_.X.selectSnippet=function(l){this.typedValue=String(l.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(l);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.X.ensureVisible=function(l){var e=this.snippetsWrapper.scrollTop,O=e+this.snippetsWrapper.clientHeight,E=l.offsetTop-this.snippetsWrapper.offsetTop;l=E+l.clientHeight;E<e?this.snippetsWrapper.scrollTop-=e-E:l>O&&(this.snippetsWrapper.scrollTop+=l-O)};
_.X.seekPlayer=function(l){var e,O;return _.V(function(E){if(E.nextAddress==1){if(!l)return E.jumpTo(0);e=Number(l.dataset.startOffset);return _.C(E,_.Mc().getPlayerPromise(),3)}O=E.yieldResult;O.seekTo(e/1E3,!0);O.wakeUpControls();_.Cl(E)})};
_.X.logInputGesture=function(l){var e=_.P9();e&&(l==null?0:l.trackingParams)&&_.En(e,_.cf(l.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.X.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("typed-value-changed",this.typedValue))};
_.X.updateTypedValueFromBinding=function(l){this.typedValue=l.currentTarget.value};
Ru.prototype.typedValueChangedForBinding=Ru.prototype.typedValueChangedForBinding;Ru.prototype.dataChanged=Ru.prototype.dataChanged;Ru.prototype.panelContentVisibleChanged=Ru.prototype.panelContentVisibleChanged;Ru.prototype.onClick=Ru.prototype.onClick;Ru.prototype.onKeyUp=Ru.prototype.onKeyUp;Ru.prototype.onKeyDown=Ru.prototype.onKeyDown;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ru.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ru.prototype,"data",void 0);_.L([_.T({value:[]}),_.q("design:type",Array)],Ru.prototype,"snippets",void 0);_.L([_.T({value:[]}),_.q("design:type",Array)],Ru.prototype,"filteredSnippets",void 0);_.L([_.T({value:[]}),_.q("design:type",Array)],Ru.prototype,"snippetElements",void 0);
_.L([_.aB("#siv-input"),_.q("design:type",HTMLElement)],Ru.prototype,"inputElement",void 0);_.L([_.aB("#siv-snippets-wrapper"),_.q("design:type",HTMLElement)],Ru.prototype,"snippetsWrapper",void 0);_.L([_.T(),_.q("design:type",String)],Ru.prototype,"typedValue",void 0);_.L([_.T({value:-1}),_.q("design:type",Number)],Ru.prototype,"highlightedIndex",void 0);_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[_.Ia]),_.q("design:returntype")],Ru.prototype,"onKeyDown",null);
_.L([_.wP("keyup"),_.q("design:type",Function),_.q("design:paramtypes",[_.Ia]),_.q("design:returntype")],Ru.prototype,"onKeyUp",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Ru.prototype,"onClick",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Ru.prototype,"panelContentVisible",void 0);
_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ru.prototype,"panelContentVisibleChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ru.prototype,"dataChanged",null);_.L([_.AA("typedValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ru.prototype,"typedValueChangedForBinding",null);
_.L([_.U({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Ru);
_.Y(Ru,"ytd-search-in-video-renderer",function(){if(PTz!==void 0)return PTz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return PTz=l},{mode:1});var U2o;var T2=function(){return _.B.apply(this,arguments)||this};
_.m(T2,_.B);T2.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
T2.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]]"}}}}}};
T2.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var l,e,O,E,J=(e=_.I((l=this.data)==null?void 0:l.onClickCommand,_.pp))==null?void 0:(O=e.item)==null?void 0:(E=O.notificationTextRenderer)==null?void 0:E.successResponseText;J&&_.XAt(this.hostElement,J)}};
_.Ji.Object.defineProperties(T2.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return this.isProductPlaceholder&&((l=this.data)==null?void 0:(e=l.hiddenProductOptions)==null?void 0:e.showDropCountdown)&&!!((O=this.data)==null?0:(E=O.hiddenProductOptions)==null?0:E.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var l;return!this.isProductPlaceholder&&!((l=this.data)==null?0:l.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null?0:l.priceReplacementText)&&!((e=this.data)==null||!e.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],T2.prototype,"componentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],T2.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("isProductPlaceholder"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"useCenterLayoutContainer",null);_.L([_.T({computed:"computeButtonOverride(data)"}),_.q("design:type",Object)],T2.prototype,"buttonOverride",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"isProductPlaceholder",null);
_.L([_.R("isProductPlaceholder"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"showDropCountdown",null);_.L([_.R("isProductPlaceholder","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"showBrandName",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"showPriceReplacementText",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"showPrice",null);
_.L([_.R("isProductPlaceholder"),_.q("design:type",Object),_.q("design:paramtypes",[])],T2.prototype,"showMetadata",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],T2);
_.Y(T2,"ytd-product-list-item-renderer",function(){if(U2o!==void 0)return U2o;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return U2o=l},{mode:1});var YcO;var sT=function(){return _.B.apply(this,arguments)||this};
_.m(sT,_.B);sT.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
sT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
sT.prototype.panelContentVisibleChanged=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return l.playerApi?O.jumpTo(2):_.C(O,_.Mc().getPlayerPromise(),3);O.nextAddress!=2&&(l.playerApi=O.yieldResult);(e=l.playerApi)==null||e.productsInVideoVisibilityUpdated(!!l.panelContentVisible);_.Cl(O)})};
sT.prototype.panelContentVisibleChanged=sT.prototype.panelContentVisibleChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],sT.prototype,"panelContentVisible",void 0);_.L([_.T(),_.q("design:type",Object)],sT.prototype,"data",void 0);
_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],sT.prototype,"panelContentVisibleChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],sT);
_.Y(sT,"ytd-product-list-renderer",function(){if(YcO!==void 0)return YcO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return YcO=l},{mode:1});var hQz;var G2=function(){var l=_.B.apply(this,arguments)||this;l.hideTimestamps=!!_.gS("hide-transcript-timestamps");l.currentCueIndex=-1;l.flatCues=[];l.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};l.TEST_ONLY={getFlatCues:function(){return l.flatCues}};
return l};
_.m(G2,_.B);_.X=G2.prototype;_.X.hideTimestampsChanged=function(){_.dS("hide-transcript-timestamps",this.hideTimestamps)};
_.X.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.X.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.X.dataChanged=function(){var l;if((l=this.data)!=null&&l.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;l=_.b(this.data.cueGroups);for(var e=l.next();!e.done;e=l.next()){e=_.b(_.I(e.value,CRu).cues);for(var O=e.next();!O.done;O=e.next())this.flatCues.push(Number(_.I(O.value,oiz).startOffsetMs))}}};
_.X.onYtPlayerTimeChanged=function(l){if(!(l<0)){for(var e=this.currentCueIndex,O=e;;){var E=O>=0?this.flatCues[O]/1E3:-1;if(l+.5<E)--O;else if(E=O+1<this.flatCues.length?this.flatCues[O+1]/1E3:Infinity,l+.5>E)O+=1;else break}O!==e&&(e>=0&&((l=this.getCueElement(e))&&l.classList.remove("active"),(e=this.getCueGroupElement(e))&&e.classList.remove("active")),(e=this.getCueElement(O))&&e.classList.add("active"),(e=this.getCueGroupElement(O))&&e.classList.add("active"),this.currentCueIndex=O,this.isHovered||
this.scrollElementToTop(O))}};
_.X.scrollElementToTop=function(l){l=this.getCueElement(l>=3?l-3:0);this.hostElement.scrollTop=Math.min(l.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.X.getCueElement=function(l){return _.ud(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[l]+'"]')};
_.X.getCueGroupElement=function(l){return(l=this.getCueElement(l))&&l.parentElement?l.parentElement.parentElement:null};
_.X.onTap=function(l){var e=_.OV(l);l.target.classList.contains("cue")&&this.seekCueElement(e)};
_.X.onKeyPress=function(l){l.keyCode==13&&(l=_.M0S(l.target,null,"cue"))&&this.seekCueElement(l)};
_.X.seekCueElement=function(l){l=Number(l.getAttribute("start-offset"));_.Wb(this.hostElement,"yt-transcript-player-seek",[l/1E3])};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
G2.prototype.onMouseLeave=G2.prototype.onMouseLeave;G2.prototype.onMouseEnter=G2.prototype.onMouseEnter;G2.prototype.onKeyPress=G2.prototype.onKeyPress;G2.prototype.onTap=G2.prototype.onTap;G2.prototype.dataChanged=G2.prototype.dataChanged;G2.prototype.hideTimestampsChanged=G2.prototype.hideTimestampsChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],G2.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],G2.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],G2.prototype,"hideTimestamps",void 0);_.L([_.T(),_.q("design:type",Boolean)],G2.prototype,"isHovered",void 0);_.L([_.AA("hideTimestamps"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G2.prototype,"hideTimestampsChanged",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G2.prototype,"dataChanged",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],G2.prototype,"onTap",null);_.L([_.wP("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],G2.prototype,"onKeyPress",null);
_.L([_.wP("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G2.prototype,"onMouseEnter",null);_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],G2.prototype,"onMouseLeave",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],G2);
_.Y(G2,"ytd-transcript-body-renderer",function(){if(hQz!==void 0)return hQz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return hQz=l},{mode:1});var L9z;var BZ=function(){var l=_.B.apply(this,arguments)||this;l.darkerPanels=_.a("web_watch_darker_panels");return l};
_.m(BZ,_.B);BZ.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BZ.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BZ.prototype,"darkerPanels",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],BZ);
_.Y(BZ,"ytd-transcript-footer-renderer",function(){if(L9z!==void 0)return L9z;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return L9z=l},{mode:1});var tuO;var qc3;var PZ=function(){var l=_.B.apply(this,arguments)||this;l.systemIcons=_.a("kevlar_system_icons");l.showClearButton=!1;return l};
_.m(PZ,_.B);_.X=PZ.prototype;_.X.handleInput=function(l){var e=this;l.target.value.length?_.rP(this,"ytdTranscriptSearchBoxSearch",function(){e.emitSearchEvent(l)},500):(_.ait(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=l.target.value.length>0};
_.X.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.X.handleClick=function(){var l,e=(l=this.data)==null?void 0:l.trackingParams;e&&_.gn(_.yN(),e)};
_.X.handleClear=function(){_.ait(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var l,e,O=(e=_.I((l=this.data)==null?void 0:l.clearButton,_.YU))==null?void 0:e.trackingParams;O&&_.gn(_.yN(),O);this.clear()};
_.X.emitSearchEvent=function(l){_.$u(this.hostElement,"yt-transcript-search-box-search",{query:l.target.value});var e,O;(l=(O=_.I((e=this.data)==null?void 0:e.searchButton,_.YU))==null?void 0:O.trackingParams)&&_.gn(_.yN(),l)};
_.X.emitClearEvent=function(){_.$u(this.hostElement,"yt-transcript-search-box-clear")};
_.Ji.Object.defineProperties(PZ.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ud(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PZ.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],PZ.prototype,"systemIcons",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],PZ);
_.Y(PZ,"ytd-transcript-search-box-renderer",function(){if(qc3!==void 0)return qc3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qc3=l},{mode:1});var vLH;var NJu;var UT=function(){return _.B.apply(this,arguments)||this};
_.m(UT,_.B);UT.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var l,e;this.sectionHeaderAriaLabel=(l=this.data)==null?void 0:(e=l.accessibility)==null?void 0:e.accessibilityData.label}};
UT.prototype.fireSelectedEvent=function(l){_.$u(this.hostElement,"ytd-transcript-section-header",{startMs:l})};
UT.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
UT.prototype.handleKeyPress=function(l){this.data&&l.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Ji.Object.defineProperties(UT.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.data)==null?void 0:l.enableTappableTranscriptHeader)!=null?e:!1}}});
UT.prototype.dataChanged=UT.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],UT.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],UT.prototype,"sectionHeaderAriaLabel",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],UT.prototype,"enableTappableTranscriptHeader",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UT.prototype,"dataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],UT);
_.Y(UT,"ytd-transcript-section-header-renderer",function(){if(NJu!==void 0)return NJu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return NJu=l},{mode:1});var rSF;var D2h;var YB=function(){var l=_.B.apply(this,arguments)||this;l.isEditMode=!1;l.touchCaptionsEnabled=!1;l.deleteCaptionCorrectionPopupCommand=null;l.voteCaptionCorrectionPopupCommand=null;l.roundedContainer=!0;l.mouseOver=!1;l.textChanged=!1;l.messages={suggest_correction:_.ml("suggest_correction",void 0,"Edit caption"),suggested_caption:_.ml("suggested_caption",void 0,"Suggested caption"),submit_correction:_.ml("submit_correction",void 0,"Submit for review"),cancel_correction:_.ml("cancel_correction",
void 0,"Cancel"),replay_segment:_.ml("replay_segment",void 0,"Re-play segment"),delete_correction:_.ml("delete_correction",void 0,"Delete correction")};l.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return l};
_.m(YB,_.B);_.X=YB.prototype;_.X.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)};
_.X.handleDelete=function(l){if(this.deleteCaptionCorrectionPopupCommand){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);e&&this.ytdOpenPopupBehavior.openPopup(e);l.stopPropagation()}};
_.X.handleSubmit=function(l){if(this.data&&this.data.submitCaptionCorrectionCommand&&(l.stopPropagation(),this.textChanged)){var e;l=(e=_.I(this.data.submitCaptionCorrectionCommand,_.AK1))==null?void 0:e.params;e=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:l,correctionText:String(this.ironTextAreaElement.value),originalText:_.lG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(e);this.isEditMode=!1}};
_.X.handleUpdateSegmentText=function(l){(l=_.I(l,HsF))&&l.targetId&&this.data&&l.targetId===this.data.targetId&&(l.userCorrection&&(this.editedText=l.userCorrection),l.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.lG(this.data.snippet)),l.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=l.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=l.voteCaptionCorrectionPopupCommand?
l.voteCaptionCorrectionPopupCommand:null,l.accessibility&&(this.segmentAriaLabel=l.accessibility.accessibilityData.label))};
_.X.handleCancel=function(l){this.isEditMode=!1;l.stopPropagation();this.logClientVe(159409)};
_.X.handleEditSegmentCommand=function(l){(l=_.I(l,jEP))&&l.targetId&&this.data&&l.targetId===this.data.targetId&&this.handleEdit()};
_.X.handleEditButtonClick=function(l){this.data&&(this.handleEdit(),l.stopPropagation())};
_.X.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var l;(l=this.ironTextAreaElement.textarea)==null||l.focus();this.logClientVe(159407)}};
_.X.handleMouseEnter=function(){this.mouseOver=!0};
_.X.handleMouseLeave=function(){this.mouseOver=!1};
_.X.handleReplay=function(l){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),l.stopPropagation(),this.logClientVe(159408))};
_.X.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()))};
_.X.handleKeypress=function(l){this.data&&(this.isEditMode?l.stopPropagation():this.isEnterPress(l)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(l)&&this.logClientVe(138758))};
_.X.handleTextboxClick=function(l){l.stopPropagation()};
_.X.handleTextboxKeydown=function(l){this.isControlEnterPress(l)?this.handleSubmit(l):l.key==="Escape"&&this.handleCancel(l)};
_.X.handleTextboxKeyup=function(){this.textChanged=_.lG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.X.fireSelectedEvent=function(l){_.$u(this.hostElement,"yt-transcript-segment-selected",{startMs:l})};
_.X.fireReplayEvent=function(l,e){_.$u(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(l-100,0),endMs:e})};
_.X.fireEditEvent=function(l,e){_.$u(this.hostElement,"yt-transcript-segment-edit",{startMs:l,endMs:e})};
_.X.isEnterPress=function(l){return l.key==="Enter"||l.code==="Enter"||l.code==="NumpadEnter"||l.keyCode===13?!0:!1};
_.X.isControlEnterPress=function(l){var e=l.key==="Enter"||l.code==="Enter"||l.code==="NumpadEnter"||l.keyCode===13;return(l.ctrlKey||l.metaKey)&&e};
_.X.isCopyPress=function(l){var e=l.ctrlKey;return l.key==="c"&&e};
_.X.logClick=function(){var l,e=(l=this.data)==null?void 0:l.trackingParams;e&&_.gn(_.yN(),e)};
_.X.logClientVe=function(l){_.dn(_.yN(),_.sL(l))};
_.Ji.Object.defineProperties(YB.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}}});
YB.prototype.handleMouseLeave=YB.prototype.handleMouseLeave;YB.prototype.handleMouseEnter=YB.prototype.handleMouseEnter;YB.prototype.dataChanged=YB.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],YB.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],YB.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],YB.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],YB.prototype,"isEditMode",void 0);_.L([_.T(),_.q("design:type",Object)],YB.prototype,"touchCaptionsEnabled",void 0);_.L([_.T(),_.q("design:type",Object)],YB.prototype,"editedText",void 0);_.L([_.T(),_.q("design:type",Object)],YB.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.L([_.T(),_.q("design:type",Object)],YB.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.L([_.T(),_.q("design:type",String)],YB.prototype,"segmentAriaLabel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],YB.prototype,"roundedContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],YB.prototype,"mouseOver",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],YB.prototype,"textChanged",void 0);_.L([_.T(),_.q("design:type",Object)],YB.prototype,"messages",void 0);
_.L([_.aB("#suggestion"),_.q("design:type",Object)],YB.prototype,"ironTextAreaElement",void 0);_.L([_.R("data","editedText"),_.q("design:type",Object),_.q("design:paramtypes",[])],YB.prototype,"latestText",null);_.L([_.R("touchCaptionsEnabled","isEditMode"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],YB.prototype,"enableEditButton",null);
_.L([_.R("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],YB.prototype,"enableUndoButton",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YB.prototype,"dataChanged",null);_.L([_.wP("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YB.prototype,"handleMouseEnter",null);
_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],YB.prototype,"handleMouseLeave",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],YB);
_.Y(YB,"ytd-transcript-segment-renderer",function(){if(D2h!==void 0)return D2h;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return D2h=l},{mode:1});var hX=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};l.isError=!1;l.darkerPanels=_.a("web_watch_darker_panels");l.useParentMaxHeight=_.a("web_watch_transscript_use_parent_max_height");l.segmentOffsets=[];l.segmentIndex=-1;return l};
_.m(hX,_.B);_.X=hX.prototype;_.X.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"}}}}};
_.X.segmentsChanged=function(){this.updateOffsets()};
_.X.onYtPlayerTimeChanged=function(l){for(var e=this.segmentIndex,O=e;;){if(O>=0){var E=this.segmentOffsets[O].start;var J=this.segmentOffsets[O].isAutoScrollable}else E=-1,J=!0;var z=l+.5;if(!J){E=O+1<this.segmentOffsets.length?this.segmentOffsets[O+1].start:Infinity;if(z>=E){O+=1;continue}O=-1;break}if(z<E)E=O-1>=0&&this.segmentOffsets[O-1].isAutoScrollable,J=O===0||E?1:2,O-=J;else if(J=O+1<this.segmentOffsets.length&&this.segmentOffsets[O+1].isAutoScrollable?1:2,E=O+J<this.segmentOffsets.length?
this.segmentOffsets[O+J].start:Infinity,z>E)O+=J;else{if(O<0)break;O<this.segmentOffsets.length&&z>this.segmentOffsets[O].end&&(O=-1);break}}if(e!==O){if(e>=0){var M;(M=this.getSegmentElement(e))==null||M.classList.remove("active")}this.segmentIndex=O;if(!(O<0)){var Z;(Z=this.getSegmentElement(O))==null||Z.classList.add("active");this.isHovered||this.scrollElementToTop(O)}}};
_.X.handleSegmentEdit=function(l){l.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=l.target,_.Wb(this.hostElement,"yt-transcript-player-edit",[l.detail.startMs/1E3,l.detail.endMs/1E3]))};
_.X.handleSegmentSelected=function(l){_.Wb(this.hostElement,"yt-transcript-player-seek",[l.detail.startMs/1E3])};
_.X.handleSegmentReplay=function(l){_.Wb(this.hostElement,"yt-transcript-player-replay",[l.detail.startMs/1E3,l.detail.endMs/1E3])};
_.X.handleSectionHeaderSelected=function(l){_.Wb(this.hostElement,"yt-transcript-player-seek",[l.detail.startMs/1E3])};
_.X.onMouseEnter=function(){this.isHovered=!0};
_.X.onMouseLeave=function(){this.isHovered=!1};
_.X.onRetryButtonClick=function(){_.$u(this.hostElement,"transcript-retry-button-click")};
_.X.getSegmentElement=function(l){return _.ud(this.hostElement).querySelector(":nth-child("+(l+1)+")")};
_.X.scrollElementToTop=function(l){l=this.getSegmentElement(l>=2?l-2:0);this.hostElement.scrollTop=Math.min(l.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.X.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(l){var e,O=(e=l.transcriptSegmentRenderer)!=null?e:l.transcriptSectionHeaderRenderer;return{start:Number(O.startMs)/1E3,end:Number(O.endMs)/1E3,isAutoScrollable:l.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.X.clearHighlightedSegments=function(){var l=_.ud(this.hostElement);l=_.b(l.querySelectorAll("ytd-transcript-segment-renderer"));for(var e=l.next();!e.done;e=l.next())e.value.classList.remove("active")};
_.Ji.Object.defineProperties(hX.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.searchResultSegments)||((e=this.data)==null?void 0:e.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
hX.prototype.onMouseLeave=hX.prototype.onMouseLeave;hX.prototype.onMouseEnter=hX.prototype.onMouseEnter;hX.prototype.handleSectionHeaderSelected=hX.prototype.handleSectionHeaderSelected;hX.prototype.handleSegmentReplay=hX.prototype.handleSegmentReplay;hX.prototype.handleSegmentSelected=hX.prototype.handleSegmentSelected;hX.prototype.handleSegmentEdit=hX.prototype.handleSegmentEdit;hX.prototype.segmentsChanged=hX.prototype.segmentsChanged;
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hX.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],hX.prototype,"isError",void 0);
_.L([_.T(),_.q("design:type",Object)],hX.prototype,"noResultLabel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],hX.prototype,"darkerPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],hX.prototype,"useParentMaxHeight",void 0);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],hX.prototype,"segments",null);
_.L([_.R("segments","noResultLabel"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],hX.prototype,"displayNoResults",null);_.L([_.AA("segments"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hX.prototype,"segmentsChanged",null);_.L([_.wP("yt-transcript-segment-edit"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],hX.prototype,"handleSegmentEdit",null);
_.L([_.wP("yt-transcript-segment-selected"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],hX.prototype,"handleSegmentSelected",null);_.L([_.wP("yt-transcript-segment-replay"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],hX.prototype,"handleSegmentReplay",null);
_.L([_.wP("ytd-transcript-section-header"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],hX.prototype,"handleSectionHeaderSelected",null);_.L([_.wP("mouseenter"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hX.prototype,"onMouseEnter",null);_.L([_.wP("mouseleave"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hX.prototype,"onMouseLeave",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],hX);
_.Y(hX,"ytd-transcript-segment-list-renderer",function(){if(rSF!==void 0)return rSF;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rSF=l},{mode:1});var LB=function(){var l=_.B.apply(this,arguments)||this;l.hideTimestamps=!!_.gS("hide-transcript-timestamps");l.isLoadingTranscripts=!1;l.darkerPanels=_.a("web_watch_darker_panels");l.isError=!1;l.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return l};
_.m(LB,_.B);_.X=LB.prototype;_.X.headerChanged=function(){var l,e;this.baseGetTranscriptsCommand=(e=_.I((l=this.data)==null?void 0:l.header,c23))==null?void 0:e.onTextChangeCommand};
_.X.bodyChanged=function(){var l=this.getBodyRenderer();l&&(l.initialSegments&&(this.initialTranscriptsRenderer=l),l.noResultLabel&&(this.noResultLabel=l.noResultLabel),l.retryLabel&&(this.retryLabel=l.retryLabel))};
_.X.detached=function(){this.clearSearchBoxText()};
_.X.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.X.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"}}}};
_.X.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.X.fireSearch=function(l){var e=this;if(l){var O=l.detail.query;if(this.baseGetTranscriptsCommand){var E;l=(E=_.I(this.baseGetTranscriptsCommand,_.XYk))==null?void 0:E.params;var J;E=_.I((J=this.data)==null?void 0:J.footer,$n0);var z;if((J=(z=_.I(E==null?void 0:E.languageMenu,y20))==null?void 0:z.subMenuItems)&&J.length>0&&(z=J.find(function(u){return u.selected}))){var M,Z;
l=(M=z.continuation)==null?void 0:(Z=M.reloadContinuationData)==null?void 0:Z.continuation}M=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:l,searchQuery:O}});this.ytComponentBehavior.resolveCommand(M,{commandController:{onServerError:function(){e.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Syf(this.ytContinuationHandlerBehavior,function(){return O===e.getCurrentSearchBoxText()})}}};
_.X.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.X.onRetryButtonClick=function(){this.isError=!1;var l={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:l}))};
_.X.hideTimestampsChanged=function(){_.dS("hide-transcript-timestamps",this.hideTimestamps)};
_.X.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.X.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.X.handleSignalActionCopyTranscript=function(){var l=this,e=this.getBodyRenderer();e&&(e=((e==null?void 0:e.searchResultSegments)||(e==null?void 0:e.initialSegments)||[]).map(function(O){return _.I(O,f5z)}).filter(function(O){return!!O}).map(function(O){return{snippet:O.snippet||{runs:[{text:""}]},
startTimeText:O.startTimeText||{simpleText:""}}}).map(function(O){var E=(O.snippet.runs||[]).reduce(function(J,z){return J+z.text},"");
return l.hideTimestamps?E:O.startTimeText.simpleText+" "+E}).join("\n"),this.copyToClipboard(e))};
_.X.copyToClipboard=function(l){navigator.clipboard&&navigator.clipboard.writeText(l)};
_.X.getCurrentSearchBoxText=function(){var l;return(l=this.searchBox)==null?void 0:l.value};
_.X.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.X.getBodyRenderer=function(){var l;return _.I((l=this.data)==null?void 0:l.body,FNz)};
_.X.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Ji.Object.defineProperties(LB.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ud(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
LB.prototype.hideTimestampsChanged=LB.prototype.hideTimestampsChanged;LB.prototype.searchCleared=LB.prototype.searchCleared;LB.prototype.fireSearch=LB.prototype.fireSearch;LB.prototype.onReloadContinuationFinish=LB.prototype.onReloadContinuationFinish;LB.prototype.bodyChanged=LB.prototype.bodyChanged;LB.prototype.headerChanged=LB.prototype.headerChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],LB.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],LB.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],LB.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],LB.prototype,"hideTimestamps",void 0);
_.L([_.T(),_.q("design:type",Object)],LB.prototype,"isLoadingTranscripts",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],LB.prototype,"darkerPanels",void 0);_.L([_.T(),_.q("design:type",Object)],LB.prototype,"isError",void 0);_.L([_.AA("data.header"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LB.prototype,"headerChanged",null);
_.L([_.y0("data.body"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LB.prototype,"bodyChanged",null);_.L([_.wP("yt-reload-continuation-finish"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LB.prototype,"onReloadContinuationFinish",null);_.L([_.wP("yt-transcript-search-box-search"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],LB.prototype,"fireSearch",null);
_.L([_.wP("yt-transcript-search-box-clear"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LB.prototype,"searchCleared",null);_.L([_.AA("hideTimestamps"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],LB.prototype,"hideTimestampsChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],LB);
_.Y(LB,"ytd-transcript-search-panel-renderer",function(){if(vLH!==void 0)return vLH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return vLH=l},{mode:1});var tX=function(){var l=_.B.apply(this,arguments)||this;l.player=null;l.playerPollJobId=0;return l};
_.m(tX,_.B);_.X=tX.prototype;_.X.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.X.onLoadReloadContinuation=function(l){_.a("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:l.target.data.continuation}}):(l={clickTrackingParams:l.target.data.clickTrackingParams,getTranscriptEndpoint:{params:l.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}}))};
_.X.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"}}}};
_.X.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.X.attached=function(){this.updatePlayerListening()};
_.X.detached=function(){this.updatePlayerListening()};
_.X.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.X.startPlayerListening=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return(e=_.bV())?_.C(O,e.getPlayerPromise(),2):O.return();l.player=O.yieldResult;l.playerPollJobId=_.UD.addLowPriorityJob(function(){l.getPlayerVideoProgress()},1E3);
l.player.addEventListener("onCueRangeEnter",function(E){l.onCueRangeEnter(E)});
l.player.addEventListener("onCueRangeExit",function(E){l.onCueRangeExit(E)});
l.player.addEventListener("onStateChange",function(E){l.onPlayerStateChange(E)});
l.player.addEventListener("SEEK_TO",function(E){l.onPlayerSeek(E)});
_.Cl(O)})};
_.X.getPlayerVideoProgress=function(){var l=this;_.UD.cancelJob(this.playerPollJobId);if(this.player){var e=this.player.getCurrentTime();_.Wb(this.hostElement,"yt-player-time-changed",[e])}this.playerPollJobId=_.UD.addLowPriorityJob(function(){l.getPlayerVideoProgress()},1E3)};
_.X.stopPlayerListening=function(){this.player=null;_.UD.cancelJob(this.playerPollJobId)};
_.X.onPlayerStateChange=function(l){l===2&&this.removePendingCue()};
_.X.onPlayerSeek=function(l){var e;if(e=this.pendingReplayCueId)e=this.pendingReplayCueId,e=l===(_.a("web_transcript_cue_id_killswitch")?Number(e):Number(e.split("_")[1]));e||this.removePendingCue()};
_.X.onCueRangeEnter=function(l){adO(l)&&(this.pendingReplayCueId=l)};
_.X.onCueRangeExit=function(l){adO(l)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.X.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.X.onYtTranscriptPlayerSeek=function(l){this.player&&this.player.seekTo(l,!0)};
_.X.onYtTranscriptPlayerReplay=function(l,e){this.player&&(this.player.addCueRange(nt4(l),l,e),this.player.seekTo(l,!0),this.player.playVideo())};
_.X.onYtTranscriptPlayerEdit=function(l,e){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(nt4(l),l,e),this.player.seekTo(l,!0))};
tX.prototype.onLoadReloadContinuation=tX.prototype.onLoadReloadContinuation;tX.prototype.panelContentVisibleChanged=tX.prototype.panelContentVisibleChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],tX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tX.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],tX.prototype,"panelContentVisible",void 0);_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tX.prototype,"panelContentVisibleChanged",null);
_.L([_.wP("yt-load-reload-continuation"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],tX.prototype,"onLoadReloadContinuation",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],tX);
_.Y(tX,"ytd-transcript-renderer",function(){if(tuO!==void 0)return tuO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tuO=l},{mode:1});var ScP;var QrF;var qK=function(){return _.B.apply(this,arguments)||this};
_.m(qK,_.B);qK.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.wQ(this.hostElement,[this.data.clickCommand],this.hostElement))};
qK.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.cr)()+_.Tw)+"px)"};
qK.prototype.updateShouldHideFromBinding=function(l){this.shouldHide=l.detail.value};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qK.prototype,"rendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qK.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],qK.prototype,"shouldHide",void 0);_.L([_.U({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],qK);
_.Y(qK,"ytd-ad-engagement-panel-banner-renderer",function(){if(QrF!==void 0)return QrF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return QrF=l},{mode:_.Wf("kevlar_poly_si_batch_j070")?1:2});var x2u;var vZ=function(){var l=_.B.apply(this,arguments)||this;l.modernPanels=_.a("kevlar_watch_modern_panels");l.buttonUpdate=_.a("web_modern_buttons");l.adsSemanticText=_.a("enable_ads_web_ep_buenos_aires_and_padding_fix");return l};
_.m(vZ,_.B);vZ.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.L([_.T(),_.q("design:type",Object)],vZ.prototype,"data",void 0);_.L([_.T({computed:"computeHideDefaultAdBadge(data)"}),_.q("design:type",Boolean)],vZ.prototype,"hideDefaultAdBadge",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],vZ.prototype,"modernPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],vZ.prototype,"buttonUpdate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],vZ.prototype,"adsSemanticText",void 0);
_.L([_.U({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],vZ);
_.Y(vZ,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(x2u!==void 0)return x2u;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return x2u=l},{mode:1});var lXf;var NK=function(){var l=_.B.apply(this,arguments)||this;l.darkerPanels=_.a("web_watch_darker_panels");l.enableSqueezebackPanels=_.a("web_shorts_enable_squeezeback_panels");l.enableAnchoredPanel=_.a("desktop_shorts_v2_anchored_panel");l.modernPanels=_.a("kevlar_watch_modern_panels");l.headerClickListener=function(e){l.onHeaderClick(e)};
l.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return l};
_.m(NK,_.B);_.X=NK.prototype;_.X.computeAdsInfoButton=function(){if(_.a("web_modern_buttons")){var l,e;return(e=_.I((l=this.data)==null?void 0:l.subtitleComplex,WN3))==null?void 0:e.adInfoRenderer}};
_.X.updateHeaderClickListener=function(){var l,e,O;((l=this.data)==null?0:l.navigationEndpoint)||((e=this.data)==null?0:e.onClickCommand)||_.I((O=this.data)==null?void 0:O.visibilityButton,_.hK)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.X.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}}}}}};
_.X.collapsedChanged=function(){var l;(l=this.data)!=null&&l.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.a("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.X.focus=function(l){this.titleElement&&_.OW(this.titleElement,l)};
_.X.computeTitleAriaLabel=function(l){var e=[];if(l.title){var O,E;e.push(this.ytRendererBehavior.getSimpleString(l.title)||((O=l.title.accessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label))}l.contextualInfo&&e.push(this.ytRendererBehavior.getSimpleString(l.contextualInfo));return e.join(" ")};
_.X.onHeaderClick=function(l){this.shouldTriggerHeaderClick(l)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.wQ(this.hostElement,[this.data.onClickCommand],this.hostElement)):(l=this.getVisibilityToggleButton())&&l.click())};
_.X.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var l=_.I(this.data.visibilityButton,_.YU)||_.I(this.data.visibilityButton,_.hK);l&&this.ytRendererBehavior.logExplicitClick(l)}};
_.X.getVisibilityToggleButton=function(){var l=_.ud(this.hostElement).querySelector("#visibility-button").firstElementChild;return(l==null?void 0:l.is)==="ytd-toggle-button-renderer"?l:null};
_.X.shouldTriggerHeaderClick=function(l){return!_.Eh(_.ey(l),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.X.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(l){l=_.I(l,_.zZC);this.targetId&&(l==null?void 0:l.targetId)===this.targetId&&(l=l.navigationButton)&&this.set("data.navigationButton",l)};
_.Ji.Object.defineProperties(NK.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.a("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var l;return!!(((l=this.entity)==null?0:l.isActionButtonHidden)||this.hideActionButton)}}});
NK.prototype.collapsedChanged=NK.prototype.collapsedChanged;NK.prototype.updateHeaderClickListener=NK.prototype.updateHeaderClickListener;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],NK.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],NK.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NK.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],NK.prototype,"targetId",void 0);_.L([_.T(),_.q("design:type",Boolean)],NK.prototype,"collapsed",void 0);_.L([_.T(),_.q("design:type",Boolean)],NK.prototype,"hideActionButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],NK.prototype,"shortsPanel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],NK.prototype,"liveChatEngagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NK.prototype,"darkerPanels",void 0);_.L([_.aB("#title"),_.q("design:type",HTMLElement)],NK.prototype,"titleElement",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],NK.prototype,"headerElement",void 0);_.L([_.T({computed:"computeAdsInfoButton(data)"}),_.q("design:type",Object)],NK.prototype,"adsInfoButton",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NK.prototype,"enableSqueezebackPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NK.prototype,"enableAnchoredPanel",void 0);_.L([_.T({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(l,e){return _.wV(l.entities,"engagementPanelTitleHeaderEntity",e)}}),
_.q("design:type",Object)],NK.prototype,"entity",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NK.prototype,"modernPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("targetId"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],NK.prototype,"adsSemanticText",null);_.L([_.AA("data","data.navigationEndpoint","data.onClickCommand"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NK.prototype,"updateHeaderClickListener",null);
_.L([_.y0("collapsed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NK.prototype,"collapsedChanged",null);_.L([_.R("entity","hideActionButton"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],NK.prototype,"isActionButtonHidden",null);_.L([_.U({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],NK);
_.Y(NK,"ytd-engagement-panel-title-header-renderer",function(){if(lXf!==void 0)return lXf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return lXf=l},{mode:1});var eV3;var rD=function(){return _.B.apply(this,arguments)||this};
_.m(rD,_.B);rD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rD.prototype,"data",void 0);_.L([_.U({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],rD);
_.Y(rD,"ytd-macro-markers-info-item-renderer",function(){if(eV3!==void 0)return eV3;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return eV3=l},{mode:1});var O$o;var XzF=function(l,e,O,E,J,z){_.y6.call(this);var M=this;this.JSC$20167_containerElement=l;this.hostElement=e;this.supportedSyncItems=O;this.syncEntityKey=E;this.options=J;this.renderLazyListItems=z;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;EQ4(this);J_4(this);this.JSC$20167_scrollAnimation=new _.RZ(function(Z){l.scrollTop=Z});
_.oQ(this,this.JSC$20167_scrollAnimation);this.addOnDisposeCallback(function(){M.exitBrowsingMode(!1);M.activeItem&&M.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.m(XzF,_.y6);var EQ4=function(l){var e=_.kw(_.V2().resolve(_.LQ),function(O){return O.entities.markersEngagementPanelSyncEntity||{}},function(O,E){var J;
O[l.syncEntityKey]!==E[l.syncEntityKey]&&((J=O[l.syncEntityKey])==null?void 0:J.activeItemIndex)!==void 0&&l.updatePanelActiveItem(O[l.syncEntityKey].activeItemIndex)});
l.unsubscribeFromTimedMarkersListSyncEntity=e;l.addOnDisposeCallback(e);zVo(l)},zVo=function(l){var e=_.V2().resolve(_.LQ);
e=_.wlt(e.getState(),l.syncEntityKey);(e==null?void 0:e.activeItemIndex)!==void 0&&(e=l.getItemByIndex(e.activeItemIndex))&&l.setActiveItem(e)},J_4=function(l){var e=new _.b3(l.onScroll,50,l);
_.oQ(l,e);var O=function(){e.fire()};
l.JSC$20167_containerElement.addEventListener("scroll",O);l.addOnDisposeCallback(function(){l.JSC$20167_containerElement.removeEventListener("scroll",O)})};
_.X=XzF.prototype;
_.X.updatePanelActiveItem=function(l){var e=this.getItemByIndex(l);if(e){if(this.setActiveItem(e),this.contentVisible)if(this.browsingMode){var O;((O=this.options)==null?void 0:O.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(l=b$i(this),e.offsetTop<this.JSC$20167_containerElement.clientHeight+this.JSC$20167_containerElement.scrollTop&&l&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));M_u(this)}else this.scrollToItem(e)}else _.hG(new _.Hk("Could not find "+this.supportedSyncItems+
" sync child to set active.",l,this.JSC$20167_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.X.getItemByIndex=function(l){var e;(e=this.renderLazyListItems)==null||e.call(this,l);e=this.JSC$20167_containerElement.querySelectorAll(this.supportedSyncItems);if(e.length>l)return e[l]};
_.X.setActiveItem=function(l){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));l.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=l};
_.X.scrollToItem=function(l){l=this.getScrollPositionForItem(l);this.JSC$20167_containerElement.scrollTop!==l&&this.JSC$20167_scrollAnimation.start(this.JSC$20167_containerElement.scrollTop,l,300)};
_.X.getScrollPositionForItem=function(l){if(this.JSC$20167_containerElement.querySelectorAll(this.supportedSyncItems)[0]===l)return 0;var e,O=((e=this.options)==null?0:e.percentOffset)?this.JSC$20167_containerElement.clientHeight*this.options.percentOffset:0;l=_.Fe(l).y+this.JSC$20167_containerElement.scrollTop-(_.Fe(this.JSC$20167_containerElement).y+O);return Math.max(0,Math.min(l,this.JSC$20167_containerElement.scrollHeight-this.JSC$20167_containerElement.offsetHeight))};
_.X.onScroll=function(){this.activeItemBelowSyncPosition=b$i(this);if(this.activeItem&&!this.JSC$20167_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20167_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var l;switch((l=this.options)==null?void 0:l.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!V_4(this));M_u(this);break;default:this.enterBrowsingMode(!0)}}};
_.X.enterBrowsingMode=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1){if(e.browsingMode)return J.return();e.browsingMode=!0;l&&e.hostElement.classList.add("browsing-mode");e.playerExitBrowsingModeListener=function(){e.exitBrowsingMode(!1)};
return _.C(J,_.dC(),2)}O=J.yieldResult;(E=O)==null||E.addEventListener("SEEK_TO",e.playerExitBrowsingModeListener);_.Cl(J)})};
_.X.exitBrowsingMode=function(l){l=l===void 0?!0:l;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),l&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.X.removePlayerSeekListener=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1)return l.playerExitBrowsingModeListener?_.C(E,_.dC(),3):E.jumpTo(0);e=E.yieldResult;(O=e)==null||O.removeEventListener("SEEK_TO",l.playerExitBrowsingModeListener);l.playerExitBrowsingModeListener=void 0;_.Cl(E)})};
var M_u=function(l){var e;((e=l.options)==null?void 0:e.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(V_4(l)?l.hostElement.classList.remove("browsing-mode"):l.activeItem&&l.hostElement.classList.add("browsing-mode"))},b$i=function(l){if(!l.activeItem)return!1;
var e,O=((e=l.options)==null?0:e.percentOffset)?l.JSC$20167_containerElement.clientHeight*l.options.percentOffset:0;return l.activeItem.offsetTop>=l.JSC$20167_containerElement.scrollTop+O},V_4=function(l){if(!l.activeItem)return!1;
var e=l.activeItem.offsetTop+14<=l.JSC$20167_containerElement.scrollTop+l.JSC$20167_containerElement.clientHeight;return l.activeItem.offsetTop+l.activeItem.clientHeight-14>=l.JSC$20167_containerElement.scrollTop&&e};
XzF.prototype.panelContentVisibleChanged=function(l){(this.contentVisible=l)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Z$u=function(l,e){l.syncEntityKey=e;var O;(O=l.unsubscribeFromTimedMarkersListSyncEntity)==null||O.call(l);EQ4(l)},uoh=function(l,e){l.options=e};var DM=function(){var l=_.B.apply(this,arguments)||this;l.browsingMode=!1;l.modern=_.a("web_button_rework");l.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return l};
_.m(DM,_.B);_.X=DM.prototype;_.X.activeItemChanged=function(){if(!_.a("synced_panel_scrolling_controller")){var l;((l=this.syncEntity)==null?void 0:l.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.X.created=function(){var l=this;_.a("synced_panel_scrolling_controller")||(this.JSC$20171_scrollAnimation=new _.RZ(function(e){l.contents.scrollTop=e}),this.boundExitBrowsingMode=function(){l.exitBrowsingMode(!1)})};
_.X.detached=function(){if(_.a("synced_panel_scrolling_controller")){var l;(l=this.scrollController)==null||l.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.X.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"}}}};
_.X.dataChanged=function(){var l=this;_.a("synced_panel_scrolling_controller")?_.OK(this,function(){if(l.scrollController){var e;(e=l.scrollController)==null||e.exitBrowsingMode(!1);var O,E,J;(E=l.scrollController)==null||Z$u(E,(J=(O=l.data)==null?void 0:O.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key");var z,M,Z;(Z=l.scrollController)==null||uoh(Z,{percentOffset:(z=l.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(M=l.data)==null?void 0:M.floatingPillType})}else{var u,
d,g,w;l.scrollController=new XzF(l.contents,l.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(w=(u=l.data)==null?void 0:u.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key",{percentOffset:(d=l.data)==null?void 0:d.selectedItemAlignmentPercentOffset,floatingPillType:(g=l.data)==null?void 0:g.floatingPillType},function(n){l.renderLazyListItems(n)})}l.scrollController.panelContentVisibleChanged(!!l.panelContentVisible)}):this.exitBrowsingMode()};
_.X.computeButtonShape=function(){var l=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){l.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.X.computeSyncEnabled=function(l){return!(l==null||!l.syncButtonLabel)};
_.X.renderLazyListItems=function(l){for(var e=this.contents.children,O=0,E=0;E<e.length;E++){var J=void 0;(J=e[E].ytLazyListBehavior)==null||J.fillRemainingListItems();var z=void 0,M=void 0;J=_.I((z=this.data)==null?void 0:(M=z.contents)==null?void 0:M[E],_.zL6);M=z=void 0;if((z=J)==null?0:(M=z.contents)==null?0:M.length)O+=J.contents.length;if(O>=l)break}};
_.X.getItemByIndex=function(l){this.renderLazyListItems(l);var e=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(e.length>l)return e[l]};
_.X.setActiveItem=function(l){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);l.active!==void 0&&(l.active=!0);this.currentActiveItem=l};
_.X.handleSetActivePanelItemAction=function(l){if((l=_.I(l,Mhi))&&this.panelTargetId===l.panelTargetId){l=l.itemIndex;if(_.a("synced_panel_scrolling_controller")){var e,O;var E=(O=(e=this.data)==null?void 0:e.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key"}else{var J;E=(J=this.data)==null?void 0:J.syncModelEntityKey}if(E){var z;((z=this.syncEntity)==null?void 0:z.activeItemIndex)!==l&&this.ytdReduxBehavior.dispatch(_.IK("markersEngagementPanelSyncEntity",E,{key:E,activeItemIndex:l}))}else this.updatePanelActiveItem(l)}};
_.X.updatePanelActiveItem=function(l){var e=this.getItemByIndex(l);e?(this.setActiveItem(e),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(e)):_.hG(new _.Hk("Could not find ytd-macro-markers-list-renderer sync child to set active.",l,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.X.scrollToItem=function(l){l=this.getScrollPositionForItem(l);this.contents.scrollTop!==l&&this.JSC$20171_scrollAnimation.start(this.contents.scrollTop,l,300)};
_.X.getScrollPositionForItem=function(l){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===l)return 0;l=_.Fe(l).y+this.contents.scrollTop-_.Fe(this.contents).y-this.getStickyHeaderHeight(l);return Math.min(l,this.contents.scrollHeight-this.contents.offsetHeight)};
_.X.getStickyHeaderHeight=function(l){if(l.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var e,O,E;return(E=(e=l.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(O=e.header)==null?void 0:O.offsetHeight)!=null?E:0}return 0};
_.X.onScroll=function(){_.a("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20171_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.X.enterBrowsingMode=function(){var l=this;return _.V(function(e){if(e.nextAddress==1){if(l.browsingMode)return e.return();l.browsingMode=!0;return _.C(e,_.Mc().getPlayerPromise(),2)}l.player=e.yieldResult;l.player.addEventListener("SEEK_TO",l.boundExitBrowsingMode);_.Cl(e)})};
_.X.exitBrowsingMode=function(l){this.browsingMode&&(this.browsingMode=!1,(l===void 0||l)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.X.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.X.onSyncClick=function(){if(_.a("synced_panel_scrolling_controller")){var l;(l=this.scrollController)==null||l.exitBrowsingMode()}else this.exitBrowsingMode()};
_.X.panelContentVisibleChanged=function(){if(_.a("synced_panel_scrolling_controller")){var l;(l=this.scrollController)==null||l.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
DM.prototype.panelContentVisibleChanged=DM.prototype.panelContentVisibleChanged;DM.prototype.dataChanged=DM.prototype.dataChanged;DM.prototype.activeItemChanged=DM.prototype.activeItemChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],DM.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],DM.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],DM.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],DM.prototype,"useCustomColors",void 0);_.L([_.T({computed:"computeSyncEnabled(data)"}),_.q("design:type",Boolean)],DM.prototype,"syncEnabled",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],DM.prototype,"panelTargetId",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],DM.prototype,"panelContentVisible",void 0);_.L([_.aB("#contents"),_.q("design:type",HTMLElement)],DM.prototype,"contents",void 0);_.L([_.aB("#sync-container"),_.q("design:type",HTMLElement)],DM.prototype,"syncContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],DM.prototype,"browsingMode",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],DM.prototype,"modern",void 0);_.L([_.T({selectorArgs:["data.syncModelEntityKey"],selector:_.wlt}),_.q("design:type",Object)],DM.prototype,"syncEntity",void 0);_.L([_.AA("syncEntity.activeItemIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DM.prototype,"activeItemChanged",null);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DM.prototype,"dataChanged",null);_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],DM.prototype,"panelContentVisibleChanged",null);_.L([_.U({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],DM);
_.Y(DM,"ytd-macro-markers-list-renderer",function(){if(O$o!==void 0)return O$o;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return O$o=l},{mode:1});var CC4;var S6=function(){return _.B.apply(this,arguments)||this};
_.m(S6,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],S6.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],S6.prototype,"data",void 0);_.L([_.U({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],S6);
_.Y(S6,"ytd-error-corrections-section-item-renderer",function(){if(CC4!==void 0)return CC4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return CC4=l},{mode:1});var oQ4;var QB=function(){return _.B.apply(this,arguments)||this};
_.m(QB,_.B);QB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],QB.prototype,"data",void 0);_.L([_.U({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],QB);
_.Y(QB,"ytd-error-corrections-section-renderer",function(){if(oQ4!==void 0)return oQ4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return oQ4=l},{mode:1});var $yH;var xB=function(){return _.B.apply(this,arguments)||this};
_.m(xB,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],xB.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xB.prototype,"data",void 0);_.L([_.U({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],xB);
_.Y(xB,"ytd-topic-link-renderer",function(){if($yH!==void 0)return $yH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $yH=l},{mode:1});var WUh;var lf=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("kevlar_modern_sd_v2");l.modernLockupV2=_.a("modernize_structured_description_playlist_lockups_v2");l.modernTypography=_.a("web_modern_typography");return l};
_.m(lf,_.B);lf.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lf.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lf.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lf.prototype,"modernLockupV2",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lf.prototype,"modernTypography",void 0);_.L([_.U({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],lf);
_.Y(lf,"ytd-video-description-course-section-renderer",function(){if(WUh!==void 0)return WUh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return WUh=l},{mode:1});var dyo;var el=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("kevlar_modern_sd_v2");l.modernTypography=_.a("web_modern_typography");return l};
_.m(el,_.B);el.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],el.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],el.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],el.prototype,"modernTypography",void 0);
_.L([_.U({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],el);
_.Y(el,"ytd-video-description-files-section-renderer",function(){if(dyo!==void 0)return dyo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dyo=l},{mode:1});var gQu;var OI=function(){return _.B.apply(this,arguments)||this};
_.m(OI,_.B);OI.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OI.prototype,"data",void 0);_.L([_.U({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],OI);
_.Y(OI,"ytd-video-description-gaming-section-renderer",function(){if(gQu!==void 0)return gQu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return gQu=l},{mode:1});var i$H;var EI=function(){var l=_.B.apply(this,arguments)||this;l.isExpanded=!1;return l};
_.m(EI,_.B);EI.prototype.computeHasDefaultMetadataEndpoint=function(l){var e;l=l==null?void 0:(e=l.defaultMetadata)==null?void 0:e.runs;return!(!l||l.length!==1||!l[0].navigationEndpoint)};
EI.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Ji.Object.defineProperties(EI.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],EI.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],EI.prototype,"isExpanded",void 0);_.L([_.T({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],EI.prototype,"hasDefaultMetadataEndpoint",void 0);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EI.prototype,"isExpandable",null);_.L([_.R("data","isExpandable","isExpanded"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],EI.prototype,"showExpandedMetadata",null);_.L([_.U({is:"ytd-info-row-renderer",disableElementRegistration:!0})],EI);
_.Y(EI,"ytd-info-row-renderer",function(){if(i$H!==void 0)return i$H;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return i$H=l},{mode:1});var wzf;var JO=function(){var l=_.B.apply(this,arguments)||this;l.currentIndex=0;l.supportComponentResize=!0;l.modern=_.a("kevlar_modern_sd_v2");l.JSC$20197_lastScrollContainerWidth=NaN;return l};
_.m(JO,_.B);_.X=JO.prototype;
_.X.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"}}}};
_.X.getItemsPath=function(){return"videoLockups"};
_.X.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.X.onIronResize=function(){this.updateVideoLockupStyles()};
_.X.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.X.updateVideoLockupStyles=function(){var l;this.JSC$20197_scrollContainer!==void 0&&(l=this.videoLockups)!=null&&l.length&&(l=this.JSC$20197_scrollContainer.clientWidth,l!==this.JSC$20197_lastScrollContainerWidth&&(this.JSC$20197_lastScrollContainerWidth=l,_.dP(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(l*.8,415)+"px"}),_.$u(this.hostElement,"iron-resize")))};
_.Ji.Object.defineProperties(JO.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var l=[],e;if((e=this.data)==null||!e.carouselLockups)return l;e=_.b(this.data.carouselLockups);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;((E=_.I(O,GX3))==null?0:E.videoLockup)&&l.push(_.I(O,GX3).videoLockup)}return l}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.videoLockups)==null||!l.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var l=[],e;if((e=this.data)==null||!e.carouselLockups)return l;var O;return(O=_.I(this.data.carouselLockups[this.scrollCount],GX3))==null?void 0:O.infoRows}}});
JO.prototype.dataChanged=JO.prototype.dataChanged;JO.prototype.onIronResize=JO.prototype.onIronResize;JO.prototype.hiddenChanged=JO.prototype.hiddenChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],JO.prototype,"componentBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],JO.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],JO.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],JO.prototype,"inlineStructuredDescription",void 0);_.L([_.T({value:2}),_.q("design:type",Number)],JO.prototype,"initialCount",void 0);_.L([_.T(),_.q("design:type",Object)],JO.prototype,"currentIndex",void 0);
_.L([_.T(),_.q("design:type",Number)],JO.prototype,"scrollCount",void 0);_.L([_.T(),_.q("design:type",Object)],JO.prototype,"supportComponentResize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],JO.prototype,"contentHidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],JO.prototype,"modern",void 0);_.L([_.aB("#scroll-container"),_.q("design:type",HTMLDivElement)],JO.prototype,"JSC$20197_scrollContainer",void 0);
_.L([_.AA("contentHidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JO.prototype,"hiddenChanged",null);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],JO.prototype,"videoLockups",null);_.L([_.R("videoLockups"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],JO.prototype,"hasVideoLockups",null);
_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JO.prototype,"onIronResize",null);_.L([_.R("data","scrollCount"),_.q("design:type",Object),_.q("design:paramtypes",[])],JO.prototype,"infoRows",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JO.prototype,"dataChanged",null);_.L([_.U({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],JO);
_.Y(JO,"ytd-video-description-music-section-renderer",function(){if(wzf!==void 0)return wzf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return wzf=l},{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var A_f;var XX=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("kevlar_modern_sd_v2");l.modernTypography=_.a("web_modern_typography");return l};
_.m(XX,_.B);XX.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.L([_.T({}),_.q("design:type",Object)],XX.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],XX.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],XX.prototype,"modernTypography",void 0);
_.L([_.U({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],XX);
_.Y(XX,"ytd-video-description-transcript-section-renderer",function(){if(A_f!==void 0)return A_f;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return A_f=l},{mode:1});var nQu;_.Zw(_.XO(function(l){var e=_.kD(_.Kpq,function(){return l.data().firstProviderLinkStatusEntityKey}),O=_.kD(_.Kpq,function(){return l.data().secondProviderLinkStatusEntityKey}),E=function(){var J,z;
return((J=e())==null?void 0:J.linked)||((z=O())==null?void 0:z.linked)};
return _.W("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.W(_.zK,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return l.data().sectionTitle}}),_.W(_.zK,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return E()?l.data().connectedMessage:l.data().notConnectedMessage}}),_.W(_.A,{cond:E,
then:function(){return _.W(_.Tn,{data:function(){return l.data().connectedButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.W(_.A,{cond:function(){return!E()},
then:function(){return _.W(_.Tn,{data:function(){return l.data().notConnectedButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Wi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;return _.W("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.W("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.W(_.zK,{text:function(){return e().sectionTitle}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.W(_.zK,{text:function(){return e().bodyHeader}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.W(_.zK,{text:function(){return e().bodyText}})),_.W(_.A,
{cond:function(){return e().attributionText},
then:function(){return _.W("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.W(_.zK,{text:function(){return e().attributionText}}))}}))},"Xi"),"how-this-was-made-section-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){return _.W("yt-video-description-youchat-section-view-model",{class:_.ax("ytVideoDescriptionYouchatSectionViewModelHost")},_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.W(_.zK,{text:function(){return l.data().sectionTitle}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.W(_.zK,{text:function(){return l.data().subHeaderText}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.W(_.hM,{data:function(){return _.I(l.data().primaryButton,
_.Hi)}})))},"Yi"),"yt-video-description-youchat-section-view-model",{props:{data:_.lB}});var zp=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return l};
_.m(zp,_.B);_.X=zp.prototype;
_.X.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}}}}}};
_.X.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.X.dataChanged=function(){var l,e;this.hasDescriptionOnly=!(((l=this.data)==null?void 0:(e=l.items)==null?void 0:e.length)!==1||!_.I(this.data.items[0],BmC))};
_.X.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.X.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.X.autoFocusDescription=function(){var l;((l=_.V2().resolve(_.MG(_.of)))==null?0:l.isKeyBoardInUse())&&this.description&&_.EW(this.description)};
_.X.resize=function(){if(_.a("kevlar_disable_sd_resize"))this.JSC$20205_cardList&&_.$u(this.JSC$20205_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.$u(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.$u(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.X.scrollToSection=function(l){if(l=this.getSectionElement(l))_.Wb(this.hostElement,"yt-scroll-to-watch-element",[l]),l.focus()};
_.X.getSectionElement=function(l){switch(l){case "infocards-item-section":var e;return(e=this.infocardsSection)!=null?e:null;case "transcript-item-section":var O;return(O=this.transcriptSection)!=null?O:null;case "how-this-was-made-section-item-section":var E;return(E=this.howThisWasMadeSection)!=null?E:null;case "files-item-section":var J;return(J=this.filesSection)!=null?J:null;default:return null}};
_.X.handleSetActiveItemAction=function(l){var e=_.I(l,Mhi),O=e&&(e==null?void 0:e.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20205_cardList;if(e&&O){l=this.currentActiveChapter;var E=this.currentActiveProblem;e=O==null?void 0:O.getItemByIndex(e.itemIndex);var J=O=!0;e&&(e.active=!0,e.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(O=l!==e,J=!1,this.currentActiveChapter=e):(e==null?void 0:e.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(O=!1,J=E!==e,this.currentActiveProblem=e));l&&O&&(l.active=!1);E&&J&&(E.active=!1)}};
_.Ji.Object.defineProperties(zp.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.a("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
zp.prototype.onYtExpanderMoreTapped=zp.prototype.onYtExpanderMoreTapped;zp.prototype.onHiddenChanged=zp.prototype.onHiddenChanged;zp.prototype.dataChanged=zp.prototype.dataChanged;zp.prototype.panelContentVisibleChanged=zp.prototype.panelContentVisibleChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],zp.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],zp.prototype,"ironResizableBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zp.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],zp.prototype,"panelContentVisible",void 0);_.L([_.T(),_.q("design:type",Boolean)],zp.prototype,"hasDescriptionOnly",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],zp.prototype,"inlineStructuredDescription",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],zp.prototype,"hidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],zp.prototype,"shortsPanel",void 0);_.L([_.T(),_.q("design:type",Object)],zp.prototype,"videoSummary",void 0);_.L([_.T(),_.q("design:type",Object)],zp.prototype,"merchShelf",void 0);
_.L([_.R("videoSummary"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],zp.prototype,"showVideoSummary",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],zp.prototype,"engagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],zp.prototype,"watchWhileSdp",void 0);_.L([_.aB("ytd-expandable-video-description-body-renderer"),_.q("design:type",Object)],zp.prototype,"description",void 0);
_.L([_.aB("ytd-horizontal-card-list-renderer"),_.q("design:type",Object)],zp.prototype,"JSC$20205_cardList",void 0);_.L([_.aB("ytd-horizontal-card-list-renderer[center-items]"),_.q("design:type",Object)],zp.prototype,"problemWalkthroughCardList",void 0);_.L([_.aB("ytd-shelf-renderer"),_.q("design:type",Object)],zp.prototype,"shelfSection",void 0);_.L([_.aB("ytd-video-description-music-section-renderer"),_.q("design:type",Object)],zp.prototype,"musicMetadataSection",void 0);
_.L([_.aB("ytd-video-description-infocards-section-renderer"),_.q("design:type",Object)],zp.prototype,"infocardsSection",void 0);_.L([_.aB("ytd-video-description-transcript-section-renderer"),_.q("design:type",Object)],zp.prototype,"transcriptSection",void 0);_.L([_.aB("how-this-was-made-section-view-model"),_.q("design:type",Object)],zp.prototype,"howThisWasMadeSection",void 0);_.L([_.aB("ytd-video-description-files-section-renderer"),_.q("design:type",Object)],zp.prototype,"filesSection",void 0);
_.L([_.AA("panelContentVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zp.prototype,"panelContentVisibleChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zp.prototype,"dataChanged",null);_.L([_.AA("hidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zp.prototype,"onHiddenChanged",null);
_.L([_.wP("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zp.prototype,"onYtExpanderMoreTapped",null);_.L([_.U({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],zp);
_.Y(zp,"ytd-structured-description-content-renderer",function(){if(nQu!==void 0)return nQu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return nQu=l},{mode:2});var aXi;var kUu;var bf=function(){return _.B.apply(this,arguments)||this};
_.m(bf,_.B);bf.prototype.computeAriaLabel=function(l){var e,O;return(l==null?void 0:(e=l.accessibility)==null?void 0:(O=e.accessibilityData)==null?void 0:O.label)||_.ml("LOADING",void 0,"Loading")};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bf.prototype,"data",void 0);_.L([_.T({computed:"computeAriaLabel(data)"}),_.q("design:type",String)],bf.prototype,"ariaLabel",void 0);_.L([_.Ps({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],bf);
_.Y(bf,"yt-content-loading-renderer",function(){if(kUu===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;aXi===void 0&&(aXi=document.createElement("template"));var E=aXi;O.call(e,E.content.cloneNode(!0),l.content.firstChild);kUu=l}l=kUu;return l},{mode:_.Wf("kevlar_poly_si_batch_j043")?1:2});_.Zw(_.XO(function(l){var e=_.b(_.AF(!1,void 0,"WbYeXc")),O=e.next().value,E=e.next().value;e=_.b(_.AF(!1,void 0,"msXkzc"));var J=e.next().value,z=e.next().value;_.sC(function(){var u=_.I(l.data().collaboratePlaylistCollaborationSetting,pMz);u&&E(u.switchedOnByDefault);var d=_.I(l.data().allowNewCollaboratorsPlaylistCollaborationSetting,pMz);d&&z(d.switchedOnByDefault);if(!u&&!d||!u&&l.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")E(!0),z(!0)});
var M=function(u){E(u);z(u);var d=l.data().playlistCollaborationEntityKey||"";var g=_.ls().getState();(g=_.wV(g.entities,"playlistCollaborationEntity",d))&&(g==null?void 0:g.isCollaborative)===u||_.ls().dispatch(_.IK("playlistCollaborationEntity",d,Object.assign({},g,{isCollaborative:u})))},Z=function(u){z(u)};
return _.W("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.Tn,{data:function(){return l.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(u){return _.W(_.J_q,{data:u.data,
onSwitch:M})}})),_.W(_.A,{cond:O,
then:function(){return _.W("div",null,_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.Tn,{data:function(){return l.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(u){return _.W(_.J_q,{data:u.data,
onSwitch:Z,overrideDisabled:!1})}})),_.W(_.A,{cond:J,
then:function(){return _.W("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.W(_.Tn,{data:function(){return l.data().copyLinkButton}},{buttonViewModel:_.hM}))}}),_.W("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.W(_.Tn,{data:function(){return l.data().playlistCollaborators}},{contentListItemViewModel:_.sbf})))}}))},"Zi"),"playlist-collaboration-view-model",{props:{data:_.lB}});var IXO=_.XO(function(l){var e=l.data;var O=l.customCommandResolver;return _.W(_.ZB,null,_.W("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.W(_.Tn,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(E){return _.W(_.Lj0,{data:E.data,
customCommandResolver:O})}})),_.W("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.W(_.A,{cond:function(){return e().headline},
then:function(E){return _.W(_.zK,{text:E,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.W("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.W(_.Tn,{data:function(){return e().adBadge}},{adBadgeViewModel:function(E){return _.W(_.Zi,{data:E.data,
hasDot:function(){return e().primaryDetailsLine!==void 0},
customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.W(_.Tn,{data:function(){return e().primaryDetailsLine}},{adDetailsLineViewModel:function(E){return _.W(_.uo,{data:E.data,
customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"$i"),my4=_.XO(function(l){var e=l.data;
var O=l.customCommandResolver;l=_.e4("ad-avatar-lockup-view-model");_.O6(l,function(){return e().interaction},O);
_.VR(l,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});return _.W("ad-avatar-lockup-view-model",{class:function(){var E;return((E=e().interaction)==null?0:E.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:l,"aria-label":function(){var E,J;return(E=e().interaction)==null?void 0:(J=E.accessibility)==null?void 0:J.label}},_.W(_.cK,null,_.W(_.jD,{when:function(){return e().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.W(IXO,{data:e,
customCommandResolver:O})}),_.W(_.HK,null,function(){return null})))},"aj");_.Zw(_.XO(function(l){var e=l.data;var O=l.panelContentVisibility;l=_.e4("panel-ad-header-image-lockup-view-model");_.O6(l,function(){return e().interaction},kOo);
_.VR(l,{visibilityCallback:function(J){var z,M=(z=e().interaction)==null?void 0:z.onFirstVisible;J&&M&&_.r6(M)},
showOption:_.lo});_.Yo(function(){var J,z;if(z=_.vK("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;z=(M=z())==null?void 0:M.onLayoutVisibleCallback}else z=null;(J=z)==null||J()});
var E=function(){return O()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.W("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:l},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.W(_.A,{cond:_.GOg("(min-width: "+((0,_.cr)()+_.Tw)+"px) or (max-width: 600px)"),then:function(){return _.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(J){return _.W(_.gq,{data:J.data,
targetHeight:80,customCommandResolver:kOo})}})}})),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.W(_.Tn,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(J){return _.W(my4,{data:J.data,
customCommandResolver:kOo})}})),_.W(_.A,{cond:E,
then:function(){return _.W(_.Tn,{data:function(){return e().adButton}},{adButtonViewModel:function(J){return _.W(_.Oz,{data:J.data,
customCommandResolver:kOo})}})},
else:function(){return _.W(_.Tn,{data:function(){return e().menu}},{buttonViewModel:_.hM})}}),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.W(_.Tn,{data:function(){var J=_.I(e().toggleButton,_.ci);
return{toggleButtonViewModel:Object.assign({},J,{isTogglingDisabled:!0,isToggled:E()})}}},{toggleButtonViewModel:_.sh})))))},"bj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.lB,
panelContentVisibility:_.lB}});_.Zw(_.XO(function(l){var e=function(){return _.I(l.data().inputComposerViewModel,KNP)},O=function(){var y;
return((y=e())==null?void 0:y.youchatPendingResponseEntityKey)||""},E=_.kD(_.EYO,O),J=function(){var y;
return!((y=E())==null||!y.isPendingResponse)},z=_.b(_.AF(!0,void 0,"DR0q1d")),M=z.next().value,Z=z.next().value,u=function(){return e().sectionTargetId||"youchat_messages_section"};
z=_.O0("yt-chat-input-view-model");var d=_.e4("textarea"),g=_.kD(C63,"chat_input_view_model_state"),w=otP(),n=function(){var y;return!((y=g())==null||!y.value)};
_.sC(function(){var y;if(!n()&&((y=e())==null?0:y.welcomeFeatureContinuation)){y={continuationCommand:{token:e().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var c,f=String(Math.floor(((c=_.gC())==null?void 0:c.getCurrentTime())||0)*1E3);c={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:f}};_.qT(y,{form:{formData:c}});w(!0)}var P=u(),h;(h=_.V2().resolve(_.MG(_.KQ)))==null||h.addEventListener("yt-navigate-start",function(){_.FZ.remove(P);w(!1)},
{once:!0})});
var k=function(){var y,c,f,P,h,N,t,r,D;return _.V(function(b2){y=d.value.value;d.value.value="";Id4(d.value);c=m_u(u(),y);_.qT(c);f=_.JE0(O());_.r6(((P=e())==null?void 0:P.onSubmitCommand)||{});f(!0);N=String(Math.floor(((h=_.gC())==null?void 0:h.getCurrentTime())||0)*1E3);r={continuationCommand:{token:(t=e())==null?void 0:t.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};D={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:y,playerOffsetMs:N}};_.qT(r,{form:{formData:D},
commandController:{onSuccess:function(){f(!1)},
onServerError:function(){var $V=u();_.qT({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:$V}}]}}});f(!1)}}});
_.Cl(b2)})};
return _.W("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:z},_.W("div",{class:"chatInputViewModelChatInputWrapper"},_.W("form",{class:"chatInputViewModelChatInputForm"},_.W("textarea",{class:"chatInputViewModelChatInput",el:d,"on:keydown":_.pd(function(y){var c=J()||!1;Id4(d.value);c||y.key!=="Enter"||y.shiftKey||(y.preventDefault(),k());return!1}),
"on:keyup":_.pd(function(){Z(d.value.value.length===0);return!1}),
placeholder:function(){var y,c;var f=_.I((c=e())==null?void 0:c.inputFormField,XMu);return f==null?void 0:(y=f.contentProperties)==null?void 0:y.placeholderText},
rows:1}),_.W(_.hM,{data:function(){return _.I(l.data().sendButton,_.Hi)},
onClick:function(y){y.preventDefault();k();Z(d.value.value.length===0)},
buttonOverrides:function(){return{disabled:M()||J()}}})),_.W(_.zK,{className:"chatInputViewModelChatDisclaimer",
text:function(){var y;return(y=_.I(l.data().disclaimer,_.bi0))==null?void 0:y.text}})))},"cj"),"yt-chat-input-view-model",{props:{data:_.lB}});var y_f=["engagement-panel-clip-create","engagement-panel-clip-view"],pzF=0,ML=function(){var l=_.B.apply(this,arguments)||this;var e;l.headerData=(e=l.data)==null?void 0:e.header;l.darkerPanels=_.a("web_watch_darker_panels");l.matchContentTheme=_.a("web_watch_panel_content_match_theme");l.disableAutoFill=!1;l.isFullscreen=!1;l.isTheaterMode=!1;l.modernPanels=_.a("kevlar_watch_modern_panels");l.liveChatReplyPanel=!1;l.enableAnchoredPanel=_.a("desktop_shorts_v2_anchored_panel");l.disableBackdropFilter=
_.a("web_disable_backdrop_filter");l.trackEngagementPanelVisibility=_.a("web_watch_track_engagement_panel_visibility");l.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 l};
_.m(ML,_.B);_.X=ML.prototype;
_.X.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(l){var e;
return(l==null?void 0:(e=l.webComponentHint)==null?void 0:e.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.X.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var l;if((l=this.hostElement.parentElement)==null?0:l.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.X.detached=function(){this.updateTheaterDisablement()};
_.X.showPanel=function(){var l=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.UD.addJob(function(){l.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.X.maybeScrollToItemSection=function(l){var e=this,O,E=l==null?void 0:(O=l.sectionListEngagementPanelExtras)==null?void 0:O.scrollToItemSectionIdentifier;E&&_.UD.addJob(function(){var J;(J=e.sectionListRendererElement)==null||J.scrollToItemSection(E)},8)};
_.X.hidePanel=function(){var l=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.UD.addJob(function(){l.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.X.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.X.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.X.updatePanel=function(l,e,O,E){var J=this;if((l=l==null?void 0:l.engagementPanelSectionListRenderer)||E){if(l){E=l.header;var z=l.content,M=l.footer;(l=l.targetId)&&this.set("data.targetId",l);E&&this.set("data.header",E);z&&this.set("data.content",z);M&&this.set("data.footer",M)}else E&&(l=E.content,z=E.secondaryHeaderContent,(E=E.targetId)&&this.set("data.targetId",E),l&&this.set("data.content",l),z&&(this.secondaryHeaderData=z));this.updateChildVisibilityProperties();if(e){var Z;_.a("kevlar_update_panel_focus_scroll_killswitch")||
(Z={preventScroll:!0});this.focus(Z)}_.OK(this,function(){_.$u(J.hostElement,"yt-refit");J.maybeScrollToItemSection(O)})}};
_.X.computeHeaderData=function(){var l,e=(0,_.mm.unsafeClone)((l=this.data)==null?void 0:l.header);if(e){l=new _.v(Object.keys(e)[0]);var O=_.I(e,l),E=_.I(this.secondaryHeaderData,l);E&&_.Pf(e,l,Object.assign({},E,O))}return e};
_.X.getReloadContinuation=function(){var l,e,O,E=_.b(((l=this.data)==null?void 0:(e=l.content)==null?void 0:(O=e.sectionListRenderer)==null?void 0:O.continuations)||[]);for(l=E.next();!l.done;l=E.next())if(l=l.value,l.reloadContinuationData)return l.reloadContinuationData.continuation};
_.X.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var l;((l=this.data)==null?0:l.targetId)&&(l=this.contentElement.firstElementChild)&&l.setAttribute("panel-target-id",this.data.targetId)};
_.X.forwardPopupClosedToFlowRootRenderer=function(){var l=_.ud(this.hostElement).querySelector("ytd-flow-root-renderer");if(l)l.onPopupClosed()};
_.X.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var l;if(!y_f.includes((l=this.theaterDisablementPanelIdentifier)!=null?l:""))if(l=_.a("web_watch_imax_theater_mode")&&this.isTheaterMode,l=_.a("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||l,_.a("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||l){var e;this.visibility=(e=this.data)==null?void 0:e.visibility;var O;this.trackEngagementPanelVisibility&&((O=this.data)==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var E,J,z,M;this.contentEmpty=!!(((E=this.data)==null?0:(J=E.content)==null?0:J.structuredDescriptionContentRenderer)&&Object.keys((z=this.data)==null?void 0:(M=z.content)==null?void 0:
M.structuredDescriptionContentRenderer).length===0);(e=_.V2().resolve(_.ye))&&e.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.X.isTheaterModeChanged=function(){_.a("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.X.isFullscreenChanged=function(){_.a("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.X.focus=function(l){if(this.header)this.header.focus(l);else{var e;(e=_.ud(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||e.focus(l)}};
_.X.visibilityChanged=function(){if(!_.a("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var l=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=E||!this.lastVisibility,z,M,Z=(z=this.data)==null?void 0:(M=z.identifier)==null?void 0:M.tag,
u;if(((u=this.data)==null?0:u.onShowCommands)&&l&&J)_.wQ(this.hostElement,this.data.onShowCommands,this.hostElement),Z&&_.Om().dispatch(_.oM({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:Z}}));else{var d;((d=this.data)==null?0:d.onHideCommands)&&e&&O&&(_.wQ(this.hostElement,this.data.onHideCommands,this.hostElement),Z&&_.Om().dispatch(_.oM({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:Z}})))}l&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*pzF++));_.a("kevlar_watch_focus_on_engagement_panels")&&
l&&E&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.X.notifyVisibilityChanged=function(l){var e;_.dQ(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,l,(e=this.data)==null?void 0:e.targetId])};
_.X.updateTheaterDisablement=function(){if(!_.a("kevlar_watch_theater_disablement_killswitch")){var l=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&y_f.includes(l)&&!_.a("watch_next_grid_ignore_disallowed_panels")){var e=_.tM(_.Om().getState()),O=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";l!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():O?(this.originalTheaterState===void 0&&(this.originalTheaterState=e,this.theaterDisablementPanelIdentifier=
l),e&&_.Wb(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.X.clearTheaterDisablement=function(){_.Wb(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.X.updateChildVisibilityProperties=function(){this.hostElement||_.a("kevlar_panel_property_init_killswitch")||this._enableProperties();var l=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=l);var e,O=(e=this.headerElement)==null?void 0:e.firstElementChild;if(O&&!this.adHeaderImageLockupViewModel){e=l==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";O.collapsed=e;O=_.ud(O).querySelector("#visibility-button");if(!O)return;(O=O.firstElementChild)&&
O.polymerController.is==="ytd-toggle-button-renderer"&&O.polymerController.data.isToggled!==e&&O.polymerController.set("data.isToggled",e)}var E;if(e=(E=this.contentElement)==null?void 0:E.firstElementChild)if(l&&l!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")e.removeAttribute("panel-content-visible");else{e.setAttribute("panel-content-visible","");var J;(J=e.markDirty)==null||J.call(e)}};
_.X.onYtChangeEngagementPanelVisibilityAction=function(l){var e=this,O,E=(O=this.data)==null?void 0:O.targetId,J,z,M;O=((J=this.data)==null?void 0:(z=J.identifier)==null?void 0:z.tag)||((M=this.data)==null?void 0:M.panelIdentifier);var Z=_.I(l,_.$3q),u;l=E&&(Z==null?void 0:Z.targetId)===E||O&&(Z==null?void 0:(u=Z.panelIdentifier)==null?void 0:u.tag)===O;this.dialog&&l&&(Z==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(E==="engagement-panel-comments-section"?_.Wb(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Wb(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",O]));!_.a("kevlar_use_engagement_panel_management_component")&&l&&(E=Z.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!E?_.UD.addJob(function(){e.visibility=Z.visibility},2,this.hideDelayMs):this.visibility=Z.visibility,Z.visibility&&this.notifyVisibilityChanged(Z.visibility))};
_.X.onYtScrollToEngagementPanelCommand=function(l){var e,O=(e=this.data)==null?void 0:e.targetId,E,J,z;e=((E=this.data)==null?void 0:(J=E.identifier)==null?void 0:J.tag)||((z=this.data)==null?void 0:z.panelIdentifier);l=_.I(l,_.m3x);var M;(O&&(l==null?void 0:l.targetId)===O||e&&(l==null?void 0:(M=l.panelIdentifier)==null?void 0:M.tag)===e)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Wb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.X.attachVEs=function(l){var e,O;(l==null?0:(e=l.content)==null?0:(O=e.productListRenderer)==null?0:O.trackingParams)&&_.yN().graftServerVe(l.content.productListRenderer.trackingParams);var E,J;(l==null?0:(E=l.content)==null?0:(J=E.transcriptRenderer)==null?0:J.trackingParams)&&_.yN().graftServerVe(l.content.transcriptRenderer.trackingParams)};
_.X.onYtUpdateEngagementPanelAction=function(l){var e,O=(e=this.data)==null?void 0:e.targetId;l=_.I(l,Zsf);O&&(l==null?void 0:l.targetId)===O&&(this.updatePanel({engagementPanelSectionListRenderer:{header:l==null?void 0:l.header,content:l==null?void 0:l.content}},!1),this.attachVEs(l))};
_.X.onYtShowEngagementPanelScrimAction=function(l){var e,O=(e=this.data)==null?void 0:e.targetId;l=_.I(l,Vh3);O&&(l==null?void 0:l.engagementPanelTargetId)===O&&(this.scrimmed=!0)};
_.X.onYtHideEngagementPanelScrimAction=function(l){var e,O=(e=this.data)==null?void 0:e.targetId;l=_.I(l,bsP);O&&(l==null?void 0:l.engagementPanelTargetId)===O&&(this.scrimmed=!1)};
_.X.getIdentifier=function(){var l,e,O;return((l=this.data)==null?void 0:l.panelIdentifier)||((e=this.data)==null?void 0:(O=e.identifier)==null?void 0:O.tag)};
_.X.getSurface=function(){var l,e;return(l=this.data)==null?void 0:(e=l.identifier)==null?void 0:e.surface};
_.Ji.Object.defineProperties(ML.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var l=this.getIdentifier();return l==="engagement-panel-youchat"||l==="PAyouchat"}}});
ML.prototype.visibilityChanged=ML.prototype.visibilityChanged;ML.prototype.isFullscreenChanged=ML.prototype.isFullscreenChanged;ML.prototype.isTheaterModeChanged=ML.prototype.isTheaterModeChanged;ML.prototype.dataChanged=ML.prototype.dataChanged;ML.prototype.forwardPopupClosedToFlowRootRenderer=ML.prototype.forwardPopupClosedToFlowRootRenderer;ML.prototype.onYtRendererstamperFinished=ML.prototype.onYtRendererstamperFinished;
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ML.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ML.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],ML.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ML.prototype,"data",void 0);
_.L([_.T({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.q("design:type",Object)],ML.prototype,"headerData",void 0);_.L([_.T(),_.q("design:type",Object)],ML.prototype,"secondaryHeaderData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"visibility",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"contentEmpty",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"scrimmed",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"dialog",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"dropdown",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"darkerPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"matchContentTheme",void 0);_.L([_.T(),_.q("design:type",Object)],ML.prototype,"disableAutoFill",void 0);
_.L([_.T({reflectToAttribute:!0,value:_.a("optimal_reading_width_comments_ep")}),_.q("design:type",Boolean)],ML.prototype,"optimalReadingWidthComments",void 0);_.L([_.T(),_.q("design:type",Number)],ML.prototype,"hideDelayMs",void 0);_.L([_.T({selector:_.qc,reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"isFullscreen",void 0);_.L([_.T({selector:_.tM,reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"isTheaterMode",void 0);
_.L([_.T(),_.q("design:type",Number)],ML.prototype,"showDelayMs",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.targetId"),_.q("design:type",Object),_.q("design:paramtypes",[])],ML.prototype,"targetId",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ML.prototype,"webSize",null);_.L([_.T(),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ML.prototype,"hideFooterBorder",null);
_.L([_.T(),_.q("design:type",Object)],ML.prototype,"isWatch",void 0);_.L([_.T(),_.q("design:type",Object)],ML.prototype,"originalTheaterState",void 0);_.L([_.T(),_.q("design:type",Object)],ML.prototype,"theaterDisablementPanelIdentifier",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"modernPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"isWatchWhilePanel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"shortsPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ML.prototype,"liveChatEngagementPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"liveChatReplyPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"enableAnchoredPanel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ML.prototype,"disableBackdropFilter",void 0);_.L([_.T(),_.q("design:type",Object)],ML.prototype,"trackEngagementPanelVisibility",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],ML.prototype,"headerElement",void 0);_.L([_.aB("#header > *"),_.q("design:type",HTMLElement)],ML.prototype,"header",void 0);_.L([_.aB("ytd-section-list-renderer"),_.q("design:type",Object)],ML.prototype,"sectionListRendererElement",void 0);
_.L([_.aB("panel-ad-header-image-lockup-view-model"),_.q("design:type",HTMLElement)],ML.prototype,"adHeaderImageLockupViewModel",void 0);_.L([_.aB("#content"),_.q("design:type",HTMLElement)],ML.prototype,"contentElement",void 0);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"onYtRendererstamperFinished",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.L([_.y0("data","isFullscreen","isTheaterMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"dataChanged",null);_.L([_.AA("isTheaterMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"isTheaterModeChanged",null);
_.L([_.AA("isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"isFullscreenChanged",null);_.L([_.AA("visibility"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ML.prototype,"visibilityChanged",null);_.L([_.U({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],ML);
_.Y(ML,"ytd-engagement-panel-section-list-renderer",function(){if(ScP!==void 0)return ScP;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ScP=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var KUi;var VO=function(){var l=_.B.apply(this,arguments)||this;l.lastRenderedPanelIds=new Set;l.visiblePanels=[];l.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return l};
_.m(VO,_.B);_.X=VO.prototype;_.X.dataChanged=function(){if(this.data){for(var l=[],e=_.b(this.data),O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0,J=void 0,z=(E=O)==null?void 0:(J=E.engagementPanelSectionListRenderer)==null?void 0:J.visibility;J=E=void 0;((E=O)==null?0:(J=E.engagementPanelSectionListRenderer)==null?0:J.targetId)&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&l.push(O)}this.visiblePanels=l}else this.visiblePanels=[]};
_.X.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}}};
_.X.withoutVisiblePanelById=function(l){return this.visiblePanels.filter(function(e){var O;return((O=e.engagementPanelSectionListRenderer)==null?void 0:O.targetId)!==l})};
_.X.onYtChangeEngagementPanelVisibilityAction=function(l){var e=this,O=_.I(l,_.$3q);if(this.data&&(O==null?0:O.targetId)&&(O==null?0:O.visibility)){var E,J=(E=this.data.find(function(M){var Z;return((Z=M.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)===O.targetId}))==null?void 0:E.engagementPanelSectionListRenderer;
if(J){var z=this.withoutVisiblePanelById(O.targetId);O.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(l=this.data.find(function(M){var Z;return((Z=M.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)===O.targetId}))&&(z=[l].concat(_.kA(z)));
this.hideDelayMs&&O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z.length===0?_.UD.addJob(function(){J.visibility=O.visibility;e.visiblePanels=z},10,this.hideDelayMs):(J.visibility=O.visibility,this.visiblePanels=z);
_.dQ(this.hostElement,"yt-engagement-panels-visible-changed",[z])}}};
_.X.onRendererstamperFinished=function(){var l=new Set(this.visiblePanels.map(function(e){var O;return(O=e.engagementPanelSectionListRenderer)==null?void 0:O.targetId}));
this.handlePanelVisibilityChange(l,this.lastRenderedPanelIds);this.lastRenderedPanelIds=l};
_.X.handlePanelVisibilityChange=function(l,e){l=l===void 0?new Set:l;e=e===void 0?new Set:e;if(this.data)for(var O=_.b(this.data),E=O.next();!E.done;E=O.next()){E=E.value;var J=void 0,z=void 0,M=(J=E)==null?void 0:(z=J.engagementPanelSectionListRenderer)==null?void 0:z.targetId;if(M&&(J=e.has(M),z=l.has(M),M=void 0,!J&&z?(z=J=void 0,M=(J=E)==null?void 0:(z=J.engagementPanelSectionListRenderer)==null?void 0:z.onShowCommands):J&&!z&&(z=J=void 0,M=(J=E)==null?void 0:(z=J.engagementPanelSectionListRenderer)==
null?void 0:z.onHideCommands),M))for(E=_.b(M),M=E.next();!M.done;M=E.next())this.ytComponentBehavior.resolveCommand(M.value)}};
VO.prototype.onRendererstamperFinished=VO.prototype.onRendererstamperFinished;VO.prototype.dataChanged=VO.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],VO.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],VO.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],VO.prototype,"lastRenderedPanelIds",void 0);_.L([_.T(),_.q("design:type",Number)],VO.prototype,"hideDelayMs",void 0);_.L([_.T(),_.q("design:type",Array)],VO.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Array)],VO.prototype,"visiblePanels",void 0);_.L([_.T(),_.q("design:type",Boolean)],VO.prototype,"isWatchWhilePanel",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VO.prototype,"dataChanged",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],VO.prototype,"onRendererstamperFinished",null);_.L([_.U({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],VO);
_.Y(VO,"ytd-watch-engagement-panels",function(){if(KUi!==void 0)return KUi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return KUi=l},{mode:1});var jjz;var Z0=function(){return _.B.apply(this,arguments)||this};
_.m(Z0,_.B);Z0.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Ye(_.ud(this.hostElement).querySelector("#text"),_.aW1(_.mA1,this.data.companionLegalText))};
Z0.prototype.computeAutoScrollEnabled=function(l,e){return l&&!e};
Z0.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Z0.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Z0.prototype.expandedChanged=Z0.prototype.expandedChanged;Z0.prototype.dataChanged=Z0.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.axC),_.q("design:type",Object)],Z0.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Z0.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Z0.prototype,"expanded",void 0);
_.L([_.T({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.q("design:type",Boolean)],Z0.prototype,"autoScrollEnabled",void 0);_.L([_.T(),_.q("design:type",String)],Z0.prototype,"expanderIcon",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z0.prototype,"dataChanged",null);
_.L([_.AA("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z0.prototype,"expandedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Z0);
_.Y(Z0,"ytd-companion-legal-text-renderer",function(){if(jjz!==void 0)return jjz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return jjz=l},{mode:1});var H$F;var uf=function(){var l=_.B.apply(this,arguments)||this;l.buttonUpdate=_.a("web_modern_buttons");l.kevlarWatchGrid=_.a("kevlar_watch_grid");l.centerAlignDescription=_.a("action_companion_center_align_description");l.truncateDomain=_.a("action_companion_truncate_domain");return l};
_.m(uf,_.B);_.X=uf.prototype;_.X.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.X.getOnLayoutVisibleCallback=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
_.X.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",uf.JSC$20252_DEFAULT_AD_BADGE_RENDERER);var l=this.getOnLayoutVisibleCallback();l&&l()}};
_.X.getButtonRenderer=function(l){return l.actionButton&&_.I(l.actionButton,_.YU)?(delete _.I(l.actionButton,_.YU).navigationEndpoint,_.I(l.actionButton,_.YU)):{}};
_.X.onClick=function(l){var e=this;if((!_.a("web_modern_buttons")||!_.Eh(_.ey(l),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){l=_.bV();var O=this.getLayoutId();l&&O&&_.a("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?l.getPlayerPromise().then(function(E){(new _.Kw(E)).executeCommand(e.data.navigationEndpoint,O)}):_.a("kevlar_companion_resolve_command_killswitch")?_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Wb(this.hostElement,"yt-companion-ad-clicked",["action-companion",O])}};
_.Ji.Object.defineProperties(uf.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?0:(e=l.detailsLine)==null?0:(O=e.adRating)==null?0:O.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 l,e,O,E;return((l=this.data)==null?0:(e=l.detailsLine)==null?0:(O=e.adRating)==null?0:(E=O.ratingIcon)==null?0:E.iconType)?_.w6(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return((l=this.data)==null?0:(e=l.detailsLine)==null?0:(O=e.texts)==null?0:(E=O[0])==null?0:E.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 l,e;return((l=this.data)==null?0:(e=l.description)==null?0:e.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var l=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return l?l.indexOf("/default_banner")!==-1:!0}}});
uf.prototype.onClick=uf.prototype.onClick;uf.prototype.dataChanged=uf.prototype.dataChanged;uf.JSC$20252_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ml("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],uf.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uf.prototype,"rendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],uf.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],uf.prototype,"buttonUpdate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],uf.prototype,"kevlarWatchGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],uf.prototype,"centerAlignDescription",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],uf.prototype,"truncateDomain",void 0);
_.L([_.T({computed:"computeButtonOverride(buttonUpdate)"}),_.q("design:type",Object)],uf.prototype,"buttonOverride",void 0);_.L([_.R("data.detailsLine.adRating.ratingText"),_.q("design:type",Object),_.q("design:paramtypes",[])],uf.prototype,"getRating",null);_.L([_.R("getRating"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uf.prototype,"computeRatingHidden",null);
_.L([_.R("data.detailsLine.adRating.ratingIcon.iconType"),_.q("design:type",Object),_.q("design:paramtypes",[])],uf.prototype,"iconType",null);_.L([_.R("data.detailsLine.texts.0.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],uf.prototype,"getDetailsLine",null);_.L([_.R("getDetailsLine"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uf.prototype,"computeDetailsLineHidden",null);
_.L([_.R("data.description.text"),_.q("design:type",Object),_.q("design:paramtypes",[])],uf.prototype,"getDescriptionText",null);_.L([_.R("getDescriptionText"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uf.prototype,"computeDescriptionTextHidden",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uf.prototype,"interactionLoggingClientData",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uf.prototype,"hideBanner",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uf.prototype,"dataChanged",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],uf.prototype,"onClick",null);_.L([_.U({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],uf);
_.Y(uf,"ytd-action-companion-ad-renderer",function(){if(H$F!==void 0)return H$F;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return H$F=l},{mode:_.Wf("kevlar_poly_si_batch_j067")?1:2});var c_h;var FUC;var CD=function(){var l=_.B.apply(this,arguments)||this;l.buttonUpdate=_.a("web_modern_buttons");l.hideLegacyBanner=_.a("enable_dsa_one_click_ata_translators_infeed_elements");l.adInfoButtonStyle="mono";l.adInfoButtonType="text";l.noDotAdBadge=!0;return l};
_.m(CD,_.B);_.X=CD.prototype;_.X.getOnLayoutVisibleCallback=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
_.X.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 l=this.data.image.thumbnail.thumbnails[0];this.imageSrc=l.url?_.nU(l.url):void 0;this.imageWidth=l.width||0;this.imageHeight=l.height||0}this.data.clickthroughEndpoint&&_.I(this.data.clickthroughEndpoint,_.Db)&&(l=_.I(this.data.clickthroughEndpoint,_.Db).url,_.a("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
l||"":l?(l=_.nU(l),this.clickThroughUrl=_.W2(l)):this.clickThroughUrl=void 0);(l=this.getOnLayoutVisibleCallback())&&l()}};
_.X.onClick=function(l){_.Eh(_.ey(l),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(l)};
_.X.handleClick=function(){var l=this;this.data&&this.data.clickthroughEndpoint&&(_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(e){l.macroReplacementBehavior.sendServiceRequestAction([e])}),_.Wb(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.X.onLoad=function(){_.dQ(this.hostElement,"yt-refit-popups-action")};
_.Ji.Object.defineProperties(CD.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.interactionLoggingClientData:null}}});
CD.prototype.onLoad=CD.prototype.onLoad;CD.prototype.onClick=CD.prototype.onClick;CD.prototype.dataChanged=CD.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CD.prototype,"rendererBehavior",void 0);_.L([_.K(JSf.YtMacroReplacementBehavior),_.q("design:type",Object)],CD.prototype,"macroReplacementBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CD.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CD.prototype,"buttonUpdate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CD.prototype,"hideLegacyBanner",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CD.prototype,"adInfoButtonStyle",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CD.prototype,"adInfoButtonType",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],CD.prototype,"macros",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],CD.prototype,"interactionLoggingClientData",null);_.L([_.T(),_.q("design:type",String)],CD.prototype,"clickThroughUrl",void 0);_.L([_.T(),_.q("design:type",_.CU)],CD.prototype,"imageSrc",void 0);_.L([_.T(),_.q("design:type",Number)],CD.prototype,"imageWidth",void 0);_.L([_.T(),_.q("design:type",Number)],CD.prototype,"imageHeight",void 0);_.L([_.T(),_.q("design:type",Object)],CD.prototype,"noDotAdBadge",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CD.prototype,"dataChanged",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],CD.prototype,"onClick",null);_.L([_.wP("load"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],CD.prototype,"onLoad",null);_.L([_.U({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],CD);
_.Y(CD,"ytd-image-companion-renderer",function(){if(FUC!==void 0)return FUC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return FUC=l},{mode:_.Wf("kevlar_poly_si_batch_j067")?1:2});var fX4;var ow=function(){return _.B.apply(this,arguments)||this};
_.m(ow,_.B);_.X=ow.prototype;_.X.dataChanged=function(){this.set("data.adBadge",ow.JSC$20261_DEFAULT_AD_BADGE_RENDERER);if(this.data){var l=this.getOnLayoutVisibleCallback();l&&l()}};
_.X.getOnLayoutVisibleCallback=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.onLayoutVisibleCallback:null};
_.X.getLayoutId=function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
_.X.onCompanionClicked=function(l){this.data&&(l.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Wb(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.X.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var l=_.bV(),e=this.getLayoutId(),O=this.data.clickToAdvSiteEndpoint;l&&e&&_.a("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?l.getPlayerPromise().then(function(E){(new _.Kw(E)).executeCommand(O,e)}):_.$u(this.hostElement,"yt-navigate",{endpoint:O})}};
_.X.sendTrackingPings=function(l){if(l&&l.length!==0&&l[0].loggingUrls&&(l=l[0].loggingUrls.map(this.getBaseUrl)))for(var e=0;e<l.length;e++)_.St(l[e])};
_.X.getBaseUrl=function(l){return l.baseUrl||""};
_.Ji.Object.defineProperties(ow.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var l=_.vK("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.interactionLoggingClientData:null}}});
ow.prototype.onCompanionClicked=ow.prototype.onCompanionClicked;ow.prototype.dataChanged=ow.prototype.dataChanged;ow.JSC$20261_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ml("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ow.prototype,"data",void 0);_.L([_.aB("#title"),_.q("design:type",HTMLElement)],ow.prototype,"shopTitle",void 0);
_.L([_.y0("data.impressionEndpoints"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ow.prototype,"dataChanged",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ow.prototype,"interactionLoggingClientData",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],ow.prototype,"onCompanionClicked",null);
_.L([_.U({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],ow);
_.Y(ow,"ytd-shopping-companion-renderer",function(){if(fX4!==void 0)return fX4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return fX4=l},{mode:1});_.Zw(_.XO(function(l){var e=l.data;var O=_.e4("banner-image-layout-view-model");_.O6(O,function(){return e().interaction},y44);
_.VR(O,{visibilityCallback:function(E){var J,z=(J=e().interaction)==null?void 0:J.onFirstVisible;E&&z&&_.r6(z)},
showOption:_.lo});_.Yo(function(){var E,J;J=(J=_.vK("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(E=J)==null||E()});
return _.W("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.pd(function(){_.dQ(O.value,"yt-refit-popups-action")}),
el:O,"aria-label":function(){var E,J;return(E=e().interaction)==null?void 0:(J=E.accessibility)==null?void 0:J.label}},_.W("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(E){return _.W(_.gq,{data:E.data,
targetHeight:80,customCommandResolver:y44})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.W(_.Tn,{data:function(){return e().adBadge}},{adBadgeViewModel:function(E){return _.W(_.Zi,{data:E.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.W(_.Tn,{data:function(){return e().menu}},{buttonViewModel:_.hM}))))},"dj"),"banner-image-layout-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;l=_.e4("top-banner-image-text-icon-buttoned-layout-view-model");_.O6(l,function(){return e().interaction},pV4);
_.VR(l,{visibilityCallback:function(O){var E,J=(E=e().interaction)==null?void 0:E.onFirstVisible;O&&J&&_.r6(J)},
showOption:_.lo});_.Yo(function(){var O,E;E=(E=_.vK("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.onLayoutVisibleCallback:null;(O=E)==null||O()});
return _.W("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:l},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.W(_.Tn,{data:function(){return e().adImage}},{adImageViewModel:function(O){return _.W(_.gq,{data:O.data,
targetHeight:80,customCommandResolver:pV4})}})),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.W(_.Tn,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(O){return _.W(my4,{data:O.data,
customCommandResolver:pV4})}})),_.W(_.Tn,{data:function(){return e().adButton}},{adButtonViewModel:function(O){return _.W(_.Oz,{data:O.data,
customCommandResolver:pV4})}}),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.W(_.Tn,{data:function(){return e().menu}},{buttonViewModel:_.hM}))))},"ej"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.lB}});var RVH={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"},$b=function(){var l=_.B.apply(this,arguments)||this;l.updateCompanionDataJobId=0;l.contentVideoId=null;l.player=null;l.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return l};
_.m($b,_.B);_.X=$b.prototype;_.X.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:RVH}}};
_.X.attached=function(){var l=this,e=_.bV();e&&e.getPlayerPromise().then(function(O){l.getCachedDataAndListen(O)})};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.X.updateRendererStamper=function(){var l={};if(this.data)for(var e in RVH)if(this.data[e]){l[e]=this.data[e];break}if(this.oneofRenderer!=void 0||Object.keys(l).length)this.oneofRenderer=l};
_.X.getCachedDataAndListen=function(l){var e=this.retrieveCachedCompanionData();e&&Object.keys(e).length&&this.receiveCompanionData(e);this.ytPlayerListenerBehavior.listenToPlayerEvent(l,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=l};
_.X.retrieveCachedCompanionData=function(){return _.Op.yt&&_.Op.yt.www&&_.Op.yt.www.ads&&_.Op.yt.www.ads.eventcache&&_.Op.yt.www.ads.eventcache.getLastCompanionData?_.Op.yt.www.ads.eventcache.getLastCompanionData():null};
_.X.receiveCompanionData=function(l){l&&Object.keys(l).length?(this.contentVideoId=l.contentVideoId,this.setCompanionData(l)):this.setCompanionData(l)};
_.X.setCompanionData=function(l){this.cancelPendingCompanionAdJobs();if(l){this.updateCompanionDataJobId=0;for(var e in RVH)RVH.hasOwnProperty(e)&&(this.data[e]=void 0);l.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",l.shoppingCompanionCarouselRenderer):l.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",l.imageCompanionAdRenderer):l.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",l.actionCompanionAdRenderer),_.dQ(this.hostElement,
"yt-hide-unlimited-offer-module"),_.dQ(this.hostElement,"yt-hide-tvfilm-offer-module")):l.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",l.bannerImageLayoutViewModel):l.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",l.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.X.dataChanged=function(){var l=this,e=_.bV();e?e.getPlayerPromise().then(function(O){l.contentVideoId&&O.getVideoUrl().includes("v="+l.contentVideoId)||(l.cancelPendingCompanionAdJobs(),l.updateRendererStamper())}):_.Nz(Error("im"))};
_.X.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.UD.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.X.handleCompanionAdClicked=function(l,e){this.player.onAdUxClicked(l,e);this.player.pauseVideo()};
$b.prototype.dataChanged=$b.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$b.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],$b.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],$b.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$b.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],$b.prototype,"oneofRenderer",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$b.prototype,"dataChanged",null);_.L([_.U({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],$b);
_.Y($b,"ytd-companion-slot-renderer",function(){if(c_h!==void 0)return c_h;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return c_h=l},{mode:_.Wf("kevlar_poly_si_batch_j067")?
1:2});var TRP;var W7=function(){return _.B.apply(this,arguments)||this};
_.m(W7,_.B);W7.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
W7.prototype.dataChanged=W7.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],W7.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],W7.prototype,"companionSlotData",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],W7.prototype,"dataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],W7);
_.Y(W7,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(TRP!==void 0)return TRP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return TRP=l},{mode:1});var sjH;var go=function(){var l=_.B.apply(this,arguments)||this;l.skinnyMode=!1;l.COMPACT_EVENT_COUNT=4;l.onShelfToggleButtonTap=function(){l.logTap(l.data);l.showingMore=!l.showingMore};
l.onShelfToggleButtonFocus=function(){l.showingMore||(l.logTap(l.data),l.showingMore=!0,_.OK(l,function(){var e=l.COMPACT_EVENT_COUNT-1,O;(O=_.ud(l.hostElement).querySelector("#event-"+e))==null||O.focus()}))};
return l};
_.m(go,_.B);_.X=go.prototype;_.X.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.X.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.X.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.id(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.id(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.id(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.id(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.id(this.infoTooltip,this.infoTooltip.hide))};
_.X.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.id(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.id(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.id(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.id(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.id(this.infoTooltip,this.infoTooltip.hide))};
_.X.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)};
_.X.onShowingMoreChanged=function(){var l;this.showingMoreChanged((l=this.showingMore)!=null?l:!1)};
_.X.showingMoreChanged=function(l){var e=this.get("data.events")||[];this.set("restEvents",e.slice(1,l?e.length:this.COMPACT_EVENT_COUNT).map(function(O){return O.ticketEventRenderer}));
e.slice(0,l?e.length:this.COMPACT_EVENT_COUNT).forEach(function(O){var E=_.P9();O=O.ticketEventRenderer.trackingParams;_.B9()&&E&&O&&(O=_.cf(O),E&&_.Q4(E,O))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.X.computeAriaLabel=function(l){return l.subtitle1+", "+l.subtitle2};
_.X.logTap=function(l){_.B9()&&this.ytRendererBehavior.logExplicitClick(l)};
_.X.isKeyboardAction=function(l){return this.get("detail.x",l)===0&&this.get("detail.y",l)===0};
_.X.onFirstEventTap=function(l){l.target&&this.handleTap(l.target,this.firstEvent,this.isKeyboardAction(l))};
_.X.onTicketLinkTap=function(l){l.target&&this.handleTap(l.target,l.model.item,this.isKeyboardAction(l))};
_.X.handleTap=function(l,e,O){if(e.buttonCommand)if(e.hasMultipleOffers)Object.assign(_.I(e.buttonCommand,_.Fn),{properties:{source:O?"keyboard":"tap"}}),this.logTap(e),this.popupPositionTarget=l,_.wQ(this.hostElement,[e.buttonCommand],this.hostElement);else{var E;if((E=_.I(e.buttonCommand,_.Db))==null?0:E.url)this.logTap(e),_.FC(window,_.I(e.buttonCommand,_.Db).url)}};
go.prototype.onShowingMoreChanged=go.prototype.onShowingMoreChanged;go.prototype.dataChanged=go.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],go.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],go.prototype,"firstEvent",void 0);_.L([_.T(),_.q("design:type",Object)],go.prototype,"restEvents",void 0);_.L([_.T(),_.q("design:type",String)],go.prototype,"imageUrl",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],go.prototype,"showingMore",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],go.prototype,"canShowMore",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],go.prototype,"skinnyMode",void 0);_.L([_.T(),_.q("design:type",HTMLElement)],go.prototype,"popupPositionTarget",void 0);_.L([_.aB("#banner-info-tooltip"),_.q("design:type",Object)],go.prototype,"infoTooltip",void 0);
_.L([_.aB("#info-container"),_.q("design:type",HTMLElement)],go.prototype,"infoContainer",void 0);_.L([_.aB("#shelf-toggler"),_.q("design:type",HTMLElement)],go.prototype,"shelfToggleButton",void 0);_.L([_.aB("#separator"),_.q("design:type",HTMLDivElement)],go.prototype,"separator",void 0);_.L([_.T(),_.q("design:type",String)],go.prototype,"shelfTogglerLabelText",void 0);_.L([_.T(),_.q("design:type",String)],go.prototype,"shelfTogglerIcon",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],go.prototype,"dataChanged",null);_.L([_.y0("showingMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],go.prototype,"onShowingMoreChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],go);
_.Y(go,"ytd-ticket-shelf-renderer",function(){if(sjH!==void 0)return sjH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return sjH=l},{mode:1});var GUO;var BRo;var wo=function(){return _.B.apply(this,arguments)||this};
_.m(wo,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wo.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],wo);
_.Y(wo,"ytd-comments-entry-point-message-renderer",function(){if(BRo!==void 0)return BRo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BRo=l},{mode:1});var PC4;var AO=function(){return _.B.apply(this,arguments)||this};
_.m(AO,_.B);_.Ji.Object.defineProperties(AO.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.teaserAvatar)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AO.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],AO.prototype,"hasAvatar",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],AO);
_.Y(AO,"ytd-comments-entry-point-teaser-renderer",function(){if(PC4!==void 0)return PC4;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return PC4=l},{mode:1});var Uy0;var nD=function(){return _.B.apply(this,arguments)||this};
_.m(nD,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nD.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],nD);
_.Y(nD,"ytd-comments-simplebox-renderer",function(){if(Uy0!==void 0)return Uy0;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Uy0=l},{mode:1});var aw=function(){var l=_.B.apply(this,arguments)||this;l.fullHeight=!_.a("comment_teaser_full_height_kill_switch")&&_.a("kevlar_watch_grid");return l};
_.m(aw,_.B);aw.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"}}}};
aw.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
aw.prototype.onTap=function(){var l=this.tapCommand;l&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(l))};
aw.prototype.onKeyUp=function(l){if(l.keyCode===13)this.onTap()};
_.Ji.Object.defineProperties(aw.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.onTap)return this.data.onTap;var e,O;if(((e=this.data)==null?0:e.teaserContent)||((O=this.data)==null?0:O.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)!=null&&l.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
aw.prototype.onKeyUp=aw.prototype.onKeyUp;aw.prototype.onTap=aw.prototype.onTap;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],aw.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],aw.prototype,"fullHeight",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"tapCommand",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"simpleboxPlaceholder",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],aw.prototype,"hasSimpleboxPlaceholder",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"simpleboxAvatar",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"teaserContent",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],aw.prototype,"hasTeaserContent",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"teaserAvatar",null);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],aw.prototype,"hasTeaserAvatar",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"messageText",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],aw.prototype,"contentRenderer",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],aw.prototype,"hasContents",null);
_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],aw.prototype,"hasContentRenderer",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aw.prototype,"onTap",null);_.L([_.wP("keypress"),_.q("design:type",Function),_.q("design:paramtypes",[_.Ia]),_.q("design:returntype")],aw.prototype,"onKeyUp",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],aw);
_.Y(aw,"ytd-comments-entry-point-header-renderer",function(){if(GUO!==void 0)return GUO;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return GUO=l},{mode:1});var Yb4;_.a("web_enable_sink_animated_rolling_character_and_number")?_.Zw(_.ViS,"yt-animated-rolling-number",{props:{numberText:_.lB,numberValue:_.lB,heightPx:_.lB,fontSizeMultiplier:_.lB,shouldAnimate:_.lB,forceRollUp:_.lB}}):_.ip(_.oO2,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var hVi=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),LUf={numberText:"",heightPx:2*hVi,shouldAnimate:!1},kb=function(){var l=_.B.apply(this,arguments)||this;l.usingAnimatedComponents=!0;l.wasDetailed=!1;l.JSC$20298_browserSupportsAnimation=_.a("web_supports_animations_api");l.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};l.detailed=!1;l.shouldAnimate=!1;l.viewCountProps=LUf;l.dateTextProps=
LUf;l.metadataBadgesInDescription=_.a("web_metadata_badges_in_description");return l};
_.m(kb,_.B);_.X=kb.prototype;_.X.resetAnimationState=function(){this.shouldAnimate=!1};
_.X.updateDynamicMetadata=function(){if(this.JSC$20298_browserSupportsAnimation){if(!this.detailed){var l,e,O,E;var J=(l=this.videoPrimaryInfoRenderer)==null?void 0:(e=l.viewCount)==null?void 0:(O=e.videoViewCountRenderer)==null?void 0:(E=O.extraShortViewCount)==null?void 0:E.simpleText;var z,M,Z,u;var d=(z=this.videoPrimaryInfoRenderer)==null?void 0:(M=z.viewCount)==null?void 0:(Z=M.videoViewCountRenderer)==null?void 0:(u=Z.shortViewCount)==null?void 0:u.simpleText}if(!d){var g,w,n,k;J=(g=this.videoPrimaryInfoRenderer)==
null?void 0:(w=g.viewCount)==null?void 0:(n=w.videoViewCountRenderer)==null?void 0:(k=n.unlabeledViewCountValue)==null?void 0:k.simpleText;var y,c,f,P;d=(y=this.videoPrimaryInfoRenderer)==null?void 0:(c=y.viewCount)==null?void 0:(f=c.videoViewCountRenderer)==null?void 0:(P=f.viewCount)==null?void 0:P.simpleText}var h,N,t;l=Number((h=this.videoPrimaryInfoRenderer)==null?void 0:(N=h.viewCount)==null?void 0:(t=N.videoViewCountRenderer)==null?void 0:t.originalViewCount);var r,D;h=(r=this.videoPrimaryInfoRenderer)==
null?void 0:(D=r.relativeDateText)==null?void 0:D.simpleText;var b2;r=!((b2=this.videoPrimaryInfoRenderer)==null||!b2.relativeDateText);if(J&&d&&l&&(h||!r)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;b2=d.split(new RegExp("("+J+")"));J=fd0(b2[0]);var $V;d={numberText:($V=b2[1])!=null?$V:"",numberValue:l,heightPx:2*hVi,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var gT;$V=((gT=b2[2])!=null?gT:"")+"  ";this.setViewCount(d,J,fd0($V));
if(!this.detailed&&r){J=h.split(/(\d+)/);gT=fd0(J[0]);var mx;$V={numberText:(mx=J[1])!=null?mx:"",heightPx:2*hVi,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var jM;mx=((jM=J[2])!=null?jM:"")+"  ";this.setDateText($V,gT,fd0(mx))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.X.setViewCount=function(l,e,O){_.lG(e)!==_.lG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=e);this.viewCountProps.numberText!==(l==null?void 0:l.numberText)&&(this.viewCountProps=l||LUf);_.lG(O)!==_.lG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=O)};
_.X.setDateText=function(l,e,O){_.lG(e)!==_.lG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=e);this.dateTextProps.numberText!==(l==null?void 0:l.numberText)&&(this.dateTextProps=l||LUf);_.lG(O)!==_.lG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=O)};
_.X.onYtUpdateViewershipAction=function(l){this.videoPrimaryInfoRenderer&&(_.I(l,sEh).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.I(l,sEh).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.I(l,sEh).viewCount)))};
_.X.onYtUpdateDateTextAction=function(l){if(this.videoPrimaryInfoRenderer){l=_.I(l,_.RZF).dateText;this.shouldAnimate=!0;var e;((e=this.videoPrimaryInfoRenderer)==null?0:e.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",l):this.set("videoPrimaryInfoRenderer.dateText",l)}};
_.Ji.Object.defineProperties(kb.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return F_3(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.lG(F_3(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.lG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.lG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.lG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.lG(this.dateTextPostNumberText)].join("")}}});
kb.prototype.updateDynamicMetadata=kb.prototype.updateDynamicMetadata;kb.prototype.resetAnimationState=kb.prototype.resetAnimationState;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],kb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kb.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"detailed",void 0);_.L([_.T(),_.q("design:type",Object)],kb.prototype,"shouldAnimate",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"viewCountPreNumberText",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"viewCountProps",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"viewCountPostNumberText",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"dateTextPreNumberText",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"dateTextProps",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"dateTextPostNumberText",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kb.prototype,"metadataBadgesInDescription",void 0);_.L([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.q("design:type",Object),_.q("design:paramtypes",[])],kb.prototype,"infoText",null);
_.L([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.q("design:type",String),_.q("design:paramtypes",[])],kb.prototype,"descriptionInfoTooltipText",null);_.L([_.R("detailed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],kb.prototype,"showDescriptionInfoTooltip",null);
_.L([_.R("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.q("design:type",String),_.q("design:paramtypes",[])],kb.prototype,"animatedViewCountAccessibilityLabel",null);_.L([_.R("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.q("design:type",String),_.q("design:paramtypes",[])],kb.prototype,"animatedDateTextAccessibilityLabel",null);
_.L([_.AA("videoPrimaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kb.prototype,"resetAnimationState",null);_.L([_.AA("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kb.prototype,"updateDynamicMetadata",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-watch-info-text"})],kb);
_.Y(kb,"ytd-watch-info-text",function(){if(Yb4!==void 0)return Yb4;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Yb4=l},{mode:1});var t_F;var qbi=_.XO(function(l){var e=l.data;var O=l.setTapCommand;_.Gh(function(){var E=_.t3(e().onTap);O(E)},"X4onJd");
return _.W("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.W(_.Tn,{data:function(){return e().avatar}},{avatarViewModel:_.Hp}),_.W("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.W("span",null,function(){return e().simpleboxText})))},"fj");var vQi=_.XO(function(l){return _.W("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.W(_.A,{cond:function(){return _.I(l.data().avatar,_.l3)},
then:function(e){return _.W(_.Hp,{data:e,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.W("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.W(_.zK,{text:function(){return l.data().teaserText}})))},"gj");var NRO=_.XO(function(l){var e=l.data;var O=l.setTapCommand;_.Gh(function(){var E=_.t3(e().onTap);O(E)},"PmAol");
return _.W("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.W(_.Tn,{data:function(){return e().teasers}},{commentsEntryPointTeaserViewModel:vQi}))},"hj");var r_C=_.XO(function(l){var e=l.data;var O=l.setTapCommand;_.Gh(function(){var E=_.t3(e().onTap);O(E)},"Nh3Hjd");
return _.W("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.W(_.zK,{text:function(){return e().messageText}}))},"ij");var Dyu=_.XO(function(l){var e=l.data;var O=l.setTapCommand;var E=l.isDisabled;_.Gh(function(){var J=(E==null?0:E())?void 0:_.t3(e().onTap);O(J)},"omeiWe");
return _.W("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.W(_.cF,{icon:function(){return e().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.W(_.A,{cond:function(){return e().image},
then:function(J){return _.W(_.Jm,{data:J,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.W(_.zK,{text:function(){return e().text},
className:function(){return e().image||e().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.W(_.Tn,{data:function(){return e().button}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:E==null?void 0:E()}}})}}))},"jj");var SbO=_.XO(function(l){var e=l.data;var O=l.itemIndex;var E=l.selectedIndex;var J=l.indexUpdatedCallback;var z=l.observer;l=l.title;var M=_.e4("yt-carousel-item-view-model",function(w){_.a("web_metadata_carousel_elref_bugfix")&&z&&z().observe(w)}),Z=function(w){O()===E()&&J(w)},u=_.Ld(Zaf),d=_.Ld(ubu),g=function(){var w,n,k;
return((w=e())==null?void 0:w.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!u()||((n=e())==null?void 0:n.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&d().includes("PAposts_by_host")||((k=e())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&d().includes("PAyouchat")};
_.sC(function(){_.a("web_metadata_carousel_elref_bugfix")||z&&z().observe(M.value)});
return _.W("yt-carousel-item-view-model",{el:M,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":l},_.W(_.Tn,{data:function(){var w,n;return(n=(w=_.I(e().carouselItem,J2u))==null?void 0:w.textCarousel)!=null?n:e().carouselItem}},{textCarouselItemViewModel:function(w){return _.W(Dyu,{data:w.data,
setTapCommand:Z,isDisabled:g})},
commentTeaserCarouselItemViewModel:function(w){return _.W(NRO,{data:w.data,setTapCommand:Z})},
commentInputBoxCarouselItemViewModel:function(w){return _.W(qbi,{data:w.data,setTapCommand:Z})},
commentsEntryPointMessageViewModel:function(w){return _.W(r_C,{data:w.data,setTapCommand:Z})}}))},"kj");var Qjh=_.XO(function(l){var e=l.numDots;var O=l.activeIndex;return _.W("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.W(_.KH,{each:function(){return Array.from({length:e()})},
keyBy:"INDEX"},function(E,J){return _.W("div",{class:function(){var z={};return _.Ix("ytCarouselDotsShapeDot",(z.ytCarouselDotsShapeDotActive=J===O(),z))}})}))},"lj");var xyi=_.XO(function(l){var e=l.data;var O=l.handleCarouselNavigation;var E=l.numItems;var J=l.selectedIndex;var z=function(){return{disabled:J()===0}},M=function(){return{disabled:J()===E()-1}};
return _.W("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.W("div",null,_.W("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return e().title}),_.W(_.A,{cond:function(){return e().subtitle},
then:function(Z){return _.W("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return e().subtitleAccessibilityText}},Z)}})),_.W(_.A,{cond:function(){return E()>1},
then:function(){return _.W("div",{class:"ytCarouselTitleViewModelNavigation"},_.W(Qjh,{numDots:E,activeIndex:J}),_.W(_.A,{cond:function(){return e().previousButton},
then:function(Z){return _.W(_.Tn,{data:Z},{buttonViewModel:function(u){return _.W(_.hM,{data:u.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return O(-1)},
buttonOverrides:z})}})}}),_.W(_.A,{cond:function(){return e().nextButton},
then:function(Z){return _.W(_.Tn,{data:Z},{buttonViewModel:function(u){return _.W(_.hM,{data:u.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return O(1)},
buttonOverrides:M})}})}}))}}))},"mj");_.Zw(_.XO(function(l){var e=l.data;var O,E=_.e4("yt-video-metadata-carousel-view-model"),J=_.e4("div",function(r){if(_.a("web_metadata_carousel_elref_bugfix")){var D=function(){var b2=r.offsetWidth*c(),$V=24*(c()-1);n(b2+$V)};
D();window.ResizeObserver&&(O=new ResizeObserver(D),O.observe(r))}}),z=_.hT("HTML_DIR")==="rtl",M=!1,Z=0,u=0;
l=_.b(_.AF(0,void 0,"f4aYxe"));var d=l.next().value,g=l.next().value;l=_.b(_.AF(0,void 0,"kU9O9"));var w=l.next().value,n=l.next().value;l=_.b(_.AF(!1,void 0,"GqphDd"));var k=l.next().value,y=l.next().value,c=function(){var r,D,b2;return(b2=(r=e())==null?void 0:(D=r.carouselTitles)==null?void 0:D.length)!=null?b2:0},f=function(){J.value&&J.value.scrollLeft!==Z&&g((z?J.value.scrollLeft<Z:J.value.scrollLeft>Z)?Math.min(d()+1,c()-1):Math.max(d()-1,0))},P;
window.IntersectionObserver&&(P=new IntersectionObserver(function(r){r=_.b(r);for(var D=r.next();!D.done;D=r.next())if(D.value.isIntersecting){if(M){M=!1;break}f()}else g(u)},{threshold:.2}));
_.Gh(function(){if(J.value){var r=(z?-1:1)*(w()/c()+12)*(k()&&P?u:d());typeof J.value.scrollTo==="function"?J.value.scrollTo({left:r,behavior:"smooth"}):J.value.scrollLeft=r;Z=r;u=k()&&P?u:d()}},"ZP1VMb");
var h,N=function(r){h=r};
_.sC(function(){if(!_.a("web_metadata_carousel_elref_bugfix")){var r=function(){var b2=J.value.offsetWidth*c(),$V=24*(c()-1);n(b2+$V)};
r();if(window.ResizeObserver){var D=new ResizeObserver(r);D.observe(J.value);_.B3(function(){D.disconnect();P&&P.disconnect()})}}});
_.B3(function(){if(_.a("web_metadata_carousel_elref_bugfix")){var r;(r=O)==null||r.disconnect();var D;(D=P)==null||D.disconnect()}});
var t=function(r){r=d()+r;r>=0&&r<c()&&(M=!0,g(r))};
return _.W("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:E,"on:click":_.pd(function(r){if(_.DP(_.rC(r),E.value,["BUTTON".toString()])||!h)return!1;_.V2().resolve(_.Zh).resolveCommand(h,{forceClickLogging:!0});return!1}),
"on:touchstart":_.pd(function(){y(!0);return!1}),
"on:touchend":_.pd(function(){P||f();y(!1);return!1}),
hidden:function(){var r,D;return!((r=e())==null?0:(D=r.carouselItems)==null?0:D.length)}},_.W("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.W(_.A,{cond:function(){return e().carouselTitles},
then:function(r){return _.W(_.Tn,{data:function(){return r()[k()&&P?u:d()]}},{carouselTitleViewModel:function(D){return _.W(xyi,{data:D.data,
handleCarouselNavigation:t,numItems:c,selectedIndex:d})}})}})),_.W("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:J},_.W("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.W(_.A,{cond:function(){return e().carouselItems},
then:function(r){return _.W(_.KH,{each:r},function(D,b2){return _.W(_.Tn,{data:function(){return D}},{carouselItemViewModel:function($V){return _.W(SbO,{data:$V.data,
itemIndex:b2,selectedIndex:d,indexUpdatedCallback:N,observer:P,title:function(){a:{var gT=b2();var mx,jM=(mx=e())==null?void 0:mx.carouselTitles;if(jM&&(gT=jM[gT])){var cx;gT=(cx=_.I(gT,Eih))==null?void 0:cx.title;break a}gT=void 0}return gT}})}})})}}))))},"nj"),"yt-video-metadata-carousel-view-model",{props:{data:_.lB}});var ly4=_.a("web_action_buttons_update_owner_width")?32:12,Iw=function(){var l=_.B.apply(this,arguments)||this;l.metadataBadgesInDescription=_.a("web_metadata_badges_in_description");l.descriptionCollapsed=!0;l.useFadedScrimDescription=_.a("kevlar_enable_faded_scrim_on_description");l.skinnyMode=!1;l.playlist=!1;l.isDark=document.documentElement.hasAttribute("dark");l.disableVideoOwnerOnTap=_.a("swatchie_video_owner_on_tap_ks");l.swatcherooDelayLoad=_.a("swatcheroo_enable_ghost_cards");l.primaryMenuWidth=
0;l.videoId="";l.titleHeadlineXs=_.a("web_watch_typography_title_headline_xs");l.titleHeadlineS=_.a("web_watch_typography_title_headline_s");l.titleHeadlineM=_.a("web_watch_typography_title_headline_m");l.titleHashtagBlackLinkified=_.a("web_title_hashtag_black_linkified");l.titleHashtagGreyLinkified=_.a("web_title_hashtag_grey_linkified");l.actionButtonsUpdateOwnerWidth=_.a("web_action_buttons_update_owner_width");l.shouldForceIconOnly=!1;l.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};l.isFullscreen=!1;l.isTheaterMode=!1;return l};
_.m(Iw,_.B);_.X=Iw.prototype;_.X.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.X.updateOwnerAndDescriptionPosition=function(){_.a("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.fX(this.bottomRowElement,this.ownerElement)):(_.fX(this.bottomRowElement,this.descriptionElement),_.fX(this.topRowElement,this.ownerElement)))};
_.X.titleOnTap=function(l){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||this.handleExpandDescriptionCommands()}};
_.X.videoOwnerOnTap=function(l){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.X.detached=function(){var l=this,e;return _.V(function(O){(e=l.resizeObserver)==null||e.disconnect();_.Cl(O)})};
_.X.maybeAttachResizeObserver=function(){var l=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.b3(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){l.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.X.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var l=this.hostElement.clientWidth,e=Math.max(this.largerItemWrap?400:350,l/2-ly4);if(_.a("web_action_buttons_update_owner_width")){var O;e=(((O=document.getElementById("owner"))==null?void 0:O.clientWidth)||0)+ly4}this.actionsOnSeparateLine=this.primaryMenuWidth>l-e?!0:!1}};
_.X.stripAttributedDescription=function(l){return{content:l.content.replace(/[\r\n]{2,}/g,"\n")}};
_.X.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.a("web_modern_buttons"),forceIconButton:!_.a("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:_.a("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.X.videoPrimaryInfoRendererChanged=function(){var l;if((l=this.videoPrimaryInfoRenderer)==null?0:l.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.X.videoSecondaryInfoRendererChanged=function(){var l,e;(e=(l=this.descriptionInlineExpander).collapse)==null||e.call(l);this.descriptionExpandClientVe=_.sL(110509);this.descriptionCollapseClientVe=_.sL(110510);l=_.P9();e=_.B9();l&&e&&(_.a("combine_ve_grafts")?(_.$w(_.yN(),this.descriptionExpandClientVe,e),_.$w(_.yN(),this.descriptionCollapseClientVe,e)):_.Sj(l,e,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.X.structuredDescriptionContentRendererChanged=function(){_.a("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.X.updateTopLevelIconsOnly=function(){var l=this;_.a("top_level_update_killswitch")||this.menu&&_.UD.addLowPriorityJob(function(){l.menu.topLevelIconsOnly=l.skinnyMode},_.Cv("swathceroo_delay_flexible_menu_update",100))};
_.X.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.a("web_action_buttons_minimize_subscribe")};
_.X.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.X.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.X.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.X.onYtTextInlineExpanderExpandedChanged=function(){if(!_.a("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var l,e;(e=(l=this.structuredDescriptionContentRendererElement).resize)==null||e.call(l)}};
_.X.onRenderStamperFinished=function(l){(l==null?void 0:l.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.X.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.X.onYtExpanderLessTapped=function(){var l,e=(l=this.videoSecondaryInfoRenderer)==null?void 0:l.showLessCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.X.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.X.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.X.onDescriptionClick=function(l){if(!_.Eh(_.ey(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.a("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.X.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.X.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.X.logCollapseClick=function(){var l=_.P9();l&&this.descriptionCollapseClientVe&&_.On(l,this.descriptionCollapseClientVe)};
_.X.logExpandClick=function(){var l=_.P9();l&&this.descriptionExpandClientVe&&_.On(l,this.descriptionExpandClientVe)};
_.X.collapseDescription=function(){this.descriptionCollapsed=!0};
_.X.scrollToTopOfContainer=function(){_.Wb(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.X.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.X.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.X.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.X.resize=function(){if(this.descriptionInlineExpander){var l,e;(e=(l=this.descriptionInlineExpander).resize)==null||e.call(l)}else _.hG(new _.Hk("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var O;(O=this.menu)==null||O.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.a("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.X.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var l,e,O,E,J=_.a("web_action_buttons_update_owner_width")?(O=(l=_.ud(this.menu).querySelector("#button-shape"))==null?void 0:l.clientWidth)!=null?O:0:(E=(e=_.ud(this.menu).querySelector("#button"))==null?void 0:e.clientWidth)!=null?E:0,z,M;l=((M=(z=_.ud(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:z.clientWidth)!=null?M:0)+8+J;var Z,u;J=(u=(Z=_.ud(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:Z.children.length)!=null?u:2;l<=8*J||(this.primaryMenuWidth=l)}};
_.X.onYtUpdateTitleAction=function(l){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.I(l,Tmf).title)};
_.X.onYtUpdateDescriptionAction=function(l){if(l=_.I(l,_.mSi)){var e,O=!((e=this.videoSecondaryInfoRenderer)==null||!e.attributedDescription);l.isEmpty||!l.description&&!l.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):l.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",l.attributedDescription):l.description&&(O?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Ut(l.description)):this.set("videoSecondaryInfoRenderer.description",l.description))}};
_.X.onYtDarkModeToggledAction=function(l){this.isDark=l};
_.X.registerPanel=function(){if(!_.a("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var l=_.a("web_watch_imax_theater_mode")&&this.isTheaterMode;l=_.a("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||l;var e=_.V2().resolve(_.ye);e&&!l&&e.registerPanel("engagement-panel-structured-description",this)}};
_.X.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.X.showPanel=function(l){this.expandDescription();var e=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;e.resize();var O,E=l==null?void 0:(O=l.sectionListEngagementPanelExtras)==null?void 0:O.scrollToItemSectionIdentifier;E?_.UD.addJob(function(){e==null||e.scrollToSection(E)},8):this.scrollToTopOfContainer()};
_.X.isVisible=function(){return!this.descriptionCollapsed};
_.X.getReloadContinuation=function(){};
_.X.hidePanel=function(){};
_.X.updatePanel=function(){};
_.Ji.Object.defineProperties(Iw.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.structuredDescriptionContentRenderer)!=null&&l.items){var e;l=_.b((e=this.structuredDescriptionContentRenderer)==null?void 0:e.items);for(e=l.next();!e.done;e=l.next())if(e=_.I(e.value,_.IqH))return e}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.videoPrimaryInfoRenderer)==null?0:l.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!!((l=this.videoSecondaryInfoRenderer)==null?0:(e=l.owner)==null?0:(O=e.videoOwnerRenderer)==null?0:O.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.a("swatchie_sd_new_line_strip_ks")){var l,e;if((l=this.videoSecondaryInfoRenderer)==null?0:(e=l.attributedDescription)==null?0:e.content){var O,E;return(E=this.stripAttributedDescription((O=this.videoSecondaryInfoRenderer)==null?void 0:O.attributedDescription))!=null?E:{runs:[]}}}var J,z,M,Z;return(Z=(M=(J=this.videoSecondaryInfoRenderer)==null?void 0:J.description)!=null?M:(z=this.videoSecondaryInfoRenderer)==null?
void 0:z.attributedDescription)!=null?Z:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.videoSecondaryInfoRenderer)==null?void 0:l.headerRuns)!=null?e:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.commentsEntryPointHeaderRenderer)==null||!l.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.videoMetadataCarousel)==null||!l.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Cv("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Cv("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var l,e,O=Object.assign({},(l=this.videoSecondaryInfoRenderer)==null?void 0:(e=l.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(O&&O.rows&&O.collapsedItemCount!==void 0&&!(O.rows.length<=O.collapsedItemCount))return O.rows=O.rows.slice(O.collapsedItemCount),O.collapsedItemCount=0,O}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var l,e,O=Object.assign({},(l=this.videoSecondaryInfoRenderer)==null?void 0:(e=l.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(O&&O.rows&&O.collapsedItemCount!==void 0)return O.rows=O.rows.slice(0,O.collapsedItemCount),O.collapsedItemCount=O.rows.length,O}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!((l=this.structuredDescriptionContentRenderer)==null?0:(e=l.items)==null?0:e.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var l;return(l=this.videoSecondaryInfoRenderer)==null?void 0:l.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.videoSecondaryInfoRenderer)==null?0:(e=l.owner)==null?0:(O=e.videoOwnerRenderer)==null?0:O.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return!!((l=this.videoPrimaryInfoRenderer)==null?0:(e=l.videoActions)==null?0:(O=e.menuRenderer)==null?0:(E=O.flexibleItems)==null?0:E.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.eN(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.eN(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var l=this;if(_.a("web_title_hashtag_grey_delinkified")){var e,O=_.mm.unsafeClone((e=this.videoPrimaryInfoRenderer)==null?void 0:e.title);(e=O==null?void 0:O.runs)&&e.forEach(function(E){if(E==null?0:E.navigationEndpoint)E.textColor=4284506208,l.isDark&&(E.textColor=4289374890)});
return O}return(O=this.videoPrimaryInfoRenderer)==null?void 0:O.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.a("web_title_hashtag_black_delinkified")||_.a("web_title_hashtag_grey_delinkified")}}});
Iw.prototype.resetDescriptionState=Iw.prototype.resetDescriptionState;Iw.prototype.registerPanel=Iw.prototype.registerPanel;Iw.prototype.onYtExpanderLessTapped=Iw.prototype.onYtExpanderLessTapped;Iw.prototype.onYtExpanderMoreTapped=Iw.prototype.onYtExpanderMoreTapped;Iw.prototype.onRenderStamperFinished=Iw.prototype.onRenderStamperFinished;Iw.prototype.onYtTextInlineExpanderExpandedChanged=Iw.prototype.onYtTextInlineExpanderExpandedChanged;Iw.prototype.onYtTextInlineExpanderCollapseClicked=Iw.prototype.onYtTextInlineExpanderCollapseClicked;
Iw.prototype.onYtTextInlineExpanderExpandClicked=Iw.prototype.onYtTextInlineExpanderExpandClicked;Iw.prototype.moveActionsElement=Iw.prototype.moveActionsElement;Iw.prototype.updateShouldForceIconOnly=Iw.prototype.updateShouldForceIconOnly;Iw.prototype.updateTopLevelIconsOnly=Iw.prototype.updateTopLevelIconsOnly;Iw.prototype.structuredDescriptionContentRendererChanged=Iw.prototype.structuredDescriptionContentRendererChanged;Iw.prototype.videoSecondaryInfoRendererChanged=Iw.prototype.videoSecondaryInfoRendererChanged;
Iw.prototype.videoPrimaryInfoRendererChanged=Iw.prototype.videoPrimaryInfoRendererChanged;Iw.prototype.maybeUpdateActionsOnSeparateLine=Iw.prototype.maybeUpdateActionsOnSeparateLine;Iw.prototype.updateOwnerAndDescriptionPosition=Iw.prototype.updateOwnerAndDescriptionPosition;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Iw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Iw.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Iw.prototype,"ytdReduxBehavior",void 0);_.L([_.aB("#above-the-fold"),_.q("design:type",HTMLElement)],Iw.prototype,"aboveTheFoldContainer",void 0);_.L([_.aB("#menu ytd-menu-renderer"),_.q("design:type",Object)],Iw.prototype,"menu",void 0);
_.L([_.aB("#description-inline-expander"),_.q("design:type",Object)],Iw.prototype,"descriptionInlineExpander",void 0);_.L([_.aB("#faded-structured-description"),_.q("design:type",Object)],Iw.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.L([_.aB("#structured-description"),_.q("design:type",Object)],Iw.prototype,"structuredDescriptionContentRendererElement",void 0);_.L([_.aB("#title"),_.q("design:type",HTMLElement)],Iw.prototype,"titleElement",void 0);
_.L([_.aB("#description"),_.q("design:type",HTMLElement)],Iw.prototype,"descriptionElement",void 0);_.L([_.aB("#description-interaction"),_.q("design:type",Object)],Iw.prototype,"descriptionInteraction",void 0);_.L([_.aB("#owner"),_.q("design:type",HTMLElement)],Iw.prototype,"ownerElement",void 0);_.L([_.aB("#top-row"),_.q("design:type",HTMLElement)],Iw.prototype,"topRowElement",void 0);_.L([_.aB("#bottom-row"),_.q("design:type",HTMLElement)],Iw.prototype,"bottomRowElement",void 0);
_.L([_.aB("#actions"),_.q("design:type",HTMLElement)],Iw.prototype,"actionsElement",void 0);_.L([_.aB("#bottom-actions"),_.q("design:type",HTMLElement)],Iw.prototype,"bottomActionsElement",void 0);_.L([_.aB("#ytd-watch-info-text"),_.q("design:type",Object)],Iw.prototype,"watchInfoTextElement",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"videoPrimaryInfoRenderer",void 0);
_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"videoMetadataCarousel",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"videoSummary",void 0);
_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"merchShelf",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"infoPanelBelowMetadata",void 0);_.L([_.R("structuredDescriptionContentRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"productShelf",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"metadataBadgesInDescription",void 0);
_.L([_.R("videoPrimaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"shouldHideBadges",null);_.L([_.R("productShelf","descriptionCollapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"shouldShowProductShelf",null);_.L([_.T(),_.q("design:type",Boolean)],Iw.prototype,"isWatchFlexy",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"descriptionCollapsed",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Iw.prototype,"useFadedScrimDescription",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"skinnyMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("videoSecondaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"largerItemWrap",null);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"playlist",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"clarifyBox",void 0);
_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"playerAds",void 0);_.L([_.T(),_.q("design:type",Boolean)],Iw.prototype,"isDark",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Iw.prototype,"actionsOnSeparateLine",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"disableVideoOwnerOnTap",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"swatcherooDelayLoad",void 0);
_.L([_.T(),_.q("design:type",Boolean)],Iw.prototype,"suppressTopLevelMetadataRows",void 0);_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"primaryMenuWidth",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"videoId",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"titleHeadlineXs",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"titleHeadlineS",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"titleHeadlineM",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"titleHashtagBlackLinkified",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"titleHashtagGreyLinkified",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.L([_.T(),_.q("design:type",Object)],Iw.prototype,"shouldForceIconOnly",void 0);_.L([_.y0("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"updateOwnerAndDescriptionPosition",null);_.L([_.y0("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.L([_.R("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"descriptionText",null);_.L([_.R("videoSecondaryInfoRenderer.headerRuns"),_.q("design:type",Array),_.q("design:paramtypes",[])],Iw.prototype,"headerRuns",null);_.L([_.T({value:!1}),_.R("commentsEntryPointHeaderRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"hasTeaser",null);
_.L([_.T({value:!1,reflectToAttribute:!0}),_.R("videoMetadataCarousel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"hasTeaserCarousel",null);_.L([_.T({value:3}),_.R("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"descriptionMaxLines",null);_.L([_.R("videoSecondaryInfoRenderer.metadataRowContainer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"collapsibleMetadataRows",null);
_.L([_.R("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"alwaysVisibleMetadataRows",null);_.L([_.R("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"hasInlineStructuredDescription",null);
_.L([_.R("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"showInlineStructuredDescription",null);_.L([_.R("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"descriptionExpandCommand",null);
_.L([_.R("videoSecondaryInfoRenderer.owner"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"videoOwnerCommand",null);_.L([_.T({reflectToAttribute:!0}),_.R("videoPrimaryInfoRenderer.videoActions"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"flexMenuEnabled",null);_.L([_.T({selector:_.qc,reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"isFullscreen",void 0);
_.L([_.T({selector:_.tM,reflectToAttribute:!0}),_.q("design:type",Object)],Iw.prototype,"isTheaterMode",void 0);_.L([_.R("descriptionText","useFadedScrimDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"showAttributedStringDescription",null);_.L([_.R("descriptionText","useFadedScrimDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"showFormattedStringDescription",null);
_.L([_.R("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Iw.prototype,"showFadedStructuredDescription",null);_.L([_.y0("videoPrimaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"videoPrimaryInfoRendererChanged",null);_.L([_.R("videoPrimaryInfoRenderer.title"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"videoTitle",null);
_.L([_.R("videoPrimaryInfoRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],Iw.prototype,"noEndpoints",null);_.L([_.y0("videoSecondaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"videoSecondaryInfoRendererChanged",null);
_.L([_.AA("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"structuredDescriptionContentRendererChanged",null);_.L([_.AA("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"updateTopLevelIconsOnly",null);
_.L([_.AA("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"updateShouldForceIconOnly",null);_.L([_.AA("skinnyMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"moveActionsElement",null);_.L([_.wP("yt-text-inline-expander-expand-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.L([_.wP("yt-text-inline-expander-collapse-clicked"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.L([_.wP("yt-text-inline-expander-expanded-changed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],Iw.prototype,"onRenderStamperFinished",null);_.L([_.wP("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"onYtExpanderMoreTapped",null);_.L([_.wP("yt-expander-less-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"onYtExpanderLessTapped",null);
_.L([_.AA("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"registerPanel",null);_.L([_.AA("videoSecondaryInfoRenderer"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Iw.prototype,"resetDescriptionState",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Iw);
_.Y(Iw,"ytd-watch-metadata",function(){if(t_F!==void 0)return t_F;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return t_F=l},{mode:2});_.Mzu=function(l){_.y6.call(this);this.JSC$20320_watchApi=l;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;eOf(this);OMC(this);Efu(this);JRO(this);XE0(this);zOu(this);bMf(this)};
_.m(_.Mzu,_.y6);var Efu=function(l){var e=function(){_.a("kevlar_is_pupi_enabled")||mt(l)};
l.JSC$20320_watchApi.getRoot().addEventListener("yt-player-updated",e);l.addOnDisposeCallback(function(){l.JSC$20320_watchApi.getRoot().removeEventListener("yt-player-updated",e)})},XE0=function(l){if(_.a("kevlar_endscreen_auto_theater_mode")){var e=l.JSC$20320_watchApi.subscribeToActiveChanged(function(){VzH(l)},!1);
l.addOnDisposeCallback(e)}},eOf=function(l){var e,O,E,J,z;
_.V(function(M){if(M.nextAddress==1)return _.C(M,l.JSC$20320_watchApi.playerApi,2);e=M.yieldResult;O=function(Z){Z=!!Z;yO(l)&&(Z=Z?2:1,_.E5.getInstance().setState(Z,!0,!1))};
E=function(Z){Z&&_.VmP(_.Om().getState())&&(_.Wb(l.JSC$20320_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),l.temporaryTheaterMode=!0)};
J=function(Z){_.a("kevlar_player_update_autonav_on_new_data")&&Z.type==="newdata"&&(_.a("kevlar_is_pupi_enabled")||mt(l))};
z=function(Z){l.onPlayerStateChange(Z)};
_.a("kevlar_endscreen_auto_theater_mode")&&e.addEventListener("onAutonavCancelled",E);e.addEventListener("onAutonavChangeRequest",O);e.addEventListener("onVideoDataChange",J);e.addEventListener("onStateChange",z);l.addOnDisposeCallback(function(){e.removeEventListener("onAutonavChangeRequest",O);e.removeEventListener("onVideoDataChange",J);e.removeEventListener("onStateChange",z);_.a("kevlar_endscreen_auto_theater_mode")&&e.removeEventListener("onAutonavCancelled",E)});
_.Cl(M)})},OMC=function(l){l.JSC$20320_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){l.autonavCancelledBySignal=!0;
_.a("kevlar_is_pupi_enabled")||mt(l)});
l.JSC$20320_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(e,O,E){O&&mt(l,E)});
l.JSC$20320_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){yO(l)&&_.E5.getInstance().setState(2,!0,!0)});
l.JSC$20320_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){yO(l)&&_.E5.getInstance().setState(1,!0,!0)});
l.addOnDisposeCallback(function(){l.JSC$20320_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");l.JSC$20320_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");l.JSC$20320_watchApi.unregisterActionHandler("yt-enable-autoplay-command");l.JSC$20320_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},JRO=function(l){var e=l.JSC$20320_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bMf(l)}),O=l.JSC$20320_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){zOu(l)});
l.addOnDisposeCallback(function(){l.JSC$20320_watchApi.unsubscribeByKey(e);l.JSC$20320_watchApi.unsubscribeByKey(O)})},bMf=function(l){l.autonavCancelledBySignal=!1;
_.a("kevlar_is_pupi_enabled")||mt(l)},zOu=function(l){var e=l.JSC$20320_watchApi.getWatchNextResponse(),O,E;
var J=(e=(E=_.I(e==null?void 0:(J=e.playerOverlays)==null?void 0:(O=J.playerOverlayRenderer)==null?void 0:O.autonavToggle,_.pCS))==null?void 0:E.enabled)?2:1;_.a("kevlar_is_pupi_enabled")?_.E5.getInstance().setState(J,!1,!1):mt(l);_.a("web_persist_server_autonav_state_on_client")&&typeof e==="boolean"&&_.weM(J===2)},yO=function(l){if(l.autonavCancelledBySignal)return!1;
var e,O,E,J;return!!((e=l.JSC$20320_watchApi.getWatchNextResponse())==null?0:(O=e.contents)==null?0:(E=O.twoColumnWatchNextResults)==null?0:(J=E.autoplay)==null?0:J.autoplay)};
_.Mzu.prototype.onPlayerStateChange=function(l){if(l===0){l=!_.E5.getInstance().isAutoplaySetExplicitly();var e=this.JSC$20320_watchApi.getWatchNextResponse(),O,E,J,z;e=_.I(e==null?void 0:(O=e.contents)==null?void 0:(E=O.twoColumnWatchNextResults)==null?void 0:(J=E.autoplay)==null?void 0:(z=J.autoplay)==null?void 0:z.autoplayExplicitChoiceDialogRenderer,_.SSk);yO(this)&&l&&e&&_.n4.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:e},popupType:"DIALOG"}})}else VzH(this)};
var VzH=function(l){l.temporaryTheaterMode&&(l.temporaryTheaterMode=!1,_.Wb(l.JSC$20320_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},mt=function(l,e){e=e===void 0?!1:e;
var O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20320_watchApi.playerApi,2);O=E.yieldResult;yO(l)?O.setAutonavState(_.E5.getInstance().getState(),e):O.setAutonavState(1,e);_.Cl(E)})};var ZMC={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"};_.Cmo=function(l){_.y6.call(this);var e=this;this.JSC$20325_watchApi=l;var O=this.JSC$20325_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){uli(e)});
this.addOnDisposeCallback(function(){e.JSC$20325_watchApi.unsubscribeByKey(O)});
uli(this)};
_.m(_.Cmo,_.y6);var uli=function(l){var e=l.JSC$20325_watchApi.getPlayerResponse(),O=l.JSC$20325_watchApi.getWatchNextResponse();if(!_.O$A(e==null?void 0:e.playabilityStatus,O==null?void 0:O.playerOverlays)){var E;var J=e==null?void 0:(E=e.playabilityStatus)==null?void 0:E.errorScreen}l.JSC$20325_watchApi.provideRenderingData("ERROR_SCREEN",J)};var ofH=_.XO(function(l){var e=l.data;var O=_.Ld(_.qc);l={};return _.W("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.pd(function(){var E=e().onTap;E&&_.V2().resolve(_.Zh).resolveCommand(E)}),
role:"button"},_.W("h2",{class:_.ax("ytPlayerOverlayVideoDetailsRendererTitle",(l.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!O()},l))},_.W(_.zK,{text:function(){return e().title}})),_.W("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.W(_.zK,{text:function(){return e().subtitle}})))},"oj");var pD={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},$6F=_.XO(function(l){var e=l.data;var O=_.Ld(_.qc);l={};return _.W("yt-player-quick-action-buttons",{class:_.ax("ytPlayerQuickActionButtonsHost",(l.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!O()},l))},_.W(_.KH,{each:function(){var E=e(),J=O();
E=JSON.parse(JSON.stringify(E));for(var z=_.a("web_watch_action_bar_resize_buttons"),M=_.a("delhi_modern_web_player_icons")&&!_.a("enable_web_delhi_icons"),Z=_.b(E),u=Z.next();!u.done;u=Z.next()){var d=u.value,g=void 0;u=_.I((g=_.I(d,_.Bi))==null?void 0:g.toggleButtonViewModel,_.ci);var w=void 0;g=_.I((w=_.I(d,_.Pi))==null?void 0:w.toggleButtonViewModel,_.ci);d=_.I(d,_.Hi);u?(g=_.I(u.defaultButtonViewModel,_.Hi),u=_.I(u.toggledButtonViewModel,_.Hi),g&&(M&&g.iconName&&(g.iconName=pD[g.iconName]),!J&&
z&&(g.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),u&&(M&&u.iconName&&(u.iconName=pD[u.iconName]),!J&&z&&(u.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):g?(u=_.I(g.defaultButtonViewModel,_.Hi),g=_.I(g.toggledButtonViewModel,_.Hi),u&&(M&&u.iconName&&(u.iconName=pD[u.iconName]),!J&&z&&(u.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),g&&(M&&g.iconName&&(g.iconName=pD[g.iconName]),!J&&z&&(g.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):d&&(M&&d.iconName&&(d.iconName=pD[d.iconName]),!J&&z&&(d.buttonSize=
"BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return E}},function(E){return _.W(_.Tn,{data:function(){return E}},{buttonViewModel:_.hM,
likeButtonViewModel:function(J){return _.W(_.TB,{data:J.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.FK})}))},"pj");_.d6f=function(l){_.y6.call(this);var e=this;this.JSC$20329_watchApi=l;l=_.b(_.AF({},void 0,"ufFdVc"));this.quickActionsViewModel=l.next().value;this.setQuickActionsViewModel=l.next().value;l=_.b(_.AF({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=l.next().value;this.setPlayerOverlayVideoDetailsRenderer=l.next().value;var O=this.JSC$20329_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WDi(e)});
this.addOnDisposeCallback(function(){e.JSC$20329_watchApi.unsubscribeByKey(O)});
WDi(this)};
_.m(_.d6f,_.y6);
var WDi=function(l){var e,O,E,J,z,M,Z,u,d,g,w,n,k,y;_.V(function(c){if(c.nextAddress==1)return _.C(c,l.JSC$20329_watchApi.playerApi,2);e=c.yieldResult;O=l.JSC$20329_watchApi.getWatchNextResponse();z=(E=O)==null?void 0:(J=E.playerOverlays)==null?void 0:J.playerOverlayRenderer;Z=_.I((M=z)==null?void 0:M.fullscreenQuickActionsBar,_.cfq);(d=(u=l).setQuickActionsViewModel)==null||d.call(u,Z||{});Z&&gfh(l,e);n=(g=z)==null?void 0:(w=g.videoDetails)==null?void 0:w.playerOverlayVideoDetailsRenderer;(y=(k=
l).setPlayerOverlayVideoDetailsRenderer)==null||y.call(k,n||{});n&&iMz(l,e);_.Cl(c)})},gfh=function(l,e){if(!l.quickActionButtonsContainer){l.quickActionButtonsContainer=document.createElement("div");
e.setFullscreenQuickActions(l.quickActionButtonsContainer);var O=function(){return l.quickActionsViewModel().quickActionButtons||[]},E=_.fH(l.quickActionButtonsContainer,function(){return _.W($6F,{data:O})});
l.addOnDisposeCallback(function(){e.setFullscreenQuickActions(void 0);E()})}},iMz=function(l,e){if(!l.playerOverlayVideoDetailsRendererContainer){l.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
e.setPlayerOverlayVideoDetailsRenderer(l.playerOverlayVideoDetailsRendererContainer);var O=_.fH(l.playerOverlayVideoDetailsRendererContainer,function(){return _.W(ofH,{data:l.playerOverlayVideoDetailsRenderer})});
l.addOnDisposeCallback(function(){e.setPlayerOverlayVideoDetailsRenderer(void 0);O()})}};_.KD=function(l){_.y6.call(this);var e=this;this.JSC$20334_watchApi=l;this.JSC$20334_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;l=_.kw(_.Om(),_.qc,function(O){e.onFullscreenChanged(O)});
this.addOnDisposeCallback(l);l=_.kw(_.Om(),_.mz,function(O){e.onWatchScroll(O)});
this.addOnDisposeCallback(l);_.a("kevlar_watch_while_v2")&&(l=_.kw(_.Om(),_.Pt,function(O){wE4(e,O)}),this.addOnDisposeCallback(l));
AR4(this);nfz(this);ayh();this.onWatchScroll(_.mz(_.Om().getState()));_.LH("START_IN_FULL_WINDOW_MODE")&&this.JSC$20334_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.m(_.KD,_.y6);var AR4=function(l){l.JSC$20334_watchApi.registerActionHandler("yt-fullscreen-change-action",function(e){var O=l.JSC$20334_watchApi.isActive();e&&!O||_.Om().dispatch(_.oM({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!e}}))});
l.addOnDisposeCallback(function(){l.JSC$20334_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},nfz=function(l){var e,O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20334_watchApi.playerApi,2);e=E.yieldResult;O=function(){l.onFullerscreenEduClicked()};
e.addEventListener("onFullerscreenEduClicked",O);l.addOnDisposeCallback(function(){e.removeEventListener("onFullerscreenEduClicked",O)});
_.Cl(E)})};
_.KD.prototype.onFullscreenChanged=function(l){var e=this,O;return _.V(function(E){if(E.nextAddress==1)return e.isFullscreen=!!_.ZG(),_.C(E,e.JSC$20334_watchApi.playerApi,2);O=E.yieldResult;e.JSC$20334_miniplayerActive||O.setFauxFullscreen(e.isFullscreen);if(l&&(e.JSC$20334_watchApi.focusOnPlayer(),!e.fullerscreenEduButtonShownThisPlayback)){e.fullerscreenEduButtonShownThisPlayback=!0;var J=_.gS("yt-fullerscreen-edu-button-shown-count")||0;_.dS("yt-fullerscreen-edu-button-shown-count",J+1,31536E3);
e.updateFullerscreenEduButtonSubtleModeState()}_.Cl(E)})};
var wE4=function(l,e){var O;_.V(function(E){if(E.nextAddress==1)return l.JSC$20334_miniplayerActive=e,_.C(E,l.JSC$20334_watchApi.playerApi,2);O=E.yieldResult;O.setFauxFullscreen(!l.JSC$20334_miniplayerActive&&l.isFullscreen);_.Cl(E)})};
_.KD.prototype.onWatchScroll=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1)return _.a("external_fullscreen_with_edu")?_.C(J,e.JSC$20334_watchApi.playerApi,2):J.return();O=J.yieldResult;E=l<=0;e.shouldShowFullerscreenEdu!==E&&(e.shouldShowFullerscreenEdu=E,O.updateFullerscreenEduButtonVisibility(!e.shouldShowFullerscreenEdu));_.Cl(J)})};
_.KD.prototype.onFullerscreenEduClicked=function(){this.JSC$20334_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var l=_.gS("yt-fullerscreen-edu-button-click-count")||0;_.dS("yt-fullerscreen-edu-button-click-count",l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.KD.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var l=this,e,O,E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return e=_.gS("yt-fullerscreen-edu-button-click-count")||0,O=_.gS("yt-fullerscreen-edu-button-shown-count")||0,E=_.Cv("external_fullscreen_button_click_threshold"),J=_.Cv("external_fullscreen_button_shown_threshold"),z=e>=E||O>=J,_.C(Z,l.JSC$20334_watchApi.playerApi,2);M=Z.yieldResult;M.updateFullerscreenEduButtonSubtleModeState(z);_.Cl(Z)})};
_.KD.prototype.disposeInternal=function(){_.y6.prototype.disposeInternal.call(this);var l=_.ZG();_.a("kevlar_exit_fullscreen_leaving_watch")&&l&&_.ui(l)};
var ayh=function(){if(_.a("web_watch_add_viewport_meta_tag")){var l=document.querySelector("meta[name=viewport]"),e=document.head;e&&!l&&(l=document.createElement("meta"),l.name="viewport",l.content="width=device-width, initial-scale=1.0, viewport-fit=cover",e.appendChild(l))}};_.jl=function(l){_.y6.call(this);var e=this;this.JSC$20338_watchApi=l;this.jobId=0;this.pendingRequestId=void 0;var O=this.JSC$20338_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kT0(e)});
this.addOnDisposeCallback(function(){e.JSC$20338_watchApi.unsubscribeByKey(O)});
kT0(this)};
_.m(_.jl,_.y6);var Iyu=function(l){_.UD.cancelJob(l.jobId);l.pendingRequestId=void 0},kT0=function(l){Iyu(l);
var e=RKu(l.JSC$20338_watchApi.getWatchNextResponse());if(e){var O=250,E,J=(E=_.I(e,_.fYk))==null?void 0:E.initialDelayMs;_.a("web_watch_updated_metadata_server_initial_delay")&&J&&(O=J);l.jobId=_.UD.addLowPriorityJob(function(){return l.fetchUpdatedMetadata(e)},O)}};
_.jl.prototype.fetchUpdatedMetadata=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P;return _.V(function(h){switch(h.nextAddress){case 1:e&&(E={continuation:e});if(!_.a("web_get_updated_metadata_fantasy_panel_continuation_params")){h.jumpTo(2);break}J=_.V2().resolve(_.ye);z="PAsports_fantasy";return _.C(h,J.isVisible(z,!0),3);case 3:h.yieldResult&&(d=(Z=(M=J).getUpdatePanelContinuationData)==null?void 0:(u=Z.call(M,z))==null?void 0:u.updatePanelContinuationRequest)&&(E||(E={}),E.clientParams=
{panelContinuationParams:{panelContinuation:d}});case 2:g=_.V2().resolve(_.Um);if(!g)return _.UW(Error("jm")),h.return();w={};O.pendingRequestId=w;return _.C(h,_.Qh(g,l,E),4);case 4:n=h.yieldResult;if(w!==O.pendingRequestId)return h.return();c=(k=n)==null?void 0:(y=k.continuation)==null?void 0:y.timedContinuationData;((f=c)==null?0:f.continuation)&&((P=c)==null?0:P.timeoutMs)&&(O.jobId=_.UD.addLowPriorityJob(function(){return O.fetchUpdatedMetadata(l,c.continuation)},c.timeoutMs));
_.Cl(h)}})};
_.jl.prototype.disposeInternal=function(){_.y6.prototype.disposeInternal.call(this);Iyu(this)};var m6u=_.XO(function(l){var e=_.pd(function(){var E=l.data().videoId;if(l.active())E=_.Vy(E),_.V2().resolve(_.Zh).resolveCommand(E);else{var J=l.playerApi(),z=J.getAvailableAudioTracks(),M,Z,u=(M=l.sourceVideoConfig().audioTracks)==null?void 0:(Z=M.find(function(d){return d.isDefaultForSource}))==null?void 0:Z.id;
if(z=z.find(function(d){return d.getLanguageInfo().getId()===u}))J.setAudioTrack(z,!0),J.setCompositeParam({activeVideoId:E}),l.setActiveSourceId(E)}}),O={};
return _.W("ytw-composite-source-video-overlay",{class:_.ax("ytwCompositeSourceVideoOverlayHost",(O.ytwCompositeSourceVideoOverlayActive=l.active,O.ytwCompositeSourceVideoOverlayInteracting=l.interacting,O)),style:_.HF({left:function(){var E;return((E=l.data().topLeftCornerX)!=null?E:0)*100+"%"},
top:function(){var E;return((E=l.data().topLeftCornerY)!=null?E:0)*100+"%"},
width:function(){var E;return((E=l.data().width)!=null?E:0)*100+"%"},
height:function(){var E;return((E=l.data().height)!=null?E:0)*100+"%"}}),
"on:click":e},_.W("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"qj");var yRO=_.XO(function(l){var e=_.b(_.jN(function(){var M,Z=(M=l.data().sources)==null?void 0:M.find(function(u){return u.isActive});
if(Z)return Z.videoId})),O=e.next().value,E=e.next().value;
e=_.b(_.AF(!1,void 0,"WI4BUb"));var J=e.next().value,z=e.next().value;return _.W("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.pd(function(){z(!0)}),
"on:mouseout":_.pd(function(){z(!1)})},_.W(_.A,{cond:function(){return l.data().sources},
then:function(M){return _.W(_.KH,{each:M},function(Z){return _.W(m6u,{data:Z,active:function(){return Z.videoId===O()},
setActiveSourceId:E,interacting:J,playerApi:l.playerApi,sourceVideoConfig:function(){return TOu(l.compositeVideoConfig(),Z.videoId)}})})}}))},"rj");_.jVO=function(l){_.y6.call(this);this.JSC$20354_watchApi=l;l=_.b(_.AF({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=l.next().value;this.setCompositeVideoOverlayRenderer=l.next().value;l=_.b(_.AF({},void 0,"U5hcq"));this.compositeVideoConfig=l.next().value;this.setCompositeVideoConfig=l.next().value;pEi(this);KDO(this)};
_.m(_.jVO,_.y6);var pEi=function(l){var e=l.JSC$20354_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){KDO(l)});
l.addOnDisposeCallback(function(){l.JSC$20354_watchApi.unsubscribeByKey(e)})},HMP=function(l){var e;
return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$20354_watchApi.playerApi,2);e=O.yieldResult;e.setCompositeVideoOverlayRendererComponent(l.container);_.Cl(O)})},cR0=function(l){var e;
return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$20354_watchApi.playerApi,2);e=O.yieldResult;e.setCompositeVideoOverlayRendererComponent(void 0);_.Cl(O)})},FD0=function(l){var e,O;
return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20354_watchApi.playerApi,2);e=E.yieldResult;l.container=document.createElement("div");O=_.fH(l.container,function(){return _.W(yRO,{data:l.compositeVideoOverlayRenderer,compositeVideoConfig:l.compositeVideoConfig,playerApi:e})});
l.addOnDisposeCallback(O);_.Cl(E)})},KDO=function(l){var e,O,E,J,z,M,Z,u;
_.V(function(d){return d.nextAddress==1?(e=l.JSC$20354_watchApi.getPlayerResponse(),z=_.I((O=e)==null?void 0:(E=O.overlay)==null?void 0:(J=E.playerControlsOverlayRenderer)==null?void 0:J.compositeVideoOverlay,mnF),u=(M=e)==null?void 0:(Z=M.playerConfig)==null?void 0:Z.compositeVideoConfig,z&&l.setCompositeVideoOverlayRenderer(z),u&&l.setCompositeVideoConfig(u),z&&u?l.container?d.jumpTo(6):_.C(d,FD0(l),6):fy3(l)?_.C(d,cR0(l),0):d.jumpTo(0)):fy3(l)?d.jumpTo(0):_.C(d,HMP(l),0)})},fy3=function(l){var e;
return!((e=l.container)==null||!e.parentElement)};
_.jVO.prototype.disposeInternal=function(){fy3(this)&&cR0(this);_.y6.prototype.disposeInternal.call(this)};_.BN0=function(l){_.y6.call(this);var e=this;this.JSC$20360_watchApi=l;var O=this.JSC$20360_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var E=e.JSC$20360_watchApi.getPlayerResponse();if(E){var J,z;if(E=_.I((J=E.endscreen)==null?void 0:(z=J.endscreenRenderer)==null?void 0:z.hideButton,_.ci)){var M;(M=e.setEndscreenHideButton)==null||M.call(e,E);ROO(e)}}});
this.addOnDisposeCallback(function(){e.JSC$20360_watchApi.unsubscribeByKey(O)});
l=_.b(_.AF({},void 0,"PPHRb"));this.endscreenHideButton=l.next().value;this.setEndscreenHideButton=l.next().value;TNi(this);sVh(this);GTH(this)};
_.m(_.BN0,_.y6);var ROO=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return l.creatorEndscreenHideButtonContainer?E.return():_.C(E,l.JSC$20360_watchApi.playerApi,2);e=E.yieldResult;l.creatorEndscreenHideButtonContainer=document.createElement("div");_.Q6(l.creatorEndscreenHideButtonContainer,!1);e.setCreatorEndscreenHideButton(l.creatorEndscreenHideButtonContainer);O=_.fH(l.creatorEndscreenHideButtonContainer,function(){return _.W(_.sh,{data:l.endscreenHideButton,useOutlinedIcon:!0})});
l.addOnDisposeCallback(function(){O();e.setCreatorEndscreenHideButton(void 0)});
_.Cl(E)})},TNi=function(l){var e,O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20360_watchApi.playerApi,2);e=E.yieldResult;O=function(){l.creatorEndscreenHideButtonContainer&&_.Q6(l.creatorEndscreenHideButtonContainer,!0)};
e.addEventListener("endscreenelementshown",O);l.addOnDisposeCallback(function(){e.removeEventListener("endscreenelementshown",O)});
_.Cl(E)})},sVh=function(l){var e=function(){l.creatorEndscreenHideButtonContainer&&_.Q6(l.creatorEndscreenHideButtonContainer,!1)},O=l.JSC$20360_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",e),E=l.JSC$20360_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",e);
l.addOnDisposeCallback(function(){l.JSC$20360_watchApi.unsubscribeByKey(O);l.JSC$20360_watchApi.unsubscribeByKey(E)})},GTH=function(l){l.JSC$20360_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(e){var O=_.I(e,wMH);
l.JSC$20360_watchApi.playerApi.then(function(E){E==null||E.setCreatorEndscreenVisibility(!!O.hide)})});
l.addOnDisposeCallback(function(){l.JSC$20360_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.U6i=function(l){_.y6.call(this);this.JSC$20366_watchApi=l;Pm3(this)};
_.m(_.U6i,_.y6);var Pm3=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20366_watchApi.playerApi,2);e=E.yieldResult;O=function(J){_.Om().dispatch(_.oM({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:J}}))};
e.addEventListener("onRetroModeChanged",O);l.addOnDisposeCallback(function(){e.removeEventListener("onRetroModeChanged",O)});
_.Cl(E)})};var Hg=0,j2=0,cg=0;var Yrf;Yrf=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.H7=function(l){_.y6.call(this);this.JSC$20379_watchApi=l;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;hOP(this)};
_.m(_.H7,_.y6);
var hOP=function(l){var e,O,E;_.V(function(J){if(J.nextAddress==1)return _.C(J,l.JSC$20379_watchApi.playerApi,2);e=J.yieldResult;if(l.isDisposed())return J.return();l.sessionStorage=_.aS4("yt-sleep-timer");l.sessionStorage||_.hG(new _.Hk("SessionStorage for Sleep Timer is undefined."));((O=l.sessionStorage)==null?void 0:O.get("yt-sleep-timer"))==="true"&&(qyC(),(E=l.sessionStorage)==null||E.remove("yt-sleep-timer"),e.syncVolume());LDh(l,e);tzP(l,e);qru(l,e);_.Cl(J)})},LDh=function(l,e){var O=function(d){l.onSleepTimerSettingsChanged(d,
e)},E=function(d){l.onPlayerStateChange(d,e)},J=function(){l.onLoopChange(e)},z=function(){l.onCloseMiniplayer(e)},M=function(){Yyo(e,(0,_.VZ)(),vti(e),l.selectedOption==="End of video",e.getPlayerState()!==1)},Z=function(){l.onSeekComplete(e)},u=function(){_.UD.cancelJob(j2);
var d=e.getCurrentTime()>=e.getDuration(),g=l.selectedOption==="End of video"||l.selectedOption==="End of playlist"&&!BOf(l.playlistId);d&&g&&vfP(l,e)};
e.addEventListener("onSleepTimerSettingsChanged",O);e.addEventListener("onLoopChange",J);e.addEventListener("onLoopRangeChange",J);e.addEventListener("onStateChange",E);e.addEventListener("onCloseMiniplayer",z);e.addEventListener("onSleepTimerFeatureAvailable",M);e.addEventListener("SEEK_COMPLETE",Z);e.addEventListener("onAdStart",u);l.addOnDisposeCallback(function(){e.removeEventListener("onSleepTimerSettingsChanged",O);e.removeEventListener("onLoopChange",J);e.removeEventListener("onLoopRangeChange",
J);e.removeEventListener("onStateChange",E);e.removeEventListener("onCloseMiniplayer",z);e.removeEventListener("onSleepTimerFeatureAvailable",M);e.removeEventListener("SEEK_COMPLETE",Z);e.removeEventListener("onAdStart",u)})},tzP=function(l,e){var O=l.JSC$20379_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var E=e.getVideoData().video_id,J,z=(J=sY3(l.JSC$20379_watchApi))==null?void 0:J.playlistId;
l.pauseAutonavPlayback&&(e.pauseVideo(),e.syncVolume(),l.pauseAutonavPlayback=!1);if(l.selectedOption==="End of video"&&E!==l.videoId)c7(l,e);else{if(l.selectedOption==="End of playlist"){J=BOf(l.playlistId);if(z!==l.playlistId){c7(l,e);break a}J?J&&NNu(l,e):rRu(l,e)}l.videoId=E;l.playlistId=z}}});
l.addOnDisposeCallback(function(){l.JSC$20379_watchApi.unsubscribeByKey(O)})},qru=function(l,e){var O=_.V2().resolve(_.LQ),E=_.kw(O,_.CS8,function(z){z&&l.selectedOption!=="Off"&&c7(l,e)}),J=l.JSC$20379_watchApi.subscribeToActiveChanged(function(z){var M,Z;
return _.V(function(u){if(u.nextAddress==1)return _.C(u,_.n6().navigationFinishPromise,2);M=!_.hyC();Z=_.V2().resolve(_.NJ).isMiniplayerActive();z||!KX(l.selectedOption)||Z||M||c7(l,e);_.Cl(u)})},!1);
O=_.kw(O,function(z){return z.entities.playlistLoopStateEntity||{}},function(z){z=z===void 0?{}:z;
var M=GO0(l.JSC$20379_watchApi);if(M){var Z;((Z=z[M])==null?void 0:Z.state)==="PLAYLIST_LOOP_STATE_ALL"&&KX(l.selectedOption)&&c7(l,e)}});
l.addOnDisposeCallback(E);l.addOnDisposeCallback(O);l.addOnDisposeCallback(J)};
_.H7.prototype.onSleepTimerSettingsChanged=function(l,e){switch(l){case "Off":this.selectedOption!=="Off"&&c7(this,e);break;case "End of video":case "End of playlist":D6z(this,l,e);break;default:D6z(this,l,e,Yrf.get(l))}};
_.H7.prototype.onLoopChange=function(l){(l.getLoopVideo()||l.getLoopRange())&&KX(this.selectedOption)&&c7(this,l)};
_.H7.prototype.onCloseMiniplayer=function(l){KX(this.selectedOption)&&c7(this,l)};
var D6z=function(l,e,O,E){SrH(l,O);l.selectedOption=e;l.videoId=O.getVideoData().video_id;l.playlistId="";var J;(J=l.sessionStorage)==null||J.set("yt-sleep-timer","true");l.adjustmentsCount++;Yyo(O,(0,_.VZ)(),vti(O),l.selectedOption==="End of video");if(l.selectedOption==="End of video")rRu(l,O),QVF(l,O);else if(l.selectedOption==="End of playlist"){QVF(l,O);var z,M;l.playlistId=(M=(z=sY3(l.JSC$20379_watchApi))==null?void 0:z.playlistId)!=null?M:"";BOf(l.playlistId)||rRu(l,O)}else E&&(l.presetFadeSchedulerId=
_.pT(_.UD,function(){L_o(O,15E3)},E-15E3),l.presetPauseSchedulerId=_.pT(_.UD,function(){vfP(l,O)},E),hKf(O,(0,_.VZ)(),E))},vfP=function(l,e){if(l.JSC$20379_watchApi.isActive()){var O={dismissDialogEndpoint:{}};
var E={commandExecutorCommand:{commands:[O,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};O={buttonViewModel:{title:_.ml("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:O}}};E={buttonViewModel:{title:_.ml("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:E}}};var J={dialogHeaderViewModel:{headline:{content:_.ml("SLEEP_TIMER_ENDED_TITLE")}}},
z={basicContentViewModel:{paragraphs:[{text:{content:_.ml("SLEEP_TIMER_ENDED_TEXT")}}]}};O={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:J,content:z,footer:{panelFooterViewModel:{primaryButton:O,secondaryButton:E,shouldHideDivider:!0}}}}}}};_.V2().resolve(_.Zh).resolveCommand(O,{form:{element:l}})}else qyC();x6u(l,!1);l6i(l,e);e.pauseVideo();_.E5.getInstance().getState()===2&&e.getPlayerState()===5&&(l.pauseAutonavPlayback=!0)},c7=function(l,e){x6u(l,!0);
l6i(l,e);qyC()},l6i=function(l,e){SrH(l,e);
l.selectedOption="Off";l.videoId="";l.playlistId="";l.adjustmentsCount=0;var O;(O=l.sessionStorage)==null||O.remove("yt-sleep-timer");_.UD.cancelJob(Hg);e.resetSleepTimerMenuSettings()},x6u=function(l,e){e={timer_length_adjustment_times_during_session:l.adjustmentsCount-1,
is_session_cancelled:e};switch(l.selectedOption){case "Off":e.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":e.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":e.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:e.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",e.option_duration_in_minutes=Yrf.get(l.selectedOption)/6E4}_.Bm("sleepTimerSessionFinishEvent",e)};
_.H7.prototype.onPlayerStateChange=function(l,e){l===1?Yyo(e,(0,_.VZ)(),vti(e),this.selectedOption==="End of video"):l===0?(_.UD.cancelJob(j2),e.setVideoTimeLeft(U_z(0,0))):l===2&&_.UD.cancelJob(j2);this.selectedOption==="End of video"?l===0?vfP(this,e):l===2&&tm4(e):this.selectedOption!=="End of playlist"||BOf(this.playlistId)||(l===0?vfP(this,e):l===2&&tm4(e))};
_.H7.prototype.onSeekComplete=function(l){l.getPlayerState()===2&&Yyo(l,(0,_.VZ)(),vti(l),this.selectedOption==="End of video",!0)};
_.H7.prototype.onCueRangeEnter=function(l,e){l==="sleep-timer-fade-audio"&&L_o(e,(e.getDuration()-e.getProgressState().current)*1E3)};
_.H7.prototype.onCueRangeExit=function(l,e){l==="sleep-timer-fade-audio"&&e.getPlayerState()!==0&&tm4(e,!0)};
var rRu=function(l,e){e.addCueRange("sleep-timer-fade-audio",e.getDuration()-15,e.getDuration());e.addEventListener("onCueRangeEnter",function(O){l.onCueRangeEnter(O,e)});
e.addEventListener("onCueRangeExit",function(O){l.onCueRangeExit(O,e)})},NNu=function(l,e){e.removeCueRange("sleep-timer-fade-audio");
e.removeEventListener("onCueRangeEnter",function(O){l.onCueRangeEnter(O,e)});
e.removeEventListener("onCueRangeExit",function(O){l.onCueRangeExit(O,e)})},SrH=function(l,e){KX(l.selectedOption)?NNu(l,e):(_.UD.cancelJob(l.presetPauseSchedulerId),_.UD.cancelJob(l.presetFadeSchedulerId),l.presetPauseSchedulerId=0,l.presetFadeSchedulerId=0);
tm4(e,!0)},QVF=function(l,e){e.setLoop(!1);
e.setLoopVideo(!1);e.setLoopRange(null);(l=GO0(l.JSC$20379_watchApi))&&_.V2().resolve(_.LQ).dispatch(_.IK("playlistLoopStateEntity",l,{key:l,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Jyo=function(l){_.y6.call(this);this.JSC$20382_watchApi=l;eiP(this);O5P(this);Esh(this);l=l.getRoot();if(l.is==="ytd-watch-flexy"||l.is==="ytd-watch-grid")l.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.XVO();_.a("web_watch_log_theater_mode_cookie_state")&&_.mW.get("wide","0")==="1"&&_.YXt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.m(_.Jyo,_.y6);var eiP=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20382_watchApi.playerApi,2);e=E.yieldResult;O=function(J){XG3(l,!!J)};
e.addEventListener("SIZE_CLICKED",O);l.addOnDisposeCallback(function(){e.removeEventListener("SIZE_CLICKED",O)});
_.Cl(E)})},O5P=function(l){l.JSC$20382_watchApi.registerActionHandler("yt-toggle-theater-mode",function(e,O){XG3(l,e,O===void 0?!0:O)});
l.addOnDisposeCallback(function(){l.JSC$20382_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Jyo.prototype.getState=function(){return _.tM(_.Om().getState())};
var XG3=function(l,e,O){O=O===void 0?!0:O;var E,J,z,M=_.a("enable_player_resize_transition")&&!!l.JSC$20382_watchApi.getWatchNextResponse()&&!((E=l.JSC$20382_watchApi.getWatchNextResponse())==null?0:(J=E.contents)==null?0:(z=J.twoColumnWatchNextResults)==null?0:z.conversationBar);_.k1u(function(){_.Om().dispatch(_.oM({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:e}}));_.a("theater_mode_scroll_to_top_killswitch")||l.JSC$20382_watchApi.scrollWatchTo(0,!1);_.ZG()&&_.a("external_fullscreen")&&_.ui(document.documentElement);
Esh(l);O&&_.y2("wide",e?"1":"0",-1);_.Wb(l.JSC$20382_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);l.JSC$20382_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:e});e&&_.XVO()},{shouldWrap:M})},Esh=function(l){var e;
_.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$20382_watchApi.playerApi,2);e=O.yieldResult;e.setSizeStyle(!0,l.getState());_.Cl(O)})};var MC0=function(l){_.y6.call(this);var e=this;this.playerApi=l;this.timeToPanelSyncKeyMap={};var O;if(l==null?0:(O=l.isReady)==null?0:O.call(l)){O=_.kw(_.V2().resolve(_.LQ),function(J){return J.entities.timedMarkersListSyncEntity||{}},function(J,z){J=J===void 0?{}:J;
z=z===void 0?{}:z;for(var M=_.b(Object.keys(z)),Z=M.next();!Z.done;Z=M.next())Z=Z.value,J[Z]!==z[Z]&&zii(e,z[Z]);z=_.b(Object.keys(J));for(M=z.next();!M.done;M=z.next())M=M.value,Z=J[M],e.timeToPanelSyncKeyMap[M]&&b5P(e,Z)});
this.addOnDisposeCallback(O);var E=function(J){e.onCueRangeEnter(J)};
l.addEventListener("onCueRangeEnter",E);this.addOnDisposeCallback(function(){var J;(J=l.removeEventListener)==null||J.call(l,"onCueRangeEnter",E)})}};
_.m(MC0,_.y6);
var b5P=function(l,e){var O,E;if((O=l.playerApi)==null?0:(E=O.isReady)==null?0:E.call(O)){var J;if((O=e==null?void 0:(J=e.timedListData)==null?void 0:J.sections)&&e!=null&&e.key)for(J=_.b(O),O=J.next();!O.done;O=J.next())if(O=O.value,O.timedSyncDataList&&O.sectionId)for(E=0;E<O.timedSyncDataList.length;E++){var z=O.timedSyncDataList[E];z.syncItemId&&l.playerApi.addCueRange(O.sectionId+"_"+e.key+"_"+z.syncItemId,Number(z.videoTimeMs)/1E3,E===O.timedSyncDataList.length-1?0x8000000000000:Number(O.timedSyncDataList[E+
1].videoTimeMs)/1E3)}}},zii=function(l,e){var O,E;
if((O=l.playerApi)==null?0:(E=O.isReady)==null?0:E.call(O)){var J;if((O=e==null?void 0:(J=e.timedListData)==null?void 0:J.sections)&&e!=null&&e.key)for(J=_.b(O),O=J.next();!O.done;O=J.next())if(O=O.value,O.timedSyncDataList&&O.sectionId){E=_.b(O.timedSyncDataList);for(var z=E.next();!z.done;z=E.next())z=z.value,z.syncItemId&&l.playerApi.removeCueRange(O.sectionId+"_"+e.key+"_"+z.syncItemId)}}};
MC0.prototype.onCueRangeEnter=function(l){for(var e=_.b(Object.keys(this.timeToPanelSyncKeyMap)),O=e.next();!O.done;O=e.next()){O=O.value;var E=_.b(l.split("_"+O+"_")),J=E.next().value;E=E.next().value;if(J&&E){l=_.V2().resolve(_.LQ);e=this.timeToPanelSyncKeyMap[O];var z=_.wlt(l.getState(),e);O=VC4(O,J,E);if(O===-1)break;O={activeSyncId:E,activeItemIndex:O,activeSectionInfo:{sectionIdentifier:J}};z?l.dispatch(_.Gn("markersEngagementPanelSyncEntity",e,O)):l.dispatch(_.IK("markersEngagementPanelSyncEntity",
e,Object.assign({},{key:e},O)));break}}};
var VC4=function(l,e,O){var E=_.V2().resolve(_.LQ),J,z;l=(J=eK4(E.getState(),l))==null?void 0:(z=J.timedListData)==null?void 0:z.sections;if(!l)return-1;J=0;z=_.b(l);for(l=z.next();!l.done;l=z.next()){l=l.value;E=l.timedSyncDataList||[];if(l.sectionId===e)return e=E.findIndex(function(M){return M.syncItemId===O}),e===-1?e:J+e;
J+=E.length}return-1};_.CWu=function(l){_.y6.call(this);var e=this;this.JSC$20394_watchApi=l;this.unresolvedCommands=[];this.JSC$20394_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(O){Z5i(e,O)});
this.addOnDisposeCallback(function(){e.JSC$20394_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
udh(this)};
_.m(_.CWu,_.y6);var udh=function(l){var e;_.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$20394_watchApi.playerApi,2);e=O.yieldResult;if(l.isDisposed())return O.return();l.timedSyncObserver=new MC0(e);l.unresolvedCommands.length&&(l.unresolvedCommands.forEach(function(E){return Z5i(l,E)}),l.unresolvedCommands=[]);
_.oQ(l,l.timedSyncObserver);_.Cl(O)})},Z5i=function(l,e){if(l.timedSyncObserver){var O=_.I(e,niP);
if(O&&O.timedSyncEntityKey&&O.panelSyncEntityKey){l=l.timedSyncObserver;e=O.timedSyncEntityKey;var E=O.panelSyncEntityKey;O=!!O.isEnabled;O=O===void 0?!0:O;var J=_.V2().resolve(_.LQ);J=eK4(J.getState(),e);O?l.timeToPanelSyncKeyMap[e]||(l.timeToPanelSyncKeyMap[e]=E,b5P(l,J)):(delete l.timeToPanelSyncKeyMap[e],zii(l,J))}}else l.unresolvedCommands.push(e)};var osu=_.XO(function(l){var e=l.data,O=l.maybeLogSmartSkipClientData,E=_.e4("ytw-timely-action-view-model");_.xD(E,function(){return e().rendererContext},{onTap:function(g,w){w({disableClickTracking:!0})}});
var J=null,z=null,M=_.a("web_enable_auto_focus_for_timely_action_button"),Z=function(){J=document.activeElement},u=function(){e().smartSkipMetadata&&(J=document.activeElement,_.Laz(function(){return z}))},d=function(g){if(e().smartSkipMetadata&&(!g||g.key!=="Enter")){J&&J.isConnected&&(_.Laz(function(){return J}),J=null);
var w;(w=z)==null||w.blur()}};
l=_.pd(function(){O==null||O(!0,e());return!1});
_.VR(E,{visibilityCallback:function(g){if(M)g?z&&e().smartSkipMetadata&&(u(),document.addEventListener("focusin",Z)):(document.removeEventListener("focusin",Z),d());else if(g&&_.a("web_ephemeral_actions")){g=_.Sp(e().rendererContext);var w=Number(e().maxVisibleDurationMilliseconds),n,k=(n=_.I(e().rendererContext,_.yu))==null?void 0:n.label;g&&w&&k&&(n={label:k,command:g,durationMs:w},_.V2().resolve(_.$Y).enqueue(n))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.RU(function(){if(M){var g;if((z=(g=E.value)==null?void 0:g.querySelector("button"))&&e().smartSkipMetadata){var w;(w=E.value)==null||w.addEventListener("keydown",d)}}});
_.B3(function(){M&&(z&&e().smartSkipMetadata&&z.removeEventListener("keydown",d),document.removeEventListener("focusin",Z),d())});
return _.W("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:E,"on:click":l},_.W(_.Tn,{data:function(){return e().content}},{buttonViewModel:_.hM}))},"sj");var $F4=_.XO(function(l){var e=l.data,O=l.playerApi,E=_.V2().resolve(_.yXF);l=_.b(_.jN(function(){e()}));
var J=l.next().value,z=l.next().value,M=function(){return r44(e(),J())},Z=function(d,g){var w,n,k=(w=_.I(g==null?void 0:g.rendererContext,_.p4))==null?void 0:(n=w.loggingDirectives)==null?void 0:n.trackingParams;
if((g=g==null?void 0:g.smartSkipMetadata)&&g.loggingData&&(n=g.loggingData,g=n.algorithmId,w=n.startMilliseconds,n=n.endMilliseconds,g&&w!==void 0&&n!==void 0)){var y,c;d={smartSkipData:Object.assign({},{versionName:g,startMediaTimeMs:w,endMediaTimeMs:n},d&&{userInteractionMediaTimeMs:(Math.floor(((y=_.bV())==null?void 0:(c=y.getPlayer())==null?void 0:c.getCurrentTime())||0)*1E3).toString()})};y=_.P9();var f;k&&(f=_.cf(k));y&&f&&_.JY(y,f,d)}},u=function(d,g){var w=r44(e(),d);
if(w){var n=_.I(w,Fp),k;if(k=g)k=O(),w=_.I(w,Fp),k=w!=null&&w.smartSkipMetadata?!(k==null?0:k.isSameMarkerTypeVisible((w==null?void 0:w.smartSkipMetadata.markerKey)||"")):!0;if(k){var y,c;(n==null?0:(y=n.smartSkipMetadata)==null?0:(c=y.loggingData)==null?0:c.isCounterfactual)||(Z(!1,n),z(d))}else g||J()!==d||z(void 0)}};
_.Gh(function(){var d=e().timelyActions;if(d){d=_.b(d);for(var g=d.next();!g.done;g=d.next()){g=_.I(g.value,Fp);var w=void 0;(w=g)!=null&&w.cueRangeId&&E.timelyActionsMap.set(g.cueRangeId,u)}_.B3(function(){E.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.W("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.W(_.Tn,{data:M},{timelyActionViewModel:function(d){return _.W(osu,{data:d.data,maybeLogSmartSkipClientData:function(){Z(!0,_.I(M(),Fp))}})}}))},"tj");_.dFC=function(l){_.y6.call(this);this.JSC$20406_watchApi=l;l=_.b(_.AF({},void 0,"pLDp2"));this.timelyActionsOverlay=l.next().value;this.setTimelyActionsOverlay=l.next().value;Wvf(this)};
_.m(_.dFC,_.y6);var Wvf=function(l){var e,O,E,J;_.V(function(z){if(z.nextAddress==1)return gsH(l),i5F(l),l.timelyActionsContainer=document.createElement("div"),_.C(z,l.JSC$20406_watchApi.playerApi,2);e=z.yieldResult;(E=(O=e).insertTimelyActionUi)==null||E.call(O,l.timelyActionsContainer);J=_.fH(l.timelyActionsContainer,function(){return _.W($F4,{data:l.timelyActionsOverlay,playerApi:e})});
l.addOnDisposeCallback(J);_.Cl(z)})},i5F=function(l){var e=l.JSC$20406_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gsH(l)});
l.addOnDisposeCallback(function(){l.JSC$20406_watchApi.unsubscribeByKey(e)})},gsH=function(l){var e=l.JSC$20406_watchApi.getWatchNextResponse();
if(e){var O,E;if(e=_.I((O=e.playerOverlays)==null?void 0:(E=O.playerOverlayRenderer)==null?void 0:E.timelyActionsOverlayViewModel,a5f)){var J;(J=l.setTimelyActionsOverlay)==null||J.call(l,e)}}};_.Ayh=function(l){_.y6.call(this);this.JSC$20410_watchApi=l;wGO(this)};
_.m(_.Ayh,_.y6);var wGO=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20410_watchApi.playerApi,2);e=E.yieldResult;O=function(J){_.n4.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.I(J,_.KTo)},popupType:"TOAST"}})};
e.addEventListener("onYtShowToast",O);l.addOnDisposeCallback(function(){e.removeEventListener("onYtShowToast",O)});
_.Cl(E)})};var ns0,I6h,a6u,kcF,Kvz,yyz,pGO,H5z,cyh;ns0=!1;_.mFf=function(l){_.y6.call(this);this.JSC$20413_watchApi=l;this.fullscreen=this.theater=!1;a6u(this);kcF(this);I6h(this)};
_.m(_.mFf,_.y6);I6h=function(l){var e,O,E;_.V(function(J){if(J.nextAddress==1)return _.C(J,l.JSC$20413_watchApi.playerApi,2);e=J.yieldResult;if(l.isDisposed())return J.return();O=l.JSC$20413_watchApi.getElement("CINEMATICS");if(!O)return J.return();l.JSC$20413_cinematicController=new _.J8(O,e);_.oQ(l,l.JSC$20413_cinematicController);_.SiF(l.JSC$20413_cinematicController);yyz(l,_.Zgt());E=l.JSC$20413_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(z){pGO(l,z)});
l.addOnDisposeCallback(function(){l.JSC$20413_watchApi.unsubscribeByKey(E)});
Kvz(l);pGO(l,l.JSC$20413_cinematicController.isAllowed());_.j0z(l,l.fullscreen,l.theater);H5z(l);_.Cl(J)})};
a6u=function(l){var e=l.JSC$20413_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Kvz(l)});
l.addOnDisposeCallback(function(){l.JSC$20413_watchApi.unsubscribeByKey(e)})};
kcF=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20413_watchApi.playerApi,2);e=E.yieldResult;O=function(J){yyz(l,J)};
e.addEventListener("cinematicSettingsToggleChange",O);l.addOnDisposeCallback(function(){e.removeEventListener("cinematicSettingsToggleChange",O)});
_.Cl(E)})};
Kvz=function(l){var e=l.JSC$20413_watchApi.getWatchNextResponse(),O;e=_.I(e==null?void 0:(O=e.pageVisualEffects)==null?void 0:O[0],_.a0);var E;(E=l.JSC$20413_cinematicController)==null||_.xEu(E,e)};
yyz=function(l,e){var O;(O=l.JSC$20413_cinematicController)==null||_.QR4(O,e);cyh(l)};
pGO=function(l,e){var O;_.V(function(E){if(E.nextAddress==1)return _.a("kevlar_watch_cinematics_invisible")&&(e=!1),_.C(E,l.JSC$20413_watchApi.playerApi,2);O=E.yieldResult;O.updateCinematicSettings(e);cyh(l);_.Cl(E)})};
H5z=function(l){var e=_.Kz();if(_.a("kevlar_measure_ambient_mode_idle")&&!e.getFlag(192)&&!ns0){ns0=!0;var O=_.fZ(_.UD,function(){_.V2().resolve(_.AC3).start(1E4)},5E3);
l.addOnDisposeCallback(function(){_.UD.cancelJob(O);_.V2().resolve(_.AC3).stop()})}};
_.j0z=function(l,e,O){l.fullscreen=e;l.theater=O;var E;(E=l.JSC$20413_cinematicController)==null||E.setFullscreen(l.fullscreen,l.theater);if(_.a("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(l.theater||l.fullscreen){var J;(J=l.JSC$20413_cinematicController)==null||_.loC(J)}else if((l=l.JSC$20413_cinematicController)!=null){var z;(z=l.currentCinematicEffect)==null||z.pause()}};
cyh=function(l){if(_.a("web_cinematic_theater_mode")||_.a("web_cinematic_fullscreen")){var e;l.JSC$20413_watchApi.getRoot().toggleCinematicsActive(!((e=l.JSC$20413_cinematicController)==null||!e.isEnabled()))}};_.Tyu=function(l){_.y6.call(this);var e=this;this.JSC$20416_watchApi=l;this.commentsReady=!1;this.setCommentsJobId=0;l=_.kw(_.Om(),_.mz,function(){Fvz(e)});
this.addOnDisposeCallback(l);var O=this.JSC$20416_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){f6F(e)}),E=this.JSC$20416_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){f6F(e)});
this.addOnDisposeCallback(function(){e.JSC$20416_watchApi.unsubscribeByKey(O);e.JSC$20416_watchApi.unsubscribeByKey(E)});
var J=function(){_.a("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Ri3(e,"false")};
this.JSC$20416_watchApi.getRoot().addEventListener("yt-page-data-will-update",J);this.addOnDisposeCallback(function(){e.JSC$20416_watchApi.getRoot().removeEventListener("yt-page-data-will-update",J)});
f6F(this)};
_.m(_.Tyu,_.y6);var f6F=function(l){l.commentsReady=!1;_.UD.cancelJob(l.setCommentsJobId);l.setCommentsJobId=_.fZ(_.UD,function(){Fvz(l)},1E3)},Fvz=function(l){if(!l.commentsReady){_.Yu("cmi");
_.UD.cancelJob(l.setCommentsJobId);var e,O,E,J,z=(e=l.JSC$20416_watchApi.getWatchNextResponse())==null?void 0:(O=e.contents)==null?void 0:(E=O.twoColumnWatchNextResults)==null?void 0:(J=E.results)==null?void 0:J.results.contents;e=void 0;if(z&&z.length)for(z=_.b(z),O=z.next();!O.done;O=z.next())if(O=O.value,J=E=void 0,((E=O)==null?void 0:(J=E.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"){_.a("web_watch_provide_undefined_comments")?e=O.itemSectionRenderer:l.JSC$20416_watchApi.provideRenderingData("COMMENTS",
O.itemSectionRenderer);Ri3(l,"true");break}_.a("web_watch_provide_undefined_comments")&&l.JSC$20416_watchApi.provideRenderingData("COMMENTS",e);l.commentsReady=!0;l.JSC$20416_watchApi.dispatchEvent("yt-watch-comments-ready")}},Ri3=function(l,e){var O;
(O=l.JSC$20416_watchApi.getElement("COMMENTS"))==null||O.setAttribute("canScheduleJobs",e)};_.Tp=function(l){_.y6.call(this);var e=this;this.JSC$20419_watchApi=l;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.a("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.a("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.a("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Cv("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)s0f(this);
else{var O=this.JSC$20419_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){FX(e);fD(e)}),E=this.JSC$20419_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Rw(e);
fD(e)});
this.JSC$20419_watchApi.getRoot().is==="ytd-watch-grid"&&_.a("swatcheroo_pbs_load_grid")&&(Gci(this),Byu(this));this.addOnDisposeCallback(function(){e.JSC$20419_watchApi.unsubscribeByKey(O);e.JSC$20419_watchApi.unsubscribeByKey(E);_.UD.cancelJob(e.provideRichGridJobId)});
FX(this);Rw(this)}};
_.m(_.Tp,_.y6);var s0f=function(l){var e=l.JSC$20419_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){l.providePlayerJobId=_.RK(_.UD,function(){FX(l);fD(l)},l.provideAllDataDelayMs)}),O=l.JSC$20419_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){l.provideWatchNextJobId=_.RK(_.UD,function(){Rw(l);
fD(l)},l.provideAllDataDelayMs)}),E=l.JSC$20419_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){l.provideWatchNextJobId=_.RK(_.UD,function(){Rw(l);
fD(l)},l.provideAllDataDelayMs)});
l.JSC$20419_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.fZ(_.UD,function(){FX(l);Rw(l);fD(l)},100)});
l.JSC$20419_watchApi.addPageDisposeJob(function(){_.UD.cancelJob(l.provideWatchNextJobId);_.UD.cancelJob(l.providePlayerJobId)});
l.addOnDisposeCallback(function(){l.JSC$20419_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");l.JSC$20419_watchApi.unsubscribeByKey(e);l.JSC$20419_watchApi.unsubscribeByKey(O);l.JSC$20419_watchApi.unsubscribeByKey(E);_.UD.cancelJob(l.providePlayerJobId);_.UD.cancelJob(l.provideWatchNextJobId)});
FX(l);Rw(l)},FX=function(l){var e=l.JSC$20419_watchApi.getPlayerResponse(),O,E,J=(E=e==null?void 0:(O=e.playabilityStatus)==null?void 0:O.messageRenderers)!=null?E:[],z,M;
e=(M=e==null?void 0:(z=e.playabilityStatus)==null?void 0:z.messages)!=null?M:[];z=_.b(e);for(M=z.next();!M.done;M=z.next())J.push({alertRenderer:{text:_.xp(M.value),type:"WARNING"}});l.JSC$20419_watchApi.provideRenderingData("ALERTS",J)},Rw=function(l){var e=[],O,E,J,z=l.JSC$20419_watchApi.getWatchNextResponse(),M,Z,u,d,g=z==null?void 0:(M=z.contents)==null?void 0:(Z=M.twoColumnWatchNextResults)==null?void 0:(u=Z.results)==null?void 0:(d=u.results)==null?void 0:d.contents;
if(g)for(M=_.b(g),Z=M.next();!Z.done;Z=M.next())if(Z=Z.value,Z.videoPrimaryInfoRenderer)var w=Z;else if(Z.videoSecondaryInfoRenderer){var n=Z;d=u=void 0;Z=Object.assign({},(u=Z.videoSecondaryInfoRenderer)==null?void 0:(d=u.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(Z.rows&&Z.collapsedItemCount!==void 0){Z.rows=Z.rows.slice(0,Z.collapsedItemCount).filter(function(Ni){return!!Ni.richMetadataRowRenderer});
Z.collapsedItemCount=Z.rows.length;var k={metadataRowContainerRenderer:Z}}}else if(Z.merchandiseShelfRenderer)var y=Z;else if(Z.ticketShelfRenderer)var c=Z;else if(Z.expandableMetadataRenderer)var f=Z;else if(Z.itemSectionRenderer)if(u=Z.itemSectionRenderer.contents,d=void 0,l.directlyProvideComments&&((d=Z.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section")_.Yu("cmi"),l.JSC$20419_watchApi.provideRenderingData("COMMENTS",Z.itemSectionRenderer);else if(u)for(Z=_.b(u),u=
Z.next();!u.done;u=Z.next())if(u=u.value,u.commentsEntryPointHeaderRenderer)var P=u;else if(u.clarificationRenderer||u.infoPanelContainerRenderer||u.infoPanelContentRenderer||u.emergencyOneboxRenderer){e.push(u);var h=h||!!n}else u.limitedStateMessageRenderer?E=u:u.videoMetadataCarouselViewModel&&(J=u);if(_.a("web_watch_merch_in_sd_when_ticket_shelf_present")&&y&&c){var N=y;y=void 0}if(l.provideWatchNextSecondaryResults){var t,r,D;l.JSC$20419_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
z==null?void 0:(t=z.contents)==null?void 0:(r=t.twoColumnWatchNextResults)==null?void 0:(D=r.secondaryResults)==null?void 0:D.secondaryResults)}if(l.JSC$20419_watchApi.getRoot().is==="ytd-watch-grid"){var b2,$V;l.JSC$20419_watchApi.provideRenderingData("LIVE_CHAT",z==null?void 0:(b2=z.contents)==null?void 0:($V=b2.twoColumnWatchNextResults)==null?void 0:$V.conversationBar)}var gT,mx,jM,cx;(t=z==null?void 0:(gT=z.contents)==null?void 0:(mx=gT.twoColumnWatchNextResults)==null?void 0:(jM=mx.secondaryResults)==
null?void 0:(cx=jM.secondaryResults)==null?void 0:cx.offerModule)&&(t.donationShelfRenderer||t.donationUnavailableRenderer)&&l.JSC$20419_watchApi.getRoot().is!=="ytd-watch-grid"&&(O=t);gT=l.JSC$20419_watchApi.getPlayerResponse();if(!gT||!_.O$A(gT.playabilityStatus,z==null?void 0:z.playerOverlays)){var tq;if(z==null?0:(tq=z.contents)==null?0:tq.singleColumnWatchNextResults){var Px,S0;var QH=z==null?void 0:(Px=z.contents.singleColumnWatchNextResults.results)==null?void 0:(S0=Px.results)==null?void 0:
S0.contents}else{var pR,oq,ZS,Ou;tq=!!(g==null?0:(pR=g[0])==null?0:(oq=pR.itemSectionRenderer)==null?0:(ZS=oq.contents)==null?0:(Ou=ZS[0])==null?0:Ou.backgroundPromoRenderer);var uq,ZV;pR=!!(z==null?0:(uq=z.contents)==null?0:(ZV=uq.twoColumnWatchNextResults)==null?0:ZV.secondaryResults);tq&&!pR&&(QH=g)}}g=e[0];uq=e[1];h&&e.length===1&&(uq=g,g=void 0);l.JSC$20419_watchApi.provideRenderingData("PRIMARY_INFO",w);l.JSC$20419_watchApi.provideRenderingData("SECONDARY_INFO",n);l.JSC$20419_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
P);l.JSC$20419_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",J);l.JSC$20419_watchApi.provideRenderingData("CLARIFICATION",g);l.JSC$20419_watchApi.provideRenderingData("RICH_METADATA",k);l.JSC$20419_watchApi.provideRenderingData("MERCH_SHELF",y);_.a("web_watch_merch_in_sd_when_ticket_shelf_present")&&l.JSC$20419_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",N);l.JSC$20419_watchApi.provideRenderingData("TICKET_SHELF",c);l.JSC$20419_watchApi.provideRenderingData("LIMITED_STATE",E);l.JSC$20419_watchApi.getRoot().is!==
"ytd-watch-grid"&&l.JSC$20419_watchApi.provideRenderingData("DONATION_SHELF",O);l.JSC$20419_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",QH);l.JSC$20419_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",uq);l.JSC$20419_watchApi.provideRenderingData("EXPANDABLE_METADATA",f);if(l.swatcherooProvideAllDataOnScheduledJob){var jO,V8,AC,Fk,tu,kq;w=z==null?void 0:(jO=z.contents)==null?void 0:(V8=jO.twoColumnWatchNextResults)==null?void 0:(AC=V8.secondaryResults)==null?void 0:(Fk=AC.secondaryResults)==
null?void 0:(tu=Fk.results)==null?void 0:(kq=tu[0])==null?void 0:kq.richGridRenderer;l.JSC$20419_watchApi.provideRenderingData("RICH_GRID_RENDERER",w)}};
_.Tp.prototype.hasCompanionAds=function(l){var e,O;return(O=l==null?void 0:(e=l.adPlacements)==null?void 0:e.some(function(E){var J,z,M,Z;return(E==null?void 0:(J=E.adPlacementRenderer)==null?void 0:(z=J.renderer)==null?void 0:z.actionCompanionAdRenderer)||(E==null?void 0:(M=E.adPlacementRenderer)==null?void 0:(Z=M.renderer)==null?void 0:Z.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?O:!1};
var fD=function(l){if(!_.a("swaterdoo_ps_wn_handle_ks")){l.swatcherooProvideAllDataOnScheduledJob||Byu(l,3E3);var e=l.JSC$20419_watchApi.getPlayerResponse(),O,E,J,z,M,Z=(O=l.JSC$20419_watchApi.getWatchNextResponse())==null?void 0:(E=O.contents)==null?void 0:(J=E.twoColumnWatchNextResults)==null?void 0:(z=J.secondaryResults)==null?void 0:(M=z.secondaryResults)==null?void 0:M.offerModule;e=l.hasCompanionAds(e);var u,d;O=(Z==null?void 0:(u=Z.tvfilmOfferModuleRenderer)==null?void 0:u.clientShouldSuppressIfCompanionAdDisplayed)||
(Z==null?void 0:(d=Z.unlimitedOfferModuleRenderer)==null?void 0:d.suppressIfCompanionAds);u=e&&O;l.JSC$20419_watchApi.getRoot().is==="ytd-watch-grid"&&l.JSC$20419_watchApi.provideRenderingData("OFFER_MODULE",u?void 0:Z)}},Byu=function(l,e){_.a("swatcheroo_pbs_load_grid")&&(l.provideRichGridJobId&&_.UD.cancelJob(l.provideRichGridJobId),l.provideRichGridJobId=_.RK(_.UD,function(){l.provideRichGridJobId=0;
var O,E,J,z,M,Z,u,d=(O=l.JSC$20419_watchApi.getWatchNextResponse())==null?void 0:(E=O.contents)==null?void 0:(J=E.twoColumnWatchNextResults)==null?void 0:(z=J.secondaryResults)==null?void 0:(M=z.secondaryResults)==null?void 0:(Z=M.results)==null?void 0:(u=Z[0])==null?void 0:u.richGridRenderer;d&&l.JSC$20419_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)},e))},Gci=function(l){var e,O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20419_watchApi.playerApi,2);e=E.yieldResult;O=function(){l.onPlaybackStart()};
e.addEventListener("onPlaybackStartExternal",O);l.addOnDisposeCallback(function(){e.removeEventListener("onPlaybackStartExternal",O)});
_.Cl(E)})};
_.Tp.prototype.onPlaybackStart=function(){Byu(this)};_.UFF=function(l){_.y6.call(this);var e=this;this.JSC$20429_watchApi=l;l.playerApi.then(function(O){e.player=O});
this.gestures=new _.MK(this.JSC$20429_watchApi.getRoot(),l.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.baH(_.Om().getState())&&_.mz(_.Om().getState())<=0)if(_.qc(_.Om().getState())){var O;(O=e.player)==null||O.toggleFullscreen()}else _.Wb(e.JSC$20429_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
PWO(this)};
_.m(_.UFF,_.y6);var PWO=function(l){var e=_.kw(_.Om(),_.qc,function(O){l.onFullscreenChanged(O)});
l.addOnDisposeCallback(e);e=_.kw(_.Om(),_.mz,function(O){l.gestures&&(O>0?l.gestures.detach():l.gestures.attach())});
l.addOnDisposeCallback(e)};
_.UFF.prototype.onFullscreenChanged=function(l){this.gestures&&this.gestures.update(l)};_.hif=function(l){_.y6.call(this);var e=this;this.JSC$20432_watchApi=l;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(l.subscribeToActiveChanged(function(O){e.onActiveChanged(O)}));
YEC(this)};
_.m(_.hif,_.y6);var Lv4=function(l){if(_.a("swatcheroo_page_dispose_all_watch_data"))l.pageDisposalDataTypes=Object.values(ZMC).filter(function(O){return O!=="PLAYLIST"});
else if(_.a("swatcheroo_page_dispose_rich_grid")){var e;(e=l.pageDisposalDataTypes)==null||e.push("RICH_GRID_RENDERER")}},YEC=function(l){_.a("swatcheroo_enable_ghost_cards")&&(Lv4(l),l.JSC$20432_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.UD.cancelJob(l.clearDataJobId);
l.clearDataJobId=0}),l.runPageDisposeJob=function(){var e=_.V2().resolve(_.XZ).getDestinationPageType()==="watch";
l.clearDataJobId=_.RK(_.UD,l.runClearDataJob,e?0:_.Cv("web_watch_delay_page_dispose_ms",1E4))},l.runClearDataJob=function(){tCF(l)},l.runOnYtNavigateAwayFinish=function(){l.clearDataJobId&&(_.UD.cancelJob(l.clearDataJobId),l.clearDataJobId=0,tCF(l))},document.addEventListener("yt-navigate-finish",l.runOnYtNavigateAwayFinish),l.JSC$20432_watchApi.addPageDisposeJob(l.runPageDisposeJob),l.addOnDisposeCallback(function(){l.JSC$20432_watchApi.removePageDisposeJob(l.runPageDisposeJob);
l.JSC$20432_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",l.runOnYtNavigateAwayFinish)}))},tCF=function(l){l.pageDisposalDataTypes.forEach(function(e){l.JSC$20432_watchApi.provideRenderingData(e,void 0)});
l.clearDataJobId=0};
_.hif.prototype.onActiveChanged=function(l){l&&((l=document.querySelector("#watch-page-skeleton"))&&_.wk(l),qEz(this),document.body.removeAttribute("no-y-overflow"),_.LH("IS_SHELL_LOAD")&&_.rEH())};
var qEz=function(l){_.V(function(e){if(e.nextAddress==1)return _.C(e,l.JSC$20432_watchApi.playerApi,2);_.EU();_.Cl(e)})};var vsC;vsC=_.a("kevlar_watch_while_counterfactual")?0:.25;_.sI=function(l){_.y6.call(this);this.JSC$20435_watchApi=l;this.JSC$20435_watchWhileEnabled=_.a("kevlar_watch_while_v2");this.pipEnabled=_.a("web_enable_pip_on_miniplayer");NyO(this);ryi(this);DFz(this)};
_.m(_.sI,_.y6);var NyO=function(l){l.JSC$20435_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){SEu(l)});
l.addOnDisposeCallback(function(){l.JSC$20435_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},ryi=function(l){var e,O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20435_watchApi.playerApi,2);e=E.yieldResult;O=function(){SEu(l)};
e.addEventListener("onCollapseMiniplayer",O);l.addOnDisposeCallback(function(){e.removeEventListener("onCollapseMiniplayer",O)});
_.Cl(E)})},DFz=function(l){var e=l.JSC$20435_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&e&&l.JSC$20435_watchWhileEnabled&&(l.playerIntersectionObserver=new IntersectionObserver(function(O){l.handleIntersect(O)},{threshold:[vsC]}),l.playerIntersectionObserver.observe(e),l.addOnDisposeCallback(function(){var O;
(O=l.playerIntersectionObserver)==null||O.disconnect()}))},SEu=function(l){var e,O,E;
_.V(function(J){if(J.nextAddress==1){e=_.V2().resolve(_.XZ);O=e.data;E=_.CmA(O.response,O.playerResponse);_.n6().miniplayerButtonActivation=!0;if(l.pipEnabled)return _.n6().watchPipActivation=!0,J.jumpTo(2);_.V2().resolve(_.NJ).collapse();return _.C(J,_.n6().navigationFinishPromise,2)}if(J.nextAddress!=4)return _.n6().currentEndpoint=E.watchEndpoint||null,_.C(J,_.V2().resolve(_.NJ).activate(l.JSC$20435_watchApi.getElement("PLAYER"),E,O),4);_.n6().userActivation=!0;_.Cl(J)})};
_.sI.prototype.handleIntersect=function(l){Q0H(this,l[l.length-1])};
var Q0H=function(l,e){l.watchWhileJobId&&_.UD.cancelJob(l.watchWhileJobId);l.watchWhileJobId=_.UD.addLowPriorityJob(function(){var O,E;return _.V(function(J){if(J.nextAddress==1)return l.watchWhileJobId=void 0,O=_.V2().resolve(_.NJ),e.intersectionRatio>vsC?O.isMiniplayerActive()?_.C(J,O.deactivate(),0):J.jumpTo(0):(E=!O.isMiniplayerActive())?_.C(J,xFz(l),5):J.jumpTo(4);J.nextAddress!=4&&(E=J.yieldResult);if(!E)return J.jumpTo(0);_.n6().watchWhileActivation=!0;return _.C(J,lt0(l),0)})},100)},xFz=function(l){return _.V(function(e){return e.nextAddress==
1?_.a("kevlar_watch_while_paused")?e.return(!0):_.C(e,l.isPlayerPlaying(),2):e.return(e.yieldResult)})};
_.sI.prototype.isPlayerPlaying=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$20435_watchApi.playerApi,2);e=O.yieldResult;return O.return(e.getPlayerStateObject().isPlaying)})};
var lt0=function(l){var e,O;return _.V(function(E){e=_.V2().resolve(_.XZ).data;O=_.CmA(e.response,e.playerResponse);_.n6().currentEndpoint=O.watchEndpoint||null;return _.C(E,_.V2().resolve(_.NJ).activate(l.JSC$20435_watchApi.getElement("PLAYER"),O,e),0)})};_.EF0=function(l){_.y6.call(this);this.JSC$20439_watchApi=l;e3f(this);OKP(this)};
_.m(_.EF0,_.y6);var OKP=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20439_watchApi.playerApi,2);e=E.yieldResult;O=function(J){var z;J.sessionData&&J.sessionData.itct&&(z=J.sessionData.itct);var M=J.watchEndpoint;if(M&&J.sessionData&&J.sessionData.autonav)M=_.f_2(M,z);else{var Z;M=_.Vy(J.videoId,(Z=J.listId)!=null?Z:void 0,z)}z={endpoint:M};J.sessionData&&(z.tempData=J.sessionData);l.JSC$20439_watchApi.dispatchEvent("yt-navigate",z)};
e.addEventListener("onPlayVideo",O);l.addOnDisposeCallback(function(){e.removeEventListener("onPlayVideo",O)});
_.Cl(E)})},e3f=function(l){var e=function(O){l.onYtNavigate(O)};
l.JSC$20439_watchApi.getRoot().addEventListener("yt-navigate",e);l.addOnDisposeCallback(function(){l.JSC$20439_watchApi.getRoot().removeEventListener("yt-navigate",e)})};
_.EF0.prototype.onYtNavigate=function(l){var e=this,O,E,J,z,M,Z,u,d,g;return _.V(function(w){if(w.nextAddress==1){if(!((O=l.detail)==null?0:(E=O.endpoint)==null?0:E.watchEndpoint))return w.return();J=l.detail.endpoint.watchEndpoint;z=e.JSC$20439_watchApi.getWatchNextResponse();Z=_.I((M=z)==null?void 0:M.currentVideoEndpoint,_.ej);if(!Z)return w.return();if(J.videoId!==Z.videoId||J.playlistId&&J.playlistId!==Z.playlistId||typeof J.startTimeSeconds!=="number")return w.jumpTo(0);l.stopPropagation();
(u=_.a("kevlar_watch_while_v2")&&!_.a("kevlar_watch_while_counterfactual"))&&_.V2().resolve(_.NJ).isMiniplayerActive()||e.JSC$20439_watchApi.scrollWatchTo(0,!0);return _.C(w,e.JSC$20439_watchApi.playerApi,3)}d=w.yieldResult;g=J.startTimeSeconds;d.seekTo(g,void 0,void 0,void 0,84);d.wakeUpControls();g<d.getDuration()&&d.playVideo();_.Cl(w)})};_.XBu=function(l){_.y6.call(this);var e=this;this.JSC$20442_watchApi=l;var O=this.JSC$20442_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JNz(e)});
this.addOnDisposeCallback(function(){e.JSC$20442_watchApi.unsubscribeByKey(O)});
JNz(this)};
_.m(_.XBu,_.y6);var JNz=function(l){var e=l.JSC$20442_watchApi.getWatchNextResponse();if(e){var O,E=[].concat(_.kA((O=e==null?void 0:e.engagementPanels)!=null?O:[]));E.unshift.apply(E,_.kA(z3P(e)));l.JSC$20442_watchApi.provideRenderingData("ENGAGEMENT_PANELS",E)}},bKh=function(l){var e,O,E,J=(e=l.engagementPanels)==null?void 0:(O=e.find(function(k){var y;
return((y=k.engagementPanelSectionListRenderer)==null?void 0:y.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(E=O.engagementPanelSectionListRenderer.content)==null?void 0:E.structuredDescriptionContentRenderer,z;
if(_.I(J==null?void 0:(z=J.items)==null?void 0:z.find(function(k){return!!_.I(k,PR0)}),PR0))return!0;
var M,Z,u,d;if(l=(((M=l.contents)==null?void 0:(Z=M.twoColumnWatchNextResults)==null?void 0:(u=Z.results)==null?void 0:(d=u.results)==null?void 0:d.contents)||[]).find(function(k){return k.videoPrimaryInfoRenderer})){var g,w,n;
return(((g=l.videoPrimaryInfoRenderer)==null?void 0:(w=g.videoActions)==null?void 0:(n=w.menuRenderer)==null?void 0:n.flexibleItems)||[]).some(function(k){k=_.I(k,_.xkR);if(!k)return!1;var y,c;k=(y=k.topLevelButton)==null?void 0:(c=y.buttonViewModel)==null?void 0:c.onTap;if(!k)return!1;y=_.t3(k);if(!y)return!1;var f;return((f=_.I(y,_.UU))==null?void 0:f.panelIdentifier)==="PAyouchat"})}return!1},z3P=function(l){var e=[];
if(!_.a("web_watch_inject_placeholder_fantasy_panel_killswitch")){var O,E,J,z=(O=l.engagementPanels)==null?void 0:(E=O.find(function(Z){var u;return((u=Z.engagementPanelSectionListRenderer)==null?void 0:u.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(J=E.engagementPanelSectionListRenderer.content)==null?void 0:J.structuredDescriptionContentRenderer,M;
_.I(z==null?void 0:(M=z.items)==null?void 0:M.find(function(Z){return!!_.I(Z,dnH)}),dnH)&&(O=_.hz8("PAsports_fantasy"),O.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(O))}bKh(l)&&(l=_.hz8("PAyouchat"),l.engagementPanelSectionListRenderer.targetId="PAyouchat",l.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(l));
return e};_.V8H=function(l){_.y6.call(this);this.JSC$20445_watchApi=l;M8u(this)};
_.m(_.V8H,_.y6);var M8u=function(l){l.JSC$20445_watchApi.registerActionHandler("yt-loop-command",function(e){ZKh(l,e)});
l.JSC$20445_watchApi.registerActionHandler("yt-repeat-chapter-command",function(e){uG0(l,e)});
l.addOnDisposeCallback(function(){l.JSC$20445_watchApi.unregisterActionHandler("yt-loop-command");l.JSC$20445_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ZKh=function(l,e){var O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20445_watchApi.playerApi,2);O=E.yieldResult;_.I(e,ish).loop?(O.setLoopRange({startTimeMs:Number(_.I(e,ish).startTimeMs),endTimeMs:Number(_.I(e,ish).endTimeMs),postId:_.I(e,ish).postId,type:"clips"}),O.playVideo()):O.setLoopRange(null);_.Cl(E)})},uG0=function(l,e){var O,E;
_.V(function(J){if(J.nextAddress==1)return _.C(J,l.JSC$20445_watchApi.playerApi,2);O=J.yieldResult;E=_.I(e,kXh).repeat;E==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(O.setLoopRange({startTimeMs:Number(_.I(e,kXh).startTimeMs),endTimeMs:Number(_.I(e,kXh).endTimeMs),type:"repeatChapter"}),O.playVideo()):E==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&O.setLoopRange(null);_.Cl(J)})};_.oFh=function(l){_.y6.call(this);this.JSC$20450_watchApi=l;Cuu(this)};
_.m(_.oFh,_.y6);var Cuu=function(l){l.JSC$20450_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(e){$V4(l,e)});
l.addOnDisposeCallback(function(){l.JSC$20450_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},$V4=function(l,e){var O,E,J,z,M,Z,u,d,g,w,n;
_.V(function(k){if(k.nextAddress==1)return _.C(k,l.JSC$20450_watchApi.playerApi,2);O=k.yieldResult;if(z=(J=(E=_.I(e,I54))==null?void 0:E.highlightedMenuItemKey)!=null?J:"")(Z=(M=O).highlightSettingsMenuItem)==null||Z.call(M,z);if(g=(d=(u=_.I(e,I54))==null?void 0:u.openMenuItemKey)!=null?d:"")(n=(w=O).openSettingsMenuItem)==null||n.call(w,g);_.Cl(k)})};var W5O=_.iH("/youtube/app/watch/player_state","playerStateEntity");_.gFO=function(l){_.y6.call(this);this.JSC$20453_watchApi=l;dVH(this)};
_.m(_.gFO,_.y6);var iK3=function(l){switch(l){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"}},dVH=function(l){var e,O;
_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20453_watchApi.playerApi,2);e=E.yieldResult;O=function(J){l.onPlayerStateChange(J)};
e.addEventListener("onStateChange",O);l.addOnDisposeCallback(function(){e.removeEventListener("onStateChange",O)});
_.Cl(E)})};
_.gFO.prototype.onPlayerStateChange=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,e.JSC$20453_watchApi.playerApi,2);O=J.yieldResult;E=O.getVideoData().video_id;_.ls().dispatch(_.IK("playerStateEntity",W5O,{key:W5O,playerState:iK3(l),videoId:E}));_.Cl(J)})};_.ANi=function(l){_.y6.call(this);var e=this;this.JSC$20457_watchApi=l;this.enableExternalPlaylistPanelInPlayer=_.a("delhi_web_player_use_external_playlist_panel");_.V2().resolve(_.U5).setPlayer(this.JSC$20457_watchApi.getElement("PLAYER"));l=this.JSC$20457_watchApi.subscribeToActiveChanged(function(O){e.onActiveChanged(O)});
this.addOnDisposeCallback(l);wBz(this)};
_.m(_.ANi,_.y6);var wBz=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return l.enableExternalPlaylistPanelInPlayer?_.C(E,l.JSC$20457_watchApi.playerApi,2):E.return();e=E.yieldResult;O=function(){if(l.playlistPanelElement)l.playlistPanelElement.onToggleExpanded()};
e.addEventListener("onToggleExternalPlaylistPanel",O);l.addOnDisposeCallback(function(){e.removeEventListener("onToggleExternalPlaylistPanel",O)});
_.Cl(E)})};
_.ANi.prototype.onActiveChanged=function(l){var e=this,O=_.V2().resolve(_.U5),E=function(){nFH(e)};
l?(this.playlistPanelElement=this.JSC$20457_watchApi.getElement("PLAYLIST_PANEL"))?(O.setPlaylistComponent(this.playlistPanelElement),O.addEventListener("yt-playlist-data-updated",E),this.addOnDisposeCallback(function(){O.removeEventListener("yt-playlist-data-updated",E)}),nFH(this)):_.Nz(Error("km")):(O.removeEventListener("yt-playlist-data-updated",E),O.cancelVideoSkip())};
var nFH=function(l){var e=_.V2().resolve(_.U5);l.JSC$20457_watchApi.provideRenderingData("PLAYLIST",e.getPlaylistData())};_.Gp=function(l){_.y6.call(this);var e=this;this.JSC$20460_watchApi=l;this.onPageScroll=function(){e.scrollThrottle.fire();e.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.b3(this.onThrottledScroll,200,this);_.oQ(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.b3(this.onMastheadThrottledScroll,50,this);_.oQ(this,this.mastheadScrollThrottle);this.animation=new _.RZ(function(O){e.JSC$20460_watchApi.getRoot().setScrollTop(O)});
l=_.kw(_.Om(),_.qc,function(){e.onFullscreenChanged()});
this.addOnDisposeCallback(l);atP(this);kez(this);this.onThrottledScroll()};
_.m(_.Gp,_.y6);
_.Gp.prototype.onFullscreenChanged=function(){var l=this,e=this.JSC$20460_watchApi.getRoot();!this.pageScrollElement&&e.pageScrollElement?(this.pageScrollElement=e.pageScrollElement,e.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){l.pageScrollElement&&l.pageScrollElement.removeEventListener("scroll",l.onPageScroll)})):this.pageScrollElement&&!e.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var atP=function(l){window.addEventListener("scroll",l.onPageScroll);l.addOnDisposeCallback(function(){window.removeEventListener("scroll",l.onPageScroll)})},kez=function(l){l.JSC$20460_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(e){a:{var O;
if(O=l.JSC$20460_watchApi.getRoot().contains(e)&&!l.animation.isAnimating()){O=e.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var E,J,z=(e==null?void 0:(E=e.parentElement)==null?void 0:(J=E.parentElement)==null?void 0:J.id)==="fixed-secondary";O=!(O&&z)}if(O){if(_.a("kevlar_watch_scroll_manager_absolute_offset_killswitch"))E=e.offsetTop;else for(E=0,J=e;J!==null;)E+=J.offsetTop,E-=J.scrollTop,J=J.offsetParent;J=E;E=J-24;e=J+e.offsetHeight+24;J=l.JSC$20460_watchApi.getRoot().getPageScrollingElement();
O=l.JSC$20460_watchApi.getRoot().getScrollTop();z=O+J.clientHeight-56;if(E<O+56)e=E-56;else if(e>z)e-=J.clientHeight;else break a;l.scrollWatchTo(Math.max(0,e),!0)}}});
l.addOnDisposeCallback(function(){l.JSC$20460_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Gp.prototype.onThrottledScroll=function(){var l=_.Om(),e=l.dispatch,O=this.JSC$20460_watchApi.getRoot().getScrollTop();e.call(l,_.oM({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:O}}))};
_.Gp.prototype.onMastheadThrottledScroll=function(){this.JSC$20460_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20460_watchApi.getRoot().getScrollTop())};
_.Gp.prototype.scrollWatchTo=function(l,e){(e===void 0?0:e)?this.animation.start(this.JSC$20460_watchApi.getRoot().getScrollTop(),Math.max(0,l),500):this.JSC$20460_watchApi.getRoot().setScrollTop(l)};_.yN3=function(l){_.y6.call(this);var e=this;this.JSC$20463_watchApi=l;var O=this.JSC$20463_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Ito(e)}),E=this.JSC$20463_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mVH(e)});
this.addOnDisposeCallback(function(){e.JSC$20463_watchApi.unsubscribeByKey(O);e.JSC$20463_watchApi.unsubscribeByKey(E)});
Ito(this);mVH(this)};
_.m(_.yN3,_.y6);
var Ito=function(l){var e,O,E,J=(E=(e=l.JSC$20463_watchApi.getPlayerResponse())==null?void 0:(O=e.videoDetails)==null?void 0:O.title)!=null?E:"";l.JSC$20463_watchApi.dispatchEvent("yt-update-title",J)},mVH=function(l){var e,O,E,J,z,M,Z,u=(Z=((M=(e=l.JSC$20463_watchApi.getWatchNextResponse())==null?void 0:(O=e.contents)==null?void 0:(E=O.twoColumnWatchNextResults)==null?void 0:(J=E.results)==null?void 0:(z=J.results)==null?void 0:z.contents)!=null?M:[]).find(function(d){return!!d.videoPrimaryInfoRenderer}))==null?
void 0:Z.videoPrimaryInfoRenderer;
(e=_.lG(u==null?void 0:u.title))&&l.JSC$20463_watchApi.dispatchEvent("yt-update-title",e)};_.K53=function(l){_.y6.call(this);this.JSC$20466_watchApi=l;pBz(this)};
_.m(_.K53,_.y6);var pBz=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$20466_watchApi.playerApi,2);e=E.yieldResult;O=function(){l.onYpcContentRequest()};
e.addEventListener("onYpcContentRequest",O);l.addOnDisposeCallback(function(){e.removeEventListener("onYpcContentRequest",O)});
_.Cl(E)})};
_.K53.prototype.onYpcContentRequest=function(){var l,e,O,E,J,z=(l=this.JSC$20466_watchApi.getWatchNextResponse())==null?void 0:(e=l.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(E=O.secondaryResults)==null?void 0:(J=E.secondaryResults)==null?void 0:J.offerModule,M,Z,u,d;l=(d=(u=(Z=(M=z==null?void 0:z.episodeOfferModuleRenderer)!=null?M:z==null?void 0:z.movieOfferModuleRenderer)!=null?Z:z==null?void 0:z.unlimitedOfferModuleRenderer)!=null?u:z==null?void 0:z.liveOfferModuleRenderer)!=
null?d:z==null?void 0:z.tvfilmOfferModuleRenderer;var g,w,n;z=(n=z==null?void 0:(g=z.tvfilmOfferModuleRenderer)==null?void 0:(w=g.actionButtons)==null?void 0:w.length)!=null?n:0;w=Math.max(z-1,0);var k,y,c;g=(c=l==null?void 0:(k=l.offerButton)==null?void 0:k.buttonRenderer)!=null?c:l==null?void 0:(y=l.actionButtons)==null?void 0:y[w].buttonRenderer;var f,P;(k=(P=(f=g==null?void 0:g.navigationEndpoint)!=null?f:g==null?void 0:g.serviceEndpoint)!=null?P:g==null?void 0:g.command)&&_.n4.instance.resolveCommand(k)};
}catch(e){_._DumpException(e)}
try{
var vd0,LGO,YCu;_.hTH=function(){var l=_.mm.clone(Uzz),e;return(new _.kE(function(O,E){l.onSuccess=function(J){_.cPg(J)?O(new YCu(J)):E(new _.NX("Request failed, status="+_.Wk(J),"net.badstatus",J))};
l.onError=function(J){E(new _.NX("Unknown request error","net.unknown",J))};
l.onTimeout=function(J){E(new _.NX("Request timed out","net.timeout",J))};
e=_.nv("//googleads.g.doubleclick.net/pagead/id",l)})).thenCatch(function(O){if(O instanceof _.lY){var E;
(E=e)==null||E.abort()}return _.Tr(O)})};
_.tD4=function(l){a:{var e="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");var O=l.raw_embedded_player_response;if(!O&&(l=l.embedded_player_response))try{O=JSON.parse(l)}catch(J){break a}if(O)b:for(var E in LGO)if(LGO[E]==O.embeddedPlayerMode){e=LGO[E];break b}}return e==="EMBEDDED_PLAYER_MODE_PFL"};
_.qCf=function(){if(_.a("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.lqL())return Error("pf");var l=_.hT("PLAYER_VARS",{});if(_.mm.get(l,"privembed",!1)=="1")return Error("qf");if(_.tD4(l))return Error("rf")};
vd0=function(l){switch(l){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:_.VC(l,"unknown result type")}};
_.N5i=function(l,e,O){e=_.rwd[e];O={detected:l===0,source:e.mav,detectionResult:vd0(l),contentCpn:O};_.Bm("biscottiBasedDetection",O);_.f2H.increment(e.mav,l);e.oBt!==void 0&&_.Yd("CATSTAT",_.v5A(l,e))};
_.rj=function(l,e){var O={};O.key=l;O.value=e;return _.K8p().then(function(E){return new Promise(function(J,z){try{var M=E.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(O);M.onsuccess=function(){J()};
M.onerror=function(){z()}}catch(Z){z(Z)}})})};
_.DzO=function(){var l=_.Cv("user_engagement_experiments_rate_limit_ms"),e=rTC.get("last-user-engagement-exp-trigger-timestamp");return!e||(0,_.VZ)()>=e+l?(rTC.set("last-user-engagement-exp-trigger-timestamp",(0,_.VZ)()),!0):!1};
_.Dv=function(l,e,O,E,J){e=e===void 0?null:e;O=O===void 0?null:O;E=E===void 0?null:E;J=J===void 0?null:J;l={youThereEventType:l};O&&(l.lactThresholdMs=O.lactThresholdMs,l.mediaPosSec=O.promptDelaySec,l.lactServerRequestMs=O.lactServerRequestMs,l.triggerReason=O.triggerReason);J!=null&&(l.renderingMediaPosSec=Math.round(J));e||(e=_.P9());e&&(l.clientScreenNonce=e);E&&(l.clientPlaybackNonce=E);_.Bm("youThere",l)};
LGO={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"};YCu=function(l){this.xhr=l};
_.NX=function(l,e,O){_.l2.call(this,l+", errorCode="+e);this.errorCode=e;this.xhr=O;this.name="PromiseAjaxError"};
_.m(_.NX,_.l2);var Uzz={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var rTC=new _.qx("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.kq4=function(l){return _.oM({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:l})};
}catch(e){_._DumpException(e)}
try{
var Yb,Pui,YHo,h3C,L5H,t8F,vF4,eD0,OX4,EXF,qHO,UVi,SHo,DVo,zDh;_.BMh=function(){var l=window.location.hash;l.charAt(0)==="#"&&(l=l.charAt(1)==="!"?l.substring(2):l.substring(1));return _.SD(l)};
Yb=function(l,e,O){var E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,e(),2);E=J.yieldResult;O(E,l);_.Cl(J)})};
Pui=function(){return _.V(function(l){return l.nextAddress==1?_.C(l,(_.qCf()!==void 0?_.Tr(Error("sf")):_.hTH()).then(function(){return 1},function(e){if(e.message==="Biscotti id is disabled")return 3;
_.hG("Failed fetching bid");return 0}),2):l.return(l.yieldResult)})};
YHo=function(){var l=_.z_("bWJlZC1wbGF5ZXIjNzJtM3llODY2Z2V1eXQtaGF2ZW4tZQ=="),e=_.z_("N2xwdmx0aWZyYW1lI3Nwcjgw");return document.querySelector(e+UVi+l)?0:1};
h3C=function(){return _.fl8(_.rn)};
L5H=function(){return _.Rx8()===0?0:_.TSp()};
t8F=function(){return _.U5x(_.OQd([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
vF4=function(){return _.m58(qHO)};
_.NM3=function(l){_.V(function(e){switch(e.nextAddress){case 1:return _.C(e,Yb("b.f_",Pui,l),2);case 2:return _.C(e,Yb("j.s_",_.klg,l),3);case 3:return _.C(e,Yb("r.s_",_.AwM,l),4);case 4:return _.C(e,Yb("e.h_",vF4,l),5);case 5:if(!_.a("ab_det_sc_inj")){e.jumpTo(6);break}return _.C(e,Yb("s.i_",_.cwx,l),6);case 6:if(_.a("ab_deg_unex_thr")){e.jumpTo(8);break}return _.C(e,Yb("a.o_",_.j3T,l),8);case 8:if(_.a("ks_get_o_pp")){e.jumpTo(10);break}return _.C(e,Yb("g.o_",_.K6u,l),10);case 10:if(_.a("ks_det_gpbl")){e.jumpTo(12);
break}return _.C(e,Yb("p.i_",_.pat,l),12);case 12:return _.C(e,Yb("f.i_",_.VQx,l),14);case 14:return _.C(e,Yb("a.b_",_.iQV,l),15);case 15:return _.C(e,Yb("p.m_",_.C4p,l),16);case 16:if(!_.a("ab_det_el_h_v2")){e.jumpTo(17);break}return _.C(e,Yb("n.h_",t8F,l),17);case 17:return _.C(e,Yb("o.p_",h3C,l),19);case 19:return _.C(e,Yb("e.i_",YHo,l),20);case 20:if(_.a("ab_det_apm"))return _.C(e,Yb("o.a_",L5H,l),0);e.jumpTo(0)}})};
_.rNz=function(l,e){l={videoId:l};e&&(l.playlistId=e);return l};
_.QA3=function(){if(_.lqL()){var l=_.hT("PLAYER_VARS",{});if(_.mm.get(l,"privembed",!1)!="1"&&!_.tD4(l)){var e=function(){DVo=!0;"google_ad_status"in window?_.Yd("DCLKSTAT",1):_.Yd("DCLKSTAT",2)};
try{_.Nd("//static.doubleclick.net/instream/ad_status.js",e)}catch(O){}SHo.push(_.UD.addLowPriorityJob(function(){if(!(DVo||"google_ad_status"in window)){try{_.qkT("//static.doubleclick.net/instream/ad_status.js",e)}catch(O){}DVo=!0;_.Yd("DCLKSTAT",3)}},5E3))}}};
_.hO=function(l,e,O){O=O===void 0?!1:O;var E=Math.max(l.width,_.YQC);if(_.a("kevlar_watch_feed_big_thumbs")&&l.width>=1550-_.cr()&&l.height>=800)E-=_.NmP;else if(l.width>=_.Tw){var J=_.hZf+_.LNi+_.R8;_.a("kevlar_watch_feed_big_thumbs")&&(J=_.vif);E-=J}else E-=_.hZf;E=Math.min(E,_.th4);J=240;O&&(J=380);e<.5624||(!_.a("kevlar_watch_flexy_disable_small_window_sizing")&&(l.height<630&&l.width>=657||l.height>=630&&l.width>=_.Tw&&l.width<1327)?J=360:!_.a("kevlar_watch_flexy_disable_large_window_sizing")&&
l.height>=630&&l.width>=1327&&(J=480));var z=Math.min(E*e,l.height-(56+_.UnF+_.qQC));z=Math.max(z,J);e<1?E=z/e:l.width>=_.Tw&&(E=_.hO(l,.5625,O).width);return new _.uX(Math.round(E),Math.round(z))};
_.xVu=function(l){var e=0;l.indexOf("h")!=-1&&(l=l.split("h"),e=l[0]*60*60,l=l[1]);l.indexOf("m")!=-1&&(l=l.split("m"),e=l[0]*60+e,l=l[1]);l.indexOf("s")!=-1?(l=l.split("s"),e=l[0]*1+e):e=l*1+e;return e};
_.lRi=function(){_.Cv("service_worker_push_logged_out_prompt_watches")!=-1&&_.eX("WatchCount").then(function(l){l>=100||_.rj("WatchCount",l+1)})};
eD0=function(l){var e=l.externalVideoId||"";return e?l.isShortsEligible?"https://www.youtube.com/shorts/"+e:"https://www.youtube.com/watch?v="+e:""};
OX4=function(l){var e=[];l.viewCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:l.viewCount});l.likeCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:l.likeCount});return e};
EXF=function(l){var e,O,E={"@context":"https://schema.org","@type":"VideoObject",description:_.lG(l.description),duration:"PT"+(l.lengthSeconds||"0")+"S",embedUrl:l.embed?l.embed.iframeUrl:"",name:_.lG(l.title),thumbnailUrl:((e=l.thumbnail)==null?void 0:(O=e.thumbnails)==null?void 0:O.map(function(g){return g&&g.url||""}))||[],
uploadDate:l.publishDate};_.a("mweb_video_schema_id_killswitch")||(E["@id"]=eD0(l));e=OX4(l);e.length&&(E.interactionStatistic=e);l.category&&(E.genre=l.category);l.ownerChannelName&&(E.author=l.ownerChannelName);l.liveBroadcastDetails&&(E.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:l.liveBroadcastDetails.startTimestamp,endDate:l.liveBroadcastDetails.endTimestamp}]);if(l.learningResource){l=l.learningResource;E["@type"]=["VideoObject","LearningResource"];var J;if((J=l.learningResourceType)==
null?0:J.length)E.learningResourceType=l.learningResourceType[0];var z;if((z=l.educationalAlignment)==null?0:z.length)E.educationalAlignment={"@type":"AlignmentObject",targetName:l.educationalAlignment[0]};var M;if((M=l.educationalLevel)==null?0:M.length){J=l.educationalLevel[0];var Z;if((Z=l.educationalLevelCountry)==null?0:Z.length)J+=" ("+l.educationalLevelCountry+")";E.educationalLevel=J}var u,d;if(((u=l.learningResourceType)==null?0:u.length)&&l.learningResourceType[0]==="Problem walkthrough"&&
((d=l.problemDescriptions)==null?0:d.length))for(E.hasPart=[],Z=_.b(l.problemDescriptions),u=Z.next();!u.done;u=Z.next())J=u.value,u=J.problemDescriptionText,d=J.startOffset,J=J.url,u&&d!==void 0&&J&&E.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:u,text:u,startOffset:d,url:J})}return E};
_.J8C=function(l){return _.oM({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:l}})};
qHO=[[["czhrcXByaW1hcnkjaW9sMW9zODU=",null,null],[null,["dHMtcmVuZGVyZXIjOTl1emN2ZWNqN2tieXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3Vs","c3R5bGUtc2NvcGUjNHFoazdhdHNnNG5i"],null],["bWFzdGhlYWQtYWQjbTgyM3RoeTdwb3ll",["aWQtcmVuZGVyZXIjaXo5ZnRyMTB0djFweXRkLXJpY2gtZ3I="],null],[null,["aWQtcmVuZGVyZXIjMTdmYWJxcHVscnE5eXRkLXJpY2gtZ3I=","c3R5bGUtc2NvcGUjbm96NjNkcDVxcHB1"],null],[null,["bW8tcmVuZGVyZXIjYmtsZXE1cTNpMzRmeXRkLWJhbm5lci1wcm8=","c3R5bGUtc2NvcGUjamwza2tqbHhoZDRz"],null],[null,["b3QtcmVuZGVyZXIjdnJ4bWs3aXNsZ2J0eXRkLWFkLXNs"],
null]],[["c3BsYXllci1hZHMjOGZsem9mbmVrOXY=",null,null]]];UVi="#";SHo=[];DVo=!1;_.XgF=["engagement-panel-ads"];zDh=new _.v("updateSentimentBarStateCommand");_.bXP=new _.v("showSurveyCommand");_.LD=new _.v("changeMarkersVisibilityCommand");var V2z,ZXF,$I4,oXF,Cj4,tO;_.M2H=function(l,e){this.playerProvider_=l;this.actionSenderElement_=e;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.M2H.prototype.reset=function(){V2z(this);this.isUserPredictedAbsent_=!1};
V2z=function(l,e){!l.youThereData_||l.showWarningJob_||e!==void 0&&e||(_.Dv("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.P9(),l.youThereData_,l.clientPlaybackNonce_),_.Pm());_.UD.cancelJob(l.showWarningJob_);l.showWarningJob_=0;_.UD.cancelJob(l.showBlockingWarningJob_);l.showBlockingWarningJob_=0;_.UD.cancelJob(l.pausePlaybackJob_);l.pausePlaybackJob_=0;l.youThereData_=null;l.clientPlaybackNonce_=void 0;l.inYouThereFlow_=!1};
_.up4=function(l,e){var O,E,J;_.V(function(z){if(z.nextAddress==1)return l.reset(),_.C(z,l.playerProvider_().getPlayerPromise(),2);O=z.yieldResult;l.clientPlaybackNonce_=O.getVideoData().cpn;l.youThereData_=e.configData.youThereData;if(!l.youThereData_)return z.return();if(l.youThereData_.triggerReason&&l.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.DzO())return _.Dv("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.P9(),l.youThereData_,l.clientPlaybackNonce_),z.return();E=l.youThereData_.promptDelaySec;
J=O.getCurrentTime();l.showWarningJob_=_.UD.addLowPriorityJob(function(){return _.V(function(M){l.showWarningJob_=0;return _.C(M,ZXF(l),0)})},Math.max(E-J,0)*1E3);
_.Cl(z)})};
ZXF=function(l){var e,O,E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return _.C(Z,l.playerProvider_().getPlayerPromise(),2);if(Z.nextAddress!=3)return e=Z.yieldResult,O=e.getCurrentTime(),_.C(Z,Cj4(l),3);E=Z.yieldResult;if(!E||!l.youThereData_)return Z.return();if(_.a("check_user_lact_at_prompt_shown_time_on_web")&&(J=parseInt(l.youThereData_.lactThresholdMs,10),_.uN()<J))return _.Dv("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.P9(),l.youThereData_,l.clientPlaybackNonce_),Z.return();if(l.youThereData_.playbackPauseDelayMs<=
0)return oXF(l),Z.return();!_.a("external_fullscreen")&&(z=_.ZG())&&(l.ignoreFullscreenExitUserActivity_=!0,_.UD.addLowPriorityJob(function(){l.ignoreFullscreenExitUserActivity_=!1},2E3),_.ui(z));
l.youThereData_.showToastWarningPrompt&&(tO(l,l.youThereData_.showWarningActions),l.inYouThereFlow_=!0,_.Dv("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.P9(),l.youThereData_,l.clientPlaybackNonce_,O),_.Dv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.P9(),l.youThereData_,l.clientPlaybackNonce_,O));M=0;l.youThereData_.blockingPromptDelayMs&&(M=l.youThereData_.blockingPromptDelayMs);l.showBlockingWarningJob_=_.UD.addLowPriorityJob(function(){return _.V(function(u){l.showBlockingWarningJob_=0;return _.C(u,
$I4(l),0)})},M);
_.Cl(Z)})};
$I4=function(l){var e,O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,Cj4(l),2);e=J.yieldResult;if(!l.youThereData_)return J.return();e&&(l.youThereData_.showBlockingWarningAction&&(_.Dv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.P9(),l.youThereData_,l.clientPlaybackNonce_),(O=_.I(l.youThereData_.showBlockingWarningAction,_.nz))?tO(l,O.commands):tO(l,[l.youThereData_.showBlockingWarningAction]),l.inYouThereFlow_=!0),E=l.youThereData_.playbackPauseDelayMs,l.pausePlaybackJob_=
_.UD.addLowPriorityJob(function(){return _.V(function(z){l.pausePlaybackJob_=0;return _.C(z,oXF(l),0)})},E));
_.Cl(J)})};
oXF=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,Cj4(l),2);e=O.yieldResult;if(!l.youThereData_)return O.return();e&&(_.Dv("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.P9(),l.youThereData_,l.clientPlaybackNonce_),tO(l,l.youThereData_.showPausedActions),l.inYouThereFlow_=!0);_.Cl(O)})};
_.M2H.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var l=_.I(this.youThereData_.userActiveDuringFlowAction,_.nz);l?tO(this,l.commands):tO(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Dv("YOU_THERE_EVENT_TYPE_LACT_RESET",_.P9(),this.youThereData_,this.clientPlaybackNonce_),_.Pm());V2z(this,!0)}_.Wz0(this,!1)};
_.dIz=function(l){_.Dv("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.P9(),l.youThereData_,l.clientPlaybackNonce_)};
Cj4=function(l){var e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.playerProvider_().getPlayerPromise(),2);e=E.yieldResult;O=e.getPlayerState();return E.return(O==-1||O==1||O==3)})};
_.Wz0=function(l,e){var O;_.V(function(E){if(E.nextAddress==1){if(l.isUserPredictedAbsent_==e)return E.jumpTo(0);l.isUserPredictedAbsent_=e;return _.C(E,l.playerProvider_().getPlayerPromise(),3)}O=E.yieldResult;O.setUserEngagement(e);e&&_.Dv("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.P9(),l.youThereData_,l.clientPlaybackNonce_);_.Cl(E)})};
tO=function(l,e){if(_.a("handle_service_request_actions")||_.a("kevlar_youthere_service_endpoint_actions_killswitch"))_.wQ(l.actionSenderElement_,e,l.actionSenderElement_);else{e=_.b(e);for(var O=e.next();!O.done;O=e.next())O=O.value,O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.sendPost?_.ii(l.actionSenderElement_,[O]):_.wQ(l.actionSenderElement_,[O],l.actionSenderElement_)}};var gX3;var iXH;var qL=function(){var l=_.B.apply(this,arguments)||this;l.systemIcons=_.a("kevlar_system_icons");l.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return l};
_.m(qL,_.B);qL.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var l=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(l=this.data.percentIfLiked||0,this.activated=!0):(l=this.data.percentIfIndifferent||0,this.activated=!1);_.ud(this.hostElement).querySelector("#like-bar").style.width=l+"%"}};
qL.prototype.handleUpdateSentimentBarStateCommand=function(l){this.data&&this.set("data.likeStatus",_.I(l,zDh).likeStatus)};
qL.prototype.observeLikeStatus=qL.prototype.observeLikeStatus;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],qL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qL.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],qL.prototype,"activated",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],qL.prototype,"systemIcons",void 0);_.L([_.AA("data.likeStatus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qL.prototype,"observeLikeStatus",null);_.L([_.U({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],qL);
_.Y(qL,"ytd-sentiment-bar-renderer",function(){if(iXH!==void 0)return iXH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iXH=l},{mode:1});var wg4;var v7=function(){var l=_.B.apply(this,arguments)||this;l.small=!0;return l};
_.m(v7,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],v7.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],v7.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],v7.prototype,"small",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],v7);
_.Y(v7,"ytd-video-view-count-renderer",function(){if(wg4!==void 0)return wg4;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wg4=l},{mode:_.Wf("kevlar_poly_si_batch_j080")?1:2});var NL=function(){var l=_.B.apply(this,arguments)||this;l.infoFormattedStrings=[];l.wrapVideoActions=_.a("kevar_watch_wrap_video_actions");l.hideSentimentBar=_.a("kevlar_watch_hide_sentiment_bar");l.actionMap={};return l};
_.m(NL,_.B);_.X=NL.prototype;_.X.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.a("web_modern_buttons"),forceIconButton:!_.a("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.X.dataChanged=function(){_.a("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.X.computeInfoFormattedStrings=function(l){if(!l)return[];var e=[];l.dateText&&e.push(l.dateText);l.stationName&&e.push(l.stationName);l.rating&&e.push(l.rating);l.startEndTimeTemplate&&l.startTimeUtcMillis&&l.endTimeUtcMillis&&e.push(_.xp(_.zK0(_.lG(l.startEndTimeTemplate),Number(l.startTimeUtcMillis),Number(l.endTimeUtcMillis))));l.upNextProgramText&&e.push(l.upNextProgramText);return e};
_.X.scheduleInitialUpdatedMetadataRequest=function(){var l,e=(l=this.data)==null?void 0:l.updatedMetadataEndpoint;if(e){var O;l=Number((O=_.I(e,_.fYk))==null?void 0:O.initialDelayMs);O=isNaN(l)?250:l;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),O)}};
_.X.setSentimentBarWidth=function(){var l=this;_.OK(this,function(){var e=_.ud(l.hostElement).querySelector("ytd-menu-renderer");if(e){e=e.topLevelButtons;for(var O=0,E=0;E<e.length;E++){var J=e[E],z=l.get("toggleButtonSupportedData.toggleButtonIdData.id",J.data);if(z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||z==="TOGGLE_BUTTON_ID_TYPE_LIKE")O+=J.clientWidth+8;else break}O&&(l.sentiment.style.width=O-8+" px")}})};
_.X.fetchUpdatedMetadata=function(l){var e;l&&(e={continuation:l});var O;(l=(O=this.data)==null?void 0:O.updatedMetadataEndpoint)&&_.V2().resolve(_.Zh).resolveCommand(l,{form:Object.assign({},e,{element:this.hostElement})})};
_.X.onYtServiceRequestSent=function(l,e){e.endpoint&&_.I(e.endpoint,_.xJ)&&(this.hasUpdateSentimentBarStateCommands()&&!_.a("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.I(e.endpoint,_.xJ).status),this.setSentimentBarWidth())};
_.X.hasUpdateSentimentBarStateCommands=function(){var l,e,O,E,J=(E=(l=this.data)==null?void 0:(e=l.videoActions)==null?void 0:(O=e.menuRenderer)==null?void 0:O.topLevelButtons)!=null?E:[];l=_.b(J);for(e=l.next();!e.done;e=l.next()){e=e.value;J=E=O=void 0;var z=(O=e.toggleButtonRenderer)==null?void 0:(E=O.toggleButtonSupportedData)==null?void 0:(J=E.toggleButtonIdData)==null?void 0:J.id;if(z==="TOGGLE_BUTTON_ID_TYPE_LIKE"||z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){E=O=void 0;e=(E=_.I((O=e.toggleButtonRenderer)==
null?void 0:O.defaultServiceEndpoint,_.nz))==null?void 0:E.commands;if(!e)break;e=_.b(e);for(O=e.next();!O.done;O=e.next())if(_.I(O.value,zDh))return!0}}return!1};
_.X.onYtServiceRequestCompleted=function(l,e){var O;(l=(O=e.data)==null?void 0:O.loggingDirectives)&&_.mQx(_.yN(),l);this.get("continuation.timedContinuationData",e.data)&&this.data&&this.data.updatedMetadataEndpoint&&(e=e.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,e.continuation),e.timeoutMs))};
_.X.computeHasDateText=function(l){return!!l&&!!l.dateText};
_.Ji.Object.defineProperties(NL.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return!((E=(l=this.data)==null?void 0:(e=l.videoActions)==null?void 0:(O=e.menuRenderer)==null?void 0:O.flexibleItems)==null||!E.length)}}});
NL.prototype.onYtServiceRequestCompleted=NL.prototype.onYtServiceRequestCompleted;NL.prototype.onYtServiceRequestSent=NL.prototype.onYtServiceRequestSent;NL.prototype.dataChanged=NL.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],NL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XP.YtTaskEmitterBehavior),_.q("design:type",Object)],NL.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NL.prototype,"data",void 0);_.L([_.T({computed:"computeInfoFormattedStrings(data)"}),_.q("design:type",Array)],NL.prototype,"infoFormattedStrings",void 0);
_.L([_.T({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],NL.prototype,"hasDateText",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NL.prototype,"wrapVideoActions",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],NL.prototype,"hideSentimentBar",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],NL.prototype,"flexMenuEnabled",null);
_.L([_.aB("#sentiment"),_.q("design:type",Object)],NL.prototype,"sentiment",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NL.prototype,"dataChanged",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],NL.prototype,"onYtServiceRequestSent",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],NL.prototype,"onYtServiceRequestCompleted",null);
_.Y(NL,"ytd-video-primary-info-renderer",function(){if(gX3===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);gX3=l}l=gX3;return l},{mode:1});var A83;var ro=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return l};
_.m(ro,_.B);_.X=ro.prototype;_.X.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"}}}};
_.X.dataChanged=function(){var l;this.descriptionToggled=!((l=this.data)==null||!l.defaultExpanded);var e;this.collapsed=this.descriptionAlwaysCollapsed||!((e=this.data)==null?0:e.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.sL(110509);this.showLessClientVe=_.sL(110510);l=_.P9();e=_.B9();l&&e&&_.Sj(l,e,[this.showMoreClientVe,this.showLessClientVe])};
_.X.onYtExpanderMoreTapped=function(){var l,e=(l=this.data)==null?void 0:l.showMoreCommand;e&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(e);(l=_.P9())&&this.showMoreClientVe&&_.On(l,this.showMoreClientVe)};
_.X.onYtExpanderLessTapped=function(){var l=_.P9();l&&this.showLessClientVe&&_.On(l,this.showLessClientVe);var e;(l=(e=this.data)==null?void 0:e.showLessCommand)&&this.componentBehavior.resolveCommand(l)};
_.X.handleUpdateDateTextAction=function(l){this.data&&this.data.dateText&&this.set("data.dateText",_.I(l,_.RZF).dateText)};
_.X.handleUpdateDescriptionAction=function(l){if(l=_.I(l,_.mSi))l.isEmpty||!l.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Ut(l.description)):this.set("data.description",l.description)};
_.X.onYtChangeEngagementPanelVisibilityAction=function(l){if(_.a("web_structured_description_show_more")||_.a("web_engagement_panel_open_description")){var e,O=(e=_.I(l,_.$3q))==null?void 0:e.targetId,E;l=((E=_.I(l,_.$3q))==null?void 0:E.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";O==="engagement-panel-structured-description"&&l&&(this.descriptionToggled=!0)}};
_.X.updateCollapsedFromBinding=function(l){this.collapsed=l.detail.value};
_.X.updateDescriptionToggledFromBinding=function(l){this.descriptionToggled=l.detail.value};
_.X.updateCanCollapseFromBinding=function(l){this.canCollapse=l.detail.value};
_.Ji.Object.defineProperties(ro.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.data)==null?void 0:(e=l.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer;return!!O&&!!O.rows&&O.rows.length>O.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.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}}});
ro.prototype.onYtExpanderLessTapped=ro.prototype.onYtExpanderLessTapped;ro.prototype.onYtExpanderMoreTapped=ro.prototype.onYtExpanderMoreTapped;ro.prototype.dataChanged=ro.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ro.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ro.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],ro.prototype,"collapsed",void 0);_.L([_.T(),_.q("design:type",Boolean)],ro.prototype,"descriptionToggled",void 0);
_.L([_.T(),_.q("design:type",Boolean)],ro.prototype,"canCollapse",void 0);_.L([_.T(),_.q("design:type",Object)],ro.prototype,"subscribeButtonData",void 0);_.L([_.T(),_.q("design:type",Number)],ro.prototype,"descriptionCollapsedHeight",void 0);_.L([_.T(),_.q("design:type",Object)],ro.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.T({value:function(){return _.a("web_watch_description_always_collapsed")}}),
_.q("design:type",Boolean)],ro.prototype,"descriptionAlwaysCollapsed",void 0);_.L([_.aB("#description"),_.q("design:type",HTMLDivElement)],ro.prototype,"description",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ro.prototype,"dataChanged",null);_.L([_.wP("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ro.prototype,"onYtExpanderMoreTapped",null);
_.L([_.wP("yt-expander-less-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ro.prototype,"onYtExpanderLessTapped",null);_.L([_.R("data.metadataRowContainer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"metadataCollapsible",null);_.L([_.R("data","structuredDescriptionContentRenderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"hasInlineStructuredDescription",null);
_.L([_.R("data.attributedDescription"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"hasAttributedDescription",null);_.L([_.R("hasInlineStructuredDescription","collapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"loadStructuredDescription",null);_.L([_.R("data","structuredDescriptionContentRenderer","collapsed"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"showInlineStructuredDescription",null);
_.L([_.R("data","hasInlineStructuredDescription","metadataCollapsible"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ro.prototype,"descriptionAlwaysCollapsible",null);
_.Y(ro,"ytd-video-secondary-info-renderer",function(){if(A83===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);A83=l}l=A83;return l},{mode:2});var nXi;var D0=function(){return _.B.apply(this,arguments)||this};
_.m(D0,_.B);D0.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.a("web_modern_buttons"),forceIconButton:!_.a("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
D0.prototype.activate=function(l){l.appendTo(this.player);l.getPlayerPromise().then(function(e){e.setMinimized(!0)});
this.active=!0};
D0.prototype.deactivate=function(){var l=this.player.firstElementChild;l.getPlayerPromise().then(function(e){e.setMinimized(!1)});
this.active=!1;return l};
D0.prototype.onScrollUpTap=function(){var l=_.V2().resolve(_.XZ).getCurrentPage();l&&l.setScrollTop(0)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],D0.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],D0.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],D0.prototype,"active",void 0);
_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.q("design:type",Boolean)],D0.prototype,"darkLaunch",void 0);_.L([_.aB("#player"),_.q("design:type",HTMLDivElement)],D0.prototype,"player",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],D0);
_.Y(D0,"ytd-miniplayer-bar-renderer",function(){if(nXi!==void 0)return nXi;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return nXi=l},{mode:1});_.Zw(_.XO(function(l){var e=_.e4("script");_.Gh(function(){var O;if(O=JSON)O=EXF(l.data()),O=_.G1(JSON.stringify(O).replace(/</g,"\\u003C"));var E=l.data(),J=_.lG(E.title).trim().length===0,z=!E.publishDate||E.publishDate.trim().length===0,M,Z,u,d,g=!((M=E.thumbnail)==null?0:(Z=M.thumbnails)==null?0:Z.length)||!((u=E.thumbnail)==null?0:u.thumbnails[0].url)||((d=E.thumbnail)==null?void 0:d.thumbnails[0].url.trim().length)===0;e.value&&O&&!(J||z||g)&&_.P2(e.value,O)},"I9AhLd");
return _.W("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.W("script",{el:e,type:"application/ld+json"}))},"uj"),"player-microformat-renderer",{props:{data:_.Vh}});
}catch(e){_._DumpException(e)}
try{
var TMi;_.jAH=function(l){return l.watch.watchWindowSize};
_.HKu=function(l){return _.oM({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:l}})};
TMi=function(l){_.y6.call(this);var e=this;this.JSC$20470_watchApi=l;l=_.kw(_.Om(),_.qXx,function(){cN0(e)});
this.addOnDisposeCallback(l);l=_.kw(_.Om(),_.jAH,function(){cN0(e)});
this.addOnDisposeCallback(l);F5u(this);fth(this);R30()};
_.m(TMi,_.y6);var F5u=function(l){var e=function(E){_.Om().dispatch(_.l53(E.matches))},O=window.matchMedia("(max-width: "+(999+_.cr())+"px)");
O.addListener(e);l.addOnDisposeCallback(function(){O.removeListener(e)});
e(O)},fth=function(l){l.JSC$20470_watchApi.registerActionHandler("yt-window-resized",function(){R30()});
l.addOnDisposeCallback(function(){l.JSC$20470_watchApi.unregisterActionHandler("yt-window-resized")})},R30=function(){var l=_.K0();
_.Om().dispatch(_.oM({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:l.width,height:l.height}}}))},cN0=function(l){var e;
_.V(function(O){if(O.nextAddress==1)return _.C(O,l.JSC$20470_watchApi.playerApi,2);e=O.yieldResult;e.setSize(NaN,NaN);_.Cl(O)})};_.B7=function(l){_.QL.call(this);var e=this;this.rootElement=l;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(O){e.initOrDisposeActiveModules(O)}));
this.onAttached()};
_.m(_.B7,_.QL);_.X=_.B7.prototype;_.X.getRoot=function(){return this.rootElement};
_.X.getElement=function(l){return this.rootElement.getElement(l)};
_.X.setPlayerResponse=function(l){this.playerResponse=l;this.publish("PLAYER_RESPONSE_UPDATED",l)};
_.X.getPlayerResponse=function(){return this.playerResponse};
_.X.setWatchNextResponse=function(l){this.watchNextResponse===l?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=l,this.publish("WATCH_NEXT_RESPONSE_UPDATED",l))};
_.X.getWatchNextResponse=function(){return this.watchNextResponse};
_.X.registerActionHandler=function(l,e){var O=this;if(_.a("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.QW(_.SU.getInstance(),(E[l]=e,E),this.getRoot())}else this.actionHandlers.has(l)||(this.actionHandlers.set(l,[]),E={},_.QW(_.SU.getInstance(),(E[l]=function(){var J=_.ke.apply(0,arguments);return(O.actionHandlers.get(l)||[]).map(function(z){return z.apply(null,_.kA(J))})},E),this.getRoot())),this.actionHandlers.get(l).push(e)};
_.X.unregisterActionHandler=function(l){if(_.a("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.xE(_.SU.getInstance(),(e[l]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(l))?(e.pop(),e.length===0&&(e={},_.xE(_.SU.getInstance(),(e[l]=!0,e),this.getRoot()),this.actionHandlers.delete(l))):_.hG(new _.Hk("Attempted to unregister an action handler which is not registered.",l))};
_.X.addPageDisposeJob=function(l){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.qA(this.rootElement.pageDisposeJobs,l)};
_.X.removePageDisposeJob=function(l){this.rootElement.pageDisposeJobs&&_.NA(this.rootElement.pageDisposeJobs,l)};
_.X.dispatchEvent=function(l,e){_.$u(this.rootElement,l,e)};
_.X.provideRenderingData=function(l,e){this.rootElement.provideRenderingData(l,e)};
_.X.scrollWatchTo=function(l,e){var O;(O=this.watchScrollManager)==null||O.scrollWatchTo(l,e)};
_.X.focusOnPlayer=function(){var l=this.getElement("PLAYER");_.OK(l,function(){if(l&&l.firstElementChild){var e=l.querySelector(".html5-video-player");e&&(_.ef(_.V2().resolve(_.BF)),e.focus())}else _.hG(Error("lm"))})};
_.X.updateCinematicFullscreenConfig=function(){var l=!!this.rootElement.theater,e=!!this.rootElement.fullscreen,O;(O=this.watchCinematicManager)==null||_.j0z(O,e,l)};
_.X.subscribeToActiveChanged=function(l,e){e=e===void 0?!0:e;var O=_.kw(_.Om(),_.baH,function(E){l(E)});
e&&l(_.baH(_.Om().getState()));return O};
_.X.isActive=function(){return _.baH(_.Om().getState())};
_.X.onAttached=function(){var l=_.a("external_fullscreen");_.a("use_unified_flag_accessor")&&(l=_.V2().resolve(_.OR3).retriever.getFlag(_.vAH));(l||_.LH("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var sAO=function(l){return l.getRoot().is==="ytd-watch-flexy"||l.getRoot().is==="ytd-watch-grid"},P7=function(l){return l.getRoot().is==="ytd-watch-fixie"};
_.B7.prototype.initPersistentModules=function(){if(P7(this)||sAO(this)&&_.a("kevlar_watch_flexy_theater_manager")){var l=new _.Jyo(this);_.oQ(this,l)}l=new _.hif(this);_.oQ(this,l);l=new _.KD(this);_.oQ(this,l);l=new _.Tp(this);_.oQ(this,l);l=new _.gFO(this);_.oQ(this,l);l=new _.H7(this);_.oQ(this,l);if(P7(this)||sAO(this)&&_.a("kevlar_watch_flexy_playlist_manager"))l=new _.ANi(this),_.oQ(this,l)};
_.B7.prototype.initOrDisposeActiveModules=function(l){l?(this.watchScrollManager=new _.Gp(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.EF0(this)),this.activeModules.push(new _.Mzu(this)),P7(this)&&this.activeModules.push(new TMi(this)),this.activeModules.push(new _.yN3(this)),this.activeModules.push(new _.sI(this)),(P7(this)||_.a("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.Cmo(this)),this.activeModules.push(new _.V8H(this)),
(P7(this)||_.a("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.K53(this)),(P7(this)||_.a("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Ayh(this)),_.a("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.mFf(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.a("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.oFh(this)),_.a("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.UFF(this)),
l=_.a("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.a("kevlar_watch_flexy_comments_manager")&&!l&&this.activeModules.push(new _.Tyu(this)),_.a("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.jl(this)),this.activeModules.push(new _.CWu(this)),this.activeModules.push(new _.XBu(this)),_.a("web_enable_timely_actions")&&this.activeModules.push(new _.dFC(this)),_.a("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.BN0(this)),
_.a("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.jVO(this)),_.a("web_fullscreen_components")&&this.activeModules.push(new _.d6f(this)),_.a("web_player_rtr_ctrls")&&this.activeModules.push(new _.U6i(this))):(_.xS(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.B7.prototype.disposeInternal=function(){_.QL.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Ji.Object.defineProperties(_.B7.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var SXu,I0,Qbu,xQu,erO,Oto,lvu,E90;SXu=function(){var l=_.Hb();l.info||(l.info={});return l.info};
I0=function(l){return Math.round(_.Rp()+l)};
Qbu=function(){var l;if(_.a("csi_use_performance_navigation_timing")){var e,O,E,J=_.fz==null?void 0:(l=_.fz.getEntriesByType)==null?void 0:(e=l.call(_.fz,"navigation"))==null?void 0:(O=e[0])==null?void 0:(E=O.toJSON)==null?void 0:E.call(O);J?(J.requestStart=I0(J.requestStart),J.responseEnd=I0(J.responseEnd),J.redirectStart=I0(J.redirectStart),J.redirectEnd=I0(J.redirectEnd),J.domainLookupEnd=I0(J.domainLookupEnd),J.connectStart=I0(J.connectStart),J.connectEnd=I0(J.connectEnd),J.responseStart=I0(J.responseStart),
J.secureConnectionStart=I0(J.secureConnectionStart),J.domainLookupStart=I0(J.domainLookupStart),J.isPerformanceNavigationTiming=!0,l=J):l=_.fz.timing}else l=_.a("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.fz.timing)):_.fz.timing;return l};
xQu=function(){if(_.fz.getEntriesByType){var l=_.fz.getEntriesByType("paint");if(l=_.Gg(l,function(O){return O.name==="first-paint"}))return I0(l.startTime)}var e;
_.a("csi_use_performance_navigation_timing")?e=_.fz.getEntriesByType("first-paint")[0].startTime:e=_.fz.timing.msFirstPaint;return e?Math.max(0,e):0};
erO=function(){var l=window.location.protocol,e=_.fz.getEntriesByType("resource");e=_.WW(e,function(O){return O.name.indexOf(l+"//fonts.gstatic.com/s/")===0});
(e=lvu(e,function(O,E){return E.duration>O.duration?E:O}))&&e.startTime>0&&e.responseEnd>0&&(_.T9("wffs",I0(e.startTime)),_.T9("wffe",I0(e.responseEnd)))};
Oto=function(l,e){l=document.querySelector(l);if(!l)return!1;var O="",E=l.nodeName;E==="SCRIPT"?(O=l.src,O||(O=l.getAttribute("data-timing-href"))&&(O=window.location.protocol+O)):E==="LINK"&&(O=l.href);_.fU(document)&&l.setAttribute("nonce",_.fU(document));return O?(l=_.fz.getEntriesByName(O))&&l[0]&&(l=l[0],O=_.Rp(),_.T9("rsf_"+e,O+Math.round(l.fetchStart)),_.T9("rse_"+e,O+Math.round(l.responseEnd)),l.transferSize!==void 0&&l.transferSize===0)?!0:!1:!1};
_.mv=function(l,e){_.qz(function(){_.Fj("").info.actionType=l;e&&_.Yd("TIMING_AFT_KEYS",e);_.Yd("TIMING_ACTION",l);var O=_.tVt(_.hT("TIMING_INFO",{}));Object.keys(O).length>0&&_.sG(O);O={isNavigation:!0,actionType:_.c6x(_.hT("TIMING_ACTION"))};var E=_.hT("PREVIOUS_ACTION");E&&(O.previousAction=_.c6x(E));if(E=_.hT("CLIENT_PROTOCOL"))O.httpProtocol=E;if(E=_.hT("CLIENT_TRANSPORT"))O.transportProtocol=E;(E=_.P9())&&E!=="UNDEFINED_CSN"&&(O.clientScreenNonce=E);E=_.L2t();if(E===1||E===-1)O.isVisible=!0;
E=_.kGu().loadType==="cold";var J=SXu();E||(E=J.yt_lt==="cold");if(E){O.loadType="cold";E=SXu();J=Qbu();var z=_.Rp(),M=_.hT("CSI_START_TIMESTAMP_MILLIS",0);M>0&&!_.a("embeds_web_enable_csi_start_override_killswitch")&&(z=M);z&&(_.T9("srt",J.responseStart),E.prerender!==1&&_.ssd(z));E=xQu();E>0&&_.T9("fpt",E);E=Qbu();E.isPerformanceNavigationTiming&&_.sG({performanceNavigationTiming:!0},void 0);_.T9("nreqs",E.requestStart,void 0);_.T9("nress",E.responseStart,void 0);_.T9("nrese",E.responseEnd,void 0);
E.redirectEnd-E.redirectStart>0&&(_.T9("nrs",E.redirectStart,void 0),_.T9("nre",E.redirectEnd,void 0));E.domainLookupEnd-E.domainLookupStart>0&&(_.T9("ndnss",E.domainLookupStart,void 0),_.T9("ndnse",E.domainLookupEnd,void 0));E.connectEnd-E.connectStart>0&&(_.T9("ntcps",E.connectStart,void 0),_.T9("ntcpe",E.connectEnd,void 0));E.secureConnectionStart>=_.Rp()&&E.connectEnd-E.secureConnectionStart>0&&(_.T9("nstcps",E.secureConnectionStart,void 0),_.T9("ntcpe",E.connectEnd,void 0));_.fz&&"getEntriesByType"in
_.fz&&erO();E=[];if(document.querySelector&&_.fz&&_.fz.getEntriesByName)for(var Z in E90)E90.hasOwnProperty(Z)&&(J=E90[Z],Oto(Z,J)&&E.push(J));if(E.length>0)for(O.resourceInfo=[],Z=_.b(E),E=Z.next();!E.done;E=Z.next())O.resourceInfo.push({resourceCache:E.value})}_.sG(O);O=_.cb();O.preLoggedGelInfos||(O.preLoggedGelInfos=[]);Z=O.preLoggedGelInfos;O=_.mDu();E=void 0;for(J=0;J<Z.length;J++)if(z=Z[J],z.loadType){E=z.loadType;break}if(_.kGu().loadType==="cold"&&(O.loadType==="cold"||E==="cold")){E=_.Iq8();
J=_.cb();J=J.gelTicks?J.gelTicks:J.gelTicks={};for(var u in E)if(!(u in J))if(typeof E[u]==="number")_.T9(u,_.G9(u));else if(_.a("log_repeated_ytcsi_ticks"))for(z=_.b(E[u]),M=z.next();!M.done;M=z.next())M=M.value,_.T9(u.slice(1),M);u={};E=!1;Z=_.b(Z);for(J=Z.next();!J.done;J=Z.next())E=J.value,_.L_(O,E),_.L_(u,E),E=!0;E&&_.sG(u)}_.r6p(!0);u=_.hT("TIMING_ACTION");_.vK("ytglobal.timingready_")&&u&&_.X0L()&&_.NUM()&&_.Y7A()})()};
lvu=function(l,e){return Array.prototype.reduce.call(l,e,{duration:0})};
E90={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var Jj4={};Jj4.YtVisibilityRootBehavior=[_.p4C.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Q9(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.hT("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var l=_.hT("INNERTUBE_CLIENT_NAME")!=="WEB";_.a("kevlar_use_vimio_behavior")&&l&&_.me0()}}];_.ym={};_.ym.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(l){l.detail.contextProvider=this;l.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Jj4.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.x7();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(l){var e=this;this.pageCount+=1;_.a("kevlar_use_vimio_behavior")&&(_.hT("INNERTUBE_CLIENT_NAME")==="WEB"?_.UD.addJob(function(){e.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(l)},
loadPage_:function(l){this.data=l},
ytPageBehaviorActiveObserver_:function(l){var e=this;_.a("kevlar_use_vimio_behavior")&&(l?_.hT("INNERTUBE_CLIENT_NAME")==="WEB"?_.UD.addJob(function(){e.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(l){if(!this.setScrollTopJobId_){var e=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){e.setScrollTopJobId_=0;var O=_.V2().resolve(_.MG(_.BF));O&&_.ef(O);this.getPageScrollingElement().scrollTop=l}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.cY(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var DQ4;var ks=function(){var l=_.B.apply(this,arguments)||this;l.playerListenerConfig=null;l.actionMap={"yt-show-watch-page-survey":"openSurvey"};return l};
_.m(ks,_.B);_.X=ks.prototype;_.X.dataChanged=function(){var l=this,e=_.bV();e&&e.getPlayerPromise().then(function(E){l.maybeRemovePlayerListeners(E)});
var O=this.data&&this.data.survey;O&&((O=(O=O.singleOptionSurveyRenderer||O.checkboxSurveyRenderer||O.multiStageSurveyRenderer)&&O.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(e,O):this.openSurvey())};
_.X.triggerWatchPageSurvey=function(l,e){var O=this,E,J,z,M,Z,u,d,g,w;return _.V(function(n){if(n.nextAddress==1)return l?_.C(n,l.getPlayerPromise(),2):n.return();O.player=n.yieldResult;if(!O.player)return n.return();E={};J=_.b(e);for(z=J.next();!z.done;z=J.next())M=z.value,Z=_.b(O.createEventListenerPair(M)),u=Z.next().value,d=Z.next().value,g=u,w=d,g&&w&&(E[g]=w,O.ytPlayerListenerBehavior.listenToPlayerEvent(O.player,g,w));O.playerListenerConfig=E;_.Cl(n)})};
_.X.createEventListenerPair=function(l){var e=l.playbackEventTrigger;return e?this.handlePlaybackTrigger(e):(l=l.watchTimeTrigger)?this.handleWatchTimeTrigger(l):[void 0,void 0]};
_.X.handleWatchTimeTrigger=function(l){var e=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var O=l.videoWatchFraction,E=l.watchTimeSec;return E&&O?["onVideoProgress",function(){e.player&&e.isWatchTimeConditionMet(e.player,O,E)&&e.showSurvey()}]:[void 0,
void 0]};
_.X.isWatchTimeConditionMet=function(l,e,O){var E=l.getProgressState(),J=E.current-this.lastKnownPlaybackPosition;J<5&&(this.accumulatedMediaTime+=J);this.lastKnownPlaybackPosition=E.current;E=Math.round(this.accumulatedMediaTime/E.duration*1E3)/1E3;return l.getPresentingPlayerType&&l.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>O||E>e)};
_.X.handlePlaybackTrigger=function(l){var e=this;l=l.playbackEvent;if(l==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var O="onStateChange";var E=function(J){J===0&&e.showSurvey()}}else l==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(O="onVideoProgress",E=function(J){e.player&&e.player.getPresentingPlayerType&&e.player.getPresentingPlayerType()===1&&J&&e.showSurvey()}):l==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(O="onAdEnd",E=this.showSurvey);
return[O,E]};
_.X.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.X.openSurvey=function(){var l=this,e=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.kq4(!!e));_.UD.addJob(function(){l.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:e}})},0,0)};
_.X.maybeRemovePlayerListeners=function(l){if(this.playerListenerConfig){for(var e=_.b(Object.keys(this.playerListenerConfig)),O=e.next();!O.done;O=e.next())O=O.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(l,O,this.playerListenerConfig[O]);this.playerListenerConfig=null}};
ks.prototype.dataChanged=ks.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],ks.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],ks.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],ks.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ks.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],ks.prototype,"playerListenerConfig",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],ks.prototype,"lastKnownPlaybackPosition",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],ks.prototype,"accumulatedMediaTime",void 0);_.L([_.T(),_.q("design:type",Object)],ks.prototype,"player",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ks.prototype,"dataChanged",null);_.L([_.U({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ks);
_.Y(ks,"ytd-survey-trigger-renderer",function(){if(DQ4!==void 0)return DQ4;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return DQ4=l},{mode:1});
}catch(e){_._DumpException(e)}
try{
var hCz=new _.v("promotedSparklesWebRenderer");var Ldz=new _.v("relatedChipCommand");var tP3;var q2i;var d7=function(){return _.B.apply(this,arguments)||this};
_.m(d7,_.B);d7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],d7.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],d7);
_.Y(d7,"ytd-compact-tvfilm-entry-point-renderer",function(){if(q2i!==void 0)return q2i;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return q2i=l},{mode:1});var v2i;var Nzf;var rsu;var g7=function(){return _.B.apply(this,arguments)||this};
_.m(g7,_.B);g7.prototype.ready=function(){this.initializeDefs()};
g7.prototype.initializeDefs=function(){var l=this.meta.byKey("yt-icons"),e=_.ud(l).querySelector("#star"),O=_.ud(l).querySelector("#star_half");l=_.ud(l).querySelector("#star_border");e&&this.defs.appendChild(e.cloneNode(!0));O&&this.defs.appendChild(O.cloneNode(!0));l&&this.defs.appendChild(l.cloneNode(!0))};
g7.prototype.percentChanged=function(){for(var l=this.rating;l.firstChild;)l.removeChild(l.firstChild);var e=Math.round(this.percent/10);l=Math.floor(e/2);e%=2;var O=5-l-e;this.appendStars("star",l,0);this.appendStars("star_half",e,l);this.appendStars("star_border",O,l+e)};
g7.prototype.appendStars=function(l,e,O){for(var E=0;E<e;E++){var J=(18+this.spacing)*(E+O),z=document.createElementNS("http://www.w3.org/2000/svg","use");_.IUu(z,"#"+l);z.setAttribute("x",""+J);z.setAttribute("y","0");this.rating.appendChild(z)}};
g7.prototype.percentChanged=g7.prototype.percentChanged;_.L([_.aB("#defs"),_.q("design:type",HTMLElement)],g7.prototype,"defs",void 0);_.L([_.aB("#rating"),_.q("design:type",HTMLElement)],g7.prototype,"rating",void 0);_.L([_.T(),_.q("design:type",Number)],g7.prototype,"percent",void 0);_.L([_.T({value:6}),_.q("design:type",Number)],g7.prototype,"spacing",void 0);_.L([_.T({value:_.pi.create("iron-meta",{type:"iconset"})}),_.q("design:type",_.F1)],g7.prototype,"meta",void 0);
_.L([_.AA("percent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],g7.prototype,"percentChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ratings"})],g7);
_.Y(g7,"ytd-ratings",function(){if(rsu!==void 0)return rsu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rsu=l},{mode:1});var ij=function(){return _.B.apply(this,arguments)||this};
_.m(ij,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ij.prototype,"data",void 0);_.L([_.U({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],ij);
_.Y(ij,"ytd-offer-review-renderer",function(){if(Nzf!==void 0)return Nzf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Nzf=l},{mode:1});var w7=function(){var l=_.B.apply(this,arguments)||this;l.badges=[{textBadge:{label:_.xp("CC")}}];return l};
_.m(w7,_.B);_.X=w7.prototype;_.X.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.X.dataChanged=function(){var l=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(l&&l.commandMetadata&&_.I(l.commandMetadata,_.fp)&&_.I(l.commandMetadata,_.fp).fireAutomatically)_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}});else{var e;l&&((e=_.I(l,_.fp))==null?0:e.fireAutomatically)&&_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})}};
_.X.isEmptyContent=function(l){return this.isStorefrontEntryPointEmpty(l)&&this.shouldHideOfferModule(l)};
_.X.isStorefrontEntryPointEmpty=function(l){return!l||!l.storefrontEntryPoint};
_.X.shouldHideOfferModule=function(l){return!!l.hideVideoDetails};
_.X.isOfferModuleNavigationInactive=function(l){return!l.navigationEndpoint&&!l.serviceEndpoint};
_.X.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
w7.prototype.dataChanged=w7.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],w7.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.q("design:type",Boolean)],w7.prototype,"hidden",void 0);
_.L([_.T(),_.q("design:type",Object)],w7.prototype,"badges",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],w7.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],w7);
_.Y(w7,"ytd-movie-offer-module-renderer",function(){if(v2i!==void 0)return v2i;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return v2i=l},{mode:1});var DW0;var A8=function(){return _.B.apply(this,arguments)||this};
_.m(A8,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],A8.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],A8.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],A8);
_.Y(A8,"ytd-media-masthead-renderer",function(){if(DW0!==void 0)return DW0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DW0=l},{mode:1});var S20;_.Zw(_.c_6,"course-metadata-view-model",{props:{data:_.Vh,isOverlay:_.Vh}});var nX=function(){var l=_.B.apply(this,arguments)||this;l.isMetadataVisible=!1;l.modernPanels=_.a("kevlar_watch_modern_panels");l.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return l};
_.m(nX,_.B);_.X=nX.prototype;
_.X.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"}}}}};
_.X.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.X.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.X.expanderChanged=function(){var l;if((l=this.data)==null?0:l.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.X.isExpandButtonToggled=function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.expandMetadataButton,_.ci))==null?void 0:e.isToggled};
_.X.onVisibilityButtonClick=function(){var l;if((l=this.data)==null?0:l.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.X.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
nX.prototype.expanderChanged=nX.prototype.expanderChanged;nX.prototype.dataChanged=nX.prototype.dataChanged;nX.prototype.descriptionChanged=nX.prototype.descriptionChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K([_.ZH.YtActionHandlerBehavior]),_.q("design:type",Object)],nX.prototype,"actionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],nX.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],nX.prototype,"isMetadataVisible",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],nX.prototype,"modernPanels",void 0);_.L([_.aB("#expander"),_.q("design:type",Object)],nX.prototype,"expander",void 0);_.L([_.AA("data.description"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nX.prototype,"descriptionChanged",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nX.prototype,"dataChanged",null);_.L([_.AA("isMetadataVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nX.prototype,"expanderChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],nX);
_.Y(nX,"ytd-tvfilm-offer-module-renderer",function(){if(S20!==void 0)return S20;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return S20=l},{mode:2});var QGh;var a8=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return l};
_.m(a8,_.B);a8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
a8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
a8.prototype.onThumbnailTap=function(l){this.data&&this.data.serviceEndpoint&&(_.V2().resolve(_.Zh).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),l.stopPropagation())};
a8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
a8.prototype.dataChanged=a8.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],a8.prototype,"rendererBehaviors",void 0);_.L([_.K([_.ZH.YtActionHandlerBehavior]),_.q("design:type",Object)],a8.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],a8.prototype,"data",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],a8.prototype,"dataChanged",null);_.L([_.U({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],a8);
_.Y(a8,"ytd-unlimited-offer-module-renderer",function(){if(QGh!==void 0)return QGh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return QGh=l},{mode:1});var xWo;var ld0;var kX=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return l};
_.m(kX,_.B);kX.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
kX.prototype.handleRelatedChipCommand=function(l){l=_.I(l,Ldz);var e=l.contents;e?_.dQ(this.hostElement,"yt-item-section-replace-action",[e,l.targetSectionIdentifier]):_.dQ(this.hostElement,"yt-item-section-continuation-action",[l.continuationData,l.targetSectionIdentifier])};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],kX.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kX.prototype,"data",void 0);_.L([_.Ps({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],kX);
_.Y(kX,"yt-related-chip-cloud-renderer",function(){if(ld0===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;xWo===void 0&&(xWo=document.createElement("template"));var E=xWo;O.call(e,E.content.cloneNode(!0),l.content.firstChild);ld0=l}l=ld0;return l},{mode:2});var I8=function(){var l=_.B.apply(this,arguments)||this;l.isTwoColumns=!0;l.hideOfferModules=!1;l.watchFeedBigThumbs=_.a("kevlar_watch_feed_big_thumbs");l.watchNextGridHideChips=_.a("kevlar_watch_grid_hide_chips");l.eligibleToSwitchToGrid=_.a("web_watch_eligible_to_switch_to_grid");l.disableShortsShelfHeightOverride=_.a("web_shorts_wn_shelf_ratio_tuning");l.isWatchNextGrid=!1;l.reuseComponents=!_.a("kevlar_watch_grid");l.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return l};
_.m(I8,_.B);_.X=I8.prototype;
_.X.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.a("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}}};
_.X.getItemsPath=function(){return"data.results"};
_.X.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.X.created=function(){this.ytLazyListBehavior.initialCount=1};
_.X.ready=function(){_.dP(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.X.resultsChanged=function(){if(this.data&&this.data.results){for(var l=this.data.results,e=null,O=null,E=0;E<l.length;E++)l[E].relatedChipCloudRenderer?e=l[E].relatedChipCloudRenderer:l[E].itemSectionRenderer&&(O=l[E].itemSectionRenderer);if(e&&O)for(this.set("data.continuations",[]),l=_.I(e.content,_.Oiq).chips,e=0;e<l.length;e++)if(E=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",l[e]),E.loadCached||!E.contents){E.contents=O.contents;break}}};
_.X.dataChanged=function(){var l=this,e;if((e=this.data)!=null&&e.results&&this.hasAllowedInstreamAd(this.playerData)){if(e=this.data.results.filter(function(Z){return!!Z.promotedSparklesWebRenderer})){for(var O=0;O<e.length;O++){var E=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",e[O]);
if(E)for(var J=0;J<E.length;J++)E[J]&&E[J].baseUrl&&_.St(E[J].baseUrl)}this.set("data.results",this.data.results.filter(function(Z){return!Z.promotedSparklesWebRenderer}))}if(e=this.data.results.filter(function(Z){return!!l.getSparklesAd(Z)})){e=_.b(e);
for(J=e.next();!J.done;J=e.next())if(E=O=void 0,J=(O=this.getSparklesAd(J.value))==null?void 0:(E=O.errorCommand)==null?void 0:E.loggingUrls)for(O=_.b(J),E=O.next();!E.done;E=O.next())(E=E.value)&&E.baseUrl&&_.St(E.baseUrl);var z,M;this.set("data.results",(z=this.data)==null?void 0:(M=z.results)==null?void 0:M.filter(function(Z){return!Z.adSlotRenderer}))}}};
_.X.getSparklesAd=function(l){var e,O;l=_.I((e=l.adSlotRenderer)==null?void 0:(O=e.fulfillmentContent)==null?void 0:O.fulfilledLayout,_.aL1);return _.I(l==null?void 0:l.renderingContent,hCz)};
_.X.hasAllowedInstreamAd=function(l){l=this.get("adPlacements",l)||[];for(var e=0;e<l.length;e++){var O=this.get("adPlacementRenderer.config.adPlacementConfig",l[e]);if(O&&O.suppressDisplayAd)return!0}return!1};
_.X.computeHideUnlimitedOfferModule=function(l,e){return l&&l.offerModule&&e&&l.offerModule.unlimitedOfferModuleRenderer&&l.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(e)?!0:!1};
_.X.hideUnlimitedOfferModuleChanged=function(){var l=_.ud(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");l&&(l.hidden=this.hideUnlimitedOfferModule)};
_.X.updateLockupContainerTypes=function(l){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||e.forEach(function(O){O.containerType=l})}};
_.X.computeHideTvfilmOfferModule=function(l,e){var O,E;return!!((l==null?0:(O=l.offerModule)==null?0:(E=O.tvfilmOfferModuleRenderer)==null?0:E.clientShouldSuppressIfCompanionAdDisplayed)&&e&&this.hasCompanionAds(e))};
_.X.hideTvfilmOfferModuleChanged=function(){var l=_.ud(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");l&&(l.hidden=this.hideTvfilmOfferModule)};
_.X.hasCompanionAds=function(l){l=this.get("adPlacements",l)||[];for(var e=0;e<l.length;e++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",l[e]))return!0;var O=void 0,E=void 0,J=void 0;if(!_.a("web_watch_top_banner_companion_check_killswitch")&&((O=l[e])==null?0:(E=O.adPlacementRenderer)==null?0:(J=E.renderer)==null?0:J.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.X.hasSuppressedResults=function(l){return l==null?!0:l.filter(function(e){return!e.continuationItemRenderer&&!e.compactPromotedVideoRenderer&&!e.promotedSparklesWebRenderer}).length===0};
_.X.computeShowButton=function(l,e){return this.isWatchNextGrid?l:l||this.hasSuppressedResults(e)};
_.X.showButtonChanged=function(){if(this.isWatchNextGrid){var l=_.ud(this.hostElement).querySelector("ytd-rich-grid-renderer");l&&this.showButton!==null&&(l.continuationShowButton=this.showButton)}else{l=_.ud(this.hostElement).querySelector("yt-next-continuation");var e=_.ud(this.hostElement).querySelector("ytd-continuation-item-renderer"),O=_.ud(this.hostElement).querySelector("ytd-item-section-renderer");l&&(l.showButton=this.showButton);e&&(e.showButton=this.showButton);O&&(O.continuationShowButton=
this.showButton)}};
_.X.continuationTap=function(l){var e;if(((e=this.data)==null?void 0:e.continuations)!=null&&l.target.tagName==="TP-YT-PAPER-BUTTON")for(l=this.data.continuations,e=0;e<l.length;e++)l[e].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(l[e].nextContinuationData||{})};
_.X.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("shown-items-changed",this.shownItems))};
_.Ji.Object.defineProperties(I8.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.shownItems)==null||!l.some(function(e){return!!e.lockupViewModel||e.compactVideoRenderer}))}}});
I8.prototype.shownItemsChangedForBinding=I8.prototype.shownItemsChangedForBinding;I8.prototype.showButtonChanged=I8.prototype.showButtonChanged;I8.prototype.hideTvfilmOfferModuleChanged=I8.prototype.hideTvfilmOfferModuleChanged;I8.prototype.updateLockupContainerTypes=I8.prototype.updateLockupContainerTypes;I8.prototype.hideUnlimitedOfferModuleChanged=I8.prototype.hideUnlimitedOfferModuleChanged;I8.prototype.dataChanged=I8.prototype.dataChanged;I8.prototype.resultsChanged=I8.prototype.resultsChanged;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],I8.prototype,"ytLazyListBehavior",void 0);_.L([_.K(_.vd.YtNextContinuationBehavior),_.q("design:type",Object)],I8.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.K(_.qU),_.q("design:type",Object)],I8.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],I8.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],I8.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],I8.prototype,"playerData",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],I8.prototype,"autoFill",void 0);_.L([_.T({value:60}),_.q("design:type",Number)],I8.prototype,"targetFramerate",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],I8.prototype,"isTwoColumns",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],I8.prototype,"hideOfferModules",void 0);_.L([_.T(),_.q("design:type",Object)],I8.prototype,"shownItems",void 0);_.L([_.T({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.q("design:type",Boolean)],I8.prototype,"hideUnlimitedOfferModule",void 0);
_.L([_.T({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.q("design:type",Boolean)],I8.prototype,"hideTvfilmOfferModule",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],I8.prototype,"watchFeedBigThumbs",void 0);_.L([_.T(),_.q("design:type",Object)],I8.prototype,"watchNextGridHideChips",void 0);_.L([_.T(),_.q("design:type",Object)],I8.prototype,"eligibleToSwitchToGrid",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],I8.prototype,"disableShortsShelfHeightOverride",void 0);_.L([_.T({selector:_.vi,reflectToAttribute:!0}),_.q("design:type",Object)],I8.prototype,"isGridViewEnabled",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],I8.prototype,"showMoreButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],I8.prototype,"isWatchNextGrid",void 0);
_.L([_.T({computed:"computeShowButton(showMoreButton, data.results)"}),_.q("design:type",Boolean)],I8.prototype,"showButton",void 0);_.L([_.y0("data.results.*"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I8.prototype,"resultsChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I8.prototype,"dataChanged",null);
_.L([_.AA("hideUnlimitedOfferModule"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I8.prototype,"hideUnlimitedOfferModuleChanged",null);_.L([_.R("isGridViewEnabled","containsLockups","data"),_.T({reflectToAttribute:!0}),_.q("design:type",Number),_.q("design:paramtypes",[])],I8.prototype,"lockupContainerType",null);
_.L([_.AA("lockupContainerType","data"),_.q("design:type",Function),_.q("design:paramtypes",[Number]),_.q("design:returntype")],I8.prototype,"updateLockupContainerTypes",null);_.L([_.AA("hideTvfilmOfferModule"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I8.prototype,"hideTvfilmOfferModuleChanged",null);_.L([_.AA("showButton"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I8.prototype,"showButtonChanged",null);
_.L([_.AA("shownItems"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],I8.prototype,"shownItemsChangedForBinding",null);_.L([_.R("shownItems"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],I8.prototype,"containsLockups",null);
_.Y(I8,"ytd-watch-next-secondary-results-renderer",function(){if(tP3===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);tP3=l}l=tP3;return l},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.aRH={};
_.aRH.YtdWatchBehavior=[_.x.YtRendererBehavior,_.NO.YtPlayerListenerBehavior,_.VG.YtRendererstamperBehavior,_.ZH.YtActionHandlerBehavior,_.ym.YtPageBehavior,_.af.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.LH("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.a("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.a("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.LH("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.a("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 _.Cv("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Cv("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.a("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.a("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.a("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.a("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.a("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("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 _.a("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("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 _.a("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var l={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:_.Rb(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Rb(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.a("swa_prov_panels_ks")?l.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(l.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},l.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return l},
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 l=this;this.watchController=void 0;this.pageDisposeJobs=[function(){l.showMetadataPlaceholder_()},
function(){_.a("web_watch_dont_clear_comments")||l.clearComments_()},
function(){l.clearPlayerAds_()},
function(){l.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.a("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.a("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.M2H(function(){return _.zn(l)},this.hostElement);
this.pageDisposeJobs.push(function(){l.youThereManager_.reset()});
_.a("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){l.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.$k;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;_.a("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));_.a("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.id(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(l){l&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:l}),l.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(l){_.a("kevlar_watch_flexy_theater_manager")&&(this.theater=l,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(l){!_.a("kevlar_watch_while_v2")&&!_.a("web_watch_pip")||l||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(l){this.active!==void 0&&(this.fullscreen=l,_.a("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(l){this.active!==void 0&&(_.$u(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.a("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(l>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(l){this.initCsi_();this.updatePageData_(l)},
updatePageData_:function(l){var e=this;if(l)if(this.data===l){this.onPageLoadWithSameData_();var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)}else this.data=l;this.playlist&&_.Pb({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Yu("nw");this.loading=!1;_.fZ(_.UD,function(){e.initDclkstatus_();var E,J=((E=e.player)==null?void 0:E.getVideoData().cpn)||"";_.NM3(function(z,M){_.N5i(z,M,J)})})},
onPageLoadWithSameData_:function(){_.a("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 l=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!l);this.set("loadingData.playlistLoading",l&&l!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),l=this.watchNextSkeletonEl_.firstElementChild;l;)l.classList.remove("hidden"),l=l.nextElementSibling;if(_.a("kevlar_watch_frame0_loading_state")){var e,O,E;l=(e=this.loadingData)==null?void 0:(O=e.endpoint)==null?void 0:(E=O.watchEndpoint)==null?void 0:E.videoId;var J;l&&(J="https://i.ytimg.com/vi/"+l+"/frame0.jpg");_.ud(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var l=_.ud(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&l&&(l.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,O;(O=(e=this.watchMetadata).updateSentimentBarWidth)==
null||O.call(e);var E,J;(J=(E=this.watchMetadata).resize)==null||J.call(E)}_.a("kevlar_watch_frame0_loading_state")&&(_.ud(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(l){var e=_.ud(this.hostElement).querySelector(l);e?_.Cz(e,!1):_.hG(new _.Hk("Overscroll monitor not found for component: ",l))},
removeSplitScrollMouseTrap:function(l){var e=_.ud(this.hostElement).querySelector(l);e?_.op(e):_.hG(new _.Hk("Disposal component for  overscroll monitoring not found: ",l))},
onLoadingChanged_:function(l){l?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(l){var e=this;l?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.UD.addLowPriorityJob(function(){e.onWindowResized_(_.K0(!0))})},
updateTheaterModeState_:function(l){if(!_.a("kevlar_watch_flexy_theater_manager")){l=l||this.fullWindowMode_;if(this.theater!==void 0||l)this.theater=l;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();l&&_.XVO()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var l=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.a("external_fullscreen")&&this.fullscreen&&(l=!0);l=l?_.ud(this.hostElement).querySelector("#player-full-bleed-container"):_.ud(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),O=_.a("kevlar_watch_while_v2")||_.a("web_watch_pip");e.parentElement!==l&&(O&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.zn(this).appendTo(l,
e),l.appendChild(_.ud(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var l=this;return _.V(function(e){if(e.nextAddress==1)return _.C(e,_.V2().resolve(_.NJ).deactivate(),2);l.updatePlayerLocation();_.Cl(e)})},
updateCinematicsLocation:function(){var l=this.getElement("CINEMATICS");if(l){var e=this.getCinematicsLocationContainer();l.parentElement!==e&&e.appendChild(l);var O;(O=this.watchController)==null||O.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ud(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ud(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(l,e){var O=document.documentElement.hasAttribute("dark"),E=O&&_.a("web_cinematic_theater_mode"),J=O&&_.a("web_cinematic_fullscreen");O=!O&&this.cinematicLightTheme;return l&&E||e&&J||(e||l)&&O},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var l=this,e;(e=this.watchController)==null||e.setWatchNextResponse(this.data);_.a("kevlar_watch_flexy_comments_manager")||this.initComments_();_.a("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.V2().resolve(_.U5).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.a("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.UD.addLowPriorityJob(function(){_.dQ(l.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.a("web_watch_start_chat_in_theater_mode")){var O,E,J;if((O=this.data)==null?0:(E=O.contents)==null?0:(J=E.twoColumnWatchNextResults)==null?0:J.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var z,M;((z=this.data)==null?0:(M=z.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(l){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);l&&l.playabilityStatus&&(e=this.isVideoPlayable_(l.playabilityStatus,this.getPlayerOverlays_(this.data)),l=this.isLiveStreamOffline_(l.playabilityStatus),e&&!l||_.OK(this,function(){_.Yu("pbu")}));
this.setPlayerAds_();_.dQ(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(l,e){if((_.a("kevlar_watch_while_v2")||_.a("web_watch_pip"))&&this.playerData&&e)return this.playerData.videoDetails},
watchPageActiveChanged_:function(l){_.Om().dispatch(_.HKu(this.active));l?this.activate_():this.deactivate_()},
attached:function(){var l=this;this.watchController=new _.B7(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);_.a("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.zn(this);_.a("kevlar_disable_prepare_player")||
e.preparePlayer();_.a("kevlar_watch_flexy_playlist_manager")||_.V2().resolve(_.U5).setPlayer(e);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.cr()+"px"};this.is==="ytd-watch-grid"&&(e["--ytd-watch-flexy-sidebar-width"]=_.LNi+"px",e["--ytd-watch-grid-horizontal-page-margins"]=_.R8+"px",e["--ytd-watch-grid-columns-top-margins"]=_.UnF+"px",e["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Cv("kv_pl_mx_sz_ks")&&
_.Cv("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.th4+"px");_.Cv("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.qQC+"px");this.safeUpdateStyles(e);_.a("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.MK(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return l.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ud(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var l=_.cr(),e=_.Tw+l,O=e;this.fixedPanels&&(e+=_.LNi);var E=657+l;l=1327+l;_.ud(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.ud(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(E+"px), (min-height: 630px) and (min-width: ")+(e+"px) and (max-width: ")+(l+"px)");_.ud(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(l+"px)");
_.ud(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+O+"px)"},
calculateCurrentPlayerSize_:function(){var l=_.ud(this.hostElement).querySelector("#miniplayer-bar").firstChild,e=this.squeezeback&&!_.a("web_watch_squeezeback_player_size_killswitch");return l&&l.active||this.theater||_.a("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||e||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.uX(NaN,NaN):_.hO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.hO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Q9(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var l=this;this.onWindowResized_(_.K0());_.a("browse_skeleton_removal_on_watch_killswitch")||_.LH("IS_SHELL_LOAD")&&_.rEH();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.zn(this);e.addEventListener("yt-player-updated",_.id(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(O){l.playerApiReady_(O)});
_.a("kevlar_watch_flexy_playlist_manager")||(e=_.V2().resolve(_.U5),_.a("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.id(this,this.onYtNavigate_)),e.setPlaylistComponent(_.ud(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.id(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.UD.addLowPriorityJob(function(){_.$u(l.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.zn(this).removeEventListener("yt-player-updated",_.id(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.a("kevlar_watch_flexy_playlist_manager")){var l=_.V2().resolve(_.U5);_.a("kevlar_watch_observe_playlist_navigations_killswitch")&&l.removeEventListener("yt-navigate",_.id(this,this.onYtNavigate_));
l.cancelVideoSkip();l.removeEventListener("yt-playlist-data-updated",_.id(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.$u(this.hostElement,"yt-autonav-pause-player",!1);l=_.ZG();_.a("kevlar_exit_fullscreen_leaving_watch")&&l&&_.ui(l)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(l){this.player&&this.player.updateVideoData({rvs:l.rvs})},
getPageContents:function(l){return l&&l.contents&&l.contents.twoColumnWatchNextResults&&l.contents.twoColumnWatchNextResults.results&&l.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(l){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l)},
onRetrieveLocation_:function(l,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);l.stopPropagation()},
onSubscriptionChanged_:function(l,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.mv("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ud(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ud(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(l){this.player=l;this.setPlayerState(l.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.a("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.a("kevlar_unified_player")||_.a("kevlar_player_new_bootstrap_adoption"))&&_.EU()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(l,e){e=e===void 0?!0:e;_.ZG()&&_.a("external_fullscreen")&&_.ui(document.documentElement);this.theaterRequested_=l;e&&_.y2("wide",l?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Wb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.$u(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(l){_.LZ(l,typeof this.player),this.player&&_.LZ(l,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var l;((l=this.player)==null?0:l.isFullscreen())?this.player.toggleFullscreen():_.Wb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(l,e){return this.loading?e:!!Object.keys(l).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(l){if(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next())e=e.value,e.youThereRenderer&&_.up4(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(l){return l||{}},
userEngagementConfigDataChanged_:function(l){if(l)if(l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.uN()<l.lowEngagementThresholdMs||_.Wz0(e,!0)}else l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Wb(this.hostElement,"yt-autonav-pause-user-engagement",[l])},
isPlayerUnavailable_:function(l,e,O){return!!l&&!this.isVideoPlayable_(l,O)&&!e},
getPlayerOverlays_:function(l){return(l==null?void 0:l.playerOverlays)||null},
isVideoPlayable_:function(l,e){if(!l)return!1;var O=l.status==="OK"||l.status==="LIVE_STREAM_OFFLINE",E=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",l)||this.get("errorScreen.ypcTrailerRenderer",l);l=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",l);var J;e=e==null?void 0:(J=e.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!O||!!E||!!l||!!e},
hasWatchNextResponseErrorRenderer:function(l){var e=this.getPageContents(l),O,E,J,z,M;return!(l==null?0:(O=l.contents)==null?0:(E=O.twoColumnWatchNextResults)==null?0:E.secondaryResults)&&!!((J=e[0])==null?0:(z=J.itemSectionRenderer)==null?0:(M=z.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(l){return l?l.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(l,e,O){var E=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.a("web_no_skip_video_on_verification_checks")?(l==null?void 0:l.status)&&J.includes(l.status):l&&l.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",l);z==void 0&&(z=!0);!O||this.isVideoPlayable_(l,this.getPlayerOverlays_(e))||
E||J||!z||_.V2().resolve(_.U5).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.lRi()},
onPlayerFeedbackStartRequest_:function(l){_.Wb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:l}])},
onPlayerFeedbackArticleRequest_:function(l){_.Wb(this.hostElement,"yt-help-dialog-requested",[l])},
onPlayerYpcContentRequest_:function(){var l,e,O,E,J,z,M,Z,u=((l=this.data)==null?NaN:(e=l.contents)==null?NaN:(O=e.twoColumnWatchNextResults)==null?NaN:(E=O.secondaryResults)==null?NaN:(J=E.secondaryResults)==null?NaN:(z=J.offerModule)==null?NaN:(M=z.tvfilmOfferModuleRenderer)==null?NaN:(Z=M.actionButtons)==null?NaN:Z.length)-1;l=[".offerButton.buttonRenderer.",".actionButtons."+(u>=0?u:0)+".buttonRenderer."];e=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(O=e.next();!O.done;O=e.next())for(O=O.value,E=_.b(l),J=E.next();!J.done;J=E.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+O+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.aX(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(l){_.$u(this.hostElement,"yt-autonav-pause-player",l)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(l){l()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.$u(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(l)},
setPlayerState:function(l){_.Om().dispatch(_.P8x(l))},
onPlayerSubscribe_:function(l){_.Wb(this.hostElement,"yt-player-subscribe",[l])},
onPlayerUnsubscribe_:function(l){_.Wb(this.hostElement,"yt-player-unsubscribe",[l])},
onPlayerAdYtShowToast_:function(l){_.Wb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:l.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(l){if(l)return l},
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(l){return!_.a("web_watch_move_summary_to_sd")&&!!l},
computeWatchMetadataRefresh:function(){return _.a("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.a("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var l,e,O,E;this.watchNextSecondaryResults=(l=this.data)==null?void 0:(e=l.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(E=O.secondaryResults)==null?void 0:E.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.a("swatcheroo_pbs_load_grid")&&!_.a("swatcheroo_provide_all_data_on_scheduled_job")){_.UD.cancelJob(this.setRichGridJobId_);var l,e,O,E,J,z,M;this.setRichGridRendererData((l=this.data)==null?void 0:(e=l.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(E=O.secondaryResults)==null?void 0:(J=E.secondaryResults)==null?void 0:(z=J.results)==null?void 0:(M=z[0])==null?
void 0:M.richGridRenderer)}},
setRichGridRendererData:function(l){this.richGridRendererData=l},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var l,e=(l=this.data)==null?void 0:l.engagementPanels;if(e==null?0:e.length){l=null;e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;if(((E=O.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-structured-description"){l=O;break}}var J,z,M;l=(J=l)==null?void 0:(z=J.engagementPanelSectionListRenderer)==null?void 0:(M=z.content)==null?void 0:M.structuredDescriptionContentRenderer;if(l==null?0:l.items){J=
[];z=_.b(l.items);for(M=z.next();!M.done;M=z.next()){M=M.value;if(!_.a("sd_horizontal_list_show_nav_killswitch")){var Z=E=O=e=l=void 0,u=void 0,d=(l=M.horizontalCardListRenderer)==null?void 0:(e=l.header)==null?void 0:(O=e.richListHeaderRenderer)==null?void 0:(E=O.navigationButton)==null?void 0:(Z=E.buttonRenderer)==null?void 0:(u=Z.command)==null?void 0:u.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(g){return!_.I(g,_.zZC)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||J.push(M)}return{items:J}}}},
constructWarning_:function(l){return{text:_.xp(l),type:"WARNING"}},
isPlaShelfEnabled_:function(l){if((this.get("adPlacements",l)||[]).length)return!0;l=this.get("playerAds",l)||[];return!(!l.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",l[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var l=this;_.$u(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.a("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.zn(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonVisibility(l.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.$u(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var l=this;this.commentsReady=!1;_.UD.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.fZ(_.UD,function(){l.setComments_()},1E3)},
setComments_:function(){if(!_.a("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Yu("cmi");_.UD.cancelJob(this.setCommentsJobId_);var l=this.getPageContents(this.data);if(l&&l.length){l=_.b(l);for(var e=l.next();!e.done;e=l.next())if(e=e.value,this.get("itemSectionRenderer.sectionIdentifier",e)==="comment-item-section"){this.comments=e.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.$u(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.a("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.a("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Yu("cmc")},
doRemoveComments_:function(){this.comments={};_.a("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.UD.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.UD.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(l,e){var O=_.I(e.endpoint,_.ej);O&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||O.videoId!==e.videoId||O.playlistId&&O.playlistId!==e.playlistId||O.index!==void 0&&O.index!==e.index||typeof O.startTimeSeconds!=="number"||(l.stopPropagation(),this.setScrollTop(0),_.zn(this).getPlayerPromise().then(function(E){var J=O.startTimeSeconds;E.seekTo(J);E.wakeUpControls();J<E.getDuration()&&E.playVideo()})))},
updatePlayerStartTime_:function(){var l=_.BMh();"t"in l&&(l=_.xVu(l.t),this.player.seekTo(l,!0))},
updateTitleFromWatchNext:function(l){l=this.getPageContents(l);var e,O;(l=_.lG(l==null?void 0:(e=l[0])==null?void 0:(O=e.videoPrimaryInfoRenderer)==null?void 0:O.title))&&_.$u(this.hostElement,"yt-update-title",l)},
updateTitle_:function(l){l=this.get("videoDetails.title",l)||"";_.$u(this.hostElement,"yt-update-title",l)},
syncWithRemoteVideo_:function(l,e,O){if(this.active&&this.player){var E=this.player.getVideoData();if(E.video_id===O&&(O=E.list,_.a("polymer_enable_mdx_queue")&&O&&O.startsWith("RQ")&&(O=void 0),E.video_id!==l||O!=e)){var J;_.a("kevlar_player_watch_endpoint_navigation")?J=_.f_2(_.rNz(l,e)):J=this.buildWatchEndpoint_(l,e);_.$u(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(l,e,O){return _.Vy(l,e,O)},
initDclkstatus_:function(){_.QA3()},
attachWatchPageSkeleton_:function(){var l=document.querySelector("#watch-page-skeleton");if(l){var e=l.querySelector("#primary-info"),O=l.querySelector("#secondary-info"),E=l.querySelector("#related");e&&_.ud(this.hostElement).querySelector("#info-skeleton").appendChild(e);O&&_.ud(this.hostElement).querySelector("#meta-skeleton").appendChild(O);E&&(_.ud(this.hostElement).querySelector("#related-skeleton").appendChild(E),this.watchNextSkeletonEl_=E);_.wk(l)}},
handlePlayerUpdated_:function(){_.zn(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(l,e){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof e!=="undefined"){var O=this.watchNextSkeletonEl_.children,E=l&&l.indexSplices.length?l.indexSplices[0].index:0;l=Math.min(this.watchNextShownItems.length,O.length);e||(E=0,l=O.length);for(e=E;e<l;e++)O[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(l){_.a("external_fullscreen")||_.Wb(this.hostElement,"yt-player-fullscreen",[l.fullscreen])},
onFullscreenChange_:function(l){this.fullscreen=l;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.zn(this);e.getPlayerPromise().then(function(O){O.setFauxFullscreen(!!_.ZG())});
this.updateFullBleedElementLocations();l&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(l,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(l){return l},
computeShouldShowMerchShelf:function(l,e){return e&&!!l},
computeResponseHasComments:function(l){var e,O,E,J,z;return!!(l==null?0:(e=l.contents)==null?0:(O=e.twoColumnWatchNextResults)==null?0:(E=O.results)==null?0:(J=E.results)==null?0:(z=J.contents)==null?0:z.some(function(M){var Z;return(M==null?void 0:(Z=M.itemSectionRenderer)==null?void 0:Z.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(l,e,O,E){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&E?!1:!!l&&!!Object.keys(l).length&&!e},
identity:_.Bx,onWindowResized_:function(l){this.windowSize_=l;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(l){var e=this;l&&l.type!=="dataloaded"&&l.type!=="dataupdated"||_.zn(this).getPlayerPromise().then(function(O){var E=O.getPlayerState();E!==5&&E!==0&&(O=1/O.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==O&&(e.videoHeightToWidthRatio_=O))})},
schedulePlayerSizeUpdate_:function(l){var e=this,O=_.a("kevlar_watch_while_v2")||_.a("web_watch_pip"),E=function(){if(e.watchMetadata){var J,z;(z=(J=e.watchMetadata).resize)==null||z.call(J)}_.zn(e).getPlayerPromise().then(function(M){if(_.a("kevlar_set_internal_player_size")){if(!O||!e.isMiniplayerActive()){var Z=e.calculateCurrentPlayerSize_();M.setInternalSize(Z.width,Z.height)}}else M.setSize(NaN,NaN);_.a("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
l?E():_.RK(_.UD,E)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(l){this.set("data.survey",l.detail)},
onYtShowSurveyCommand_:function(l){this.set("data.survey",_.I(l,_.bXP).survey)},
onDownloadedVideoDeleted:function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1){if(!e.active||(O=e.playerData)==null||!O.offlineState||e.videoId!==l)return J.return();(E=e.player)==null||E.stopVideo();_.n6().navigatingAwayFromWatchDeletedVideo=!0;_.aX(_.jGx,e.hostElement);return _.C(J,_.n6().navigationFinishPromise,2)}_.n6().navigatingAwayFromWatchDeletedVideo=!1;_.Cl(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var l;this.theater?l=_.hc(.5625*this.windowSize_.width,480,this.windowSize_.height-185):l=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==l&&(this.watchWhileScrollThreshold_=l,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var l=_.ud(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&l){var e=this.windowSize_.height>=624,O=this.active?this.getScrollTop():0;!l.active&&e&&O>=this.watchWhileScrollThreshold_?(l.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):l.active&&(!e||O<this.watchWhileScrollThreshold_&&!_.ZG())&&(l.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var l=_.ud(this.hostElement).querySelector("#secondary-inner");if(l){var e=_.ud(this.hostElement).querySelector("#below"),O=_.ud(this.hostElement).querySelector("#secondary"),E=_.ud(this.hostElement).querySelector("#comments");E&&O&&e&&(this.defaultTwoColumnLayout?(l.appendChild(E),O.appendChild(l)):(e.appendChild(E),_.fX(e,l)))}}},
isTwoColumnsChanged_:function(l,e){if(l!==!0||e!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(l=_.ud(this.hostElement).querySelector("#secondary-inner"))){e=_.ud(this.hostElement).querySelector("#below");var O=_.ud(this.hostElement).querySelector("#secondary"),E=_.ud(this.hostElement).querySelector("#comments");E&&O&&e&&(this.isTwoColumns_?(l.appendChild(E),O.appendChild(l)):(e.appendChild(E),
_.fX(e,l)))}}else{l=!_.a("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);e=_.ud(this.hostElement).querySelector("#panels");var J=_.ud(this.hostElement).querySelector("#alerts");O=_.ud(this.hostElement).querySelector("#playlist");E=_.ud(this.hostElement).querySelector("#related");var z=_.ud(this.hostElement).querySelector("#donation-shelf"),M=_.ud(this.hostElement).querySelector("#comments");this.isTwoColumns_?(J=_.ud(this.hostElement).querySelector("#secondary-inner"),
l&&(J.appendChild(e),J.appendChild(O)),J.appendChild(z),J.appendChild(E)):(l&&(_.s8(e,J),_.s8(O,J)),_.s8(z,J),M&&_.s8(E,M));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.a("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.a("web_watch_enable_fs_squeezeback_panels")&&_.a("web_watch_theater_chat")){var l=_.ud(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.a("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?(e=_.ud(this.hostElement).querySelector("#columns"),(l==null?void 0:l.parentElement)!==e&&e.append(l),this.fixedPanels=!0):(this.fixedPanels=
!1,e=_.ud(this.hostElement).querySelector("#playlist"),l&&e?_.GP(l,e):_.hG(new _.Hk("Missing element when updating chat location",{"chatContainer defined":!!l,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(l,e){return _.a("sw_metadata_vis_toggle_ks")?!0:!!l||!!e},
computeForceDarkPanelTheme:function(l){return _.a("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&l:!1},
safeUpdateStyles:function(l){try{_.dP(this.hostElement,l)}catch(e){_.hG(e)}},
videoHeightToWidthRatioChanged_:function(l,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(l){this.videoHeightToWidthRatio_=1/l},
computeIsVerticalVideo_:function(l){return l>=1},
computeIsFourThreeToSixteenNineVideo_:function(l){return l<=.7501&&l>=.5624},
computeIsExtraWideVideo_:function(l){return l<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.zn(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.zn(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dIz(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(l){var e=_.gS(l)||0;_.dS(l,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var l=_.gS("yt-fullerscreen-edu-button-click-count")||0,e=_.gS("yt-fullerscreen-edu-button-shown-count")||0,O=_.Cv("external_fullscreen_button_shown_threshold"),E=l>=_.Cv("external_fullscreen_button_click_threshold")||e>=O;_.zn(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(E)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(l,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.V2().resolve(_.U5).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var l=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.UD.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.UD.addLowPriorityJob(function(){l.fullHeightPanelPositionUpdateJobId=0;var e=_.ud(l.hostElement).querySelector("#secondary"),O=_.ud(l.hostElement).querySelector("#fixed-secondary");e=e.getBoundingClientRect();var E=e.width;l.swatcherooSqueezeback&&
(E+=_.R8);if(l.swatcherooSqueezeback){var J=_.ud(l.hostElement).querySelector("#squeezeback-constraining-container");J.style.width=E+"px";J.style.flex="0 0 "+E+"px"}O.style.width=E+"px";O.style.left=e.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var l=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.UD.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.UD.addLowPriorityJob(function(){l.panelMaxHeightUpdateJob_=0;var e;!l.isTwoColumns_||l.theater||l.fullscreen?e=460:e=l.calculateNormalPlayerSize_().height;var O=e+"px";_.a("live_chat_taller_height")&&!l.theater&&(O="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.a("live_chat_medium_height")&&!l.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.a("live_chat_scaled_height")&&!l.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 238px)");l.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":O,"--ytd-watch-flexy-structured-description-max-height":e+"px","--ytd-watch-flexy-comments-panel-max-height":e+"px","--ytd-comments-engagement-panel-content-height":e+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(l){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",l)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.wQ(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(l){var e=_.ud(this.hostElement).querySelector("#engagement-panel-scrim");l?e.addEventListener("tap",_.id(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.id(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(l){if(this.hostElement.contains(l)&&!this.scrollToAnimation_.isAnimating()){var e=l.offsetTop-24;l=l.offsetTop+l.offsetHeight+24;var O=this.getPageScrollingElement(),E=this.getScrollTop(),J=E+O.clientHeight-56;if(e<E+56)e-=56;else if(l>J)e=l-O.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var l=this.hostElement.querySelector("#comments");if(l&&!this.scrollToAnimation_.isAnimating()){l=l.offsetTop-56-24;if(_.a("kevlar_comment_teaser_scroll_to_midpoint")&&(l-=_.CF().height/3,l<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtEngagementPanelVisibleChanged:function(l,e,O){if(this.active&&this.trackEngagementPanelVisibility&&!_.XgF.includes(O)){if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.dQ(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var E=_.V2().resolve(_.ye);this.visiblePanelIdentifiers_.forEach(function(J){J!==O&&E.hidePanel(J)})}this.visiblePanelIdentifiers_.add(O)}e!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(O);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(l){return l?"":"watch-active-metadata"},
computeNewMetadataClass:function(l){return l?"watch-active-metadata":""},
computeFullBleedPlayer:function(l,e,O){return l||e||this.enableFullBleedSingleColumnDefaultPlayer&&!O},
computeDefaultLayout:function(l){return!l},
computeDefaultTwoColumnLayout:function(l,e){return!l&&e},
updatePanelsLocation:function(){if(_.a("web_watch_enable_fs_squeezeback_panels")){var l=_.ud(this.hostElement).querySelector("#below"),e=_.ud(this.hostElement).querySelector("#panels"),O=_.ud(this.hostElement).querySelector("#playlist"),E=_.ud(this.hostElement).querySelector("#chat-container"),J=_.ud(this.hostElement).querySelector("#panels-full-bleed-container"),z=_.ud(this.hostElement).querySelector("#secondary-inner"),M=this.fullscreen||this.theater&&this.iMaxTheaterMode,Z=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;M?(J.appendChild(e),J.appendChild(E),J.appendChild(O)):this.isTwoColumns_?(Z?(l=_.ud(this.hostElement).querySelector("#columns"),(E==null?void 0:E.parentElement)!==l&&l.append(E),this.fixedPanels=!0):_.fX(z,E),_.fX(z,e),_.fX(z,O)):(l.appendChild(e),l.appendChild(E),l.appendChild(O))}},
swatcherooUpdatePanelsLocation:function(l,e,O,E,J,z){if(this.is==="ytd-watch-grid"){e=l&&!e;this.swatcherooSplitScroll&&(e?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));O=_.ud(this.hostElement).querySelector("#panels");var M=_.ud(this.hostElement).querySelector("#playlist"),Z=_.ud(this.hostElement).querySelector("#fixed-secondary"),u=_.ud(this.hostElement).querySelector("#fixed-below"),
d=_.ud(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),g=_.ud(this.hostElement).querySelector("#chat-container");z&&(l?Z.appendChild(O):u.appendChild(O));J?l?Z.appendChild(g):u.appendChild(g):_.GP(g,d);E?l?Z.appendChild(M):u.appendChild(M):_.GP(M,d);this.swatcherooSplitScroll&&(l=_.ud(this.hostElement).querySelector("#secondary"),E=_.ud(this.hostElement).querySelector("#columns"),J=_.ud(this.hostElement).querySelector("#fixed-columns-secondary"),e?
J.appendChild(l):E.appendChild(l))}},
computeMetadataSkinnyMode:function(l,e,O){return this.is!=="ytd-watch-grid"?!1:l?O:e},
computeWatchWhilePanelsActive:function(l,e){return l||e},
computeNoBorderOnChat:function(l){return _.a("web_watch_theater_chat_no_border")&&l},
computeLiveChatPresentAndExpanded:function(l,e){return l&&!e},
computePanelExpanded:function(l,e,O){return l||e||O},
computeSqueezeback:function(l,e,O,E){if(_.a("web_watch_enable_fs_squeezeback_panels")){var J=this.iMaxTheaterMode&&this.theater;return(l||e||O)&&(E||J)}},
computeSwatcherooSqueezeback:function(l,e,O){return this.is!=="ytd-watch-grid"||_.a("ww_squeezeback_killswitch")?!1:l&&e&&O},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(l){_.zn(this).getPlayerPromise().then(function(e){var O;(O=e.changeMarkerVisibility)==null||O.call(e,_.I(l,_.LD).isVisible||!1,_.I(l,_.LD).entityKeys||[],_.I(l,_.LD).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(l){this.liveChatCollapsed=l.detail;_.Om().dispatch(_.J8C(l.detail));if(!this.liveChatCollapsed&&this.squeezeback){var e=_.V2().resolve(_.ye);this.visiblePanelIdentifiers_.forEach(function(O){e.hidePanel(O)})}},
onSetPlaylistCollapsed:function(l){_.a("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!l)},
provideRenderingData:function(l,e){switch(l){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.a("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.a("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=e);this.videoSecondaryInfoRendererValue=e==null?void 0:e.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
e;break;case "CLARIFICATION":this.clarifyBoxValue=e;break;case "LIVE_CHAT":this.conversationBar=e;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=e;break;case "PLAYLIST":this.externalPlaylistData_=e!=null?e:{};break;case "MERCH_SHELF":this.merchShelfValue=e==null?void 0:e.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=e;break;case "TICKET_SHELF":this.ticket=e;break;case "OFFER_MODULE":this.offerModule=e;break;case "LIMITED_STATE":this.limitedStateValue=
e;break;case "DONATION_SHELF":this.donation=e;break;case "ALERTS":this.alertsValue=e;break;case "COMMENTS":this.comments=e;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=e;break;case "ENGAGEMENT_PANELS":this.engagementPanels=e;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=e;break;case "RICH_GRID_RENDERER":this.richGridRendererData=e;break;case "EXPANDABLE_METADATA":this.expandableMetadata=e;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
e}},
toggleCinematicsActive:function(l){this.cinematicsActive=l},
isMiniplayerActive:function(){return _.V2().resolve(_.NJ).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var xzf;_.SC3=function(l){return l.shorts.isShortsActive};
_.QUh=function(l){if(!(0,_.lRd)(l))throw Error("H``"+String(l));};
_.lhf=function(l){return l.findIndex(function(e){return xzf.indexOf(e.tagName)>-1})>-1};
_.edH=function(l){return _.oM({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:l}})};
_.OvC=function(){var l=_.V2().resolve(_.I3);_.Rb2(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(l.isFullscreenEnabled()?_.ui(document.documentElement):_.MVu(document.documentElement))};
xzf=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.x9=new Map;_.x9.set(32,59972);_.x9.set(27,50765);_.x9.set(70,60102);_.x9.set(76,60221);_.x9.set(77,60222);_.x9.set(74,60223);_.x9.set(84,60224);_.x9.set(38,61941);_.x9.set(40,61942);_.x9.set(73,62521);_.x9.set(67,62522);_.x9.set(80,63390);_.x9.set(78,63397);_.x9.set(75,59972);_.x9.set(188,63385);_.x9.set(190,63384);_.x9.set(36,63387);
_.x9.set(35,63386);_.x9.set(37,63388);_.x9.set(39,63389);_.x9.set(79,63423);_.x9.set(87,63424);_.x9.set(107,63426);_.x9.set(109,63425);_.x9.set(65,63428);_.x9.set(83,63430);_.x9.set(68,63429);_.x9.set(221,63431);_.x9.set(219,63432);_.x9.set(97,63439);_.x9.set(98,63440);_.x9.set(99,63441);_.x9.set(100,63442);_.x9.set(101,63443);_.x9.set(102,63444);_.x9.set(103,63445);_.x9.set(104,63446);_.x9.set(105,63447);_.l7=new Map;_.l7.set(80,63390);_.l7.set(78,63397);_.l7.set(188,63400);_.l7.set(190,63401);
_.l7.set(191,60765);_.l7.set(13,247917);_.eI=new Map;_.O4=new Map;
}catch(e){_._DumpException(e)}
try{
var xm4,Ol4,EAi,JD3;_.rzu=function(l){return l.ui.guideIsVisibleButNotPersistent};
_.Dmi=function(l){return l.ui.tabGesturesIsActive};
_.SNz=function(){var l=_.oy("service_worker_scope");try{return navigator.serviceWorker.getRegistration(l)}catch(e){return Promise.reject(e)}};
_.QHF=function(l){return!(!l||!l.pushManager)};
xm4=function(){return _.SNz().then(_.QHF).catch(function(){return!1})};
_.lUf=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?xm4():Promise.resolve(!1)};
_.eu4=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Ol4=function(){var l,e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.C(E,_.HJ.getInstance(),2);case 2:l=E.yieldResult;if(!l){e=void 0;E.jumpTo(3);break}return _.C(E,l.get("lmqf"),4);case 4:e=E.yieldResult;case 3:switch((O=e)||(O="SD"),O){case "HD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return E.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
EAi=function(l){var e,O,E;return _.V(function(J){if(J.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.a("disable_av1_setting")){var z=window.localStorage["yt-player-av1-pref"];z=z==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":z==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else z="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(e=l===z)return J.jumpTo(2);E=O=l;return _.C(J,Ol4(),3)}J.nextAddress!=2&&(e=E===J.yieldResult);return J.return(e)})};var XIh;var zuz=_.Hy.IronButtonState,blh=(0,_.yX)(HTMLElement);
_.RB({_template:function(){if(XIh!==void 0)return XIh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;JD3===void 0&&(JD3=document.createElement("template"));var E=JD3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return XIh=l},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[zuz,_.Ko,_.cy,_.RT],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(l){var e=(0,_.mP)(this);e.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:l});e.shadowRoot.appendChild(l);return blh.prototype._attachDom.call(this,l)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var l=this.contentElement;l&&l.selectedItem&&this._setSelectedItem(l.selectedItem)},
get contentElement(){for(var l=_.c9(this.$.content).getDistributedNodes(),e=0,O=l.length;e<O;e++)if(l[e].nodeType===Node.ELEMENT_NODE)return l[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(l){this._setSelectedItem(l.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(l){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l)===this&&this.open()},
_selectedItemChanged:function(l){var e="";l?e=l.label||l.getAttribute("label")||l.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(l,e){return e?e:l?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var l=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",l)}});_.tE=new _.v("navigateAction");var MS4=new _.v("formRenderer");var qQ=function(){var l=_.IB.apply(this,arguments)||this;l.showInput=!1;return l};
_.m(qQ,_.IB);_.X=qQ.prototype;_.X.detached=function(){this.showInput&&window.removeEventListener("click",_.id(this,this.closeOnOutsideClick_))};
_.X.stopPropagation_=function(l){this.showInput&&l.stopPropagation()};
_.X.closeOnOutsideClick_=function(l){this.closeOnOutsideClickCondition(l)&&(this.showInput=!1,window.removeEventListener("click",_.id(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.X.closeOnOutsideClickCondition=function(){return!0};
_.X.closeOnOutsideClickHandler=function(){};
_.X.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.id(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.X.openOnClickHandler=function(){};
_.X.showInputChanged=function(){};
_.X.setShowInput=function(l){this.showInput=l};
qQ.prototype.setShowInput=qQ.prototype.setShowInput;qQ.prototype.showInputChanged=qQ.prototype.showInputChanged;qQ.prototype.openOnClickHandler=qQ.prototype.openOnClickHandler;qQ.prototype.openOnClick_=qQ.prototype.openOnClick_;qQ.prototype.closeOnOutsideClickHandler=qQ.prototype.closeOnOutsideClickHandler;qQ.prototype.closeOnOutsideClickCondition=qQ.prototype.closeOnOutsideClickCondition;qQ.prototype.closeOnOutsideClick_=qQ.prototype.closeOnOutsideClick_;qQ.prototype.stopPropagation_=qQ.prototype.stopPropagation_;
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],qQ.prototype,"showInput",void 0);_.L([_.wP("click"),_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],qQ.prototype,"stopPropagation_",null);_.L([_.AA("showInput"),_.q("design:type",Function),_.q("design:paramtypes",[Boolean]),_.q("design:returntype")],qQ.prototype,"showInputChanged",null);_.L([_.m0()],qQ);_.VSF=[qQ.prototype];var Zlu;var uQF;var vr=function(){return _.B.apply(this,arguments)||this};
_.m(vr,_.B);_.X=vr.prototype;_.X.computePreselectedOption=function(l,e){return e===this.itemSelected_?l:void 0};
_.X.dataChanged_=function(){var l=this;this.preselectedSubreason=this.itemSelected_=-1;var e;(e=this.data)!=null&&e.key&&_.OK(this,function(){var O,E=Number((O=l.data)==null?void 0:O.key);!Number.isNaN(E)&&(l.itemSelected_=E,O=(O=(l.data.items||[])[E])&&O.optionSelectableItemRenderer&&O.optionSelectableItemRenderer.preselectedIndex)&&(l.preselectedSubreason=O)})};
_.X.isSubReasonHidden_=function(l,e){return l!=e};
_.X.onTopItemSelected_=function(l,e){for(var O=_.ud(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),E=0,J=O.length;E<J;E++)O[E].select(0);_.Wb(this.hostElement,"yt-report-form-update",[e.item.value]);l.stopPropagation()};
_.X.onItemSelected_=function(l,e){_.Wb(this.hostElement,"yt-report-form-update",[e.item.value]);l.stopPropagation()};
_.X.getItem_=function(l){return l.serviceItem?l.serviceItem:l.navigationItem?l.navigationItem:l.optionSelectableItemRenderer?l.optionSelectableItemRenderer:null};
_.X.computeText_=function(l){return(l=this.getItem_(l))?this.ytRendererBehavior.getSimpleString(l.text):null};
_.X.validate=function(){return this.itemSelected_!==-1};
_.X.computeAriaLabel_=function(l){var e=_.lG(l.text);(l=l.accessibility&&l.accessibility.accessibilityData&&l.accessibility.accessibilityData.label)&&(e+=". "+l);return e};
_.X.computeItemSelected_=function(l){return l};
_.X.preventSelection_=function(l){l.stopPropagation();this.tooltipTapped=!0};
_.X.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.X.updateItemSelectedFromBinding=function(l){this.itemSelected_=l.detail.value};
_.X.save=function(){var l;this.validate()&&(l=this.data)!=null&&l.items&&(l=this.data.items[this.itemSelected_],l!=null&&l.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(l.optionSelectableItemRenderer.submitEndpoint)||_.ii(this.hostElement,[l.optionSelectableItemRenderer.submitEndpoint])))};
vr.prototype.onPaperRippleTransitionEnd_=vr.prototype.onPaperRippleTransitionEnd_;vr.prototype.dataChanged_=vr.prototype.dataChanged_;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vr.prototype,"data",void 0);_.L([_.T({value:-1}),_.q("design:type",Number)],vr.prototype,"itemSelected_",void 0);
_.L([_.T({computed:"computeItemSelected_(itemSelected_)"}),_.q("design:type",Number)],vr.prototype,"value",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],vr.prototype,"restoreFocusOnClose",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],vr.prototype,"tooltipTapped",void 0);_.L([_.T({value:-1}),_.q("design:type",Number)],vr.prototype,"preselectedSubreason",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vr.prototype,"dataChanged_",null);_.L([_.wP("transitionend"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vr.prototype,"onPaperRippleTransitionEnd_",null);_.L([_.Ps({is:"yt-options-renderer",disableElementRegistration:!0})],vr);
_.Y(vr,"yt-options-renderer",function(){if(uQF===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Zlu===void 0&&(Zlu=document.createElement("template"));var E=Zlu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);uQF=l}l=uQF;return l},{mode:2});var C1h;var oAP;var $Ru;var WA0;var dRC;var gAo;var NQ=function(){return _.B.apply(this,arguments)||this};
_.m(NQ,_.B);NQ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
NQ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
NQ.prototype.onTap=function(l){if(this.hostElement.classList.contains("selected")||_.gQ(this.hostElement,"yt-share-panel-can-select-contact-action"))l&&l.detail&&(l.detail.x||l.detail.y)&&_.ud(this.hostElement).querySelector("#target").blur(),(l=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),l={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:l?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Wb(this.hostElement,"yt-share-panel-select-contact-action",[l])};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.L([_.T({observer:"onDataChanged"}),_.q("design:type",Object)],NQ.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.q("design:type",String)],NQ.prototype,"componentTitle",void 0);_.L([_.aB("#thumbnail"),_.q("design:type",Object)],NQ.prototype,"thumbnail",void 0);_.L([_.Ps({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],NQ);
_.Y(NQ,"yt-enrolled-contact-renderer",function(){if(gAo===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;dRC===void 0&&(dRC=document.createElement("template"));var E=dRC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);gAo=l}l=gAo;return l},{mode:2});var ilu;var wIO;var rw=function(){return _.B.apply(this,arguments)||this};
_.m(rw,_.B);rw.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
rw.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
rw.prototype.onTap=function(l){if(this.hostElement.classList.contains("selected")||_.gQ(this.hostElement,"yt-share-panel-can-select-contact-action"))l&&l.detail&&(l.detail.x||l.detail.y)&&_.ud(this.hostElement).querySelector("#target").blur(),(l=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),l={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:l?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Wb(this.hostElement,"yt-share-panel-select-contact-action",[l])};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.L([_.T({observer:"onDataChanged"}),_.q("design:type",Object)],rw.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.q("design:type",String)],rw.prototype,"componentTitle",void 0);_.L([_.aB("#thumbnail"),_.q("design:type",Object)],rw.prototype,"thumbnail",void 0);_.L([_.Ps({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],rw);
_.Y(rw,"yt-suggested-contact-renderer",function(){if(wIO===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;ilu===void 0&&(ilu=document.createElement("template"));var E=ilu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);wIO=l}l=wIO;return l},{mode:2});var Dx=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-share-panel-reset-action":"onReset"};return l};
_.m(Dx,_.B);Dx.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"}}}}}};
Dx.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Wb(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Dx.prototype.onReset=function(){for(var l=_.ud(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),e=l.length-1;e>=0;e--)l[e].classList.toggle("selected")};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({observer:"onDataChanged"}),_.q("design:type",Object)],Dx.prototype,"data",void 0);
_.L([_.Ps({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Dx);
_.Y(Dx,"yt-contact-section-renderer",function(){if(WA0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;$Ru===void 0&&($Ru=document.createElement("template"));var E=$Ru;O.call(e,E.content.cloneNode(!0),l.content.firstChild);WA0=l}l=WA0;return l},{mode:2});var Sw=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return l};
_.m(Sw,_.B);_.X=Sw.prototype;_.X.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"}}}};
_.X.onYtRefreshFormCommand=function(l){var e;(l=_.I((e=_.I(l,_.k8i))==null?void 0:e.formRenderer,MS4))&&this.set("data",l)};
_.X.reset=function(){var l=_.ud(this.hostElement).querySelector("#fields").children;l=_.b(l);for(var e=l.next();!e.done;e=l.next())e=e.value,e.reset&&e.reset()};
_.X.getForm=function(){var l={},e=_.ud(this.hostElement).querySelector("#fields").children;e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;if(!O.validate())return null;l[O.data.key]=O.value}return l};
_.X.submitFormFields=function(){if(this.fields)for(var l=_.b(this.fields),e=l.next();!e.done;e=l.next())e=e.value,e.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?e.save():e.nodeName==="YT-OPTIONS-RENDERER"&&e.save()};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Sw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sw.prototype,"data",void 0);_.L([_.kT("#fields > *"),_.q("design:type",Array)],Sw.prototype,"fields",void 0);
_.L([_.Ps({is:"yt-form-renderer",disableElementRegistration:!0})],Sw);
_.Y(Sw,"yt-form-renderer",function(){if(oAP===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;C1h===void 0&&(C1h=document.createElement("template"));var E=C1h;O.call(e,E.content.cloneNode(!0),l.content.firstChild);oAP=l}l=oAP;return l},{mode:2});var ADi;var QY=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return l};
_.m(QY,_.B);QY.prototype.onCheckboxChange=function(l){this.data&&(l=(this.checked=_.OV(l).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})};
QY.prototype.handleUpdateCheckboxCommand=function(l){(l=_.I(l,_.PvF))&&this.data&&this.data.id===l.id&&(this.set("data.disabled",l.disabled),this.set("data.title",l.title))};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],QY.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],QY.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],QY.prototype,"checked",void 0);_.L([_.U({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],QY);
_.Y(QY,"ytd-settings-checkbox-renderer",function(){if(ADi!==void 0)return ADi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ADi=l},{mode:1});var nAz;var xY=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return l};
_.m(xY,_.B);xY.prototype.dataChanged=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return l.radio.removeAttribute("checked"),!l.data||!l.data.id||l.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.eu4()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(e=l.data&&l.data.id)?_.C(O,EAi(l.data.id),4):O.jumpTo(3):(l.set("data.hidden",!0),O.jumpTo(0));O.nextAddress!=3&&(e=O.yieldResult);e&&_.Wb(l.hostElement,"yt-select-settings-radio-option",[l.data.id]);_.Cl(O)})};
xY.prototype.onButtonChanged=function(l){_.OV(l).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Wb(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
xY.prototype.onSelectOption=function(l){this.data&&this.data.id&&(this.data.id===l?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
xY.prototype.dataChanged=xY.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],xY.prototype,"ytActionHandlerBehavior",void 0);_.L([_.aB("#radio"),_.q("design:type",Object)],xY.prototype,"radio",void 0);_.L([_.T(),_.q("design:type",Object)],xY.prototype,"data",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],xY.prototype,"dataChanged",null);_.L([_.U({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],xY);
_.Y(xY,"ytd-settings-radio-option-renderer",function(){if(nAz!==void 0)return nAz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return nAz=l},{mode:1});var aU4;var lU=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return l};
_.m(lU,_.B);
lU.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"}}}};
lU.prototype.handleUpdateTextCommand=function(l){(l=_.I(l,_.U3R))&&this.data&&this.data.id===l.id&&this.set("data",l)};
lU.prototype.handleUpdateConnectedAppRendererCommand=function(l){if(_.I(l,_.LyC)&&this.data){var e,O;if(l=(e=_.I(l,_.LyC))==null?void 0:(O=e.newConnectedAppRenderer)==null?void 0:O.connectedAppRenderer)this.data=l}};
lU.prototype.computeConnectedAppStyle=function(l){return l.style?l.style.toLowerCase().replace(/_/g,"-"):""};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],lU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lU.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.q("design:type",String)],lU.prototype,"connectedAppStyle",void 0);_.L([_.U({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],lU);
_.Y(lU,"ytd-connected-app-renderer",function(){if(aU4!==void 0)return aU4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return aU4=l},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.RQ("iuT5Oc");

_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("L3n37");
var j84=function(l){return l.watch.isLearningJourneyActive},HX4=_.sL(115994),c8H=_.sL(115993),Fzf=function(l,e,O){var E=this;
var J=O.dragDownAction;this.layer=0;this.JSC$20533_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.JSC$20533_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return E.dragDownAction()}}}};
this.fullscreen=!1;var z=_.yN();_.WJ(z,HX4,this.layer);_.WJ(z,c8H,this.layer);this.dragDownAction=function(){J();_.rg(z,{visualElement:E.fullscreen?HX4:c8H})};
this.gesture=new _.uW(l,e,this.JSC$20533_watchConfig,"pandown");this.attach()};
Fzf.prototype.attach=function(){this.gesture.attach()};
Fzf.prototype.detach=function(){this.gesture.detach()};
Fzf.prototype.update=function(l){this.fullscreen=l;this.gesture.config=l?this.JSC$20533_watchFullScreenConfig:this.JSC$20533_watchConfig};var fR4=function(l){_.QL.call(this);var e=this;this.rootElement=l;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(O){e.initOrDisposeActiveModules(O)}));
this.onAttached()};
_.m(fR4,_.QL);_.X=fR4.prototype;_.X.getRoot=function(){return this.rootElement};
_.X.getElement=function(l){return this.rootElement.getElement(l)};
_.X.setPlayerResponse=function(l){this.playerResponse=l;this.publish("PLAYER_RESPONSE_UPDATED",l)};
_.X.getPlayerResponse=function(){return this.playerResponse};
_.X.setWatchNextResponse=function(l){this.watchNextResponse===l?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=l,this.publish("WATCH_NEXT_RESPONSE_UPDATED",l))};
_.X.getWatchNextResponse=function(){return this.watchNextResponse};
_.X.registerActionHandler=function(l,e){var O=this;if(_.a("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.QW(_.SU.getInstance(),(E[l]=e,E),this.getRoot())}else this.actionHandlers.has(l)||(this.actionHandlers.set(l,[]),E={},_.QW(_.SU.getInstance(),(E[l]=function(){var J=_.ke.apply(0,arguments);return(O.actionHandlers.get(l)||[]).map(function(z){return z.apply(null,_.kA(J))})},E),this.getRoot())),this.actionHandlers.get(l).push(e)};
_.X.unregisterActionHandler=function(l){if(_.a("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.xE(_.SU.getInstance(),(e[l]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(l))?(e.pop(),e.length===0&&(e={},_.xE(_.SU.getInstance(),(e[l]=!0,e),this.getRoot()),this.actionHandlers.delete(l))):_.hG(new _.Hk("Attempted to unregister an action handler which is not registered.",l))};
_.X.addPageDisposeJob=function(l){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.qA(this.rootElement.pageDisposeJobs,l)};
_.X.removePageDisposeJob=function(l){this.rootElement.pageDisposeJobs&&_.NA(this.rootElement.pageDisposeJobs,l)};
_.X.dispatchEvent=function(l,e){_.$u(this.rootElement,l,e)};
_.X.provideRenderingData=function(l,e){this.rootElement.provideRenderingData(l,e)};
_.X.scrollWatchTo=function(l,e){var O;(O=this.watchScrollManager)==null||O.scrollWatchTo(l,e)};
_.X.focusOnPlayer=function(){var l=this.getElement("PLAYER");_.OK(l,function(){if(l&&l.firstElementChild){var e=l.querySelector(".html5-video-player");e&&(_.ef(_.V2().resolve(_.BF)),e.focus())}else _.hG(Error("lm"))})};
_.X.updateCinematicFullscreenConfig=function(){var l=!!this.rootElement.theater,e=!!this.rootElement.fullscreen,O;(O=this.watchCinematicManager)==null||_.j0z(O,e,l)};
_.X.subscribeToActiveChanged=function(l,e){e=e===void 0?!0:e;var O=_.kw(_.Om(),j84,function(E){l(E)});
e&&l(j84(_.Om().getState()));return O};
_.X.isActive=function(){return j84(_.Om().getState())};
_.X.onAttached=function(){var l=_.a("external_fullscreen");_.a("use_unified_flag_accessor")&&(l=_.V2().resolve(_.OR3).retriever.getFlag(_.vAH));(l||_.LH("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.X.initPersistentModules=function(){if(_.a("kevlar_watch_flexy_theater_manager")){var l=new _.Jyo(this);_.oQ(this,l)}l=new _.hif(this);_.oQ(this,l);l=new _.KD(this);_.oQ(this,l);l=new _.Tp(this);_.oQ(this,l);l=new _.gFO(this);_.oQ(this,l);l=new _.H7(this);_.oQ(this,l);_.a("kevlar_watch_flexy_playlist_manager")&&(l=new _.ANi(this),_.oQ(this,l))};
_.X.initOrDisposeActiveModules=function(l){l?(this.watchScrollManager=new _.Gp(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.EF0(this)),this.activeModules.push(new _.Mzu(this)),this.activeModules.push(new _.yN3(this)),this.activeModules.push(new _.sI(this)),_.a("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Cmo(this)),this.activeModules.push(new _.V8H(this)),_.a("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.K53(this)),
_.a("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Ayh(this)),_.a("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.mFf(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.a("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.oFh(this)),_.a("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.UFF(this)),l=_.a("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.a("kevlar_watch_flexy_comments_manager")&&!l&&this.activeModules.push(new _.Tyu(this)),_.a("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.jl(this)),this.activeModules.push(new _.CWu(this)),this.activeModules.push(new _.XBu(this)),_.a("web_enable_timely_actions")&&this.activeModules.push(new _.dFC(this)),_.a("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.BN0(this)),_.a("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.jVO(this)),
_.a("web_fullscreen_components")&&this.activeModules.push(new _.d6f(this)),_.a("web_player_rtr_ctrls")&&this.activeModules.push(new _.U6i(this))):(_.xS(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.X.disposeInternal=function(){_.QL.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Ji.Object.defineProperties(fR4.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var RDC={},T70=["learning-journey-engagement-panel","PAlearning_chat"];
RDC.YtdLearningJourneyWatchBehavior=[_.x.YtRendererBehavior,_.NO.YtPlayerListenerBehavior,_.VG.YtRendererstamperBehavior,_.ZH.YtActionHandlerBehavior,_.ym.YtPageBehavior,_.af.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 _.LH("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.a("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 _.LH("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 _.a("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.a("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 _.Cv("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Cv("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.a("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.a("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("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 _.a("web_watch_rounded_player_large")||_.a("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 _.a("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.a("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("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 _.a("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.a("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:_.Rb(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Rb(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var l=this;this.watchController=void 0;this.pageDisposeJobs=[function(){l.showMetadataPlaceholder_()},
function(){_.a("web_watch_dont_clear_comments")||l.clearComments_()},
function(){l.clearPlayerAds_()},
function(){l.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.a("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.a("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.M2H(function(){return _.zn(l)},this.hostElement);
this.pageDisposeJobs.push(function(){l.youThereManager_.reset()});
_.a("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){l.resetFullerscreenEduButtonForNewPlayback_()}));
_.a("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.$k;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;_.a("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.a("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));_.a("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.id(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(l){l&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:l}),l.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(l){_.a("kevlar_watch_flexy_theater_manager")&&(this.theater=l,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.a("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(l){!_.a("kevlar_watch_while_v2")&&!_.a("web_watch_pip")||l||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(l){this.active!==void 0&&(this.fullscreen=l,_.a("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(l){this.active!==void 0&&(_.$u(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.a("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(l>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(l){this.initCsi_();this.updatePageData_(l)},
updatePageData_:function(l){var e=this;if(l)if(this.data===l){this.onPageLoadWithSameData_();var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)}else this.data=l;this.playlist&&_.Pb({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Yu("nw");this.loading=!1;_.fZ(_.UD,function(){e.initDclkstatus_();var E,J=((E=e.player)==null?void 0:E.getVideoData().cpn)||"";_.NM3(function(z,M){_.N5i(z,M,J)})})},
onPageLoadWithSameData_:function(){_.a("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 l=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!l);this.set("loadingData.playlistLoading",l&&l!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),l=this.watchNextSkeletonEl_.firstElementChild;l;)l.classList.remove("hidden"),l=l.nextElementSibling;var e,O,E;l=(e=this.loadingData)==null?void 0:(O=e.endpoint)==null?void 0:(E=O.watchEndpoint)==null?void 0:E.videoId;var J;l&&(J="https://i.ytimg.com/vi/"+l+"/frame0.jpg");_.ud(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var l=_.ud(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&l&&(l.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,O;(O=(e=this.watchMetadata).updateSentimentBarWidth)==
null||O.call(e);var E,J;(J=(E=this.watchMetadata).resize)==null||J.call(E)}_.ud(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(l){var e=_.ud(this.hostElement).querySelector(l);e?_.Cz(e,!1):_.hG(new _.Hk("Overscroll monitor not found for component: ",l))},
removeSplitScrollMouseTrap:function(l){var e=_.ud(this.hostElement).querySelector(l);e?_.op(e):_.hG(new _.Hk("Disposal component for  overscroll monitoring not found: ",l))},
onLoadingChanged_:function(l){l?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(l){var e=this;l?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.UD.addLowPriorityJob(function(){e.onWindowResized_(_.K0(!0))})},
updateTheaterModeState_:function(l){if(!_.a("kevlar_watch_flexy_theater_manager")){l=l||this.fullWindowMode_;if(this.theater!==void 0||l)this.theater=l;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();l&&_.XVO()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var l=this.theater;_.a("external_fullscreen")&&this.fullscreen&&(l=!0);l=l?_.ud(this.hostElement).querySelector("#player-full-bleed-container"):_.ud(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),O=_.a("kevlar_watch_while_v2")||_.a("web_watch_pip");e.parentElement!==l&&(O&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.zn(this).appendTo(l,e),l.appendChild(_.ud(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var l=this;return _.V(function(e){if(e.nextAddress==1)return _.C(e,_.V2().resolve(_.NJ).deactivate(),2);l.updatePlayerLocation();_.Cl(e)})},
updateCinematicsLocation:function(){var l=this.getElement("CINEMATICS");if(l){var e=this.getCinematicsLocationContainer();l.parentElement!==e&&e.appendChild(l);var O;(O=this.watchController)==null||O.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ud(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ud(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(l,e){var O=document.documentElement.hasAttribute("dark"),E=O&&_.a("web_cinematic_theater_mode"),J=O&&_.a("web_cinematic_fullscreen");O=!O&&this.cinematicLightTheme;return l&&E||e&&J||(e||l)&&O},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data);_.a("kevlar_watch_flexy_comments_manager")||this.initComments_();_.a("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.V2().resolve(_.U5).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.a("web_watch_start_chat_in_theater_mode")){var e,
O,E;if((e=this.data)==null?0:(O=e.contents)==null?0:(E=O.twoColumnWatchNextResults)==null?0:E.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,z;((J=this.data)==null?0:(z=J.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(l){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);l&&l.playabilityStatus&&(e=this.isVideoPlayable_(l.playabilityStatus,this.getPlayerOverlays_(this.data)),l=this.isLiveStreamOffline_(l.playabilityStatus),e&&!l||_.OK(this,function(){_.Yu("pbu")}));
this.setPlayerAds_();_.dQ(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(l){_.Om().dispatch(_.oM({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));l?this.activate_():this.deactivate_()},
attached:function(){var l=this;this.watchController=new fR4(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.a("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.zn(this);_.a("kevlar_disable_prepare_player")||e.preparePlayer();_.a("kevlar_watch_flexy_playlist_manager")||_.V2().resolve(_.U5).setPlayer(e);this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.cr()+
"px"};!_.Cv("kv_pl_mx_sz_ks")&&_.Cv("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.th4+"px");_.Cv("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.qQC+"px");this.safeUpdateStyles(e);_.a("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Fzf(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return l.onPlayerTouchPanDown_()}}));
_.a("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ud(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var l=_.cr(),e=_.Tw+l,O=e;this.fixedPanels&&(e+=_.LNi);var E=657+l;l=1327+l;_.ud(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.ud(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(E+"px), (min-height: 630px) and (min-width: ")+(e+"px) and (max-width: ")+(l+"px)");_.ud(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(l+"px)");
_.ud(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+O+"px)"},
calculateCurrentPlayerSize_:function(){var l=_.ud(this.hostElement).querySelector("#miniplayer-bar").firstChild;return l&&l.active||this.theater||_.a("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.uX(NaN,NaN):_.hO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.hO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Q9(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var l=this;this.onWindowResized_(_.K0());_.a("browse_skeleton_removal_on_watch_killswitch")||_.LH("IS_SHELL_LOAD")&&_.rEH();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.zn(this);e.addEventListener("yt-player-updated",_.id(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(O){l.playerApiReady_(O)});
_.a("kevlar_watch_flexy_playlist_manager")||(e=_.V2().resolve(_.U5),_.a("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.id(this,this.onYtNavigate_)),e.setPlaylistComponent(_.ud(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.id(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.UD.addLowPriorityJob(function(){_.$u(l.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.zn(this).removeEventListener("yt-player-updated",_.id(this,this.onPlayerUpdated_));if(!_.a("kevlar_watch_flexy_playlist_manager")){var l=_.V2().resolve(_.U5);_.a("kevlar_watch_observe_playlist_navigations_killswitch")&&l.removeEventListener("yt-navigate",_.id(this,this.onYtNavigate_));l.cancelVideoSkip();l.removeEventListener("yt-playlist-data-updated",_.id(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.a("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.$u(this.hostElement,"yt-autonav-pause-player",!1);l=_.ZG();_.a("kevlar_exit_fullscreen_leaving_watch")&&l&&_.ui(l)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(l){this.player&&this.player.updateVideoData({rvs:l.rvs})},
getPageContents:function(l){return l&&l.contents&&l.contents.twoColumnWatchNextResults&&l.contents.twoColumnWatchNextResults.results&&l.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(l){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l)},
onRetrieveLocation_:function(l,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);l.stopPropagation()},
onSubscriptionChanged_:function(l,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.mv("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ud(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ud(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(l){this.player=l;this.setPlayerState(l.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.a("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.a("kevlar_unified_player")||_.a("kevlar_player_new_bootstrap_adoption"))&&_.EU()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(l,e){e=e===void 0?!0:e;_.ZG()&&_.a("external_fullscreen")&&_.ui(document.documentElement);this.theaterRequested_=l;e&&_.y2("wide",l?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.a("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Wb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.$u(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(l){_.LZ(l,typeof this.player),this.player&&_.LZ(l,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var l;((l=this.player)==null?0:l.isFullscreen())?this.player.toggleFullscreen():_.Wb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(l,e){return this.loading?e:!!Object.keys(l).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(l){if(l){l=_.b(l);for(var e=l.next();!e.done;e=l.next())e=e.value,e.youThereRenderer&&_.up4(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(l){return l||{}},
userEngagementConfigDataChanged_:function(l){if(l)if(l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.uN()<l.lowEngagementThresholdMs||_.Wz0(e,!0)}else l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Wb(this.hostElement,"yt-autonav-pause-user-engagement",[l])},
isPlayerUnavailable_:function(l,e,O){return!!l&&!this.isVideoPlayable_(l,O)&&!e},
getPlayerOverlays_:function(l){return(l==null?void 0:l.playerOverlays)||null},
isVideoPlayable_:function(l,e){if(!l)return!1;var O=l.status==="OK"||l.status==="LIVE_STREAM_OFFLINE",E=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",l)||this.get("errorScreen.ypcTrailerRenderer",l);l=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",l);var J;e=e==null?void 0:(J=e.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!O||!!E||!!l||!!e},
hasWatchNextResponseErrorRenderer:function(l){var e=this.getPageContents(l),O,E,J,z,M;return!(l==null?0:(O=l.contents)==null?0:(E=O.twoColumnWatchNextResults)==null?0:E.secondaryResults)&&!!((J=e[0])==null?0:(z=J.itemSectionRenderer)==null?0:(M=z.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(l){return l?l.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(l,e,O){var E=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.a("web_no_skip_video_on_verification_checks")?(l==null?void 0:l.status)&&J.includes(l.status):l&&l.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",l);z==void 0&&(z=!0);!O||this.isVideoPlayable_(l,this.getPlayerOverlays_(e))||
E||J||!z||_.V2().resolve(_.U5).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.lRi()},
onPlayerFeedbackStartRequest_:function(l){_.Wb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:l}])},
onPlayerFeedbackArticleRequest_:function(l){_.Wb(this.hostElement,"yt-help-dialog-requested",[l])},
onPlayerYpcContentRequest_:function(){var l,e,O,E,J,z,M,Z,u=((l=this.data)==null?NaN:(e=l.contents)==null?NaN:(O=e.twoColumnWatchNextResults)==null?NaN:(E=O.secondaryResults)==null?NaN:(J=E.secondaryResults)==null?NaN:(z=J.offerModule)==null?NaN:(M=z.tvfilmOfferModuleRenderer)==null?NaN:(Z=M.actionButtons)==null?NaN:Z.length)-1;l=[".offerButton.buttonRenderer.",".actionButtons."+(u>=0?u:0)+".buttonRenderer."];e=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(O=e.next();!O.done;O=e.next())for(O=O.value,E=_.b(l),J=E.next();!J.done;J=E.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+O+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.aX(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(l){_.$u(this.hostElement,"yt-autonav-pause-player",l)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(l){l()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.$u(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(l)},
setPlayerState:function(l){_.Om().dispatch(_.P8x(l))},
onPlayerSubscribe_:function(l){_.Wb(this.hostElement,"yt-player-subscribe",[l])},
onPlayerUnsubscribe_:function(l){_.Wb(this.hostElement,"yt-player-unsubscribe",[l])},
onPlayerAdYtShowToast_:function(l){_.Wb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:l.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(l){if(l)return l},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(l){return!_.a("web_watch_move_summary_to_sd")&&!!l},
computeWatchMetadataRefresh:function(){return _.a("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var l,e,O,E;this.watchNextSecondaryResults=(l=this.data)==null?void 0:(e=l.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(E=O.secondaryResults)==null?void 0:E.secondaryResults}},
setRichGridRendererData:function(l){this.richGridRendererData=l},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var l,e=(l=this.data)==null?void 0:l.engagementPanels;if(e==null?0:e.length){l=null;e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;if(((E=O.engagementPanelSectionListRenderer)==null?void 0:E.targetId)==="engagement-panel-structured-description"){l=O;break}}var J,z,M;l=(J=l)==null?void 0:(z=J.engagementPanelSectionListRenderer)==null?void 0:(M=z.content)==null?void 0:M.structuredDescriptionContentRenderer;if(l==null?0:l.items){J=
[];z=_.b(l.items);for(M=z.next();!M.done;M=z.next()){M=M.value;if(!_.a("sd_horizontal_list_show_nav_killswitch")){var Z=E=O=e=l=void 0,u=void 0,d=(l=M.horizontalCardListRenderer)==null?void 0:(e=l.header)==null?void 0:(O=e.richListHeaderRenderer)==null?void 0:(E=O.navigationButton)==null?void 0:(Z=E.buttonRenderer)==null?void 0:(u=Z.command)==null?void 0:u.commandExecutorCommand;d&&d.commands&&(d.commands=d.commands.filter(function(g){return!_.I(g,_.zZC)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||J.push(M)}return{items:J}}}},
constructWarning_:function(l){return{text:_.xp(l),type:"WARNING"}},
isPlaShelfEnabled_:function(l){if((this.get("adPlacements",l)||[]).length)return!0;l=this.get("playerAds",l)||[];return!(!l.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",l[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var l=this;_.$u(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.a("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.zn(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonVisibility(l.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.$u(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var l=this;this.commentsReady=!1;_.UD.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.fZ(_.UD,function(){l.setComments_()},1E3)},
setComments_:function(){if(!_.a("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Yu("cmi");_.UD.cancelJob(this.setCommentsJobId_);var l=this.getPageContents(this.data);if(l&&l.length){l=_.b(l);for(var e=l.next();!e.done;e=l.next())if(e=e.value,this.get("itemSectionRenderer.sectionIdentifier",e)==="comment-item-section"){this.comments=e.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.$u(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.a("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.a("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Yu("cmc")},
doRemoveComments_:function(){this.comments={};_.a("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.UD.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.UD.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(l,e){var O=_.I(e.endpoint,_.ej);O&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||O.videoId!==e.videoId||O.playlistId&&O.playlistId!==e.playlistId||O.index!==void 0&&O.index!==e.index||typeof O.startTimeSeconds!=="number"||(l.stopPropagation(),this.setScrollTop(0),_.zn(this).getPlayerPromise().then(function(E){var J=O.startTimeSeconds;E.seekTo(J);E.wakeUpControls();J<E.getDuration()&&E.playVideo()})))},
updatePlayerStartTime_:function(){var l=_.BMh();"t"in l&&(l=_.xVu(l.t),this.player.seekTo(l,!0))},
updateTitleFromWatchNext:function(l){l=this.getPageContents(l);var e,O;(l=_.lG(l==null?void 0:(e=l[0])==null?void 0:(O=e.videoPrimaryInfoRenderer)==null?void 0:O.title))&&_.$u(this.hostElement,"yt-update-title",l)},
updateTitle_:function(l){l=this.get("videoDetails.title",l)||"";_.$u(this.hostElement,"yt-update-title",l)},
syncWithRemoteVideo_:function(l,e,O){if(this.active&&this.player){var E=this.player.getVideoData();if(E.video_id===O&&(O=E.list,_.a("polymer_enable_mdx_queue")&&O&&O.startsWith("RQ")&&(O=void 0),E.video_id!==l||O!=e)){var J;_.a("kevlar_player_watch_endpoint_navigation")?J=_.f_2(_.rNz(l,e)):J=this.buildWatchEndpoint_(l,e);_.$u(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(l,e,O){return _.Vy(l,e,O)},
initDclkstatus_:function(){_.QA3()},
attachWatchPageSkeleton_:function(){var l=document.querySelector("#watch-page-skeleton");if(l){var e=l.querySelector("#primary-info"),O=l.querySelector("#secondary-info"),E=l.querySelector("#related");e&&_.ud(this.hostElement).querySelector("#info-skeleton").appendChild(e);O&&_.ud(this.hostElement).querySelector("#meta-skeleton").appendChild(O);E&&(_.ud(this.hostElement).querySelector("#related-skeleton").appendChild(E),this.watchNextSkeletonEl_=E);_.wk(l)}},
handlePlayerUpdated_:function(){_.zn(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(l,e){if(this.watchNextSkeletonEl_&&typeof e!=="undefined"){var O=this.watchNextSkeletonEl_.children,E=l&&l.indexSplices.length?l.indexSplices[0].index:0;l=Math.min(this.watchNextShownItems.length,O.length);e||(E=0,l=O.length);for(e=E;e<l;e++)O[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(l){_.a("external_fullscreen")||_.Wb(this.hostElement,"yt-player-fullscreen",[l.fullscreen])},
onFullscreenChange_:function(l){this.fullscreen=l;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.zn(this);e.getPlayerPromise().then(function(O){O.setFauxFullscreen(!!_.ZG())});
this.updateFullBleedElementLocations();l&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(l,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(l){return l},
computeShouldShowMerchShelf:function(l,e){return e&&!!l},
computeResponseHasComments:function(l){var e,O,E,J,z;return!!(l==null?0:(e=l.contents)==null?0:(O=e.twoColumnWatchNextResults)==null?0:(E=O.results)==null?0:(J=E.results)==null?0:(z=J.contents)==null?0:z.some(function(M){var Z;return(M==null?void 0:(Z=M.itemSectionRenderer)==null?void 0:Z.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(l,e){this.responseHasComments=this.computeResponseHasComments(this.data);return!!l&&!!Object.keys(l).length&&!e},
identity:_.Bx,onWindowResized_:function(l){this.windowSize_=l;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.a("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.a("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(l){var e=this;l&&l.type!=="dataloaded"&&l.type!=="dataupdated"||_.zn(this).getPlayerPromise().then(function(O){var E=O.getPlayerState();E!==5&&E!==0&&(O=1/O.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==O&&(e.videoHeightToWidthRatio_=O))})},
schedulePlayerSizeUpdate_:function(l){var e=this,O=_.a("kevlar_watch_while_v2")||_.a("web_watch_pip"),E=function(){if(e.watchMetadata){var J,z;(z=(J=e.watchMetadata).resize)==null||z.call(J)}_.zn(e).getPlayerPromise().then(function(M){if(_.a("kevlar_set_internal_player_size")){if(!O||!e.isMiniplayerActive()){var Z=e.calculateCurrentPlayerSize_();M.setInternalSize(Z.width,Z.height)}}else M.setSize(NaN,NaN);_.a("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
l?E():_.RK(_.UD,E)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(l){this.set("data.survey",l.detail)},
onYtShowSurveyCommand_:function(l){this.set("data.survey",_.I(l,_.bXP).survey)},
onDownloadedVideoDeleted:function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1){if(!e.active||(O=e.playerData)==null||!O.offlineState||e.videoId!==l)return J.return();(E=e.player)==null||E.stopVideo();_.n6().navigatingAwayFromWatchDeletedVideo=!0;_.aX(_.jGx,e.hostElement);return _.C(J,_.n6().navigationFinishPromise,2)}_.n6().navigatingAwayFromWatchDeletedVideo=!1;_.Cl(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var l;this.theater?l=_.hc(.5625*this.windowSize_.width,480,this.windowSize_.height-185):l=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==l&&(this.watchWhileScrollThreshold_=l,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var l=_.ud(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&l){var e=this.windowSize_.height>=624,O=this.active?this.getScrollTop():0;!l.active&&e&&O>=this.watchWhileScrollThreshold_?(l.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):l.active&&(!e||O<this.watchWhileScrollThreshold_&&!_.ZG())&&(l.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(l,e){if(l!==!0||e!==void 0){l=!_.a("live_chat_over_engagement_panels");e=_.ud(this.hostElement).querySelector("#chat-container");var O=_.ud(this.hostElement).querySelector("#plj-sidebar"),E=_.ud(this.hostElement).querySelector("#panels"),J=_.ud(this.hostElement).querySelector("#plj-panels"),z=_.ud(this.hostElement).querySelector("#plj-playlist"),M=_.ud(this.hostElement).querySelector("#alerts"),Z=_.ud(this.hostElement).querySelector("#playlist"),u=_.ud(this.hostElement).querySelector("#related"),
d=_.ud(this.hostElement).querySelector("#donation-shelf"),g=_.ud(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.ud(this.hostElement).querySelector("#secondary-inner"),M.appendChild(O),O.appendChild(z),z.appendChild(Z),O.appendChild(J),l&&M.appendChild(E),_.a("web_watch_theater_chat")||M.appendChild(e),l||M.appendChild(E),M.appendChild(d),M.appendChild(u)):(l&&_.s8(E,M),_.s8(Z,M),_.a("web_watch_theater_chat")||_.s8(e,M),l||_.s8(E,M),_.s8(d,M),g&&(J&&_.s8(J,g),_.s8(u,g)));_.a("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.a("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.a("web_watch_theater_chat")){var l=_.ud(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.a("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?_.a("web_watch_theater_chat_beside_player")?(e=_.ud(this.hostElement).querySelector("#panels-full-bleed-container"),(l==null?void 0:l.parentElement)!==e&&e.append(l),this.panelsBesidePlayer=!0):_.a("web_watch_theater_fixed_chat")&&
(e=_.ud(this.hostElement).querySelector("#columns"),(l==null?void 0:l.parentElement)!==e&&e.append(l),this.fixedPanels=!0):(_.a("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.a("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),e=_.ud(this.hostElement).querySelector("#playlist"),l&&e?_.GP(l,e):_.hG(new _.Hk("Missing element when updating chat location",{"chatContainer defined":!!l,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(l,e){return _.a("sw_metadata_vis_toggle_ks")?!0:!!l||!!e},
computeForceDarkPanelTheme:function(l){return _.a("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&l:!1},
safeUpdateStyles:function(l){try{_.dP(this.hostElement,l)}catch(e){_.hG(e)}},
videoHeightToWidthRatioChanged_:function(l,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.a("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(l){this.videoHeightToWidthRatio_=1/l},
computeIsVerticalVideo_:function(l){return l>=1},
computeIsFourThreeToSixteenNineVideo_:function(l){return l<=.7501&&l>=.5624},
computeIsExtraWideVideo_:function(l){return l<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.zn(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.zn(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dIz(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(l){var e=_.gS(l)||0;_.dS(l,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var l=_.gS("yt-fullerscreen-edu-button-click-count")||0,e=_.gS("yt-fullerscreen-edu-button-shown-count")||0,O=_.Cv("external_fullscreen_button_shown_threshold"),E=l>=_.Cv("external_fullscreen_button_click_threshold")||e>=O;_.zn(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(E)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(l,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.V2().resolve(_.U5).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var l=this;this.panelMaxHeightUpdateJob_&&_.UD.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.UD.addLowPriorityJob(function(){l.panelMaxHeightUpdateJob_=0;var e;!l.isTwoColumns_||l.theater||l.fullscreen?e=460:e=l.calculateNormalPlayerSize_().height;var O=e+"px";_.a("live_chat_taller_height")&&!l.theater&&(O="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.a("live_chat_medium_height")&&
!l.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.a("live_chat_scaled_height")&&!l.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 238px)");l.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":O,"--ytd-watch-flexy-structured-description-max-height":e+"px","--ytd-watch-flexy-comments-panel-max-height":e+"px","--ytd-comments-engagement-panel-content-height":e+"px"})})},
onYtShowEngagementPanelScrimAction_:function(l){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",l)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.wQ(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(l){var e=_.ud(this.hostElement).querySelector("#engagement-panel-scrim");l?e.addEventListener("tap",_.id(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.id(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(l){if(this.hostElement.contains(l)&&!this.scrollToAnimation_.isAnimating()){var e=l.offsetTop-24;l=l.offsetTop+l.offsetHeight+24;var O=this.getPageScrollingElement(),E=this.getScrollTop(),J=E+O.clientHeight-56;if(e<E+56)e-=56;else if(l>J)e=l-O.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var l=this.hostElement.querySelector("#comments");if(l&&!this.scrollToAnimation_.isAnimating()){l=l.offsetTop-56-24;if(_.a("kevlar_comment_teaser_scroll_to_midpoint")&&(l-=_.CF().height/3,l<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtEngagementPanelVisibleChanged:function(l,e,O){this.active&&this.trackEngagementPanelVisibility&&!_.XgF.includes(O)&&(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(O),e!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(O),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(l){return l?"":"watch-active-metadata"},
computeNewMetadataClass:function(l){return l?"watch-active-metadata":""},
computeFullBleedPlayer:function(l,e){return l||e},
computeDefaultLayout:function(l){return!l},
computeDefaultTwoColumnLayout:function(l,e){return!l&&e},
computeWatchWhilePanelsActive:function(l,e){return l||e},
computeNoBorderOnChat:function(l){return _.a("web_watch_theater_chat_no_border")&&l},
computeLiveChatPresentAndExpanded:function(l,e){return l&&!e},
computePanelExpanded:function(l,e,O){return l||e||O},
onChangeMarkersVisibility:function(l){_.zn(this).getPlayerPromise().then(function(e){var O;(O=e.changeMarkerVisibility)==null||O.call(e,_.I(l,_.LD).isVisible||!1,_.I(l,_.LD).entityKeys||[],_.I(l,_.LD).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(l){this.liveChatCollapsed=l.detail;_.Om().dispatch(_.J8C(l.detail))},
provideRenderingData:function(l,e){switch(l){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.a("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.a("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=e);this.videoSecondaryInfoRendererValue=e==null?void 0:e.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
e;break;case "CLARIFICATION":this.clarifyBoxValue=e;break;case "LIVE_CHAT":this.conversationBar=e;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=e;break;case "PLAYLIST":this.externalPlaylistData_=e!=null?e:{};break;case "MERCH_SHELF":this.merchShelfValue=e==null?void 0:e.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=e;break;case "OFFER_MODULE":this.offerModule=e;break;case "LIMITED_STATE":this.limitedStateValue=e;break;case "DONATION_SHELF":this.donation=e;break;
case "ALERTS":this.alertsValue=e;break;case "COMMENTS":this.comments=e;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=e;break;case "ENGAGEMENT_PANELS":this.engagementPanels=e;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=e;break;case "RICH_GRID_RENDERER":this.richGridRendererData=e;break;case "EXPANDABLE_METADATA":this.expandableMetadata=e;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=e}},
toggleCinematicsActive:function(l){this.cinematicsActive=l},
isMiniplayerActive:function(){return _.V2().resolve(_.NJ).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(l){return T70.map(function(e){return l.find(function(O){var E;return(O==null?void 0:(E=O.engagementPanelSectionListRenderer)==null?void 0:E.targetId)===e})}).filter(function(e){return e!==void 0})},
getNonLearningJourneyEngagementPanels:function(l){return l.filter(function(e){var O;return!T70.includes((e==null?void 0:(O=e.engagementPanelSectionListRenderer)==null?void 0:O.targetId)||"")})}}];var s8f;var xb=function(){var l=_.B.apply(this,arguments)||this;l.flexy=!0;l.learningJourney=!0;l.roundedInfoPanel=!0;l.viewTransitionEnabled=_.a("enable_player_resize_transition");l.smallerChatMinHeight=_.a("live_chat_smaller_min_height");l.cinematicTheaterMode=_.a("web_cinematic_theater_mode");l.transparentTheaterMode=_.a("web_transparent_theater_mode");l.cinematicFullscreen=_.a("web_cinematic_fullscreen");l.useLargerMaxPlayerValue=_.a("kevlar_flexy_use_larger_player_value");l.cinematicFullscreenV2=_.a("web_cinematic_fullscreen_v2");
l.isDarkTheme=document.documentElement.hasAttribute("dark");l.theaterLargerPlayer=_.a("web_watch_theater_larger_player");l.defaultCollapsePlaylist=_.a("web_watch_default_collapse_playlist");return l};
_.m(xb,_.B);_.X=xb.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.X.ready=function(){var l=this,e=function(){l.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(l){_.a("web_watch_update_narrow_width_killswitch")||_.Om().dispatch(_.l53(!l.detail.value));this.ytdWatchBehavior.isTwoColumns_=l.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(l){this.ytdWatchBehavior.flexySmallWindow_=l.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(l){this.ytdWatchBehavior.flexyLargeWindow_=l.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(l){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=l.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(l){this.ytdWatchBehavior.watchNextCanShowMore=l.detail.value};
_.X.updateShownItemsFromBinding=function(l){l.detail.path?this.set(l.detail.path,l.detail.value):this.ytdWatchBehavior.watchNextShownItems=l.detail.value};
_.X.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20542_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20542_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Ji.Object.defineProperties(xb.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(l=_.I(this.data.pageVisualEffects[e],_.a0))return e=void 0,(e=l.config)==null?void 0:e.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.learningJourneyEngagementPanels)==null?void 0:l.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.learningJourneyEngagementPanels)==null?void 0:l.find(function(n){var k;return(n==null?void 0:(k=n.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="learning-journey-engagement-panel"});
if(e){var O,E,J,z,M,Z,u,d,g;if(l=(d=((u=(M=((z=e==null?void 0:(O=e.engagementPanelSectionListRenderer)==null?void 0:(E=O.content)==null?void 0:(J=E.sectionListRenderer)==null?void 0:J.contents)!=null?z:[])[0])==null?void 0:(Z=M.itemSectionRenderer)==null?void 0:Z.contents)!=null?u:[])[0])==null?void 0:(g=d.accordionViewModel)==null?void 0:g.onTitleTap){var w=_.t3(l);if(w)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.n4.instance.resolveCommand(w)}}}}}}});
_.Ji.Object.defineProperties(xb,{template:{configurable:!0,enumerable:!0,get:function(){if(s8f===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);s8f=l}l=s8f;return l}}});
xb.prototype.updateMiniplayerIsActiveValue=xb.prototype.updateMiniplayerIsActiveValue;xb.prototype.updateScrollTopValue=xb.prototype.updateScrollTopValue;xb.prototype.updateFullscreenValue=xb.prototype.updateFullscreenValue;xb.prototype.updateTheaterValue=xb.prototype.updateTheaterValue;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],xb.prototype,"ytComponentBehavior",void 0);
_.L([_.K(RDC.YtdLearningJourneyWatchBehavior),_.q("design:type",Object)],xb.prototype,"ytdWatchBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],xb.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xb.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],xb.prototype,"playerData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"flexy",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"learningJourney",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"roundedInfoPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"viewTransitionEnabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"smallerChatMinHeight",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"cinematicTheaterMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"transparentTheaterMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"cinematicFullscreen",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"useLargerMaxPlayerValue",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"cinematicFullscreenV2",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"isDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xb.prototype,"theaterLargerPlayer",void 0);_.L([_.T(),_.q("design:type",Object)],xb.prototype,"defaultCollapsePlaylist",void 0);_.L([_.T({selector:_.tM}),_.q("design:type",Object)],xb.prototype,"theaterValue",void 0);
_.L([_.T({selector:_.qc}),_.q("design:type",Object)],xb.prototype,"fullscreenValue",void 0);_.L([_.T({selector:_.mz}),_.q("design:type",Object)],xb.prototype,"scrollTopValue",void 0);_.L([_.T({selector:_.Pt}),_.q("design:type",Object)],xb.prototype,"miniplayerIsActiveValue",void 0);_.L([_.aB("#ytd-plj-player"),_.q("design:type",HTMLElement)],xb.prototype,"ytdPlayer",void 0);_.L([_.aB("#playlist"),_.q("design:type",HTMLElement)],xb.prototype,"JSC$20542_ytdPlaylistPanelRenderer",void 0);
_.L([_.SX("ytd-comments"),_.q("design:type",HTMLElement)],xb.prototype,"ytdComments",void 0);_.L([_.aB("#primary"),_.q("design:type",HTMLElement)],xb.prototype,"primary",void 0);_.L([_.aB("#secondary"),_.q("design:type",HTMLElement)],xb.prototype,"secondary",void 0);_.L([_.aB("#player-container"),_.q("design:type",HTMLElement)],xb.prototype,"playerContainer",void 0);_.L([_.aB("#cinematics"),_.q("design:type",HTMLElement)],xb.prototype,"JSC$20542_cinematics",void 0);
_.L([_.AA("theaterValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xb.prototype,"updateTheaterValue",null);_.L([_.AA("fullscreenValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xb.prototype,"updateFullscreenValue",null);_.L([_.AA("scrollTopValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xb.prototype,"updateScrollTopValue",null);
_.L([_.AA("miniplayerIsActiveValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xb.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xb.prototype,"cinematicLightTheme",null);_.L([_.T({reflectToAttribute:!0}),_.R("learningJourneyEngagementPanels"),_.q("design:type",Object),_.q("design:paramtypes",[])],xb.prototype,"hasLearningJourneyPanels",null);
_.L([_.R("learningJourneyEngagementPanels"),_.q("design:type",Object),_.q("design:paramtypes",[])],xb.prototype,"backButtonData",null);_.L([_.U({is:"ytd-watch-learning-journey"})],xb);_.Zl.registerService(_.VCV,xb);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("Tm0L3c");
var IRO;var mI0;var y8u=function(){return _.B.apply(this,arguments)||this};
_.m(y8u,_.B);_.L([_.U({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],y8u);
_.Y(y8u,"ytd-ghost-comments-renderer",function(){if(mI0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);mI0=l}l=mI0;return l},{mode:1});var pgi;var Kzi=function(){return _.B.apply(this,arguments)||this};
_.m(Kzi,_.B);_.L([_.U({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Kzi);
_.Y(Kzi,"ytd-ghost-watch-metadata-renderer",function(){if(pgi===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);pgi=l}l=pgi;return l},{mode:1});var QO=function(){var l=_.B.apply(this,arguments)||this;l.ghostGridRenderer={rows:6};l.roundedInfoPanel=!0;l.hideOfferModules=!0;l.smallerChatMinHeight=_.a("live_chat_smaller_min_height");l.cinematicTheaterMode=_.a("web_cinematic_theater_mode");l.transparentTheaterMode=_.a("web_transparent_theater_mode");l.darkerPanels=_.a("web_watch_darker_panels");l.cinematicFullscreen=_.a("web_cinematic_fullscreen");l.cinematicFullscreenV2=_.a("web_cinematic_fullscreen_v2");l.isDarkTheme=document.documentElement.hasAttribute("dark");
return l};
_.m(QO,_.B);_.X=QO.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.X.ready=function(){var l=this,e=function(){l.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(l){this.ytdWatchBehavior.isTwoColumns_=l.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(l){this.ytdWatchBehavior.flexySmallWindow_=l.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(l){this.ytdWatchBehavior.flexyLargeWindow_=l.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(l){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=l.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(l){this.ytdWatchBehavior.watchNextCanShowMore=l.detail.value};
_.X.updateShownItemsFromBinding=function(l){_.a("swatcheroo_direct_use_rich_grid")||(l.detail.path?this.set(l.detail.path,l.detail.value):this.ytdWatchBehavior.watchNextShownItems=l.detail.value)};
_.X.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20530_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20530_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Ji.Object.defineProperties(QO.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(l=_.I(this.data.pageVisualEffects[e],_.a0))return e=void 0,(e=l.config)==null?void 0:e.enableInLightTheme;return!1}}});
QO.prototype.updateMiniplayerIsActiveValue=QO.prototype.updateMiniplayerIsActiveValue;QO.prototype.updateScrollTopValue=QO.prototype.updateScrollTopValue;QO.prototype.updateFullscreenValue=QO.prototype.updateFullscreenValue;QO.prototype.updateTheaterValue=QO.prototype.updateTheaterValue;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.aRH.YtdWatchBehavior),_.q("design:type",Object)],QO.prototype,"ytdWatchBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],QO.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],QO.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],QO.prototype,"ghostGridRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],QO.prototype,"playerData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"roundedInfoPanel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"hideOfferModules",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"smallerChatMinHeight",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"cinematicTheaterMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"transparentTheaterMode",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"darkerPanels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"cinematicFullscreen",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"cinematicFullscreenV2",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],QO.prototype,"isDarkTheme",void 0);_.L([_.T({selector:_.tM}),_.q("design:type",Object)],QO.prototype,"theaterValue",void 0);
_.L([_.T({selector:_.qc}),_.q("design:type",Object)],QO.prototype,"fullscreenValue",void 0);_.L([_.T({selector:_.mz}),_.q("design:type",Object)],QO.prototype,"scrollTopValue",void 0);_.L([_.T({selector:_.Pt}),_.q("design:type",Object)],QO.prototype,"miniplayerIsActiveValue",void 0);_.L([_.aB("#ytd-player"),_.q("design:type",HTMLElement)],QO.prototype,"ytdPlayer",void 0);_.L([_.aB("#playlist"),_.q("design:type",HTMLElement)],QO.prototype,"JSC$20530_ytdPlaylistPanelRenderer",void 0);
_.L([_.aB("#ytd-comments"),_.q("design:type",HTMLElement)],QO.prototype,"ytdComments",void 0);_.L([_.aB("#primary"),_.q("design:type",HTMLElement)],QO.prototype,"primary",void 0);_.L([_.aB("#secondary"),_.q("design:type",HTMLElement)],QO.prototype,"secondary",void 0);_.L([_.aB("#player-container"),_.q("design:type",HTMLElement)],QO.prototype,"playerContainer",void 0);_.L([_.aB("#cinematics"),_.q("design:type",HTMLElement)],QO.prototype,"JSC$20530_cinematics",void 0);
_.L([_.AA("theaterValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QO.prototype,"updateTheaterValue",null);_.L([_.AA("fullscreenValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QO.prototype,"updateFullscreenValue",null);_.L([_.AA("scrollTopValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QO.prototype,"updateScrollTopValue",null);
_.L([_.AA("miniplayerIsActiveValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],QO.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],QO.prototype,"cinematicLightTheme",null);
_.Y(QO,"ytd-watch-grid",function(){if(IRO===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);IRO=l}l=IRO;return l},{mode:2});_.Zl.registerService(_.MCg,QO);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("CF909");
var kwu;var Sl=function(){var l=_.B.apply(this,arguments)||this;l.flexy=!0;l.roundedInfoPanel=!0;l.viewTransitionEnabled=_.a("enable_player_resize_transition");l.smallerChatMinHeight=_.a("live_chat_smaller_min_height");l.cinematicTheaterMode=_.a("web_cinematic_theater_mode");l.transparentTheaterMode=_.a("web_transparent_theater_mode");l.cinematicFullscreen=_.a("web_cinematic_fullscreen");l.useLargerMaxPlayerValue=_.a("kevlar_flexy_use_larger_player_value");l.cinematicFullscreenV2=_.a("web_cinematic_fullscreen_v2");
l.isDarkTheme=document.documentElement.hasAttribute("dark");l.defaultCollapsePlaylist=_.a("web_watch_default_collapse_playlist");l.retroModeReduxValue=!1;return l};
_.m(Sl,_.B);_.X=Sl.prototype;_.X.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.X.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.X.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.X.updateRetroModeReduxValue=function(){_.a("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.X.ready=function(){var l=this,e=function(){l.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.X.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.X.updateIsTwoColumnsFromBinding=function(l){_.a("web_watch_update_narrow_width_killswitch")||_.Om().dispatch(_.l53(!l.detail.value));this.ytdWatchBehavior.isTwoColumns_=l.detail.value};
_.X.updateFlexySmallWindowFromBinding=function(l){this.ytdWatchBehavior.flexySmallWindow_=l.detail.value};
_.X.updateFlexyLargeWindowFromBinding=function(l){this.ytdWatchBehavior.flexyLargeWindow_=l.detail.value};
_.X.updateWatchWhileWindowSizeSufficientFromBinding=function(l){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=l.detail.value};
_.X.updateWatchNextCanShowMoreFromBinding=function(l){this.ytdWatchBehavior.watchNextCanShowMore=l.detail.value};
_.X.updateShownItemsFromBinding=function(l){l.detail.path?this.set(l.detail.path,l.detail.value):this.ytdWatchBehavior.watchNextShownItems=l.detail.value};
_.X.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20525_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20525_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Ji.Object.defineProperties(Sl.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(l=_.I(this.data.pageVisualEffects[e],_.a0))return e=void 0,(e=l.config)==null?void 0:e.enableInLightTheme;return!1}}});
_.Ji.Object.defineProperties(Sl,{template:{configurable:!0,enumerable:!0,get:function(){if(kwu===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);kwu=l}l=kwu;return l}}});
Sl.prototype.updateRetroModeReduxValue=Sl.prototype.updateRetroModeReduxValue;Sl.prototype.updateScrollTopValue=Sl.prototype.updateScrollTopValue;Sl.prototype.updateFullscreenValue=Sl.prototype.updateFullscreenValue;Sl.prototype.updateTheaterValue=Sl.prototype.updateTheaterValue;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Sl.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.aRH.YtdWatchBehavior),_.q("design:type",Object)],Sl.prototype,"ytdWatchBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Sl.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sl.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Sl.prototype,"playerData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"flexy",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"roundedInfoPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"viewTransitionEnabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"smallerChatMinHeight",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"cinematicTheaterMode",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"transparentTheaterMode",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"cinematicFullscreen",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"useLargerMaxPlayerValue",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"cinematicFullscreenV2",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sl.prototype,"isDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],Sl.prototype,"defaultCollapsePlaylist",void 0);_.L([_.T({selector:_.tM}),_.q("design:type",Object)],Sl.prototype,"theaterValue",void 0);_.L([_.T({selector:_.qc}),_.q("design:type",Object)],Sl.prototype,"fullscreenValue",void 0);_.L([_.T({selector:_.mz}),_.q("design:type",Object)],Sl.prototype,"scrollTopValue",void 0);
_.L([_.T({selector:_.Pt}),_.q("design:type",Object)],Sl.prototype,"miniplayerIsActive",void 0);_.L([_.T({selector:function(l){return l.watch.isWatchRetroMode}}),
_.q("design:type",Object)],Sl.prototype,"retroModeReduxValue",void 0);_.L([_.SX("ytd-player"),_.q("design:type",HTMLElement)],Sl.prototype,"ytdPlayer",void 0);_.L([_.aB("#playlist"),_.q("design:type",HTMLElement)],Sl.prototype,"JSC$20525_ytdPlaylistPanelRenderer",void 0);_.L([_.SX("ytd-comments"),_.q("design:type",HTMLElement)],Sl.prototype,"ytdComments",void 0);_.L([_.aB("#primary"),_.q("design:type",HTMLElement)],Sl.prototype,"primary",void 0);
_.L([_.aB("#secondary"),_.q("design:type",HTMLElement)],Sl.prototype,"secondary",void 0);_.L([_.aB("#player-container"),_.q("design:type",HTMLElement)],Sl.prototype,"playerContainer",void 0);_.L([_.aB("#cinematics"),_.q("design:type",HTMLElement)],Sl.prototype,"JSC$20525_cinematics",void 0);_.L([_.AA("theaterValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sl.prototype,"updateTheaterValue",null);
_.L([_.AA("fullscreenValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sl.prototype,"updateFullscreenValue",null);_.L([_.AA("scrollTopValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sl.prototype,"updateScrollTopValue",null);_.L([_.AA("retroModeReduxValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sl.prototype,"updateRetroModeReduxValue",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sl.prototype,"cinematicLightTheme",null);_.L([_.U({is:"ytd-watch-flexy"})],Sl);_.Zl.registerService(_.b5L,Sl);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("nmfa2d");
var Ge4;var UI=function(){var l=_.B.apply(this,arguments)||this;l.hidden=!1;l.errorScreen=null;l.playlistData={};return l};
_.m(UI,_.B);_.X=UI.prototype;_.X.getPlayer=function(){return this.ytdPlayer};
_.X.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:_.Rb(["aa","eocs"])}}};
_.X.onActiveChanged=function(){_.Om().dispatch(_.HKu(this.ytPageBehavior.active))};
_.X.playerDataChanged=function(){var l;(l=this.watchController)==null||l.setPlayerResponse(this.playerData)};
_.X.dataChanged=function(){var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)};
_.X.sizeChanged=function(){var l,e;(e=(l=this.metadata).resize)==null||e.call(l)};
_.X.attached=function(){this.watchController=new _.B7(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.X.detached=function(){_.Q9(this.watchController);this.watchController=void 0};
_.X.getPlayerContainer=function(){return this.playerContainer};
_.X.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20477_playlistPanel}};
_.X.provideRenderingData=function(l,e){switch(l){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=e;break;case "ERROR_SCREEN":this.errorScreen=e!=null?e:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=e;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=e;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=e;break;case "RICH_METADATA":this.richMetadataRowContainer=e;break;case "CLARIFICATION":this.clarificationData=e;break;case "PLAYLIST":this.playlistData=
e!=null?e:{};break;case "MERCH_SHELF":this.merchShelf=e;break;case "TICKET_SHELF":this.ticketShelf=e;break;case "LIMITED_STATE":this.limitedState=e;break;case "DONATION_SHELF":this.donationShelf=e;break;case "ALERTS":this.alerts=e}};
_.Ji.Object.defineProperties(UI.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return!this.hidden&&!!((l=this.data)==null?0:(e=l.contents)==null?0:(O=e.twoColumnWatchNextResults)==null?0:O.conversationBar)}}});
UI.prototype.sizeChanged=UI.prototype.sizeChanged;UI.prototype.dataChanged=UI.prototype.dataChanged;UI.prototype.playerDataChanged=UI.prototype.playerDataChanged;UI.prototype.onActiveChanged=UI.prototype.onActiveChanged;_.L([_.K(_.ym.YtPageBehavior),_.q("design:type",Object)],UI.prototype,"ytPageBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],UI.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],UI.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"playerData",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],UI.prototype,"hidden",void 0);_.L([_.aB("#ytd-player"),_.q("design:type",HTMLElement)],UI.prototype,"ytdPlayer",void 0);_.L([_.aB("#player-container"),_.q("design:type",HTMLElement)],UI.prototype,"playerContainer",void 0);_.L([_.aB("#metadata"),_.q("design:type",Object)],UI.prototype,"metadata",void 0);_.L([_.aB("#playlist"),_.q("design:type",HTMLElement)],UI.prototype,"JSC$20477_playlistPanel",void 0);
_.L([_.T({selector:_.VmP,reflectToAttribute:!0}),_.q("design:type",Object)],UI.prototype,"fixie",void 0);_.L([_.T({selector:_.Mmi,reflectToAttribute:!0}),_.q("design:type",Object)],UI.prototype,"singleColumn",void 0);_.L([_.T({selector:function(l){return _.tM(l)&&!_.qc(l)},
reflectToAttribute:!0}),_.q("design:type",Object)],UI.prototype,"theater",void 0);_.L([_.T({selector:_.qc,reflectToAttribute:!0}),_.q("design:type",Object)],UI.prototype,"fullscreen",void 0);_.L([_.T({selector:_.jAH}),_.q("design:type",Object)],UI.prototype,"windowSize",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"singleColumnContents",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"errorScreen",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"playlistData",void 0);
_.L([_.T(),_.q("design:type",Object)],UI.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"richMetadataRowContainer",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"clarificationData",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"ticketShelf",void 0);
_.L([_.T(),_.q("design:type",Object)],UI.prototype,"merchShelf",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"donationShelf",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"limitedState",void 0);_.L([_.T(),_.q("design:type",Object)],UI.prototype,"alerts",void 0);_.L([_.R("playlistData"),_.q("design:type",Object),_.q("design:paramtypes",[])],UI.prototype,"hasPlaylistData",null);
_.L([_.R("data","hidden"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],UI.prototype,"hasChat",null);_.L([_.AA("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UI.prototype,"onActiveChanged",null);_.L([_.AA("playerData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UI.prototype,"playerDataChanged",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UI.prototype,"dataChanged",null);_.L([_.AA("windowSize","singleColumn"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UI.prototype,"sizeChanged",null);
_.Y(UI,"ytd-watch-fixie",function(){if(Ge4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);Ge4=l}l=Ge4;return l},{mode:1});_.Zl.registerService(_.zid,UI);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("xwEKAe");
var eC3=function(l){var e=_.Kz();if(e.getFlag(202))e=e.getFlag(201);else{var O;e=(l==null?void 0:(O=l.config)==null?void 0:O.settingOnByDefault)!==void 0?l.config.settingOnByDefault:!_.a("web_shorts_cinematics_disabled_by_default")}return e},OVz=function(l){var e=_.Kz();
_.jj(0,201,l);_.jj(0,202,!0);e.save()},E23=function(l){return(l=_.Jkd(l))?_.z$x(l):0},JsC=function(l){return l.shorts.isSmallScreenSqueezeback},X$4=function(l){return l.shorts.isPlaybackStarted},MPu=function(l){var e=_.kQp(2),O=new Set;
_.B3(function(){return void O.forEach(function(E){return void E()})});
return function(E){var J=_.X7(e);try{var z=zCu(bVo(l),E);O.add(z);return function(){z();O.delete(z)}}finally{_.X7(J)}}},VP3=function(l){var e=l.children;
var O=l.root;_.RU(function(){var E=MPu(O)(e);_.B3(E)});
return document.createTextNode("")},zCu=function(l,e){var O=ZVu(l);
l=_.b(_.Wfx(e,!0));e=l.next().value;var E=l.next().value;O.append.apply(O,_.kA(e));return function(){E();O.remove()}},bVo=function(l){if(typeof l==="string")return l=document.querySelector(l),_.QUh(l),l;
if(_.CH(l)&&l.nodeType===Node.ELEMENT_NODE)return l;try{if(!l.__hasErrored){if(l.__count&&l.__count>1)throw _.Fm.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.E0);if(l.__value){if(_.E0!==_.E0){var e=l.__value.tagName.toLowerCase();if(e!==_.E0.toLowerCase())throw _.Fm.USE_ELEMENT_UNEXPECTED_ELEMENT(_.E0,e);}}else throw _.Fm.USE_ELEMENT_NOT_ASSIGNED(_.E0);}}catch(E){var O;(O=_.Zc.handleError)==null||O.call.apply(O,[_.Zc].concat(_.kA(_.LS(E,e))))}finally{l.__count=0}return l.value},ZVu=function(l){var e=document.createElementNS(l.namespaceURI,
l.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return l.appendChild(e)},uhF=function(l,e,O,E){l=e-l;
O=E-O;return Math.sqrt(l*l+O*O)},ChO=function(l,e){l&&_.V2().resolve(_.Zh).resolveCommand(l,{forceClickLogging:!0,
form:{element:e}})},o2C=function(l,e,O,E){l=e-l;
O=E-O;return Math.sqrt(l*l+O*O)},$WO=function(l,e){l&&_.V2().resolve(_.Zh).resolveCommand(l,{forceClickLogging:!0,
form:{element:e}})},Wdu=function(l){l.unsubscribeFromStore=_.kw(l.storeWithShorts,_.SC3,function(e){l.initOrDisposeActiveModules(e);
!e&&l.storeWithShorts.getState().shorts.isFullscreen&&(_.ui(document.documentElement),l.storeWithShorts.dispatch(_.edH(!1)))});
l.initOrDisposeActiveModules(_.SC3(l.storeWithShorts.getState()))},dW4=function(l){var e=_.V2().resolve(_.I3);
e.rootElement=l;Wdu(e)},g2C=function(){return _.V2().resolve(_.I3).dismissedIndices},iV4=function(l){return _.oM({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:l}})},w$0=function(l){return _.oM({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:l}})},Xp=function(l){return _.oM({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:l}})};var zw=function(l,e){if(l instanceof zw)this.array_=l.array_;else{var O;if(O=_.SM(l))a:{for(var E=O=0;E<l.length;E++){if(!_.SM(l[E])||O>0&&l[E].length!=O){O=!1;break a}for(var J=0;J<l[E].length;J++)if(typeof l[E][J]!=="number"){O=!1;break a}O==0&&(O=l[E].length)}O=O!=0}if(O)this.array_=_.rT(l);else if(l instanceof _.uX)this.array_=As3(l.height,l.width);else if(typeof l==="number"&&typeof e==="number"&&l>0&&e>0)this.array_=As3(l,e);else throw Error("Zl");}this.size_=new _.uX(this.array_[0].length,
this.array_.length)},n2u=function(l,e,O){for(var E=0;E<l.getSize().height;E++)for(var J=0;J<l.getSize().width;J++)e.call(O,l.array_[E][J],E,J,l)},ao3=function(l,e){var O=new zw(l.getSize());
n2u(l,function(E,J,z){O.array_[J][z]=e.call(void 0,E,J,z,l)});
return O},As3=function(l,e){for(var O=[],E=0;E<l;E++){O[E]=[];
for(var J=0;J<e;J++)O[E][J]=0}return O};
zw.prototype.add=function(l){if(!_.pAP(this.size_,l.getSize()))throw Error("$l");return ao3(this,function(e,O,E){return e+l.array_[O][E]})};
zw.prototype.equals=function(l,e){if(this.size_.width!=l.size_.width||this.size_.height!=l.size_.height)return!1;e=e||0;for(var O=0;O<this.size_.height;O++)for(var E=0;E<this.size_.width;E++)if(!_.yVP(this.array_[O][E],l.array_[O][E],e))return!1;return!0};
zw.prototype.getSize=function(){return this.size_};
var bj=function(l,e,O){return e>=0&&e<l.size_.height&&O>=0&&O<l.size_.width?l.array_[e][O]:null};
zw.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var MI=function(l,e,O,E){if(!(e>=0&&e<l.size_.height&&O>=0&&O<l.size_.width))throw Error("am`"+e+"`"+O+"`"+l.size_.height+"`"+l.size_.width);l.array_[e][O]=E};
zw.prototype.multiply=function(l){if(l instanceof zw){if(this.size_.width!=l.getSize().height)throw Error("bm");return kd3(this,l)}if(typeof l==="number")return Io0(this,l);throw Error("cm");};
var kd3=function(l,e){var O=new zw(l.size_.height,e.getSize().width);n2u(O,function(E,J,z){for(var M=E=0;M<this.size_.width;M++)E+=bj(this,J,M)*bj(e,M,z);MI(O,J,z,E)},l);
return O},Io0=function(l,e){return ao3(l,function(O){return O*e})};var mWC=new _.v("inlineSurveyRenderer");var ysz=new _.v("interstitialViewModel");var p$3=new _.v("reelNavigateCommand");var Kd4=new _.v("reelNonVideoContentDismissalCommand");var jGh=new _.v("showReelsCommentsOverlayCommand");var HVz=new _.v("shortsSuggestedActionViewModel");var csf=new _.v("videoInteractionPopUpRenderer");var Fdh;var fou;var RC3;var V$=function(){var l=_.B.apply(this,arguments)||this;l.ctaVisualElement=null;l.currentCsn=null;return l};
_.m(V$,_.B);_.X=V$.prototype;_.X.onDataChanged=function(){this.maybeLogShows()};
_.X.computeButtonShape=function(){var l=this;if(this.data)return{buttonText:_.lG(this.data.text),state:"active",onTap:function(){l.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.X.maybeCreateCtaVe=function(){var l;if((l=this.data)!=null&&l.badgeInteractionLogging){var e;if(l=(e=this.data.badgeInteractionLogging)==null?void 0:e.trackingParams)this.ctaVisualElement=_.cf(l)}};
_.X.maybeLogClicks=function(){this.currentCsn=_.P9(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.On(this.currentCsn,this.ctaVisualElement)};
_.X.maybeLogShows=function(){this.currentCsn=_.P9(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.xu(this.currentCsn,[this.ctaVisualElement])};
_.X.onTap=function(){var l;if((l=this.data)!=null&&l.onClickCommand){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand);this.maybeLogClicks()}};
V$.prototype.onDataChanged=V$.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],V$.prototype,"ytComponentBehavior",void 0);_.L([_.T({}),_.q("design:type",Object)],V$.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],V$.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],V$);
_.Y(V$,"ytd-shopping-overlay-badge-renderer",function(){if(RC3!==void 0)return RC3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return RC3=l},{mode:1});_.Zw(_.IWO,"reel-sound-metadata-view-model",{props:{data:_.Vh,overlayDensity:_.Vh}});_.Zw(_.uSP,"player-disclosure-view-model",{props:{data:_.lB}});_.Zw(_.hXx,"pivot-button-view-model",{props:{data:_.Vh,className:_.Vh}});_.Zw(_.LTS,"reel-action-bar-view-model",{props:{data:_.lB,buttonShapeOverrideables:_.lB}});_.Zw(_.XO(function(l){function e(){var $V,gT,mx,jM,cx=(gT=_.I(($V=N())==null?void 0:$V.command,_.pp))==null?void 0:(mx=gT.item)==null?void 0:(jM=mx.notificationTextRenderer)==null?void 0:jM.successResponseText;if(cx)_.Wb(E.value,"yt-open-popup-action",[_.J$(cx),E.value]);else if(t())ChO(t(),y.value);else{var tq;ChO((tq=N())==null?void 0:tq.command,y.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var O=l.data;var E=_.e4("yt-player-overlay-video-interactions");l=_.b(_.AF("0px",void 0,"O1N7Ce"));var J=l.next().value,z=l.next().value;l=_.b(_.AF("0px",void 0,"tTDBdb"));var M=l.next().value,Z=l.next().value;l=_.b(_.AF(0,void 0,"fh8Zkc"));var u=l.next().value,d=l.next().value;l=_.b(_.AF(0,void 0,"CUjqGd"));var g=l.next().value,w=l.next().value,n=function(){var $V;if((($V=_.gC())==null?void 0:$V.getPlayerState())!==-1){E.value.style.display="inherit";var gT;(gT=_.gC())==null||gT.removeEventListener("onStateChange",
n)}k()},k=function(){var $V=document.querySelector("video");
if($V){d($V.getBoundingClientRect().width);w($V.getBoundingClientRect().height);var gT;z(($V==null?void 0:(gT=$V.style)==null?void 0:gT.left)||"0px");var mx;Z(($V==null?void 0:(mx=$V.style)==null?void 0:mx.top)||"0px")}};
_.Gh(function(){var $V,gT,mx;if((($V=_.gC())==null?void 0:$V.getPlayerState())===-1&&Math.round(((mx=(gT=_.gC())==null?void 0:gT.getVideoAspectRatio())!=null?mx:0)*100)!==Math.round(u()/g()*100)){E.value.style.display="none";var jM,cx;w(u()/((cx=(jM=_.gC())==null?void 0:jM.getVideoAspectRatio())!=null?cx:1))}},"VB5m5");
_.RU(function(){var $V;($V=_.gC())==null||$V.addEventListener("onStateChange",n);window.addEventListener("resize",k);k();var gT,mx,jM;if((jM=(gT=O())==null?void 0:(mx=gT.regions)==null?void 0:mx[0])==null||!jM.transformationMatrix)throw Error("gm");var cx;if((cx=O())==null?0:cx.trackingParams){var tq;_.yN().graftServerVe((tq=O().trackingParams)!=null?tq:"")}_.B3(function(){var Px;(Px=_.gC())==null||Px.removeEventListener("onStateChange",n);window.removeEventListener("resize",k)})});
var y=_.e4("svg"),c=_.b(_.AF(!1,void 0,"TPsTce"));l=c.next().value;var f=c.next().value,P=_.b(_.AF(!1,void 0,"Uz6CHf"));c=P.next().value;var h=P.next().value,N=function(){var $V;return _.I(($V=O())==null?void 0:$V.popUp,csf)},t=function(){var $V;
return($V=O())==null?void 0:$V.command},r=function(){return _.I(t(),_.mM)!==void 0};
P=_.pd(function(){e();return!1});
var D={},b2={};return _.W("yt-player-overlay-video-interactions",{el:E},_.W("svg",{"on:mouseover":_.pd(function(){r()&&f(!0);h(!0);return!1}),
"on:mouseout":_.pd(function(){f(!1);h(!1);return!1}),
"on:keydown":_.pd(function($V){$V.key==="Enter"&&e();return!1}),
"on:focus":_.pd(function(){r()&&f(!0);return!1}),
"on:blur":_.pd(function(){r()&&f(!1);return!1}),
el:y,tabindex:0,"aria-label":function(){var $V;return($V=O())==null?void 0:$V.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ax("yt-player-overlay-video-interactions__interactions-svg",(D["yt-player-overlay-video-interactions__interactions-svg-hover"]=l,D),(b2["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=c,b2)),role:"button",style:function(){var $V,gT,mx,jM=(mx=($V=O())==null?void 0:(gT=$V.regions)==null?void 0:gT[0].transformationMatrix)!=null?mx:[];$V=u();gT=g();mx=[];for(var cx=0,tq=-1;cx<jM.length;cx++)cx%3===0&&(tq++,mx[tq]=[]),mx[tq].push(jM[cx]);
jM=new zw(mx);mx=new zw([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);mx=jM.multiply(mx);jM=new zw([[0,0],[0,0],[0,0],[0,0]]);for(cx=0;cx<mx.getSize().width;cx++){tq=bj(mx,0,cx);var Px=bj(mx,1,cx);if(tq===null||Px===null)throw Error("fm`"+(cx+1).toString());MI(jM,cx,0,tq*$V);MI(jM,cx,1,Px*gT)}$V=bj(jM,0,0);cx=bj(jM,1,0);gT=bj(jM,0,1);tq=bj(jM,1,1);if($V===null||cx===null||gT===null||tq===null)throw Error("dm");mx=uhF($V,cx,gT,tq);Px=bj(jM,3,0);jM=bj(jM,3,1);if(Px===null||jM===null)throw Error("em");jM=uhF($V,
Px,gT,jM);tq=(Number((tq*-1).toFixed(2))-Number((gT*-1).toFixed(2)))/(Number(cx.toFixed(2))-Number($V.toFixed(2)));Px=Math.atan(tq)*180/Math.PI;cx=tq===Number.POSITIVE_INFINITY?-90:tq===Number.NEGATIVE_INFINITY?90:Object.is(tq,-0)?180:tq===0?0:tq>0?Px*-1:$V<cx?Px*-1:Math.abs(Px)+180;return"left:calc("+$V+"px + "+J()+"); top:calc("+(gT+"px + "+M()+"); width:")+(mx+"px; height:")+(jM+"px; transform:rotate(")+(cx+"deg);")},
"on:click":P}))},"Li"),"yt-player-overlay-video-interactions",{props:{data:_.lB}});_.Zw(_.dHC,"yt-reel-metapanel-view-model",{props:{data:_.lB,overlayDensity:_.lB}});var Tzf=_.XO(function(l){var e=l.children;var O=l.region;l=_.b(_.AF(void 0,void 0,"rwJZyc"));var E=l.next().value,J=l.next().value;l=_.b(_.AF("0px",void 0,"H14H5c"));var z=l.next().value,M=l.next().value;l=_.b(_.AF("0px",void 0,"Mn8Uvf"));var Z=l.next().value,u=l.next().value;l=_.b(_.AF(0,void 0,"QQCIqc"));var d=l.next().value,g=l.next().value;l=_.b(_.AF(0,void 0,"HyEvh"));var w=l.next().value,n=l.next().value,k=function(){var N=E();if(N){var t;if(((t=_.gC())==null?void 0:t.getPlayerState())!==-1){N.style.display=
"inherit";var r;(r=_.gC())==null||r.removeEventListener("onStateChange",k)}c()}},y=function(){var N=document.querySelectorAll("video");
return Array.from(N).find(function(t){return t==null?void 0:t.style})},c=function(){var N=y();
if(N){g(N.getBoundingClientRect().width);n(N.getBoundingClientRect().height);var t;M((N==null?void 0:(t=N.style)==null?void 0:t.left)||"0px");var r;u((N==null?void 0:(r=N.style)==null?void 0:r.top)||"0px")}};
_.Gh(function(){var N=E();if(N){var t,r,D;if(((t=_.gC())==null?void 0:t.getPlayerState())===-1&&Math.round(((D=(r=_.gC())==null?void 0:r.getVideoAspectRatio())!=null?D:0)*100)!==Math.round(d()/w()*100)){N.style.display="none";var b2,$V;n(d()/(($V=(b2=_.gC())==null?void 0:b2.getVideoAspectRatio())!=null?$V:1))}}},"RdGxIf");
var f=function(){c()},P;
_.RU(function(){c();var N;if(!(O==null?0:(N=O())==null?0:N.transformationMatrix))throw Error("gm");var t;(t=_.gC())==null||t.addEventListener("onStateChange",k);if(window.ResizeObserver){if(N=y())P=new ResizeObserver(f),P.observe(N)}else window.addEventListener("resize",c);_.B3(function(){var r;(r=_.gC())==null||r.removeEventListener("onStateChange",k);P?P.disconnect():window.removeEventListener("resize",c)})});
var h=function(){var N,t,r=(t=O==null?void 0:(N=O())==null?void 0:N.transformationMatrix)!=null?t:[];N=d();t=w();for(var D=[],b2=0,$V=-1;b2<r.length;b2++)b2%3===0&&($V++,D[$V]=[]),D[$V].push(r[b2]);r=new zw(D);D=new zw([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);D=r.multiply(D);r=new zw([[0,0],[0,0],[0,0],[0,0]]);for(b2=0;b2<D.getSize().width;b2++){$V=bj(D,0,b2);var gT=bj(D,1,b2);if($V===null||gT===null)throw Error("fm`"+(b2+1).toString());MI(r,b2,0,$V*N);MI(r,b2,1,gT*t)}N=bj(r,0,0);b2=bj(r,1,0);t=bj(r,0,1);
$V=bj(r,1,1);if(N===null||b2===null||t===null||$V===null)throw Error("dm");D=o2C(N,b2,t,$V);gT=bj(r,3,0);r=bj(r,3,1);if(gT===null||r===null)throw Error("em");r=o2C(N,gT,t,r);$V=(Number(($V*-1).toFixed(2))-Number((t*-1).toFixed(2)))/(Number(b2.toFixed(2))-Number(N.toFixed(2)));gT=Math.atan($V)*180/Math.PI;b2=$V===Number.POSITIVE_INFINITY?-90:$V===Number.NEGATIVE_INFINITY?90:Object.is($V,-0)?180:$V===0?0:$V>0?gT*-1:N<b2?gT*-1:Math.abs(gT)+180;return"left:calc("+N+"px + "+z()+"); top:calc("+(t+"px + "+
Z()+"); width:")+(D+"px; height:")+(r+"px; transform:rotate(")+(b2+"deg);")};
return _.W(VP3,{root:"#sticker-layer"},function(){return _.W("yt-overlay-sticker",{el:_.zk(J),style:h,class:"ytOverlayStickerHost"},e)})},"Mi");var sGu=_.XO(function(l){function e(){var k,y,c,f,P=(y=_.I((k=u())==null?void 0:k.command,_.pp))==null?void 0:(c=y.item)==null?void 0:(f=c.notificationTextRenderer)==null?void 0:f.successResponseText;if(P)_.Wb(E.value,"yt-open-popup-action",[_.J$(P),E.value]);else if(d())$WO(d(),E.value);else{var h;$WO((h=u())==null?void 0:h.command,E.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var O=l.data;var E=_.e4("svg"),J=_.b(_.AF(!1,void 0,"T9Bq7b"));l=J.next().value;var z=J.next().value,M=_.b(_.AF(!1,void 0,"iMHq9c"));J=M.next().value;var Z=M.next().value,u=function(){var k;return _.I((k=O())==null?void 0:k.popUp,csf)},d=function(){var k;
return(k=O())==null?void 0:k.command},g=function(){return _.I(d(),_.mM)!==void 0};
M=_.pd(function(){e();return!1});
var w={},n={};return _.W("svg",{"on:mouseover":_.pd(function(){g()&&z(!0);Z(!0);return!1}),
"on:mouseout":_.pd(function(){z(!1);Z(!1);return!1}),
"on:keydown":_.pd(function(k){k.key==="Enter"&&e();return!1}),
"on:focus":_.pd(function(){g()&&z(!0);return!1}),
"on:blur":_.pd(function(){g()&&z(!1);return!1}),
el:E,tabindex:0,"aria-label":function(){var k;return(k=O())==null?void 0:k.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ax("ytPlayerOverlayInteractionInteractionsSvg",(w.ytPlayerOverlayInteractionInteractionsSvgHover=l,w),(n.ytPlayerOverlayInteractionInteractionsSvgHideOutline=J,n)),role:"button","on:click":M})},"Oi");_.Zw(_.XO(function(l){var e=l.data;_.RU(function(){var O;if((O=e())==null?0:O.trackingParams){var E;_.yN().graftServerVe((E=e().trackingParams)!=null?E:"")}});
return _.W("yt-player-overlay-interaction",null,_.W(Tzf,{region:function(){var O,E;return(O=e())==null?void 0:(E=O.regions)==null?void 0:E[0]}},_.W(sGu,Object.assign({},l))))},"Ni"),"yt-player-overlay-interaction",{props:{data:_.lB}});var ZR=function(){var l=_.B.apply(this,arguments)||this;l.showScrubber=!1;l.isWatchWhileMode=!1;l.enableRemixButton=_.a("web_enable_shorts_remix_handoff_ep");l.enableAnchoredPanel=_.a("desktop_shorts_v2_anchored_panel");l.enableNewStickers=_.a("use_shorts_sticker_overlay_web");l.anchoredPanelActive=!1;l.enableLivingroomLayout=_.a("reels_enable_livingroom_layout");l.enablePlayerMetadataContainer=_.a("reels_web_enable_metadata_container");l.enableSqueezebackPanels=_.a("web_shorts_enable_squeezeback_panels");
l.useAspectRatio=_.a("web_use_aspect_ratio");l.isSqueezebackActive=!1;l.smallScreenSqueezeback=!1;l.isPlayerStarted=!1;l.overlayDensity=0;l.isOverlay=!1;l.isImmersive=!1;l.isImmersiveHorizontal=!1;l.isFullscreen=!1;l.onWindowResized=function(){var e;l.set("isImmersive",((e=window.getComputedStyle(l.hostElement))==null?void 0:e.getPropertyValue("--immersive-mode-on"))==="1");l.set("isImmersiveHorizontal",l.isImmersive&&l.enableLivingroomLayout&&!l.isWatchWhileMode)};
return l};
_.m(ZR,_.B);_.X=ZR.prototype;_.X.updateIsOverlay=function(l){this.isOverlay=l.detail.value};
_.X.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.a("web_enable_flexible_overlay")||_.a("web_enable_format_first")||_.a("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.X.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.X.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.X.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.X.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.X.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.X.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.X.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.oy("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.oy("reels_action_justified_content")||"flex-start")};
_.X.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.X.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.ml("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.ml("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.ml("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.ml("SHARE_LABEL",
void 0,"Share")}}});_.a("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.ml("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()};
_.X.setEmptyOverlayMetadata=function(){_.a("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}))};
_.Ji.Object.defineProperties(ZR.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.infoPanel)}}});
ZR.prototype.onIsActiveChanged=ZR.prototype.onIsActiveChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ZR.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ZR.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],ZR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],ZR.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],ZR.prototype,"isActive",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],ZR.prototype,"hidden",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],ZR.prototype,"useShortsIcon",void 0);_.L([_.T({value:"left"}),_.q("design:type",String)],ZR.prototype,"buttonTooltipPosition",void 0);
_.L([_.T({value:_.a("reels_enable_livingroom_layout")?"top":"left"}),_.q("design:type",String)],ZR.prototype,"likeButtonTooltipPosition",void 0);_.L([_.T({value:"none"}),_.q("design:type",String)],ZR.prototype,"textTransform",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"showScrubber",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"isWatchWhileMode",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.infoPanel"),_.q("design:type",Object),_.q("design:paramtypes",[])],ZR.prototype,"hasInfoPanel",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"enableRemixButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"enableAnchoredPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"enableNewStickers",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"anchoredPanelActive",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"enableLivingroomLayout",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ZR.prototype,"enablePlayerMetadataContainer",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"enableSqueezebackPanels",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"useAspectRatio",void 0);_.L([_.T({selector:_.FTL,reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"isSqueezebackActive",void 0);_.L([_.T({selector:JsC,reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"smallScreenSqueezeback",void 0);_.L([_.T({selector:X$4}),_.q("design:type",Object)],ZR.prototype,"isPlayerStarted",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"overlayDensity",void 0);_.L([_.T(),_.q("design:type",Object)],ZR.prototype,"isOverlay",void 0);_.L([_.T({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.q("design:type",Boolean)],ZR.prototype,"isShortsOverlay",void 0);_.L([_.T(),_.q("design:type",Object)],ZR.prototype,"isImmersive",void 0);_.L([_.T(),_.q("design:type",Object)],ZR.prototype,"isImmersiveHorizontal",void 0);
_.L([_.T({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.q("design:type",Boolean)],ZR.prototype,"isShortsImmersive",void 0);_.L([_.T({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.q("design:type",Object)],ZR.prototype,"buttonOverride",void 0);_.L([_.T({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.q("design:type",Object)],ZR.prototype,"actionBarButtonOverride",void 0);
_.L([_.T({selector:_.mI,reflectToAttribute:!0}),_.q("design:type",Object)],ZR.prototype,"isFullscreen",void 0);_.L([_.AA("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ZR.prototype,"onIsActiveChanged",null);_.L([_.U({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],ZR);
_.Y(ZR,"ytd-reel-player-overlay-renderer",function(){if(fou!==void 0)return fou;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return fou=l},{mode:1});var Gdh;var uj=function(){var l=_.B.apply(this,arguments)||this;l.videoDuration=0;l.playedTime=0;l.isActive=!1;l.JSC$19739_playerEvents=new Map;return l};
_.m(uj,_.B);_.X=uj.prototype;_.X.created=function(){this.JSC$19739_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19739_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.X.attached=function(){this.getPlayerAndInitializeListeners()};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19739_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.id(this,this.onPageChanged))};
_.X.getPlayerAndInitializeListeners=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return e=_.bV(),e?_.C(O,e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.id(l,l.onPageChanged)),O.jumpTo(0));l.player=O.yieldResult;l.initializePlayerListeners();_.Cl(O)})};
_.X.onPageChanged=function(l){var e=this;return _.V(function(O){if(O.nextAddress==1)return l.detail.newPageType!=="ytd-shorts"?O.return():_.C(O,_.Mc().getPlayerPromise(),2);e.player=O.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.id(e,e.onPageChanged));_.Cl(O)})};
_.X.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19739_playerEvents)};
_.X.onVideoDataChange=function(l){var e=this;return _.V(function(O){if(!e.player||l.type!=="newdata")return O.return();e.videoDuration=_.a("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(l.playertype).seekableEnd:e.player.getDuration(l.playertype);e.playedTime=0;_.Cl(O)})};
_.X.onVideoProgress=function(l){var e=this,O,E;return _.V(function(J){if(!e.player)return J.return();O=e.player.getPresentingPlayerType();E=e.player.getPlayerState();e.videoDuration=_.a("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(O).seekableEnd:e.player.getDuration(O);e.playedTime=E===0?e.videoDuration:l;_.Cl(J)})};
_.X.getPercentPlayed=function(l,e){return l?_.hc(e/l,0,1):0};
_.Ji.Object.defineProperties(uj.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 l="";return l=this.videoDuration&&this.playedTime?l+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):l+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],uj.prototype,"componentBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],uj.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],uj.prototype,"player",void 0);_.L([_.T(),_.q("design:type",Object)],uj.prototype,"videoDuration",void 0);_.L([_.T(),_.q("design:type",Object)],uj.prototype,"playedTime",void 0);_.L([_.T(),_.q("design:type",Object)],uj.prototype,"isActive",void 0);
_.L([_.R("videoDuration","playedTime"),_.q("design:type",Number),_.q("design:paramtypes",[])],uj.prototype,"percentPlayed",null);_.L([_.R("videoDuration","playedTime"),_.q("design:type",Object),_.q("design:paramtypes",[])],uj.prototype,"percentPlayedStyle",null);_.L([_.R("videoDuration","isActive"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],uj.prototype,"hideProgressBar",null);
_.Y(uj,"ytd-progress-bar-line",function(){if(Gdh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);Gdh=l}l=Gdh;return l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var Bzu;_.Zw(_.NGu,"ytm-closed-captioning-button",{props:{captionIconType:_.lB,onClick:_.Vh,ariaLabel:_.lB,ariaPressed:_.lB,isOverlay:_.Vh,isModern:_.Vh}});_.Zw(_.ZJo,"desktop-shorts-volume-controls",{props:{orientation:_.lB}});var CX=function(){var l=_.B.apply(this,arguments)||this;l.playerState=null;l.isMuted=!1;l.shortsModernControlsEnabled=_.a("web_shorts_modern_controls");l.volumeControlsOrientationState=_.a("web_shorts_modern_controls")?"vertical_down":"horizontal_right";l.isOverlay=!0;l.captionIconType=-1;l.ariaLabel="";l.overlayDensity=0;l.JSC$19742_playerEvents=new Map;l.onClosedCaptionsButtonClick=function(){l.player&&_.Go(l.player)&&(l.player.toggleSubtitles(),l.updateCaptionIconType())};
return l};
_.m(CX,_.B);_.X=CX.prototype;_.X.created=function(){this.JSC$19742_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19742_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19742_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.X.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.sL(28662);this.playPauseButtonClientVE=_.sL(36842);this.fullscreenButtonToggleOffClientVE=_.sL(222256);this.fullscreenButtonToggleOnClientVE=_.sL(222257);var l=_.P9(),e=_.B9();l&&e&&(_.a("combine_ve_grafts")?(_.$w(_.yN(),this.muteButtonClientVE,e),_.$w(_.yN(),this.playPauseButtonClientVE,e)):_.Sj(l,e,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.X.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19742_playerEvents),this.player=null)};
_.X.updateCaptionIconType=function(){var l=-1,e=void 0,O=_.ml("CLOSED_CAPTIONS_DISABLED");this.player&&_.Go(this.player)&&(_.TGF(this.player)?(e=!0,O=_.ml("CLOSED_CAPTIONS_ON"),l=1):(e=!1,O=_.ml("CLOSED_CAPTIONS_OFF"),l=0));this.captionIconType=l;this.ariaPressedState=e;this.ariaLabel=O};
_.X.getPlayerAndInitializeListeners=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return e=_.bV(),e?_.C(O,e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.id(l,l.onPageChanged)),O.jumpTo(0));l.player=O.yieldResult;l.initializePlayerListeners();_.Cl(O)})};
_.X.onPageChanged=function(l){var e=this;return _.V(function(O){if(O.nextAddress==1)return l.detail.newPageType!=="ytd-shorts"?O.return():_.C(O,_.Mc().getPlayerPromise(),2);e.player=O.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.id(e,e.onPageChanged));_.Cl(O)})};
_.X.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19742_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.X.onPlayerStateChange=function(l){this.playerState=l};
_.X.onPlayerVolumeChange=function(l){this.isMuted=l.muted};
_.X.onPlayPauseButtonClick=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,_.Mc().getPlayerPromise(),2);e=E.yieldResult;(O=_.P9())&&l.playPauseButtonClientVE&&_.On(O,l.playPauseButtonClientVE);e.getPlayerState()!==1?e.playVideo():e.pauseVideo();_.Cl(E)})};
_.X.computePlayPauseIcon=function(l){return l===2||l===-1||l===5?_.a("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.a("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.a("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.X.computeFullscreenLabel=function(l){return l?_.ml("FULLSCREEN_EXIT_LABEL"):_.ml("FULLSCREEN_ENTER_LABEL")};
_.X.computePlayPauseLabel=function(l){return l===1||l===3?_.ml("PLAYER_LABEL_PAUSE"):_.ml("PLAYER_LABEL_PLAY")};
_.X.onMuteButtonClick=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,_.Mc().getPlayerPromise(),2);e=E.yieldResult;(O=_.P9())&&l.muteButtonClientVE&&_.On(O,l.muteButtonClientVE);e.isMuted()?e.unMute(!0):e.mute(!0);_.Cl(E)})};
_.X.computeMuteIcon=function(l){return l?"miniplayer:volume-off":"miniplayer:volume-up"};
_.X.computeMuteLabel=function(l){return l?_.ml("PLAYER_LABEL_UNMUTE"):_.ml("PLAYER_LABEL_MUTE")};
_.X.onFullscreenButtonClick=function(){var l=_.P9();l&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.On(l,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.On(l,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.OvC()};
_.Ji.Object.defineProperties(CX.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var l=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(){l.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.a("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.a("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.a("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.a("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],CX.prototype,"componentBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],CX.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],CX.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"player",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"playerState",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"isMuted",void 0);
_.L([_.T({computed:"computePlayPauseIcon(playerState)"}),_.q("design:type",String)],CX.prototype,"playPauseIcon",void 0);_.L([_.T({computed:"computeMuteIcon(isMuted)"}),_.q("design:type",String)],CX.prototype,"muteIcon",void 0);_.L([_.T({selector:_.mI}),_.q("design:type",Boolean)],CX.prototype,"isFullscreen",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CX.prototype,"shortsModernControlsEnabled",void 0);
_.L([_.T(),_.q("design:type",Object)],CX.prototype,"volumeControlsOrientationState",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"isOverlay",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"captionIconType",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"ariaLabel",void 0);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"ariaPressedState",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],CX.prototype,"overlayDensity",void 0);
_.L([_.R("playerState"),_.q("design:type",Object),_.q("design:paramtypes",[])],CX.prototype,"playPauseButtonData",null);_.L([_.R("isFullscreen"),_.q("design:type",Object),_.q("design:paramtypes",[])],CX.prototype,"fullscreenButtonData",null);_.L([_.T(),_.q("design:type",Object)],CX.prototype,"onClosedCaptionsButtonClick",void 0);_.L([_.R("isFullscreen"),_.q("design:type",String),_.q("design:paramtypes",[])],CX.prototype,"fullscreenIcon",null);
_.Y(CX,"ytd-shorts-player-controls",function(){if(Bzu===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);Bzu=l}l=Bzu;return l},{mode:1});var PhC;_.Zw(_.$IF,"yt-interstitial-view-model",{props:{data:_.lB}});var UWF=_.XO(function(l){var e=l.data;return _.W("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.W("h1",{class:"reelWatchBreakViewModelHostTitle"},_.W(_.zK,{text:function(){return e().title}})),_.W("h2",{class:"reelWatchBreakViewModelHostBody"},_.W(_.zK,{text:function(){return e().body},
isOverlay:!0})),_.W(_.Tn,{data:function(){return e().buttons}},{buttonViewModel:function(O,E){return _.W("div",{class:function(){return E()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.W(_.hM,{data:O.data}))}}))},"Pi");
UWF.idomCompat=!0;_.Zw(UWF,"reel-watch-break-view-model",{props:{data:_.lB}});var o8=function(){return _.B.apply(this,arguments)||this};
_.m(o8,_.B);o8.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}}};
_.Ji.Object.defineProperties(o8.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.I((l=this.data)==null?void 0:l.renderer,mWC)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.I((l=this.data)==null?void 0:l.renderer,ysz)}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],o8.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],o8.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],o8.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.renderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],o8.prototype,"isSurvey",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.renderer"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],o8.prototype,"isInterstitialViewModel",null);_.L([_.U({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],o8);
_.Y(o8,"ytd-reel-non-video-content-renderer",function(){if(PhC!==void 0)return PhC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return PhC=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var Y2H;_.Zw(_.VOf,"desktop-shorts-player-controls",{});var $X=function(){var l=_.B.apply(this,arguments)||this;l.isPlayerPaused=!1;l.isPlayerStarted=!1;l.showPlayerControls=!1;l.showScrubber=!1;l.autoHideJobId=0;l.modern=_.a("web_button_rework");l.overlayType=_.oy("web_shorts_expanded_overlay_type");l.panelData=void 0;l.isWatchWhileMode=!1;l.hasError=!1;l.panelShowDelayMs=1;l.scrubberComponent={};l.isFullscreen=!1;l.shouldHideOverlay=!1;l.enableAnchoredPanel=_.a("desktop_shorts_v2_anchored_panel");l.enablePersistentAnchoredPanel=_.a("desktop_shorts_v2_persistent_anchored_panel");
l.hideWatchWhilePanel=_.a("web_shorts_hide_watch_while_panel");l.useAspectRatio=_.a("web_use_aspect_ratio");l.isPersistentPanelActive=!1;l.anchoredPanelActive=!1;l.isShortsPipActive=!1;l.smallScreenSqueezeback=!1;l.enableFlexibleOverlay=_.a("web_enable_flexible_overlay");l.overlayDensity=0;l.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};l.onWindowResized=function(){_.rP(l,
"calculateOverlayDensity",function(){l.calculateOverlayDensity()},100)};
return l};
_.m($X,_.B);_.X=$X.prototype;_.X.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.X.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.X.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var l=_.V2().resolve(_.ye);this.isWatchWhileMode&&(_.a("web_enable_shorts_new_carousel")?_.UD.addJob(function(){l.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):l.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.X.handleShowReelsCommentsOverlayCommand=function(l){l=_.I(l,jGh);this.isActive&&(l==null?0:l.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))};
_.X.updateEngagementPanelVisibility=function(l,e){l&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:e?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:l}})};
_.X.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.X.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.V2().resolve(_.I3).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.X.handleWatchWhilePanelScrimClick=function(){var l=_.V2().resolve(_.ye);this.activeWatchWhilePanel&&(l.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.X.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.X.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.a("web_enable_shorts_new_carousel")?0:void 0}}};
_.X.handlePlayerClick=function(l){var e=this,O,E;if((E=(O=window).matchMedia)!=null&&E.call(O,"(any-pointer: coarse)").matches||!l)this.showPlayerControls=!0,_.UD.cancelJob(this.autoHideJobId),this.autoHideJobId=_.fZ(_.UD,function(){e.showPlayerControls=!1},4E3)};
_.X.isFirstReel=function(){return this.index===0};
_.X.handleMouseenter=function(){_.UD.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.X.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.X.handleScrubberEnter=function(){this.showScrubber=!0};
_.X.handleScrubberLeave=function(){this.showScrubber=!1};
_.X.maybeLogNonDefaultAspectRatio=function(){var l;(l=this.data)!=null&&l.thumbnail&&this.isActive&&.5625!==E23(this.data.thumbnail)&&_.YXt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.X.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var l=document.querySelector("#shorts-container");if(l){l=l.offsetWidth/2-this.playerContainer.offsetWidth/2;l=l>=368?1:l>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&l===1&&(l=0);this.isPersistentPanelActive&&(l=0);window.innerWidth<=599&&(l=2);this.overlayDensity=l;var e;(e=this.onOverlayDensityChanged)==null||e.call(this,this.index,this.overlayDensity)}}};
_.X.onOverlayDensityChange=function(){var l;(l=this.onOverlayDensityChanged)==null||l.call(this,this.index,this.overlayDensity);(l=_.ud(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&l.set("overlayDensity",this.overlayDensity);if(l=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))l.overlayDensity=this.overlayDensity};
_.X.isVideoContent=function(l){_.V2().resolve(_.I3);return!!_.I(l,_.jT)};
_.X.isNonVideoContent=function(l){_.V2().resolve(_.I3);return!!_.I(l,_.PC)};
_.X.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Ji.Object.defineProperties($X.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var l,e;return _.a("web_enable_format_first")||((l=this.data)==null?void 0:l.adsOverlay)&&_.a("web_enable_format_first_ads_only")||((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer)&&_.a("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var l;return!this.isActive||!this.isPlayerStarted||(l=this.data)!=null&&l.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.data)==null?0:l.command)&&this.isVideoContent(this.data.command)){var e,O;if(((e=this.data)==null?0:e.adsOverlay)&&Object.keys((O=this.data)==null?void 0:O.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var E,J;if(((E=this.data)==null?0:E.reelPlayerOverlayRenderer)&&Object.keys((J=this.data)==null?void 0:J.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
$X.prototype.onOverlayDensityChange=$X.prototype.onOverlayDensityChange;$X.prototype.calculateOverlayDensity=$X.prototype.calculateOverlayDensity;$X.prototype.maybeLogNonDefaultAspectRatio=$X.prototype.maybeLogNonDefaultAspectRatio;$X.prototype.onEngagementPanelsChanged=$X.prototype.onEngagementPanelsChanged;$X.prototype.onScrubberDataChange=$X.prototype.onScrubberDataChange;$X.prototype.updateShouldHideOverlay=$X.prototype.updateShouldHideOverlay;
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$X.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],$X.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],$X.prototype,"index",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$X.prototype,"isActive",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],$X.prototype,"isHiddenInDom",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"isPlayerPaused",void 0);_.L([_.T({selector:X$4}),_.q("design:type",Object)],$X.prototype,"isPlayerStarted",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"showPlayerControls",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"showScrubber",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"autoHideJobId",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"overlayType",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],$X.prototype,"ytdReduxBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],$X.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"watchWhileEngagementPanels",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"panelData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"isWatchWhileMode",void 0);_.L([_.T(),_.q("design:type",String)],$X.prototype,"activeWatchWhilePanel",void 0);
_.L([_.T(),_.q("design:type",Object)],$X.prototype,"hasError",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"panelShowDelayMs",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"scrubberComponent",void 0);_.L([_.T({selector:_.mI,reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"isFullscreen",void 0);_.L([_.T(),_.q("design:type",Object)],$X.prototype,"shouldHideOverlay",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"enableAnchoredPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"enablePersistentAnchoredPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"hideWatchWhilePanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"useAspectRatio",void 0);
_.L([_.T({selector:_.FTL,reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"isPersistentPanelActive",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"anchoredPanelActive",void 0);_.L([_.T({selector:_.yP,reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"isShortsPipActive",void 0);_.L([_.T({selector:JsC,reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"smallScreenSqueezeback",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],$X.prototype,"enableFormatFirst",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"enableFlexibleOverlay",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$X.prototype,"overlayDensity",void 0);_.L([_.T(),_.q("design:type",Function)],$X.prototype,"onOverlayDensityChanged",void 0);
_.L([_.T(),_.R("isActive","hasError"),_.q("design:type",Object),_.q("design:paramtypes",[])],$X.prototype,"shouldRenderPlayerElements",null);_.L([_.T(),_.R("isActive","isWatchWhileMode"),_.q("design:type",Object),_.q("design:paramtypes",[])],$X.prototype,"watchWhileOrPersistentActive",null);_.L([_.AA("isActive","hasError","showingExpandedOverlay"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$X.prototype,"updateShouldHideOverlay",null);
_.L([_.T({reflectToAttribute:!0}),_.R("isActive","isPlayerStarted","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],$X.prototype,"shouldRenderScrubber",null);_.L([_.AA("shouldRenderScrubber"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$X.prototype,"onScrubberDataChange",null);_.L([_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.q("design:type",Object),_.q("design:paramtypes",[])],$X.prototype,"overlayComponent",null);
_.L([_.AA("watchWhileEngagementPanels"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$X.prototype,"onEngagementPanelsChanged",null);_.L([_.aB("#player-container"),_.q("design:type",HTMLElement)],$X.prototype,"playerContainer",void 0);_.L([_.aB("#cinematic-container"),_.q("design:type",HTMLElement)],$X.prototype,"cinematicContainer",void 0);
_.L([_.AA("isPersistentPanelActive","data.thumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$X.prototype,"maybeLogNonDefaultAspectRatio",null);_.L([_.AA("isPersistentPanelActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$X.prototype,"calculateOverlayDensity",null);_.L([_.AA("overlayDensity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$X.prototype,"onOverlayDensityChange",null);
_.L([_.U({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],$X);
_.Y($X,"ytd-reel-video-renderer",function(){if(Y2H!==void 0)return Y2H;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Y2H=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var Wg=function(){var l=_.B.apply(this,arguments)||this;l.isPreviousPageShorts=!1;l.index=0;l.delayedActiveIndex=0;l.playablePreviousIndex=null;l.isPlayerPaused=!1;l.isPlayerStarted=!1;l.intersectionObserverThreshold=.6;l.fitToVisibleBounds=!1;l.pageSubtype="shorts";l.enablePreviousContinuation=_.a("shorts_in_playlists_web");l.shortsPipEnabled=_.a("web_shorts_pip");l.isDark=document.documentElement.hasAttribute("dark");l.shortsViewTransitions=_.a("web_shorts_view_transitions");l.isFullscreen=!1;l.isShortsPipActive=
!1;l.buttonOverride={iconPosition:"icon-only",size:"XL"};l.anchoredPanelActive=!1;l.isActive=!1;l.smallScreenPersistentPanel=!1;l.isPersistentPanelActive=!1;l.smallScreenSqueezeBack=!1;l.enableScrollIntoViewCenter=_.a("web_scroll_into_view_center");l.formatFirst=_.a("web_enable_format_first")||_.a("web_enable_format_first_ads_only")||_.a("web_enable_format_first_organic_only");l.enableFlexibleOverlay=_.a("web_enable_flexible_overlay");l.useAspectRatio=_.a("web_use_aspect_ratio");l.isShortsInitialized=
!1;l.hidePreviousButtonImmediately=!1;l.showPreviousButtonImmediately=!1;l.endOfNextContinuation=!1;l.currentPlayerIndex=0;l.nextReelVe=_.sL(56921);l.prevReelVe=_.sL(56922);l.loopToggleOffVe=_.sL(198013);l.loopToggleOnVe=_.sL(198014);l.ambientModeToggleVe=_.sL(227860);l.reelPlayerPausedStateRendererVe=_.sL(141313);l.storedPlaybackSpeed=null;l.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"};l.onOverlayDensityChanged=function(e,O){var E;(E=l.getActiveReelVideo(e))==null||E.setAttribute("overlay-density",String(O))};
return l};
_.m(Wg,_.B);_.X=Wg.prototype;
_.X.deflateInactivePreviousSlides=function(){var l=_.Cv("web_shorts_deflate_inactive_slides_aggressive_distance");if(l>0&&this.shortsProcessedSequence&&this.activeIndex){l=this.activeIndex-l;for(var e=0;e<=l;e++){var O=void 0;((O=this.shortsProcessedSequence[e].reelPlayerOverlayRenderer)==null?0:O.metapanel)&&this.set("shortsProcessedSequence."+e+".reelPlayerOverlayRenderer",{});O=void 0;((O=this.shortsProcessedSequence[e].adsOverlay)==null?0:O.adSlotMetadata)&&this.set("shortsProcessedSequence."+e+
".adsOverlay",{})}}};
_.X.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.X.onResize=function(){var l=_.Om(),e=l.dispatch,O=this.calculateIsSmallWidth();e.call(l,_.oM({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:O}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.X.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:_.a("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.X.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var l=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,e=l,O=0;l<250&&(e=l+this.shortsInnerContainer.clientWidth,O=24);_.dP(this.hostElement,{"--ytd-shorts-header-width":e+"px","--ytd-shorts-top-spacing":O+"px"})}};
_.X.isFirstShorts=function(l){return l?this.index===-l.length:this.index===0};
_.X.isActiveReel=function(l,e,O){O&&(e=this.calculatePrevIndex(e,O));return l===e};
_.X.onFullscreenChange=function(){if(_.a("web_fullscreen_shorts")){var l;(l=this.getActiveReelVideo(this.activeIndex))==null||l.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.V2().resolve(_.NJ).close(!0)}};
_.X.engagementPanelsChanged=function(){var l;this.watchWhileEngagementPanels=(l=this.data)==null?void 0:l.engagementPanels};
_.X.unregisterPanels=function(){var l=_.V2().resolve(_.ye);if(this.watchWhileEngagementPanels)for(var e=_.b(this.watchWhileEngagementPanels),O=e.next();!O.done;O=e.next()){var E=void 0,J=void 0;O=(E=O.value.engagementPanelSectionListRenderer)==null?void 0:(J=E.identifier)==null?void 0:J.tag;l&&O&&l.panelMap.delete(O)}};
_.X.isVideoContent=function(l){return this.isVideoContentCommand(l==null?void 0:l.command)};
_.X.getActiveReelVideo=function(l){return _.ud(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+l+'"]')};
_.X.calculatePrevIndex=function(l,e){return e?l-((e==null?void 0:e.length)||0):-1};
_.X.onKeydown=function(l){var e=_.ey(l)||[];if(!_.lhf(e))if(l.code==="ArrowUp")l.preventDefault(),this.handlePrevButtonClick();else if(l.code==="ArrowDown")l.preventDefault(),this.handleNextButtonClick();else if(l.code==="KeyM")this.toggleMuteUnmuteVideo();else if(l.code==="KeyK"||l.code==="Space")this.togglePlayPauseVideo();else if((l.code==="KeyA"||l.code==="ArrowLeft")&&_.a("web_shorts_keyboard_enable_seek_shortcuts")){var O;(O=this.player)==null||O.seekBy(-5)}else if((l.code==="KeyD"||l.code===
"ArrowRight")&&_.a("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var E;(E=this.player)==null||E.seekBy(5)}};
_.X.onServiceRequestCompleted=function(l,e){l=e.data;l.continuationEndpoint&&l.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:l.entries,continuationEndpoint:l.continuationEndpoint}}):l.prevContinuationEndpoint&&l.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:l.prevEntries,prevContinuationEndpoint:l.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.X.handleEngagementPanelVisibilityChanged=function(l,e){var O=_.V2().resolve(_.ye);if(l&&O){var E,J=((E=l.identifier)==null?void 0:E.tag)||l.panelIdentifier||l.targetId;if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==J){O.hidePanel(this.activePanel);var z;this.activePanel=((z=l.identifier)==null?void 0:z.tag)||l.panelIdentifier}else this.isPersistentPanelActive=!0,_.Om().dispatch(iV4(!0)),this.anchoredPanelActive=!0,this.activePanel=J;else e==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===J&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Om().dispatch(iV4(!1)))}};
_.X.handlePanelScrimClick=function(){var l=_.V2().resolve(_.ye);this.activePanel&&(l.hidePanel(this.activePanel),_.Om().dispatch(iV4(!1)))};
_.X.getShortsLoopSetting=function(){var l,e,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return _.a("kevlar_shorts_auto_advance")?_.C(z,_.HJ.getInstance(),2):z.return(!0);case 2:return(l=z.yieldResult)?_.C(z,l.get("sfvles"),3):z.return(!0);case 3:return O=(e=z.yieldResult)!=null?e:!1,_.C(z,l.get("sfvle"),4);case 4:return J=(E=z.yieldResult)!=null?E:!0,O?z.return(J):z.return(!0)}})};
_.X.handleSignalActionToggleLoopShortsOff=function(){var l=this,e,O,E;return _.V(function(J){switch(J.nextAddress){case 1:if(!l.player)return J.return();l.player.setLoopVideo(!1);e=_.yN();_.dn(e,l.loopToggleOffVe);return _.C(J,_.HJ.getInstance(),2);case 2:return(O=J.yieldResult)?_.C(J,O.set("sfvle",!1),3):J.return();case 3:return _.C(J,O.set("sfvles",!0),4);case 4:E=_.Kz(),_.jj(0,203,!1),_.jj(0,204,!0),E.save(),_.Cl(J)}})};
_.X.handleSignalActionToggleLoopShortsOn=function(){var l=this,e,O,E;return _.V(function(J){switch(J.nextAddress){case 1:if(!l.player)return J.return();l.player.setLoopVideo(!0);e=_.yN();_.dn(e,l.loopToggleOnVe);return _.C(J,_.HJ.getInstance(),2);case 2:return(O=J.yieldResult)?_.C(J,O.set("sfvle",!0),3):J.return();case 3:return _.C(J,O.set("sfvles",!0),4);case 4:E=_.Kz(),_.jj(0,203,!0),_.jj(0,204,!0),E.save(),_.Cl(J)}})};
_.X.handleSignalActionToggleCinematicShortsOn=function(){OVz(!0);var l;(l=this.JSC$19766_cinematicController)==null||_.QR4(l,!0);_.dn(_.yN(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.X.handleSignalActionToggleCinematicShortsOff=function(){OVz(!1);var l;(l=this.JSC$19766_cinematicController)==null||_.QR4(l,!1);_.dn(_.yN(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.X.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.X.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.X.unhideCurrentOverlay=function(){if(this.overlayContainer){var l=this.overlayContainer.querySelector("#experiment-overlay");l&&_.UD.addLowPriorityJob(function(){l.style.display="unset"},100)}};
_.X.getCurrentShort=function(){if(this.currentEndpoint){var l=this.currentEndpoint;if(this.isNonVideoContentCommand(l)){var e=_.I(l,_.PC);return{reelNonVideoContentRenderer:_.I(e==null?void 0:e.renderer,_.tqR),command:l}}if(this.data){var O;e=(O=_.I(this.currentEndpoint,_.jT))==null?void 0:O.thumbnail;var E;O=(E=this.data.overlay)==null?void 0:E.reelPlayerOverlayRenderer;_.V2().resolve(_.I3);l=this.data;var J,z;E=(J=l.overlay)==null?void 0:(z=J.shortsAdsRenderer)==null?void 0:z.adSlots;if(E!==void 0)E.length===
0?(_.VP("Shorts ads returned no ad slots."),l=void 0):(E.length>1&&_.VP("Shorts ads has more than one ad slots."),l=_.I(E[0],_.ILi));else{var M,Z;l=_.I((M=l.overlay)==null?void 0:(Z=M.shortsAdsRenderer)==null?void 0:Z.overlay,_.ILi)}M=l;l=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.I(this.currentEndpoint,_.jT),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:O,thumbnail:e,command:l,adsOverlay:M}}}};
_.X.created=function(){var l=this;this.scrollToVideoThrottle=new _.b3(function(e){var O;(O=l.getActiveReelVideo(e))==null||O.scrollIntoView({behavior:"smooth",block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.b3(function(e){var O;(O=l.getActiveReelVideo(e))==null||O.scrollIntoView({behavior:"auto",block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.X.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.X.attached=function(){var l=this;dW4(this);this.pageScrollElement=_.ud(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.id(this,this.processResetAction));_.a("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.a("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var e=l.getActiveReelVideo(l.activeIndex);
l.maybeCreateIntersectionObserver();e==null||e.scrollIntoView({behavior:"instant",block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"});l.shortsContainer.style.overflowY="scroll"}))};
_.X.calculateSqueezebackPanelSize=function(){var l=this,e=window.innerWidth-456-(window.innerHeight-106)*.5625;_.UD.addLowPriorityJob(function(){e<360?_.Om().dispatch(w$0(!0)):(l.hostElement.style.setProperty("--anchored-panel-width",Math.min(e,480)+"px"),_.Om().dispatch(w$0(!1)))})};
_.X.detached=function(){var l=_.V2().resolve(_.I3);l.rootElement=void 0;var e;(e=l.unsubscribeFromStore)==null||e.call(l);l.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.id(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.X.onResizeFinished=function(l,e){var O=this,E=new ResizeObserver(function(){O.shortsContainer.style.overflowY="hidden";_.UD.addLowPriorityJob(function(){e()},100)});
E.observe(l);return E};
_.X.resetDocumentScrollTop=function(){var l,e;if((l=document)==null?0:(e=l.scrollingElement)==null?0:e.scrollTop)document.scrollingElement.scrollTop=0};
_.X.loadPage_=function(l){var e=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),l){var O;if((O=_.I(this.currentEndpoint,_.jT))==null?0:O.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=l;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){e.isPlayerStarted&&
(e.handleOnPlaybackCommand(),e.afterPlayerStarted=function(){})};
this.registerPanel(l)}};
_.X.afterPlayerStarted=function(){};
_.X.handleOnPlaybackCommand=function(){if(_.a("web_shorts_comment_stickers")&&this.isPlayerStarted){var l,e=(l=_.I(this.currentEndpoint,_.jT))==null?void 0:l.onPlaybackCommand;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.X.maybeCreateIntersectionObserver=function(){var l=this,e=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==e){this.intersectionObserverThreshold=e;var O={rootMargin:"0px",threshold:e},E;(E=this.intersectionObserver)==null||E.disconnect();this.intersectionObserver=new IntersectionObserver(function(J){J=_.b(J);for(var z=J.next();!z.done;z=J.next())if(z=z.value,z.intersectionRatio>e){z=Number(z.target.id);if(isNaN(z))break;if(z===l.index)break;
_.eoW();l.loadVideo(z);_.Lz("r_vtc")}},O);
this.observeShorts()}};
_.X.observeShorts=function(){var l=[].concat(_.kA(_.ud(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;var O=void 0;(O=this.intersectionObserver)==null||O.observe(e)}};
_.X.initCsi=function(){_.mv("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var l={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},e,O;if((e=this.playerData)==null?0:(O=e.cacheMetadata)==null?0:O.isCacheHit)l.isCacheHit=!0;var E;if(e=(E=_.I(this.currentEndpoint,_.jT))==null?void 0:
E.prefetchTaskId)l.prefetchInfo={taskId:e};_.Pb(l)};
_.X.isAd=function(){var l,e;return!!((l=_.I(this.currentEndpoint,_.jT))==null?0:(e=l.adClientParams)==null?0:e.isAd)};
_.X.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.X.getPlayerContainer=function(){var l;return(l=_.ud(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:l.playerContainer};
_.X.onPlayerStateChange=function(l){var e=this;this.isPlayerPaused=l===2;l!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?l===1&&this.index===0&&(this.isPlayerStarted||_.Om().dispatch(Xp(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Om().dispatch(Xp(!0)));this.player&&!this.player.getLoopVideo()&&_.UD.addLowPriorityJob(function(){e.getShortsLoopSetting().then(function(O){var E;(E=e.player)==null||E.setLoopVideo(O)})});
this.isPlayerPaused&&_.a("web_shorts_paused_state_logging")&&_.xu(_.P9(),[this.reelPlayerPausedStateRendererVe])};
_.X.isInBackground=function(){var l=window.document.visibilityState;return!(!l||l==="visible")};
_.X.isShortPlayable=function(){if(_.a("kevlar_playable_short_killswitch"))return!0;var l;return(l=this.playerData)!=null&&l.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.X.setNormalPlaybackSpeed=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.getPlayer().getPlayerPromise(),2);e=E.yieldResult;O=e.getPlaybackRate();O!==1&&(l.storedPlaybackSpeed=O,e.setPlaybackRate(1));_.Cl(E)})};
_.X.restorePlaybackSpeed=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1)return l.storedPlaybackSpeed===null?O.jumpTo(0):_.C(O,l.getPlayer().getPlayerPromise(),3);e=O.yieldResult;e.setPlaybackRate(l.storedPlaybackSpeed);l.storedPlaybackSpeed=null;_.Cl(O)})};
_.X.playerDataChanged=function(){var l=this,e,O,E,J,z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1){e=l.getPlayer();_.a("web_shorts_dynamic_intersection_observer_threshold")&&((O=l.intersectionObserver)==null||O.disconnect());if(l.playerData){if(((E=l.playerData.videoDetails)==null?void 0:E.videoId)!==((J=e.getPlayer())==null?void 0:J.getVideoData().video_id)){z={};if(M=_.I(l.currentEndpoint,_.jT))z.watch_endpoint=M,M.endTimeSeconds&&(z.end=M.endTimeSeconds);e.loadVideoWithPlayerResponse(l.playerData,
z)}}else return g.return();return l.player?g.jumpTo(2):_.C(g,e.getPlayerPromise(),3)}g.nextAddress!=2&&(l.player=g.yieldResult,l.JSC$19766_playerStateChangeListener=l.onPlayerStateChange.bind(l),l.player.addEventListener("onStateChange",l.JSC$19766_playerStateChangeListener),_.a("kevlar_client_enable_shorts_player_bootstrap")&&_.EU(),l.scrollToVideoThrottle.fire(l.index),l.movePlayerToVideo(l.index),_.UD.addLowPriorityJob(function(){l.getShortsLoopSetting().then(function(w){var n;(n=l.player)==null||
n.setLoopVideo(w)})}),_.He0.resolve(l.player),l.player.syncVolume(),l.getPlayer().focusOnPlayer());
_.UD.addLowPriorityJob(function(){l.observeShorts()},100);
Z=l.player.getPlayerState(l.player.getPresentingPlayerType());Z!==1||l.isPlayerStarted||_.Om().dispatch(Xp(!0));l.updateBackNavContainerWidth();u=_.I(l.currentEndpoint,_.jT);((d=u)==null?0:d.startTimeSeconds)&&l.player.seekTo(u.startTimeSeconds);if(l.JSC$19766_cinematicController||l.cinematicsInitializeJobId)return g.return();l.cinematicsInitializeJobId=_.UD.addLowPriorityJob(function(){l.initCinematicController();l.cinematicsInitializeJobId=void 0});
_.Cl(g)})};
_.X.onShortUndoDismiss=function(){var l=this,e=g2C().pop();e!==void 0&&(_.OK(this,function(){l.showCardWithIndex(e)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.X.onShortsDismiss=function(l){if(l=l.detail.reelDismissalActionRenderer)(l=_.I(l.onDismissalCompletionRenderer,_.KTo))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:l}}}),this.scrollAndDismissCard()};
_.X.processReelNonVideoContentDismissalCommand=function(l){var e=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);l=_.I(l,Kd4);this.activeDimissalTimeout=setTimeout(function(){e.scrollAndDismissCard()},Number(l==null?void 0:l.delayMs))};
_.X.scrollAndDismissCard=function(){var l=this,e=this.index;g2C().push(e);_.OK(this,function(){var O=l.getPlayableNextIndex();O!==null&&(O=l.getActiveReelVideo(O),l.hideCardWithIndex(e),O==null||O.scrollIntoView({behavior:"smooth",block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"}))})};
_.X.hideCardWithIndex=function(l){if(l=this.getActiveReelVideo(l))l.hidden=!0};
_.X.showCardWithIndex=function(l){if(l=this.getActiveReelVideo(l))l.hidden=!1};
_.X.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.X.activeChanged=function(l){_.Om().dispatch(_.oM({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:l}}));if(l)document.addEventListener("keydown",_.id(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var e;(e=this.player)==null||e.sendAbandonmentPing()}var O;(O=this.player)==null||O.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.id(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.X.graftClientVisualElements=function(){if(this.data){var l=_.yN();_.jfx(l,_.Ag({response:this.reelWatchSequenceResponse}));_.$w(l,this.nextReelVe);_.$w(l,this.prevReelVe);_.a("kevlar_shorts_auto_advance")&&(_.$w(l,this.loopToggleOffVe),_.$w(l,this.loopToggleOnVe));_.$w(l,this.ambientModeToggleVe);_.xu(_.P9(),[this.nextReelVe,this.prevReelVe]);_.a("web_shorts_paused_state_logging")&&_.$w(l,this.reelPlayerPausedStateRendererVe)}};
_.X.graftNvcRenderer=function(){var l,e,O,E,J=this.index<0?(l=this.shortsProcessedPrevSequence)==null?void 0:(e=l[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:e.command:(O=this.shortsProcessedSequence)==null?void 0:(E=O[this.index])==null?void 0:E.command;if(J&&this.isNonVideoContentCommand(J)){l=_.I(J,_.PC);var z,M;(l=(z=_.I(l==null?void 0:l.renderer,_.tqR))==null?void 0:(M=z.loggingDirectives)==null?void 0:M.trackingParams)&&_.yN().graftServerVe(l)}};
_.X.setActiveIndex=function(){_.V2().resolve(_.I3).setActiveIndex(this.index)};
_.X.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.X.lazyUpdateMiniplayerData=function(){var l=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.UD.addLowPriorityJob(function(){l.updateMiniplayerData();l.updateMiniplayerDataJobId=void 0}))};
_.X.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.UD.cancelJob(this.updateMiniplayerDataJobId)};
_.X.updateMiniplayerData=function(){var l,e,O,E=_.V2().resolve(_.NJ),J={shortsData:this.getCurrentShort(),previousButtonDisabled:!((l=this.prevButtonData)==null||!l.isDisabled),nextButtonDisabled:!((e=this.nextButtonData)==null||!e.isDisabled),playabilityStatus:(O=this.playerData)==null?void 0:O.playabilityStatus};_.yY(E,J)};
_.X.resetPlayerLocation=function(){var l=this.getPlayer();this.initialPlayerContainer&&l.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.X.movePlayerToVideo=function(l,e){var O=this;e=e===void 0?!0:e;var E=this.getActiveReelVideo(l),J=this.getPlayer();if(E){this.overlayContainer?E.appendChild(this.overlayContainer):(this.overlayContainer=_.ud(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,E.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||J.appendTo(this.overlayContainer.playerContainer,void 0,!0));var z;(z=this.player)==null||z.setSize(NaN,NaN);this.isActive||_.fZ(_.UD,function(){O.isActive=
!0});
J.style.visibility="visible";_.a("reels_web_disable_rtr_tick")||_.a("reels_web_use_pbs_first_shorts")&&l===0||_.Yu("r_tr");this.currentPlayerIndex=l;E.appendChild(this.errorScreenContainer);var M;(M=this.JSC$19766_cinematicController)==null||_.loC(M)}else e?_.UD.addLowPriorityJob(function(){O.movePlayerToVideo(O.index,!1)}):Math.random()<=_.Cv("web_shorts_error_logging_threshold")&&_.YE(new _.Hk("Trying to movePlayerToVideo with undefined container.",{firstAttempt:e,
index:l}))};
_.X.enableFormatFirst=function(l){return _.a("web_enable_format_first")||l.adsOverlay&&_.a("web_enable_format_first_ads_only")||l.reelPlayerOverlayRenderer&&_.a("web_enable_format_first_organic_only")};
_.X.getAspectRatio=function(l){if(l!=null&&l.thumbnail&&this.enableFormatFirst(l))return"--ytd-shorts-player-ratio: "+E23(l.thumbnail)};
_.X.getBackgroundImage=function(l){if(l!=null&&l.thumbnail)return(l=_.Cd(l.thumbnail.thumbnails))?'background-image:url("'+l+'");':"background-color:black;"};
_.X.onPersistentPanelActiveChanged=function(){var l=this.getCurrentShort();if(l&&this.enableFormatFirst(l)&&(l==null?0:l.thumbnail)&&E23(l.thumbnail)!==.5625){var e;(e=this.player)==null||e.setSize(NaN,NaN)}};
_.X.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.X.moveCinematicsToVideo=function(){var l=_.ud(this.hostElement).querySelector("ytd-reel-video-renderer");(l==null?0:l.cinematicContainer)&&l.cinematicContainer!==this.shortsCinematicContainer.parentElement&&l.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.X.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.X.updatePrevButtonData=function(){var l=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(l){var e;this.prevButtonData=l=Object.assign({},l,{accessibility:{label:_.ml("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:l.isDisabled||this.index===-(((e=this.shortsProcessedPrevSequence)==null?void 0:e.length)||0),tooltip:this.isUpArrowHidden?"":_.ml("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=l=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.X.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.X.updateNextButtonData=function(){var l=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(l){var e;this.nextButtonData=l=Object.assign({},l,{accessibility:{label:_.ml("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:l.isDisabled||this.index===((e=this.shortsProcessedSequence)==null?void 0:e.length),tooltip:_.ml("NEXT_VIDEO_LABEL")||""})}};
_.X.getPlayablePreviousIndex=function(){for(var l,e=this.index-1;e>=-(((l=this.prevShortsSequence)==null?void 0:l.length)||0);e--)if(!g2C().includes(e))return e;return null};
_.X.getIndexInSequence=function(l,e){return l.findIndex(function(O){var E;return((E=_.I(O.command,_.jT))==null?void 0:E.videoId)===e})};
_.X.handlePrevButtonClick=function(l){var e=this,O,E;return _.V(function(J){O=e.getPlayablePreviousIndex();if(O===null)return J.return();e.gestureType=((E=l)==null?void 0:E.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";O===0&&(e.hidePreviousButtonImmediately=!0);if(e.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){e.transitionToVideoThrottle.fire(O)}),J.return();
e.scrollToVideoThrottle.fire(O);_.Cl(J)})};
_.X.getPlayableNextIndex=function(){for(var l,e=this.index+1;e<(((l=this.shortsProcessedSequence)==null?void 0:l.length)||0);e++)if(!g2C().includes(e))return e;return null};
_.X.handleNextButtonClick=function(l,e){var O=this,E,J;return _.V(function(z){E=O.getPlayableNextIndex();if(E===null)return z.return();E===1&&(O.showPreviousButtonImmediately=!0);O.gestureType=((J=l)==null?void 0:J.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";e&&(O.gestureType=e);if(O.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){O.transitionToVideoThrottle.fire(E)}),z.return();
O.scrollToVideoThrottle.fire(E);_.Cl(z)})};
_.X.handleReelNavigateCommand=function(l,e,O){(l=_.I(l,p$3))&&e&&l.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(O)};
_.X.loadVideo=function(l,e){e=e===void 0?!1:e;if(l!==this.currentPlayerIndex){_.Om().dispatch(Xp(!1));if(this.isAd()&&!e){var O;(O=this.player)==null||O.notifyShortsAdSwipeEvent()}if((e=this.JSC$19766_cinematicController)!=null){var E;(E=e.currentCinematicEffect)==null||E.pause()}if((E=this.JSC$19766_cinematicController)!=null){var J;(J=E.currentCinematicEffect)==null||J.clear()}E=l>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(E));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var z,M,Z,u;J=l<0?(z=this.shortsProcessedPrevSequence)==null?void 0:(M=z[this.shortsProcessedPrevSequence.length+l])==null?void 0:M.command:(Z=this.shortsProcessedSequence)==null?void 0:(u=Z[l])==null?void 0:u.command;this.index=l;this.gestureType||(this.gestureType=E?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
J&&this.isVideoContentCommand(J)&&(this.ytComponentBehavior.resolveCommand(J,{form:{createScreenConfig:{clickedVisualElement:E?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(J&&this.isNonVideoContentCommand(J)){this.currentEndpoint=J;this.data=void 0;z=_.yN();M=_.I(J,_.PC);var d,g;(M=(d=_.I(M==null?void 0:M.renderer,_.tqR))==null?void 0:(g=d.screenLoggingData)==null?void 0:g.screenVeType)&&_.on(z,M);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(d=this.getActiveReelVideo(l))&&d.appendChild(this.overlayContainer)}var w,n;if(((w=this.reelWatchSequenceResponse)==null?0:w.continuationEndpoint)&&((n=this.reelWatchSequenceResponse)==null?0:n.entries)&&l===this.reelWatchSequenceResponse.entries.length-1){var k,y;w={contentPlaybackContext:_.Fv({},(y=_.I((k=this.currentEndpoint)==null?void 0:k.commandMetadata,_.V4))==null?void 0:y.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:w})}var c,f,P;((c=this.reelWatchSequenceResponse)==null?0:c.prevContinuationEndpoint)&&l===-(((f=this.reelWatchSequenceResponse)==null?void 0:(P=f.prevEntries)==null?void 0:P.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.X.setMiniplayerPreview=function(l){l=(l===void 0?0:l)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var e,O,E=_.V2().resolve(_.NJ),J={shortsData:void 0,shortsPreviewThumbnail:l?(e=this.shortsProcessedSequence)==null?void 0:(O=e[l])==null?void 0:O.thumbnail:void 0};_.yY(E,J)};
_.X.updateTitle=function(l){var e,O;l=(l==null?0:l.adSlots)?"":(O=l==null?void 0:(e=l.videoDetails)==null?void 0:e.title)!=null?O:"";_.$u(this.hostElement,"yt-update-title",l)};
_.X.registerPanel=function(l){var e=_.V2().resolve(_.ye);if(e){l=_.b(l.engagementPanels||[]);for(var O=l.next();!O.done;O=l.next()){O=O.value;var E=O.engagementPanelSectionListRenderer,J=void 0,z=void 0,M=void 0,Z=void 0,u=((J=E)==null?void 0:J.targetId)||((z=E)==null?void 0:z.panelIdentifier)||((M=E)==null?void 0:(Z=M.identifier)==null?void 0:Z.tag);J=E=void 0;(J=(E=e).registerPanelContent)==null||J.call(E,u,O)}}};
_.X.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Om().dispatch(Xp(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Om().dispatch(iV4(!1));var l=_.V2().resolve(_.I3);l.dismissedIndices=[];l.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.V2().resolve(_.NJ).close(!0)};
_.X.processAppendReelWatchSequenceContinuationEntriesAction=function(l){var e=this,O;(O=this.intersectionObserver)==null||O.disconnect();l=l.appendReelWatchSequenceContinuationEntriesAction;if(l==null?0:l.entries){var E;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.kA(((E=this.reelWatchSequenceResponse)==null?void 0:E.entries)||[]),_.kA(l.entries)),continuationEndpoint:l.continuationEndpoint})}else if(l==null?0:l.prevEntries){var J;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.kA(((J=this.reelWatchSequenceResponse)==null?void 0:J.prevEntries)||[]),_.kA(l.prevEntries)),prevContinuationEndpoint:l.prevContinuationEndpoint});_.UD.addLowPriorityJob(function(){e.movePlayerToVideo(e.index);var z;(z=e.getActiveReelVideo(e.index))==null||z.scrollIntoView({block:"nearest",inline:e.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.UD.addLowPriorityJob(function(){e.observeShorts()},100)};
_.X.processWatchSequence=function(l){var e=this;return l.map(function(O){O=O.command;if(e.isVideoContentCommand(O)){var E=_.I(O,_.jT);return{reelPlayerOverlayRenderer:_.I(E==null?void 0:E.overlay,_.qSx),thumbnail:E.thumbnail,command:O}}return e.isNonVideoContentCommand(O)?(E=_.I(O,_.PC),{reelNonVideoContentRenderer:_.I(E==null?void 0:E.renderer,_.tqR),command:O}):{command:O}})};
_.X.calculateIntersectionObserverThreshold=function(){if(!_.a("web_shorts_dynamic_intersection_observer_threshold"))return.6;var l=_.ud(this.hostElement).querySelector("ytd-reel-video-renderer"),e=1;(l==null?0:l.offsetHeight)&&(l==null?0:l.offsetWidth)&&(e=Math.min(l.offsetHeight,this.shortsContainer.offsetHeight)/l.offsetHeight*(Math.min(l.offsetWidth,this.shortsContainer.offsetWidth)/l.offsetWidth));return Math.round(e*.6*10)/10};
_.X.isVideoContentCommand=function(l){_.V2().resolve(_.I3);return!!_.I(l,_.jT)};
_.X.isNonVideoContentCommand=function(l){_.V2().resolve(_.I3);return!!_.I(l,_.PC)};
_.X.initCinematicController=function(){var l=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19766_cinematicController=new _.J8(this.shortsCinematicContainer,this.player);var e,O=_.I((e=this.data)==null?void 0:e.background,_.a0);_.xEu(this.JSC$19766_cinematicController,O);_.QR4(this.JSC$19766_cinematicController,eC3(O));_.SiF(this.JSC$19766_cinematicController);_.UD.addLowPriorityJob(function(){l.moveCinematicsToVideo()})}};
_.X.handleMiniplayerNavigateShorts=function(l){l==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():l==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.X.handleSignalActionToggleShortsPictureInPicture=function(){if(_.V2().resolve(_.NJ).pictureInPictureSupported()){var l=_.V2().resolve(_.I3);if(_.a("web_shorts_pip")){var e=_.V2().resolve(_.NJ);l.isShortsPipActive()?e.deactivate():e.isMiniplayerActive()||(_.n6().shortsPipActivation=!0,_.ApC(e))}}else(l=this.player)==null||l.togglePictureInPicture()};
_.Ji.Object.defineProperties(Wg.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.reelWatchSequenceResponse)!=null&&l.prevEntries)return this.processWatchSequence([].concat(_.kA(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var l=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!l)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var e=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.kA(this.prevShortsSequence.slice(0,e)),[l],_.kA(this.prevShortsSequence.slice(e+
1)))}e=this.index+this.shortsProcessedPrevSequence.length;l.thumbnail=this.shortsProcessedPrevSequence[e].thumbnail;return[].concat(_.kA(this.shortsProcessedPrevSequence.slice(0,e)),[l],_.kA(this.shortsProcessedPrevSequence.slice(e+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.reelWatchSequenceResponse)!=null&&l.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var l=this.getCurrentShort();if(!l||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[l];if(l==null||!l.reelNonVideoContentRenderer){var e=this.getIndexInSequence(this.shortsSequence,_.I(this.currentEndpoint,_.jT).videoId);if(this.index===0&&e!==-1)return this.currentPlayerIndex=this.index=e,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.kA(this.shortsSequence.slice(0,this.index)),[l],_.kA(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){l.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var O,E,J,z;e=((E=_.I((O=this.shortsProcessedSequence[0])==null?void 0:O.command,_.jT))==null?void 0:E.videoId)===((z=_.I((J=this.shortsSequence[0])==null?void 0:J.command,_.jT))==null?void 0:z.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.kA(this.shortsProcessedSequence.slice(0,
this.index)),[l],_.kA(this.shortsSequence.slice(e)))}return[l].concat(_.kA(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var l=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;l&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(l)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var l,e;return this.index===((l=this.reelWatchSequenceResponse)==null?void 0:(e=l.entries)==null?void 0:e.length)}var O;return!((O=this.reelWatchSequenceResponse)==null?0:O.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var l;(l=this.delayedActiveIndexUpdateDebouncer)==null||l.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return this.isShortPlayable()||((e=_.I((l=this.data)==null?void 0:l.watchStatus,_.eLk))==null?void 0:(O=e.style)==null?void 0:O.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var l=this,e=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),O;if((this.data||e)&&(((O=this.data)==null?0:O.engagementPanels)||this.isAd()||e)){e=!1;this.activePanel="shorts-comments-panel";var E;O=_.b(((E=this.data)==null?void 0:E.engagementPanels)||[]);for(E=O.next();!E.done;E=O.next()){E=E.value.engagementPanelSectionListRenderer;var J=void 0,z=void 0,M=void 0,Z=void 0;if((((J=E)==null?void 0:(z=J.identifier)==
null?void 0:z.tag)||((M=E)==null?void 0:M.targetId)||((Z=E)==null?void 0:Z.panelIdentifier))===this.activePanel){e=!0;break}}if(this.isPersistentPanelActive){var u=_.V2().resolve(_.ye);_.fZ(_.UD,function(){u.showPanel(l.activePanel,void 0,void 0,void 0,null)},100)}var d;
O=[].concat(_.kA(Object.values(((d=this.data)==null?void 0:d.engagementPanels)||{})));if(_.a("enable_preview_panel_for_shorts_search_suggested_action")){var g,w,n,k,y;((k=_.I((g=this.data)==null?void 0:(w=g.overlay)==null?void 0:(n=w.reelPlayerOverlayRenderer)==null?void 0:n.metapanel,_.LSS))==null?void 0:(y=k.metadataItems)==null?void 0:y.find(function(c){var f,P;return((f=_.I(c,HVz))==null?void 0:(P=f.icon)==null?void 0:P.iconType)==="SEARCH"}))!==void 0&&O.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}d=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);g=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return d===void 0&&g===void 0||(d==null?0:d.isDisabled)||(g==null?void 0:g.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!e?(e=O==null?void 0:O.findIndex(function(c){var f,
P;return((f=c.engagementPanelSectionListRenderer)==null?void 0:(P=f.identifier)==null?void 0:P.tag)==="shorts-comments-panel"}),e===-1||e===void 0||O!=null&&O.splice(e,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.ml("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.ml("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:_.ml("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.ml("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(_.kA(Object.values(O||
{})))):O}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.shortsProcessedSequence)==null?void 0:l[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var l=this,e,O,E;if((e=this.playerData)==null?0:(O=e.playabilityStatus)==null?0:(E=O.errorScreen)==null?0:E.playerInterstitialRenderer)return _.UD.addLowPriorityJob(function(){l.movePlayerToVideo(l.index)}),this.playerData.playabilityStatus.errorScreen;
var J,z;return((J=this.data)==null?void 0:J.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((z=this.data)==null?0:z.watchStatus)&&_.I(this.data.watchStatus,_.eGq)?(_.UD.addLowPriorityJob(function(){l.movePlayerToVideo(l.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Ji.Object.defineProperties(Wg,{template:{configurable:!0,enumerable:!0,get:function(){if(Fdh===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);Fdh=l}l=Fdh;return l}}});
Wg.prototype.onNextButtonDataChange=Wg.prototype.onNextButtonDataChange;Wg.prototype.onPrevButtonDataChange=Wg.prototype.onPrevButtonDataChange;Wg.prototype.onPersistentPanelActiveChanged=Wg.prototype.onPersistentPanelActiveChanged;Wg.prototype.lazyUpdateMiniplayerData=Wg.prototype.lazyUpdateMiniplayerData;Wg.prototype.onShortsPipActiveChanged=Wg.prototype.onShortsPipActiveChanged;Wg.prototype.setActiveIndex=Wg.prototype.setActiveIndex;Wg.prototype.graftNvcRenderer=Wg.prototype.graftNvcRenderer;
Wg.prototype.graftClientVisualElements=Wg.prototype.graftClientVisualElements;Wg.prototype.onActiveChanged=Wg.prototype.onActiveChanged;Wg.prototype.onShortsDismiss=Wg.prototype.onShortsDismiss;Wg.prototype.onShortUndoDismiss=Wg.prototype.onShortUndoDismiss;Wg.prototype.playerDataChanged=Wg.prototype.playerDataChanged;Wg.prototype.afterPlayerStarted=Wg.prototype.afterPlayerStarted;Wg.prototype.unhideCurrentOverlay=Wg.prototype.unhideCurrentOverlay;Wg.prototype.onServiceRequestCompleted=Wg.prototype.onServiceRequestCompleted;
Wg.prototype.engagementPanelsChanged=Wg.prototype.engagementPanelsChanged;Wg.prototype.onFullscreenChange=Wg.prototype.onFullscreenChange;Wg.prototype.onResize=Wg.prototype.onResize;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Wg.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ym.YtPageBehavior),_.q("design:type",Object)],Wg.prototype,"ytPageBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Wg.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.sl),_.q("design:type",Object)],Wg.prototype,"ironResizableBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],Wg.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],Wg.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Wg.prototype,"ytdReduxBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"playerData",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"reelWatchSequenceResponse",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"cachedReelWatchSequenceResponse",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"currentEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"nextButtonData",void 0);
_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"prevButtonData",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"isPreviousPageShorts",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"index",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"delayedActiveIndex",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"playablePreviousIndex",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"player",void 0);
_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"isPlayerPaused",void 0);_.L([_.T({selector:X$4}),_.q("design:type",Object)],Wg.prototype,"isPlayerStarted",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"intersectionObserver",void 0);_.L([_.T(),_.q("design:type",Number)],Wg.prototype,"cinematicsInitializeJobId",void 0);_.L([_.T(),_.q("design:type",Number)],Wg.prototype,"updateMiniplayerDataJobId",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"fitToVisibleBounds",void 0);
_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"pageSubtype",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],Wg.prototype,"enablePreviousContinuation",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"shortsPipEnabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"isDark",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"shortsViewTransitions",void 0);
_.L([_.T({selector:_.mI,reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"isFullscreen",void 0);_.L([_.T({selector:_.yP,reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"isShortsPipActive",void 0);_.L([_.aB("#shorts-inner-container"),_.q("design:type",HTMLElement)],Wg.prototype,"shortsInnerContainer",void 0);_.L([_.aB("#back-nav-button ytd-button-renderer"),_.q("design:type",_.ek)],Wg.prototype,"backNavButton",void 0);
_.L([_.aB("#shorts-container"),_.q("design:type",HTMLElement)],Wg.prototype,"shortsContainer",void 0);_.L([_.SX("error-screen"),_.q("design:type",HTMLElement)],Wg.prototype,"errorScreenContainer",void 0);_.L([_.SX("player"),_.q("design:type",Object)],Wg.prototype,"playerElement",void 0);_.L([_.SX("shorts-cinematic-container"),_.q("design:type",HTMLElement)],Wg.prototype,"shortsCinematicContainer",void 0);
_.L([_.SX("initial-player-container"),_.q("design:type",HTMLElement)],Wg.prototype,"initialPlayerContainer",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"buttonOverride",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"anchoredPanelActive",void 0);_.L([_.T(),_.q("design:type",String)],Wg.prototype,"activePanel",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"isActive",void 0);
_.L([_.T({selector:JsC,reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"smallScreenPersistentPanel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"isPersistentPanelActive",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"smallScreenSqueezeBack",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"enableScrollIntoViewCenter",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"formatFirst",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"enableFlexibleOverlay",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Wg.prototype,"useAspectRatio",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"panelContainer",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"overlayContainer",void 0);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"isShortsInitialized",void 0);
_.L([_.R("reelWatchSequenceResponse"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"prevShortsSequence",null);_.L([_.R("data","prevShortsSequence"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"shortsProcessedPrevSequence",null);_.L([_.R("reelWatchSequenceResponse"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"shortsSequence",null);
_.L([_.R("data","shortsSequence"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"shortsProcessedSequence",null);_.L([_.T({reflectToAttribute:!0}),_.R("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wg.prototype,"isUpArrowHidden",null);
_.L([_.T({reflectToAttribute:!0}),_.R("reelWatchSequenceResponse","index","endOfNextContinuation"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wg.prototype,"isDownArrowHidden",null);_.L([_.T(),_.R("index"),_.q("design:type",Number),_.q("design:paramtypes",[])],Wg.prototype,"activeIndex",null);_.L([_.R("isShortPlayable","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wg.prototype,"shouldRenderOfflineContent",null);
_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onResize",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"anchoredEngagementPanels",null);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"watchWhileEngagementPanels",void 0);_.L([_.AA("isFullscreen"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onFullscreenChange",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"engagementPanelsChanged",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],Wg.prototype,"onServiceRequestCompleted",null);_.L([_.R("data","shortsSequence","index"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"activeReel",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"unhideCurrentOverlay",null);_.L([_.AA("isPlayerStarted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"afterPlayerStarted",null);_.L([_.R("playerData","reelWatchSequenceResponse","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Wg.prototype,"errorScreen",null);
_.L([_.R("errorScreen"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Wg.prototype,"hasError",null);_.L([_.AA("playerData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],Wg.prototype,"playerDataChanged",null);_.L([_.wP("yt-dismissible-item-undo-feedback"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onShortUndoDismiss",null);
_.L([_.wP("yt-disable-lockup-interaction"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],Wg.prototype,"onShortsDismiss",null);_.L([_.y0("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onActiveChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"graftClientVisualElements",null);
_.L([_.AA("currentPlayerIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"graftNvcRenderer",null);_.L([_.AA("index"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"setActiveIndex",null);_.L([_.AA("isShortsPipActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onShortsPipActiveChanged",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"lazyUpdateMiniplayerData",null);_.L([_.T(),_.q("design:type",Object)],Wg.prototype,"onOverlayDensityChanged",void 0);_.L([_.AA("isPersistentPanelActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onPersistentPanelActiveChanged",null);
_.L([_.AA("index","data","isUpArrowHidden"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onPrevButtonDataChange",null);_.L([_.AA("index","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Wg.prototype,"onNextButtonDataChange",null);_.L([_.U({is:"ytd-shorts"})],Wg);_.Zl.registerService(_.XGM,Wg);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("JzFVk");
var Oyh=function(l){return _.W("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},eXh(l.data.ctaButton,{buttonViewModel:{}}),_.W(_.zK,{text:l.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var EIu;var JVu;var fK=function(){return _.B.apply(this,arguments)||this};
_.m(fK,_.B);fK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
fK.prototype.computeBlueBottomLink=function(l){return l};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fK.prototype,"data",void 0);_.L([_.T({computed:"computeIcon_(data.bottomIcon)"}),_.q("design:type",String)],fK.prototype,"bottomIcon",void 0);
_.L([_.T({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.q("design:type",Boolean)],fK.prototype,"enableBlueBottomLink",void 0);_.L([_.U({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],fK);
_.Y(fK,"ytd-web-answer-renderer",function(){if(JVu!==void 0)return JVu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return JVu=l},{mode:_.Wf("kevlar_poly_si_batch_j035")?1:2});var XA4;var RA=function(){var l=_.B.apply(this,arguments)||this;l.hasChipBar=!1;return l};
_.m(RA,_.B);RA.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}}};
RA.prototype.computeHasChipBar=function(l){return!(l==null||!l.chipBar)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],RA.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.q("design:type",Object)],RA.prototype,"hasChipBar",void 0);_.L([_.U({is:"ytd-search-header-renderer",disableElementRegistration:!0})],RA);
_.Y(RA,"ytd-search-header-renderer",function(){if(XA4!==void 0)return XA4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return XA4=l},{mode:1});var zXF;var Te=function(){return _.B.apply(this,arguments)||this};
_.m(Te,_.B);Te.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Te.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-page-continuation"})],Te);
_.Y(Te,"ytd-page-continuation",function(){if(zXF!==void 0)return zXF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return zXF=l},{mode:1});var byh;var M5o;var V5F;var sH=function(){return _.B.apply(this,arguments)||this};
_.m(sH,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sH.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],sH);
_.Y(sH,"ytd-watch-card-one-vs-one-event",function(){if(V5F!==void 0)return V5F;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return V5F=l},{mode:1});var Ge=function(){return _.B.apply(this,arguments)||this};
_.m(Ge,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ge.prototype,"data",void 0);_.L([_.U({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Ge);
_.Y(Ge,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(M5o!==void 0)return M5o;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return M5o=l},{mode:1});var ZyH;var BB=function(){return _.B.apply(this,arguments)||this};
_.m(BB,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BB.prototype,"data",void 0);_.L([_.U({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],BB);
_.Y(BB,"ytd-banner-and-box-hero-image-renderer",function(){if(ZyH!==void 0)return ZyH;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ZyH=l},{mode:1});var uTu;var PB=function(){var l=_.B.apply(this,arguments)||this;l.modern=_.a("web_modern_buttons");return l};
_.m(PB,_.B);PB.prototype.computeIcon=function(){var l,e,O=(l=this.data)==null?void 0:(e=l.icon)==null?void 0:e.iconType;if(O)return _.w6(O)};
PB.prototype.computeButtonShape=function(){var l;return{buttonText:_.lG((l=this.data)==null?void 0:l.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Ji.Object.defineProperties(PB.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"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PB.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],PB.prototype,"modern",void 0);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.style"),_.q("design:type",Object),_.q("design:paramtypes",[])],PB.prototype,"buttonColor",null);
_.L([_.U({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],PB);
_.Y(PB,"ytd-call-to-action-button-renderer",function(){if(uTu!==void 0)return uTu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return uTu=l},{mode:1});var CDf;var UH=function(){return _.B.apply(this,arguments)||this};
_.m(UH,_.B);UH.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ud(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.up(this.data.leftThumbnail.thumbnails,216)+")")};
UH.prototype.onLeftThumbnailChanged=UH.prototype.onLeftThumbnailChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],UH.prototype,"data",void 0);_.L([_.AA("data.leftThumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],UH.prototype,"onLeftThumbnailChanged",null);_.L([_.U({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],UH);
_.Y(UH,"ytd-collage-hero-image-renderer",function(){if(CDf!==void 0)return CDf;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return CDf=l},{mode:1});var oIz;var YF=function(){return _.B.apply(this,arguments)||this};
_.m(YF,_.B);YF.prototype.computeStyle=function(l){return l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],YF.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.q("design:type",String)],YF.prototype,"componentStyle",void 0);_.L([_.U({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],YF);
_.Y(YF,"ytd-single-hero-image-renderer",function(){if(oIz!==void 0)return oIz;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return oIz=l},{mode:1});var $EP;var hN=function(){return _.B.apply(this,arguments)||this};
_.m(hN,_.B);_.X=hN.prototype;
_.X.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:_.a("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.X.computeSubtitle=function(l){if(this.data){var e;if(this.data.upcomingEventData){l=_.lG(l.subtitle);var O=Number(this.data.upcomingEventData.startTime);isNaN(O)||(e=_.xp(_.LT(l,O)))}else e=l.subtitle;return e}};
_.X.onHeroTap=function(l){l.preventDefault();var e=this.data&&this.data.navigationEndpoint;!e||!_.Eh(_.ey(l),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Eh(_.ey(l),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.a("kevlar_watchcard_hero_video_renderer_killswitch")?_.$u(this.hostElement,"yt-navigate",{navigationEndpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.X.computeHeroTabIndex=function(l){return l&&l.simpleText?-1:0};
_.X.computeHeroRole=function(l){return l&&l.simpleText?"":"link"};
_.X.computeIsReminderButtonPresent=function(l){return!(!l||!l.reminderButton)};
_.X.computeHideBottomItems=function(l){return!(this.computeIsReminderButtonPresent(l)||l.subtitle)};
_.X.dataChanged=function(){var l=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;((e=_.I(l==null?void 0:l.commandMetadata,_.fp))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(l)};
hN.prototype.dataChanged=hN.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],hN.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hN.prototype,"data",void 0);
_.L([_.T({computed:"computeSubtitle(data)"}),_.q("design:type",String)],hN.prototype,"subtitle",void 0);_.L([_.T({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],hN.prototype,"isReminderButtonPresent",void 0);_.L([_.T({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],hN.prototype,"hideBottomItems",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hN.prototype,"dataChanged",null);_.L([_.U({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],hN);
_.Y(hN,"ytd-watch-card-hero-video-renderer",function(){if($EP!==void 0)return $EP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $EP=l},{mode:1});var WTF;var LK=function(){return _.B.apply(this,arguments)||this};
_.m(LK,_.B);_.X=LK.prototype;_.X.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"}}}};
_.X.computeTitleBadges=function(l){return l?[l]:[]};
_.X.computeHeaderStyle=function(l){return l?l.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.X.computeAvatarAriaLabel=function(l){if(l){var e,O,E,J;return(J=(e=l.avatar)==null?void 0:(O=e.accessibility)==null?void 0:(E=O.accessibilityData)==null?void 0:E.label)!=null?J:_.lG(l==null?void 0:l.title)}};
_.X.computeAvatarHeight=function(l){return l==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.X.computeBadgeRowClass=function(l){return(l==null?0:l[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],LK.prototype,"data",void 0);_.L([_.T({computed:"computeTitleBadges(data.titleBadge)"}),_.q("design:type",Array)],LK.prototype,"titleBadges",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.q("design:type",String)],LK.prototype,"headerStyle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.q("design:type",String)],LK.prototype,"badgeRowClass",void 0);_.L([_.U({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],LK);
_.Y(LK,"ytd-watch-card-rich-header-renderer",function(){if(WTF!==void 0)return WTF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return WTF=l},{mode:1});var dE4;var gI4;var tN=function(){return _.B.apply(this,arguments)||this};
_.m(tN,_.B);tN.prototype.onMetadataTap=function(l){var e=this.data&&this.data.navigationEndpoint;e&&!_.Eh(_.ey(l),this.hostElement,["A".toString()])&&_.$u(this.hostElement,"yt-navigate",{endpoint:e})};
_.Ji.Object.defineProperties(tN.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 l;if(this.data.upcomingEventData){var e=_.lG(this.data.subtitle),O=Number(this.data.upcomingEventData.startTime);isNaN(O)||(l=_.xp(_.LT(e,O)))}else l=this.data.subtitle;return l}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tN.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data.style"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],tN.prototype,"isCondensed",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],tN.prototype,"subtitle",null);
_.L([_.U({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],tN);
_.Y(tN,"ytd-watch-card-compact-video-renderer",function(){if(gI4!==void 0)return gI4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gI4=l},{mode:1});var iyo;var qV=function(){return _.B.apply(this,arguments)||this};
_.m(qV,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qV.prototype,"data",void 0);_.L([_.U({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],qV);
_.Y(qV,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(iyo!==void 0)return iyo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iyo=l},{mode:1});var vB=function(){return _.B.apply(this,arguments)||this};
_.m(vB,_.B);vB.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}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],vB.prototype,"ytRendererStamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vB.prototype,"data",void 0);_.L([_.U({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],vB);
_.Y(vB,"ytd-vertical-watch-card-list-renderer",function(){if(dE4!==void 0)return dE4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return dE4=l},{mode:1});var wAo;var NV=function(){var l=_.B.apply(this,arguments)||this;l.ariaExpanded="false";return l};
_.m(NV,_.B);_.X=NV.prototype;_.X.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.X.dataChanged=function(){var l;this.currentSeasonIndex=((l=this.data)==null?void 0:l.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.X.computeEpisodesInfo=function(l,e,O){if(l!==void 0&&e.length===l.length)return l[O]};
_.X.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.X.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.X.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.X.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.X.getUppercaseSimpleString=function(l){return this.ytRendererBehavior.getSimpleString(l).toUpperCase()};
_.X.updateCurrentSeasonIndexFromBinding=function(l){this.currentSeasonIndex=l.detail.value};
NV.prototype.onIronOverlayClosed=NV.prototype.onIronOverlayClosed;NV.prototype.currentSeasonIndexChanged=NV.prototype.currentSeasonIndexChanged;NV.prototype.dataChanged=NV.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NV.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",String)],NV.prototype,"label",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],NV.prototype,"currentSeasonIndex",void 0);_.L([_.T({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.q("design:type",Object)],NV.prototype,"episodesInfo",void 0);_.L([_.T({value:"false"}),_.q("design:type",Object)],NV.prototype,"ariaExpanded",void 0);_.L([_.aB("#lists"),_.q("design:type",Object)],NV.prototype,"lists",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NV.prototype,"dataChanged",null);_.L([_.y0("currentSeasonIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],NV.prototype,"currentSeasonIndexChanged",null);_.L([_.wP("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],NV.prototype,"onIronOverlayClosed",null);
_.L([_.U({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],NV);
_.Y(NV,"ytd-watch-card-section-dropdown-renderer",function(){if(wAo!==void 0)return wAo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wAo=l},{mode:1});var AV0;var rM=function(){var l=_.B.apply(this,arguments)||this;l.isSearch=!1;return l};
_.m(rM,_.B);rM.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}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rM.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],rM.prototype,"isSearch",void 0);_.L([_.U({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],rM);
_.Y(rM,"ytd-watch-card-section-sequence-renderer",function(){if(AV0!==void 0)return AV0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return AV0=l},{mode:1});var eXh=_.jp({buttonViewModel:_.hM});_.Z8(Oyh);_.ip(Oyh,"ytd-button-banner-view-model",{propNames:["data"]});var Dt=function(){var l=_.B.apply(this,arguments)||this;l.isSearch=!1;return l};
_.m(Dt,_.B);
Dt.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"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Dt.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],Dt.prototype,"rounded",void 0);_.L([_.T(),_.q("design:type",Object)],Dt.prototype,"isSearch",void 0);
_.L([_.U({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Dt);
_.Y(Dt,"ytd-universal-watch-card-renderer",function(){if(byh!==void 0)return byh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return byh=l},{mode:1});var nI3;_.Zw(_.XO(function(l){var e=l.data;var O;l=!((O=_.V2().resolve(_.MG(_.lp)))==null||!O());O={};return _.W("overview-message-view-model",{class:_.ax("ytwOverviewMessageViewModelHost",(O.ytwOverviewMessageViewModelDarkBackground=l,O.ytwOverviewMessageViewModelLightBackground=!l,O))},_.W(_.A,{cond:function(){return e().primaryImage},
then:function(E){return _.W(_.Jm,{data:E,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.W(_.A,{cond:function(){return e().primaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.W(_.zK,{text:function(){return e().primaryText}}))}}),_.W(_.A,{cond:function(){return e().secondaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.W(_.zK,{text:function(){return e().secondaryText}}))}}))},"Ki"),"overview-message-view-model",{props:{data:_.lB}});_.ip(_.Ybq,"ytd-overview-answer-view-model",{propNames:["data"]});var S8=function(){return _.B.apply(this,arguments)||this};
_.m(S8,_.B);S8.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"}}}};
S8.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],S8.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],S8.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],S8.prototype,"isSearch",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],S8);
_.Y(S8,"ytd-secondary-search-container-renderer",function(){if(nI3!==void 0)return nI3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return nI3=l},{mode:1});var azi;var Qn=function(){var l=_.B.apply(this,arguments)||this;l.renderSecondarySearchContainer=!1;l.isSearch=!1;l.isSearchDova=_.a("dova_on_search");return l};
_.m(Qn,_.B);_.X=Qn.prototype;_.X.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.X.created=function(){var l=this;this.boundStampSecondarySearchContainerIfFits=function(){l.stampSecondarySearchContainerIfFits()};
_.Yd("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.X.computeIsSearchFrictionPage=function(l){var e,O,E,J,z;l=l==null?void 0:(e=l.primaryContents)==null?void 0:(O=e.sectionListRenderer)==null?void 0:(E=O.contents)==null?void 0:(J=E[0])==null?void 0:(z=J.itemSectionRenderer)==null?void 0:z.contents;if(!l)return!1;e=_.b(l);for(O=e.next();!O.done;O=e.next())if(E=void 0,(E=O.value)==null?0:E.searchFrictionViewModel)return!0;return!1};
_.X.computeShowSecondaryColumn=function(l,e){return!!(e&&e.secondaryContents&&l)};
_.X.activeChanged=function(){var l=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.id(this,this.debounceStampSecondarySearchContainerIfFits)),_.N7(function(){l.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.id(this,this.debounceStampSecondarySearchContainerIfFits))};
_.X.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.X.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.X.debounceStampSecondarySearchContainerIfFits=function(){_.rP(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.X.onRetrieveLocation=function(l,e){e.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);l.stopPropagation()};
_.X.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Qn.prototype.dataChanged=Qn.prototype.dataChanged;Qn.prototype.onRetrieveLocation=Qn.prototype.onRetrieveLocation;Qn.prototype.persistentGuideChanged=Qn.prototype.persistentGuideChanged;Qn.prototype.activeChanged=Qn.prototype.activeChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Qn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],Qn.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],Qn.prototype,"ironResizableBehavior",void 0);_.L([_.T(),_.q("design:type",Boolean)],Qn.prototype,"active",void 0);_.L([_.T(),_.q("design:type",Object)],Qn.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.a("enable_desktop_search_bigger_thumbs")}}),
_.q("design:type",Boolean)],Qn.prototype,"useBiggerThumbs",void 0);_.L([_.T({reflectToAttribute:!0,value:function(){return _.oy("desktop_search_bigger_thumbs_style")}}),
_.q("design:type",String)],Qn.prototype,"biggerThumbsStyle",void 0);_.L([_.T(),_.q("design:type",Object)],Qn.prototype,"renderSecondarySearchContainer",void 0);_.L([_.T({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.q("design:type",Boolean)],Qn.prototype,"showSecondaryColumn",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.q("design:type",Boolean)],Qn.prototype,"isSearchFrictionPage",void 0);
_.L([_.T(),_.q("design:type",Object)],Qn.prototype,"isSearch",void 0);_.L([_.T(),_.q("design:type",Object)],Qn.prototype,"isSearchDova",void 0);_.L([_.AA("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qn.prototype,"activeChanged",null);_.L([_.AA("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qn.prototype,"persistentGuideChanged",null);
_.L([_.wP("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Qn.prototype,"onRetrieveLocation",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qn.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Qn);
_.Y(Qn,"ytd-two-column-search-results-renderer",function(){if(azi!==void 0)return azi;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return azi=l},{mode:1});var xF=function(){var l=_.B.apply(this,arguments)||this;l.hasSearchHeader=!1;l.hasSecondaryContent=!1;l.hasBiggerThumbs=_.a("enable_desktop_search_bigger_thumbs");l.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return l};
_.m(xF,_.B);_.X=xF.prototype;_.X.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:_.Rb(["aa","eocs"])}}};
_.X.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.X.loadPage_=function(l){this.initCsi();l&&(this.data=l,_.Yd("REFINEMENTS_TUPLE",["FromSearchResponse",l.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.EW(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.X.initCsi=function(){_.mv("results",["ol","cpt"])};
_.X.updateTitle=function(){var l=_.vD(window.location.href,"q");l||(l=_.vD(window.location.href,"search_query"));_.$u(this.hostElement,"yt-update-title",l||"")};
_.X.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.X.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.a("web_srp_data_changed_terminate_imp_killswitch")||_.Wb(this.hostElement,"yt-terminate-video-preview-action")};
_.X.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.X.computeHasSearchHeader=function(l){var e;l=l==null?void 0:(e=l.header)==null?void 0:e.searchHeaderRenderer;return!!l&&(!!l.searchFilterButton||!!l.chipBar)};
_.X.computeHasSecondaryContent=function(l){var e,O;return!!(l==null?0:(e=l.contents)==null?0:(O=e.twoColumnSearchResultsRenderer)==null?0:O.secondaryContents)};
_.Ji.Object.defineProperties(xF,{template:{configurable:!0,enumerable:!0,get:function(){if(EIu===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);EIu=l}l=EIu;return l}}});
xF.prototype.onReloadContinuationFinish=xF.prototype.onReloadContinuationFinish;xF.prototype.dataChanged=xF.prototype.dataChanged;_.L([_.K(_.ym.YtPageBehavior),_.q("design:type",Object)],xF.prototype,"ytPageBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],xF.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],xF.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xF.prototype,"data",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],xF.prototype,"monitorScroll",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xF.prototype,"hasSearchHeader",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xF.prototype,"hasSecondaryContent",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xF.prototype,"hasBiggerThumbs",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xF.prototype,"dataChanged",null);
_.L([_.wP("yt-reload-continuation-finish"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xF.prototype,"onReloadContinuationFinish",null);_.L([_.U({is:"ytd-search"})],xF);_.Zl.registerService(_.JyA,xF);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("h8y2qb");
var X_H=function(l){if(l=_.Jkd(l)){var e;(e=l.sources)!=null&&e[0]?(e=_.z$x(l),e=e<1?"VERTICAL":e>1?"HORIZONTAL":"SQUARE"):e=void 0;return e}},p5=function(l){_.Kn.call(this,"upload");
this.opts.query=l},btH=function(l,e){return _.W(zrF,{data:l,
onYtNavigate:e})},MXH=function(l,e){return _.wV(l.entities,"pageHeaderEntity",e)},Zth=function(l,e){return l.map(function(O){if(O.tabRenderer)return VX4(O.tabRenderer);
if(O.expandableTabRenderer&&e){var E=O.expandableTabRenderer;return{customTabRenderable:function(){return e(E)}}}return{}})},VX4=function(l){return{identifier:l.tabIdentifier,
aTagConfig:_.vf({innertubeCommand:l.endpoint,forceNewState:!0}),title:l.title,selected:l.selected,disabled:l.unselectable,icon:l.icon}},ug4=function(l){return _.oM({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:l})},CU4=function(l){if(!_.Vz(document,"gtm-noscript")){var e=document.createElement("noscript");
e.id="gtm-noscript";e.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+l+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(e)}};_.o_(p5,_.Kn);p5.prototype.JSC$8110_setLabel=function(l){p5.superClass_.JSC$8110_setLabel.call(this,l);return this};
p5.prototype.addUploadMetadata=function(l,e){p5.superClass_.addUploadMetadata.call(this,l,e);return this};var o9C=function(l){if(l!=="youtubebanner"&&l!=="youtube-channel-banner")throw Error("Vl");p5.call(this,l)};
_.m(o9C,p5);o9C.prototype.JSC$8110_setLabel=function(l){p5.prototype.JSC$8110_setLabel.call(this,l);return this};
o9C.prototype.addUploadMetadata=function(l,e){p5.prototype.addUploadMetadata.call(this,l,e);return this};var $XO=[_.sl,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(l){_.c9(l).path[0]!==this&&(this.resetLayout(),l.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var l=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Ci(this._layoutDebouncer,_.RX,l);_.ot(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var l=this;requestAnimationFrame(function(){l.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(l){this.resizerShouldNotify(l)&&this._notifyDescendant(l)},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 Wjh=[_.Vbk,{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(l,e){var O=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[l];if(!O)throw new ReferenceError(this._getUndefinedMsg(l));l=this._boundEffect(O,e||{});l.setUp();return l},
_effectsChanged:function(l,e,O){this._tearDownEffects();l&&O&&(l.split(" ").forEach(function(E){var J;E!==""&&((J=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[E])?this._effects.push(this._boundEffect(J,e[E])):console.warn(this._getUndefinedMsg(E)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(l,e){e=e||{};var O=parseFloat(e.startsAt||0),E=parseFloat(e.endsAt||1),J=E-O,z=function(){};
E=O===0&&E===1?l.run:function(M,Z){l.run.call(this,Math.max(0,(M-O)/J),Z)};
return{setUp:l.setUp?l.setUp.bind(this,e):z,run:l.run?E.bind(this):z,tearDown:l.tearDown?l.tearDown.bind(this):z}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(l){l.setUp()!==!1&&this._effectsRunFn.push(l.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(l){l.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(l,e){this._effectsRunFn&&this._effectsRunFn.forEach(function(O){O(l,e)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var l=this._clampedScrollTop;this._updateScrollState(l);this.threshold>0&&this._setThresholdTriggered(l>=this.threshold)}},
_getDOMRef:function(l){console.warn("_getDOMRef","`"+l+"` is undefined")},
_getUndefinedMsg:function(l){return"Scroll effect `"+l+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+l+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Wl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(l){var e={};l=parseFloat(l.scalar);e.background=this._getDOMRef("background");e.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");e.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");e.deltaBg=e.backgroundFrontLayer.offsetHeight-e.background.offsetHeight;e.deltaBg===0?(isNaN(l)&&(l=.8),e.deltaBg=(this._dHeight||0)*l):(isNaN(l)&&(l=
1),e.deltaBg*=l);this._fxParallaxBackground=e},
run:function(l){var e=this._fxParallaxBackground;this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,l)+"px, 0px)",e.backgroundFrontLayer);e.backgroundRearLayer&&this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,l)+"px, 0px)",e.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var dX4;var g9u;var itz=function(){};
_.X=itz.prototype;_.X._scrollTargetChanged=function(){};
_.X.scroll=function(){};
_.X._isValidScrollTarget=function(){};
_.X._toggleScrollListener=function(){};
_.X.toggleScrollListener=function(){};
_.X.createEffect=function(){};
_.X._effectsChanged=function(){};
_.X._layoutIfDirty=function(){};
_.X._boundEffect=function(){};
_.X._setUpEffect=function(){};
_.X._tearDownEffects=function(){};
_.X._runEffects=function(){};
_.X._scrollHandler=function(){};
_.X._scrollStateChanged=function(){};
_.X._getUndefinedMsg=function(){};
_.X.notifyResize=function(){};
_.X.assignParentResizable=function(){};
_.X.stopResizeNotificationsFor=function(){};
_.X._subscribeIronResize=function(){};
_.X._unsubscribeIronResize=function(){};
_.X.resizerShouldNotify=function(){};
_.X._onDescendantIronResize=function(){};
_.X._fireResize=function(){};
_.X._onIronRequestResizeNotifications=function(){};
_.X._parentResizableChanged=function(){};
_.X._notifyDescendant=function(){};
_.X._requestResizeNotifications=function(){};
_.X._findParent=function(){};
_.X._appResetLayoutHandler=function(){};
_.X.resetLayout=function(){};
_.X._notifyLayoutChanged=function(){};
_.X._notifyDescendantResize=function(){};
_.X._setThresholdTriggered=function(){};
itz=_.RB({_template:function(){if(g9u!==void 0)return g9u;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;dX4===void 0&&(dX4=document.createElement("template"));var E=dX4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return g9u=l},
is:"tp-yt-app-header",behaviors:[Wjh,$XO],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 l=_.c9(this.$.slot).getDistributedNodes(),e=0,O;O=l[e];e++)if(O.nodeType===Node.ELEMENT_NODE)if(O.hasAttribute("sticky")){this._stickyElRef=O;break}else this._stickyElRef||(this._stickyElRef=O);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var l=this._clampedScrollTop,e=this._height===0||l===0,O=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;e||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();e?this._updateScrollState(l,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=O}},
_updateScrollState:function(l,e){if(this._height!==0){var O=0,E=this._top;var J=this._maxHeaderTop;var z=l-this._lastScrollTop,M=Math.abs(z),Z=l>this._lastScrollTop,u=performance.now();this._mayMove()&&(O=this._clamp(this.reveals?E+z:l,0,J));l>=this._dHeight&&(O=this.condenses&&!this.fixed?Math.max(this._dHeight,O):O,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&M<100){if(u-this._initTimestamp>300||this._wasScrollingDown!==Z)this._initScrollTop=l,this._initTimestamp=u;l>=J&&
(Math.abs(this._initScrollTop-l)>30||M>10?(Z&&l>=J?O=J:!Z&&l>=this._dHeight&&(O=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((O-E)/(z/(u-this._lastTimestamp)),0,300)+"ms"):O=this._top)}J=this._dHeight===0?l>0?1:0:O/this._dHeight;e||(this._lastScrollTop=l,this._top=O,this._wasScrollingDown=Z,this._lastTimestamp=u);if(e||J!==this._progress||E!==O||l===0)this._progress=J,this._runEffects(J,O),this._transformHeader(O)}},
_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(l){this.translate3d(0,-l+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&l>=this._stickyElTop?Math.min(l,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(l,e,O){return Math.min(O,Math.max(e,l))},
_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),_.c9(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(l){switch(l){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.c9(this).querySelector("[main-title]");case "condensedTitle":return _.c9(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var w_4;var Aj4;_.RB({_template:function(){if(Aj4!==void 0)return Aj4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;w_4===void 0&&(w_4=document.createElement("template"));var E=w_4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return Aj4=l},
is:"tp-yt-app-header-layout",behaviors:[$XO],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.c9(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var l=this.header;if(this.isAttached&&l){this.$.wrapper.classList.remove("initializing");l.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)l.style.left=
"",l.style.right="";else{var e=this.getBoundingClientRect(),O=document.documentElement.clientWidth-e.right;l.style.left=e.left+"px";l.style.right=O+"px"}e=this.$.contentContainer.style;O=l.offsetHeight;l.fixed&&!l.condenses&&this.hasScrollingRegion?(e.marginTop=O+"px",e.paddingTop=""):(e.paddingTop=O+"px",e.marginTop="")}}});var n9u=new _.v("replaceFeedContentAction");var avh=new _.v("alertCommand");var kfu=new _.v("manageLabsStateCommand");var IvF=new _.v("inlineFormRenderer");var K5=new _.v("playlistSidebarPrimaryInfoRenderer");var mX0=new _.v("productDetailsThumbnailRenderer"),yjC=new _.v("productDetailsVariantRenderer"),p_f=new _.v("productDetailsVariantOptionRenderer"),Kjo=new _.v("productDetailsOffersContainerRenderer"),jh4=new _.v("productDetailsOfferRenderer");var Ht3=new _.v("shoppingFlaggingRenderer");var cjz=new _.v("playlistBylineRenderer");var FjC=new _.v("insertChannelTabCommand");var jC=function(){return _.IB.apply(this,arguments)||this};
_.m(jC,_.IB);_.X=jC.prototype;_.X.activeChanged=function(){if(this.active){var l=_.ud(this.hostElement).querySelector("#header");l&&_.$u(l,"iron-resize");window.addEventListener("scroll",_.id(this,this.onScroll))}else window.removeEventListener("scroll",_.id(this,this.onScroll)),_.$u(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.X.guideVisibleChanged=function(){var l=_.ud(this.hostElement).querySelector("#header");l&&_.$u(l,"iron-resize")};
_.X.onScroll=function(){var l=this;_.rP(this,"onScroll",function(){var e=_.ud(l.hostElement).querySelector("#header");e&&e.polymerController&&(e=e.polymerController.getScrollState().progress===1?"standard":"seamed",_.$u(l.hostElement,"yt-request-panel-mode-change",{mode:e}))},10)};
_.X.tabsChanged=function(){if(this.tabs){for(var l=null,e=0,O=this.tabs.length;e<O;++e){var E=this.tabs[e].tabRenderer;if(E&&E.selected){l=e;break}}this.selected=l}};
_.X.onTabsActivate=function(l){_.$u(this.hostElement,"yt-navigate",{endpoint:this.tabs[l.detail.selected].tabRenderer.endpoint})};
jC.prototype.tabsChanged=jC.prototype.tabsChanged;jC.prototype.guideVisibleChanged=jC.prototype.guideVisibleChanged;jC.prototype.activeChanged=jC.prototype.activeChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],jC.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.T(),_.q("design:type",Array)],jC.prototype,"tabs",void 0);
_.L([_.T(),_.q("design:type",Object)],jC.prototype,"selected",void 0);_.L([_.T(),_.q("design:type",Boolean)],jC.prototype,"active",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],jC.prototype,"disableHeaderFluidWidth",void 0);_.L([_.AA("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jC.prototype,"activeChanged",null);
_.L([_.AA("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jC.prototype,"guideVisibleChanged",null);_.L([_.AA("tabs"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jC.prototype,"tabsChanged",null);_.L([_.m0()],jC);var fvu=[_.x.YtRendererBehavior,_.hx.YtdGuideStateAwareBehavior,jC.prototype];var Rru=2/3,Tji=_.sL(130749),shh=function(l,e){var O=this;this.element=l;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){O.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Rru,moveAction:function(E){O.moveAction(E)},
triggerAction:function(){O.element.isReloading=!0;_.rg(_.yN(),{visualElement:Tji});_.n4.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:O.element}})}}}};
_.WJ(_.yN(),Tji,this.layer);this.gesture=new _.uW(l,e,this.refreshConfig,"pan-down");this.attach()};
_.X=shh.prototype;_.X.attach=function(){this.gesture.attach()};
_.X.detach=function(){this.gesture.detach()};
_.X.reset=function(){this.element.close()};
_.X.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.X.moveAction=function(l){this.element.rotation=l*360};var Gf3=_.sL(130750),HG=function(l,e,O,E,J){var z=this;this.element=l;this.parent=O;this.channelHeader=E;this.ytdReduxDispatch=J;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){z.tabsStartAtInPx=z.channelHeader.clientHeight-48;var M;(M=z.selectedTab)!=null&&M.title&&(M=_.V2().resolve(_.MG(_.XZ)))&&(M=M.getCurrentPage(),z.lastVisitedTabScrollPosition=M.getScrollTop(),z.previousTab&&
((z.lastVisitedTabScrollPosition===void 0?0:z.lastVisitedTabScrollPosition<z.channelHeader.clientHeight-48)?z.scrollPositionForTabs.has(z.selectedTab.title)&&z.scrollPositionForTabs.delete(z.selectedTab.title):z.scrollPositionForTabs.set(z.selectedTab.title,M.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Bj3(),triggerAction:function(){z.navigate(z.previousTab)},
moveAction:function(M,Z){z.moveAction(M,Z)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Bj3(),triggerAction:function(){z.navigate(z.nextTab)},
moveAction:function(M,Z){z.moveAction(M,Z)}}}};
_.WJ(_.yN(),Gf3,this.layer);this.gesture=new _.uW(l,e,this.tabConfig);this.attach()};
HG.prototype.attach=function(){this.gesture.attach()};
HG.prototype.detach=function(){this.gesture.detach()};
HG.prototype.tabsChanged=function(l){if(l){var e=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;l=_.b(l);for(var O=l.next();!O.done;O=l.next()){O=O.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=O);var E=void 0;if((E=O)==null?0:E.selected)this.previousTab=e,this.selectedTab=O;e=O}e=this.gesture;l=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
e.config=l;this.scrollPositionNeedsUpdate=!0}};
HG.prototype.moveAction=function(l,e){if(!this.tabsElement){var O;this.tabsElement=(O=this.parent.header)==null?void 0:O.tabsElement;e==="right"&&this.previousTab?_.ydS(_.yd.instance,this.previousTab.endpoint,{},""):e==="left"&&this.nextTab&&_.ydS(_.yd.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}O=this.tabsElement._pos;e==="right"&&(l*=-1);this.tabsElement._positionBar(O.width,O.left*1+O.width*l)};
var Bj3=function(){var l,e;return(e=(l=_.V2().resolve(_.XZ).getCurrentPage())==null?void 0:l.clientWidth)!=null?e:0};
HG.prototype.navigate=function(l){this.element.data=void 0;if(l=l==null?void 0:l.endpoint)this.ytdReduxDispatch(ug4(!0)),_.rg(_.yN(),{visualElement:Gf3}),_.n4.instance.resolveCommand({navigateAction:{endpoint:l}},{form:{element:this.element}})};var PUu;var UXh;var cG=function(){return _.B.apply(this,arguments)||this};
_.m(cG,_.B);cG.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cG.prototype,"data",void 0);_.L([_.U({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],cG);
_.Y(cG,"ytd-labs-edit-renderer",function(){if(UXh!==void 0)return UXh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return UXh=l},{mode:1});var YJ0;var Fd=function(){var l=_.B.apply(this,arguments)||this;l.dark=!1;l.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";l.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(Fd,_.B);Fd.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Fd.prototype.ready=function(){var l=document.documentElement.hasAttribute("dark");this.setBackgroundImage(l);this.dark=l};
Fd.prototype.onDarkModeToggledAction=function(l){this.setBackgroundImage(l);this.dark=l};
Fd.prototype.setBackgroundImage=function(l){_.dP(this.hostElement,{"--yt-labs-header-background":"url("+(l?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Fd.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Fd.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Fd.prototype,"dark",void 0);
_.L([_.U({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Fd);
_.Y(Fd,"ytd-labs-header-renderer",function(){if(YJ0!==void 0)return YJ0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return YJ0=l},{mode:1});var hr4;var f5=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return l};
_.m(f5,_.B);f5.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"}}}}}};
f5.prototype.onYtToggleButton=function(l){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",l.detail.toggled)};
f5.prototype.onManageLabsState=function(l){if(l=_.I(l,kfu))l.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?l.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&l.labsItemId===this.data.labsItemId&&(l.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Wb(this.hostElement,"yt-check-labs-opted-in-state").some(function(e){return e})&&this.data.confirmationDialogCommand?_.wQ(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.V2().resolve(_.Zh).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&l.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.V2().resolve(_.Zh).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
f5.prototype.onCheckLabsOptedInState=function(){var l=this.get("data.primaryButton.toggleButtonRenderer");return l?l.isToggled:!1};
_.Ji.Object.defineProperties(f5.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
f5.prototype.onYtToggleButton=f5.prototype.onYtToggleButton;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],f5.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],f5.prototype,"itemStyle",null);_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],f5.prototype,"onYtToggleButton",null);_.L([_.U({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],f5);
_.Y(f5,"ytd-labs-item-renderer",function(){if(hr4!==void 0)return hr4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return hr4=l},{mode:1});var Lj3;var tX3;var R0=function(){return _.B.apply(this,arguments)||this};
_.m(R0,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],R0.prototype,"data",void 0);_.L([_.U({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],R0);
_.Y(R0,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(tX3!==void 0)return tX3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tX3=l},{mode:1});var qJ4;var Tc=function(){return _.B.apply(this,arguments)||this};
_.m(Tc,_.B);Tc.prototype.observeSuperchatChip=function(){if(this.data){var l={"--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)};_.dP(this.hostElement,l)}};
Tc.prototype.colorFromDecimal=function(l){return _.qv(Number(l||0))};
Tc.prototype.observeSuperchatChip=Tc.prototype.observeSuperchatChip;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Tc.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Tc.prototype,"observeSuperchatChip",null);_.L([_.U({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Tc);
_.Y(Tc,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(qJ4!==void 0)return qJ4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return qJ4=l},{mode:1});var sE=function(){return _.B.apply(this,arguments)||this};
_.m(sE,_.B);sE.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"}}}};
_.Ji.Object.defineProperties(sE.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.B8),_.q("design:type",Object)],sE.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sE.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],sE.prototype,"hideMessageBlock",null);
_.L([_.U({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],sE);
_.Y(sE,"ytd-live-chat-history-entry-renderer",function(){if(Lj3!==void 0)return Lj3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Lj3=l},{mode:1});var v94;var Gc=function(){return _.B.apply(this,arguments)||this};
_.m(Gc,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Gc.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Gc);
_.Y(Gc,"ytd-channel-options-renderer",function(){if(v94!==void 0)return v94;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return v94=l},{mode:1});var NjP;var BG=function(){return _.B.apply(this,arguments)||this};
_.m(BG,_.B);BG.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BG.prototype,"data",void 0);_.L([_.U({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],BG);
_.Y(BG,"ytd-settings-email-item-renderer",function(){if(NjP!==void 0)return NjP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return NjP=l},{mode:1});var rjC;var PG=function(){return _.B.apply(this,arguments)||this};
_.m(PG,_.B);PG.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"}}}};
PG.prototype.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
PG.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Ji.Object.defineProperties(PG.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PG.prototype,"data",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],PG.prototype,"expanded",void 0);_.L([_.R("expanded"),_.q("design:type",String),_.q("design:paramtypes",[])],PG.prototype,"emailListExpanded",null);
_.L([_.aB("#options"),_.q("design:type",Object)],PG.prototype,"options",void 0);_.L([_.U({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],PG);
_.Y(PG,"ytd-settings-email-list-renderer",function(){if(rjC!==void 0)return rjC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rjC=l},{mode:1});var DX4;var UE=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return l};
_.m(UE,_.B);UE.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"}}}};
UE.prototype.handleSignalActionSubmitForm=function(){var l,e=(l=this.formRenderer)==null?void 0:l.getForm();e&&this.data.serviceEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},e,{element:this.hostElement})})};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],UE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],UE.prototype,"data",void 0);_.L([_.aB("yt-form-renderer"),_.q("design:type",Object)],UE.prototype,"formRenderer",void 0);
_.L([_.U({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],UE);
_.Y(UE,"ytd-settings-gaia-link-renderer",function(){if(DX4!==void 0)return DX4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DX4=l},{mode:1});var SJh;var Ys=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return l};
_.m(Ys,_.B);Ys.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.eu4()&&this.set("data.hidden",!1)};
Ys.prototype.onSwitchReady=function(){var l=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.a("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.lUf().then(function(e){e&&(Notification.permission==="default"?l.set("data.hidden",!1):Notification.permission==="granted"&&_.eX("NotificationsDisabled").then(function(O){O||_.Wb(l.hostElement,"yt-toggle-settings-switch",[l.data.id,!O]);l.set("data.hidden",!1)}).catch(function(){}))})})};
Ys.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}}}}};
Ys.prototype.handleUpdateOptionsCommand=function(l){(l=_.I(l,_.Y91))&&this.data&&this.data.id===l.id&&(this.set("data.hidden",l.hidden),l.text!==void 0&&this.set("data.text",l.text),l.clearOptions&&this.set("data.options",[]))};
Ys.prototype.onSwitchReady=Ys.prototype.onSwitchReady;Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ys.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ys.prototype,"data",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ys.prototype,"dataChanged",null);_.L([_.wP("yt-settings-switch-ready"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ys.prototype,"onSwitchReady",null);_.L([_.U({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Ys);
_.Y(Ys,"ytd-settings-options-renderer",function(){if(SJh!==void 0)return SJh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return SJh=l},{mode:1});var Qhu;var hy=function(){return _.B.apply(this,arguments)||this};
_.m(hy,_.B);hy.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hy.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
hy.prototype.onYtExpanderMoreTapped=hy.prototype.onYtExpanderMoreTapped;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hy.prototype,"data",void 0);
_.L([_.wP("yt-expander-more-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hy.prototype,"onYtExpanderMoreTapped",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],hy);
_.Y(hy,"ytd-product-details-description-renderer",function(){if(Qhu!==void 0)return Qhu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Qhu=l},{mode:1});var xXi;var L5=function(){var l=_.B.apply(this,arguments)||this;l.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";l.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";l.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";l.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return l};
_.m(L5,_.B);L5.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Ji.Object.defineProperties(L5.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:(e=l.offerData)==null?void 0:e.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?void 0:l.purchaseButtonRenderers)!==void 0&&((e=this.data)==null?void 0:e.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.formattedFromMerchantText)&&(!((e=this.data)==null||!e.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],L5.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],L5.prototype,"data",void 0);
_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],L5.prototype,"shippingIcon",void 0);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],L5.prototype,"shippingAddressIcon",void 0);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],L5.prototype,"googleGuaranteeIcon",void 0);
_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?String:void 0}),_.q("design:type",Object)],L5.prototype,"returnPolicyIcon",void 0);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],L5.prototype,"showAdditionalFees",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],L5.prototype,"showMultiPurchaseButtons",null);
_.L([_.R("data","showMultiPurchaseButtons"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],L5.prototype,"showPurchaseData",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],L5);
_.Y(L5,"ytd-product-details-hero-offer-renderer",function(){if(xXi!==void 0)return xXi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return xXi=l},{mode:1});var lQF;var eYo;var ty=function(){return _.B.apply(this,arguments)||this};
_.m(ty,_.B);_.X=ty.prototype;_.X.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.X.onKeyDown=function(l){l=l.keyCode;l!==13&&l!==32||this.handleSelection()};
_.X.onMouseEnterImage=function(){var l;((l=this.data)==null?void 0:l.thumbnailDetails)!==void 0&&_.dQ(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.X.onMouseLeaveImage=function(){_.dQ(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.X.handleSelection=function(){this.data&&_.$u(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Ji.Object.defineProperties(ty.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isSelected)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ty.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ty.prototype,"isSelected",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],ty);
_.Y(ty,"ytd-product-details-thumbnail-renderer",function(){if(eYo!==void 0)return eYo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return eYo=l},{mode:1});var qF=function(){var l=_.B.apply(this,arguments)||this;var e={};l.actionMap=(e["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",e["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",e);l.selectedThumbnailIndex=0;l.selectItem=function(O){O.target.onKeyDown(O)};
return l};
_.m(qF,_.B);_.X=qF.prototype;_.X.handlePreviewImageSelect=function(l){this.hoverThumbnail=l};
_.X.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.X.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.X.onThumbnailSelected=function(l,e){this.selectedThumbnailIndex=e};
_.X.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.X.updateOffset=function(){var l=_.ud(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-l));this.ytdHorizontalListBehavior.reposition_()};
_.Ji.Object.defineProperties(qF.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.imageRenderer){var e,O;return((e=this.data)==null?void 0:(O=e.imageRenderer)==null?void 0:O.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var l;if((l=this.data)==null?0:l.imageRenderer){var e;return(e=_.I(this.data.imageRenderer[this.selectedThumbnailIndex],mX0))==null?void 0:e.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var l=this,e,O,E,J=(E=(e=this.data)==null?void 0:(O=e.imageRenderer)==null?void 0:O.map(function(z,M){return{productDetailsThumbnailRenderer:Object.assign({},_.I(z,mX0),{index:M,isSelected:M===l.selectedThumbnailIndex})}}))!=null?E:[];
return Object.assign({},this.data,{imageRenderer:J})}}});
qF.prototype.updateOffset=qF.prototype.updateOffset;qF.prototype.dataChanged=qF.prototype.dataChanged;qF.prototype.onThumbnailSelected=qF.prototype.onThumbnailSelected;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.XK.YtdHorizontalListBehavior),_.q("design:type",Object)],qF.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],qF.prototype,"componentBehavior",void 0);_.L([_.K([_.ZH.YtActionHandlerBehavior]),_.q("design:type",Object)],qF.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qF.prototype,"data",void 0);_.L([_.T({value:"$.items.children"}),_.q("design:type",String)],qF.prototype,"itemsPath",void 0);_.L([_.T({value:3}),_.q("design:type",Number)],qF.prototype,"initialCount",void 0);
_.L([_.aB("#items"),_.q("design:type",Object)],qF.prototype,"items",void 0);_.L([_.T(),_.q("design:type",Object)],qF.prototype,"selectedThumbnailIndex",void 0);_.L([_.T(),_.q("design:type",Object)],qF.prototype,"hoverThumbnail",void 0);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],qF.prototype,"showThumbnails",null);
_.L([_.wP("ytd-product-details-thumbnail-renderer-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Number]),_.q("design:returntype")],qF.prototype,"onThumbnailSelected",null);_.L([_.R("data","selectedThumbnailIndex","hoverThumbnail"),_.q("design:type",Object),_.q("design:paramtypes",[])],qF.prototype,"thumbnailDetails",null);_.L([_.R("data","selectedThumbnailIndex"),_.q("design:type",Object),_.q("design:paramtypes",[])],qF.prototype,"populatedData",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qF.prototype,"dataChanged",null);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],qF.prototype,"updateOffset",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],qF);
_.Y(qF,"ytd-product-details-image-carousel-renderer",function(){if(lQF!==void 0)return lQF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return lQF=l},{mode:_.Wf("kevlar_poly_si_batch_j079")?1:2});var Oju;var vG=function(){return _.B.apply(this,arguments)||this};
_.m(vG,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],vG.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vG.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],vG);
_.Y(vG,"ytd-product-details-offer-renderer",function(){if(Oju!==void 0)return Oju;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Oju=l},{mode:1});var Eru;var NF=function(){var l=_.B.apply(this,arguments)||this;l.isOffersHidden=!0;return l};
_.m(NF,_.B);NF.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var l,e=_.I((l=this.data)==null?void 0:l.viewOffersButton,_.YU);e&&this.ytRendererBehavior.logExplicitClick(e)};
NF.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Ji.Object.defineProperties(NF.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return(O=_.I((l=this.data)==null?void 0:(e=l.offers)==null?void 0:e[0],jh4))==null?void 0:(E=O.offerData)==null?void 0:E.vendorLogoUrl}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],NF.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],NF.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],NF.prototype,"isOffersHidden",void 0);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],NF.prototype,"firstOfferVendorLogoUrl",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],NF);
_.Y(NF,"ytd-product-details-offers-container-renderer",function(){if(Eru!==void 0)return Eru;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Eru=l},{mode:1});var JtC;var XUH;var ry=function(){return _.B.apply(this,arguments)||this};
_.m(ry,_.B);ry.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
ry.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.dQ(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
ry.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.dQ(this,"ytd-product-details-variant-image-unselect")};
_.Ji.Object.defineProperties(ry.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 l;return((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?void 0:l.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((O=this.data)==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var l;if(((l=this.data)==null?void 0:l.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var l,e;return this.isUnavailable?(l=this.data)==null?void 0:l.variantOptionUnavailableAccessibilityLabel:(e=this.data)==null?void 0:e.variantOptionAccessibilityLabel}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ry.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ry.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],ry.prototype,"displayType",void 0);
_.L([_.R("displayType","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ry.prototype,"isImageButton",null);_.L([_.R("displayType","data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ry.prototype,"isPillButton",null);_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ry.prototype,"isActive",null);
_.L([_.R("data"),_.T({reflectToAttribute:!0}),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ry.prototype,"isUnavailable",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ry.prototype,"thumbnailDetails",null);_.L([_.R("isUnavailable","data"),_.q("design:type",Object),_.q("design:paramtypes",[])],ry.prototype,"accessibilityLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],ry);
_.Y(ry,"ytd-product-details-variant-option-renderer",function(){if(XUH!==void 0)return XUH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return XUH=l},{mode:1});var zYu;var D6=function(){var l=_.B.apply(this,arguments)||this;l.variantsExpanded=!1;l.hideShowMoreLessVariantButton=!0;l.initialized=!1;l.computeVariantsDebouncer=null;l.computeVariants=function(e){e=e===void 0?!1:e;l.variantsExpanded||l.showOptions()||!e||(l.variantsExpanded=!0);if(l.variantsExpanded){e=_.b(l.items.children);for(var O=e.next();!O.done;O=e.next())O.value.hidden=!1}l.initialized=!0};
return l};
_.m(D6,_.B);_.X=D6.prototype;_.X.ready=function(){var l=this;setTimeout(function(){l.computeVariants(!0)})};
_.X.showOptions=function(){for(var l=_.b(this.items.children),e=l.next();!e.done;e=l.next())e.value.hidden=!0;var O=this.container.getBoundingClientRect().width,E=0,J=l=0;e=!1;for(var z=_.b(this.items.children),M=z.next();!M.done;M=z.next()){M=M.value;M.hidden=!1;var Z=M.getBoundingClientRect().width;if(E+Z<O)E+=Z;else if(++J<2)E=Z;else break;l+=1;M.hasAttribute("is-active")&&(e=!0)}for(O=l;O<this.items.children.length;O++)this.items.children[O].hidden=!0;this.hideShowMoreLessVariantButton=l===this.items.children.length;
return e};
_.X.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Ci(this.computeVariantsDebouncer,_.la.after(100),this.computeVariants)};
_.X.onShowMoreLessVariantsButtonClick=function(){var l;(l=this.data)!=null&&l.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.X.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Ji.Object.defineProperties(D6.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.data)==null?void 0:(e=l.variantOptionRenderers)==null?void 0:e.find(function(z){return _.I(z,p_f).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),E,J;
return(J=(E=_.I(O,p_f))==null?void 0:E.name)!=null?J:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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"}}}});
D6.prototype.debouncedComputeVariants=D6.prototype.debouncedComputeVariants;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],D6.prototype,"componentBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],D6.prototype,"ironResizableBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],D6.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],D6.prototype,"variantsExpanded",void 0);_.L([_.T(),_.q("design:type",Object)],D6.prototype,"hideShowMoreLessVariantButton",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],D6.prototype,"initialized",void 0);_.L([_.aB("#items"),_.q("design:type",HTMLDivElement)],D6.prototype,"items",void 0);_.L([_.aB("#container"),_.q("design:type",HTMLDivElement)],D6.prototype,"container",void 0);
_.L([_.aB("#more-variants-button"),_.q("design:type",HTMLElement)],D6.prototype,"moreVariantsButton",void 0);_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],D6.prototype,"selectedOptionName",null);_.L([_.AA("data","variantsExpanded"),_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],D6.prototype,"debouncedComputeVariants",null);
_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],D6.prototype,"displayType",null);_.L([_.R("displayType"),_.q("design:type",Object),_.q("design:paramtypes",[])],D6.prototype,"variantItemsClassname",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],D6);
_.Y(D6,"ytd-product-details-variant-renderer",function(){if(zYu!==void 0)return zYu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zYu=l},{mode:1});var SC=function(){return _.B.apply(this,arguments)||this};
_.m(SC,_.B);
SC.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"}}}};
_.Ji.Object.defineProperties(SC.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(e=_.I((l=this.data)==null?void 0:l.offersContainerRenderer,Kjo))==null?void 0:e.offers;return O!==void 0&&(O==null?void 0:O.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 l,e,O;return((O=(l=this.data)==null?void 0:(e=l.variants)==null?void 0:e.map(function(E){var J,z;E=(z=(J=_.I(E,yjC))==null?void 0:J.variantOptionRenderers)==null?void 0:z.find(function(Z){var u;return((u=_.I(Z,p_f))==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var M;return(M=_.I(E,p_f))==null?void 0:M.name}).filter(function(E){return typeof E==="string"}))!=null?O:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E=(e=_.I((l=this.data)==null?void 0:l.shoppingFlaggingRenderer,Ht3))==null?void 0:(O=e.reportButton)==null?void 0:O.buttonRenderer;if(E)return{text:E.text,command:E.command,icon:{iconType:"FLAG"},accessibilityData:E.accessibilityData,trackingParams:E.trackingParams,loggingDirectives:E.loggingDirectives}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],SC.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],SC.prototype,"data",void 0);_.L([_.aB("#image-carousel-renderer"),_.q("design:type",Object)],SC.prototype,"imageCarouselRenderer",void 0);
_.L([_.aB("#hero-offer-renderer"),_.q("design:type",Object)],SC.prototype,"productDetailsHeroOfferRenderer",void 0);_.L([_.aB("#variants"),_.q("design:type",Object)],SC.prototype,"productDetailsVariantRenderer",void 0);_.L([_.aB("#offers"),_.q("design:type",Object)],SC.prototype,"productDetailsOffersContainerRenderer",void 0);_.L([_.aB("#description-renderer"),_.q("design:type",Object)],SC.prototype,"productDetailsDescriptionRenderer",void 0);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SC.prototype,"showPurchaseData",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SC.prototype,"showHeroOfferRenderer",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SC.prototype,"showBrandText",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SC.prototype,"showOffers",null);
_.L([_.R("showOffers","showPurchaseData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SC.prototype,"showBuySeparator",null);_.L([_.R("showOffers","showPurchaseData"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],SC.prototype,"showBuyCard",null);_.L([_.R("data"),_.q("design:type",String),_.q("design:paramtypes",[])],SC.prototype,"selectedVariantsText",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],SC.prototype,"shoppingReportingButtonData",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],SC);
_.Y(SC,"ytd-product-details-renderer",function(){if(JtC!==void 0)return JtC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return JtC=l},{mode:1});var bjf;var MIz;var VIC;var Qm=function(){return _.B.apply(this,arguments)||this};
_.m(Qm,_.B);Qm.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Ji.Object.defineProperties(Qm.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qm.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],Qm.prototype,"formattedAmount",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Qm.prototype,"ariaLabel",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.style"),_.q("design:type",String),_.q("design:paramtypes",[])],Qm.prototype,"vcBalanceWidgetStyle",null);_.L([_.Ps({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Qm);
_.Y(Qm,"yt-vc-balance-renderer",function(){if(VIC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;MIz===void 0&&(MIz=document.createElement("template"));var E=MIz;O.call(e,E.content.cloneNode(!0),l.content.firstChild);VIC=l}l=VIC;return l},{mode:2});_.Y7("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var xs=function(){return _.B.apply(this,arguments)||this};
_.m(xs,_.B);_.Ji.Object.defineProperties(xs.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:""}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],xs.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xs.prototype,"data",void 0);_.L([_.T({selectorArgs:["data.vcBalanceEntityKey"],selector:function(l,e){return _.wV(l.entities,"vcBalanceEntity",e)}}),
_.q("design:type",Object)],xs.prototype,"vcBalanceEntity",void 0);_.L([_.R("vcBalanceEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],xs.prototype,"formattedAmount",null);_.L([_.R("vcBalanceEntity"),_.q("design:type",String),_.q("design:paramtypes",[])],xs.prototype,"vcBalanceAriaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],xs);
_.Y(xs,"ytd-vc-balance-renderer",function(){if(bjf!==void 0)return bjf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return bjf=l},{mode:1});var ZjF;var lu=function(){var l=_.B.apply(this,arguments)||this;l.rotation=0;l.isReloading=!1;return l};
_.m(lu,_.B);lu.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
lu.prototype.reset=function(){this.hostElement.style.opacity=""};
lu.prototype.close=function(){var l=this;return _.V(function(e){if(e.nextAddress==1)return _.C(e,l.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);l.hostElement.style.opacity="0";_.Cl(e)})};
lu.prototype.rotationChanged=lu.prototype.rotationChanged;_.L([_.T(),_.q("design:type",Object)],lu.prototype,"rotation",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lu.prototype,"isReloading",void 0);_.L([_.aB("#icon"),_.q("design:type",HTMLElement)],lu.prototype,"icon",void 0);_.L([_.AA("rotation"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lu.prototype,"rotationChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-refresh"})],lu);
_.Y(lu,"ytd-refresh",function(){if(ZjF!==void 0)return ZjF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ZjF=l},{mode:1});var uAP;var e8=function(){return _.B.apply(this,arguments)||this};
_.m(e8,_.B);e8.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"}}}};
e8.prototype.dataChanged=function(){if(this.data){var l=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var e=_.up(this.data.banner.thumbnails,this.hostElement.clientWidth);e&&(e.indexOf("//")===0&&(e="https:"+e),this.hasBannerArt=!0,_.dP(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+e+")"}))}this.hasBannerArt!==l&&_.ud(this.hostElement).querySelector("#header").fire("iron-resize")}};
e8.prototype.updateSelectedFromBinding=function(l){this.selected=l.detail.value};
e8.prototype.dataChanged=e8.prototype.dataChanged;_.L([_.K(fvu),_.q("design:type",Object)],e8.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.UY),_.q("design:type",Object)],e8.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],e8.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],e8.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],e8.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],e8.prototype,"selected",void 0);_.L([_.T(),_.q("design:type",Boolean)],e8.prototype,"active",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],e8.prototype,"hasBannerArt",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],e8.prototype,"dataChanged",null);_.L([_.U({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],e8);
_.Y(e8,"ytd-interactive-tabbed-header-renderer",function(){if(uAP!==void 0)return uAP;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return uAP=l},{mode:1});var C74;var OH=function(){return _.B.apply(this,arguments)||this};
_.m(OH,_.B);OH.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
OH.prototype.computeActionsAlignment=function(l){return(l==null?void 0:l.actionsAlignment)||""};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OH.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.q("design:type",String)],OH.prototype,"actionsAlignment",void 0);_.L([_.U({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],OH);
_.Y(OH,"ytd-page-footer-renderer",function(){if(C74!==void 0)return C74;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return C74=l},{mode:1});var orf;var $Pf;var EH=function(){var l=_.B.apply(this,arguments)||this;l.isEditing=!1;l.useSlot=!1;l.isMultiline=!1;return l};
_.m(EH,_.B);_.X=EH.prototype;_.X.onKeydown=function(l){if(l.keyCode===13&&!this.isMultiline)this.onSave();else if(l.keyCode===27)this.onCancel()};
_.X.computeComponentStyle=function(l){return(l==null?0:l.style)?l.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.X.computeisMultiline=function(l){if(this.multilineOverride!==void 0)return this.multilineOverride;var e,O;return!!(l==null?0:(e=l.formField)==null?0:(O=e.textInputFormFieldRenderer)==null?0:O.isMultiline)};
_.X.computeTextDisplayed=function(l,e){if(l)return l;if(e)return e};
_.X.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.X.onSave=function(){if(this.textForm.validate()){this.textForm.save();var l=this.textForm.value;if(l)this.set("data.textDisplayed",_.xp(l));else{var e;((e=this.data)==null?0:e.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.vu("inline-form-changed",this.data));this.isEditing=!1}};
_.X.onCancel=function(){var l=_.lG(this.data.textDisplayed);l===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(l);this.isEditing=!1};
EH.prototype.onKeydown=EH.prototype.onKeydown;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],EH.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],EH.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],EH.prototype,"isEditing",void 0);_.L([_.T(),_.q("design:type",Object)],EH.prototype,"useSlot",void 0);_.L([_.T(),_.q("design:type",Boolean)],EH.prototype,"multilineOverride",void 0);_.L([_.T(),_.q("design:type",Boolean)],EH.prototype,"enableOverlayTheme",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.q("design:type",String)],EH.prototype,"componentStyle",void 0);
_.L([_.T({computed:"computeisMultiline(data)"}),_.q("design:type",Object)],EH.prototype,"isMultiline",void 0);_.L([_.aB("#text-form"),_.q("design:type",Object)],EH.prototype,"textForm",void 0);_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],EH.prototype,"onKeydown",null);_.L([_.U({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],EH);
_.Y(EH,"ytd-inline-form-renderer",function(){if($Pf!==void 0)return $Pf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return $Pf=l},{mode:1});var WEo;var JN=function(){var l=_.B.apply(this,arguments)||this;l.previousSelectValue=void 0;l.selectedItemMessage=void 0;return l};
_.m(JN,_.B);JN.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
JN.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var l,e,O,E,J=(l=this.data)==null?void 0:(e=l.dropdown)==null?void 0:(O=e.dropdownRenderer)==null?void 0:(E=O.entries)==null?void 0:E.map(function(Z){return Z.privacyDropdownItemRenderer});
l=_.b(J!=null?J:[]);for(e=l.next();!e.done;e=l.next())if((e=e.value)&&e.int32Value===this.selectedValue){this.selectedItemMessage=e.itemMessage;break}}else this.selectedItemMessage=void 0;var z;(z=this.onValueChanged)==null||z.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var M;(M=this.data)!=null&&M.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
JN.prototype.onValueChangedForSelectedValue=function(l){this.selectedValue=l.detail.value};
JN.prototype.selectedValueChanged=JN.prototype.selectedValueChanged;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],JN.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],JN.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],JN.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],JN.prototype,"theme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Number)],JN.prototype,"selectedValue",void 0);_.L([_.T(),_.q("design:type",Function)],JN.prototype,"onValueChanged",void 0);
_.L([_.y0("selectedValue"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],JN.prototype,"selectedValueChanged",null);_.L([_.U({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],JN);
_.Y(JN,"ytd-dropdown-form-field-renderer",function(){if(WEo!==void 0)return WEo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return WEo=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var dPz;var XG=function(){return _.B.apply(this,arguments)||this};
_.m(XG,_.B);_.Ji.Object.defineProperties(XG.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var l=[],e=_.b(this.data||[]),O=e.next();!O.done;O=e.next())(O=_.I(O.value,cjz))&&l.push(O);return l}}});
_.L([_.T(),_.q("design:type",Array)],XG.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],XG.prototype,"byline",null);_.L([_.U({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],XG);
_.Y(XG,"ytd-playlist-byline-renderer",function(){if(dPz!==void 0)return dPz;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dPz=l},{mode:1});var gri;var ze=function(){var l=_.B.apply(this,arguments)||this;l.rtlBullet=_.a("web_playlist_stats_rtl_bullet_icon_killswitch");l.modern=_.a("web_modern_buttons");l.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return l};
_.m(ze,_.B);_.X=ze.prototype;_.X.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"}}}}};
_.X.attached=function(){};
_.X.computeIsCustomThumbnail=function(l){return l?!!l.playlistCustomThumbnailRenderer:!1};
_.X.onYtNavigate=function(l,e){if(e&&e.actions&&e.actions.indexOf("shuffle")>-1){l=_.V2().resolve(_.U5);var O=e.tempData||{};O.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);e.tempData=O;l.isShuffleNextPlaylist=!0}};
_.X.onUpdatePlaylistAction=function(l){var e;l=(e=_.I(l,_.i2k))==null?void 0:e.updatedRenderer;if(e=_.I(l,K5))this.data=e};
_.X.computeStyleType=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeThumbnailWidth=function(l){return l==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.X.computeHideThumbnailAria=function(l){if(l==null?0:l.thumbnailOverlays)for(var e=0;e<l.thumbnailOverlays.length;e++){var O=void 0;if((O=l.thumbnailOverlays[e])==null?0:O.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
ze.prototype.onYtNavigate=ze.prototype.onYtNavigate;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ze.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ze.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],ze.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ze.prototype,"rtlBullet",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.q("design:type",String)],ze.prototype,"styleType",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.q("design:type",Number)],ze.prototype,"thumbnailWidth",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],ze.prototype,"modern",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.q("design:type",Boolean)],ze.prototype,"isCustomThumbnail",void 0);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Object]),_.q("design:returntype")],ze.prototype,"onYtNavigate",null);_.L([_.U({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],ze);
_.Y(ze,"ytd-playlist-sidebar-primary-info-renderer",function(){if(gri!==void 0)return gri;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return gri=l},{mode:1});var iji;var bu=function(){return _.B.apply(this,arguments)||this};
_.m(bu,_.B);bu.prototype.computeOwnerVisibility=function(l){return!(!l.videoOwner&&!l.button)};
bu.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bu.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],bu);
_.Y(bu,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(iji!==void 0)return iji;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return iji=l},{mode:1});var wU4;var MV=function(){var l=_.B.apply(this,arguments)||this;l.expanded=!1;l.isCompact=!1;return l};
_.m(MV,_.B);_.X=MV.prototype;_.X.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.X.dataChanged=function(){this.data&&_.Ye(_.ud(this.text),_.aW1(_.mA1,_.lG(this.data.text||null)))};
_.X.computeAutoScrollEnabled=function(l,e){return l&&!e};
_.X.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.X.toggleOnTap=function(){this.expanded=!this.expanded};
MV.prototype.expandedChanged=MV.prototype.expandedChanged;MV.prototype.dataChanged=MV.prototype.dataChanged;_.L([_.K(_.axC),_.q("design:type",Object)],MV.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],MV.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],MV.prototype,"expanded",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],MV.prototype,"isCompact",void 0);_.L([_.T({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.q("design:type",Boolean)],MV.prototype,"autoScrollEnabled",void 0);_.L([_.aB("#text"),_.q("design:type",Object)],MV.prototype,"text",void 0);_.L([_.aB("#expander-icon"),_.q("design:type",Object)],MV.prototype,"expanderIcon",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MV.prototype,"dataChanged",null);_.L([_.AA("expanded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],MV.prototype,"expandedChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],MV);
_.Y(MV,"ytd-channel-legal-info-renderer",function(){if(wU4!==void 0)return wU4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wU4=l},{mode:1});var At4;var nri=_.ml("DOWNLOAD",{},"Download"),aQH=_.ml("DOWNLOADING",{},"Downloading"),kFu=_.ml("DOWNLOADED",{},"Downloaded"),Vn=function(){var l=_.B.apply(this,arguments)||this;l.downloadProgress=0;l.isDownloadComplete=!1;l.transferState="TRANSFER_STATE_UNKNOWN";return l};
_.m(Vn,_.B);_.X=Vn.prototype;_.X.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.X.dataChanged=function(){var l;(l=this.data)!=null&&l.tooltip||(l=_.hY(_.Om().getState(),this.playlistId),this.updateButtonState(l))};
_.X.computePlaylistId=function(l){return l};
_.X.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.X.updateButtonState=function(l){if(this.data&&(this.data.tooltip!==aQH||!_.KO(l))){this.isDownloadComplete=!1;switch(l){case "TRANSFER_STATE_UNKNOWN":l=nri;var e="OFFLINE_DOWNLOAD";var O="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":l=kFu;e="OFFLINE_PIN";O="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":l=aQH;e="OFFLINE_DOWNLOADING_ZERO";O="ACTION_REMOVE_WITH_PROMPT";
break;default:l=nri,e="OFFLINE_DOWNLOAD",O="ACTION_ADD"}var E=Object.assign({},this.data);E.tooltip=l;E.accessibilityData={accessibilityData:{label:l}};E.icon={iconType:e};E.size="SIZE_DEFAULT";_.I(E.command,_.nT)&&(_.I(E.command,_.nT).action=O);this.set("data",E)}};
_.X.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var l="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?l="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?l="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?l="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?l="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?l="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(l="OFFLINE_PIN",this.isDownloadComplete=!0);var e;l!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.tooltip=aQH,e.accessibilityData={accessibilityData:{label:aQH}},e.icon={iconType:l},_.I(e.command,_.nT)&&(_.I(e.command,_.nT).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
Vn.prototype.updateProgress=Vn.prototype.updateProgress;Vn.prototype.onTransferStateChanged=Vn.prototype.onTransferStateChanged;Vn.prototype.dataChanged=Vn.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Vn.prototype,"ytdReduxBehavior",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vn.prototype,"forceIconButton",void 0);
_.L([_.T({value:!0}),_.q("design:type",Boolean)],Vn.prototype,"forceIconOnly",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vn.prototype,"overrides",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vn.prototype,"buttonTooltipPosition",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vn.prototype,"styleActionButton",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vn.prototype,"disableTextTransform",void 0);
_.L([_.T({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.q("design:type",String)],Vn.prototype,"playlistId",void 0);_.L([_.T(),_.q("design:type",Object)],Vn.prototype,"data",void 0);_.L([_.T({selector:_.kWW,selectorArgs:["playlistId"]}),_.q("design:type",Object)],Vn.prototype,"downloadProgress",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Vn.prototype,"isDownloadComplete",void 0);
_.L([_.T({selector:_.hY,selectorArgs:["playlistId"]}),_.q("design:type",String)],Vn.prototype,"transferState",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],Vn.prototype,"showTooltips",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],Vn.prototype,"sendCommandWhenDisabled",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Vn.prototype,"disabled",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vn.prototype,"dataChanged",null);_.L([_.y0("transferState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vn.prototype,"onTransferStateChanged",null);_.L([_.y0("downloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vn.prototype,"updateProgress",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Vn);
_.Y(Vn,"ytd-download-playlist-button-renderer",function(){if(At4!==void 0)return At4;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return At4=l},{mode:1});var IQO;_.Zw(_.g9C,"thumbnail-overlay-button-view-model",{props:{data:_.lB,lockupExperiments:_.lB}});var Zt=function(){var l=_.B.apply(this,arguments)||this;l.isSquare=!1;l.isVertical=!1;return l};
_.m(Zt,_.B);Zt.prototype.computeIsSquare=function(l){return l!=null&&l.thumbnail?X_H(l.thumbnail)==="SQUARE":!1};
Zt.prototype.computeIsVertical=function(l){return l!=null&&l.thumbnail?X_H(l.thumbnail)==="VERTICAL":!1};
Zt.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.q("design:type",Object)],Zt.prototype,"isSquare",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.q("design:type",Object)],Zt.prototype,"isVertical",void 0);
_.L([_.T(),_.q("design:type",Object)],Zt.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Zt);
_.Y(Zt,"ytd-hero-playlist-thumbnail-renderer",function(){if(IQO!==void 0)return IQO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return IQO=l},{mode:1});var uu=function(){var l=_.B.apply(this,arguments)||this;l.isDarkTheme=!1;l.isUltraWide=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return l};
_.m(uu,_.B);_.X=uu.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.V2();var l;(l=_.V2().resolve(_.MG(_.qw)))!=null&&(l.headerElement=this.hostElement)};
_.X.detached=function(){var l;(l=_.V2().resolve(_.MG(_.qw)))!=null&&(l.headerElement=void 0)};
_.X.onUpdateHeader=function(l){(l=l.detail)&&this.set("data",l)};
_.X.computeTextDisplayed=function(l){if(l)return l.textDisplayed?l.textDisplayed:l.placeholder};
_.X.gradientColorToLinearGradientStop=function(l){var e=this.isDarkTheme?l.darkThemeColor:l.lightThemeColor;return e?_.qv(e)+" "+((l==null?void 0:l.startLocation)||0)*100+"%":"transparent"};
_.X.onWindowResize=function(){var l;((l=this.data)==null?0:l.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.X.onIronResize=function(l){this.isUltraWide=!l.detail.value};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.onUpdatePlaylistName=function(l){var e=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},l.detail.value));_.OK(this,function(){var O;(O=e.editableTitle)==null||O.resize()})};
_.X.onUpdatePlaylistDescription=function(l){var e=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},l.detail.value));_.OK(this,function(){var O;(O=e.editableDescriptionInlineExpander)==null||O.resize()})};
_.X.getCinematicData=function(l){return _.I(l==null?void 0:l.cinematicContainer,_.a0)};
_.Ji.Object.defineProperties(uu.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 l,e=(l=this.getCinematicData(this.data))==null?void 0:l.config;return(l=this.isDarkTheme?e==null?void 0:e.darkThemeBackgroundColor:e==null?void 0:e.lightThemeBackgroundColor)?"background-color:"+_.t$(l)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var l;return _.I((l=this.data)==null?void 0:l.descriptionForm,IvF)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var l=this,e,O,E;return"background:linear-gradient(to bottom, "+(((E=(e=this.getCinematicData(this.data))==null?void 0:(O=e.gradientColorConfig)==null?void 0:O.map(function(J){return l.gradientColorToLinearGradientStop(J)}))==null?void 0:E.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var l;return _.lG((l=this.data)==null?void 0:l.descriptionTapText)}}});
uu.prototype.onUpdateHeader=uu.prototype.onUpdateHeader;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],uu.prototype,"actionHandlerBehavior",void 0);_.L([_.aB("#description-inline-expander"),_.q("design:type",Object)],uu.prototype,"descriptionInlineExpander",void 0);
_.L([_.aB("#editable-description-inline-expander"),_.q("design:type",Object)],uu.prototype,"editableDescriptionInlineExpander",void 0);_.L([_.T(),_.q("design:type",Object)],uu.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],uu.prototype,"isUltraWide",void 0);_.L([_.aB("#editable-title-display"),_.q("design:type",Object)],uu.prototype,"editableTitle",void 0);_.L([_.R("isUltraWide"),_.q("design:type",Object),_.q("design:paramtypes",[])],uu.prototype,"maxDescriptionLines",null);
_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uu.prototype,"noCinematicData",null);_.L([_.wP("yt-new-playlist-header"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],uu.prototype,"onUpdateHeader",null);_.L([_.R("data","isDarkTheme"),_.q("design:type",Object),_.q("design:paramtypes",[])],uu.prototype,"backgroundStyle",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uu.prototype,"descriptionFormData",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uu.prototype,"getDropdownTheme",null);_.L([_.R("data","isDarkTheme"),_.q("design:type",String),_.q("design:paramtypes",[])],uu.prototype,"gradientStyle",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],uu.prototype,"descriptionTapText",null);
_.L([_.U({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],uu);
_.Y(uu,"ytd-playlist-header-renderer",function(){if(orf!==void 0)return orf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return orf=l},{mode:_.Wf("kevlar_poly_si_batch_j078")?1:2});var mP4;var ytF;var CK=function(){return _.B.apply(this,arguments)||this};
_.m(CK,_.B);CK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],CK.prototype,"data",void 0);_.L([_.U({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],CK);
_.Y(CK,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(ytF!==void 0)return ytF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ytF=l},{mode:1});var oA=function(){return _.B.apply(this,arguments)||this};
_.m(oA,_.B);
oA.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}}}}};
oA.prototype.computeUsePremiumShowStyle=function(l){if(!l||!l.items)return!1;for(var e=0;e<l.items.length;e++)if(_.I(l.items[e],K5)){var O=void 0;return((O=_.I(l.items[e],K5))==null?void 0:O.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],oA.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.q("design:type",Boolean)],oA.prototype,"usePremiumShowStyle",void 0);
_.L([_.U({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],oA);
_.Y(oA,"ytd-playlist-sidebar-renderer",function(){if(mP4!==void 0)return mP4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return mP4=l},{mode:1});var pUC;var KEF;var jSh=function(l,e,O,E,J,z,M,Z){this.minWidth=l;this.minHeight=e;this.recommendedWidth=O;this.recommendedHeight=E;this.JSC$19523_maxFileSize=J;this.title=z;this.bannerGalleryTitle=M;this.channelId=Z;this.picker_=null;l=_.wu2("yt-banner");e=l.addView;O=(new o9C("youtubebanner")).addUploadMetadata("silo_id","19");O.opts.ytMaxFileSize=this.JSC$19523_maxFileSize;E=this.recommendedHeight;O.opts.ytRecWidth=this.recommendedWidth;O.opts.ytRecHeight=E;e.call(l,O);l.addView(new _.ce);e=l.addView;O=new _.ce;
O.opts.type="ytbanner";e.call(l,O.JSC$8110_setLabel(this.bannerGalleryTitle));e=l.setTitle(this.title).setSize(1E3);e.urlParamMap_.set("thumbs","orig");O=this.minWidth;E=this.minHeight;if(isNaN(O)||isNaN(E))throw Error("kb`"+O+"`"+E);e.urlParamMap_.set("minSize",O+"x"+E);e.urlParamMap_.set("cropMode","ytcb");this.builder_=l};
jSh.prototype.open=function(){var l=this;return new _.kE(function(e,O){_.Eoi(l.builder_,function(E){E.action=="picked"?e(E):E.action=="cancel"&&O(Error("Xl"))});
l.picker_&&l.picker_.dispose();l.picker_=l.builder_.build();l.picker_.setVisible(!0)})};
jSh.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Hju=function(l){this.channelId=l},cth=function(l,e){var O="";
e.viewToken&&(O=e.viewToken[2].type);var E=e.docs[0];e=E.crop;l={channel_id:l.channelId,fife_url:E.thumbnails[0].url,photo_id:E.id,is_gallery_image:O=="ytbanner"};e&&(l.crop_top=e.top,l.crop_right=e.right,l.crop_bottom=e.bottom,l.crop_left=e.left);return _.PRg("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:l})};var $F=function(){var l=_.B.apply(this,arguments)||this;l.ariaLabel=null;return l};
_.m($F,_.B);_.X=$F.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.X.detached=function(){this.picker&&this.picker.dispose()};
_.X.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.X.computeAriaLabel=function(l){return l};
_.X.onTap=function(){var l=this,e;if((e=this.data)==null||!e.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new jSh(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 O;(O=this.picker)==null||O.open().then(function(E){l.handleBannerPicked(E)},function(){})}};
_.X.handleBannerPicked=function(l){var e=this;this.uploader||(this.uploader=new Hju(this.data.channelId||""));this.message=this.data.uploadingText;cth(this.uploader,l).then(function(O){e.handleBannerUploadSucceeded(O)},function(O){e.handleBannerUploadFailed(O)})};
_.X.handleBannerUploadSucceeded=function(l){l&&l.errors?this.handleBannerUploadFailed(l):(_.$u(this.hostElement,"yt-banner-updated",l),this.message=null)};
_.X.handleBannerUploadFailed=function(l){this.message=l&&l.errors&&l.errors.length?l.errors[0]:null};
$F.prototype.dataChanged=$F.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],$F.prototype,"componentBehavior",void 0);_.L([_.K(_.By),_.q("design:type",Object)],$F.prototype,"ironButtonState",void 0);_.L([_.T(),_.q("design:type",Object)],$F.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.q("design:type",Object)],$F.prototype,"ariaLabel",void 0);
_.L([_.T(),_.q("design:type",Object)],$F.prototype,"message",void 0);_.L([_.T(),_.q("design:type",Object)],$F.prototype,"picker",void 0);_.L([_.T(),_.q("design:type",Object)],$F.prototype,"uploader",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$F.prototype,"dataChanged",null);_.L([_.U({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],$F);
_.Y($F,"ytd-channel-banner-editor-renderer",function(){if(KEF!==void 0)return KEF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return KEF=l},{mode:1});var FEh;var fQF=_.E9(["#"]),WB=function(){return _.B.apply(this,arguments)||this};
_.m(WB,_.B);WB.prototype.computeHrefWithDefault=function(l){return this.ytComponentBehavior.computeHref_(l,!0)||_.IH(fQF)};
WB.prototype.dataChanged=function(){var l=this.data;l&&l.targetId&&_.hg1(_.jQ(),l.targetId,this.moreIcon)};
WB.prototype.dataChanged=WB.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WB.prototype,"data",void 0);_.L([_.aB("#more-icon"),_.q("design:type",Object)],WB.prototype,"moreIcon",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WB.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],WB);
_.Y(WB,"ytd-channel-tagline-renderer",function(){if(FEh!==void 0)return FEh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return FEh=l},{mode:1});var RYu;var dM=function(){return _.B.apply(this,arguments)||this};
_.m(dM,_.B);_.X=dM.prototype;_.X.ready=function(){var l=this;_.ud(this.hostElement).querySelector("#form").addEventListener("submit",function(e){l.onSubmit(e)})};
_.X.onDataChanged=function(){var l;((l=this.data)==null?0:l.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.X.onIconButtonKeydown=function(l){l.keyCode===13&&this.iconButton.click()};
_.X.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.X.openOnClickHandler=function(){this.input.focus()};
_.X.onSubmit=function(l){l.preventDefault();return!1};
_.X.submitOnEnterKeyUp=function(l){var e;if(l.keyCode===13&&((e=this.data)==null?0:e.expandedText)){l=this.data.endpoint;e=_.mm.unsafeClone(l);var O;((O=_.I(e==null?void 0:e.commandMetadata,_.V4))==null?0:O.url)?(_.I(e.commandMetadata,_.V4).url=_.qr(_.I(e.commandMetadata,_.V4).url,"query",this.data.expandedText),_.I(e,_.ms)&&(_.I(e,_.ms).query=this.data.expandedText),_.$u(this.hostElement,"yt-navigate",{endpoint:e,tempData:{disableCache:!0}})):(O=new _.Hk("Error: Trying to navigate to an endpoint without url",
l),_.UW(O))}};
_.X.updateDataExpandedTextFromBinding=function(l){this.set("data.expandedText",l.detail.value)};
_.Ji.Object.defineProperties(dM.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.a("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
dM.prototype.onDataChanged=dM.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VSF),_.q("design:type",Object)],dM.prototype,"ytdExpandableInputBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dM.prototype,"data",void 0);_.L([_.aB("#input"),_.q("design:type",Object)],dM.prototype,"input",void 0);_.L([_.aB("#icon-button"),_.q("design:type",HTMLElement)],dM.prototype,"iconButton",void 0);
_.L([_.T(),_.q("design:type",String),_.q("design:paramtypes",[])],dM.prototype,"searchIcon",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dM.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],dM);
var zrF=_.$0()(dM,"ytd-expandable-tab-renderer",function(){if(RYu===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);RYu=l}l=RYu;return l},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var TBz;var gM=function(){var l=_.B.apply(this,arguments)||this;l.avatarSize=80;l.ariaLabel=_.ml("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return l};
_.m(gM,_.B);gM.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
gM.prototype.computeHref=function(l){var e;return((e=_.I(l,_.Db))==null?0:e.url)?this.componentBehavior.computeHref_(l):null};
gM.prototype.onTap=function(){var l,e;(l=this.data)==null||!l.editAvatarServiceEndpoint||((e=_.I(this.data.editAvatarServiceEndpoint,_.Db))==null?0:e.url)||_.V2().resolve(_.Zh).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.L([_.K(_.By),_.q("design:type",Object)],gM.prototype,"ironButtonState",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],gM.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gM.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],gM.prototype,"avatarSize",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],gM.prototype,"ariaLabel",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],gM);
_.Y(gM,"ytd-channel-avatar-editor",function(){if(TBz!==void 0)return TBz;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return TBz=l},{mode:1});var sSu=_.XO(function(l){var e=l.data;var O=l.noPadding;var E=l.enableBanner;var J=l.cinematicContainerTopbarOffset;var z=l.allowCinematicContainerOverflow;var M=l.displayAsSidebar;l=l.className;_.Gh(function(){e().tagManagerId&&(_.fQ(e().tagManagerId,_.hT("GL")),CU4(e().tagManagerId))},"xVTVTe");
var Z=_.kD(MXH,function(){return e().pageHeaderEntityKey});
return _.W("yt-page-header-renderer",{class:_.ax("page-header-renderer-wiz",l)},_.W(_.Tn,{data:function(){var u;return((u=Z())==null?0:u.header)?Z().header:(M==null?0:M())&&e().sidebarContent?e().sidebarContent:e().content}},{pageHeaderViewModel:function(u){return _.W(_.sj1,{data:u.data,
noPadding:O,enableBanner:E,cinematicContainerTopbarOffset:J,allowCinematicContainerOverflow:z,displayAsSidebar:function(){return(M==null?void 0:M())&&e().enableSidebarView}})}}))},"Ii");
sSu.idomCompat=!0;_.Zw(sSu,"yt-page-header-renderer",{props:{data:_.lB,noPadding:_.lB,enableBanner:_.lB,cinematicContainerTopbarOffset:_.lB,allowCinematicContainerOverflow:_.lB,displayAsSidebar:_.lB,className:_.lB}});_.Zw(_.RV1,"yt-image-banner-view-model",{props:{data:_.lB,isPositionRelative:_.lB}});_.Zw(_.xyq,"yt-tab-group-shape",{props:{shape:_.lB}});var iu=function(){var l=_.B.apply(this,arguments)||this;l.expandableCustomTabRenderable=function(e){return btH(e,function(){return void l.onSearchNavigate()})};
l.isRichGrid=!1;l.isConstrainedList=!1;l.richGridMiniMode=!1;l.richGridStyle="RICH_GRID_STYLE_UNKNOWN";l.isRichGridShorts=!1;l.responsiveSizing="COMPACT";l.disableGridStateAware=!1;l.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return l};
_.m(iu,_.B);_.X=iu.prototype;_.X.computeHeaderDisabled=function(l,e){return e||!l||this.tabsHidden};
_.X.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.X.computeIsRichGridShorts=function(l){return l==="RICH_GRID_STYLE_SHORTS_GRID"||l==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.X.computeImageBannerViewModel=function(){var l,e;return _.I((e=_.I((l=this.data)==null?void 0:l.content,_.ZpR))==null?void 0:e.banner,_.XC1)};
_.X.computeHasCinematicContainer=function(){var l,e;return!((e=_.I((l=this.data)==null?void 0:l.content,_.ZpR))==null||!e.background)};
_.X.handleHeaderResize=function(){var l=_.ud(this.hostElement).querySelector("#header");l&&_.$u(l,"iron-resize")};
_.X.handleInsertTabCommand=function(l){var e=_.I(l,FjC);e&&(e.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(O){return O.tabRenderer&&O.tabRenderer.tabIdentifier===e.tabIdentifier})||this.splice("tabs",e.tabIndex||-1,0,e.tab))};
_.X.handleRefreshChannelTabAction=function(l){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===l&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.X.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.dP(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.X.observerRichGridSlimItemsPerRow=function(){_.dP(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.X.updateCssVars=function(){this.richGridItemsPerRow&&_.dP(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Cv("rich_grid_max_item_width",500))+16)-16+"px"})};
_.X.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.dP(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.X.onDataChanged=function(){this.handleHeaderResize()};
_.X.onWindowResize=function(){this.handleHeaderResize()};
_.X.onFocusedChanged=function(l){(l=_.OV(l))&&l.is==="tp-yt-paper-tab"&&l.hasRipple()&&(l.getRipple().holdDown=!l.pointerDown&&l.focused)};
_.X.updateSelectedFromBinding=function(l){this.ytdTabbedHeaderBehavior.selected=l.detail.value};
_.X.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Ji.Object.defineProperties(iu.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Zth(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.imageBannerViewModel)==null?void 0:l.style)==="IMAGE_BANNER_STYLE_INSET"}}});
iu.prototype.onDataChanged=iu.prototype.onDataChanged;iu.prototype.updateCssVarsForResponsiveGrid=iu.prototype.updateCssVarsForResponsiveGrid;iu.prototype.updateCssVars=iu.prototype.updateCssVars;iu.prototype.observerRichGridSlimItemsPerRow=iu.prototype.observerRichGridSlimItemsPerRow;iu.prototype.observerRichGridItemsPerRow=iu.prototype.observerRichGridItemsPerRow;_.L([_.K(_.UY),_.q("design:type",Object)],iu.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.K(fvu),_.q("design:type",Object)],iu.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],iu.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],iu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],iu.prototype,"ytdReduxBehavior",void 0);_.L([_.aB("#tabs"),_.q("design:type",Object)],iu.prototype,"tabsElement",void 0);_.L([_.T(),_.q("design:type",Array)],iu.prototype,"tabs",void 0);_.L([_.T(),_.q("design:type",Object)],iu.prototype,"expandableCustomTabRenderable",void 0);_.L([_.R("tabs.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],iu.prototype,"tabGroupShape",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],iu.prototype,"isRichGrid",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],iu.prototype,"isConstrainedList",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Object)],iu.prototype,"richGridMiniMode",void 0);_.L([_.T({selector:function(l){return l.ui.richGridStyle}}),
_.q("design:type",Object)],iu.prototype,"richGridStyle",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.q("design:type",Object)],iu.prototype,"isRichGridShorts",void 0);_.L([_.T({selector:_.Bt}),_.q("design:type",Number)],iu.prototype,"richGridItemsPerRow",void 0);_.L([_.T({selector:function(l){return l.ui.richGridContainerWidth}}),
_.q("design:type",Number)],iu.prototype,"richGridContainerWidth",void 0);_.L([_.T({selector:_.VKT}),_.q("design:type",Number)],iu.prototype,"richGridSlimItemsPerRow",void 0);_.L([_.T(),_.q("design:type",Object)],iu.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],iu.prototype,"responsiveSizing",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],iu.prototype,"disableGridStateAware",void 0);
_.L([_.T({computed:"computeImageBannerViewModel(data)"}),_.q("design:type",Object)],iu.prototype,"imageBannerViewModel",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.q("design:type",Boolean)],iu.prototype,"hasCinematicContainer",void 0);_.L([_.T({selector:_.rzu,reflectToAttribute:!0}),_.q("design:type",Boolean)],iu.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],iu.prototype,"hasBanner",null);_.L([_.T({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.q("design:type",Object),_.q("design:paramtypes",[])],iu.prototype,"hasInsetBanner",null);_.L([_.T({computed:"computeTabsHidden(tabs)",value:!0}),_.q("design:type",Boolean)],iu.prototype,"tabsHidden",void 0);
_.L([_.AA("richGridItemsPerRow","isRichGrid"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iu.prototype,"observerRichGridItemsPerRow",null);_.L([_.AA("richGridSlimItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iu.prototype,"observerRichGridSlimItemsPerRow",null);
_.L([_.AA("richGridItemsPerRow","richGridMiniMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iu.prototype,"updateCssVars",null);_.L([_.AA("richGridContainerWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iu.prototype,"updateCssVarsForResponsiveGrid",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iu.prototype,"onDataChanged",null);
_.L([_.U({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],iu);
_.Y(iu,"ytd-tabbed-page-header",function(){if(pUC!==void 0)return pUC;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return pUC=l},{mode:1});var GFi;var wM=function(){return _.B.apply(this,arguments)||this};
_.m(wM,_.B);wM.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.dP(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Ji.Object.defineProperties(wM.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var l,e;return this.componentBehavior.computeIcon_(((e=_.I((l=this.data)==null?void 0:l.badge,_.x3S))==null?void 0:e.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.badge,_.x3S))==null?void 0:e.label}}});
wM.prototype.observerRichGridItemsPerRow=wM.prototype.observerRichGridItemsPerRow;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],wM.prototype,"componentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],wM.prototype,"ytdReduxBehavior",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.G4}),_.q("design:type",Boolean)],wM.prototype,"richGridMiniMode",void 0);
_.L([_.T({selector:_.Bt}),_.q("design:type",Number)],wM.prototype,"richGridItemsPerRow",void 0);_.L([_.T(),_.q("design:type",Object)],wM.prototype,"data",void 0);_.L([_.AA("richGridItemsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wM.prototype,"observerRichGridItemsPerRow",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],wM.prototype,"badgeIconName",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],wM.prototype,"badgeLabel",null);_.L([_.U({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],wM);
_.Y(wM,"ytd-member-hub-profile-renderer",function(){if(GFi!==void 0)return GFi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GFi=l},{mode:1});var BBP;var AN=function(){return _.B.apply(this,arguments)||this};
_.m(AN,_.B);AN.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AN.prototype,"data",void 0);_.L([_.U({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],AN);
_.Y(AN,"ytd-settings-sidebar-renderer",function(){if(BBP!==void 0)return BBP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BBP=l},{mode:1});var P7u;var nK=function(){var l=_.B.apply(this,arguments)||this;l.expandableCustomTabRenderable=function(e){return btH(e,function(){return void l.onSearchNavigate()})};
return l};
_.m(nK,_.B);nK.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
nK.prototype.onSearchNavigate=function(){this.selected=void 0};
nK.prototype.onTabsChange=function(){var l,e=(l=this.tabs)==null?void 0:l.findIndex(function(O){var E;return O==null?void 0:(E=O.tabRenderer)==null?void 0:E.selected});
e!==void 0&&(this.selected=e)};
nK.prototype.onTabsActive=function(l){if(this.tabs!==void 0){var e,O;(l=(e=this.tabs[l.detail.selected])==null?void 0:(O=e.tabRenderer)==null?void 0:O.endpoint)&&_.$u(this.hostElement,"yt-navigate",{endpoint:l})}};
_.Ji.Object.defineProperties(nK.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Zth(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
nK.prototype.onTabsChange=nK.prototype.onTabsChange;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.UY),_.q("design:type",Object)],nK.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],nK.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],nK.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Array)],nK.prototype,"tabs",void 0);_.L([_.T(),_.q("design:type",Number)],nK.prototype,"selected",void 0);_.L([_.R("tabs.*"),_.q("design:type",Object),_.q("design:paramtypes",[])],nK.prototype,"tabGroupShape",null);_.L([_.T(),_.q("design:type",Object)],nK.prototype,"expandableCustomTabRenderable",void 0);
_.L([_.R("tabs"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],nK.prototype,"tabsEnabled",null);_.L([_.y0("tabs"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nK.prototype,"onTabsChange",null);_.L([_.U({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],nK);
_.Y(nK,"ytd-topic-channel-details-renderer",function(){if(P7u!==void 0)return P7u;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return P7u=l},{mode:1});var UPh;var aA=function(){var l=_.B.apply(this,arguments)||this;l.disableGridStateAware=!1;return l};
_.m(aA,_.B);aA.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]]"}}}}}};
aA.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
aA.prototype.updateCssVars=function(){_.dP(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Cv("rich_grid_max_item_width",500))+16)-16+"px"})};
aA.prototype.updateCssVars=aA.prototype.updateCssVars;aA.prototype.activeChanged=aA.prototype.activeChanged;_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],aA.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],aA.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],aA.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Array)],aA.prototype,"tabs",void 0);_.L([_.T(),_.q("design:type",Boolean)],aA.prototype,"active",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],aA.prototype,"disableGridStateAware",void 0);
_.L([_.T({selector:_.Bt}),_.q("design:type",Number)],aA.prototype,"richGridItemsPerRow",void 0);_.L([_.T({selector:_.G4}),_.q("design:type",Boolean)],aA.prototype,"richGridMiniMode",void 0);_.L([_.aB("ytd-carousel-item-renderer"),_.q("design:type",Object)],aA.prototype,"carousel",void 0);_.L([_.AA("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aA.prototype,"activeChanged",null);
_.L([_.AA("richGridItemsPerRow","richGridMiniMode"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aA.prototype,"updateCssVars",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],aA);
_.Y(aA,"ytd-carousel-header-renderer",function(){if(UPh!==void 0)return UPh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return UPh=l},{mode:1});var Y4i;var hYh=_.E9(["https://www.google-analytics.com/analytics.js"]),kF=function(){var l=_.B.apply(this,arguments)||this;l.scriptAnalyticsAdded=!1;return l};
_.m(kF,_.B);kF.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var l,e=(l=this.data)==null?void 0:l.tagManagerId;e&&(_.fQ(e,_.hT("GL")),CU4(e))};
kF.prototype.sendGoogleAnalyticsPageview=function(l){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var O=_.ke.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(O)};
var e=window.ga;e("set","page",window.location.pathname);e.l=+new Date;e("set","forceSSL",!0);e("create",l,"'auto'");e("send","pageview")};
kF.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var l=_.i$("SCRIPT");l.name="ga-analytics";var e=_.OP(hYh);_.UN(l,e);l.async=!0;_.ud(this.hostElement).appendChild(l)};
kF.prototype.dataChanged=kF.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],kF.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kF.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],kF);
_.Y(kF,"ytd-channel-metadata-renderer",function(){if(Y4i!==void 0)return Y4i;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Y4i=l},{mode:1});var LEf;var tIP;var IA=function(){return _.B.apply(this,arguments)||this};
_.m(IA,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],IA.prototype,"data",void 0);_.L([_.U({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],IA);
_.Y(IA,"ytd-sub-feed-option-renderer",function(){if(tIP!==void 0)return tIP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tIP=l},{mode:1});var q4f;var m5=function(){return _.B.apply(this,arguments)||this};
_.m(m5,_.B);m5.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],m5.prototype,"ytRendererStamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],m5.prototype,"data",void 0);_.L([_.U({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],m5);
_.Y(m5,"ytd-sub-feed-selector-renderer",function(){if(q4f!==void 0)return q4f;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return q4f=l},{mode:1});var yn=function(){return _.B.apply(this,arguments)||this};
_.m(yn,_.B);
yn.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}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yn.prototype,"data",void 0);_.L([_.U({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],yn);
_.Y(yn,"ytd-browse-feed-actions-renderer",function(){if(LEf!==void 0)return LEf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return LEf=l},{mode:1});var vrH;var NBF;var pK=function(){return _.B.apply(this,arguments)||this};
_.m(pK,_.B);pK.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],pK.prototype,"data",void 0);_.L([_.U({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],pK);
_.Y(pK,"ytd-mini-channel-renderer",function(){if(NBF!==void 0)return NBF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return NBF=l},{mode:1});var rt3;var KK=function(){return _.B.apply(this,arguments)||this};
_.m(KK,_.B);KK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],KK.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],KK);
_.Y(KK,"ytd-vertical-channel-section-renderer",function(){if(rt3!==void 0)return rt3;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return rt3=l},{mode:1});var j8=function(){return _.B.apply(this,arguments)||this};
_.m(j8,_.B);j8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],j8.prototype,"data",void 0);_.L([_.U({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],j8);
_.Y(j8,"ytd-browse-secondary-contents-renderer",function(){if(vrH!==void 0)return vrH;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return vrH=l},{mode:1});var DPO;var HB=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};l.notActive=!1;l.isConstrainedList=!1;return l};
_.m(HB,_.B);_.X=HB.prototype;
_.X.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(l){var e;return(l==null?void 0:(e=l.webComponentHint)==null?void 0:e.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.X.getPath=function(l,e){var O="data.tabs.#"+e+".";l.tabs[e].tabRenderer?O+="tabRenderer.":l.tabs[e].expandableTabRenderer&&(O+="expandableTabRenderer.");return O+"content.sectionListRenderer"};
_.X.computeDisplayedContent=function(l){this.unlinkPaths("content");if(l&&l.tabs)for(var e=l.tabs.length,O=0;O<e;O++){var E=l.tabs[O].tabRenderer||l.tabs[O].expandableTabRenderer;if(E.selected&&E.content)return this.linkPaths("content",this.getPath(l,O)),E.content}return null};
_.X.computeHasSecondaryColumnData=function(l){return!!l&&!!l.secondaryContents};
_.X.onRetrieveLocation=function(l,e){e.locationRetrieved(e.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);l.stopPropagation()};
_.X.onYtServiceRequestSent=function(l,e){_.a("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.X.onYtServiceRequestCompleted=function(l,e){_.a("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.X.onReplaceFeedContentAction=function(l){if(!_.a("replace_feed_content_action_killswitch")&&!this.notActive){var e;(l=(e=_.I(l,n9u))==null?void 0:e.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(l)}};
_.X.handleServiceRequestActions=function(l){if(l=l.actions){l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;var O=void 0;((O=_.I(e,n9u))==null?0:O.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.I(e,n9u).items)}}};
HB.prototype.onYtServiceRequestCompleted=HB.prototype.onYtServiceRequestCompleted;HB.prototype.onYtServiceRequestSent=HB.prototype.onYtServiceRequestSent;HB.prototype.onRetrieveLocation=HB.prototype.onRetrieveLocation;_.L([_.K(_.UY),_.q("design:type",Object)],HB.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],HB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HB.prototype,"data",void 0);_.L([_.T({computed:"computeDisplayedContent(data)"}),_.q("design:type",Object)],HB.prototype,"content",void 0);
_.L([_.T({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],HB.prototype,"hasSecondaryColumnData",void 0);_.L([_.T({value:function(){return window.outerHeight>1024?3:2}}),
_.q("design:type",Number)],HB.prototype,"initialCount",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],HB.prototype,"pageSubtype",void 0);_.L([_.aB("ytd-section-list-renderer"),_.q("design:type",Object)],HB.prototype,"listRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],HB.prototype,"notActive",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HB.prototype,"isConstrainedList",void 0);
_.L([_.T(),_.q("design:type",String)],HB.prototype,"responsiveSizing",void 0);_.L([_.wP("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],HB.prototype,"onRetrieveLocation",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],HB.prototype,"onYtServiceRequestSent",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],HB.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],HB);
_.Y(HB,"ytd-two-column-browse-results-renderer",function(){if(DPO!==void 0)return DPO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DPO=l},{mode:2});var S4i;var QSz;var cB=function(){var l=_.B.apply(this,arguments)||this;l.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"]);l.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"]);l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return l};
_.m(cB,_.B);_.X=cB.prototype;_.X.attached=function(){this.requestElementsPerRow()};
_.X.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_]]"}}}}}};
_.X.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l)};
_.X.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.X.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.X.computeAlertStyle_=function(l){return l};
_.X.observerElementsPerRow=function(){this.elementsPerRow&&_.dP(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.X.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.X.requestElementsPerRow=function(){_.$u(this.hostElement,"yt-request-elements-per-row")};
cB.prototype.onIsVisibleChanged_=cB.prototype.onIsVisibleChanged_;cB.prototype.observerElementsPerRow=cB.prototype.observerElementsPerRow;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],cB.prototype,"actionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],cB.prototype,"data",void 0);_.L([_.T({value:6,reflectToAttribute:!0}),_.q("design:type",Number)],cB.prototype,"elementsPerRow",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],cB.prototype,"wrapButtons",void 0);_.L([_.T({value:_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.q("design:type",Boolean)],cB.prototype,"isMusic",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.q("design:type",String)],cB.prototype,"alertStyle",void 0);_.L([_.T({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.q("design:type",Function)],cB.prototype,"dismissBoundButtonTap_",void 0);_.L([_.T({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.q("design:type",Function)],cB.prototype,"acceptBoundButtonTap_",void 0);_.L([_.AA("elementsPerRow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cB.prototype,"observerElementsPerRow",null);_.L([_.AA("data.isVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cB.prototype,"onIsVisibleChanged_",null);_.L([_.Ps({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],cB);
_.Y(cB,"yt-alert-with-actions-renderer",function(){if(QSz===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;S4i===void 0&&(S4i=document.createElement("template"));var E=S4i;O.call(e,E.content.cloneNode(!0),l.content.firstChild);QSz=l}l=QSz;return l},{mode:2});_.Zw(_.XO(function(l){function e(n){var k={};return _.W(_.zK,{text:n,className:_.ax("ytPersonalGreetingViewModelHeadline",(k.ytPersonalGreetingViewModelHeadlineSmall=function(){return Z()===48},k))})}
function O(n,k){return _.W("span",{el:n,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},e(k))}
var E=_.e4("yt-personal-greeting-view-model"),J=_.e4("span"),z=_.e4("span"),M=function(){return l.data().canvasPromoData},Z=function(){var n;
return(n=l.data().bannerHeight)!=null?n:56},u=_.d_t(E,{throttleMs:100}),d=_.d_t(J,{throttleMs:100}),g=_.d_t(z,{throttleMs:100}),w=function(){return d.width()-u.width()>1};
_.xD(E,function(){var n;return(n=l.data())==null?void 0:n.rendererContext},void 0,void 0,void 0,!0);
return _.W("yt-personal-greeting-view-model",{el:E,"aria-hidden":w,class:_.ax(l.className,"ytPersonalGreetingViewModelHost"),style:_.HF({height:(0,_.pc)(function(){return w()?0:Z()})})},_.W(_.A,{cond:function(){return l.data().avatar&&!(g.width()+(l.data().avatar?48:0)-u.width()>1)},
then:function(){return _.W(_.Tn,{data:function(){return l.data().avatar}},{decoratedAvatarViewModel:function(n){return _.W(_.cp,{data:n.data,
className:_.ax("ytPersonalGreetingViewModelAvatar")})}})}}),_.W("h1",null,e(function(){var n;
return(M==null?void 0:(n=M())==null?void 0:n.headline)||(g.width()+(l.data().avatar?48:0)-u.width()>1?l.data().shorterGreeting:l.data().greeting)})),O(z,function(){return l.data().greeting}),O(J,function(){return l.data().shorterGreeting}))},"Ji"),"yt-personal-greeting-view-model",{props:{data:_.lB,
className:_.lB}});var FG=function(){var l=_.B.apply(this,arguments)||this;l.hidden=!1;l.isConstrainedList=!1;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.responsiveSizing="COMPACT";l.attachedPlayers=_.a("kevlar_channel_trailer_multi_attach")?[]:void 0;l.player=null;l.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return l};
_.m(FG,_.B);_.X=FG.prototype;
_.X.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}}}}};
_.X.created=function(){var l=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){l.disposeMastheadAd()}]};
_.X.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new shh(this.refresh,this.contents))};
_.X.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.X.activeChanged=function(){var l=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=l)};
_.X.tabsChanged=function(){var l=this,e,O;if(this.pageSubtype==="channels"||_.a("kevlar_tab_gestures_for_tabbed_header_data")&&((e=this.data)==null?0:(O=e.header)==null?0:O.carouselHeaderRenderer))this.tabGestures=new HG(this.contents,this.contents,this.hostElement,this.header,function(M){l.ytdReduxBehavior.dispatch(M)});
var E,J,z;e=(E=this.data)==null?void 0:(J=E.contents)==null?void 0:(z=J.twoColumnBrowseResultsRenderer)==null?void 0:z.tabs;this.tabGestures&&this.tabGestures.tabsChanged(e)};
_.X.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.X.engagementPanelsChanged=function(){var l=_.V2().resolve(_.ye);if(l){if(this.engagementPanels)for(var e=_.b(this.engagementPanels),O=e.next();!O.done;O=e.next()){var E=void 0;(O=(E=O.value.identifier)==null?void 0:E.tag)&&l.panelMap.delete(O)}this.engagementPanels=[];var J;e=_.b(((J=this.data)==null?void 0:J.panels)||[]);for(J=e.next();!J.done;J=e.next()){J=_.I(J.value,_.$Qz);var z=O=void 0,M=void 0,Z=void 0;if(E=((O=J)==null?void 0:O.targetId)||((z=J)==null?void 0:z.panelIdentifier)||((M=J)==
null?void 0:(Z=M.identifier)==null?void 0:Z.tag))z=O=void 0,(z=(O=l).registerPanelContent)==null||z.call(O,E,{engagementPanelSectionListRenderer:J}),this.engagementPanels.push(J)}}};
_.X.onStampFinished=function(){var l=this;_.OK(this,function(){if(l.tabGestures){var e=l.tabGestures;if(e.scrollPositionNeedsUpdate){var O=_.V2().resolve(_.MG(_.XZ)),E;if((E=e.selectedTab)!=null&&E.title&&O&&(E=O.getCurrentPage())){if(e.scrollPositionForTabs.has(e.selectedTab.title)){var J,z;O=(z=(J=O.getCurrentPage())==null?void 0:J.clientHeight)!=null?z:0;J=e.scrollPositionForTabs.get(e.selectedTab.title);E.setScrollTop(J);O>J+100&&(e.scrollPositionNeedsUpdate=!1)}else E.setScrollTop(Math.min(e.lastVisitedTabScrollPosition!==
void 0?e.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,e.tabsStartAtInPx)),e.scrollPositionNeedsUpdate=!1;e.ytdReduxDispatch(ug4(!1))}}}})};
_.X.loadPage_=function(l){this.initCsi();l&&(this.data=l);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.X.getTitle=function(l){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",l))return this.get("microformat.microformatDataRenderer.title",l);if(this.get("header.feedTabbedHeaderRenderer.title",l))return _.lG(this.get("header.feedTabbedHeaderRenderer.title",l));if(this.get("header.interactiveTabbedHeaderRenderer.title",l))return this.get("header.interactiveTabbedHeaderRenderer.title",l);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
l))return _.lG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",l));var e,O;return _.a("enable_page_header_page_title")&&(l==null?0:(e=l.header)==null?0:(O=e.pageHeaderRenderer)==null?0:O.pageTitle)?l.header.pageHeaderRenderer.pageTitle:""};
_.X.updateTitle=function(l){_.$u(this.hostElement,"yt-update-title",this.getTitle(l))};
_.X.initCsi=function(){_.mv(this.pageSubtype||"browse",["ol","cpt"])};
_.X.getPlayer=function(){if(_.a("kevlar_channel_trailer_multi_attach")){for(var l=_.b(this.attachedPlayers),e=l.next();!e.done;e=l.next())if(e=e.value,e.isConnected||_.qh(this.hostElement,e))return e;return null}return this.player};
_.X.getPlayerContainer=function(){return null};
_.X.onPlayerAttached=function(l,e){_.a("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(e):this.player=e};
_.X.onPlayerDetached=function(l,e){_.a("kevlar_channel_trailer_multi_attach")?(l=this.attachedPlayers.indexOf(e),l<0||this.attachedPlayers.splice(l,1)):this.player=null};
_.X.getServiceTrackingParams=function(){var l,e;return((l=this.data)==null?void 0:(e=l.responseContext)==null?void 0:e.serviceTrackingParams)||[]};
_.X.setMastheadAd=function(l){l&&l.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=l&&l.mastheadAd};
_.X.dataChanged=function(){var l=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.rEH();_.OK(this,function(){_.dQ(l.hostElement,"ytd-update-grid-state-action")})};
_.X.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.X.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var l=this.data.alerts;return l&&l.find(function(e){return!!e.alertWithActionsRenderer})}};
_.X.computeGreetingData=function(){if(this.data&&this.data.alerts){var l=this.data.alerts;return l&&l.find(function(e){return!!e.personalGreetingViewModel})}};
_.X.computeHasMemberHubProfileRenderer=function(l){var e;return!!(l==null?0:(e=l.header)==null?0:e.memberHubProfileRenderer)};
_.X.handleAlertCommand=function(l){this.get("alertCommand.alert.alertWithActionsRenderer",l)&&(l=_.I(l,avh),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",l.alert))};
_.X.handleYtPlaylistDeletionRedirect=function(l){l=this.get("playlistDeletionRedirectCommand.redirectEndpoint",l);_.$u(this.hostElement,"yt-navigate",{endpoint:l})};
_.X.computeFluidWidth=function(l,e,O){if(e==="mini_app"||O)return!0;var E,J,z;l=l==null?void 0:(E=l.contents)==null?void 0:(J=E.twoColumnBrowseResultsRenderer)==null?void 0:(z=J.tabs)==null?void 0:z.find(function(u){var d;return u==null?void 0:(d=u.tabRenderer)==null?void 0:d.selected});
if(!l)return!1;var M,Z;return!!((M=l.tabRenderer)==null?0:(Z=M.content)==null?0:Z.richGridRenderer)&&!["channel","channels","playables"].includes(e)};
_.X.computeHeaderFluidWidth=function(l){return l==="hashtag-landing-page"};
_.X.computeHasSidebar=function(l){var e;return!!(l.sidebar||((e=l.header)==null?0:e.playlistHeaderRenderer))};
_.X.computeHasPageHeaderSidebar=function(l){var e,O;return!!((e=l.header)==null?0:(O=e.pageHeaderRenderer)==null?0:O.enableSidebarView)};
_.X.computeUseUnifiedShowPageLayout=function(l){if(!l||this.pageSubtype!=="show"||!l.sidebar||!l.sidebar.playlistSidebarRenderer)return!1;l=l.sidebar.playlistSidebarRenderer;if(!l.items)return!1;for(var e=0;e<l.items.length;e++)if(_.I(l.items[e],K5)){var O=void 0;return((O=_.I(l.items[e],K5))==null?void 0:O.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.X.computeIsConstrainedList=function(l){return _.a("web_enable_constrained_list_subscriptions_channels")&&l==="subscriptions-channels"};
_.X.computeResponsiveSizing=function(l){return l==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Ji.Object.defineProperties(FG.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e;return((l=this.data)==null?0:(e=l.header)==null?0:e.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var l,e;if(!((l=this.data)==null?0:(e=l.sidebar)==null?0:e.playlistSidebarRenderer))return!1;var O;return(O=this.data)!=null&&O.header?!1:!0}}});
_.Ji.Object.defineProperties(FG,{template:{configurable:!0,enumerable:!0,get:function(){if(PUu===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);PUu=l}l=PUu;return l}}});
FG.prototype.dataChanged=FG.prototype.dataChanged;FG.prototype.onPlayerDetached=FG.prototype.onPlayerDetached;FG.prototype.onPlayerAttached=FG.prototype.onPlayerAttached;FG.prototype.onStampFinished=FG.prototype.onStampFinished;FG.prototype.engagementPanelsChanged=FG.prototype.engagementPanelsChanged;FG.prototype.scrollAtTopChanged=FG.prototype.scrollAtTopChanged;FG.prototype.tabsChanged=FG.prototype.tabsChanged;FG.prototype.activeChanged=FG.prototype.activeChanged;
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],FG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],FG.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],FG.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.ym.YtPageBehavior),_.q("design:type",Object)],FG.prototype,"ytPageBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],FG.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],FG.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FG.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],FG.prototype,"hidden",void 0);
_.L([_.T(),_.q("design:type",Object)],FG.prototype,"mastheadAdData",void 0);_.L([_.T({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.q("design:type",Object)],FG.prototype,"alertBannerData",void 0);_.L([_.T({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.q("design:type",Object)],FG.prototype,"greetingData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],FG.prototype,"pageSubtype",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.q("design:type",Boolean)],FG.prototype,"hasMemberHubProfileRenderer",void 0);_.L([_.T({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],FG.prototype,"hasSidebar",void 0);_.L([_.T({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],FG.prototype,"hasPageHeaderSidebar",void 0);
_.L([_.T({reflectToAttribute:!0,value:!0}),_.q("design:type",Boolean)],FG.prototype,"roundedContainer",void 0);_.L([_.T({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],FG.prototype,"useUnifiedShowPageLayout",void 0);_.L([_.T({computed:"computeIsConstrainedList(pageSubtype)"}),_.q("design:type",Object)],FG.prototype,"isConstrainedList",void 0);
_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],FG.prototype,"usePlaylistHeaderRenderer",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],FG.prototype,"useOldPlaylistSidebarRenderer",null);_.L([_.T({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.q("design:type",Boolean)],FG.prototype,"fluidWidth",void 0);_.L([_.T({selector:function(l){return l.ui.scrollAtTop}}),
_.q("design:type",Boolean)],FG.prototype,"scrollAtTop",void 0);_.L([_.T({selector:_.Dmi}),_.q("design:type",Boolean)],FG.prototype,"tabGesturesIsActive",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],FG.prototype,"darkerDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.q("design:type",Boolean)],FG.prototype,"disableHeaderFluidWidth",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.q("design:type",String)],FG.prototype,"responsiveSizing",void 0);_.L([_.aB("ytd-two-column-browse-results-renderer"),_.q("design:type",HTMLElement)],FG.prototype,"contents",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],FG.prototype,"header",void 0);_.L([_.aB("ytd-refresh"),_.q("design:type",Object)],FG.prototype,"refresh",void 0);
_.L([_.AA("active"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FG.prototype,"activeChanged",null);_.L([_.AA("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FG.prototype,"tabsChanged",null);_.L([_.AA("scrollAtTop"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FG.prototype,"scrollAtTopChanged",null);
_.L([_.T(),_.q("design:type",Object)],FG.prototype,"engagementPanels",void 0);_.L([_.AA("data.panels"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FG.prototype,"engagementPanelsChanged",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FG.prototype,"onStampFinished",null);
_.L([_.wP("yt-player-attached"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Element]),_.q("design:returntype")],FG.prototype,"onPlayerAttached",null);_.L([_.wP("yt-player-detached"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Element]),_.q("design:returntype")],FG.prototype,"onPlayerDetached",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],FG.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-browse"})],FG);_.Zl.registerService(_.Esx,FG);
_.Tj();
}catch(e){_._DumpException(e)}
try{
_.RQ("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 E4=function(l){if(!l)return"browse";var e=l.page,O=l.url,E,J,z,M=(E=l.response)==null?void 0:(J=E.responseContext)==null?void 0:(z=J.webResponseContextExtensionData)==null?void 0:z.pageTheme;if(M)e=M.toLowerCase().replace(/_/g,"-");else if(e!=="watch"&&e!=="learning_journey_watch"){var Z,u;if((e==="browse"||e==="settings")&&((Z=l.response)==null?0:(u=Z.sidebar)==null?0:u.settingsSidebarRenderer))e="WEB_PAGE_TYPE_SETTINGS";else{var d,g;e==="browse"&&((d=l.response)==null?0:(g=d.metadata)==null?
0:g.channelMetadataRenderer)?e="channel":O&&(e=_.k1(O)||e)}}return e},Xk0=function(){var l=_.vK("yt.aba.att");
return l?l:_.lM.instance!==void 0?_.lM.instance.qf6.bind(_.lM.instance):null},zd3=function(l,e){var O;
return _.V(function(E){return(O=Xk0())?E.return(O(l,e,6E4)):E.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},bvC=function(l,e,O,E,J){e=e===void 0?[]:e;
J=J?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:J}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Zr(l),dialogMessages:e.map(function(z){return _.Zr(z)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(O),serviceEndpoint:J}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(E)}}}}}},M7P=function(l){var e=!!_.qg().queueProxy;
var O,E,J;l=l==null?void 0:(O=l.response)==null?void 0:(E=O.currentVideoEndpoint)==null?void 0:(J=E.watchEndpoint)==null?void 0:J.playlistId;return!(!e&&!l)},V7H=function(l,e){var O=_.n6();
if(M7P(l))return O.playlistWatchPageActivation=!0;switch(E4(e)){case "yts-products":return O.productDetailsPageActivation=!0;case "mini_app":return O.miniAppPageActivation=!0;case "playables":return O.playablesDestPageActivation=!0;default:return!1}},ZvF=function(l,e,O){for(var E=typeof l==="string"?l.split(""):l,J=l.length-1;J>=0;--J)J in E&&e.call(O,E[J],J,l)},uRf=function(l,e){e=_.gVu(l,e);
e>=0&&_.vx(l,e)},CtC=function(l){return Array.prototype.concat.apply([],arguments)},o6u=function(l){var e=0;
e=e===void 0?0:e;if(!_.iz(l))throw _.CR("uint64");var O=typeof l;switch(e){case 512:switch(O){case "string":return _.ZR2(l);case "bigint":return String((0,_.T0)(64,l));default:return _.M0W(l)}case 1024:switch(O){case "string":return _.uku(l);case "bigint":return _.qi((0,_.T0)(64,l));default:return _.V0M(l)}case 0:switch(O){case "string":return _.ZR2(l);case "bigint":return _.qi((0,_.T0)(64,l));default:return _.bRp(l)}default:return _.VC(e,"Unknown format requested type for int64")}},$GO=function(l){l!=
null&&(l=l.JSC$6856_value_||"",l=typeof l==="string"?l:new Uint8Array(l));
return l},WWf=function(l){for(var e=_.ke.apply(1,arguments),O=l[0],E=0;E<l.length-1;E++)O+=String(e[E]),O+=l[E+1];
e=document.implementation.createHTMLDocument("");E=e.createElement("style");e.head.appendChild(E);e=E.sheet;e.insertRule(O,0);if(e.cssRules.length===1&&(O=e.cssRules[0],O instanceof CSSStyleRule))return new _.tz(O.cssText.replace(/</g,"\\3C "))},dGP=function(l,e){if(/-[a-z]/.test(e))return null;
if(_.Uix&&l.dataset){if(_.MMT()&&!(e in l.dataset))return null;l=l.dataset[e];return l===void 0?null:l}return l.getAttribute("data-"+_.kv(e))},ivO=function(){var l=g63;
_.vK("yt.ads.biscotti.getId_")||_.zJ("yt.ads.biscotti.getId_",l)},wkP=function(l){_.zJ("yt.ads.biscotti.lastId_",l)},n6F=function(){var l={};
for(_.TR=new A5z(l.handleError===void 0?_.YE:l.handleError,l.logEvent===void 0?_.Bm:l.logEvent);_.ss.length>0;)switch(l=_.ss.shift(),l.type){case "ERROR":_.TR.logError(l.payload);break;case "EVENT":_.TR.logEvent(l.eventType,l.payload)}},ah4=function(l,e,O){return _.Tv2(function(E){return O?E.userIdentifier!==void 0&&!l.includes(E.userIdentifier)&&O.includes(E.publicName):E.userIdentifier!==void 0&&!l.includes(E.userIdentifier)},e)},kRH=function(l){var e,O;
return _.V(function(E){if(E.nextAddress==1)return e=_.Kv("YtIdbMeta hasAnyMeta other"),_.C(E,_.Tv2(function(J){return J.userIdentifier!==void 0&&J.userIdentifier!==e},l),2);
O=E.yieldResult;return E.return(O.length>0)})},mGh=function(l,e){IhH||(IhH=_.UD.addLowPriorityJob(function(){var O,E,J,z,M;
return _.V(function(Z){switch(Z.nextAddress){case 1:return _.C(Z,_.bL(),2);case 2:O=Z.yieldResult;if(!O)return Z.return();E=!0;_.b1(Z,3);return _.C(Z,ah4(l,O,e),5);case 5:J=Z.yieldResult;if(!J.length){E=!1;Z.jumpTo(6);break}z=J[0];return _.C(Z,_.x6(z.actualName),7);case 7:return _.C(Z,_.OD(z.actualName,O),6);case 6:_.Q2(Z,4);break;case 3:M=_.u1(Z),_.GR(M),E=!1;case 4:_.UD.cancelJob(IhH),IhH=0,E&&mGh(l,e),_.Cl(Z)}})}))},y5P=function(){var l;
return _.V(function(e){return e.nextAddress==1?_.C(e,_.bL(),2):(l=e.yieldResult)?e.return(kRH(l)):e.return(!1)})},pkF=function(l){var e=100;
e=e===void 0?500:e;var O,E,J,z,M,Z;return _.V(function(u){return u.nextAddress==1?(O=_.hT("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[O,(0,_.VZ)()-2592E6],J=[O,(0,_.VZ)()],z=IDBKeyRange.bound(E,J),_.C(u,_.MT2(l),2)):u.nextAddress!=3?(M=u.yieldResult,Z=[],_.C(u,_.et(M,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){Z.length=0;return _.ZA(d.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:z,direction:"prev"},function(g){if(g.getValue()&&Z.length<e)return Z.push(g.getValue()),
g.delete().then(function(){return g.continue()})})}),3)):u.return(Z)})},KW3=function(){var l;
return _.V(function(e){if(e.nextAddress==1)return _.C(e,_.bL(),2);l=e.yieldResult;if(!l||!_.j7()&&!_.a("nwl_init_require_datasync_id_killswitch")||!_.pcT())return e.jumpTo(0);_.j4x=!0;_.Ksg.isNwlInitialized=_.j4x;return _.C(e,_.QCi().awaitInitialization(),0)})},Jt=function(l,e){_.qm8[l]=!0;
var O=_.CZ();O&&O.publish.apply(O,arguments);_.qm8[l]=!1},HvO=function(){if(_.k4V()&&!jy0){var l=function(O){O=O.data;
if(O.op==="serializedGelBatch"){var E=_.vTx.get(O.key);E&&(_.rAg(O.serializedBatch,E.client,E.resolve,E.networklessOptions,E.isIsolated,E.useVSSEndpoint,E.dangerousLogToVisitorSession,E.requestsOutstanding),_.vTx.delete(O.key))}},e=_.ar2();
e&&(e.addEventListener("message",l),e.onerror=function(){_.vTx.clear()});
jy0=!0}},XA=function(){this.relativeTimeStart_=_.C2()},c5h=function(l,e){l!=null&&this.append.apply(this,arguments)},FWh=function(){return _.qd("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},fhh=function(l,e,O){O=O===void 0?!1:O;
var E,J,z,M,Z;return _.V(function(u){switch(u.nextAddress){case 1:_.y2("SOCS",l,34128E3,"youtube.com",!0);if(_.n2)return J=fetch(e,{method:"POST",mode:_.Qf(e),credentials:_.SH(e),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),z=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Qf("/upgrade_visitor_cookie?eom=1"),credentials:_.SH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.C(u,Promise.all([J,z]).then(function(d){return d[1]}),5);
fetch(e,{method:"POST",mode:_.Qf(e),credentials:_.SH(e),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.C(u,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Qf("/upgrade_visitor_cookie?eom=1"),credentials:_.SH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:E=u.yieldResult;u.jumpTo(3);break;case 5:E=M=u.yieldResult;case 3:if(!E.ok)throw Error("nf");return _.C(u,E.text(),7);case 7:Z=u.yieldResult,
!Z.includes('"state_switch":true')&&!O||Z.includes("skip_reload_for_test")||window.location.reload(),_.Cl(u)}})},Rd0=function(l){return _.V(function(e){return e.nextAddress==1?_.C(e,fhh(l.socsCookie,l.savePreferenceUrl,!0),2):e.return()})},TLu=function(l){return _.V(function(e){return e.nextAddress==1?_.C(e,fhh(l.socsCookie,l.savePreferenceUrl),2):e.return()})},GRi=function(l){l=l.xhr.responseText;
if(!_.Jq(l,")]}'"))throw new zF;l=JSON.parse(l.substr(4));if((l.type||1)>1)throw new zF;l=l.id;wkP(l);b7=_.SK(l);syf(18E5,2);return l},PtH=function(l,e){e=new BLh(e);
wkP("");b7=_.nw1(e);l>0&&syf(12E4,l-1);throw e;},syf=function(l,e){_.dL(function(){_.hTH().then(GRi,function(O){return PtH(e,O)}).thenCatch(_.II)},l)},g63=function(){var l=_.qCf();
if(l!==void 0)return _.Tr(l);b7||(b7=_.hTH().then(GRi).thenCatch(function(e){return PtH(2,e)}));
return b7},UGi=function(){var l=document;
return _.Gg(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){return"on"+e.toLowerCase()in l})},Ys4=function(l){l.addEventListener("click",function(e){var O=e.target;
O&&O.getAttribute("href")&&(O=O.getAttribute("href"),_.FC(window,O,"_blank"),e.preventDefault(),e.stopImmediatePropagation())})},hdO=function(l){var e,O,E,J=(E=(O=((e=l.mainDownloadsListEntity)!=null?e:{})[_.EUx])==null?void 0:O.refresh)!=null?E:"",z;
l=(z=l.refresh)==null?void 0:z[J];J=l!=null?l:{};return(J==null?0:J.refreshTime)?Number(J==null?void 0:J.refreshTime):0},LW4=function(l,e){var O=_.fO(l);
return e.every(function(E){var J;E=E==null?void 0:(J=E.playbackDataEntity)==null?void 0:J.key;if(!E)return!1;J=_.iH(_.Wt(E).entityId,"mainVideoEntity");return!!O[J]})},t7H=function(l){l=_.Ht(l.entities);
return _.Pa2(l).length},qs3=function(l,e){if(e){var O;
l=(O=_.wV(l.entities,"downloadQualityPickerEntity",e))!=null?O:void 0}else l=void 0;return l},r5z=function(){v6H||(_.Qy=_.xSM,v6H=new NLP);
return v6H},DGH=function(l){var e=document.getElementsByTagName("ytd-enforcement-message-view-model");
e.length===0||getComputedStyle(e[0]).display==="none"?l(0,"p.h_"):l(1,"p.h_")},Ssh=function(){MP=0;
var l=[_.K0(!0)];VJ&&_.dQ(VJ,"yt-window-resized",l)},Qy3=function(){MP||(MP=_.UD.addLowPriorityJob(Ssh,200))},lAP=function(){ZQ=0;
xGC=_.Ypx(document);var l=[xGC];VJ&&_.dQ(VJ,"yt-window-scrolled",l)},eph=function(){ZQ||(ZQ=_.UD.addLowPriorityJob(lAP,200))},EPi=function(l){l=l===void 0?null:l;
Ouf.push(_.bN(window,"resize",Qy3));Ouf.push(_.bN(window,"scroll",eph));l&&(VJ=l)},Xw3=function(){var l={isWide:_.mW.get("wide","0")==="1"},e=_.Kz();
if(e=e.getFlag(165)||e.getFlag(174))l.theme=_.R4(!0);if(_.o82()){var O=_.f0()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";l.systemTheme=O}!e&&_.a("parent_tools_enable_app_settings")&&_.Qt(window.location.href).theme!==void 0&&(l.theme=_.R4());if((e=u7)?!_.mm.equals(e,l):l)e={currentValue:l},JWo&&(e.timeSinceLastSnapshotSecs=Math.round(((0,_.VZ)()-JWo)/1E3)),u7&&(e.previousValue=u7),_.Bm("appSettingsCaptured",e),u7=l,JWo=(0,_.VZ)()},zpu=function(l){_.V(function(e){if(e.nextAddress==1)return _.C(e,
l.delete("yt-appshell-assets"),2);
_.Cl(e)})},buC=function(l){return _.lL((0,_.Qei)(),l)},Vto=function(){var l;
_.V(function(e){return e.nextAddress==1?_.C(e,Cj.getInstance(),2):(l=e.yieldResult)?_.C(e,MtO(l),0):e.jumpTo(0)})},u_P=function(){var l;
_.V(function(e){return e.nextAddress==1?_.C(e,oS.getInstance(),2):(l=e.yieldResult)?_.C(e,ZuP(l),0):e.jumpTo(0)})},CLo=function(l){zpu(l);
Vto();u_P()},oPC=function(l){var e,O;
return _.V(function(E){if(E.nextAddress==1)return _.C(E,_.T_d(l),2);if(e=E.yieldResult){var J;a:{if(e.headers&&(J=e.headers.get("date"))&&(J=Date.parse(J),!isNaN(J))){J=Math.round((0,_.VZ)()-J);break a}J=-1}O=J;if(O>-1)return E.return(O)}return E.return(-1)})},$xF=function(){var l=_.Op.caches,e=_.LH("IS_SHELL_LOAD"),O,E;
_.V(function(J){if(J.nextAddress==1)return O=-1,e?_.C(J,oPC(l),3):(E=_.Rp(),O=Math.round((0,_.VZ)()-E),J.jumpTo(2));J.nextAddress!=2&&(O=J.yieldResult);O>=0&&O<2147483648&&_.Pb({appInstallDataAgeMs:O});_.Cl(J)})},WwO=function(l){var e=_.rk(_.Op.location.href),O={};
"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(E){var J=e.JSC$8068_queryData_.getValues(E);if(J==null?0:J.length)O[E]=J});
return _.EP(l,new Map(Object.entries(O)))},dxo=function(l){l=l.match(/(.*)::.*::.*/);
if(l!==null)return l[1]},gPz=function(l){if(_.lT8()){var e=Object.keys(window.localStorage);
e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=dxo(O);E===void 0||l.includes(E)||self.localStorage.removeItem(O)}}},iu0=function(){if(!_.lT8())return!1;
var l=_.Kv(),e=Object.keys(window.localStorage);e=_.b(e);for(var O=e.next();!O.done;O=e.next())if(O=dxo(O.value),O!==void 0&&O!==l)return!0;return!1},wwH=function(l){return _.rj("NotificationsDisabled",l)},AWF=function(){return Notification.permission!="granted"?Promise.resolve():_.SNz().then(function(l){return l?l.pushManager.getSubscription().then(function(e){if(e)return Promise.resolve();
e={userVisibleOnly:!0,applicationServerKey:_.VH("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return l.pushManager.subscribe(e).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},nP3=function(l){return _.SNz().then(function(e){if(!e||!e.active)return Promise.reject(new _.Hk("serviceworker.postMessage",l,e));
try{return e.active.postMessage(l),Promise.resolve()}catch(O){return Promise.reject(O)}})},aAu=function(){nP3({type:"notifications_register",
data:_.hT("ID_TOKEN")})},kJo=function(){if(!_.LH("LOGGED_IN"))return Promise.resolve(!1);
var l=_.oy("service_worker_push_force_notification_prompt_tag");return l?_.eX("PromptTags").then(function(e){if(!e)return!0;var O=[];try{O=JSON.parse(e)}catch(E){return!1}return O&&O.indexOf(l)==-1}):Promise.resolve(!1)},IAF=function(){var l=_.Cv("service_worker_push_prompt_delay_microseconds");
return l?_.eX("PromptTime").then(function(e){return Promise.resolve(Date.now()-l>(e||0))}):Promise.resolve(!0)},mxC=function(){var l=_.Cv("service_worker_push_logged_out_prompt_watches");
return l==-1?Promise.resolve(!1):_.eX("WatchCount").then(function(e){return e>=l})},yW4=function(){var l=_.Vz(document,"yt-push-prompt-modal-bg");
l&&_.wk(l)},pwi=function(){return _.Cv("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.eX("PromptCount").then(function(l){l||(l=0);
return Promise.resolve(l<_.Cv("service_worker_push_prompt_cap"))})},Kwu=function(l){return _.LH("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.LH("LOGGED_IN")&&(l===void 0?0:l)?kJo().then(function(e){if(e)return!0;
e=[pwi(),IAF()];_.LH("LOGGED_IN")||e.push(mxC());return Promise.all(e).then(function(O){return O.every(function(E){return E})})}):Promise.resolve(!1)},jCF=function(){_.eX("PromptCount").then(function(l){return _.rj("PromptCount",l+1)}).then(function(){return _.rj("PromptTime",Date.now())}).then(function(){var l=_.oy("service_worker_push_force_notification_prompt_tag");
if(l)return _.eX("PromptTags").then(function(e){var O=[];if(e)try{O=JSON.parse(e)}catch(E){return!1}O||(O=[]);O.push(l);return _.rj("PromptTags",JSON.stringify(O))})})},cWC=function(){Hu0||yW4()},Fw3=function(l){l.style.zIndex=2147483648;
l.style.pointerEvents="auto";l.style.backgroundColor="rgba(0, 0, 0, 0.6)";l.style.width="100%";l.style.height="100vh";l.style.position="absolute";l.style.top="0";l.style.left="0";l.style.border="none"},fAP=function(){var l=_.Vz(document,"yt-push-prompt-modal-bg");
Hu0=_.a("service_worker_push_prompt_modal_ignore_click");l?Fw3(l):(l=_.FD("div",{id:"yt-push-prompt-modal-bg"}),Fw3(l),document.body.appendChild(l),_.Ymd(document,"click",cWC))},Rp3=function(){var l=arguments;
_.a("service_worker_push_prompt_modal_enable")&&fAP();return Notification.requestPermission().then(function(e){yW4();var O=document.getElementById("ticker");O&&(O.className=O.classList.remove("show"));if(e=="granted")return AWF().then(function(){wwH(!1);aAu();return Promise.resolve(!0)});
e=="denied"&&aAu();return Promise.resolve(!1)}).catch(function(){yW4();
return Promise.reject.apply(Promise,_.kA(l))})},T3F=function(l){l=l===void 0?!1:l;
var e=_.igL().client;if(e&&e.browserVersion){var O=e.browserVersion,E=e.browserName=="CHROME"&&_.Wx(O,"50.0.0")<0;e=e.browserName=="OPERA"&&_.Wx(O,"42.0.0")<0;if(E||e)return Promise.resolve()}return _.lUf().then(function(J){if(!J)return Promise.resolve();J=AWF().then(function(){return nP3({type:"notifications_check_registration",data:_.hT("ID_TOKEN")})});
return Notification.permission!="default"?J.catch(function(){}):J.then(function(){return Kwu(l)}).then(function(z){if(z)return jCF(),Rp3().then(function(){})}).catch(function(){})})},sCF=function(l){return _.QHF(l)?T3F():Promise.resolve()},GJo=function(l){var e=l.installing||l.waiting;
return l.active||!e?Promise.resolve(l):new Promise(function(O){var E=function(J){J=J.target;if(J.state==="activated"||J.state==="redundant")e.removeEventListener("statechange",E),O(l)};
e.addEventListener("statechange",E)})},B3z=function(){var l=new _.FhA("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.nN(l,{mainAppWeb:_.ST()});var e=_.Wqq;_.a("service_worker_forward_exp_params")&&(e=WwO(e));try{var O=_.AxM(e).catch(function(){_.a2(l,"FAILURE");return new Promise(function(){})});
_.a("service_worker_push_enabled")&&O.then(function(E){_.a2(l,"SUCCESS");return E}).then(GJo).then(sCF)}catch(E){if(_.a2(l,"FAILURE"),E.name!=="SecurityError")throw E;
}},PLf=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&B3z()},UxC=function(l,e){var O={};
e&&(O.serializedYpcFamilyCreateLoggingParams=e);_.Bm(l,O);_.Pm()},YDh=function(l,e){var O={};
O.serializedYpcRefundFlowLoggingParams=e;l&&(O.eventType=l);_.Bm("ypcRefundFlowEvent",O);_.Pm()},hpH=function(l){l&&_.aTV("transactionFlowSucceeded",l)},Lwh=function(l){l&&_.ff("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",l,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},ttu=function(l){var e,O,E,J,z,M,Z;
_.V(function(u){if(u.nextAddress==1)return _.C(u,_.EKd(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);e=[];return _.C(u,_.dg.keys(),3)}O=u.yieldResult;E=_.b(O);for(J=E.next();!J.done;J=E.next())z=J.value,M=_.eqW(z),Z=M.datasyncId,!Z||l.includes(Z)||e.push(_.dg.delete(z));return u.return(Promise.all(e).then(function(d){return d.some(function(g){return g})}))})},qDH=function(){var l,e,O,E,J,z,M;
return _.V(function(Z){if(Z.nextAddress==1)return _.C(Z,_.EKd(),2);if(Z.nextAddress!=3){if(!Z.yieldResult)return Z.return(!1);l=_.Kv("cache contains other");return _.C(Z,_.dg.keys(),3)}e=Z.yieldResult;O=_.b(e);for(E=O.next();!E.done;E=O.next())if(J=E.value,z=_.eqW(J),(M=z.datasyncId)&&M!==l)return Z.return(!0);return Z.return(!1)})},vPC=function(){var l=_.V2().resolve(_.MG(_.VEq));
return l?l.getCurrentTime():0},N3i=function(){var l,e,O,E,J,z,M,Z,u,d,g,w,n,k;
return _.V(function(y){switch(y.nextAddress){case 1:l={},e=_.QPx(),O=_.b(Object.entries(e)),E=O.next();case 4:if(E.done){y.jumpTo(3);break}J=E.value;z=_.b(J);M=z.next().value;Z=z.next().value;u=M;d=Z;if(!d){y.jumpTo(5);break}return _.C(y,d(),8);case 8:l[u]=y.yieldResult;case 5:E=O.next();y.jumpTo(4);break;case 2:g=_.b(void 0),w=g.next();case 9:if(w.done){y.jumpTo(3);break}n=w.value;k=e[n];if(!k){y.jumpTo(10);break}return _.C(y,k(),13);case 13:l[n]=y.yieldResult;case 10:w=g.next();y.jumpTo(9);break;
case 3:return y.return(l)}})},rWH=function(){var l;
_.V(function(e){if(e.nextAddress==1)return _.C(e,N3i(),2);l=e.yieldResult;return _.C(e,navigator.clipboard.writeText(JSON.stringify(l,null,2)),0)})},DxH=function(l,e){return _.wV(l.entities,"superThanksSelectedTierEntity",e)},SDH=function(l){var e;
return(e=l.sharedUi)==null?void 0:e.currentPageType},QCo=function(l,e){return{popup:{searchSuggestionReportDialog:{searchQuery:l,
title:_.ml("SBOX_INAPPROPRIATE_TITLE"),suggestions:e,categoryLabel:_.ml("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.ml("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.ml("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.ml("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.ml("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.ml("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.ml("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.ml("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.ml("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.ml("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},xxC=function(l){var e,O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N;
return _.V(function(t){switch(t.nextAddress){case 1:return _.C(t,_.aM(),2);case 2:return(e=t.yieldResult)?_.C(t,_.jrV(e),3):t.return();case 3:O=t.yieldResult;if(!O)return t.return();J=((E=O.offlineVideos)==null?void 0:E.length)||0;M=((z=O.offlinePlaylists)==null?void 0:z.length)||0;if(J===0&&M===0)return t.return();Z=0;if(O.offlineVideos)for(u=_.b(O.offlineVideos),d=u.next();!d.done;d=u.next())g=d.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===g.videoState&&(Z+=1);l.offline_videos_count=J.toString();_.a("kevlar_log_offline_current_network_type_ks")||
(l.offline_current_network_type=(w=_.VH2())!=null?w:"CONN_INVALID");_.a("kevlar_log_updated_time_for_smart_downloads")&&(n=_.Om().getState().entities,k=_.sn(n),y=hdO(n),l.offline_smart_downloads_last_sync_time_ms=k.toString(),l.offline_smart_downloads_next_sync_time_ms=y.toString());l.offline_videos_playable=Z.toString();l.offline_playlists_count=M.toString();if(!_.a("woffle_used_state_report")){t.jumpTo(4);break}O.offlineVideos&&(c=O.offlineVideos.reduce(function(r,D){D.downloadedBytes&&(r+=Number(D.downloadedBytes));
return r},0).toString())&&(l.offline_used_disk_space_bytes=c);
if(!((f=navigator)==null?0:(P=f.storage)==null?0:P.estimate)){t.jumpTo(4);break}return _.C(t,navigator.storage.estimate(),6);case 6:h=t.yieldResult,l.offline_free_disk_space_bytes=(((N=h)==null?void 0:N.quota)||0).toString();case 4:l.offline_client_state=JSON.stringify(O),_.Cl(t)}})},lbH=function(l){l=l.match(/(.*)::.*::.*/);
if(l!==null)return l[1]},eBP=function(l){if(_.TRL()){var e=Object.keys(window.sessionStorage);
e=_.b(e);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=lbH(O);E===void 0||l.includes(E)||self.sessionStorage.removeItem(O)}}},OZC=function(){if(!_.TRL())return!1;
var l=_.Kv(),e=Object.keys(window.sessionStorage);e=_.b(e);for(var O=e.next();!O.done;O=e.next())if(O=lbH(O.value),O!==void 0&&O!==l)return!0;return!1},$r=function(l,e,O){(_.a("desktop_keyboard_shortcut_usage_log")||O&&_.a("web_shorts_keyboard_shortcut_usage_log"))&&(e?_.l7.get(l):_.x9.get(l))&&(l=e?_.O4.get(l):_.eI.get(l))&&_.On(_.P9(),l)},EEh=function(){var l,e;
return typeof CSS!=="undefined"&&((e=(l=CSS).supports)==null?void 0:e.call(l,"selector(:has(*))"))},JGz=function(l){return l.visibility!=="hidden"&&l.display!=="none"},zBP=function(l){if(EEh()||l.tagName!=="DETAILS"?!l.matches(XmP):l.querySelector("summary")!==null)return-1;
l=l.getAttribute("tabindex")||"0";return Number(l)},bZu=function(l){return l.some(function(e){return zBP(e)>0})},MUo=function(l){if(l.textContent)return!0;
if(l instanceof HTMLInputElement){if(!l.labels)return!1;l=_.b(l.labels);for(var e=l.next();!e.done;e=l.next())if(e.value.textContent)return!0}return!1},VUH=function(l){return l.sort(function(e,O){return zBP(O)-zBP(e)})},ZZf=function(l){l=Array.from(l.querySelectorAll(XmP)).filter(function(e){return(JGz(e.style)?JGz(window.getComputedStyle(e)):!1)&&MUo(e)});
return bZu(l)?VUH(l):l},uxi=function(l){l=ZZf(l);
l.length>0&&l[0].focus()},CNz=function(l,e){e.stack&&(l.stack+="\n"+e.stack);
return l},WBC=function(l){var e=WU(l,"Content-Type");
if(!e)return null;e=e.toLowerCase();if(e.startsWith("application/json"))return e.startsWith("application/json+protobuf")?new oEu:new _.uI;if(e.startsWith("application/x-protobuf")){l=WU(l,"Content-Transfer-Encoding");if(!l)return new dB;if(l.toLowerCase()=="base64")return new $r4}return null},IbP=function(l,e,O,E){var J=new dr4(function(Z,u){return gEu.has(u)?Z.sentinel==="gal"&&Z.event!==void 0:!1},function(Z){Z.event?(Z=iZz(Z.event),Z=!Z||wmf(E,Z)?!0:_.K2(l.lastEvent,gB,2,i7)?!_.K2(Z,wB,1,i7)&&
!_.K2(Z,gB,2,i7):!_.K2(Z,wB,1,i7)&&!_.K2(Z,gB,3,i7)):Z=!0;
return Z});
O=_.EP(l.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",AGF(O)]]));if(l.nestedOrigins!==void 0)for(var z=_.b(l.nestedOrigins),M=z.next();!M.done;M=z.next())O=_.EP(O,new Map([["origin",M.value]]));return nEu(J,O,e).then(function(Z){Z=abH(Z.event);if(_.K2(Z,wB,1,i7)){var u,d=(u=_.hZ(Z,wB,1,i7))==null?void 0:_.PW(u,2);d&&E.JSC$17159_logErrorEvent(kM4(d));u=_.hZ(Z,wB,1,i7);_.PW(u,2)===4?(Z=_.hZ(Z,wB,1,i7),Z={statusCode:11,statusMessage:_.BW(Z,
3)}):(Z=_.hZ(Z,wB,1,i7),Z={statusCode:12,statusMessage:_.BW(Z,3)});return Z}_.K2(Z,gB,3,i7)?(Z=_.hZ(Z,gB,3,i7),Z={statusCode:1,consentLanguageKeys:_.BW(Z,2)}):Z={statusCode:1};return Z}).catch(function(Z){return Z.errorCode!==void 0?{statusCode:Z.errorCode,
statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},KB4=function(l){var e={};
if(l===void 0||l===null)return e;l.getToken()!==void 0&&mrC(l.getToken())&&mrC(l.getToken()).length>0&&(e.scopes=new Set(mrC(l.getToken())));l.getToken()!==void 0&&yGi(l.getToken())&&yGi(l.getToken()).length>0&&(e.capabilities=new Set(yGi(l.getToken())));_.BW(l,3)!==void 0&&(e.consistencyKey=_.BW(l,3));l.getName()!==void 0&&l.getName()!==""&&(e.linkName=l.getName());_.p2(l,pmF,4)&&(l=_.Cu(l,pmF,4),l=Object.assign({},_.BW(l,1)&&{userId:_.BW(l,1)},_.BW(l,2)&&{displayName:_.BW(l,2)},_.BW(l,3)&&{email:_.BW(l,
3)},_.BW(l,5)&&{username:_.BW(l,5)},_.BW(l,4)&&{profilePicture:_.BW(l,4)}),e.profile=l);return e},jD4=function(l,e){var O=l.flowParams;
return{serviceId:O.serviceId,sessionId:O.sessionId,currentFlow:l.currentFlow,googleScopesString:e,linkingSessionSerialized:l.session.serialize(),consentLanguageKeys:O.consentLanguageKeys,callerState:l.callerState,dynamicUrlParameters:O.dynamicUrlParameters,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp}},RB0=function(l){var e=l.googleScopes!==void 0?Array.from(l.googleScopes).join(","):"";
HZF(jD4(l,e));e=cG4(l);return e===null?Promise.resolve(FB3):e.start().then(function(O){var E,J=(E=O.link)==null?void 0:E.consistencyKey;return O.statusCode===1&&l.googleScopes!==void 0&&l.googleScopes.size>0&&J!==void 0?(E=l.flowParams,fbu(E.serviceId,E.sessionId,l.googleScopes,J,E.galService,l.config,O)):O})},TAO=function(l){var e=cG4(l);
return e===null?Promise.resolve(At({statusCode:7,statusMessage:"Failed to create flow object"},l.callerState)):e.complete().then(function(O){var E,J=(E=O.link)==null?void 0:E.consistencyKey;return O.statusCode===1&&l.googleScopes!==void 0&&l.googleScopes.size>0&&J!==void 0?(E=l.flowParams,fbu(E.serviceId,E.sessionId,l.googleScopes,J,E.galService,l.config,O)):At(O,l.callerState)},function(O){return At({statusCode:12,
statusMessage:"Failed to complete the flow: "+O.message},l.callerState)})},fbu=function(l,e,O,E,J,z,M){return sDu(J,{serviceId:l,
sessionId:e,googleScopes:O,consistencyKey:E}).then(function(){return M},function(Z){return J.deleteLink({serviceId:l,
sessionId:e,accountLinkingEntryPoint:z.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+Z.message}},function(u){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+u.message}})})},cG4=function(l){switch(l.currentFlow){case 1:var e=l.flowParams;
l=_.Cu(l.session,GMP,1);return nj.createOAuthFlow(e,l);case 2:case 3:return e=l.flowParams,l=_.Cu(l.session,BA3,6),aS.createStreamlinedFlow(e,l);default:return null}},PN3=function(l,e){l===2&&(l=3);
var O=0;kr.indexOf(l)!==-1&&(O=kr.indexOf(l)+1);for(l=O;l<kr.length;l++)if(e.has(kr[l]))return kr[l]},hBH=function(l){var e=l.serviceId;
var O=l.sessionId;var E=l.config;var J=l.galService;var z=l.capabilities;var M=l.scopes;var Z=l.loginHint;var u=l.callerState;var d=l.consentLanguageKeys;var g=l.linkName;var w=l.dynamicUrlParameters;var n=l.partnerConfigMinReadTimestamp;l=E.dataUsageNoticeConfig?E.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return J.startLinkingSession({serviceId:e,sessionId:O,capabilities:z,scopes:M,loginHint:Z,callerState:u,supportedFlows:Uru(E.supportedFlows),completionUrl:E.completionUrl,accountLinkingEntryPoint:E.accountLinkingEntryPoint,
consentLanguageKeys:d,dataUsageNoticeConfig:l,linkName:g,dynamicUrlParameters:w,partnerConfigMinReadTimestamp:n}).then(function(k){return new YWi(e,O,E,J,k,void 0,u,d,w,n)})},NA4=function(l,e,O){a:{var E=new LB3;
if(E.storage!==null)try{var J=E.storage.get("SAVED_SESSION");if(J===void 0){var z=null;break a}if(J.serviceId===l){z=J;break a}}catch(M){}z=null}if(z===null)return Promise.resolve({statusCode:2});tUF(l);E=qW3(z.linkingSessionSerialized);return vEF(new YWi(l,z.sessionId,e,O,E,z.googleScopesString!==""&&z.googleScopesString!==void 0?new Set(z.googleScopesString.split(",")):void 0,z.callerState,z.consentLanguageKeys,z.dynamicUrlParameters,z.partnerConfigMinReadTimestamp),z.currentFlow,z.consentLanguageKeys)},
HZF=function(l){var e=new LB3;
e.storage!==null&&e.storage.set("SAVED_SESSION",l)},tUF=function(l){var e=new LB3;
if(e.storage!==null){var O=e.storage.get("SAVED_SESSION");O!==void 0&&O.serviceId===l&&e.storage.remove("SAVED_SESSION")}},Uru=function(l){var e=new Set;
l=_.b(l);for(var O=l.next();!O.done;O=l.next())O=O.value,O!==1&&rG4.has(O)&&e.add(rG4.get(O));return e},At=function(l,e){e!==void 0&&(l.callerState=e);
return l},Drh=function(l){switch(l){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},xrP=function(l){return new SWF(l,new QDH(l))},Orz=function(l,e){e=e===void 0?!1:e;
var O=document.createElement("div");l&&(O.style.transform="scaleX(-1)");O.style.backgroundColor=e?"rgba(138,180,248,.24)":"#e8f0fe";O.style.height="4px";O.style.overflow="hidden";O.style.position="absolute";O.style.top="0";O.style.width="100%";O.style.zIndex="1500";O.setAttribute("aria-label","Loading");O.setAttribute("aria-live","polite");l=document.createElement("style");l.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  }";
O.appendChild(l);l=l8P();l.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";l.style.left="-145.166611%";var E=ea3(e);E.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";l.appendChild(E);O.appendChild(l);l=l8P();l.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";l.style.left="-54.888891%";e=ea3(e);e.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
l.appendChild(e);O.appendChild(l);return O},l8P=function(){var l=document.createElement("div");
l.style.height="100%";l.style.position="absolute";l.style.transformOrigin="top left";l.style.width="100%";return l},ea3=function(l){var e=document.createElement("span");
e.style.borderTop=l?"4px solid #669df6":"4px solid #4285f4";e.style.display="inline-block";e.style.position="absolute";e.style.width="100%";return e},EZC=function(l){return l==null?void 0:_.N1S(l).valueOf()},br4=function(l){var e=document.body,O=!1,E=function(){O||(O=!0,JP4(J,z),setTimeout(function(){e.removeChild(z);
e.removeChild(J)},150))},J=XQz(l,getComputedStyle(e).direction==="rtl",E),z=zau(E);
JP4(J,z);e.appendChild(z);e.appendChild(J);window.requestAnimationFrame(function(){z.style.opacity="1";J.style.opacity="1";J.style.transform="translate(-50%, -50%) scale(1)";J.children[0].focus()})},XQz=function(l,e,O){var E=document.createElement("div");
E.style.position="fixed";E.style.alignItems="center";E.style.backgroundColor=l?"rgb(32, 33, 36)":"white";E.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";E.style.display="flex";E.style.flexDirection="column";E.style.justifyContent="center";E.style.left="50%";E.style.top="50%";E.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";E.style.zIndex="2002";document.body.clientWidth>=660?(E.style.borderRadius="8px",E.style.minHeight="220px",
E.style.maxHeight="90%",E.style.maxWidth="90%",E.style.minWidth="540px"):(E.style.height="100%",E.style.width="100%");E.setAttribute("aria-label","Error");E.setAttribute("aria-modal","true");E.setAttribute("role","alertdialog");E.addEventListener("keydown",function(z){z.key==="Escape"&&O()});
e=M4H(l,e,O);E.appendChild(V4o(e));E.appendChild(e);var J=document.createElement("img");J.src=l?"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";J.style.height="72px";J.style.width="72px";J.style.color="#9aa0a6";J.setAttribute("alt","");E.appendChild(J);J=document.createElement("h1");J.textContent="Something went wrong.  Try again.";
J.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";J.style.lineHeight="24px";J.style.fontSize="16px";J.style.textAlign="center";J.style.letterSpacing="0.1px";J.style.color=l?"rgb(232,234,237)":"#3c4043";E.appendChild(J);E.appendChild(V4o(e));return E},M4H=function(l,e,O){var E=document.createElement("button");
E.style.backgroundColor="transparent";E.style.border="none";E.style.borderRadius="50%";E.style.cursor="pointer";E.style.outline="none";E.style.padding="12px";E.setAttribute("aria-label","Close dialog");E.style.position="absolute";E.style.top="0";e?E.style.right="0":E.style.left="0";E.addEventListener("focus",function(){E.style.backgroundColor=l?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
E.addEventListener("blur",function(){E.style.backgroundColor="transparent"});
E.addEventListener("mouseenter",function(){E.style.backgroundColor=l?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
E.addEventListener("mouseleave",function(){E.style.backgroundColor="transparent"});
E.addEventListener("click",O);E.addEventListener("keydown",function(J){J.key!=="Enter"&&J.key!=="Space"||O()});
e=document.createElement("img");e.src=l?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";e.style.display="block";e.style.height="24px";e.style.width="24px";e.setAttribute("alt","");E.appendChild(e);return E},V4o=function(l){var e=document.createElement("div");
e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.addEventListener("focus",function(){return void l.focus()});
return e},zau=function(l){var e=document.createElement("div");
e.style.backgroundColor="rgba(32,33,36,0.6)";e.style.bottom="0";e.style.left="0";e.style.position="fixed";e.style.right="0";e.style.top="0";e.style.transition=" opacity 150 ms linear";e.style.zIndex="2001";e.addEventListener("click",l);return e},JP4=function(l,e){e.style.opacity="0";
l.style.opacity="0";l.style.transform="translate(-50%, -50%) scale(0.8)"},ZrH=function(l,e){l.sandbox&&l.sandbox.add&&(l.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),l.sandbox.add("allow-downloads"));
l.src=e},IS=function(l){uw4.call(this,l)},mE=function(l,e){e=e===void 0?!1:e;
this.parsedImageUrl_=null;l instanceof CgP||(oZF==void 0&&(oZF=new $YC),l=oZF.parse(l.toString(),e));l=this.parsedImageUrl_=l;l.JSC$17371_parsedOptions_==void 0&&((e=l.getOptions())||(e=""),l.JSC$17371_parsedOptions_=(new WPi).parse(e));uw4.call(this,l.JSC$17371_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;l=this.parsedImageUrl_;e=l.uri_.JSC$8068_port_;this.JSC$17373_domain_=l.uri_.JSC$8068_domain_+(e?":"+e:"");this.JSC$17373_query_=this.parsedImageUrl_.uri_.JSC$8068_queryData_.toString()},
dY4=function(l){this.mode=4;
this.data=l;this.parsedData=[];l=0;for(var e=this.data.length;l<e;l++){var O=[],E=this.data.charCodeAt(l);E>65536?(O[0]=240|(E&1835008)>>>18,O[1]=128|(E&258048)>>>12,O[2]=128|(E&4032)>>>6,O[3]=128|E&63):E>2048?(O[0]=224|(E&61440)>>>12,O[1]=128|(E&4032)>>>6,O[2]=128|E&63):E>128?(O[0]=192|(E&1984)>>>6,O[1]=128|E&63):O[0]=E;this.parsedData.push(O)}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))},gZf=function(l){this.typeNumber=0;
this.errorCorrectLevel=l===void 0?2:l;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},yJ=function(l,e){if(l.length==void 0)throw Error("sk`"+l.length+"`"+e);
for(var O=0;O<l.length&&l[O]==0;)O++;this.num=Array(l.length-O+e);for(e=0;e<l.length-O;e++)this.num[e]=l[e+O]},ir3=function(l,e){this.totalCount=l;
this.dataCount=e},wQf=function(){this.buffer=[];
this.length=0},AP4=function(){var l=!1;
if(_.C2W()){l=_.dT();var e="";_.Wxu()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(l=e.exec(l))?l[1]:"0.0"):_.Rd()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(l=e.exec(l))&&l[1].replace(/_/g,".")):_.$AL()?(e=/Mac OS X ([0-9_.]+)/,e=(l=e.exec(l))?l[1].replace(/_/g,"."):"10"):_.u2(_.dT(),"KaiOS")?(e=/(?:KaiOS)\/(\S+)/i,e=(l=e.exec(l))&&l[1]):_.C2W()?(e=/Android\s+([^\);]+)(\)|;)/,e=(l=e.exec(l))&&l[1]):_.dAu()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(l=e.exec(l))&&l[1]);l=e||""}return l},yPC=function(l,
e){this.JSC$17396__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(e)for(var O in e)this.JSC$17396__htOption[O]=e[O];this.JSC$17396__htOption.useSVG&&(nZF=a84);this.JSC$17396__android=AP4();this.JSC$17396__el=l;this._oQRCode=null;this._oDrawing=new nZF(this.JSC$17396__el,this.JSC$17396__htOption);this.JSC$17396__htOption.text&&(l=this.JSC$17396__htOption.text,this._oQRCode=new gZf(this.JSC$17396__htOption.correctLevel),kLi(this._oQRCode,l),e=this._oQRCode,I8C(e,!1,mYu(e)),this.JSC$17396__el.title=
l,this._oDrawing.draw(this._oQRCode),this.makeImage())},pQC=function(l,e,O,E,J){l.save();
var z=new Path2D;z.roundRect(e,O,E*7,E*7,E*2);z.roundRect(e+E,O+E,E*5,E*5,E*1.3);z.roundRect(e+2*E,O+2*E,E*3,E*3,E);l.clip(z,"evenodd");l.fillStyle=J;l.fillRect(0,0,l.canvas.width,l.canvas.height);l.restore()},pj=function(l,e){if(typeof l!=="function")throw Error("vk");
return _.Op.setTimeout(function(){l()},e)},Kj=function(){},jmF=function(l,e,O,E,J){(new Kj).debug("TestLoadImageWithRetries: "+J);
if(E==0)O(!1);else{var z=J||0;E--;KPu(l,e,function(M){M?O(!0):_.Op.setTimeout(function(){jmF(l,e,O,E,z)},z)})}},KPu=function(l,e,O){var E=new Kj;
E.debug("TestLoadImage: loading "+l);var J=new Image;J.onload=function(){try{E.debug("TestLoadImage: loaded"),HrC(J),O(!0)}catch(z){}};
J.onerror=function(){try{E.debug("TestLoadImage: error"),HrC(J),O(!1)}catch(z){}};
J.onabort=function(){try{E.debug("TestLoadImage: abort"),HrC(J),O(!1)}catch(z){}};
J.ontimeout=function(){try{E.debug("TestLoadImage: timeout"),HrC(J),O(!1)}catch(z){}};
_.Op.setTimeout(function(){if(J.ontimeout)J.ontimeout()},e);
J.src=l},HrC=function(l){l.onload=null;
l.onerror=null;l.onabort=null;l.ontimeout=null},cP0=function(){this.front_=[];
this.back_=[]},FPh=function(l,e){_.y6.call(this);
this.delay_=new _.Kb(this.JSC$17522_onTick_,0,this);_.oQ(this,this.delay_);this.JSC$17520_interval_=5E3;this.nextTickTime_=0;if(typeof l==="function")e&&(l=(0,_.pb)(l,e));else if(l&&typeof l.handleEvent==="function")l=(0,_.pb)(l.handleEvent,l);else throw Error("Ca");this.JSC$17522_listener_=l},jI=function(l,e,O,E,J,z,M,Z,u,d,g,w,n,k){O=O===void 0?!1:O;
E=E===void 0?function(){return""}:E;
J=J===void 0?!1:J;z=z===void 0?!1:z;M=M===void 0?!1:M;Z=Z===void 0?function(){return _.Ag({})}:Z;
u=u===void 0?!1:u;g=g===void 0?!1:g;w=w===void 0?!1:w;n=n===void 0?!1:n;k=k===void 0?!1:k;this.JSC$17523_pathPrefix_=l;this.defaultQueryParams_=e;this.pubsub_=new _.k6;this.reconnectTimer_=new FPh(this.safeReconnect_,this);this.JSC$17523_channel_=null;this.JSC$17523_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17523_pendingMessages_=[];this.enableAsyncTest_=O;this.JSC$17523_getXsrfToken_=E;this.useAsyncBrowserChannelHandler_=z;this.getAuthorizationHeader_=
Z;this.getAuthorizationHeaderSync_=d;this.enableCachedUpdateAuthorizationHeader_=M;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Ag();this.enableLoungeTokenRefresh_=J;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=u;this.disableMdxAuthForNonPlaybackMessages_=g;this.disableMdxAuthForAdMessages_=w;this.enableMdxAuthForConnectionOnly_=n;this.disableMdxAuthForShortsMessages_=k;this.JSC$17523_channelOpenedCounter=new f8i;this.JSC$17523_channelClosedCounter=new RaH;this.channelMessageSentCounter=
new T44;this.JSC$17523_channelMessageReceivedCounter=new smz;this.JSC$17523_channelErrorCounter=new GLP;this.pendingMapsOnClosedCounter=new B43;this.undeliveredMapsOnClosedCounter=new Pgz},HU=function(l){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;l=l||document.location.href;var e=Number(_.Os(l)[4]||null)||"";e&&(this.port=":"+e);this.domain=_.Es(l)||"";l=_.dT();l.search("MSIE")>=0&&_.Wx(l.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},cU=function(l){l=l||{};
this.name=l.name||"";this.id=l.id||l.screenId||"";this.token=l.token||l.loungeToken||"";this.uuid=l.uuid||l.dialId||"";this.idType=l.screenIdType||"normal"},UYF=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var e=Math.random()*16|0;
return(l=="x"?e:e&3|8).toString(16)})},Y03=function(l){return _.pF(l,function(e){return{key:e.id,
name:e.name}})},hau=function(l,e){return _.Gg(l,function(O){return O||e?!O!=!e?!1:O.id==e.id:!0})},fj=function(l,e){return _.Gg(l,function(O){return FA(O,e)})},N4F=function(){var l=LPh(),e=t44();
if(q00()){var O=l,E=_.nVT(O,e);E<0&&_.AqW(O,-(E+1),0,e)}l=vZ4(l);if(l.length==0)try{_.X9M("remote_sid")}catch(J){}else try{_.y2("remote_sid",l.join(","),-1)}catch(J){}},LPh=function(){var l=_.gS("yt-remote-connected-devices")||[];
l.sort(_.JC);return l},vZ4=function(l){if(l.length==0)return[];
var e=l[0].indexOf("#"),O=e==-1?l[0]:l[0].substring(0,e);return _.pF(l,function(E,J){return J==0?E:E.substring(O.length)})},rPF=function(l){_.dS("yt-remote-connected-devices",l,86400)},t44=function(){if(DYf)return DYf;
var l=_.gS("yt-remote-device-id");l||(l=UYF(),_.dS("yt-remote-device-id",l,31536E3));for(var e=LPh(),O=1,E=l;_.hq(e,E);)O++,E=l+"#"+O;return DYf=E},S0u=function(){return _.gS("yt-remote-session-browser-channel")},q00=function(){return _.gS("yt-remote-session-screen-id")},lp4=function(l){l.length>5&&(l=l.slice(l.length-5));
var e=_.pF(Qm4(),function(E){return E.loungeToken}),O=_.pF(l,function(E){return E.loungeToken});
_.SdT(O,function(E){return!_.hq(e,E)})&&xY0();
_.dS("yt-remote-local-screens",l,31536E3)},Qm4=function(){return _.gS("yt-remote-local-screens")||[]},xY0=function(){_.dS("yt-remote-lounge-token-expiration",!0,86400)},RS=function(l){l||(_.i4("yt-remote-session-screen-id"),_.i4("yt-remote-session-video-id"));
N4F();l=LPh();_.NA(l,t44());rPF(l)},O_f=function(){eRh();
return TF?!!TF.get("yt-remote-use-staging-server"):!1},eRh=function(){if(!TF){var l=_.$dV();
l&&(TF=new _.ck(l))}},zR4=function(l,e,O,E,J){O=O===void 0?function(){return""}:O;
var z=function(){return new jI(s4(l,"/bc"),e,!1,O,E)};
return _.a("enable_mdx_web_channel_desktop")?new Evi(function(){return new Jih(s4(l,"/wc"),e,O)}):new X93(z,J)},Z_i=function(){var l=b_i;
MHh();GF.push(l);VHz()},BU=function(l,e){MHh();
var O=uci(l,String(e));GF.length==0?Ce3(O):(VHz(),_.DB(GF,function(E){E(O)}))},PU=function(l){BU("CP",l)},MHh=function(){GF||(GF=_.vK("yt.mdx.remote.debug.handlers_")||[],_.zJ("yt.mdx.remote.debug.handlers_",GF))},Ce3=function(l){var e=(U4+1)%50;
U4=e;ovP[e]=l;$d4||($d4=e==49)},VHz=function(){var l=GF;
if(ovP[0]){var e=$d4?U4:-1,O={};do O={record$jscomp$13:void 0},e=(e+1)%50,O.record$jscomp$13=ovP[e],_.DB(l,function(E){return function(J){J(E.record$jscomp$13)}}(O));
while(e!=U4);ovP=Array(50);U4=-1;$d4=!1}},uci=function(l,e){var O=(Date.now()-Wuh)/1E3;
O.toFixed&&(O=O.toFixed(3));var E=[];E.push("[",O+"s","] ");E.push("[","yt.mdx.remote","] ");E.push(l+": "+e,"\n");return E.join("")},Yr=function(l){_.QL.call(this);
this.JSC$17547_logName_=l;this.screens=[]},Lj=function(l){Yr.call(this,"LocalScreenService");
this.JSC$17554_http_=l;this.loungeTokenRefreshTimer_=NaN;ht(this);this.info("Initializing with "+ddH(this.screens))},tt=function(l,e){e=e===void 0?!1:e;
Yr.call(this,"ScreenService");this.JSC$17560_http_=l;this.disableAutomaticScreenCache_=e;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};gvu(this)},qP=function(l,e,O){_.QL.call(this);
this.JSC$17564_logName_=O;this.JSC$17564_screenService_=l;this.receiver_=e;this.screen_=null},Fu4=function(l,e,O){O.disableCastApi?vU("Cannot initialize because disabled by Mdx config."):i_0()?w9C(l,O)&&(Aif(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?nv4(e):(window.__onGCastApiAvailable=function(E,J){E?nv4(e):(NP("Failed to load cast API: "+J),apz(!1),Aif(!1),_.i4("yt-remote-cast-available"),_.i4("yt-remote-cast-receiver"),kzu(),e(!1))},O.loadCastApiSetupScript?_.Nd("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Ipi()>=60&&mdu():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?yiP():Ipi()>=89?p9z():(KuC(),jcu(H_3.map(ci3))))):vU("Cannot initialize because not running Chrome")},kzu=function(){vU("dispose");
var l=rB();l&&l.dispose();_.zJ("yt.mdx.remote.cloudview.instance_",null);fpu(!1);_.v1x(RRf);RRf.length=0},Tvz=function(){return!!_.gS("yt-remote-cast-installed")},scC=function(){var l=_.gS("yt-remote-cast-receiver");
return l?l.friendlyName:null},GzF=function(){vU("clearCurrentReceiver");
_.i4("yt-remote-cast-receiver")},BvP=function(){return Tvz()?rB()?rB().getCastSession():(NP("getCastSelector: Cast is not initialized."),null):(NP("getCastSelector: Cast API is not installed!"),null)},Udi=function(l,e){Pe4()?rB().setConnectedScreenStatus(l,e):NP("setConnectedScreenStatus called before ready.")},i_0=function(){var l=_.dT().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.a_||l},w9C=function(l,e){var O=!1;
rB()||(l=new DQ(l,e),l.subscribe("yt-remote-cast2-availability-change",function(E){_.dS("yt-remote-cast-available",E);Jt("yt-remote-cast2-availability-change",E)}),l.subscribe("yt-remote-cast2-receiver-selected",function(E){vU("onReceiverSelected: "+E.friendlyName);
_.dS("yt-remote-cast-receiver",E);Jt("yt-remote-cast2-receiver-selected",E)}),l.subscribe("yt-remote-cast2-receiver-resumed",function(E){vU("onReceiverResumed: "+E.friendlyName);
_.dS("yt-remote-cast-receiver",E);Jt("yt-remote-cast2-receiver-resumed",E)}),l.subscribe("yt-remote-cast2-session-change",function(E){vU("onSessionChange: "+YKC(E));
E||_.i4("yt-remote-cast-receiver");Jt("yt-remote-cast2-session-change",E)}),_.zJ("yt.mdx.remote.cloudview.instance_",l),O=!0);
vU("cloudview.createSingleton_: "+O);return O},rB=function(){return _.vK("yt.mdx.remote.cloudview.instance_")},nv4=function(l){apz(!0);
Aif(!1);rB().init(!1,function(e){e?(fpu(!0),_.N8x("yt-remote-cast2-api-ready")):(NP("Failed to initialize cast API."),apz(!1),_.i4("yt-remote-cast-available"),_.i4("yt-remote-cast-receiver"),kzu());l(e)})},vU=function(l){BU("cloudview",l)},NP=function(l){BU("cloudview",l)},apz=function(l){vU("setCastInstalled_ "+l);
_.dS("yt-remote-cast-installed",l)},Pe4=function(){return!!_.vK("yt.mdx.remote.cloudview.apiReady_")},fpu=function(l){vU("setApiReady_ "+l);
_.zJ("yt.mdx.remote.cloudview.apiReady_",l)},Aif=function(l){_.zJ("yt.mdx.remote.cloudview.initializing_",l)},SI=function(l){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(l)},hRC=function(){var l,e;
return _.V(function(O){if(O.nextAddress==1)return(_.H0q()||_.a("use_new_nwl"))&&_.y$8().isNetworkAvailable()?_.C(O,_.bL(),2):O.return();if(O.nextAddress!=3)return(l=O.yieldResult)?_.C(O,pkF(l),3):O.return();e=O.yieldResult;if(!e.length)return O.return();e.forEach(function(E){var J={timestamp:E.timestamp};E=E.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:E.appShellAssetLoadReport,options:J}:E.clientError?{payloadName:"clientError",payload:E.clientError,options:J}:void 0;E&&
_.Bm(E.payloadName,E.payload,E.options)});
e.length===100&&_.UD.addLowPriorityJob(hRC);_.Cl(O)})},LuO=function(l){if(l.playerResponse){if(l=l.playerResponse,l.messages&&l.messages.length>0&&(l=l.messages.find(function(e){return!(!e||!e.mealbarPromoRenderer)}))&&l.mealbarPromoRenderer)return l.mealbarPromoRenderer}else if(l.response&&(l=l.response)&&l.overlay&&l.overlay.mealbarPromoRenderer)return l.overlay.mealbarPromoRenderer},tHF=function(l){if(l.response){var e=l.response;
if(e&&e.overlay&&e.overlay.tooltipRenderer)return e.overlay.tooltipRenderer}if(l.playerResponse&&(l=l.playerResponse,l.messages&&l.messages.length>0&&(l=l.messages.find(function(O){return!(!O||!O.tooltipRenderer)}))&&l.tooltipRenderer))return l.tooltipRenderer},vvu=function(l){if(!qKu&&(l=l||_.hT("ZWIEBACK_PING_URLS"))&&l.length){qKu=!0;
for(var e=0;e<l.length;e++)_.St(l[e])}},ri0=function(l){if(_.mm.get(_.hT("PLAYER_VARS",{}),"privembed",!1)!="1"){l&&ivO();
try{NvO().then(function(){},function(){}),_.dL(ri0,18E5)}catch(e){_.tT(e)}}},DdH=function(){var l=_.Kz(),e=l.getFlag(119),O=window.devicePixelRatio>1;
document.body&&_.rE(document.body,"exp-invert-logo")&&(O&&!_.rE(document.body,"inverted-hdpi")?_.XY(document.body,"inverted-hdpi"):!O&&_.rE(document.body,"inverted-hdpi")&&_.EL(document.body,"inverted-hdpi"));e!=O&&(_.jj(0,119,O),l.save())},SKi=function(l){return l.filter(function(e){return"ypcGetCartEndpoint"in e||"ypcFixInstrumentEndpoint"in e})},Qc0=function(l){return l.filter(function(e){return!_.I(e,_.XJC)})},lGu=function(l){l=_.b(l);
for(var e=l.next(),O={};!e.done;O={setter$jscomp$6:void 0},e=l.next()){var E=e.value;e=E.params;E=E.service;e&&E&&(O.setter$jscomp$6=xdF[E],O.setter$jscomp$6&&e.forEach(function(J){return function(z){var M=z.key;z=z.value;M&&z&&(0,J.setter$jscomp$6)(M,z)}}(O)))}},Ozu=function(l,e){var O,E,J,z,M,Z,u;
_.V(function(d){switch(d.nextAddress){case 1:O=_.G_.getInstance();E=_.n4.instance;J=_.Dw.instance;if(!J)return eU3(l,E,e),d.return();_.b1(d,2);l.onLoadingCommand&&E.resolveCommand(l.onLoadingCommand);return _.C(d,O.getCurrentPositionFromGeolocation(),4);case 4:z=d.yieldResult;if(!l.resolveLocationCommand){d.jumpTo(5);break}M=O.createLocationInfo(z);return _.C(d,_.Qh(J,l.resolveLocationCommand,{locationInfo:M}),6);case 6:Z=d.yieldResult;if(!Z||"error"in Z&&Z.error||Z.errorMetadata)return eU3(l,E,e),
d.return();var g;if(Z==null?0:(g=Z.onResponseReceivedActions)==null?0:g.length){g=_.b(Z.onResponseReceivedActions);for(var w=g.next();!w.done;w=g.next())E.resolveCommand(w.value)}(_.I(l.onSuccessCommand,_.ej)||_.I(l.onSuccessCommand,_.ms))&&_.$u(e.hostElement,"yt-navigate",{endpoint:l.onSuccessCommand,reload:!0});case 5:_.Q2(d,0);break;case 2:u=_.u1(d);if(u instanceof GeolocationPositionError&&u.code===GeolocationPositionError.PERMISSION_DENIED)return l.onDeniedCommand&&E.resolveCommand(l.onDeniedCommand),
d.return();eU3(l,E,e);_.Cl(d)}})},eU3=function(l,e,O){l.onFailureCommand&&(e.resolveCommand(l.onFailureCommand),_.Wb(O.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},Jgu=function(l,e){var O=_.I(l,_.wWH);
if(O&&e){l=O.videoIds||[O.videoId];var E;e=(E=_.$u(e,"yt-lockup-requested",{videoIds:l}).detail)==null?void 0:E.returnValue;var J;O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?J=e?e:l.map(function(z){return{videoId:z,navigationEndpoint:O.videoCommand}}):e&&(J=e);
J&&(E=J.map(function(z){var M=Object,Z=M.assign;var u=z.navigationEndpoint;if(!_.I(u,_.jT)){var d=_.I(u,_.ej);if(d){if(delete d.index,delete d.playlistId,d=_.I(u==null?void 0:u.commandMetadata,_.V4),d==null?0:d.url){var g=d.url;g=_.M9(g,"list");g=_.M9(g,"index");d.url=g}}else u=void 0}return Z.call(M,{},z,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:u})}),EuP(E,O))}},XbF=function(l){var e=_.qg();
if(l=_.I(l,_.AZ6))l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&e.clearQueue(),l.closeMiniplayer&&_.V2().resolve(_.NJ).close(!0)},bzP=function(l){zUF(_.qg(),l)},Mjh=function(l){var e;
(l=(e=_.I(l,_.gh6))==null?void 0:e.setVideoIds)&&l.forEach(function(O){_.iC1(_.qg(),O)})},Zzo=function(l){VjP(_.qg(),l)},ujz=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(l){return!1}},Ci0=function(){var l,e;
return(e=(l=window).matchMedia)==null?void 0:e.call(l,"(prefers-reduced-motion: reduce)").matches},ou4=function(l){var e=_.V2().resolve(_.MG(_.VY));
if(e){var O={beforeTransition:function(){l.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){l.style.viewTransitionName=""}};
QJ(e,"slide",O);QJ(e,"zoom",O)}},$9C=function(l,e,O){return{horizontalAlignment:l.x+O.width/2<e.width/2?"west":"east",
verticalAlignment:l.y+O.height/2<e.height/2?"north":"south"}},gui=function(l,e,O,E,J){J=J===void 0?new _.KF(0,0):J;
return WlP(d9P(l,e,O,E),J)},d9P=function(l,e,O,E){return new _.KF(l==="west"?16:O.width-E.width-16,e==="north"?16:O.height-E.height-16)},izH=function(l,e){var O=0;
l&&(O+=76);e&&(O+=285);return O},wbH=function(l){var e=["h",
"m","s"],O=_.rT(e);O.reverse();var E={};l=(l.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(M){var Z=(M.match(/[hms]/)||[""])[0];return Z?(E[Z]=parseInt(M.match(/\d+/)[0],10),!1):!0});
for(l.reverse();l.length&&O.length;){var J=O.shift();J in E||(E[J]=parseInt(l.shift(),10))}if(l.length||E.s>59||E.m>59||E.h>9)return null;var z="";e.forEach(function(M){E[M]&&(z+=""+E[M]+M)});
return z||null},Agi=function(l){l=l.data;
return _.W("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.W("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.W(_.Jm,{data:{thumbnails:[{url:l.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.W("div",{class:"profile-badge-view-model-wiz__content"},_.W("div",{class:"profile-badge-view-model-wiz__badge-description"},l.badgeDesc),l.badgeSubtitle?_.W("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},l.badgeSubtitle):null))},nuO=function(l){l=
l.data;
var e=_.e4("yt-comment-interaction-view-model");_.btx(e,l.rendererContext);return _.W("yt-comment-interaction-view-model",{el:e,class:"yt-comment-interaction-view-model-wiz"},_.W("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":l.onTapA11yLabel,"on:keydown":_.erW(),tabindex:0},_.W("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.W("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},l.headerPrefix,' "',l.videoTitle),_.W("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.W("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.W("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},l.commentContent),_.W("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.W(_.Jm,{data:{thumbnails:[{url:l.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},k9u=function(l){l=l.data;
return _.W("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},aGO(l.avatar),_.W("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},l.channelName))},m9z=function(l){l=l.data;
var e;return _.W("div",{class:"yt-profile-info-view-model-wiz__activity"},_.W("div",{class:"yt-profile-info-view-model-wiz__header"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-title"},l.commentsInteractionTitle)),(e=l.comments)==null?void 0:e.map(function(O){return _.W("div",{class:"yt-profile-info-view-model-wiz__activity"},IGu(O))}))},ygu=function(l){l=l.data;
var e=_.vf({elementsCommand:l.subscriptionsAccessButtonCommand}),O=_.e4("a");_.GfM(O,_.t3(l.subscriptionsAccessButtonCommand));var E;return _.W("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.W("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.W("a",{el:O,"on:click":_.pd(function(J){if(e==null?0:e.onclick)e.onclick(J);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},l.sharedSubscriptionsTitle),_.W("div",null,IGu(l.subscriptionsAccessButton)))),_.W("div",{class:"yt-profile-info-view-model-wiz__subs"},(E=l.sharedSubscriptions)==null?void 0:E.slice(0,5).map(function(J){return _.W("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",IGu(J))})))},pb4=function(l){l=l.data;
var e;return _.W("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.W("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.W("h2",{class:"yt-profile-info-view-model-wiz__section-title"},l.sharedSubscriptionsTitle)),_.W("div",{class:"yt-profile-info-view-model-wiz__subs"},(e=l.sharedSubscriptions)==null?void 0:e.slice(0,5).map(function(O){return _.W("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",IGu(O))})))},Klu=function(l){l=l.data;
return _.W("div",{class:"yt-profile-info-view-model-wiz__activity"},[l.profileBadgeInfoYtWide,l.profileBadgeInfoChannelWide].map(function(e){var O,E,J,z,M;return e?_.W(_.ZB,null,_.W("div",{class:"yt-profile-info-view-model-wiz__header"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-title"},e==null?void 0:e.profileSectionTitle),_.W("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.W("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},e==null?void 0:(O=e.commentBadge)==
null?void 0:O.commentDesc),(e==null?0:(E=e.commentBadge)==null?0:E.blackHeartDesc)?_.W("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.W("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.W(_.Jm,{data:{thumbnails:[{url:e==null?void 0:(J=e.commentBadge)==null?void 0:J.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.W("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},e==null?void 0:(z=
e.commentBadge)==null?void 0:z.blackHeartDesc))),_.W("div",{class:"yt-profile-info-view-model-wiz__badge"},e==null?void 0:(M=e.badges)==null?void 0:M.map(function(Z){return _.W(Agi,{data:Z})}))):null}))},jpu=function(l){l=l.data;
return _.W("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.W(Klu,{data:l}),l.comments?_.W(m9z,{data:l}):null,l.sharedSubscriptionsTitle?l.subscriptionsAccessButtonCommand?_.W(ygu,{data:l}):_.W(pb4,{data:l}):null)},cgF=function(l){var e=l.data;
l=e?Hzu(e.profileIdentityInfo):void 0;e=e?Hzu(e.profileInfo):void 0;return _.W("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},l,e)},Flz=function(l,e){var O=_.lLk(e,{},l,!0);
return new Promise(function(E,J){O.listenOnce("n",function(){J(Error("gl`"+O.JSC$25936_getErrorDescription()))});
O.listenOnce("l",function(){var z=O.getResponseCode();if(z!==200)J(Error("hl`"+e+"`"+l.type+"`"+l.size+"`"+z));else try{E(JSON.parse(O.getResponseText()).encryptedBlobId)}catch(M){J(M)}});
O.run()})},fGH=function(l){return l.substring(l.indexOf(":")+1,l.indexOf(";"))},RUu=function(l){return new Promise(function(e,O){var E=new FileReader;
E.onloadend=function(){try{var J=new Uint8Array(E.result);J.length<8&&O(void 0);var z=J.subarray(0,8);J="";for(var M=0;M<z.length;M++)J+=("0"+z[M].toString(16)).substr(-2);J.startsWith("ffd8ff")?e("image/jpeg"):J.startsWith("47494638")?e("image/gif"):J.startsWith("89504e470d0a1a0a")?e("image/png"):J.startsWith("424d")?e("image/bmp"):e(void 0)}catch(Z){O(Z)}};
E.onerror=O;E.readAsArrayBuffer(l)})},TQ4=function(l){return new Promise(function(e,O){var E=new Image;
E.crossOrigin="anonymous";E.onload=function(){var J=document.createElement("canvas");J.width=E.naturalWidth;J.height=E.naturalHeight;var z=J.getContext("2d");if(!z)throw Error("il");z.drawImage(E,0,0);z=fGH(l);J.toBlob(function(M){M?e(M):O()},z)};
E.src=l})},G9u=function(l,e){var O;
if(((O=_.I(l,_.jT))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E;_.$u((E=e.hostElement)!=null?E:e,"yt-shorts-reset");_.aEx(_.V2().resolve(_.I3),l).then(function(z){sp3(z,e,l)})}else{var J;
_.ii((J=e.hostElement)!=null?J:e,[l]).then(function(z){z&&sp3(z.data,e,l)})}},sp3=function(l,e,O){if(l){var E=_.I(l.replacementEndpoint,_.jT);
if(E){l.sequenceContinuation&&(E.sequenceParams=l.sequenceContinuation);var J;_.$u((J=e.hostElement)!=null?J:e,"yt-navigate",{endpoint:l.replacementEndpoint})}else if((l==null?void 0:l.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(l==null?0:l.watchStatus)&&_.I(l.watchStatus,_.eGq)){var z;_.$u((z=e.hostElement)!=null?z:e,"yt-navigate",{endpoint:O})}}},BQu=function(l){var e=_.V2().resolve(_.LQ),O=SDH(e.getState())||"";
e=_.LjM(e.getState())||"";O=O==="ytd-browse"&&e==="home";return _.a("web_guide_entry_enable_cache_for_non_home_pages")?(l=(l==null?void 0:l.navigationEndpoint)&&_.I4(l.navigationEndpoint)==="home",{disableCache:O&&l}):{disableCache:O}},PiO=function(l){if(!l)return!1;
try{if(l.host&&l.host.tagName==="YT-FORMATTED-STRING"&&l.host.id==="contenteditable-textarea"||l.nodeType===Node.ELEMENT_NODE&&l.tagName==="YTD-COMMENT-INPUT")return!0}catch(e){return!1}return PiO(l.parentNode)},xr=function(l){return l?l.tagName==="A"&&l.href&&l.classList.contains("yt-simple-endpoint"):!1},U9H=function(l){return l?l.tagName==="IMG"&&l.classList.contains("emoji"):!1},YG4=function(l,e,O){if(!l)return null;
var E=xr(l);if(E&&O)return e=l.pathname.substring(l.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(E&&!O)return document.createTextNode("");if(U9H(l))return O=l.alt,l=l.dataset.emojiId,!l&&e&&(e=_.Kk(e,O))&&e.isCustomEmoji&&(l=e.emojiId),l?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+l+">"):document.createTextNode(O);E=l.cloneNode(!1);for(var J=0;J<l.childNodes.length;++J){var z=YG4(l.childNodes[J],e,O);z&&E.appendChild(z)}return E},lD=function(l){return l?xr(l)?l:lD(l.lastChild):
null},hUo=function(l){return l?xr(l)?l:hUo(l.firstChild):null},Ll4=function(l){if(!l)return null;
for(var e=l.previousSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.previousSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.previousSibling;else break;(e=lD(e))?l=e:l=(l=l.parentNode)?lD(l.previousElementSibling):null;return l},tj3=function(l){if(!l)return null;
for(var e=l.nextSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.nextSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.nextSibling;else break;return(e=hUo(e))?e:tj3(l.parentNode)},qG3=function(l){var e=_.H1(),O=e.JSC$9287_getStartNode();
if(!PiO(O.parentNode))return null;e=e.JSC$9287_getStartOffset();if(O.nodeType===Node.TEXT_NODE){var E=_.R7(O,xr);if(E){if(l&&e===0||!l&&e===O.length)return E}else{if(l&&e===O.length)return!O||O.nodeName==="BR"||O.nextElementSibling&&_.c1(O.nextElementSibling,"display")==="block"?null:hUo(O.nextElementSibling);if(!l&&e===0)return O?lD(O.previousElementSibling):null}}if(O.nodeType===Node.ELEMENT_NODE)if(l){if(0<=e&&e<O.childNodes.length)return hUo(O.childNodes[e])}else if(0<e&&e<=O.childNodes.length)return lD(O.childNodes[e-
1]);return null},vu4=function(l,e,O){if(!l)return null;
if(l.nodeType===Node.TEXT_NODE)if(O){var E=Ll4(l);if(E&&!/^\s+\S/.test(l.wholeText.substr(0,e)))return E}else if((E=tj3(l))&&!/\S\s+/.test(l.wholeText.substr(e,l.wholeText.length)))return E;return l.nodeType===Node.ELEMENT_NODE?O?Ll4(l.childNodes[e]):tj3(l.childNodes[e]):vu4(l.parentNode,e,O)},NQu=function(l){if(l.hasChildNodes())switch(l.tagName){case "DIV":case "A":case "SPAN":var e="";
for(l=l.firstChild;l;l=l.nextSibling)e+=NQu(l);return e;default:return""}else switch(l.nodeType){case 3:return l.textContent;default:return""}},rg3=function(l){l=l.data;
return _.W("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.W("div",null,_.W(_.zK,{text:l.title})),l.subtitle?_.W("div",{class:"ytd-menu-title-renderer__subtitle"},_.W(_.zK,{text:l.subtitle})):null)},D9u=function(l){switch(l){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"}},SGO=function(l){return l.map(function(e){return{settingsRadioOptionRenderer:{title:_.CO(e.name),
asideText:_.CO(e.approximateSize),id:D9u(e.format)}}})},x9C=function(l){if(l&&l.length!==0)return l.filter(Qp3()).map(function(e){return{settingsRadioOptionRenderer:{title:e.name,
asideText:e.approximateSize,id:D9u(e.formatType)}}})},e5=function(l){if(l)return l.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},lr4=function(l,e){l=new Set(l!=null?l:[]);
if(l.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(l.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(l.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(l.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(l.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(e)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},e70=function(l){var e=l.indexOf("(");
return e!==-1?l.substring(e+1,l.length-1):l},OOP=function(l){switch(l){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},JY0=function(l,e,O,E,J,z){var M=_.mm.clone(Ep4);
M.locale=_.hT("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;M.report={description:J||"<empty>"};J=_.hT("SBOX_SETTINGS",{});e=e.join(",");var Z=Date.now();l={choice_cc:E,choice_id_cc:O,choices_sc:e,gl:J.REQUEST_DOMAIN,hl:J.REQUEST_LANGUAGE,query:l,time:Z};z&&(l.choice_additional_comment_cc=z);_.zhC(M,l)},Xt3=function(l){var e=new Map;
e.set("authuser",_.hT("SESSION_INDEX","0"));return _.EP(l,e)},bOi=function(l){var e;
return _.V(function(O){switch(O.nextAddress){case 1:if(!l||!z73(l))return O.return(null);e=null;switch(_.hT("INNERTUBE_CLIENT_NAME")){case "WEB":return O.jumpTo(2);case "WEB_REMIX":e=l.getPlayer()}O.jumpTo(3);break;case 2:return _.C(O,l.getPlayerPromise(),4);case 4:e=O.yieldResult;O.jumpTo(3);break;case 3:return O.return(e)}})},z73=function(l){return["ytd-player",
"ytmusic-player"].includes(String(l.tagName||"").toLowerCase())},Mo4=function(l){l=Math.round(l);
return l%2?l-1:l},VoH=function(l){l=Math.round(l);
return l%2===0?l-1:l},ZOO=function(l){var e,O,E;
if(l=(e=l.createPlaylistDialogFormSchema)==null?void 0:(O=e.fieldSchemas)==null?void 0:(E=O.title)==null?void 0:E.validationSchema)for(e=[l.syncStep,l.asyncStep].filter(function(J){return J!==void 0}),e=_.b(e),O=e.next();!O.done;O=e.next()){O=O.value.rules;
if(!O)break;O=_.b(O);for(O=O.next();!O.done;O=O.next())return _.I(O.value,_.$4o)}},CHF=function(l){var e,O,E;
if(l=(e=l.createPlaylistDialogFormSchema)==null?void 0:(O=e.fieldSchemas)==null?void 0:(E=O.visibility)==null?void 0:E.validationSchema)for(e=[l.syncStep,l.asyncStep].filter(function(J){return J!==void 0}),e=_.b(e),O=e.next();!O.done;O=e.next()){O=O.value.rules;
if(!O)break;O=_.b(O);for(E=O.next();!E.done;E=O.next())if(E=_.I(E.value,u$f))return e=void 0,(e=E.translations)==null?void 0:e.visibilityNotValidErrorMessage}},op3=function(){var l,e;
return(e=(l=_.V2().resolve(_.MG(_.lp)))==null?void 0:l())!=null?e:!1},$uF=function(l){var e=21;
if(!l)return e;e+=l.headerTitle?27:0;e+=l.headerTitle&&l.hasHeaderActionHeader?4:0;return e+=l.headerTitle&&l.headerSubtitle?16:0},Wcf=function(l){var e=0;
if(!l)return e;e+=l.hasFooterPrimaryButton||l.hasFooterSecondaryButton?48:0;e+=l.footerTrailingLabel||l.footerLeadingLabel?30:0;return e+=l.hasFooterPrimaryButton||l.hasFooterSecondaryButton||!l.footerTrailingLabel&&!l.footerLeadingLabel?0:12},duz=function(l){var e=new _.k6,O=l;
return{subscribe:function(E){e.subscribe("changed",E)},
dispatch:function(E,J){var z=O;E==="Touch Start"?O=Object.assign({},z,{isAnimating:!1,initialY:J.event.touches[0].clientY}):E==="Touch Move"?(E=Math.min(J.fullContentWrapperHeight,J.contentHeightMap[J.contentWrapperId]+$uF(J.header)-Wcf(J.footer)),O=Object.assign({},z,{currentY:Math.max(J.contentScrollable?-1*(z.initialY-24):0,J.event.touches[0].clientY-z.initialY),maxHeightForContentWrapper:Math.min(E,Math.max(0,(z.isFullScreen?E:J.contentWrapperHeight)-z.currentY))})):O=E==="Snap To Full Screen"?
Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:J.maxHeight}):E==="Snap To Neutral Position"?Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):E==="Close Sheet"?Object.assign({},z,{isAnimating:!0,currentY:J.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):z;e.publish("changed",O)}}},gpu=function(l){return _.pd(function(e){l(e);
return!1})},iOO=function(){_.V2().resolve(_.pC).closeSheet()},wt0=function(l){var e,O,E,J,z,M,Z,u,d,g,w;
return{headerTitle:(e=l.headerTitle)==null?void 0:e.call(l),headerSubtitle:(O=l.headerSubtitle)==null?void 0:O.call(l),headerActionHeader:l.headerActionHeader,footerPrimaryButton:l.footerPrimaryButton,footerSecondaryButton:l.footerSecondaryButton,footerButtonType:(E=l.footerButtonType)==null?void 0:E.call(l),footerLeadingLabel:(J=l.footerLeadingLabel)==null?void 0:J.call(l),footerTrailingLabel:(z=l.footerTrailingLabel)==null?void 0:z.call(l),shouldShowIcons:(M=l.shouldShowIcons)==null?void 0:M.call(l),
skipContentClick:(Z=l.skipContentClick)==null?void 0:Z.call(l),additionalClassName:(u=l.additionalClassName)==null?void 0:u.call(l),onClosedCallback:l.onClosedCallback,focusOnClose:(d=l.focusOnClose)==null?void 0:d.call(l),isDisabled:(g=l.isDisabled)==null?void 0:g.call(l),disabledCommand:(w=l.disabledCommand)==null?void 0:w.call(l),headerFn:l.headerFn,contentFn:l.contentFn,footerFn:l.footerFn,hasHeaderFn:l.hasHeaderFn(),hasContentFn:l.hasContentFn(),hasFooterFn:l.hasFooterFn(),hasFooterPrimaryButton:l.hasFooterPrimaryButton(),
hasFooterSecondaryButton:l.hasFooterSecondaryButton(),hasHeaderActionHeader:l.hasHeaderActionHeader()}},AYz=function(l){switch(l){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""}},np4=function(l){switch(l){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""}},arz=function(l){switch(l){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""}},k44=function(l,e,O){e.forEach(function(E){_.gn(_.V2().resolve(_.Hu),E)});
_.Wb(l,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",O])},pt4=function(l,e,O,E){var J=_.I(O,_.vC).commandLifeCycleConfig;
J&&J.onStartCommand&&_.wQ(l,[J.onStartCommand],e);_.ed(e);var z=_.Dw.instance;z&&_.SN(z,O)?_.Qh(z,O,E).then(function(M){if(!M||(M==null?0:M.error))return M=_.I(O,_.vC).serializedTransactionFlowLoggingParams,_.OU(e),_.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M));_.OU(e);return{data:M}}).then(function(M){_.OU(e);
Ir0(M.data);var Z=M.data.command;Z&&_.wQ(l,[Z],e);Z=mui(O,M.data);if(!Z){var u=M.data;M=!1;if(u&&u.command&&_.I(u.command,_.nz)){var d;u=((d=_.I(u.command,_.nz))==null?void 0:d.commands)||[];for(d=0;d<u.length;d++)if(_.I(u[d],_.Y10)){M=!0;break}}M||_.R3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!Z&&J&&J.onSuccessCommand?_.wQ(l,[J.onSuccessCommand],e):Z&&J&&J.onFailureCommand&&_.wQ(l,[J.onFailureCommand],e)},function(){_.OU(e);
J&&J.onFailureCommand&&_.wQ(l,[J.onFailureCommand],e);yYO(O)}):_.UW(Error("zl"),"ERROR")},KcF=function(l,e,O){var E=[e];
O&&E.push(O);return _.ii(l,E).then(function(J){var z=_.I(e,_.vC).serializedTransactionFlowLoggingParams,M=J.data,Z=mui(e,M);Z?J=_.Tr(new Oi(Z,z)):Ir0(M);return J},function(){var J=_.I(e,_.vC).serializedTransactionFlowLoggingParams;
yYO(e);return _.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",J))})},mui=function(l,e){l=_.I(l,_.vC).serializedTransactionFlowLoggingParams;
var O=null;switch(e.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":O="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":O="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":O="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}O?_.x1(O,l):hpH(l);return O},yYO=function(l){_.x1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.I(l,_.vC).serializedTransactionFlowLoggingParams)},
Ir0=function(l){if(l.trackingParams){var e=_.P9(),O=_.B9();
e&&O&&_.DG(e,O,_.cf(l.trackingParams))}},jMF=function(l,e,O){var E=_.Dw.instance,J=_.OhT(_.hT("YPC_MB_URL")),z=(new _.l48).init(),M=_.eQ8(),Z=_.I(O,_.GWS).languageCode;
Z===void 0?_.UW(Error("Ei"),"ERROR"):_.co([z,J]).then(function(){var u={ctk:payments.business.integration.ClientTokenFactory.createClientToken(Z,M)};E&&_.SN(E,O)?_.Qh(E,O,u).then(function(d){return{data:d}}).then(function(d){_.$u(e,"yt-service-request-completed",d);
d.code!=="ERROR"&&(d=d.data.command)&&_.wQ(l,[d],e)}):_.UW(Error("zl"),"ERROR")})},Fc0=function(l,e,O,E){var J=_.Dw.instance;
J&&_.SN(J,O)?_.Qh(J,O,E).then(function(z){return{data:z}}).then(function(z){HOf(l,e,O,z)},function(){cYo(O)}):(J=_.V2().resolve(_.MG(_.Pc)))&&J.requestDataForServiceEndpoint(O,E).then(function(z){HOf(l,e,O,z)},function(){cYo(O)})},HOf=function(l,e,O,E){_.$u(e,"yt-service-request-completed",E);
if(E.code&&E.code=="ERROR")cYo(O);else{(E=E.data.commands)&&_.wQ(l,E,e);var J;(l=(J=_.I(O,_.LVk))==null?void 0:J.serializedYpcPauseFlowLoggingParams)&&l&&_.ff("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",l)}},cYo=function(l){var e;
(l=(e=_.I(l,_.LVk))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&l&&_.ff("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",l,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},TVF=function(l,e,O){var E=_.Dw.instance;
E&&_.SN(E,O)?_.Qh(E,O).then(function(J){return{data:J}}).then(function(J){fri(l,e,O,J)},function(){R73(O)}):(E=_.V2().resolve(_.MG(_.Pc)))&&E.requestDataForServiceEndpoint(O).then(function(J){fri(l,e,O,J)},function(){R73(O)})},fri=function(l,e,O,E){_.$u(e,"yt-service-request-completed",E);
E.code&&E.code=="ERROR"?R73(O):((E=E.data.commands)&&_.wQ(l,E,e),(l=_.I(O,_.tKF).serializedYpcResumeFlowLoggingParams)&&l&&_.ff("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",l))},R73=function(l){(l=_.I(l,_.tKF).serializedYpcResumeFlowLoggingParams)&&l&&_.ff("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",l,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},sM4=function(l){l=l===void 0?{}:l;
_.V2().resolve(_.bXR).showFeedbackDialog(l.customProductData,l.feedbackContent,l.onFeedbackSubmitted,l.bucket)},G4H=function(l){l=l===void 0?{}:l;
_.V2().resolve(_.bXR).showHelpDialog(l.helpContext,l.articleId,l.productData)},BV3=function(){G4H()},PHC=function(){sM4()},Yn4=function(l,e,O){var E,J,z,M,Z,u,d;
return _.V(function(g){switch(g.nextAddress){case 1:E=_.I(l,UuF);if((J=E)==null?0:J.productId){u={productId:E.productId,bucket:E.bucket,enableAnonymousFeedback:(Z=E.enableAnonymousFeedback)!=null?Z:!0,allowNonLoggedInFeedback:!0};d={feedbackChoice:O.feedbackChoice};if(!_.a("web_collect_offline_state")){g.jumpTo(8);break}_.b1(g,9);return _.C(g,xxC(d),11)}M={bucket:(z=E)==null?void 0:z.bucket};if(!_.a("web_collect_offline_state")){g.jumpTo(4);break}M.customProductData={};_.b1(g,5);return _.C(g,xxC(M.customProductData),
7);case 7:_.Q2(g,4);break;case 5:_.u1(g);case 4:sM4(M);g.jumpTo(0);break;case 11:_.Q2(g,8);break;case 9:_.u1(g);case 8:_.viT(d),_.qQ8("GFEEDBACK",d),E.productId==="5295751"&&(d.client_attestation=Number(_.hT("CATSTAT",0))),E.productId==="5295751"&&(d.client_time=Date.now()/1E3/3600),E.productId==="5295751"&&(d.original_playback_id=_.jlR||""),_.zhC(u,d),_.Cl(g)}})},h74=function(l){if(l=_.I(l,_.sOt)){var e={bucket:l.bucketIdentifier};
l.additionalDatas&&(e.customProductData={},l.additionalDatas.forEach(function(O){if(O=O.userFeedbackEndpointProductSpecificValueData)e.customProductData[O.key]=O.value}));
sM4(e)}},LcP=function(l){var e=_.SU.getInstance();
var O=_.ml("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var E=_.ml("DELETE",void 0,"Delete"),J=_.ml("CANCEL",void 0,"Cancel");O=bvC(O,void 0,E,J,{signal:"DELETE_ALL_DOWNLOADS"});_.P0(e,[{openPopupAction:O}],l)},qnu=function(){return _.V(function(l){return l.nextAddress==1?_.C(l,_.V2().resolve(_.l9),2):_.C(l,toh(),0)})},vpC=function(l){var e,O;
return _.V(function(E){return E.nextAddress==1?(O=(e=_.I(l,_.Nr))==null?void 0:e.targetId)?_.C(E,_.V2().resolve(_.l9),3):E.jumpTo(0):_.C(E,_.V2().resolve(_.xj).deleteVideo(O),0)})},rYf=function(l){var e,O;
return _.V(function(E){return E.nextAddress==1?(O=(e=_.I(l,_.Nr))==null?void 0:e.targetId)?_.C(E,_.V2().resolve(_.l9),3):E.jumpTo(0):_.C(E,NVO(_.V2().resolve(_.xj),O),0)})},SnC=function(l){var e,O;
return _.V(function(E){return(O=(e=_.I(l,_.Nr))==null?void 0:e.targetId)?_.C(E,DuF(O),0):E.jumpTo(0)})},xuo=function(){_.a("kevlar_woffle_refresh_dl_load_killswitch")||QM3()},ebf=function(){_.a("kevlar_woffle")&&_.sm.instance&&lC3()},E1C=function(l){var e;
if((e=_.I(l,_.AM))==null||!e.videoId)return!1;O0u(_.V2().resolve(_.xj),_.I(l,_.AM),l.clickTrackingParams);return!0},Xc4=function(l){var e;
if((e=_.I(l,_.nT))==null||!e.playlistId)return!1;J$3(_.V2().resolve(_.xj),_.I(l,_.nT),l.clickTrackingParams);return!0},b0z=function(l){var e=_.I(l,_.T00);
(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||zbf(_.V2().resolve(_.xj),_.I(l,_.T00))},VTi=function(l){l=_.I(l,_.VqF);
var e;(l==null?0:(e=l.actions)==null?0:e.length)&&MTz(l)},CG0=function(l){var e,O;
return _.V(function(E){e=_.I(l,Z0u);return(O=e)!=null&&O.localWatchHistoryCommandType?_.C(E,uv4(e),0):E.return()})},o1C=function(l){setTimeout(function(){requestAnimationFrame(l)},80)},$vO=function(l){return Object.entries(l).map(function(e){return e.join(":")}).join(";")},dvo=function(l){var e,O,E;
_.V(function(J){if(J.nextAddress==1)return _.C(J,WsH(),2);e=J.yieldResult;O=_.n4.instance;switch(e){case "granted":E=l.getLocationCommand;break;case "denied":E=l.openDeniedDialogAction;break;case "prompt":E=l.openCollectionDialogAction;break;default:E=l.openCollectionDialogAction}E&&O.resolveCommand(E);_.Cl(J)})},WsH=function(){var l,e;
return _.V(function(O){if(O.nextAddress==1)return l="prompt",navigator.permissions?_.C(O,navigator.permissions.query({name:"geolocation"}),3):O.jumpTo(2);O.nextAddress!=2&&(e=O.yieldResult,l=e.state);return O.return(l)})},i00=function(){_.V(function(l){return _.C(l,_.g1O(),0)})},wci=function(){var l,e,O;
return _.V(function(E){if(E.nextAddress==1)return l=_.V2().resolve(_.Um),l?_.C(E,_.Qh(l,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.hG(Error("Cl")),E.return(void 0));if(e=E.yieldResult){if(e.errorMetadata)return _.hG(Error("Dl`"+e.errorMetadata.status+"`"+e.error)),E.return(void 0);O=e.datasyncIds;_.bBq=O.length;return E.return(O)}_.hG(Error("El"));return E.return(void 0)})},A$o=function(){wci().then(function(l){l&&(mGh(l),ttu(l),gPz(l),eBP(l))})},n1h=function(l){_.UD.addLowPriorityJob(function(){var e,
O,E,J,z;
return _.V(function(M){switch(M.nextAddress){case 1:if(_.a("ytidb_clear_optimizations_killswitch")){M.jumpTo(2);break}e=_.Kv("clear");if(e.startsWith("V")&&e.endsWith("||")){var Z=[e];mGh(Z);ttu(Z);gPz(Z);eBP(Z);return M.return()}O=iu0();E=OZC();return _.C(M,qDH(),3);case 3:return J=M.yieldResult,_.C(M,y5P(),4);case 4:if(z=M.yieldResult,!(O||E||J||z))return M.return();case 2:l.isNetworkAvailable()?A$o():l.listenOnce("publicytnetworkstatus-online",A$o),_.Cl(M)}})})},Ei=function(l){l={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.xp(l)}}}};_.n4.instance&&_.n4.instance.resolveCommand(l)},aCC=function(l){if(l){var e=_.yN();
_.on(e,3854,void 0,{layer:0,parentLayer:4});switch(l){case 1:var O=238708;break;case 2:O=238715;break;case 3:O=238710;break;case 6:O=238709}O&&(l=_.mX(e,{veType:O}))&&_.dn(e,l)}},k_u=function(l){if(l){var e=_.yN();
_.on(e,3854,void 0,{layer:0,parentLayer:4});switch(l){case 1:var O=238714;break;case 2:O=238711;break;case 8:O=238709;break;case 7:O=238713;break;case 3:case 4:case 5:O=238712}O&&(l=_.mX(e,{veType:O}))&&_.dn(e,l)}},ICF=function(l){switch(l.latencyType){case 0:_.UG("consent_primitive_flow");
_.Yu("cpit",l.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Yu("cpist",l.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Yu("cprtif",l.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Yu("cprtli",l.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Yu("cprt",l.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Yu("cpdt",l.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Yu("cpjct",l.timestampEpochMillis,"consent_primitive_flow")}},
Rbz=function(l,e){var O,E,J,z,M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t,r;
return _.V(function(D){switch(D.nextAddress){case 1:_.b1(D,2);(E=(O=_.I(l,mvC))==null?void 0:O.serializedConsentRequest)||(E=(J=_.I(l,y$C))==null?void 0:J.serializedConsentRequest);E&&(z=pcf(_.VH(E)));if(z===void 0)return D.return();M=Ks0(z);M.latencyCallback=ICF;e&&j4h(M,function(){e.then(function(b2){b2.pauseVideo();(new H0u).increment()})});
return((Z=_.I(l,mvC))==null?void 0:Z.consentAction)==="CONSENT_ACTION_PREWARM"||((u=_.I(l,y$C))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"?_.C(D,c$P(M),5):_.C(D,FsF(M),6);case 6:d=D.yieldResult;g=_.cW(d,JV);if(g===1){if(((w=_.hZ(d,XT,1,JV))==null?void 0:_.PW(w,1))===1||((n=_.hZ(d,XT,1,JV))==null?void 0:_.PW(n,1))===2||((k=_.hZ(d,XT,1,JV))==null?void 0:_.PW(k,1))===3)_.I(l,y$C)?Ei(_.ml("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Ei(_.ml("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));aCC((y=_.hZ(d,XT,1,JV))==null?void 0:_.PW(y,1),_.e$(d,fCu,3,_.Oo()))}else g===2?(((c=zI(d))==null?void 0:_.PW(c,1))===5?_.I(l,y$C)?Ei(_.ml("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Ei(_.ml("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((f=zI(d))==null?void 0:_.PW(f,1))===1||((P=zI(d))==null?void 0:_.PW(P,1))===4?Ei(_.ml("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((h=zI(d))==null?void 0:_.PW(h,1))===7&&((N=z)==null?void 0:(t=_.Cu(N,bD,4))==null?void 0:_.PW(t,4))!==1&&Ei(_.ml("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),k_u((r=zI(d))==null?void 0:_.PW(r,1))):Ei(_.ml("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));D.jumpTo(5);break;case 5:_.Q2(D,0);break;case 2:_.u1(D),Ei(_.ml("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Cl(D)}})},s4P=function(){if(!T8F.has("Worker")){T8F.set("Worker",
!0);
var l={api:"BROWSER_API_WEB_WORKER"};l.available="Worker"in window?!0:!1;_.Bm("apiTest",l)}},G_f=function(l){return typeof l==="undefined"?"-1":String(Math.ceil(l/1048576))},Ymi=function(l,e){B8o(new PGz(_.I(e,Uv4).addToken,_.I(e,Uv4).commonToken)).then(function(){_.$u(l,"yt-invoke-instrument-manager-action-completed")},function(O){_.$u(l,"yt-invoke-instrument-manager-action-error",O)})},hbC=function(l){return _.N3(l)},LsF=function(l){var e=1;
l=l.split(":");for(var O=[];e>0&&l.length;)O.push(l.shift()),e--;l.length&&O.push(l.join(":"));return O},tTu=function(l,e){e=l.aspectRatio()<=e.aspectRatio()?e.width/l.width:e.height/l.height;
l.scale(e)},qmC=function(l,e){e=l.aspectRatio()>e.aspectRatio()?e.width/l.width:e.height/l.height;
return l.scale(e)},v1H=function(l){var e=new _.dE;
return _.L2(e,11,l)},N8h=function(l){var e={};
l=l.getAllResponseHeaders().split("\r\n");for(var O=0;O<l.length;O++)if(!_.MA(l[O])){var E=LsF(l[O]),J=E[0];E=E[1];if(typeof E==="string"){E=E.trim();var z=e[J]||[];e[J]=z;z.push(E)}}return _.mm.map(e,function(M){return M.join(", ")})},WU=function(l,e){return l.JSC$7833_xhr_?l.JSC$7833_xhr_.getResponseHeader(e):null},ME=function(l,e,O){Array.isArray(O)||(O=[String(O)]);
_.U4q(l.JSC$8068_queryData_,e,O);return l},lC3=function(){var l=_.sm.instance;
_.V(function(e){return l.deferredInstallPrompt?_.C(e,l.deferredInstallPrompt.prompt(),0):e.jumpTo(0)})},r$z=function(l,e,O){if(_.SM(l))_.DB(l,e,O);
else for(l=_.Ss6(l);;){var E=l.next();if(E.done)break;e.call(O,E.value,void 0,l)}},Dvu={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}"]},qVh,vTh,NP4,rA0,D7o,SVO,QBf,x7P,luO,DuF,NVO,toh,ecC,O4i,E0F,J3u,XfH,J$3,O0u,zc4,b4P,Mb3,QM3,zbf,VbF,MTz,Z4z,uv4,uO4,Csi,o0u,$T0,QJ,WXF,dTz,g0F,i43,wf4,
A3C,n0z,au3,krh,zUF,EuP,Iui,$I,WA,dW,gW,mTi,y3f,pfi,KXh,jXi,H4P,c3F,FX4,fu4,Rcu;Dvu={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 Sm4=function(l,e){var O=[];r$z(e,function(E){try{var J=_.oc.prototype.getWrapper.call(this,E,!0)}catch(z){if(z=="Storage: Invalid value was encountered")return;throw z;}J===void 0?O.push(E):_.DG1(J)&&O.push(E)},l);
return O},Q4f=function(l,e){Sm4(l,e).forEach(function(O){_.oc.prototype.remove.call(this,O)},l)},xv3=function(l){var e=_.r0;
e._minimumZ=Math.max(e._minimumZ,l)},leH=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],eei=function(l,e){_.Q9(l.pJ);l.pJ=e},O1u=function(l,e,O,E){l.setState(5);
var J=!!l.m9Y&&leH.includes(_.Es(l.m9Y)||"");try{var z=new _.Uk({program:e,globalName:O,dZ:{disable:!_.a("att_web_record_metrics")||!_.a("att_skip_metrics_for_cookieless_domains_ks")&&J,w7:"aGIf"}});z.qIW.then(function(){l.setState(6);E&&E(e)});
eei(l,z)}catch(M){l.setState(7),M instanceof Error&&_.hG(M)}},ETC=function(l,e,O,E,J,z){var M=M===void 0?"trayride":M;
O?(l.setState(2),_.Nd(O,function(){if(window[M])O1u(l,E,M,J);else{l.setState(3);var Z=_.v$u(O),u=document.getElementById(Z);u&&(_.Dvq(Z),u.parentNode.removeChild(u));_.hG(new _.Hk("BL:ULB",O))}},z)):e?(z=_.i$("SCRIPT"),e instanceof _.T1?_.P2(z,e):z.textContent=e,z.nonce=_.fU(document),document.head.appendChild(z),document.head.removeChild(z),window[M]?O1u(l,E,M,J):(l.setState(4),_.hG(new _.Hk("BL:ULBJ")))):_.hG(new _.Hk("BL:ULV"))},JAu=function(){this.state=1;
this.pJ=null;this.m9Y=void 0};
_.X=JAu.prototype;_.X.initialize=function(l,e,O,E){this.m9Y=E;if(l.program){var J;E=(J=l.interpreterUrl)!=null?J:null;if(l.interpreterSafeScript)J=_.iOW(l.interpreterSafeScript);else{var z;J=(z=l.interpreterScript)!=null?z:null}l.interpreterSafeUrl&&(E=_.YP(l.interpreterSafeUrl).toString());ETC(this,J,E,l.program,e,O)}else _.hG(Error("lf"))};
_.X.isInitialized=function(){return!!this.pJ};
_.X.getState=function(){return this.state};
_.X.isLoading=function(){return this.state===2};
_.X.invoke=function(l){l=l===void 0?{}:l;var e;this.pJ?e=_.K7i(this.pJ,{fZ:l}):e=null;return e};
_.X.dispose=function(){eei(this,null);this.setState(8)};
_.X.setState=function(l){this.state=l};
var Xso=function(l,e){return l.pJ.snapshot(e)},zez=function(l,e){var O=_.Cv("botguard_async_snapshot_timeout_ms",3E3);
e=e===void 0?{}:e;O=O===void 0?3E3:O;return l.pJ?new Promise(function(E,J){var z=!1,M=_.UD.addJob(function(){z=!0;J(Error("mf"))},1,O);
l.pJ?Xso(l,{fZ:e}).then(function(Z){_.UD.cancelJob(M);z||E(Z)}).catch(function(Z){_.UD.cancelJob(M);
z||J(Z)}):(_.UD.cancelJob(M),E(null))}):Promise.resolve(null)},b10=["att/log"],Myz;
Myz={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Vy3={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},Z1C=function(l,e){return _.mc(l,{mode:"readwrite",enableRetries:!0},function(O){return _.I3T(O,e,"settingEntity")})},u0P=function(l,e,O){return _.mc(l,{mode:"readonly",
enableRetries:!0},function(E){return _.$O6(E,e,O)})},CdC=function(l){if(!l.storage)return!1;
a:{if(l.storage){try{var e=l.storage.get("TLPQtimestamp")}catch(O){}l=Number(e);if(!isNaN(l))break a}l=void 0}return l?Date.now()-l<864E5:!1},oTC=function(l){if(l.storage){try{var e=l.storage.get("TLPQindex")}catch(O){}l=Number(e);
if(!isNaN(l))return l}},$7o=function(l,e){l.queueProxy&&e.forEach(function(O){if(O.videoId&&O.trackingParams&&l.queueProxy instanceof _.GZ){var E=_.P9();
l.queueProxy.attributionData.set(O.videoId,{enqueueingVe:_.cf(O.trackingParams).getAsJson(),enqueueingCsn:E?E:void 0,clientEnqueueingTimeMs:Math.floor((0,_.VZ)()).toString()})}})},W0O=function(l){var e=_.Ni1(l);
e!=l.currentSnapState_&&(l.currentSnapState_=e,l.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Vg=function(l){this.JSC$11089_networkManager_=l;
this.partCallbacks_=[]};
Vg.prototype.getCacheKeyForEndpoint=function(l){return _.Xu8(l,!1)};
Vg.prototype.onPartsCallback_=function(l){this.partCallbacks_.forEach(function(e){l&&e(l)})};
var Zz=function(l,e,O){Vg.call(this,l);this.player_=e;this.autoplayData_=O};
_.m(Zz,Vg);Zz.prototype.getCacheKeyForEndpoint=function(l){return _.Xu8(l,!!this.autoplayData_)};
Zz.prototype.getTempData=function(l,e){e=e.timeBeforeNextVideo;l={itct:l.clickTrackingParams,lact:_.uN(),pbis:e,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(l.autonav=1);return l};
Zz.prototype.getXhrParams=function(l){return Object.assign({pbj:"prefetch"},l)};
Zz.prototype.getParams=function(l){l={frags:l.fragmentsRequested.join(",")};_.a("kevlar_droppable_prefetchable_requests")&&(l.prefetch=1);return l};
var d7z=function(l){l.playerEvents_.forEach(function(e){l.player.removeEventListener(e.eventName,e.callback)});
l.playerEvents_.length=0},uD=function(l,e,O){this.player=l;
this.JSC$11099_taskManager=e;this.prefetchDelay=O;this.completionResolver_=null;this.playerEvents_=[]};
uD.prototype.start=function(){var l=this;this.completionResolver_=_.x7();_.FV(this.completionResolver_.promise,function(){d7z(l);l.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var gTi=function(l,e,O){l.player.addEventListener(e,O);l.playerEvents_.push({eventName:e,callback:O})},i1u={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},wsu={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},AAH=function(l,e,O){uD.call(this,l,e,O);this.cueId_="playbackTrigger-"+Math.random()};
_.m(AAH,uD);
AAH.prototype.prepareTrigger=function(l){var e=this,O=this.player.getDuration(),E=this.player.getVideoData(),J=E.isLive&&E.hasProgressBarBoundaries;if(J&&E.progressBarEndPositionUtcTimeMillis){var z=E.progressBarEndPositionUtcTimeMillis/1E3;isNaN(z)||(O=z)}var M=0;this.prefetchDelay>=0?J?E.progressBarStartPositionUtcTimeMillis&&(E=E.progressBarStartPositionUtcTimeMillis/1E3,isNaN(E)||(M=E+this.prefetchDelay)):M=this.prefetchDelay:M=O+this.prefetchDelay;J?this.player.addUtcCueRange(this.cueId_,M,O):
this.player.addCueRange(this.cueId_,M,O);_.FV(l.promise,function(){e.player.removeCueRange(e.cueId_)});
gTi(this,"onCueRangeEnter",function(Z){Z==e.cueId_&&l.resolve(O-M)})};
var nTu=function(l,e){l.fragmentConfiguration_[e].requiredKeys.every(function(O){return!!l.prefetchedData_[O]})&&(l.validatedFragments_.push(e),e=l.missingFragments_.indexOf(e),e!==-1&&l.missingFragments_.splice(e,1))},aeF=function(l){l.prefetchedFragments_.forEach(function(e){nTu(l,e)})},kVF=function(l,e,O){this.pageFragments_=l;
this.prefetchedFragments_=e;this.fragmentConfiguration_=wsu;this.prefetchedData_=O;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;aeF(this)},Ieu=function(){},m7i=function(l){this.JSC$11113_playlistManager_=l};
_.m(m7i,Ieu);m7i.prototype.getPrefetchEndpoint=function(){return this.JSC$11113_playlistManager_.getAutoplayEndpoint()};
var yAO=function(l){this.autonavEndpoints_=l};
_.m(yAO,Ieu);yAO.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var psf=function(l,e,O,E,J){this.autonavEndpoints=l;this.foregroundTrigger=e;this.backgroundTrigger=O;this.pageType=E;this.isInPlaylist=J},K0f=function(l,e){if(l.webPrefetchData&&l.webPrefetchData.navigationEndpoints&&l.webPrefetchData.navigationEndpoints.length){l=l.webPrefetchData.navigationEndpoints;
var O=_.I(l[0],_.ej);if(O.watchEndpointSupportedPrefetchConfig&&O.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var E=O.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;O=E.playbackRelativeSecondsPrefetchCondition;O=typeof O==="number"&&Math.abs(O)<e.videoDuration?O:void 0;E=E.countdownUiRelativeSecondsPrefetchCondition;E=typeof E!=="number"||_.a("prefetch_job_config_cleanup_ks")&&e.inPlaylist?void 0:E;if(typeof E==="number")return new psf(l,e.makeUpNextTrigger(E),e.makePlaybackTrigger(E),
"watch",e.inPlaylist);if(typeof O==="number")return new psf(l,e.makePlaybackTrigger(O),null,"watch",e.inPlaylist)}}},jBu=function(l){return l.prefetchJobConfig_.backgroundTrigger?_.qz(_.L2t)()==0?l.prefetchJobConfig_.backgroundTrigger:l.prefetchJobConfig_.foregroundTrigger:l.prefetchJobConfig_.foregroundTrigger},H1i=function(l){_.px(document,"visibilitychange",l.onVisibilityChange_,!1,l)},Cy=function(l){Vg.call(this,l)};
_.m(Cy,Vg);Cy.prototype.getCacheKeyForEndpoint=function(l){return Vg.prototype.getCacheKeyForEndpoint.call(this,l)};
Cy.prototype.getTempData=function(){return{}};
Cy.prototype.getXhrParams=function(l){return l};
Cy.prototype.getParams=function(){return{}};
var cA3=function(l,e,O){var E=l.prefetchDelay*1E3;if(Math.abs(E)>e)O.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var J=E,z=e-E;E<0&&(J=e+E,z=Math.abs(E));var M=l.JSC$11099_taskManager.addJob(function(){O.resolve(z/1E3)},10,J);
O.promise.thenCatch(function(){l.JSC$11099_taskManager.cancelJob(M)})}},F04=function(l,e,O){uD.call(this,l,e,O)};
_.m(F04,uD);F04.prototype.prepareTrigger=function(l){var e=this;gTi(this,"onAutonavCoundownStarted",function(O){cA3(e,O,l)})};
var fe0=function(l){l.pendingPrefetchJob_&&(l.pendingPrefetchJob_.cancel(),l.pendingPrefetchJob_=null)},ReF=function(l,e,O){if(!l.triggeredTargets.has(e)){var E=_.YMq(l,e);
E.action=O;_.PER(l,e,E)}},TP3=function(l){_.pNR();
_.Jfg("cpt")&&_.hG(Error("lh"));_.Op.requestAnimationFrame(function(){_.Op.setTimeout(function(){_.Yu("cpt");var e=_.tg("vpl"),O=_.tg("cpt");e&&O&&_.Yu("ol",Math.max(e,O))})});
try{_.Yu("fr_s"),l()}catch(e){_.UW(e)}_.Op.requestAnimationFrame(function(){_.Yu("bcp")})},sBz=function(l,e){l.serviceEndpointHandlers.push(e)},GVo=function(l,e){e=l.pendingPages_.indexOf(e);
e>-1&&l.pendingPages_.splice(e,1)},BPH=function(l,e){var O=_.r0q.indexOf(e);
O>-1&&_.r0q.splice(O,1);l.targetPage_==e?(l.abort(),_.SZx(l)):GVo(l,e)},Pdh=function(l,e,O,E){e={challenge:e};
O&&(e.webResponse=O);return _.PJ(l.innertubeTransportService,e,_.Em(b10),E)},U7H=function(l,e,O){if(!e.challenge)throw Error("ni");
if(e.botguardData&&e.botguardData.program){var E=new JAu;E.initialize(e.botguardData,function(){zez(E,{atr_challenge:e.challenge}).then(function(J){if(!J)throw Error("oi");return Pdh(l,e.challenge,J,O)}).catch(function(J){_.hG(J);
return Pdh(l,e.challenge,void 0,O)})},void 0)}else Pdh(l,e.challenge,void 0,O)},YVH=function(l,e,O){var E={};
e.ids&&(E.ids=[].concat(_.kA(e.ids)));e.engagementType&&(E.engagementType=e.engagementType);return _.PJ(l.innertubeTransportService,E,_.Em(_.H6R),O).then(function(J){if(!J)throw new _.Hk("GetAttestationChallenge returned falsy");U7H(l,J,O)}).thenCatch(function(J){_.UW(J)})},hei=function(l,e,O){return new _.kE(function(E,J){var z;
return _.V(function(M){if(M.nextAddress==1){var Z=e.engagementType,u=e.ids,d={};u=_.b(u!=null?u:[]);for(var g=u.next();!g.done;g=u.next())g=g.value,g.encryptedVideoId?d.encryptedVideoId=g.encryptedVideoId:g.externalChannelId?d.externalChannelId=g.externalChannelId:g.commentId?d.commentId=g.commentId:g.externalOwnerId?d.externalOwnerId=g.externalOwnerId:g.artistId?d.artistId=g.artistId:g.playlistId?d.playlistId=g.playlistId:g.externalPostId?d.externalPostId=g.externalPostId:g.shareId&&(d.shareId=g.shareId);
return _.C(M,zd3(Z,d),2)}z=M.yieldResult;if(!z.challenge)return _.hG(Error("pi")),YVH(l,e,O).then(E,J),M.return();Z=z;d={challenge:Z.challenge};d.webResponse=Z.webResponse;d.engagementType=e.engagementType;d.ids=e.ids;_.PJ(l.innertubeTransportService,d,_.Em(b10),O).then(E,J);_.Cl(M)})})},VjP=function(l,e){var O,E,J,z;
_.V(function(M){if(M.nextAddress==1){O=_.I(e,_.aZq);if(!(O&&O.listId&&l.response&&l.response.playingVideoId)||l.listId!==O.listId)return M.return();l.index===void 0&&(l.index=0);return _.C(M,_.DOi(l.JSC$10844_playlistNetworkManager,O.listId,l.index,l.response.playingVideoId),2)}E=M.yieldResult;if(!E)return M.return();J=E.playlistId;z=E.playlistPanelRenderer;l.setPlaylistData(J,z,E.autoplayRenderer);_.Cl(M)})},L0u=function(l,e,O){var E=l.getParams(O),J=_.KXx(e,E),z=l.getTempData(e,O);
z.endpoint=JSON.stringify(e);_.a("enable_unknown_lact_fix_on_html5")&&(_.V2().resolve(_.BF),z.lact=_.uN());var M={headers:{"X-YouTube-STS":_.hT("STS"),"x-youtube-csoc":1}};_.bi(J,z);return new _.kE(function(Z,u){var d=l.getXhrParams(E),g;_.a("kevlar_cache_on_ttl_player")&&(g=_.yd.instance);g&&_.iY6(g,e)?_.ydS(g,e,z,window.location.href).then(function(w){w?Z(w):u()},u):_.tGR(l.JSC$11089_networkManager_,e,d,l.onPartsCallback_.bind(l),M).then(function(w){w?Z(w):u()},u)})},ty4=function(l,e){l.triggerPromise_=
e.start();
l.triggerPromise_.then(function(O){var E=l.prefetchEndpointProvider_.getPrefetchEndpoint();if(E){var J=i1u[l.prefetchJobConfig_.pageType].prefetchedFragments;l.prefetchRequestPromise_=L0u(l.JSC$11125_networkPrefetchRequest_,E,{fragmentsRequested:J,timeBeforeNextVideo:O});l.prefetchResponseCacheKey_=l.JSC$11125_networkPrefetchRequest_.getCacheKeyForEndpoint(E);H1i(l);l.prefetchRequestPromise_.then(function(z){l.storePrefetchedDataCallback_(l.prefetchResponseCacheKey_,z);if(_.a("web_prefetch_preload_video")&&
J.length===1&&J[0]==="pl"&&z&&!z.playerAds&&!z.adPlacements){var M=_.I(E,_.jT),Z=M!=null,u={raw_player_response:z,watch_endpoint:M};(z=_.V2().resolve(Z?_.cxF:_.CT))&&E&&z.then(function(d){Z&&_.a("web_queue_preload_video")?(u.prefer_gapless=!0,d.queueNextVideo(u)):d.preloadVideoByPlayerVars(u)})}})}})},oR=function(l,e,O,E){this.prefetchEndpointProvider_=l;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=e;this.prefetchJobConfig_=O;this.JSC$11125_networkPrefetchRequest_=E;this.prefetchResponseCacheKey_=null};
oR.prototype.enqueue=function(){this.triggerPromise_||(ty4(this,jBu(this)),_.f4(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
oR.prototype.resolve=function(){this.cancel()};
oR.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.");H1i(this)};
oR.prototype.onVisibilityChange_=function(){var l=this;_.qz(_.L2t)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){l.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||ty4(this,jBu(this))};
qVh=function(l,e,O,E,J){e&&(e==null?0:e.videoId)&&O&&O.entries&&_.a("kevlar_enable_shorts_prefetch_in_sequence")&&(fe0(l),e=O.entries.map(function(z){var M;return(M=_.I(z.command,_.jT))==null?void 0:M.videoId}).indexOf(e.videoId),O=O.entries[e+1],O!=null&&O.command&&!_.I(O==null?void 0:O.command,_.PC)&&(E=new psf([O.command],new AAH(E,_.UD,1),null,"shorts",!1),l.pendingPrefetchJob_=new oR(new yAO(E.autonavEndpoints),function(){return!1},E,new Cy(J)),l.pendingPrefetchJob_.enqueue()))};
vTh=function(l,e,O,E,J,z){var M=_.E5.getInstance();if(!_.a("block_all_player_prefetch_requests")){fe0(l);var Z=!!O.getPlaylistId(),u=O.getVideoData().isLive&&O.getVideoData().hasProgressBarBoundaries;if((M.getState()==2||Z||u)&&(!O.getVideoData().isLive||u)){M={inPlaylist:Z,videoDuration:O.getDuration(),makeUpNextTrigger:function(g){return new F04(O,_.UD,g)},
makePlaybackTrigger:function(g){return new AAH(O,_.UD,g)}};
var d=K0f(e,M);d&&(l.pendingPrefetchJob_=new oR(d.isInPlaylist?new m7i(J):new yAO(d.autonavEndpoints),function(g,w){w=new kVF(i1u[d.pageType].pageFragments,i1u[d.pageType].prefetchedFragments,w);return _.HYq(w)?(l.prefetchCache_.set(g,w),!0):!1},d,new Zz(E,O,z,J)),l.pendingPrefetchJob_.enqueue())}}};
NP4=function(){var l=_.qg();l.signals.parkOrScheduleJob(function(){var e=l.storage;if(e.storage)if(CdC(e)){var O=e.getPlaylistId();e=oTC(e);O=!!O&&e!==void 0}else e.clear(),O=!1;else O=!1;if(O){O=l.pageManager.isOnWatch();a:{var E=l.storage;if(E.storage&&CdC(E)&&(e=E.getPlaylistId(),E=oTC(E),e&&E!==void 0)){O={recoverPlaylistCommand:{listId:e,index:E,openMiniplayer:!O,openListPanel:O,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}O=void 0}O&&_.P0(l.JSC$10844_actionRouter,[O],null)}},0,"ma")};
rA0=function(l,e,O,E,J,z){var M=_.sL(7111);_.$w(l.JSC$16150_screenManager,M,z?_.cf(z):void 0);_.dn(l.JSC$16150_screenManager,M,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:E,offlineId:e,offlineabilityFormatType:O,isDefaultFormatType:J==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:J}})};
D7o=function(l,e,O,E,J){var z,M,Z,u,d;return _.V(function(g){if(g.nextAddress==1)return _.C(g,l.JSC$16150_playerApiPromise,2);z=g.yieldResult;rA0(l,e,O,"OFFLINE_OBJECT_TYPE_PLAYLIST",E,J);if(Z=_.nlS[l.entityTypeMap.listEntityType])d={},M=(d[Z]={maximumDownloadQuality:(u=O)!=null?u:void 0},d);return _.C(g,z.queueOfflineAction(e,l.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)})};
SVO=function(l,e){var O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return _.C(M,l.JSC$16150_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){O=M.yieldResult;if(!O)return _.hG(new _.Hk("PES is undefined")),M.return();E=_.iH(e,"downloadStatusEntity");return _.C(M,u0P(O,E,"downloadStatusEntity"),3)}J=M.yieldResult;return M.return((z=J)==null?void 0:z.downloadState)})};
QBf=function(l,e,O,E,J){var z,M,Z,u,d,g;return _.V(function(w){switch(w.nextAddress){case 1:return _.C(w,l.JSC$16150_playerApiPromise,2);case 2:z=w.yieldResult;rA0(l,e,O,"OFFLINE_OBJECT_TYPE_VIDEO",E,J);if(Z=_.nlS[l.entityTypeMap.singleEntityType])d={},M=(d[Z]={maximumDownloadQuality:(u=O)!=null?u:void 0},d);return _.C(w,SVO(l,e),3);case 3:g=w.yieldResult;if(g!=="DOWNLOAD_STATE_USER_DELETED"){w.jumpTo(4);break}return _.C(w,l.deleteVideo(e),4);case 4:return _.C(w,z.queueOfflineAction(e,l.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)}})};
x7P=function(l,e,O,E,J){return _.V(function(z){return z.nextAddress==1?_.C(z,l.deleteVideo(e,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.C(z,QBf(l,e,O,E,J),0)})};
luO=function(l,e,O){var E,J;return _.V(function(z){if(z.nextAddress==1)return _.C(z,l.JSC$16150_playerApiPromise,2);E=z.yieldResult;J=_.iH(e,"mainVideoDownloadStateEntity");return _.C(z,E.updateDownloadState(J,O),0)})};
DuF=function(l){var e=_.V2().resolve(_.xj);return _.V(function(O){if(O.nextAddress==1)return e.previousDownloadStateForVideo[l]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&e.previousDownloadStateForVideo[l]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?O.jumpTo(2):_.C(O,e.resumeVideoDownload(l),2);if(O.nextAddress!=4)return _.C(O,luO(e,l,e.previousDownloadStateForVideo[l]),4);delete e.previousDownloadStateForVideo[l];_.Cl(O)})};
NVO=function(l,e){var O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$16150_playerApiPromise,2);O=E.yieldResult;return _.C(E,O.queueOfflineAction(e,l.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
toh=function(){var l=_.V2().resolve(_.xj),e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$16150_playerApiPromise,2);if(E.nextAddress!=3)return e=E.yieldResult,O={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.C(E,e.queueOfflineAction("!*$_ALL_ENTITIES_!*$",l.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",O),3);var J=l.JSC$16150_commandHandler,z=J.resolveCommand,M=_.ml("DELETING_ALL",void 0,"Downloads are being deleted");
z.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Zr(M)}},popupType:"TOAST"}});_.Cl(E)})};
ecC=function(l){var e,O;return _.V(function(E){if(E.nextAddress==1)return _.C(E,l.JSC$16150_prefStorage,2);e=E.yieldResult;return E.return((O=e)==null?void 0:O.get("sdois"))})};
O4i=function(l){var e,O,E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return _.C(Z,l.JSC$16150_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3){e=Z.yieldResult;if(!e)return _.hG(new _.Hk("PES is undefined")),Z.return();O=_.iH("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.C(Z,u0P(e,O,"settingEntity"),3)}E=Z.yieldResult;return Z.return((M=(J=E)==null?void 0:(z=J.settingOptionValue)==null?void 0:z.boolValue)!=null?M:!1)})};
E0F=function(l,e){var O,E,J,z;return _.V(function(M){switch(M.nextAddress){case 1:return((O=e)==null?void 0:O.formatType)===void 0?M.return():_.C(M,l.JSC$16150_prefStorage,2);case 2:E=M.yieldResult;if(E===void 0)return M.return();if(((J=e)==null?void 0:J.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.C(M,E.set("lmqf",e.formatType),8);if(((z=e)==null?void 0:z.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){M.jumpTo(0);break}return _.C(M,E.set("lmqf",e.formatType),
6);case 6:return _.C(M,E.set("lmqflst",Math.floor((0,_.VZ)())),0);case 8:return _.C(M,E.remove("lmqflst"),0)}})};
J3u=function(l){var e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.C(E,l.JSC$16150_prefStorage,2);case 2:e=E.yieldResult;if(!e){E.jumpTo(3);break}return _.C(E,e.get("lmqflst"),4);case 4:if(O=E.yieldResult,O!==void 0)return E.return(O);case 3:return E.return(0)}})};
XfH=function(l){var e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.C(E,l.JSC$16150_prefStorage,2);case 2:e=E.yieldResult;if(e===void 0){E.jumpTo(3);break}return _.C(E,e.get("lmqf"),4);case 4:if(O=E.yieldResult,O!==void 0)return E.return(O);case 3:return E.return("SD")}})};
J$3=function(l,e,O){var E,J,z,M,Z,u,d,g;_.V(function(w){switch(w.nextAddress){case 1:return _.C(w,E0F(l,(E=e)==null?void 0:E.actionParams),2);case 2:J=e.playlistId;if(!J)return w.return();if(e.action==="ACTION_ADD")return((M=e.actionParams)==null?0:M.formatType)?_.C(w,D7o(l,J,e.actionParams.formatType,(g=e.actionParams)==null?void 0:g.settingsAction,O),0):_.C(w,l.offlineWebClientEligibility,14);if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var n=l.JSC$16150_commandHandler,k=n.resolveCommand,y=_.hT("INNERTUBE_CLIENT_NAME");
var c=y==="WEB_REMIX"?_.ml("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.ml("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var f=y==="WEB_REMIX"?[_.ml("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];y=y==="WEB_REMIX"?_.ml("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.ml("DELETE",void 0,"Delete");var P=_.ml("CANCEL",void 0,"Cancel");c=bvC(c,f,y,P,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:J});k.call(n,{openPopupAction:c});
return w.return()}if(e.action==="ACTION_REMOVE")return _.C(w,NVO(l,J),0);if(e.action!=="ACTION_SYNC"){w.jumpTo(0);break}return _.C(w,l.JSC$16150_playerApiPromise,9);case 9:return z=w.yieldResult,_.C(w,z.queueOfflineAction(J,l.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return Z=w.yieldResult,_.C(w,XfH(l),15);case 15:return u=w.yieldResult,_.C(w,J3u(l),16);case 16:d=w.yieldResult,e.onAddCommand&&l.JSC$16150_commandHandler.resolveCommand(e.onAddCommand,{form:{preferredFormatType:u,
offlineWebClientEligibility:Z,lastOfflineQualitySettingsSavedMs:d.toString()}}),w.jumpTo(0)}})};
O0u=function(l,e,O){var E,J,z,M,Z,u,d,g,w,n,k,y,c,f;_.V(function(P){switch(P.nextAddress){case 1:return _.C(P,E0F(l,(E=e)==null?void 0:E.actionParams),2);case 2:J=e.videoId;if(!J)return P.return();if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var h=l.JSC$16150_commandHandler,N=h.resolveCommand,t=_.hT("INNERTUBE_CLIENT_NAME");var r=t==="WEB_REMIX"?_.ml("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.ml("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var D=t==="WEB_REMIX"?[_.ml("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];t=t==="WEB_REMIX"?_.ml("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.ml("DELETE",void 0,"Delete");var b2=_.ml("CANCEL",void 0,"Cancel");r=bvC(r,D,t,b2,{signal:"DELETE_DOWNLOAD",targetId:J});N.call(h,{openPopupAction:r});return P.return()}if(e.action==="ACTION_ADD")return((n=e.actionParams)==null?0:n.formatType)?_.C(P,QBf(l,J,e.actionParams.formatType,(f=e.actionParams)==null?void 0:f.settingsAction,O),0):_.C(P,l.offlineWebClientEligibility,
23);if(e.action==="ACTION_RETRY")return _.C(P,XfH(l),19);if(e.action==="ACTION_PAUSE")return _.C(P,l.pauseVideoDownload(J),0);if(e.action==="ACTION_RESUME")return _.C(P,l.resumeVideoDownload(J),0);if(e.action!=="ACTION_REMOVE"){P.jumpTo(0);break}return _.C(P,SVO(l,J),13);case 13:return z=P.yieldResult,l.previousDownloadStateForVideo[J]=(M=z)!=null?M:"DOWNLOAD_STATE_UNKNOWN",_.C(P,luO(l,J,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(l.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
l.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){P.jumpTo(15);break}return _.C(P,l.pauseVideoDownload(J),15);case 15:h=_.ml("DELETED_VIDEO",void 0,"Video deleted from downloads.");N=_.ml("UNDO_ACTION",void 0,"Undo");r=_.ml("CLOSE",void 0,"Close");Z={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Zr(h),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Zr(N),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:h+" "+N}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:r}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};l.JSC$16150_commandHandler.resolveCommand(Z);
P.jumpTo(0);break;case 19:u=P.yieldResult;u==="UNKNOWN_FORMAT_TYPE"&&(u="SD");d="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((g=e.actionParams)==null?0:g.formatType)u=e.actionParams.formatType,d=(w=e.actionParams)==null?void 0:w.settingsAction;return _.C(P,x7P(l,J,u,d,O),20);case 20:return P.return();case 23:return k=P.yieldResult,_.C(P,XfH(l),24);case 24:return y=P.yieldResult,_.C(P,J3u(l),25);case 25:c=P.yieldResult,e.onAddCommand&&l.JSC$16150_commandHandler.resolveCommand(e.onAddCommand,
{form:{preferredFormatType:y,offlineWebClientEligibility:k,lastOfflineQualitySettingsSavedMs:c.toString()}}),P.jumpTo(0)}})};
zc4=function(l,e){var O,E,J,z,M,Z,u;return _.V(function(d){if(d.nextAddress==1)return _.C(d,l.JSC$16150_persistentStorePromiseAccessor(),2);O=d.yieldResult;if(!O)return _.hG(new _.Hk("PES is undefined")),d.return();if((E=e)==null||!E.settingItemId)return d.return();J=e;z=J.settingItemId;M=J.boolValue;Z=_.iH(z,"settingEntity");u={key:Z,settingOptionValue:{boolValue:M}};return _.C(d,Z1C(O,u),0)})};
b4P=function(l,e){var O,E,J,z,M,Z,u;return _.V(function(d){switch(d.nextAddress){case 1:return _.C(d,l.JSC$16150_prefStorage,2);case 2:return O=d.yieldResult,E=_.Kz(),_.C(d,l.JSC$16150_persistentStorePromiseAccessor(),3);case 3:return J=d.yieldResult,O?J?_.C(d,O.get("sdois"),4):(_.hG(new _.Hk("PES is undefined")),d.return()):(_.hG(new _.Hk("prefStorage is undefined")),d.return());case 4:z=d.yieldResult;Z=(M=e)==null?void 0:M.boolValue;Z===void 0||_.a("kevlar_set_sd_enabled_flag_killswitch")||_.jj(0,
197,!0);z===void 0&&Z===void 0&&(Z=!1);if(Z===void 0){d.jumpTo(0);break}return _.C(d,O.set("sdois",Z),6);case 6:return _.a("kevlar_set_sd_enabled_flag_killswitch")||(_.jj(0,196,Z),E.save()),u={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:Z},_.C(d,zc4(l,u),0)}})};
Mb3=function(l,e,O){var E,J,z,M,Z;return _.V(function(u){switch(u.nextAddress){case 1:return _.C(u,ecC(l),2);case 2:return E=u.yieldResult,_.C(u,b4P(l,O),3);case 3:return _.C(u,ecC(l),4);case 4:return J=u.yieldResult,z=J!==E,_.C(u,O4i(l),5);case 5:M=u.yieldResult&&!_.a("kevlar_modern_downloads_page");if((Z=!J&&!M)||z)return _.C(u,e.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);u.jumpTo(0)}})};
QM3=function(){var l=_.V2().resolve(_.xj),e;_.V(function(O){switch(O.nextAddress){case 1:return _.C(O,l.JSC$16150_playerApiPromise,2);case 2:e=O.yieldResult;if(!_.a("kevlar_force_refresh_smart_downloads")){O.jumpTo(3);break}return _.C(O,e.refreshAllStaleEntities(0),4);case 4:return O.return();case 3:return _.C(O,e.refreshAllStaleEntities(),5);case 5:return _.C(O,Mb3(l,e),0)}})};
zbf=function(l,e){var O,E;_.V(function(J){switch(J.nextAddress){case 1:return _.C(J,l.JSC$16150_playerApiPromise,2);case 2:O=J.yieldResult;switch((E=e)==null?void 0:E.settingItemId){case "SMART_DOWNLOADS_ENABLED":return J.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return J.jumpTo(4)}J.jumpTo(0);break;case 3:return _.C(J,Mb3(l,O,e),6);case 6:J.jumpTo(0);break;case 4:return _.C(J,zc4(l,e),7);case 7:J.jumpTo(0)}})};
VbF=function(l,e){var O,E,J;return _.V(function(z){if(z.nextAddress==1)return _.C(z,l.JSC$16150_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){O=z.yieldResult;if(!O)return _.hG(new _.Hk("PES is undefined")),z.return(!1);if(!e)return z.return(!1);E=_.iH(e,"mainVideoEntity");return _.C(z,u0P(O,E,"mainVideoEntity"),3)}J=z.yieldResult;return z.return(J!==void 0)})};
MTz=function(l){var e=_.V2().resolve(_.xj),O,E,J,z,M,Z,u,d,g,w,n;_.V(function(k){switch(k.nextAddress){case 1:return _.C(k,e.JSC$16150_playerApiPromise,2);case 2:O=k.yieldResult;J=(E=l)==null?void 0:E.actions;if(!J)return k.return();z=_.b(J);M=z.next();case 3:if(M.done){k.jumpTo(0);break}Z=M.value;d=u=void 0;if(!(((u=Z)==null?0:u.entityKey)&&((d=Z)==null?0:d.actionType))){k.jumpTo(4);break}g=_.Wt(Z.entityKey);w=g.entityId;n=g.entityType;return _.C(k,O.queueOfflineAction(w,n,Z.actionType),4);case 4:M=
z.next(),k.jumpTo(3)}})};
Z4z=function(l,e){var O,E,J,z,M;return _.V(function(Z){if(Z.nextAddress==1)return _.C(Z,l.JSC$16150_prefStorage,2);if(Z.nextAddress!=3)return(O=Z.yieldResult)?_.C(Z,O.get("psi"),3):Z.return();E=Z.yieldResult;M={isPaused:e,lastSyncTimestamp:(z=(J=E)==null?void 0:J.lastSyncTimestamp)!=null?z:"0"};return _.C(Z,O.set("psi",M),0)})};
uv4=function(l){var e=_.V2().resolve(_.xj),O,E,J,z,M,Z,u,d;return _.V(function(g){switch(g.nextAddress){case 1:return _.C(g,e.JSC$16150_playerApiPromise,2);case 2:O=g.yieldResult;J=((E=l)==null?void 0:E.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((Z=l)==null?void 0:Z.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":z="!*$_ALL_ENTITIES_!*$";M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return g.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return g.jumpTo(4)}g.jumpTo(5);break;case 3:return _.C(g,Z4z(e,J),6);case 6:g.jumpTo(5);break;case 4:return _.C(g,VbF(e,(u=l)==null?void 0:u.videoId),7);case 7:g.yieldResult&&(z=(d=l)==null?void 0:d.videoId,M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");g.jumpTo(5);break;case 5:if(z&&M)return _.C(g,O.queueOfflineAction(z,"videoPlaybackPositionEntity",M),0);g.jumpTo(0)}})};
uO4=function(l,e){var O;e!==1||((O=l.currentPersistentToast)==null?0:O.isOpened())?l.openToast():l.currentPersistentToast=void 0};
Csi=function(l,e){var O;return(O=l.transitionTasksMap.get(e))!=null?O:[]};
o0u=function(l,e){var O=[];l.elementTasksMap.forEach(function(E){(E=E.get(e))&&O.push(E)});
return O};
$T0=function(l,e,O,E){E=E===void 0?{}:E;var J=l.defaultViewTransitionOptions;return Object.assign({},J,E,{beforeTransition:function(){O.forEach(function(u){u.beforeTransition()});
var z;(z=J.beforeTransition)==null||z.call(J);var M,Z;(Z=(M=E).beforeTransition)==null||Z.call(M);e.forEach(function(u){u.beforeTransition()})},
afterTransition:function(){O.forEach(function(u){u.afterTransition()});
var z;(z=J.afterTransition)==null||z.call(J);var M,Z;(Z=(M=E).afterTransition)==null||Z.call(M);e.forEach(function(u){u.afterTransition()})}})};
QJ=function(l,e,O){l.transitionTasksMap.has(e)?l.transitionTasksMap.get(e).push(O):(l=new _.Hk("Transition task registered for unknown transition type",e),_.UW(l))};
WXF=function(l,e,O){if(l.transitionTasksMap.has(e)){var E=l.transitionTasksMap.get(e).filter(function(J){return J!==O});
l.transitionTasksMap.set(e,E)}};
dTz=function(l,e){var O=Csi(l,e);O=_.b(O);for(var E=O.next();!E.done;E=O.next())E=E.value,E.runOnce&&WXF(l,e,E);l.elementTasksMap.forEach(function(J,z){J.forEach(function(M,Z){M.runOnce&&e===Z&&(J.delete(Z),J.size===0&&l.elementTasksMap.delete(z))})})};
g0F=function(l,e,O){var E,J,z,M,Z,u,d,g,w;_.V(function(n){if(n.nextAddress==1){if(l.config.disableAllTransitions)return n.return(e());if((E=O)==null||!E.transitionType)return n.return(_.k1u(e,(J=O)==null?void 0:J.viewTransitionOptions));z=O;M=z.transitionType;Z=z.viewTransitionOptions;u=l.config.transitionConfigs.get(M);if(!u)return n.return(e());d=Csi(l,M);g=o0u(l,M);w=_.k1u(e,$T0(u,d,g,Z));return _.C(n,w,2)}dTz(l,M);_.Cl(n)})};
i43=function(){var l,e,O,E;return _.V(function(J){if(J.nextAddress==1)return l=navigator,(e=l.storage)!=null&&e.persisted?_.C(J,(O=l.storage)==null?void 0:O.persisted(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");E=J.yieldResult;return J.return(E?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
wf4=function(){var l,e,O,E;return _.V(function(J){if(J.nextAddress==1)return l=navigator,(e=l.storage)!=null&&e.persist?_.C(J,(O=l.storage)==null?void 0:O.persist(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");E=J.yieldResult;return J.return(E?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
A3C=function(){var l,e;return _.V(function(O){switch(O.nextAddress){case 1:return l="PERSISTED_STATE_NOT_SUPPORTED",_.b1(O,2),_.C(O,i43(),4);case 4:l=O.yieldResult;if(l!=="PERSISTED_STATE_NOT_GRANTED"){O.jumpTo(5);break}return _.C(O,wf4(),6);case 6:l=O.yieldResult;case 5:_.Q2(O,3);break;case 2:e=_.u1(O),e instanceof Error&&_.UW(e);case 3:return _.Bm("persistentStorageStateChecked",{persistedState:l}),O.return(l)}})};
n0z=function(l,e){var O=[],E=!1;e=_.b(e);for(var J=e.next();!J.done;J=e.next()){J=l.moduleRegistry[J.value];var z=void 0,M=void 0;((z=J)==null?0:z.isFetching)&&((M=J)==null?0:M.resolver)?(O.push(J.resolver.promise),E=!0):(J=new _.d8,J.resolve(void 0),O.push(J.promise))}return E?Promise.all(O):void 0};
au3=function(l,e,O){if(l.isInitialized()){var E=E4(O),J=E==="watch";E=E==="shorts";var z=E4(e)==="watch";if(J)z||(l.backgroundPageData=e),l.watchPipMode&&z||l.deactivate(O.endpoint);else if(E){if(E4(e)!=="shorts"){var M;(M=l.getPlayerElement())==null||M.pause()}}else z&&!l.watchPipMode&&(V7H(e,O)?(l.watchWhileMode&&_.mHO(l,!1),_.wvF(l,e)):l.isMiniplayerActive()&&l.watchWhileMode&&l.deactivate());z&&_.pvo(l);l.shortsPipMode&&!E&&(window.focus(),l.deactivate());if(l.pictureInPictureEnabled())if(E&&
l.shortsPipEnabled||J&&l.watchPipEnabled)_.Gbq(l.handleMediaSessionPipActivation);else if(!l.isMiniplayerActive()&&(l.shortsPipEnabled||l.watchPipEnabled)&&window.documentPictureInPicture&&_.Hx()&&_.uug("Chromium")>=120){l=_.srV().mediaSession;try{l.setActionHandler("enterpictureinpicture",null)}catch(Z){}}}};
krh=function(l,e){var O,E;_.V(function(J){if(J.nextAddress==1){if(!l||!l.navigationEndpoint)return J.return();_.n6().lockupActivation=!0;var z;e?z=_.xp(_.ml("QUEUE",void 0,"Queue")):z=l.longBylineText;E=(O=z)&&l.title?{miniplayerTitle:l.title,miniplayerSubtitle:O,playlistData:null}:void 0;return _.C(J,_.H7H(_.V2().resolve(_.NJ),l.navigationEndpoint,!0,E),2)}_.n6().userActivation=!0;_.Cl(J)})};
zUF=function(l,e){var O,E,J,z,M,Z;_.V(function(u){if(u.nextAddress==1){O=_.I(e,_.nh0);if(!O||!O.listId)return u.return();l.index=O.index||l.index||0;E=l.response&&l.response.playingVideoId||void 0;return _.C(u,_.DOi(l.JSC$10844_playlistNetworkManager,O.listId,l.index,E),2)}J=u.yieldResult;if(!J)return u.return();z=J.playlistId;M=J.playlistPanelRenderer;!l.queueProxy&&z&&M&&z.startsWith("TLPQ")&&(l.queueProxy=new _.GZ(l.JSC$10844_playlistNetworkManager,z,l.setPlaylistData.bind(l),l.clearQueue.bind(l),
_.S5V(M),l.storage));if(O.openMiniplayer&&(Z=_.Qnu(M))&&!l.pageManager.isOnWatch()){var d=Z,g=O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";l.isMiniplayerActive()?l.openToast(d):krh(d,g)}l.setPlaylistData(z,M,J.autoplayRenderer);_.Cl(u)})};
EuP=function(l,e){var O=_.qg();O.index===void 0&&(O.index=0);O.temporaryItems.push.apply(O.temporaryItems,_.kA(l));if((e.videoId||e.videoIds)&&O.index!==void 0&&e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!O.queueProxy){var E=[];if(O.response){var J=_.V2().resolve(_.NJ).isMiniplayerActive();if(O.response.playlistPanelRenderer&&O.response.playlistId&&!O.response.playlistId.startsWith("TLPQ")){if(O.pageManager.isOnWatch()||J)E=_.S5V(O.response.playlistPanelRenderer)}else O.response.playingVideoId&&
!e.openMiniplayer?E.push(O.response.playingVideoId):J&&O.response.playingVideoId&&e.openMiniplayer&&E.push(O.response.playingVideoId)}O.queueProxy=new _.GZ(O.JSC$10844_playlistNetworkManager,"",O.setPlaylistData.bind(O),O.clearQueue.bind(O),E,O.storage);O.queueProxy.JSC$10790_setCurrentIndex(O.index)}O.queueProxy.addVideos(e.videoIds||[e.videoId],e)}$7o(O,l);O.response&&_.vJ(O,_.Ng(O,O.response.autoplayRenderer));O.pageManager.isOnWatch()?O.isMiniplayerActive()&&O.openToast(l[0]):(l=l[0],e=e.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",O.isMiniplayerActive()?O.openToast(l):krh(l,e))};
Iui=function(l){var e=_.Wh(l);if(e=="object"||e=="array"){if(typeof l.clone==="function")return l.clone();if(typeof Map!=="undefined"&&l instanceof Map)return new Map(l);if(typeof Set!=="undefined"&&l instanceof Set)return new Set(l);e=e=="array"?[]:{};for(var O in l)e[O]=Iui(l[O]);return e}return l};
$I=function(l,e){return _.rqx(_.yK(l,e,void 0,_.my))};
WA=function(l,e){return _.Ii(_.yK(l,e,void 0,_.my))};
dW=function(l,e){return _.$i2(_.yK(l,e,void 0,_.my))};
gW=function(l,e){return _.yK(l,e,void 0,_.my,_.uz)};
mTi=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;_.qH(e,O,_.vW(l.decoder_,_.Eu));return!0},_.SO,_.DZ);
y3f=_.tp(function(l,e,O,E){if(l.nextWireType_!==0)return!1;_.HW(e,O,E,_.vW(l.decoder_,_.Eu));return!0},_.SO,_.DZ);
pfi=_.tp(function(l,e,O){if(l.nextWireType_!==1)return!1;var E=l.decoder_;l=_.rs(E);E=_.rs(E);l=_.lz(l,E);_.qH(e,O,l);return!0},_.Nfq,_.PjM);
KXh=_.tp(function(l,e,O){if(l.nextWireType_!==5)return!1;_.qH(e,O,_.rs(l.decoder_));return!0},function(l,e,O){e=_.yC(e);
e!=null&&(_.NH(l,O,5),_.DV(l.encoder_,e))},_.B7g);
jXi=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;l=_.iXx(l.decoder_);_.qH(e,O,l===!1?void 0:l);return!0},_.ruA,_.RD8);
H4P=_.tp(function(l,e,O){if(l.nextWireType_!==2)return!1;l=_.IRW(l);_.qH(e,O,l===""?void 0:l);return!0},_.Su2,_.T7g);
c3F=_.tp(function(l,e,O){if(l.nextWireType_!==2)return!1;l=_.mIg(l);_.qH(e,O,l===_.TS()?void 0:l);return!0},_.xox,_.hDW);
FX4=_.BfV(function(l,e,O){if(l.nextWireType_!==0&&l.nextWireType_!==2)return!1;e=_.yI(e,e[_.aq]|0,O);l.nextWireType_==2?_.y8p(l,hbC,e):e.push(_.N3(l.decoder_));return!0},function(l,e,O){e=_.G08(_.Ii,e,!0);
if(e!=null&&e.length){O=_.$oL(l,O);for(var E=0;E<e.length;E++)_.t3d(l.encoder_,e[E]);_.WHx(l,O)}},_.LzA);
fu4=_.tp(function(l,e,O){if(l.nextWireType_!==0)return!1;l=_.N3(l.decoder_);_.qH(e,O,l===0?void 0:l);return!0},_.lVp,_.LzA);
Rcu=_.tp(function(l,e,O,E){if(l.nextWireType_!==0)return!1;_.HW(e,O,E,_.N3(l.decoder_));return!0},_.lVp,_.LzA);
_.tz=function(l){this.privateDoNotAccessOrElseWrappedStyleSheet=l};
_.tz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var WlP=function(l,e){return new _.KF(l.x+e.x,l.y+e.y)},T6O=function(l){return l.previousElementSibling!==void 0?l.previousElementSibling:_.rq6(l.previousSibling,!1)},sXu=function(l,e){var O=[];
for(e=e||0;e<l.length;e+=2)_.GSx(l[e],l[e+1],O);return O.join("&")},GrO=function(l,e){var O=arguments.length==2?sXu(arguments[1],0):sXu(arguments,1);
return _.sq0(l,O)},B6F=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(B6F,_.Gu);B6F.prototype.getValue=function(){var l=_.yK(this,2);if(Array.isArray(l)||l instanceof _.Gu)throw Error("aa");return _.jR(this,2)};
var f8i=function(){var l=_.C0();this.JSC$7954_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.zj("channel_type"))};
f8i.prototype.increment=function(l){this.JSC$7954_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",l)};
var RaH=function(){var l=_.C0();this.JSC$7957_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.zj("channel_type"))};
RaH.prototype.increment=function(l){this.JSC$7957_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",l)};
var smz=function(){var l=_.C0();this.JSC$7960_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.zj("channel_type"))};
smz.prototype.increment=function(l){this.JSC$7960_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",l)};
var T44=function(){var l=_.C0();this.JSC$7963_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
T44.prototype.increment=function(){this.JSC$7963_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var GLP=function(){var l=_.C0();this.JSC$7966_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.zj("channel_type"),_.zj("error_type"))};
GLP.prototype.increment=function(l,e){this.JSC$7966_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",l,e)};
var B43=function(){var l=_.C0();this.JSC$7969_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
B43.prototype.increment=function(){this.JSC$7969_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Pgz=function(){var l=_.C0();this.JSC$7972_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Pgz.prototype.increment=function(){this.JSC$7972_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var H0u=function(){var l=_.C0();this.JSC$7978_streamzService=l;l.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
H0u.prototype.increment=function(){this.JSC$7978_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Ps4=function(l){return l.getCount&&typeof l.getCount=="function"?l.getCount():_.SM(l)||typeof l==="string"?l.length:_.mm.getCount(l)},UTu=function(l,e){if(typeof l.every=="function")return l.every(e,void 0);
if(_.SM(l)||typeof l==="string")return Array.prototype.every.call(l,e,void 0);for(var O=_.cnq(l),E=_.J6(l),J=E.length,z=0;z<J;z++)if(!e.call(void 0,E[z],O&&O[z],l))return!1;return!0},Ytf=function(l,e,O,E){var J=new _.Jg(null);
l&&_.XB(J,l);e&&_.zG(J,e);O&&_.bO(J,O);E&&_.MD(J,E);return J},hc0=function(){var l=_.Lv&&_.Wx(_.tsF,10)>=0,e;
if(e=_.F5q)e=_.Wx(_.LFi,10)>=0;var O=_.a_&&_.Wx(_.tsF,85)>=0;return _.iv||l||e||O},LXf=function(l){var e=_.gq6(l);
return e&&hc0()?-l.scrollLeft:e&&_.tl(l,"overflowX")!="visible"?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft},tbh=function(l,e){e=Math.max(e,0);
_.gq6(l)?hc0()?l.scrollLeft=-e:l.scrollLeft=l.scrollWidth-e-l.clientWidth:l.scrollLeft=e},IhH=0,jy0=!1;
XA.prototype.set=function(l){this.relativeTimeStart_=l};
XA.prototype.reset=function(){this.set(_.C2())};
XA.prototype.get=function(){return this.relativeTimeStart_};
var qt0=null,v0O=function(){qt0||(qt0=new XA)},N6u=function(){qt0||(qt0=new XA)};
_.o_(N6u,v0O);_.X=c5h.prototype;_.X.JSC$9296_buffer_="";_.X.set=function(l){this.JSC$9296_buffer_=""+l};
_.X.append=function(l,e,O){this.JSC$9296_buffer_+=String(l);if(e!=null)for(var E=1;E<arguments.length;E++)this.JSC$9296_buffer_+=arguments[E];return this};
_.X.clear=function(){this.JSC$9296_buffer_=""};
_.X.getLength=function(){return this.JSC$9296_buffer_.length};
_.X.toString=function(){return this.JSC$9296_buffer_};
var r3h=function(){var l={type:"unit",style:"narrow"};this.listType_=l&&l.type?l.type:"conjunction";this.listStyle_=l&&l.style?l.style:"long";this.listSymbols_=Dvu;l=0;switch(this.listStyle_){case "short":l=1;break;case "narrow":l=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[l];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[l];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[l];this.listEndPattern_=
this.listSymbols_.AND_END[l];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[l];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[l];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[l];this.listEndPattern_=this.listSymbols_.OR_END[l];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[l],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[l],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[l],this.listEndPattern_=this.listSymbols_.UNIT_END[l]}};
r3h.prototype.format=function(l){return DT4(this,l)};
var DT4=function(l,e){var O=e.length;switch(O){case 0:return"";case 1:return String(e[0]);case 2:return l.listTwoPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1]))}for(var E=l.listStartPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1])),J=2;J<O-1;++J)E=l.listMiddlePattern_.replace("{0}",E).replace("{1}",String(e[J]));return l.listEndPattern_.replace("{0}",E).replace("{1}",String(e[O-1]))},NLP=function(){var l={style:1};
this.style_=(l==null?void 0:l.style)||0;this.durationSymbols_=_.kEC||_.yYS},St4=function(l,e){switch(e){default:case "years":return l.durationSymbols_.YEAR;
case "months":return l.durationSymbols_.MONTH;case "weeks":return l.durationSymbols_.WEEK;case "days":return l.durationSymbols_.DAY;case "hours":return l.durationSymbols_.HOUR;case "minutes":return l.durationSymbols_.MINUTE;case "seconds":return l.durationSymbols_.SECOND}},iD=function(l,e,O){a:{O=St4(l,O);
switch(l.style_){case 1:if(O.LONG!=void 0){l=O.LONG;break a}case 2:if(O.NARROW!=void 0){l=O.NARROW;break a}default:l=O.SHORT;break a}l=void 0}return l?(new _.rY1("{DURATION_VALUE,plural,"+l+"}")).format({DURATION_VALUE:e}):""};
NLP.prototype.format=function(l){var e=[],O=l.years,E=l.months,J=l.weeks,z=l.days,M=l.hours,Z=l.minutes;l=l.seconds;O!=null&&e.push(iD(this,O,"years"));E!=null&&e.push(iD(this,E,"months"));J!=null&&e.push(iD(this,J,"weeks"));z!=null&&e.push(iD(this,z,"days"));M!=null&&e.push(iD(this,M,"hours"));Z!=null&&e.push(iD(this,Z,"minutes"));l!=null&&e.push(iD(this,l,"seconds"));return(new r3h).format(e)};
var QXH=!1,BLh=function(l){_.l2.call(this,l.message||l.description||l.name);this.isMissing=l instanceof zF;this.isTimeout=l instanceof _.NX&&l.errorCode=="net.timeout";this.isCanceled=l instanceof _.lY};
_.m(BLh,_.l2);BLh.prototype.name="BiscottiError";var zF=function(){_.l2.call(this,"Biscotti ID is missing from server")};
_.m(zF,_.l2);zF.prototype.name="BiscottiMissingError";var b7=null,NvO=function(){try{var l=_.vK("yt.ads.biscotti.getId_");return l?l():g63()}catch(e){return _.Tr(e)}},v6H,xTf=function(l){return _.oM({type:"SET_GUIDE_IS_EXPANDED",
payload:l})},lwh=function(l){return _.oM({type:"SET_ONLINE_STATUS",
payload:l})},eju=function(l,e){return _.oM({type:"SET_TRANSCRIPTION_STATE",
payload:{high:l,low:e}})},OdO=function(l){return _.oM({type:"SET_OVERLAY_STATE",
payload:l})},E7i=0,Jmz=function(l,e,O){var E=this;
this.priority=e;this.delay=O;this.jobId=0;this.completionCallback=_.II;this.wrappedJob=function(){l();E.completionCallback()};
this.id=++E7i};
Jmz.prototype.enqueue=function(l){this.completionCallback=l;this.jobId=_.UD.addJob(this.wrappedJob,this.priority,this.delay)};
var wW=function(){_.Mk.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.m(wW,_.Mk);wW.prototype.addJob=function(l,e,O){l=new Jmz(l,e,O);this.taskIdToTask.set(l.id,l);this.isActive?XFP(this,l):this.suspendedTasks.add(l);return l.id};
var XFP=function(l,e){l.scheduledTasks.add(e);e.enqueue(function(){l.scheduledTasks.delete(e)})};
wW.prototype.cancelJob=function(l){(l=this.taskIdToTask.get(l))&&(this.scheduledTasks.delete(l)?_.UD.cancelJob(l.jobId):this.suspendedTasks.delete(l))};
wW.prototype.pause=function(){var l=this;this.isActive=!1;this.scheduledTasks.forEach(function(e){_.UD.cancelJob(e.jobId);l.suspendedTasks.add(e)});
this.scheduledTasks.clear()};
wW.prototype.start=function(){var l=this;this.isActive=!0;this.suspendedTasks.forEach(function(e){XFP(l,e)});
this.suspendedTasks.clear()};
wW.prototype.reset=function(){this.scheduledTasks.forEach(function(l){_.UD.cancelJob(l.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var AV=function(l,e){this.JSC$10973_networkService_=l;this.pageRequestPromise=e};
AV.prototype.fetchData=function(l){zjO(this,this.JSC$10973_networkService_.fetchData(l))};
AV.prototype.postData=function(l,e){zjO(this,this.JSC$10973_networkService_.postData(l,e))};
AV.prototype.requestDataForServiceEndpoint=function(l,e){zjO(this,this.JSC$10973_networkService_.requestDataForServiceEndpoint(l,e))};
var zjO=function(l,e){e.then(l.pageRequestPromise.onSuccess,l.pageRequestPromise.onFailure,l.pageRequestPromise)};
AV.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var ny=function(l){this.buildNetworkRequest_=l;this.pendingRequests_=new Set};
ny.prototype.reset=function(){this.pendingRequests_.forEach(function(l){l.cancel()});
this.pendingRequests_.clear()};
ny.prototype.fetchData=function(l){var e=bdC(this);e.fetchData(l);return e.pageRequestPromise};
ny.prototype.postData=function(l,e){var O=bdC(this);O.postData(l,e);return O.pageRequestPromise};
ny.prototype.requestDataForServiceEndpoint=function(l,e){var O=bdC(this);O.requestDataForServiceEndpoint(l,e);return O.pageRequestPromise};
var bdC=function(l){var e=l.buildNetworkRequest_();l.pendingRequests_.add(e);var O=function(){l.pendingRequests_.delete(e)};
e.pageRequestPromise.then(O,O);return e},MNo=function(l){var e=new wW;
this.JSC$10980_networkService_=l;this.JSC$10980_taskManager_=e;this.JSC$10980_networkManager_=new ny(this.networkRequestFactory_.bind(this))};
_.X=MNo.prototype;_.X.networkRequestFactory_=function(){return new AV(this.JSC$10980_networkService_,new _.b4(this.JSC$10980_taskManager_))};
_.X.reset=function(){this.JSC$10980_taskManager_.reset();this.JSC$10980_networkManager_.reset()};
_.X.start=function(){this.JSC$10980_taskManager_.start()};
_.X.pause=function(){this.JSC$10980_taskManager_.pause()};
_.X.getTaskManager=function(){return this.JSC$10980_taskManager_};
_.X.getNetworkManager=function(){return this.JSC$10980_networkManager_};
var xGC=null,Ouf=[],MP=0,ZQ=0,VJ=null,VNh=!1,u7=null,JWo=void 0,Zdf=function(){var l=(0,_.VWq)();l&&Q4f(l,l.mechanism.__iterator__(!0))},oS=function(l){this.token=l};
oS.getInstance=function(){var l;return _.V(function(e){if(e.nextAddress==1)return _.C(e,_.bL(),2);l=e.yieldResult;if(!l)return e.return();oS.instance||(oS.instance=new oS(l));return e.return(oS.instance)})};
var ZuP=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,buC(l.token),2);e=O.yieldResult;return O.return(e.clear("resource-manifest-assets"))})},Cj=function(l){this.token=l};
Cj.getInstance=function(){var l;return _.V(function(e){if(e.nextAddress==1)return _.C(e,_.bL(),2);l=e.yieldResult;if(!l)return e.return();Cj.instance||(Cj.instance=new Cj(l));return e.return(Cj.instance)})};
var MtO=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,buC(l.token),2);e=O.yieldResult;return _.C(O,e.clear("auth"),0)})},Hu0=!1,uYz=function(l){_.l2.call(this,l)};
_.m(uYz,_.sSx);var Cp4="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(" ");EEh()&&Cp4.push("details:not(:has(summary))");var XmP=Cp4.join(",");var Ipi=function(){var l=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return l?parseInt(l[1],10):0},o7F=function(l){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+l)!=-1||document.currentScript.src.indexOf("&"+l)!=-1)},$jh=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},jcu=function(l){l.length?WfH(l.shift(),function(){jcu(l)}):yiP()},ci3=function(l){return"chrome-extension://"+l+"/cast_sender.js"},WfH=function(l,
e,O){var E=document.createElement("script");
E.onerror=e;O&&(E.onload=O);_.UN(E,_.j$(l));(document.head||document.documentElement).appendChild(E)},djf=function(){var l=Ipi(),e=[];
if(l>1){var O=l-1;e.push("//www.gstatic.com/eureka/clank/"+l+"/cast_sender.js");e.push("//www.gstatic.com/eureka/clank/"+O+"/cast_sender.js")}return e},yiP=function(){var l=$jh();
l&&l(!1,"No cast extension found")},KuC=function(){if(g7z){var l=2,e=$jh(),O=function(){l--;
l==0&&e&&e(!0)};
window.__onGCastApiAvailable=O;WfH("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",yiP,O)}},mdu=function(){KuC();
var l=djf();l.push("//www.gstatic.com/eureka/clank/cast_sender.js");jcu(l)},p9z=function(){KuC();
var l=djf();l.push.apply(l,_.kA(H_3.map(ci3)));l.push("//www.gstatic.com/eureka/clank/cast_sender.js");jcu(l)},g7z=o7F("loadCastFramework")||o7F("loadCastApplicationFramework"),H_3=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var idP=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(idP,_.Gu);var wFh=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(wFh,_.Gu);var AmP=function(){var l=new wFh;return _.tZ(l,1,3)};var aR=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(aR,_.Gu);var pmF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(pmF,_.Gu);var n7H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(n7H,_.Gu);n7H.prototype.getToken=function(){return _.BW(this,1)};
n7H.prototype.setToken=function(l){return _.Xi(this,1,l)};
var mrC=function(l){return _.nJ(l,3,_.Uu,_.Oo())},yGi=function(l){return _.nJ(l,6,_.Uu,_.Oo())};var kI=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(kI,_.Gu);kI.prototype.getToken=function(){return _.Cu(this,n7H,2)};
kI.prototype.setToken=function(l){return _.EN(this,2,l)};
kI.prototype.getName=function(){return _.BW(this,6)};
var awH=_.ev(kI);var kku=function(l,e,O){this.requestMessage=l;this.methodDescriptor=e;this.metadata=O};
kku.prototype.getMetadata=function(){return this.metadata};var Iwz=function(l,e){e=e===void 0?{}:e;this.responseMessage=l;this.metadata=e;this.status=null};
Iwz.prototype.getMetadata=function(){return this.metadata};
Iwz.prototype.getStatus=function(){return this.status};var IR=function(l,e,O,E,J){this.name=l;this.methodType="unary";this.requestType=e;this.responseType=O;this.requestSerializeFn=E;this.responseDeserializeFn=J},mjP=function(l,e,O){O=O===void 0?{}:O;
return new kku(e,l,O)};
IR.prototype.getName=function(){return this.name};var mT=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(mT,_.Gu);mT.prototype.setHeader=function(l){return _.EN(this,1,l)};
mT.prototype.hasHeader=function(){return _.p2(this,aR,1)};var ymo=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ymo,_.Gu);var pFu=new IR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",mT,ymo,function(l){return l.serialize()},_.ev(ymo));var yg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(yg,_.Gu);yg.prototype.setHeader=function(l){return _.EN(this,1,l)};
yg.prototype.hasHeader=function(){return _.p2(this,aR,1)};var Kf4=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Kf4,_.Gu);var jxH=new IR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",yg,Kf4,function(l){return l.serialize()},_.ev(Kf4));var py=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(py,_.Gu);py.prototype.setHeader=function(l){return _.EN(this,1,l)};
py.prototype.hasHeader=function(){return _.p2(this,aR,1)};var Hdz=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Hdz,_.Gu);Hdz.prototype.getLink=function(){return _.Cu(this,kI,1)};var cm0=new IR("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",py,Hdz,function(l){return l.serialize()},_.ev(Hdz));var Ky=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Ky,_.Gu);Ky.prototype.setHeader=function(l){return _.EN(this,1,l)};
Ky.prototype.hasHeader=function(){return _.p2(this,aR,1)};var Ffi=new IR("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Ky,kI,function(l){return l.serialize()},awH);var fwC=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(fwC,_.Gu);var Rj3=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Rj3,_.Gu);Rj3.prototype.getUrl=function(){return _.BW(this,2)};
Rj3.prototype.setUrl=function(l){return _.Xi(this,2,l)};var Tgu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Tgu,_.Gu);var sxf=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(sxf,_.Gu);var Gko=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Gko,_.Gu);var BA3=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(BA3,_.Gu);var GMP=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(GMP,_.Gu);var Bgf=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Bgf,_.Gu);var qW3=_.ev(Bgf);var PpO=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(PpO,_.Gu);var j5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(j5,_.Gu);j5.prototype.setHeader=function(l){return _.EN(this,1,l)};
j5.prototype.hasHeader=function(){return _.p2(this,aR,1)};
j5.prototype.getCompletionUrl=function(){return _.BW(this,6)};
j5.prototype.getDeviceId=function(){return _.BW(this,11)};var Uju=new IR("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",j5,Bgf,function(l){return l.serialize()},qW3);var YLC=new Set(["SAPISIDHASH","APISIDHASH"]);var hjP=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(hjP,_.Gu);hjP.prototype.getMessage=function(){return _.BW(this,2)};
var Lfz=_.ev(hjP);var HA=function(l,e){this.xhrNodeReadableStream_=l.nodeReadableStream;this.grpcResponseDeserializeFn_=e;this.JSC$17085_xhr_=l.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17085_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&tNC(this)},SLC=function(l,e){var O=new qLu;
_.f4(l.JSC$17085_xhr_,"complete",function(){if(l.JSC$17085_xhr_.isSuccess()){var E=l.JSC$17085_xhr_.getResponseText();var J;if(J=e)J=l.JSC$17085_xhr_,J.JSC$7833_xhr_&&J.isComplete()?(J=J.JSC$7833_xhr_.getResponseHeader("Content-Type"),J=J===null?void 0:J):J=void 0,J=J==="text/plain";if(J){if(!atob)throw Error("Mj");E=atob(E)}try{var z=l.grpcResponseDeserializeFn_(E)}catch(Z){cA(l,CNz(new _.Ra(13,"Error when deserializing response data; error: "+Z+(", response: "+E)),O));return}E=_.u$(l.JSC$17085_xhr_.getStatus());
v73(l,Ngu(l));E==0?rm4(l,z):cA(l,CNz(new _.Ra(E,"Xhr succeeded but the status code is not 200"),O))}else{E=l.JSC$17085_xhr_.getResponseText();z=Ngu(l);if(E){var M=Dj4(l,E);E=M.code;J=M.details;M=M.metadata}else E=2,J="Rpc failed due to xhr error. uri: "+String(l.JSC$17085_xhr_.JSC$7833_lastUri_)+", error code: "+l.JSC$17085_xhr_.JSC$7833_lastErrorCode_+", error: "+l.JSC$17085_xhr_.getLastError(),M=z;v73(l,z);cA(l,CNz(new _.Ra(E,J,M),O))}})},tNC=function(l){l.xhrNodeReadableStream_.on("data",function(e){if("1"in
e){var O=e["1"];
try{var E=l.grpcResponseDeserializeFn_(O)}catch(J){cA(l,new _.Ra(13,"Error when deserializing response data; error: "+J+(", response: "+O)))}E&&rm4(l,E)}if("2"in e)for(e=Dj4(l,e["2"]),O=0;O<l.onStatusCallbacks_.length;O++)l.onStatusCallbacks_[O](e)});
l.xhrNodeReadableStream_.on("end",function(){v73(l,Ngu(l));for(var e=0;e<l.onEndCallbacks_.length;e++)l.onEndCallbacks_[e]()});
l.xhrNodeReadableStream_.on("error",function(){if(l.JSC$17085_onErrorCallbacks_.length!=0){var e=l.JSC$17085_xhr_.JSC$7833_lastErrorCode_;e!==0||l.JSC$17085_xhr_.isSuccess()||(e=6);var O=-1;switch(e){case 0:var E=2;break;case 7:E=10;break;case 8:E=4;break;case 6:O=l.JSC$17085_xhr_.getStatus();E=_.u$(O);break;default:E=14}v73(l,Ngu(l));e=_.VvR(e)+", error: "+l.JSC$17085_xhr_.getLastError();O!=-1&&(e+=", http status code: "+O);cA(l,new _.Ra(E,e))}})},Ngu=function(l){var e={},O=N8h(l.JSC$17085_xhr_);
Object.keys(O).forEach(function(E){e[E]=O[E]});
return e},Dj4=function(l,e){var O=2,E={};
try{var J=Lfz(e);O=_.Eo(J,1);var z=J.getMessage();_.e$(J,B6F,3,_.Oo()).length&&(E["grpc-web-status-details-bin"]=e)}catch(M){l.JSC$17085_xhr_&&l.JSC$17085_xhr_.getStatus()===404?(O=5,z="Not Found: "+String(l.JSC$17085_xhr_.JSC$7833_lastUri_)):(O=14,z="Unable to parse RpcStatus: "+M)}return{code:O,details:z,metadata:E}};
HA.prototype.on=function(l,e){l=="data"?this.onDataCallbacks_.push(e):l=="metadata"?this.onMetadataCallbacks_.push(e):l=="status"?this.onStatusCallbacks_.push(e):l=="end"?this.onEndCallbacks_.push(e):l=="error"&&this.JSC$17085_onErrorCallbacks_.push(e);return this};
var FT=function(l,e){e=l.indexOf(e);e>-1&&l.splice(e,1)};
HA.prototype.removeListener=function(l,e){l=="data"?FT(this.onDataCallbacks_,e):l=="metadata"?FT(this.onMetadataCallbacks_,e):l=="status"?FT(this.onStatusCallbacks_,e):l=="end"?FT(this.onEndCallbacks_,e):l=="error"&&FT(this.JSC$17085_onErrorCallbacks_,e);return this};
HA.prototype.cancel=function(){this.JSC$17085_xhr_.abort()};
var rm4=function(l,e){for(var O=0;O<l.onDataCallbacks_.length;O++)l.onDataCallbacks_[O](e)},v73=function(l,e){for(var O=0;O<l.onMetadataCallbacks_.length;O++)l.onMetadataCallbacks_[O](e)},cA=function(l,e){for(var O=0;O<l.JSC$17085_onErrorCallbacks_.length;O++)l.JSC$17085_onErrorCallbacks_[O](e)};
HA.prototype.cancel=HA.prototype.cancel;HA.prototype.removeListener=HA.prototype.removeListener;HA.prototype.on=HA.prototype.on;var qLu=function(){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.m(qLu,Error);var fy=function(l){this.JSC$17094_worker_=l.worker||null;this.JSC$17094_streamBinaryChunks_=l.streamBinaryChunks||!1;this.JSC$17094_credentialsMode_=void 0};
_.o_(fy,_.Dh2);fy.prototype.createInstance=function(){var l=new RR(this.JSC$17094_worker_,this.JSC$17094_streamBinaryChunks_);this.JSC$17094_credentialsMode_&&l.setCredentialsMode(this.JSC$17094_credentialsMode_);return l};
fy.prototype.setCredentialsMode=function(l){this.JSC$17094_credentialsMode_=l};
var RR=function(l,e){_.Kx.call(this);this.JSC$17098_worker_=l;this.JSC$17098_streamBinaryChunks_=e;this.JSC$17098_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$17098_responseHeaders_=null;this.JSC$17098_method_="GET";this.JSC$17098_url_="";this.inProgress_=!1;this.JSC$17098_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.o_(RR,_.Kx);RR.prototype.open=function(l,e){if(this.readyState!=0)throw this.abort(),Error("Nj");this.JSC$17098_method_=l;this.JSC$17098_url_=e;this.readyState=1;TI(this)};
RR.prototype.send=function(l){if(this.readyState!=1)throw this.abort(),Error("Oj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Pj");this.inProgress_=!0;var e={headers:this.requestHeaders_,method:this.JSC$17098_method_,credentials:this.JSC$17098_credentialsMode_,cache:void 0,signal:this.abortController_.signal};l&&(e.body=l);(this.JSC$17098_worker_||_.Op).fetch(new Request(this.JSC$17098_url_,e)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
RR.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,si(this));this.readyState=0};
RR.prototype.handleResponse_=function(l){if(this.inProgress_&&(this.fetchResponse_=l,this.JSC$17098_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17098_responseHeaders_=l.headers,this.readyState=2,TI(this)),this.inProgress_&&(this.readyState=3,TI(this),this.inProgress_)))if(this.responseType==="arraybuffer")l.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Op.ReadableStream!==
"undefined"&&"body"in l){this.currentReader_=l.body.getReader();if(this.JSC$17098_streamBinaryChunks_){if(this.responseType)throw Error("Qj");this.response=[]}else this.response=this.responseText="",this.JSC$17098_textDecoder_=new TextDecoder;Qx4(this)}else l.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Qx4=function(l){l.currentReader_.read().then(l.handleDataFromStream_.bind(l)).catch(l.handleSendFailure_.bind(l))};
RR.prototype.handleDataFromStream_=function(l){if(this.inProgress_){if(this.JSC$17098_streamBinaryChunks_&&l.value)this.response.push(l.value);else if(!this.JSC$17098_streamBinaryChunks_){var e=l.value?l.value:new Uint8Array(0);if(e=this.JSC$17098_textDecoder_.decode(e,{stream:!l.done}))this.response=this.responseText+=e}l.done?si(this):TI(this);this.readyState==3&&Qx4(this)}};
RR.prototype.handleResponseText_=function(l){this.inProgress_&&(this.response=this.responseText=l,si(this))};
RR.prototype.handleResponseArrayBuffer_=function(l){this.inProgress_&&(this.response=l,si(this))};
RR.prototype.handleSendFailure_=function(){this.inProgress_&&si(this)};
var si=function(l){l.readyState=4;l.fetchResponse_=null;l.currentReader_=null;l.JSC$17098_textDecoder_=null;TI(l)};
RR.prototype.setRequestHeader=function(l,e){this.requestHeaders_.append(l,e)};
RR.prototype.getResponseHeader=function(l){return this.JSC$17098_responseHeaders_?this.JSC$17098_responseHeaders_.get(l.toLowerCase())||"":""};
RR.prototype.getAllResponseHeaders=function(){if(!this.JSC$17098_responseHeaders_)return"";for(var l=[],e=this.JSC$17098_responseHeaders_.entries(),O=e.next();!O.done;)O=O.value,l.push(O[0]+": "+O[1]),O=e.next();return l.join("\r\n")};
RR.prototype.setCredentialsMode=function(l){this.JSC$17098_credentialsMode_=l};
var TI=function(l){l.onreadystatechange&&l.onreadystatechange.call(l)};
Object.defineProperty(RR.prototype,"withCredentials",{get:function(){return this.JSC$17098_credentialsMode_==="include"},
set:function(l){this.setCredentialsMode(l?"include":"same-origin")}});var xjC=function(l){var e="";_.mm.forEach(l,function(O,E){e+=E;e+=":";e+=O;e+="\r\n"});
return e},lPi=function(l,e,O){if(_.mm.isEmpty(O))return l;
O=xjC(O);if(typeof l==="string")return _.NC(l,_.r5(e),O);_.S$(l,e,O);return l};var esC=function(){this.isInputValid_=!0;this.JSC$17104_streamPos_=0;this.leftoverInput_=""};
esC.prototype.isInputValid=function(){return this.isInputValid_};var dB=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17107_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
dB.prototype.isInputValid=function(){return this.state_!=3};
var GI=function(l,e,O,E){l.state_=3;l.errorMessage_="The stream is broken @"+l.JSC$17107_streamPos_+"/"+O+". Error: "+E+". With input:\n"+e;throw Error(l.errorMessage_);};
dB.prototype.acceptsBinaryInput=function(){return!0};
dB.prototype.parse=function(l){function e(u){u&128&&GI(z,M,Z,"invalid tag");(u&7)!=2&&GI(z,M,Z,"invalid wire type");z.tag_=u>>>3;z.tag_!=1&&z.tag_!=2&&z.tag_!=15&&GI(z,M,Z,"unexpected tag");z.state_=1;z.length_=0;z.countLengthBytes_=0}
function O(u){z.countLengthBytes_++;z.countLengthBytes_==5&&u&240&&GI(z,M,Z,"message length too long");z.length_|=(u&127)<<(z.countLengthBytes_-1)*7;u&128||(z.state_=2,z.countMessageBytes_=0,typeof Uint8Array!=="undefined"?z.messageBuffer_=new Uint8Array(z.length_):z.messageBuffer_=Array(z.length_),z.length_==0&&J())}
function E(u){z.messageBuffer_[z.countMessageBytes_++]=u;z.countMessageBytes_==z.length_&&J()}
function J(){if(z.tag_<15){var u={};u[z.tag_]=z.messageBuffer_;z.result_.push(u)}z.state_=0}
for(var z=this,M=l instanceof Array?l:new Uint8Array(l),Z=0;Z<M.length;){switch(z.state_){case 3:GI(z,M,Z,"stream already broken");break;case 0:e(M[Z]);break;case 1:O(M[Z]);break;case 2:E(M[Z]);break;default:throw Error("Sj`"+z.state_);}z.JSC$17107_streamPos_++;Z++}l=z.result_;z.result_=[];return l.length>0?l:null};var $r4=function(){this.errorMessage_=null;this.JSC$17110_streamPos_=0;this.base64Decoder_=new esC;this.pbParser_=new dB};
$r4.prototype.isInputValid=function(){return this.errorMessage_===null};
var OT0=function(l,e,O){l.errorMessage_="The stream is broken @"+l.JSC$17110_streamPos_+". Error: "+O+". With input:\n"+e;throw Error(l.errorMessage_);};
$r4.prototype.acceptsBinaryInput=function(){return!1};
$r4.prototype.parse=function(l){this.errorMessage_!==null&&OT0(this,l,"stream already broken");var e=null;try{var O=this.base64Decoder_;if(!O.isInputValid_)throw O.isInputValid_=!1,Error("Rj`"+O.JSC$17104_streamPos_+"`stream already broken`"+l);O.leftoverInput_+=l;var E=Math.floor(O.leftoverInput_.length/4);if(E==0)var J=null;else{try{var z=_.b7A(O.leftoverInput_.slice(0,E*4))}catch(u){var M=O.leftoverInput_,Z=u.message;O.isInputValid_=!1;throw Error("Rj`"+O.JSC$17104_streamPos_+"`"+Z+"`"+M);}O.JSC$17104_streamPos_+=
E*4;O.leftoverInput_=O.leftoverInput_.slice(E*4);J=z}e=J===null?null:this.pbParser_.parse(J)}catch(u){OT0(this,l,u.message)}this.JSC$17110_streamPos_+=l.length;return e};var oEu=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17113_streamPos_=0;this.result_=[];this.statusParsed_=!1};
oEu.prototype.isInputValid=function(){return this.errorMessage_===null};
oEu.prototype.acceptsBinaryInput=function(){return!1};
oEu.prototype.parse=function(l){function e(u){z.state_=6;z.errorMessage_="The stream is broken @"+z.JSC$17113_streamPos_+"/"+M+". Error: "+u+". With input:\n";throw Error(z.errorMessage_);}
function O(){z.jsonStreamParser_=new _.uI({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function E(u){if(u)for(var d=0;d<u.length;d++){var g={};g[1]=u[d];z.result_.push(g)}}
function J(u){if(u){(z.statusParsed_||u.length>1)&&e("extra status: "+u);z.statusParsed_=!0;var d={};d[2]=u[0];z.result_.push(d)}}
for(var z=this,M=0;M<l.length;){var Z;if(Z=z.state_!==2){a:{for(;M<l.length;){if(!_.ZY(l[M])){Z=!0;break a}M++;z.JSC$17113_streamPos_++}Z=!1}Z=!Z}if(Z)return null;switch(z.state_){case 6:e("stream already broken");break;case 0:l[M]==="["?(z.state_=1,M++,z.JSC$17113_streamPos_++):e("unexpected input token");break;case 1:l[M]==="["?(z.state_=2,O()):l[M]===","||l.slice(M,M+5)=="null,"?z.state_=3:l[M]==="]"?(z.state_=5,M++,z.JSC$17113_streamPos_++):e("unexpected input token");break;case 2:Z=z.jsonStreamParser_.parse(l.substring(M));
E(Z);z.jsonStreamParser_.done()?(z.state_=3,Z=z.jsonStreamParser_.JSC$9423_buffer_,z.JSC$17113_streamPos_+=l.length-M-Z.length,l=Z,M=0):(z.JSC$17113_streamPos_+=l.length-M,M=l.length);break;case 3:l[M]===","||l.slice(M,M+5)=="null,"?(z.state_=4,O(),z.jsonStreamParser_.parse("["),M+=l[M]===","?1:5,z.JSC$17113_streamPos_++):l[M]==="]"&&(z.state_=5,M++,z.JSC$17113_streamPos_++);break;case 4:Z=z.jsonStreamParser_.parse(l.substring(M));J(Z);z.jsonStreamParser_.done()?(z.state_=5,Z=z.jsonStreamParser_.JSC$9423_buffer_,
z.JSC$17113_streamPos_+=l.length-M-Z.length,l=Z,M=0):(z.JSC$17113_streamPos_+=l.length-M,M=l.length);break;case 5:e("extra input after stream end")}}return z.result_.length>0?(l=z.result_,z.result_=[],l):null};var EDC=function(l){this.JSC$17116_xhr_=l;this.JSC$17116_parser_=null;this.status_=this.JSC$17116_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17116_textDecoder_=null;this.JSC$17116_eventHandler_=new _.ue(this);this.JSC$17116_eventHandler_.listen(this.JSC$17116_xhr_,"readystatechange",this.JSC$17118_readyStateChangeHandler_)},BA=function(l,e){l.status_!=e&&(l.status_=e,l.statusHandler_&&l.statusHandler_())},PA=function(l){l.JSC$17116_eventHandler_.removeAll();
if(l.JSC$17116_xhr_){var e=l.JSC$17116_xhr_;l.JSC$17116_xhr_=null;e.abort();e.dispose()}};
EDC.prototype.getStatus=function(){return this.status_};
EDC.prototype.JSC$17118_readyStateChangeHandler_=function(l){l=l.target;try{if(l==this.JSC$17116_xhr_)a:{var e=_.Gv(this.JSC$17116_xhr_),O=this.JSC$17116_xhr_.JSC$7833_lastErrorCode_,E=this.JSC$17116_xhr_.getStatus(),J=this.JSC$17116_xhr_.getResponseText();l=[];if(this.JSC$17116_xhr_.getResponse()instanceof Array){var z=this.JSC$17116_xhr_.getResponse();z.length>0&&z[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,l=z)}if(!(e<3||e==3&&!J&&l.length==0))if(E=E==200||E==206,e==4&&(O==8?BA(this,
7):O==7?BA(this,8):E||BA(this,3)),this.JSC$17116_parser_||(this.JSC$17116_parser_=WBC(this.JSC$17116_xhr_),this.JSC$17116_parser_==null&&BA(this,5)),this.status_>2)PA(this);else{if(l.length>this.JSC$17116_pos_){var M=l.length;O=[];try{if(this.JSC$17116_parser_.acceptsBinaryInput())for(var Z=0;Z<M;Z++){var u=this.JSC$17116_parser_.parse(Array.from(l[Z]));u&&(O=O.concat(u))}else{u="";if(!this.JSC$17116_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Tj");this.JSC$17116_textDecoder_=new TextDecoder}for(Z=
0;Z<M;Z++)u+=this.JSC$17116_textDecoder_.decode(l[Z],{stream:e==4&&Z==M-1});O=this.JSC$17116_parser_.parse(u)}l.splice(0,M);O&&this.dataHandler_(O)}catch(g){BA(this,5);PA(this);break a}}else if(J.length>this.JSC$17116_pos_){Z=J.slice(this.JSC$17116_pos_);this.JSC$17116_pos_=J.length;try{var d=this.JSC$17116_parser_.parse(Z);d!=null&&this.dataHandler_&&this.dataHandler_(d)}catch(g){BA(this,5);PA(this);break a}}e==4?(J.length!=0||this.hasStreamingResponseData_?BA(this,2):BA(this,4),PA(this)):BA(this,
1)}}}catch(g){BA(this,6),PA(this)}};var JM4=function(l){l=this.xhrReader_=l;var e=(0,_.pb)(this.onData_,this);l.dataHandler_=e;l=this.xhrReader_;e=(0,_.pb)(this.onStatusChange_,this);l.statusHandler_=e;this.JSC$17120_callbackMap_={};this.callbackOnceMap_={}};
_.X=JM4.prototype;_.X.on=function(l,e){var O=this.JSC$17120_callbackMap_[l];O||(O=[],this.JSC$17120_callbackMap_[l]=O);O.push(e);return this};
_.X.addListener=function(l,e){this.on(l,e);return this};
_.X.removeListener=function(l,e){var O=this.JSC$17120_callbackMap_[l];O&&_.NA(O,e);(l=this.callbackOnceMap_[l])&&_.NA(l,e);return this};
_.X.once=function(l,e){var O=this.callbackOnceMap_[l];O||(O=[],this.callbackOnceMap_[l]=O);O.push(e);return this};
_.X.onData_=function(l){var e=this.JSC$17120_callbackMap_.data;e&&Xiu(l,e);(e=this.callbackOnceMap_.data)&&Xiu(l,e);this.callbackOnceMap_.data=[]};
var Xiu=function(l,e){for(var O={},E=0;E<l.length;O={message$jscomp$969:void 0},E++)O.message$jscomp$969=l[E],e.forEach(function(J){return function(z){try{z(J.message$jscomp$969)}catch(M){}}}(O))};
JM4.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:zsO(this,"readable");break;case 5:case 6:case 4:case 7:case 3:zsO(this,"error");break;case 8:zsO(this,"close");break;case 2:zsO(this,"end")}};
var zsO=function(l,e){var O=l.JSC$17120_callbackMap_[e];O&&O.forEach(function(E){try{E()}catch(J){}});
(O=l.callbackOnceMap_[e])&&O.forEach(function(E){E()});
l.callbackOnceMap_[e]=[]};var bTu=function(){var l={format:"jspb"};l=l===void 0?{}:l;this.suppressCorsPreflight=l.suppressCorsPreflight||_.vK("suppressCorsPreflight",l)||!1;this.withCredentials=l.withCredentials||_.vK("withCredentials",l)||!1;this.streamInterceptors=l.streamInterceptors||[];this.unaryInterceptors=l.unaryInterceptors||[];this.workerScope=l.workerScope;this.chunkedServerStreaming=l.useFetchDownloadStreams||!1},ZT3=function(l,e,O,E,J,z){z=z===void 0?{}:z;
var M=e.substring(0,e.length-J.name.length),Z,u=(Z=z)==null?void 0:Z.signal;return Mpi(function(d){return new Promise(function(g,w){if(u==null?0:u.aborted){var n=new _.Ra(1,"Aborted");n.cause=u.reason;w(n)}else{var k={},y=Vpi(l,d,M);y.on("error",function(c){return void w(c)});
y.on("metadata",function(c){k=c});
y.on("data",function(c){var f=k;f=f===void 0?{}:f;g(new Iwz(c,f))});
u&&u.addEventListener("abort",function(){y.cancel();var c=new _.Ra(1,"Aborted");c.cause=u.reason;w(c)})}})},l.unaryInterceptors).call(l,mjP(J,O,E)).then(function(d){return d.responseMessage})},Ui=function(l,e,O,E,J,z){z=z===void 0?{}:z;
return ZT3(l,e,O,E,J,z)};
bTu.prototype.serverStreaming=function(l,e,O,E){var J=this,z=l.substring(0,l.length-E.name.length);return uZ0(function(M){var Z=M.methodDescriptor,u=M.getMetadata(),d=CVh(J,!1);u=oD0(J,u,d,z+Z.getName());var g=$cz(d,Z.responseDeserializeFn,!0);M=Z.requestSerializeFn(M.requestMessage);d.send(u,"POST",M);return g},this.streamInterceptors).call(this,mjP(E,e,O))};
var Vpi=function(l,e,O){var E=e.methodDescriptor,J=e.getMetadata(),z=CVh(l,!0);l=oD0(l,J,z,O+E.getName());O=$cz(z,E.responseDeserializeFn,!1);SLC(O,J["X-Goog-Encode-Response-If-Executable"]==="base64");e=E.requestSerializeFn(e.requestMessage);z.send(l,"POST",e);return O},CVh=function(l,e){e=l.chunkedServerStreaming&&!e;
return l.workerScope||e?new _.sk(new fy({worker:l.workerScope,streamBinaryChunks:e})):new _.sk},oD0=function(l,e,O,E){e["Content-Type"]="application/json+protobuf";
e["X-User-Agent"]="grpc-web-javascript/0.1";var J=e.Authorization;if(J&&YLC.has(J.split(" ")[0])||l.withCredentials)O.JSC$7833_withCredentials_=!0;if(l.suppressCorsPreflight)E=lPi(E,"$httpHeaders",e);else for(l=_.b(Object.keys(e)),J=l.next();!J.done;J=l.next())J=J.value,O.headers.set(J,e[J]);return E},$cz=function(l,e,O){if(O){O=new EDC(l);
var E=new JM4(O)}return new HA({xhr:l,nodeReadableStream:E},e)},uZ0=function(l,e){return e.reduce(function(O,E){return function(J){return E.intercept(J,O)}},l)},Mpi=function(l,e){return e.reduce(function(O,E){return function(J){return E.intercept(J,O)}},l)};var WMh=function(l){this.client_=new bTu;this.hostname_=l==void 0?l:l.replace(/\/+$/,"")};
_.X=WMh.prototype;_.X.JSC$17138_depositGoogleCredential=function(l,e,O){return Ui(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",l,e||{},jxH,O)};
_.X.deleteLink=function(l,e,O){return Ui(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",l,e||{},pFu,O)};
_.X.JSC$17138_finishOAuth=function(l,e,O){return Ui(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",l,e||{},cm0,O)};
_.X.getLink=function(l,e,O){return Ui(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",l,e||{},Ffi,O)};
_.X.startLinkingSession=function(l,e,O){return Ui(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",l,e||{},Uju,O)};var dcP=[0,jXi,1,FX4,[0,_.ea,[0,H4P,-1]],[0,c3F],[0,fu4,-1]];var gDz=function(){this.storage=new Map},wi4=function(l,e,O,E,J){if(!l.storage.has(e))return null;
l=_.b(l.storage.get(e));for(e=l.next();!e.done;e=l.next())if(e=e.value,!J||e.linkName===J)if(O&&e.scopes&&iTz(e.scopes,O)||E&&e.capabilities&&iTz(e.capabilities,E))return e;return null},AMz=function(l,e,O){if(!O)l.storage.delete(e);
else if(l.storage.has(e)){var E=l.storage.get(e).filter(function(J){return J.linkName!==O});
E.length>0?l.storage.set(e,E):l.storage.delete(e)}},iTz=function(l,e){e=_.b(e);
for(var O=e.next();!O.done;O=e.next())if(!l.has(O.value))return!1;return!0};var nDC=function(){var l=_.hT("LINK_GAL_DOMAIN");this.alsDomain1p=_.hT("LINK_GAL_DOMAIN");this.alsDomain3p=l;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},aPu=function(l,e){l.apiKey=e;
return l};
nDC.prototype.build=function(){var l={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Uj");l.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Vj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Wj");l.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(l.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)l.apiKey=
this.apiKey,l.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Xj");l.oauthToken=this.oauthToken;l.alsDomain=this.alsDomain3p}l.clientXd3=this.clientXd3;l.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(l.authUser=this.authUser);this.bucket!==void 0&&(l.bucket=this.bucket);this.completionUrl!==void 0&&(l.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(l.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(l.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(l.locale=this.locale);l.loggerType=this.loggerType;l.clientEnvironment=this.clientEnvironment;l.colorScheme=this.colorScheme;l.showCloseOption=this.showCloseOption;return l};var gB=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(gB,_.Gu);var knf=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(knf,_.Gu);var IP4=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(IP4,_.Gu);var wB=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(wB,_.Gu);var mcf=function(l){return _.PW(l,1)};var yMH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(yMH,_.Gu);var abH=_.ev(yMH),i7=[1,2,3,4,5];var iZz=function(l){try{return abH(l)}catch(e){return null}},pih=function(){},wmf=function(l,e){switch(_.cW(e,i7)){case 4:return(e=_.hZ(e,IP4,4,i7))&&l.logStateTransition(_.PW(e,1)),!0;
case 5:return(e=_.hZ(e,knf,5,i7))&&l.logInternalEvent(_.PW(e,1)),!0}return!1},kM4=function(l){switch(l){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.VC(l)}};var dr4=function(l,e){var O=this;this.validator=l;this.messageListener=e;this.dismissCallback=function(){KMu(O,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17167_receiveMessage=function(E){E.type==="message"&&(E=E.event_,E!==null&&(new URL(O.iframe.src)).origin===E.origin&&O.validator(E.data,E.origin)&&!O.messageListener(E.data)&&(O.JSC$17167_resolveCb!==void 0&&O.JSC$17167_resolveCb(E.data),jKO(O)))}},nEu=function(l,e,O){l.uiHandler!==void 0&&KMu(l,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(E,J){l.JSC$17167_resolveCb=E;l.JSC$17167_rejectCb=J;l.iframe=document.createElement("iframe");_.H2(l.iframe,e);l.uiHandler=O.displayContent(l.iframe,l.dismissCallback);_.f4(window,"message",l.JSC$17167_receiveMessage,!1,l)})},KMu=function(l,e){l.JSC$17167_rejectCb!==void 0&&l.JSC$17167_rejectCb(e);
jKO(l)},jKO=function(l){l.uiHandler!==void 0&&l.uiHandler.hideContent();
_.px(window,"message",l.JSC$17167_receiveMessage,!1,l);l.JSC$17167_resolveCb=void 0;l.JSC$17167_rejectCb=void 0;l.uiHandler=void 0;l.iframe=void 0};var HTh=function(l){if(l===2){var e;l=((e=window)==null?0:e.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return l},AGF=function(l){l=HTh(l);
switch(l){case 0:return"light";case 1:return"dark";default:_.VC(l)}};var gEu=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),cMO=function(l,e){this.JSC$17179_linkingSession=l;this.noticeConfig=e;this.displayInfoMap=new Map;var O=new Map;if(_.p2(this.JSC$17179_linkingSession,Tgu,7))for(l=_.Cu(this.JSC$17179_linkingSession,Tgu,7),l=_.e$(l,Rj3,1,_.Oo()),l=_.b(l),e=l.next();!e.done;e=l.next())e=e.value,O.set(_.PW(e,1),_.TXt(_.Cu(e,_.Ccu,3)));if(O.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){e=this.noticeConfig.enabledDataUsageNoticeUis;l=e.has(0)?O.get(1):void 0;e=e.has(1)?O.get(2):void 0;O=l!==void 0&&e!==void 0?O.get(3):void 0;var E=this.noticeConfig.nestedOrigins;var J=new yMH;var z=new gB;J=_.Jz(J,2,i7,z);z=new yMH;var M=new gB;z=_.Jz(z,3,i7,M);M=[];l!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:l,lastEvent:J,nestedOrigins:E}]),M.push({trustedUrl:l,lastEvent:J,nestedOrigins:E}));e!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:e,lastEvent:z,nestedOrigins:E}]),M.push({trustedUrl:e,lastEvent:z,nestedOrigins:E}));O!==void 0?this.displayInfoMap.set(3,[{trustedUrl:O,lastEvent:z,nestedOrigins:E}]):this.displayInfoMap.set(3,M)}};var FMu=function(l){var e=new gDz;this.galService=l;this.galCache=e};
FMu.prototype.getLink=function(l){var e=l.serviceId;var O=l.scopes;var E=l.capabilities;var J=l.linkName;var z=this,M;return _.V(function(Z){if(E!==void 0&&O!==void 0)throw Error("Yj");M=wi4(z.galCache,e,O,E,J);return M!==null?Z.return(M):Z.return(z.galService.getLink({serviceId:e,sessionId:Math.floor(Math.random()*2147483648),scopes:O,capabilities:E,linkName:J}).then(function(u){u=KB4(u);var d=z.galCache;d.storage.has(e)?d.storage.get(e).push(u):d.storage.set(e,[u]);return u}))})};
FMu.prototype.deleteLink=function(l,e,O){var E=this;return _.V(function(J){AMz(E.galCache,l,O);return J.return(E.galService.deleteLink({serviceId:l,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:e,linkName:O}).then(function(){return!0}))})};var Rsz=function(l,e){var O=this;this.validator=l;this.msgHandler=e;this.closedPopupTimeout=this.JSC$17201_rejectCb=this.JSC$17201_resolveCb=this.popup=null;this.JSC$17201_receiveMessage=function(E){if(E!==null&&(E=E.event_,E.source===O.popup)){var J=E.data;if(O.validator(J,E.origin)){var z;(z=O.msgHandler)!=null&&z.call(O,J)||(O.JSC$17201_resolveCb!==null&&O.JSC$17201_resolveCb(J),fP4(O))}}}};
Rsz.prototype.open=function(l,e){var O=this;this.popup!==null&&TCf(this);return new Promise(function(E,J){O.JSC$17201_resolveCb=E;O.JSC$17201_rejectCb=J;O.popup=_.FC(window,l,"",e);_.f4(window,"message",O.JSC$17201_receiveMessage,!1,O);sKu(O)})};
var TCf=function(l,e){l.JSC$17201_rejectCb!==null&&l.JSC$17201_rejectCb(e);fP4(l)},fP4=function(l){l.closedPopupTimeout&&(l.closedPopupTimeout.cancel(),l.closedPopupTimeout=null);
l.popup&&l.popup.close();_.px(window,"message",l.JSC$17201_receiveMessage,!1,l);l.popup=null;l.JSC$17201_resolveCb=null;l.JSC$17201_rejectCb=null},sKu=function(l){l.closedPopupTimeout=_.Jzq(100).then(function(){l.popup?l.popup.closed?Gnu(l):sKu(l):TCf(l,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Gnu=function(l){l.closedPopupTimeout=_.Jzq(100).then(function(){TCf(l,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var BCO=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),PVu=function(l,e,O,E,J,z,M,Z,u,d){var g=this;this.serviceId=l;this.sessionId=e;this.galService=O;this.oauthDetails=E;this.galLogger=J;this.interactionMode=z;this.redirectServiceUrl=M;this.consentLanguageKeys=Z;this.dynamicUrlParameters=u;this.partnerConfigMinReadTimestamp=d;this.started=!1;this.JSC$17207_dataValidator=function(w,
n){var k=BCO.has(n);k||g.redirectServiceUrl===void 0||(k=g.redirectServiceUrl===n);return k?w.sentinel==="gdi":!1}};
PVu.prototype.complete=function(){var l=this,e;return _.V(function(O){if(l.interactionMode!==1)return O.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=nj.getRedirectStateFromUri();return e===null?O.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):O.return(Ucu(l,e))})};
PVu.prototype.start=function(){var l=this,e;return _.V(function(O){if(l.started)return O.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.BW(l.oauthDetails,1))return O.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(l.interactionMode===1)return nj.setLocation(_.BW(l.oauthDetails,1)),O.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));l.started=!0;l.galLogger.logStateTransition(5);
e=nj.getPostMessagePopup(l.JSC$17207_dataValidator);return O.return(e.open(_.BW(l.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(E){l.started=!1;var J=l.galLogger;if((E==null?void 0:E.error)!==void 0)throw J.logInternalEvent(59),Error("Zj");if((E==null?void 0:E.redirect_state)===void 0)throw J.logInternalEvent(131),Error("$j");return Ucu(l,E.redirect_state)}).catch(function(E){l.started=
!1;
return E.errorCode!==void 0?{statusCode:E.errorCode,statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Ucu=function(l,e){return _.V(function(O){return O.return(Yho(l.galService,{serviceId:l.serviceId,sessionId:l.sessionId,dynamicUrlParameters:l.dynamicUrlParameters,redirectState:e,consentLanguageKeys:l.consentLanguageKeys,partnerConfigMinReadTimestamp:l.partnerConfigMinReadTimestamp}).then(function(E){var J={statusCode:1,link:KB4(E.getLink())};$GO(_.jR(E,3))!==void 0&&(J.callerState=$GO(_.jR(E,3)));l.galLogger.logInternalEvent(134);return J}))})},nj={getPostMessagePopup:function(l){return new Rsz(l)},
getRedirectStateFromUri:function(){var l=_.rk(nj.getLocation()).fragment_;return(new _.Cn(l)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(l){_.qm(window.location,_.nU(l))},
createOAuthFlow:function(l,e){return new PVu(l.serviceId,l.sessionId,l.galService,e,l.galLogger,l.interactionMode,l.redirectServiceUrl,l.consentLanguageKeys,l.dynamicUrlParameters,l.partnerConfigMinReadTimestamp)}};var hsu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(hsu,_.Gu);var LMu=_.ev(hsu);var tp0=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),qhH=function(l,e,O,E,J,z,M,Z,u){var d=this;this.serviceId=l;this.sessionId=e;this.galService=O;this.gsiWebFlowDetails=E;this.colorScheme=J;this.showCloseOption=z;this.galLogger=M;this.interactionMode=Z;this.redirectServiceUrl=u;this.started=!1;this.JSC$17219_dataValidator=function(g,w){var n=tp0.has(w);n||d.redirectServiceUrl===
void 0||(n=d.redirectServiceUrl===w);return n?g.sentinel==="gal":!1};
this.logEventProcessor=function(g){return g.result?(g=iZz(g.result))?wmf(d.galLogger,g):!1:!1}};
qhH.prototype.complete=function(){var l=this,e,O;return _.V(function(E){if(l.interactionMode!==1)return E.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=aS.getRedirectStateFromUri();if(e===void 0)return l.galLogger.JSC$17159_logErrorEvent(131),E.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return O=vDO(l,e),E.return(NCP(l,O))}catch(J){return E.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
qhH.prototype.start=function(){var l=this,e;return _.V(function(O){if(l.started)return O.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.BW(l.gsiWebFlowDetails,1))return O.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(l.interactionMode===1)return aS.setLocation(rMO(l,_.BW(l.gsiWebFlowDetails,1))),O.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
l.started=!0;e=aS.getPostMessagePopup(l.JSC$17219_dataValidator,l.logEventProcessor);return O.return(e.open(rMO(l,_.BW(l.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(E){l.started=!1;if((E==null?void 0:E.result)===void 0)throw l.galLogger.JSC$17159_logErrorEvent(131),Error("$j");E=vDO(l,E.result);return NCP(l,E)}).catch(function(E){l.started=!1;
return E.errorCode!==void 0?{statusCode:E.errorCode,statusMessage:E.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var rMO=function(l,e){l=["result_channel",l.interactionMode===1?"2":"1","color_scheme",AGF(l.colorScheme),"show_close_option",l.showCloseOption];return GrO(e,l)},NCP=function(l,e){if(e!==null&&_.p2(e,wB,2)){var O,E=e==null?void 0:(O=_.Cu(e,wB,2))==null?void 0:_.PW(O,2);
E&&l.galLogger.JSC$17159_logErrorEvent(kM4(E));return mcf(_.Cu(e,wB,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 l.galService.getLink({serviceId:l.serviceId,sessionId:l.sessionId,consistencyKey:_.BW(e,1)}).then(function(J){J=KB4(J);l.galLogger.logInternalEvent(134);return{statusCode:1,link:J}})},vDO=function(l,e){e=LMu(e);
if(!_.p2(e,wB,2)&&_.BW(e,1)==="")throw l.galLogger.JSC$17159_logErrorEvent(5),Error("ak");return e},aS={getPostMessagePopup:function(l,e){return new Rsz(l,e)},
getRedirectStateFromUri:function(){return _.DF(_.rk(aS.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(l){_.qm(window.location,_.nU(l))},
createStreamlinedFlow:function(l,e){return new qhH(l.serviceId,l.sessionId,l.galService,e,l.colorScheme,l.showCloseOption,l.galLogger,l.interactionMode,l.redirectServiceUrl)}};var LB3=function(){var l=_.Wux("GAL");this.storage=l?new _.ck(l):null};var YI=function(){};
_.m(YI,pih);YI.prototype.logStateTransition=function(){};
YI.prototype.logInternalEvent=function(){};
YI.prototype.JSC$17159_logErrorEvent=function(){};var DcO=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(DcO,_.Gu);DcO.prototype.getCompletionUrl=function(){return _.BW(this,15)};var hV=function(l,e,O,E,J,z){this.serviceId=l;this.environment=e;this.sessionId=O;this.colorSchemeSelected=E;this.colorThemeDisplayed=J;this.JSC$17232_transport=z;this.currentState=1};
_.m(hV,pih);hV.prototype.logStateTransition=function(l){var e=Sh3(this);e=_.oC(e,3,this.currentState);e=_.oC(e,1,l);this.currentState=l;l=v1H(1);this.dispatch(e,l)};
hV.prototype.logInternalEvent=function(l){l=v1H(l);this.dispatch(Sh3(this),l)};
hV.prototype.JSC$17159_logErrorEvent=function(l){var e=Sh3(this);e=_.oC(e,1,10);l=v1H(l);this.dispatch(e,l)};
var Sh3=function(l){var e=new DcO;e=_.oC(e,1,l.currentState);e=_.da(e,7,l.serviceId);var O,E;var J=((O=window)==null?0:(E=O.location)==null?0:E.href)?_.rk(window.location.href).JSC$8068_domain_:"NO_PACKAGE_NAME";O=_.da(e,8,J);O=_.oC(O,6,l.environment);O=_.da(O,5,"100");O=_.oC(O,11,l.colorSchemeSelected);return _.oC(O,12,l.colorThemeDisplayed)};
hV.prototype.dispatch=function(l,e){e===void 0&&(e=new _.dE);var O=e;l=l.serialize();O=_.da(O,8,l);_.cm(O,12,this.sessionId);this.JSC$17232_transport.dispatch(e)};var QKz=function(l,e){this.loggerType=l;this.sessionIndex=e!=null?e:0},xc0;
QKz.prototype.create=function(l,e,O,E,J){switch(this.loggerType){case 0:return new YI;case 1:return xc0||(xc0=(new _.Cb(555,this.sessionIndex.toString())).build()),new hV(l,e,O,E,J,xc0);default:_.VC(this.loggerType,"unknown logger type")}};var kr=[6,2,3,1],rG4=new Map([[4,1],[1,6],[2,2],[3,3]]),FB3={statusCode:7,statusMessage:"Failed to create flow object"},YWi=function(l,e,O,E,J,z,M,Z,u,d){this.serviceId=l;this.sessionId=e;this.config=O;this.galService=E;this.JSC$17239_linkingSession=J;this.googleScopes=z;this.callerState=M;this.consentLanguageKeys=Z;this.dynamicUrlParameters=u;this.partnerConfigMinReadTimestamp=d;this.currentFlow=0;E=this.JSC$17239_linkingSession;J=new Set;_.p2(E,GMP,1)&&J.add(1);_.p2(E,Gko,2)&&_.p2(E,BA3,6)&&J.add(2);
_.p2(E,sxf,3)&&_.p2(E,BA3,6)&&J.add(3);_.p2(E,fwC,4)&&J.add(6);this.supportedFlows=J;E=O.loggerType;J=O.clientEnvironment;a:{z=O.colorScheme;switch(z){case 0:z=1;break a;case 1:z=2;break a;case 2:z=3;break a;default:_.VC(z)}z=void 0}a:{M=O.colorScheme;M=HTh(M);switch(M){case 0:M=1;break a;case 1:M=2;break a;default:_.VC(M)}M=void 0}this.galLogger=(new QKz(E,O.authUser)).create(l,J,e,z,M)},eHF=function(l){return new Promise(function(e){var O,E,J,z,M,Z,u,d,g,w;
return _.V(function(n){switch(n.nextAddress){case 1:O=PN3(l.currentFlow,l.supportedFlows),E=!1,J=new cMO(l.JSC$17239_linkingSession,l.config.dataUsageNoticeConfig);case 2:if(O===void 0){n.jumpTo(4);break}_.b1(n,5);var k=J,y=O,c=void 0;E?y===1&&(c=k.displayInfoMap.get(2)):y===2||y===3?c=k.displayInfoMap.get(1):y===1&&(c=k.displayInfoMap.get(3));z=c?c:[];M=l.consentLanguageKeys;Z=_.b(z);u=Z.next();case 7:if(u.done)return l.currentFlow=O,_.C(n,RB0(lsP(l,M)),11);d=u.value;return _.C(n,IbP(d,l.config.dataUsageNoticeConfig.uiAdapter,
l.config.colorScheme,l.galLogger),10);case 10:g=n.yieldResult;if(g.statusCode!==1)return tUF(l.serviceId),l.currentFlow=0,e(At({statusCode:g.statusCode,statusMessage:g.statusMessage},l.callerState)),n.return();g.consentLanguageKeys!==void 0&&(M=g.consentLanguageKeys);u=Z.next();n.jumpTo(7);break;case 11:w=n.yieldResult;if(w.statusCode!==10)return w.statusCode!==6&&(tUF(l.serviceId),l.currentFlow=0),w.statusCode!==1&&l.callerState!==void 0&&(w.callerState=l.callerState),e(w),n.return();_.Q2(n,6);break;
case 5:_.u1(n);case 6:O=PN3(l.currentFlow,l.supportedFlows);E=!0;n.jumpTo(2);break;case 4:tUF(l.serviceId),l.currentFlow=0,e(At({statusCode:12,statusMessage:"Linking failed"},l.callerState)),_.Cl(n)}})})},vEF=function(l,e,O){l.currentFlow=e;
return TAO(lsP(l,O)).then(function(E){return E.statusCode===10&&l.config.interactionMode===1&&PN3(l.currentFlow,l.supportedFlows)!==void 0?eHF(l):E})},lsP=function(l,e){return{flowParams:{serviceId:l.serviceId,
sessionId:l.sessionId,galService:l.galService,galLogger:l.galLogger,interactionMode:l.config.interactionMode,redirectServiceUrl:l.config.redirectServiceUrl,colorScheme:l.config.colorScheme,consentLanguageKeys:e,dynamicUrlParameters:l.dynamicUrlParameters,showCloseOption:l.config.showCloseOption,partnerConfigMinReadTimestamp:l.partnerConfigMinReadTimestamp},currentFlow:l.currentFlow,config:l.config,session:l.JSC$17239_linkingSession,googleScopes:l.googleScopes,callerState:l.callerState}};var SWF=function(l,e){this.config=l;this.galService=e.getService();this.JSC$17252_galRepository=e.JSC$17270_galRepository};
SWF.prototype.getLink=function(l,e){return Ok3(this,l,e)};
var Ok3=function(l,e,O){return l.JSC$17252_galRepository.getLink({serviceId:e,scopes:void 0,capabilities:void 0,linkName:O}).then(function(E){return{statusCode:1,link:E}}).catch(function(E){return{statusCode:Drh(E.code),
statusMessage:E.message}})};
SWF.prototype.deleteLink=function(l,e){return this.JSC$17252_galRepository.deleteLink(l,this.config.accountLinkingEntryPoint,e).then(function(){return{statusCode:1}}).catch(function(O){return{statusCode:Drh(O.code),
statusMessage:O.message}})};
SWF.prototype.startLinkingSession=function(l){var e=l.serviceId;var O=l.sessionId;return hBH({serviceId:e,sessionId:O!==void 0?O:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:l.loginHint,callerState:l.callerState,consentLanguageKeys:l.consentLanguageKeys,linkName:l.linkName,dynamicUrlParameters:l.dynamicUrlParameters,partnerConfigMinReadTimestamp:l.partnerConfigMinReadTimestamp})};var Ly=function(l,e,O,E,J,z,M){this.apiKey=e;this.authUser=O;this.oauthToken=E;this.bucket=J;this.locale=z;this.galSdkEventHandler=M;if(E===void 0){if(e===void 0)throw Error("bk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new WMh(l)};
Ly.prototype.deleteLink=function(l){var e=l.serviceId;var O=l.sessionId;var E=l.accountLinkingEntryPoint;var J=l.linkName;var z=this,M;return _.V(function(Z){var u=(new mT).setHeader(tV(z,O));var d=EJ4({serviceId:e,linkName:J});u=_.EN(u,2,d);M=_.tZ(u,3,E);return Z.return(z.makeRequest(z.galServiceClient.deleteLink,M,[1,3],[2,4]))})};
var Yho=function(l,e){var O=e.serviceId;var E=e.sessionId;var J=e.dynamicUrlParameters;var z=e.redirectState;var M=e.consentLanguageKeys;var Z=e.partnerConfigMinReadTimestamp;var u;return _.V(function(d){var g=(new py).setHeader(tV(l,E,J));g=_.Xi(g,2,O);u=_.Xi(g,4,z);M!==void 0&&_.Xi(u,5,M);Z!==void 0&&_.EN(u,6,Z);return d.return(l.makeRequest(l.galServiceClient.JSC$17138_finishOAuth,u,[1,3],[2,4]))})};
Ly.prototype.getLink=function(l){var e=l.serviceId;var O=l.sessionId;var E=l.scopes;var J=l.capabilities;var z=l.consistencyKey;var M=l.linkName;var Z=this,u;return _.V(function(d){var g=(new Ky).setHeader(tV(Z,O)),w=EJ4({serviceId:e,scopes:E,capabilities:J,linkName:M});u=_.EN(g,2,w);z!==void 0&&(g=AmP(),g=_.Xi(g,2,z),_.EN(u,3,g));return d.return(Z.makeRequest(Z.galServiceClient.getLink,u,[1,3],[2,4]))})};
var sDu=function(l,e){var O=e.serviceId;var E=e.sessionId;var J=e.googleScopes;var z=e.consistencyKey;var M;return _.V(function(Z){var u=(new yg).setHeader(tV(l,E));u=_.Xi(u,2,O);var d=Array.from(J.values());u=_.I5(u,3,d,_.G0);d=AmP();d=_.Xi(d,2,z);M=_.EN(u,4,d);return Z.return(l.makeRequest(l.galServiceClient.JSC$17138_depositGoogleCredential,M,[1,3],[2,4]))})};
Ly.prototype.startLinkingSession=function(l){var e=l.serviceId;var O=l.sessionId;var E=l.scopes;var J=l.capabilities;var z=l.loginHint;var M=l.supportedFlows;var Z=l.completionUrl;var u=l.usePingPong;var d=l.twoWayLinking;var g=l.accountLinkingEntryPoint;var w=l.callerState;var n=l.consentLanguageKeys;var k=l.googleScopes;var y=l.dataUsageNoticeConfig;var c=l.linkName;var f=l.dynamicUrlParameters;var P=l.partnerConfigMinReadTimestamp;var h=this,N,t;return _.V(function(r){if(J!==void 0&&E!==void 0)throw Error("Yj");
var D=(new j5).setHeader(tV(h,O,f));N=_.Xi(D,2,e);c!==void 0&&_.Xi(N,14,c);if(J!==void 0){D=N;var b2=Array.from(J.values());_.I5(D,5,b2,_.G0)}else E!==void 0&&(D=N,b2=Array.from(E.values()),_.I5(D,3,b2,_.G0));Z!==void 0&&_.Xi(N,6,Z);u!==void 0&&_.Tz(N,15,u);M!==void 0&&(D=N,b2=Array.from(M.values()),_.I5(D,4,b2,_.nP));if(d!==void 0){if(d&&(!k||k.size===0))throw Error("ck");_.Tz(N,8,d)}g!==void 0&&_.tZ(N,9,g);z!==void 0&&_.Xi(N,13,z);w!==void 0&&(D=N,b2=(new TextEncoder).encode(w),_.mb(D,12,_.sx(b2,
!1),_.TS()));n!==void 0&&_.Xi(N,16,n);P!==void 0&&_.EN(N,18,P);if(y!==void 0&&y.size>0||k!==void 0&&k.size>0)t=new PpO,k!==void 0&&k.size>0&&(D=t,b2=Array.from(k.values()),_.I5(D,1,b2,_.G0)),y!==void 0&&(y.has(0)&&_.M32(t,2,_.nP,1,_.ai),y.has(1)&&_.M32(t,2,_.nP,2,_.ai)),_.EN(N,17,t);return r.return(h.makeRequest(h.galServiceClient.startLinkingSession,N,[1],[2]))})};
Ly.prototype.getMetadata=function(){var l=this,e,O;return _.V(function(E){e={};l.useFpa?(e["X-Goog-Api-Key"]=l.apiKey,e["X-Goog-AuthUser"]=l.authUser!==void 0?l.authUser.toString():"0",(O=_.Ynt([]))&&(e.Authorization=O)):e.Authorization="Bearer "+l.oauthToken;l.locale&&(e["accept-language"]=l.locale);return E.return(e)})};
Ly.prototype.makeRequest=function(l,e,O,E){var J=this,z;return _.V(function(M){if(M.nextAddress==1)return _.C(M,J.getMetadata(),2);z=M.yieldResult;JeO(J,O);return M.return(l.bind(J.galServiceClient)(e,z).finally(function(){JeO(J,E)}))})};
var JeO=function(l,e){l.galSdkEventHandler!==void 0&&e.forEach(function(O){l.galSdkEventHandler.onEvent(O)})},tV=function(l,e,O){var E=new aR;
e=_.mb(E,2,_.k4(e),0);e=_.tZ(e,5,3);O=_.I5(e,8,O,_.G0);l.bucket!==void 0&&_.Xi(O,1,l.bucket);return O},EJ4=function(l){var e=l.serviceId;
var O=l.scopes;var E=l.capabilities;l=l.linkName;if(E!==void 0&&O!==void 0)throw Error("Yj");var J=new idP;e=_.Xi(J,1,e);E!==void 0?(O=Array.from(E.values()),_.I5(e,5,O,_.G0)):O!==void 0&&(O=Array.from(O.values()),_.I5(e,3,O,_.G0));l!==void 0&&_.Xi(e,6,l);return e};var QDH=function(l){this.galService=new Ly(l.alsDomain,l.apiKey,l.authUser,l.oauthToken,l.bucket,l.locale,l.galSdkEventHandler);this.JSC$17270_galRepository=new FMu(this.galService)};
QDH.prototype.getService=function(){return this.galService};var X1o=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(X1o,_.Gu);var zHu=function(l){var e=new X1o;return _.oC(e,1,l)};
X1o.prototype.setErrorMessage=function(l){return _.da(this,2,l)};var bku=[0,_.E8,_.lQ,_.E8];var qE=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(qE,_.Gu);var MA4=[0,[1,2,3],_.O8,[0,mTi,KXh,-1],_.O8,[0,pfi,-1],_.el8];var VAH=[0,_.QK,1,_.E8,_.lQ,-1,1,_.JXx,_.SR,_.E8,-1,MA4];var Zk0=[0,_.E8,[0,_.JXx,_.SR,[0,_.lQ]],_.xh,[0,_.E8,-1]];var bD=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(bD,_.Gu);var uL4=[0,_.lQ,_.E8,-2,_.QK,_.E8,_.QK,_.E8,-2,1,_.xh];var C3f=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(C3f,_.Gu);var oJ3=[0,_.QK];var $si=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m($si,_.Gu);var WI4=[0,_.E8,Zk0,oJ3,uL4,VAH];var pcf=_.QI($si,WI4);var dsC=[0,dcP];var fCu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(fCu,_.Gu);var gJO=[0,[1,3],Rcu,_.E8,Rcu];var XT=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(XT,_.Gu);var ikh=[0,_.E8];var w1H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(w1H,_.Gu);var zI=function(l){return _.hZ(l,X1o,2,JV)},AeP=function(l){var e=new w1H;
return _.Jz(e,2,JV,l)},JV=[1,
2];var nJu=[0,JV,_.O8,ikh,_.O8,bku,_.ea,gJO,1,_.E8,dsC];var ash=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ash,_.Gu);var Isf=function(l){var e=new ash;return _.Jz(e,3,kKz,l)},kKz=[2,
3];var vA=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(vA,_.Gu);var msh=function(l,e){return _.EN(l,2,e)},yeu=function(l,e){return _.EN(l,8,e)},p1o=function(l,e){return _.EN(l,3,e)};var KIO=[0,_.E8,nJu,WI4,_.z4x,[0,[5,6],[0,_.E8,-2],[0,_.QK,_.E8,_.lQ],[0,MA4],[0,_.lQ,_.E8,-1,_.Xh1,_.E8],_.O8,[0,[0,_.QK],_.E8,-1],_.O8,[0,[3,4],_.E8,-1,_.O8,[0,[0,_.E8,_.xh]],_.O8,[0,[0,[0,[1,2],_.O8,[0],_.O8,[0]]]]]],_.z4x,-1,[0,kKz,_.E8,_.O8,ikh,_.O8,bku,_.ea,gJO,[0,dcP]]];var j9i=_.QI(vA,KIO),Hki=_.xH(KIO);var ce0=function(){_.y6.call(this)};
_.m(ce0,_.y6);ce0.prototype.init=function(){};
new ce0;var FIO=_.E9(["data-"]),fsu=_.E9(["aria-"]),RHu=_.E9(["aria-"]),NE=function(l,e){this.isLatencyMeasurementExperiment=l===void 0?!1:l;this.enableDialogA11yFix=e===void 0?!1:e;this.JSC$17299_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.F1x(_.Op.location.href)},j4h=function(l,e){l.onConsentPrimitiveShownCallback=e},T$0=function(l,e){return l.overriddenIframeLoadTimeout?l.overriddenIframeLoadTimeout:e!==void 0?e:5E3},c$P=function(l){if(l.prewarmPromise!==void 0)return l.prewarmPromise;
l.prewarmPromise=new Promise(function(e,O){rW(l,1);s9i(l,GKP(l,!0),B$z(l));l.iframe?l.prewarmChannel||P3O(l,l.iframe,e):O(Error("dk"))});
l.prewarmPromise.finally(function(){l.prewarmPromise=void 0});
return l.prewarmPromise};
NE.prototype.showPrimitive=function(){var l=this;if(this.consentPromise!==void 0)return this.consentPromise;var e=Date.now();UsH(this,e);this.consentPromise=new Promise(function(O,E){rW(l,0,e);var J=l.isDarkTheme();l.isLatencyMeasurementExperiment||l.initialLoadingStrategy===1||l.initialLoadingStrategy===2||(l.loadingBar||(l.loadingBar=Orz(getComputedStyle(document.body).direction==="rtl",J),l.loadingBar.style.position="fixed",l.loadingBar.style.zIndex="15000"),document.body.appendChild(l.loadingBar));
s9i(l,GKP(l),B$z(l));l.iframe?l.channel||Y64(l,l.iframe,O,E):(hHH(l),E(Error("dk")))});
this.consentPromise.finally(function(){l.consentPromise=void 0});
return this.consentPromise};
var Y64=function(l,e,O,E){var J,z;_.V(function(M){switch(M.nextAddress){case 1:rW(l,3);J=!1;setTimeout(function(){if(!J){hHH(l);LIi(l);tAi(l);var Z=zHu(7).setErrorMessage("Timeout connecting to iframe");O(yeu(msh(new vA,AeP(Z)),Isf(Z)))}},T$0(l,q6z(l)));
if(!l.prewarmPromise){M.jumpTo(2);break}_.b1(M,3);return _.C(M,l.prewarmPromise,5);case 5:_.Q2(M,2);break;case 3:_.u1(M),z=zHu(4).setErrorMessage("Error while prewarming."),O(yeu(msh(new vA,AeP(z)),Isf(z)));case 2:l.prewarmChannel&&l.prewarmChannel.send(Hki(p1o(new vA,l.consentPrimitiveRequest))),l.channel=_.zP({destination:l.JSC$17299_win,iframe:e,origin:vJi(l),channelName:"cpw",onEstablished:function(){J=!0;hHH(l);l.isLatencyMeasurementExperiment||(l.JSC$17299_previousBodyOverflow=document.body.style.overflow,
l.JSC$17299_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,l.JSC$17299_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",l.enableDialogA11yFix&&window.addEventListener("blur",l.focusChangeListener));var Z=l.iframe;Z.style.bottom="0";Z.style.position="fixed";Z.style.right="0";Z.style.border="none";Z.style.left="0";Z.style.top=
"0";Z.style.zIndex="5000";Z.style.pointerEvents="";Z.style.visibility="";l.initialLoadingStrategy===2||l.initialLoadingStrategy===3?rW(l,4):rW(l,6);var u;(u=l.onConsentPrimitiveShownCallback)==null||u.call(l)},
onMessage:function(Z){Z=j9i(Z.data);switch(_.PW(Z,1)){case 1:LIi(l);var u=EZC(_.Cu(Z,_.r$,7));u&&(l.initialLoadingStrategy!==2&&l.initialLoadingStrategy!==3||rW(l,6,u),rW(l,5,u));if(u=EZC(_.Cu(Z,_.r$,6)))rW(l,7,u),rW(l,8);var d,g;((d=_.Cu(Z,w1H,2))==null?void 0:_.cW(d,JV))!==0&&((g=_.Cu(Z,ash,8))==null?void 0:_.cW(g,kKz))!==0||E(Error("ek"));O(Z);break;case 2:tAi(l)}}}),_.Cl(M)}})},P3O=function(l,e,O){l.prewarmChannel=_.zP({destination:l.JSC$17299_win,
iframe:e,origin:vJi(l),channelName:"pwcp",onEstablished:function(){rW(l,2);O()}})},vJi=function(l){var e=_.Z9(l.src).toString();
return e&&e.indexOf("://")<0&&e.indexOf("//")!==0?l.origin:_.F1x(e)},GKP=function(l,e){e=e===void 0?!1:e;
var O,E=new Map([["origin",l.origin],["hl",(O=N$u(l))!=null?O:null]]);e&&E.set("pw","1");e=_.b([["cpr",l.consentPrimitiveRequest.serialize()]]);for(O=e.next();!O.done;O=e.next()){var J=_.b(O.value);O=J.next().value;J=J.next().value;E.set(O,J)}l.isDarkTheme()&&E.set("color_scheme","dark");return _.EP(l.src,E)},hHH=function(l){l.isLatencyMeasurementExperiment||l.loadingBar&&document.body.removeChild(l.loadingBar)};
NE.prototype.getSrc=function(){var l=_.Es(this.origin),e;var O=(e=_.Cu(this.consentPrimitiveRequest,C3f,3))==null?void 0:_.Eo(e,1);e="consent.google.com";O=O?"/u/"+encodeURIComponent(O.toString()):"";(l==null?0:l.endsWith("youtube.com"))?e="consent.youtube.com":(l=l==null?void 0:l.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(e="consent.google."+((l[1]?"co.":"")+encodeURIComponent(l[2])));return _.VS("https://"+e+"/signedin"+O+"/landing")};
var s9i=function(l,e,O){l.iframe||(l.iframe=document.createElement("iframe"),l.iframe.style.width="100%",l.iframe.style.height="100%",O!==112496729&&(l.iframe.style.colorScheme="auto"),l.isLatencyMeasurementExperiment&&(l.iframe.style.display="none"),_.H2(l.iframe,e),l.iframe.setAttribute("jsname","C5o1O"),reH(l.iframe),document.body.appendChild(l.iframe))},reH=function(l){l.style.bottom="-200vh";
l.style.position="fixed";l.style.right="-200vw";l.style.border="";l.style.left="";l.style.top="";l.style.zIndex="";l.style.pointerEvents="none";l.style.visibility="hidden"},LIi=function(l){l.iframe&&(l.isLatencyMeasurementExperiment||(l.JSC$17299_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=l.JSC$17299_previousHtmlOverscroll),l.JSC$17299_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=l.JSC$17299_previousBodyOverscroll),l.JSC$17299_previousBodyOverflow!==
void 0&&(document.body.style.overflow=l.JSC$17299_previousBodyOverflow),l.enableDialogA11yFix&&DsC(l,!1)),reH(l.iframe))};
NE.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(DsC(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var DsC=function(l,e){var O,E,J=(O=l.iframe)==null?void 0:(E=O.parentElement)==null?void 0:E.children;if(J)for(O=0;O<J.length;O++)E=J[O],E!==l.iframe&&(e?(E.hasAttribute("aria-hidden")&&_.hz([_.lX(FIO)],E,"data-old-aria-hidden",E.getAttribute("aria-hidden")),_.hz([_.lX(fsu)],E,"aria-hidden","true")):(E.removeAttribute("aria-hidden"),E.hasAttribute("data-old-aria-hidden")&&(_.hz([_.lX(RHu)],E,"aria-hidden",E.getAttribute("data-old-aria-hidden")),E.removeAttribute("data-old-aria-hidden"))))},rW=function(l,
e,O){var E;
(E=l.latencyCallback)==null||E.call(l,{latencyType:e,timestampEpochMillis:O!=null?O:Date.now()})};var S63=function(l,e,O){NE.call(this,e,O===void 0?!1:O);this.consentPrimitiveRequest=l;l=N$u(this);_.QUh(l);this.src=this.getSrc();var E;this.initialLoadingStrategy=(E=_.Cu(this.consentPrimitiveRequest,bD,4))==null?void 0:_.PW(E,4)},Q90;
_.m(S63,NE);var Ks0=function(l){var e=_.a("enable_primitive_dialog_aria_hide_siblings");l={request:l,enableDialogA11yFix:e===void 0?!1:e};Q90||(Q90=new S63(l.request,l.isLatencyMeasurementExperiment||_.PW(l.request,1)===2,l.enableDialogA11yFix));return Q90},N$u=function(l){var e;
return(e=_.Cu(l.consentPrimitiveRequest,bD,4))==null?void 0:_.BW(e,1)},UsH=function(l,e){if(!_.p2(l.consentPrimitiveRequest,qE,5)){var O=l.consentPrimitiveRequest,E=new qE;
_.EN(O,5,E)}var J;if((J=_.Cu(l.consentPrimitiveRequest,qE,5))==null||_.Cqu(_.yK(J,8))==null){var z;(z=_.Cu(l.consentPrimitiveRequest,qE,5))!=null&&_.cm(z,8,e)}},B$z=function(l){var e;
return(e=_.Cu(l.consentPrimitiveRequest,qE,5))==null?void 0:_.Eo(e,1)};
S63.prototype.isDarkTheme=function(){var l;return((l=_.Cu(this.consentPrimitiveRequest,bD,4))==null?void 0:_.PW(l,2))===2};
var q6z=function(l){var e;return((e=_.Cu(l.consentPrimitiveRequest,bD,4))==null?void 0:_.Eo(e,5))||void 0},tAi=function(l){l.channel=void 0;
l.prewarmChannel=void 0;l.iframe&&(document.body.contains(l.iframe)&&document.body.removeChild(l.iframe),l.iframe=void 0);Q90=void 0},FsF=function(l){return NE.prototype.showPrimitive.call(l).then(function(e){return _.Cu(e,w1H,2)})};for(var Dz={},xsF=(Dz[64]="ma",Dz[73]="ogb",Dz[89]="cr",Dz[21]="test",Dz[0]="unkn",Dz[137]="con",Dz[155]="hl",Dz[78]="yt",Dz[171]="lp",Dz[172]="ap",Dz[177]="amo",Dz[178]="pqe",Dz[74]="gg",Dz[1]="gm",Dz[140]="am",Dz[193]="sc",Dz),lLF=_.b(Object.keys(xsF)),eho=lLF.next();!eho.done;eho=lLF.next());var ON3=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(ON3,_.Gu);var Exu=[0,[2,3,4],_.E8,y3f,Rcu,_.el8];var Jc0=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(Jc0,_.Gu);var Xni=_.QI(Jc0,[0,fu4,_.lQ,_.E8,_.lQ,_.E8,Exu]);var zhu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(zhu,_.Gu);zhu.prototype.getCommand=function(){return _.PW(this,1)};
var bN3=function(){var l=new zhu;return _.tZ(l,1,0)};var MdC=_.xH([0,fu4,_.lQ,[0,_.E8,_.lQ,-1]]);var VdP=new _.aa("s"),ZN3=new _.aa("t"),uiC=new _.aa("u"),CYu=new _.aa("v"),oxF=function(l,e,O){_.k$.call(this,VdP);this.mediaKey=l;this.photoUrl=e;this.photoSource=O};
_.m(oxF,_.k$);var $Ju=function(){_.k$.call(this,ZN3)};
_.m($Ju,_.k$);var WCO=function(l){l=l===void 0?!1:l;_.k$.call(this,uiC);this.isError=l};
_.m(WCO,_.k$);var dJ3=function(){_.k$.call(this,CYu)};
_.m(dJ3,_.k$);var gxP=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,nxo=function(l){if(typeof l=="string"){if(l.charAt(0)==".")return iNz(l.substr(1));if(l.charAt(0)=="["){var e=gxP.exec(l);l=l.indexOf("=")==-1?void 0:e[3];return wn4(e[1],l)}return Ach(l)}return l},iNz=function(l){return function(e){return e.getAttribute&&_.rE(e,l)}},wn4=function(l,e){return function(O){return e!==void 0?O.getAttribute&&O.getAttribute(l)==e:O.hasAttribute&&O.hasAttribute(l)}},Ach=function(l){l=l.toUpperCase();
return function(e){return(e=e.tagName)&&e.toUpperCase()==l}},aLH=function(){return!0};var S5=function(l,e){this.JSC$17327_key_=l;this.JSC$17327_value_=e},Qg=function(l){throw Error("fk`"+l.JSC$17327_key_);
},kiu=function(l,e){return new TypeError("gk`"+e+"`"+l.JSC$17327_key_+"`"+l.JSC$17327_value_+"`"+typeof l.JSC$17327_value_)};
S5.prototype.string=function(l){if(arguments.length==0)var e=ILo(this);else{var O;e=(O=mJ0(this))!=null?O:l}return e};
var ILo=function(l){var e=mJ0(l);e===null&&Qg(l);return e},mJ0=function(l){var e=l.JSC$17327_value_;
if(e==null)return null;if(typeof e==="string")return e;throw kiu(l,"string");};
S5.prototype.bool=function(l){if(arguments.length==0){var e=this.optionalBool();e===null&&Qg(this)}else{var O;e=(O=this.optionalBool())!=null?O:l}return e};
S5.prototype.optionalBool=function(){var l=this.JSC$17327_value_;if(l==null)return null;if(typeof l==="boolean")return l;if(typeof l==="string"){l=l.toLowerCase();if(l==="true"||l==="1")return!0;if(l==="false"||l==="0")return!1}throw kiu(this,"boolean");};
S5.prototype.number=function(l){if(arguments.length==0){var e=yc4(this);e===null&&Qg(this)}else{var O;e=(O=yc4(this))!=null?O:l}return e};
var yc4=function(l){var e=l.JSC$17327_value_;if(e==null)return null;if(typeof e==="number")return e;if(typeof e==="string"){var O=Number(e);if(!isNaN(O)&&(O!==0||e.trim().length!==0))return O}throw kiu(l,"number");};
S5.prototype.toString=function(){return ILo(this)};
S5.prototype.array=function(l){if(arguments.length==0){var e=pnz(this);e===null&&Qg(this);return e}e=pnz(this);return e==null?l:e};
var pnz=function(l){var e=l.JSC$17327_value_;if(e==null)return null;Array.isArray(e)||(typeof e!=="string"?e=[e]:(e=e.trim(),e=e==""?[]:e.split(",").map(function(O){return O.trim()})));
return KCO(l,e)},KCO=function(l,e){var O=l.JSC$17327_key_+"[";
return Array.from(e,function(E,J){return new S5(O+J+"]",E)})};
S5.prototype.object=function(l){var e=this.JSC$17327_value_;if(e==null)return l===void 0&&Qg(this),l;if(typeof e==="object"&&e.constructor===Object){l={};var O=this.JSC$17327_key_+".",E;for(E in e)l[E]=new S5(O+E,e[E]);return l}throw kiu(this,"object");};var xI=function(l){this.list_=j2h(l)},j2h=function(l){if(l instanceof xI)l=l.list_;
else if(l[0]instanceof xI){for(var e=new Set,O=0;O<l.length;O++)for(var E=_.b(l[O].list_),J=E.next();!J.done;J=E.next())e.add(J.value);l=e}return[].concat(_.kA(l))};
_.X=xI.prototype;_.X.each=function(l,e,O){((O===void 0?0:O)?ZvF:_.DB)(this.list_,l,e);return this};
_.X.size=function(){return this.list_.length};
_.X.isEmpty=function(){return this.list_.length===0};
_.X.get=function(l){return this.list_[l]||null};
_.X.el=function(){return this.list_[0]||null};
_.X.map=function(l,e){return _.pF(this.list_,l,e)};
_.X.equals=function(l){return this===l||_.bq(this.list_,l.list_)};
_.X.first=function(){return this.list_.length==0?null:new lh(this.list_[0])};
_.X.find=function(l){var e=[];this.each(function(O){O=O.querySelectorAll(String(l));for(var E=0;E<O.length;E++)e.push(O[E])});
return new xI(e)};
_.X.parent=function(){var l=[];this.each(function(e){(e=e.parentElement||null)&&!_.hq(l,e)&&l.push(e)});
return new xI(l)};
_.X.children=function(){var l=[];this.each(function(e){e=_.BY(e);for(var O=0;O<e.length;O++)l.push(e[O])});
return new xI(l)};
_.X.filter=function(l){l=_.WW(this.list_,nxo(l));return new xI(l)};
_.X.closest=function(l){var e=[],O=nxo(l),E=function(J){return _.JG(J)&&O(J)};
this.each(function(J){(J=_.R7(J,E,!0))&&!_.hq(e,J)&&e.push(J)});
return new xI(e)};
_.X.next=function(l){return HNh(this,_.DAS,l)};
_.X.prev=function(l){return HNh(this,T6O,l)};
var HNh=function(l,e,O){var E=[];var J=O?nxo(O):aLH;l.each(function(z){(z=e(z))&&J(z)&&E.push(z)});
return new xI(E)};
xI.prototype.setClass=function(l){return this.each(function(e){_.N8(e,l)})};
var cch=function(l,e){return l.each(function(O){_.XY(O,e)})},FCo=function(l,e){return l.each(function(O){_.EL(O,e)})};
xI.prototype.toggleClass=function(l,e){return e===!0?cch(this,l):e===!1?FCo(this,l):this.each(function(O){_.rE(O,l)?_.EL(O,l):_.XY(O,l)})};
xI.prototype.setText=function(l){return this.each(function(e){_.PY(e,l)})};
var fL4=function(l){l.each(function(e){e.removeAttribute("aria-hidden")})};
xI.prototype.getStyle=function(l){if(this.list_.length>0){var e=this.list_[0],O=e.style[_.Ic(l)];return typeof O!=="undefined"?O:e.style[_.V00(e,l)]||""}};
xI.prototype.getData=function(l){if(this.list_.length===0)return new S5(l,null);var e=dGP(this.list_[0],l);return new S5(l,e)};
xI.prototype.focus=function(l){try{l?this.el().focus(l):this.el().focus()}catch(e){}return this};
xI.prototype.click=function(){var l=_.HR(this.el());if(l.createEvent){var e=l.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,l.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(e)}else l=l.createEventObject(),l.clientX=0,l.clientY=0,l.screenX=0,l.screenY=0,l.altKey=!1,l.ctrlKey=!1,l.shiftKey=!1,l.button=0,this.el().fireEvent("onclick",l)};
var eP=function(l,e,O,E){function J(Z,u,d){var g=u;u&&u.parentNode&&(g=u.cloneNode(!0));Z(g,d)}
E=E===void 0?!1:E;if(l.list_.length==1){var z=l.list_[0],M=function(Z){return e(Z,z)};
O instanceof xI?O.each(M,void 0,E):Array.isArray(O)?(E?ZvF:_.DB)(O,M):M(O);return l}return l.each(function(Z){O instanceof xI?O.each(function(u){J(e,u,Z)}):Array.isArray(O)?_.DB(O,function(u){J(e,u,Z)}):J(e,O,Z)})};
_.X=xI.prototype;_.X.append=function(l){return eP(this,function(e,O){e&&O.appendChild(e)},l)};
_.X.appendTo=function(l){(new xI([l])).append(this);return this};
_.X.remove=function(){return eP(this,function(l,e){_.wk(e)},null)};
_.X.empty=function(){return eP(this,function(l,e){_.TP(e)},null)};
_.X.after=function(l,e){return eP(this,function(O,E){O&&_.GP(O,E)},l,!(e===void 0||e))};
_.X.before=function(l){return eP(this,function(e,O){e&&_.s8(e,O)},l)};
_.X.replaceWith=function(l){return eP(this,function(e,O){e&&_.vVq(e,O)},l)};
_.X.toggle=function(l){return this.each(function(e){_.Q6(e,l)})};
_.X.show=function(){return this.toggle(!0)};
_.X.hide=function(){return this.toggle(!1)};
_.X.trigger=function(l,e,O,E){return Rh4(this,l,e,O,E)};
var Rh4=function(l,e,O,E,J){return l.each(function(z){_.ndt(_.HR(z)).triggerWizEventInternal(z,e,O,E,J)})},lh=function(l,e){l instanceof xI&&(e=l.list_,l=null);
this.list_=j2h(l!=null?[l]:e)};
_.o_(lh,xI);_.X=lh.prototype;_.X.children=function(){return new xI(Array.prototype.slice.call(_.BY(this.list_[0])))};
_.X.each=function(l,e){l.call(e,this.list_[0],0);return this};
_.X.size=function(){return 1};
_.X.el=function(){return this.list_[0]};
_.X.first=function(){return this};var O2=function(l,e){e=e===void 0?window:e;this.hostId=l;this.JSC$17338_win=e;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17338_previousHtmlOverscroll=this.JSC$17338_previousBodyOverscroll=this.JSC$17338_previousBodyOverflow="";this.eventTarget=new _.Kx;this.JSC$17338_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
Gi4=function(l){var e=TdC(TdC(TdC(new s2u(78),"po"),"hppp"),"hhc");
e.authUser=Number(_.hT("SESSION_INDEX","0"));e.colorScheme=l;return e};
O2.prototype.getOrigin=function(){return this.origin?this.origin:_.bO(_.zG(_.XB(new _.Jg,this.JSC$17338_win.location.protocol),this.JSC$17338_win.location.hostname),this.JSC$17338_win.location.port).toString()};
O2.prototype.getTargetOrigin=function(){return _.bO(_.zG(_.XB(new _.Jg,this.scheme),this.domain),this.port)};
O2.prototype.preloadIframe=function(l){var e=this;if(this.iframeLoadPromise===void 0){var O=document.createElement("iframe");this.iframe=O;ZrH(O,l);this.iframeLoadPromise=new Promise(function(E,J){var z=!1,M=function(Z){Z.stopPropagation();O.removeEventListener("error",M);O.removeEventListener("securitypolicyviolation",M);J(Error("hk",{cause:Z}))};
O.addEventListener("error",M);O.addEventListener("securitypolicyviolation",M);setTimeout(function(){z||J(Error("ik"))},3E4);
BdP(e,O,function(){z=!0;O.removeEventListener("error",M);O.removeEventListener("securitypolicyviolation",M);E()})});
PY3(this);l=this.getTargetOrigin().toString();O.setAttribute("allow","camera "+l+"; display-capture "+l);this.parentElement.appendChild(O)}return this.iframeLoadPromise};
var hh0=function(l,e){var O,E;return _.V(function(J){if(J.nextAddress==1)return O=Orz(getComputedStyle(l.parentElement).direction==="rtl"),l.parentElement.appendChild(O),document.activeElement instanceof HTMLElement&&(l.elementToFocusAfterClose=document.activeElement),_.b1(J,2),_.C(J,l.preloadIframe(e),4);if(J.nextAddress!=2){l.parentElement.removeChild(O);l.JSC$17338_previousBodyOverflow=l.parentElement.style.overflow;l.JSC$17338_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
l.JSC$17338_previousBodyOverscroll=l.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";l.parentElement.style.overscrollBehavior="contain";l.parentElement.style.overflow="hidden";var z=l.iframe;z.style.bottom="0";z.style.border="none";z.style.height="100%";z.style.left="0";z.style.position=l.iframePosition;z.style.right="0";z.style.top="0";z.style.width="100%";z.style.zIndex="2202";z.setAttribute("aria-hidden","false");z.setAttribute("aria-modal","true");
l.opened=!0;UJo(l);return _.Q2(J,0)}E=_.u1(J);l.parentElement.removeChild(O);br4(l.isDarkTheme());YUC(l,!1);throw Error("jk",{cause:E});})},YUC=function(l,e){e=e===void 0?!0:e;
l.iframe!==void 0&&(LCu(l),document.documentElement.style.overscrollBehavior=l.JSC$17338_previousHtmlOverscroll,l.parentElement.style.overscrollBehavior=l.JSC$17338_previousBodyOverscroll,l.parentElement.style.overflow=l.JSC$17338_previousBodyOverflow,l.elementToFocusAfterClose!==void 0&&(l.elementToFocusAfterClose.focus(),l.elementToFocusAfterClose=void 0),e?PY3(l):(l.parentElement.removeChild(l.iframe),l.iframe=void 0,l.iframeLoadPromise=void 0,l.mainChannel=void 0),l.opened=!1)},LCu=function(l){l.backgroundElementsAriaHiddenIsNull&&
(fL4(l.backgroundElementsAriaHiddenIsNull),l.backgroundElementsAriaHiddenIsNull=void 0);
l.backgroundElementsAriaHiddenIsFalse&&(l.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","false")}),l.backgroundElementsAriaHiddenIsFalse=void 0);
l.backgroundElementsWithoutInert&&(l.backgroundElementsWithoutInert.each(function(e){e.removeAttribute("inert")}),l.backgroundElementsWithoutInert=void 0)},UJo=function(l){l.backgroundElementsAriaHiddenIsNull=(new lh(l.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")===null&&e!==l.iframe});
l.backgroundElementsAriaHiddenIsNull.each(function(e){e.setAttribute("aria-hidden","true")});
l.backgroundElementsAriaHiddenIsFalse=(new lh(l.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")==="false"&&e!==l.iframe});
l.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","true")});
l.backgroundElementsWithoutInert=(new lh(l.iframe.parentElement)).children().filter(function(e){return!e.hasAttribute("inert")&&e!==l.iframe});
l.backgroundElementsWithoutInert.each(function(e){e.setAttribute("inert","true")})},PY3=function(l){l=l.iframe;
l.style.bottom="-1000px";l.style.position="fixed";l.style.right="-1000px";l.style.border="";l.style.height="";l.style.left="";l.style.top="";l.style.width="";l.style.zIndex="";l.setAttribute("aria-hidden","true");l.setAttribute("aria-modal","false")};
O2.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var s2u=function(l,e){O2.call(this,xsF[l],e);this.options=[];this.style=""};
_.m(s2u,O2);var tdC=function(l){l.style="youtube";return l},qUz=function(l,e){l.eventTarget.listen(uiC,e);
return l},vxz=function(l,e){l.eventTarget.listen(VdP,e);
return l},TdC=function(l,e){l.options.push(e);
return l},NdH=function(l){var e=[l.getOrigin()];
l.ancestorOrigins&&e.push.apply(e,_.kA(l.ancestorOrigins));var O=new _.Jg(l.JSC$17338_win.location.href),E=l.startUrl?l.startUrl:l.options.includes("po")?"profile-picture/art":"profile-picture";e=ME(_.MD(l.getTargetOrigin(),E),"origin",e);l.startUrl&&_.S$(e,"startPath",l.startUrl);l.authUser>0&&_.S$(e,"authuser",l.authUser);l.pageId!==void 0&&_.S$(e,"pageId",l.pageId);_.S$(e,"hostId",l.hostId);l.jsMode!==void 0&&_.S$(e,"jsmode",l.jsMode);l.rectangleRatio!==void 0&&_.S$(e,"rectangleRatio",l.rectangleRatio);
l.options.length>0&&_.S$(e,"opts",l.options.join(","));try{for(var J=_.b(["utm_source","utm_medium","utm_campaign","utm_content"]),z=J.next();!z.done;z=J.next()){var M=z.value;_.DF(O,M)&&_.S$(e,M,_.DF(O,M))}var Z,u=(Z=l.hl)!=null?Z:_.DF(O,"hl");u!==void 0&&_.S$(e,"hl",u)}catch(d){if(!(d instanceof URIError))throw d;}l.colorScheme&&_.S$(e,"theme",l.colorScheme);l.style&&_.S$(e,"style",l.style);return e},rc4=function(l,e){l.mainChannel=_.zP({destination:l.JSC$17338_win,
iframe:e,origin:l.getTargetOrigin().toString(),channelName:"ow",onMessage:function(O){O=Xni(O.data);if(e===l.iframe)switch(_.PW(O,1)){case 1:l.eventTarget.dispatchEvent(new WCO);YUC(l);break;case 2:l.eventTarget.dispatchEvent(new oxF(_.BW(O,4),_.BW(O,2),_.PW(O,5),_.Cu(O,ON3,6)));break;case 0:var E;l.eventTarget.dispatchEvent(new $Ju(_.BW(O,2),(E=_.PW(O,3))!=null?E:0));break;case 3:l.eventTarget.dispatchEvent(new WCO(!0));YUC(l,!1);break;case 4:l.eventTarget.dispatchEvent(new dJ3)}}})},BdP=function(l,
e,O){_.zP({destination:l.JSC$17338_win,
iframe:e,origin:_.bO(_.zG(_.XB(new _.Jg,l.scheme),l.domain),l.port).toString(),channelName:"owi",onMessage:function(E){e===l.iframe&&(O!==void 0&&O(),rc4(l,e),l.opened&&l.mainChannel.send(MdC(bN3())),E.reply(),BdP(l,e))}})};
s2u.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?O2.prototype.preloadIframe.call(this,NdH(this).toString()):this.iframeLoadPromise};
s2u.prototype.openPicker=function(l){var e=this;return _.V(function(O){if(O.nextAddress==1)return e.startUrl=l?l:e.options.includes("po")?"profile-picture/art":"profile-picture",_.C(O,hh0(e,NdH(e).toString()),2);if(e.mainChannel){var E=e.mainChannel,J=E.send;var z=bN3();z=_.da(z,2,e.startUrl);J.call(E,MdC(z))}_.Cl(O)})};var DJu=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(DJu,_.Gu);_.X=DJu.prototype;_.X.getSize=function(){return WA(this,1)};
_.X.setSize=function(l){return _.L2(this,1,l)};
_.X.getWidth=function(){return WA(this,12)};
_.X.getHeight=function(){return WA(this,13)};
_.X.setCenterCrop=function(l){return _.b$(this,20,l)};
_.X.getHtml=function(){return _.T8(this,4)};
_.X.getToken=function(){return _.gk(this,24)};
_.X.setToken=function(l){return _.da(this,24,l)};
_.X.getBackgroundColor=function(){return WA(this,87)};
_.X.hasBackgroundColor=function(){return _.Ii(_.yK(this,87))!=null};
_.X.getStoryboardLevel=function(){return WA(this,109)};var E2=function(l){this.JSC$17346_value_=void 0;this.childNodes_={};if(l){var e=_.cnq(l);l=_.J6(l);for(var O=0;O<e.length;O++)this.set(e[O],l[O])}};
E2.prototype.set=function(l,e){SUi(this,l,e,!1)};
E2.prototype.add=function(l,e){SUi(this,l,e,!0)};
var SUi=function(l,e,O,E){for(var J=0;J<e.length;J++){var z=e.charAt(J);l.childNodes_[z]||(l.childNodes_[z]=new E2);l=l.childNodes_[z]}if(E&&l.JSC$17346_value_!==void 0)throw Error("kk`"+e);l.JSC$17346_value_=O},Q2u=function(l,e){for(var O=0;O<e.length;O++)if(l=l.childNodes_[e.charAt(O)],!l)return;
return l};
E2.prototype.get=function(l){return(l=Q2u(this,l))?l.JSC$17346_value_:void 0};
E2.prototype.getValues=function(){var l=[];xJ0(this,l);return l};
var xJ0=function(l,e){l.JSC$17346_value_!==void 0&&e.push(l.JSC$17346_value_);for(var O in l.childNodes_)xJ0(l.childNodes_[O],e)};
E2.prototype.getKeys=function(l){var e=[];if(l){for(var O=this,E=0;E<l.length;E++){var J=l.charAt(E);if(!O.childNodes_[J])return[];O=O.childNodes_[J]}lZu(O,l,e)}else lZu(this,"",e);return e};
var lZu=function(l,e,O){l.JSC$17346_value_!==void 0&&O.push(e);for(var E in l.childNodes_)lZu(l.childNodes_[E],e+E,O)};
_.X=E2.prototype;_.X.containsKey=function(l){return this.get(l)!==void 0};
_.X.containsValue=function(l){if(this.JSC$17346_value_===l)return!0;for(var e in this.childNodes_)if(this.childNodes_[e].containsValue(l))return!0;return!1};
_.X.clear=function(){this.childNodes_={};this.JSC$17346_value_=void 0};
_.X.remove=function(l){for(var e=this,O=[],E=0;E<l.length;E++){var J=l.charAt(E);if(!e.childNodes_[J])throw Error("lk`"+l);O.push([e,J]);e=e.childNodes_[J]}l=e.JSC$17346_value_;for(delete e.JSC$17346_value_;O.length>0;)if(E=O.pop(),e=E[0],E=E[1],e.childNodes_[E].isEmpty())delete e.childNodes_[E];else break;return l};
_.X.clone=function(){return new E2(this)};
_.X.getCount=function(){return Ps4(this.getValues())};
_.X.isEmpty=function(){return this.JSC$17346_value_===void 0&&_.mm.isEmpty(this.childNodes_)};var WPi=function(){if(!e1i){var l=e1i=new E2,e;for(e in O2P)l.add(e,O2P[e])}},e1i,Js=function(l,e){this.types=l;
this.setters=e},O2P={a:new Js([3,
0],[function(l,e){_.b$(l,21,e)},
function(l,e){_.L2(l,56,e)}]),
al:new Js([3],[function(l,e){_.b$(l,74,e)}]),
b:new Js([3,0],[function(l,e){_.b$(l,23,e)},
function(l,e){_.L2(l,38,e)}]),
ba:new Js([0],[function(l,e){_.L2(l,85,e)}]),
bc:new Js([0],[function(l,e){_.L2(l,87,e)}]),
br:new Js([0],[function(l,e){_.L2(l,86,e)}]),
c:new Js([3,0],[function(l,e){_.b$(l,2,e)},
function(l,e){_.L2(l,39,e)}]),
cc:new Js([3],[function(l,e){_.b$(l,51,e)}]),
ci:new Js([3],[function(l,e){_.b$(l,32,e)}]),
ckm:new Js([3],[function(l,e){_.b$(l,104,e)}]),
cp:new Js([0],[function(l,e){_.L2(l,92,e)}]),
cr:new Js([3],[function(l,e){_.b$(l,108,e)}]),
cv:new Js([0],[function(l,e){_.L2(l,94,e)}]),
d:new Js([3],[function(l,e){_.b$(l,3,e)}]),
dc:new Js([5],[function(l,e){_.da(l,99,e)}]),
df:new Js([3],[function(l,e){_.b$(l,80,e)}]),
dv:new Js([3],[function(l,e){_.b$(l,90,e)}]),
e:new Js([0],[function(l,e){_.L2(l,15,e)}]),
em:new Js([0],[function(l,e){_.L2(l,107,e)}]),
f:new Js([4],[function(l,e){_.da(l,16,e)}]),
fg:new Js([3],[function(l,e){_.b$(l,34,e)}]),
fh:new Js([3],[function(l,e){_.b$(l,30,e)}]),
fm:new Js([3],[function(l,e){_.b$(l,84,e)}]),
fo:new Js([2],[function(l,e){_.$P(l,79,_.ZO(e))}]),
ft:new Js([3],[function(l,e){_.b$(l,50,e)}]),
fv:new Js([3],[function(l,e){_.b$(l,31,e)}]),
g:new Js([3],[function(l,e){_.b$(l,14,e)}]),
gce:new Js([4],[function(l,e){_.da(l,112,e)}]),
gd:new Js([3],[function(l,e){_.b$(l,83,e)}]),
gm:new Js([3],[function(l,e){_.b$(l,105,e)}]),
h:new Js([3,0],[function(l,e){_.b$(l,4,e)},
function(l,e){_.L2(l,13,e)}]),
i:new Js([3],[function(l,e){_.b$(l,22,e)}]),
ic:new Js([0],[function(l,e){_.L2(l,71,e)}]),
id:new Js([3],[function(l,e){_.b$(l,70,e)}]),
il:new Js([3],[function(l,e){_.b$(l,96,e)}]),
ip:new Js([3],[function(l,e){_.b$(l,54,e)}]),
iv:new Js([0],[function(l,e){_.cm(l,75,e)}]),
j:new Js([1],[function(l,e){e=e==null?e:o6u(e);_.$P(l,29,e)}]),
k:new Js([3,0],[function(l,e){_.b$(l,17,e)},
function(l,e){_.L2(l,42,e)}]),
l:new Js([0],[function(l,e){_.L2(l,44,e)}]),
lf:new Js([3],[function(l,e){_.b$(l,65,e)}]),
lo:new Js([3],[function(l,e){_.b$(l,97,e)}]),
m:new Js([0],[function(l,e){_.L2(l,63,e)}]),
md:new Js([3],[function(l,e){_.b$(l,91,e)}]),
mm:new Js([4],[function(l,e){_.da(l,81,e)}]),
mo:new Js([3],[function(l,e){_.b$(l,73,e)}]),
mv:new Js([3],[function(l,e){_.b$(l,66,e)}]),
n:new Js([3],[function(l,e){l.setCenterCrop(e)}]),
nc:new Js([3],[function(l,e){_.b$(l,55,e)}]),
nd:new Js([3],[function(l,e){_.b$(l,53,e)}]),
ng:new Js([3],[function(l,e){_.b$(l,95,e)}]),
ngm:new Js([3],[function(l,e){_.b$(l,106,e)}]),
no:new Js([3],[function(l,e){_.b$(l,37,e)}]),
ns:new Js([3],[function(l,e){_.b$(l,40,e)}]),
nt0:new Js([4],[function(l,e){_.da(l,36,e)}]),
ntm:new Js([3],[function(l,e){_.b$(l,114,e)}]),
nu:new Js([3],[function(l,e){_.b$(l,46,e)}]),
nw:new Js([3],[function(l,e){_.b$(l,48,e)}]),
o:new Js([1,3],[function(l,e){e=e==null?e:o6u(e);_.$P(l,7,e)},
function(l,e){_.b$(l,27,e)}]),
p:new Js([3,0],[function(l,e){_.b$(l,19,e)},
function(l,e){_.L2(l,43,e)}]),
pa:new Js([3],[function(l,e){_.b$(l,61,e)}]),
pc:new Js([0],[function(l,e){_.L2(l,88,e)}]),
pd:new Js([3],[function(l,e){_.b$(l,60,e)}]),
pf:new Js([3],[function(l,e){_.b$(l,67,e)}]),
pg:new Js([3],[function(l,e){_.b$(l,72,e)}]),
pi:new Js([2],[function(l,e){_.$P(l,76,_.ZO(e))}]),
pp:new Js([3],[function(l,e){_.b$(l,52,e)}]),
pt:new Js([4],[function(l,e){_.da(l,111,e)}]),
q:new Js([4],[function(l,e){_.da(l,28,e)}]),
r:new Js([3,0],[function(l,e){_.b$(l,6,e)},
function(l,e){_.L2(l,26,e)}]),
ra:new Js([3],[function(l,e){_.b$(l,103,e)}]),
rf:new Js([3],[function(l,e){_.b$(l,100,e)}]),
rg:new Js([3],[function(l,e){_.b$(l,59,e)}]),
rh:new Js([3],[function(l,e){_.b$(l,49,e)}]),
rj:new Js([3],[function(l,e){_.b$(l,57,e)}]),
ro:new Js([2],[function(l,e){_.$P(l,78,_.ZO(e))}]),
rp:new Js([3],[function(l,e){_.b$(l,58,e)}]),
rw:new Js([3],[function(l,e){_.b$(l,35,e)}]),
rwa:new Js([3],[function(l,e){_.b$(l,64,e)}]),
rwu:new Js([3],[function(l,e){_.b$(l,41,e)}]),
s:new Js([3,0],[function(l,e){_.b$(l,33,e)},
function(l,e){l.setSize(e)}]),
sb:new Js([0],[function(l,e){_.L2(l,110,e)}]),
sc:new Js([0],[function(l,e){_.L2(l,89,e)}]),
sg:new Js([3],[function(l,e){_.b$(l,82,e)}]),
sl:new Js([0],[function(l,e){_.L2(l,109,e)}]),
sm:new Js([3],[function(l,e){_.b$(l,93,e)}]),
t:new Js([4],[function(l,e){l.setToken(e)}]),
tm:new Js([3],[function(l,e){_.b$(l,113,e)}]),
u:new Js([3],[function(l,e){_.b$(l,18,e)}]),
ut:new Js([3],[function(l,e){_.b$(l,45,e)}]),
v:new Js([0],[function(l,e){_.L2(l,62,e)}]),
vb:new Js([0],[function(l,e){_.cm(l,68,e)}]),
vf:new Js([4],[function(l,e){_.da(l,102,e)}]),
vl:new Js([0],[function(l,e){_.cm(l,69,e)}]),
vm:new Js([3],[function(l,e){_.b$(l,98,e)}]),
w:new Js([0],[function(l,e){_.L2(l,12,e)}]),
x:new Js([0],[function(l,e){_.L2(l,9,e)}]),
y:new Js([0],[function(l,e){_.L2(l,10,e)}]),
ya:new Js([2],[function(l,e){_.$P(l,77,_.ZO(e))}]),
z:new Js([0],[function(l,e){_.L2(l,11,e)}])};
WPi.prototype.parse=function(l){var e=new DJu,O=new DJu;if(l=="")l=!0;else{l=l.split("-");for(var E=!0,J=0;J<l.length;J++){var z=l[J];if(z.length==0)E=!1;else{var M=z,Z=!1;var u=M;var d=M.charAt(0);d!=d.toLowerCase()&&(Z=!0,u=M.charAt(0).toLowerCase()+M.substring(1));var g=e1i;for(d=1;d<=u.length;++d){var w=g,n=u.substring(0,d);if(n.length==0?w.isEmpty():!Q2u(w,n))break}u=d==1?null:(u=g.get(u.substring(0,d-1)))?{option:M.substring(0,d-1),value:M.substring(d-1),signed:Z,attributes:u}:null;if(u){M=
[];Z=[];d=!1;for(g=0;g<u.attributes.types.length;g++){w=u.attributes.types[g];var k=u.value;n=J;if(u.signed&&w==1)for(var y=k.length;y<12&&n<l.length-1;)k+="-"+l[n+1],y=k.length,++n;else if(w==2)for(;n<l.length-1&&l[n+1].match(/^[\d\.]/);)k+="-"+l[n+1],++n;y=u.attributes.setters[g];k=Eh4(this,w)(u.option,k,e,O,y);if(k===null){d=!0;J=n;break}else M.push(w),Z.push(k)}if(!d)for(u=0;u<Z.length;u++)g=M[u],k=Z[u],JZf(this,g)(z,k);E=E&&d}else E=!1}}l=E}return new XWC(e,O,l)};
var Xh=function(l,e,O,E,J,z){J(O,e);l=l.charAt(0);z=z(l==l.toUpperCase());J(E,z)};
_.X=WPi.prototype;_.X.parseAndSetIntOption_=function(l,e,O,E,J){if(e=="")return 0;isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;if(isNaN(e))return 1;Xh(l,e,O,E,J,Number);return null};
_.X.logIntParseError_=function(){};
_.X.parseAndSetFloatOption_=function(l,e,O,E,J){if(e=="")return 0;var z=Number(e);e=z==0&&_.MA(e)?NaN:z;if(isNaN(e))return 1;Xh(l,e,O,E,J,Number);return null};
_.X.logFloatParseError_=function(){};
_.X.parseAndSetBoolOption_=function(l,e,O,E,J){if(e!="")return 2;Xh(l,!0,O,E,J,Boolean);return null};
_.X.logBoolParseError_=function(){};
_.X.parseAndSetStringOption_=function(l,e,O,E,J){if(e=="")return 0;Xh(l,e,O,E,J,function(z){return z?"1":""});
return null};
_.X.logStringParseError_=function(){};
_.X.parseAndSetUint64Base64Option_=function(l,e,O,E,J){if(e=="")return 0;Xh(l,e,O,E,J,function(z){return z?1:0});
return null};
var Eh4=function(l,e){switch(e){case 0:return(0,_.pb)(l.parseAndSetIntOption_,l);case 2:return(0,_.pb)(l.parseAndSetFloatOption_,l);case 3:return(0,_.pb)(l.parseAndSetBoolOption_,l);case 4:return(0,_.pb)(l.parseAndSetStringOption_,l);case 1:return(0,_.pb)(l.parseAndSetUint64Base64Option_,l);default:return function(){}}},JZf=function(l,e){switch(e){case 0:return(0,_.pb)(l.logIntParseError_,l);
case 2:return(0,_.pb)(l.logFloatParseError_,l);case 3:return(0,_.pb)(l.logBoolParseError_,l);case 4:case 1:return(0,_.pb)(l.logStringParseError_,l);default:return function(){}}},XWC=function(l,e,O){this.valueProto_=l;
this.signatureFlagProto_=e;this.JSC$17358_valid_=O};
XWC.prototype.isValid=function(){return this.JSC$17358_valid_};var uw4=function(l){this.JSC$17359_parser_=null;this.JSC$17359_components_=[];this.JSC$17359_parsedOptions_=null;z1P(this,l)},b2u=function(l){l.JSC$17359_parser_==null&&(l.JSC$17359_parser_=new WPi);
return l.JSC$17359_parser_},z1P=function(l,e){l.JSC$17359_parsedOptions_=e?typeof e==="string"?b2u(l).parse(e):e:b2u(l).parse("")},zd=function(l,e){return l==e?!1:!0};
_.X=uw4.prototype;_.X.JSC$17361_setCrop=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,_.T8(O,2),_.T8(e.signatureFlagProto_,2))&&_.b$(O,2,l);return this};
_.X.JSC$17361_setCircleCrop=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,$I(O,51),$I(e.signatureFlagProto_,51))&&_.b$(O,51,l);return this};
_.X.JSC$17361_setImageCrop=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,$I(O,32),$I(e.signatureFlagProto_,32))&&_.b$(O,32,l);return this};
_.X.JSC$17361_setHeight=function(l){var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,O.getHeight(),e.signatureFlagProto_.getHeight())&&_.L2(O,13,l);return this};
_.X.setCenterCrop=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,_.T8(O,20),_.T8(e.signatureFlagProto_,20))&&O.setCenterCrop(l);return this};
_.X.JSC$17361_setSmartCrop=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,_.T8(O,19),_.T8(e.signatureFlagProto_,19))&&_.b$(O,19,l);return this};
_.X.JSC$17361_setPad=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,$I(O,60),$I(e.signatureFlagProto_,60))&&_.b$(O,60,l);return this};
_.X.JSC$17361_setSmartCropUseFace=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,_.T8(O,67),_.T8(e.signatureFlagProto_,67))&&_.b$(O,67,l);return this};
_.X.JSC$17361_setSmartCropNoClip=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,_.T8(O,52),_.T8(e.signatureFlagProto_,52))&&_.b$(O,52,l);return this};
_.X.setSize=function(l){var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,O.getSize(),e.signatureFlagProto_.getSize())&&O.setSize(l);return this};
_.X.setToken=function(l){l=l||void 0;var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,O.getToken(),e.signatureFlagProto_.getToken())&&O.setToken(l);return this};
_.X.JSC$17361_setWidth=function(l){var e=this.JSC$17359_parsedOptions_,O=e.valueProto_;zd(l,O.getWidth(),e.signatureFlagProto_.getWidth())&&_.L2(O,12,l);return this};
_.X.clearOptions=function(){z1P(this,"");return this};
_.X.build=function(){this.JSC$17359_components_.length=0;var l=this.JSC$17359_parsedOptions_,e=l.valueProto_;l=l.signatureFlagProto_;bh(this,"s",e.getSize(),l.getSize());bh(this,"w",e.getWidth(),l.getWidth());MW(this,"c",_.T8(e,2),_.T8(l,2));MW(this,"d",_.T8(e,3),_.T8(l,3));bh(this,"h",e.getHeight(),l.getHeight());MW(this,"s",$I(e,33),$I(l,33));MW(this,"h",e.getHtml(),l.getHtml());MW(this,"p",_.T8(e,19),_.T8(l,19));MW(this,"pp",_.T8(e,52),_.T8(l,52));MW(this,"pf",_.T8(e,67),_.T8(l,67));MW(this,"n",
_.T8(e,20),_.T8(l,20));bh(this,"r",WA(e,26),WA(l,26));MW(this,"r",_.T8(e,6),_.T8(l,6));MW(this,"o",$I(e,27),$I(l,27));var O=_.R_(e,7,_.my);Vk(this,"o",O,_.R_(l,7,_.my));O=_.R_(e,29,_.my);Vk(this,"j",O,_.R_(l,29,_.my));bh(this,"x",WA(e,9),WA(l,9));bh(this,"y",WA(e,10),WA(l,10));bh(this,"z",WA(e,11),WA(l,11));MW(this,"g",_.T8(e,14),_.T8(l,14));bh(this,"e",WA(e,15),WA(l,15));Vk(this,"f",_.gk(e,16),_.gk(l,16));MW(this,"k",$I(e,17),$I(l,17));MW(this,"u",$I(e,18),!0);MW(this,"ut",$I(e,45),!0);MW(this,"i",
$I(e,22),!0);MW(this,"a",$I(e,21),$I(l,21));MW(this,"b",_.T8(e,23),_.T8(l,23));bh(this,"b",WA(e,38),WA(l,38));bh(this,"c",WA(e,39),WA(l,39),16,8);Vk(this,"q",_.gk(e,28),_.gk(l,28));MW(this,"fh",$I(e,30),$I(l,30));MW(this,"fv",$I(e,31),$I(l,31));MW(this,"fg",_.T8(e,34),_.T8(l,34));MW(this,"ci",$I(e,32),$I(l,32));Vk(this,"t",e.getToken(),l.getToken());Vk(this,"nt0",_.gk(e,36),_.gk(l,36));MW(this,"rw",_.T8(e,35),_.T8(l,35));MW(this,"rwu",_.T8(e,41),_.T8(l,41));MW(this,"rwa",_.T8(e,64),_.T8(l,64));MW(this,
"nw",_.T8(e,48),_.T8(l,48));MW(this,"rh",_.T8(e,49),_.T8(l,49));MW(this,"no",_.T8(e,37),_.T8(l,37));MW(this,"ns",$I(e,40),$I(l,40));bh(this,"k",WA(e,42),WA(l,42));bh(this,"p",WA(e,43),WA(l,43));bh(this,"l",WA(e,44),WA(l,44));bh(this,"v",WA(e,62),WA(l,62));MW(this,"nu",$I(e,46),$I(l,46));MW(this,"ft",$I(e,50),$I(l,50));MW(this,"cc",$I(e,51),$I(l,51));MW(this,"nd",$I(e,53),$I(l,53));MW(this,"ip",$I(e,54),$I(l,54));MW(this,"nc",$I(e,55),$I(l,55));bh(this,"a",WA(e,56),WA(l,56));MW(this,"rj",$I(e,57),
$I(l,57));MW(this,"rp",$I(e,58),$I(l,58));MW(this,"rg",$I(e,59),$I(l,59));MW(this,"pd",$I(e,60),$I(l,60));MW(this,"pa",$I(e,61),$I(l,61));bh(this,"m",WA(e,63),WA(l,63));bh(this,"vb",dW(e,68),dW(l,68));bh(this,"vl",dW(e,69),dW(l,69));MW(this,"lf",$I(e,65),$I(l,65));MW(this,"mv",$I(e,66),$I(l,66));MW(this,"id",$I(e,70),$I(l,70));bh(this,"ic",WA(e,71),!0);MW(this,"pg",_.T8(e,72),_.T8(l,72));MW(this,"mo",$I(e,73),$I(l,73));MW(this,"al",$I(e,74),$I(l,74));bh(this,"iv",dW(e,75),dW(l,75));bh(this,"pi",gW(e,
76),gW(l,76));bh(this,"ya",gW(e,77),gW(l,77));bh(this,"ro",gW(e,78),gW(l,78));bh(this,"fo",gW(e,79),gW(l,79));MW(this,"df",$I(e,80),$I(l,80));Vk(this,"mm",_.gk(e,81),_.gk(l,81));MW(this,"sg",$I(e,82),$I(l,82));MW(this,"gd",$I(e,83),$I(l,83));MW(this,"fm",$I(e,84),$I(l,84));bh(this,"ba",WA(e,85),WA(l,85));bh(this,"br",WA(e,86),WA(l,86));bh(this,"bc",e.getBackgroundColor(),l.getBackgroundColor(),16,8);bh(this,"pc",WA(e,88),WA(l,88),16,8);bh(this,"sc",WA(e,89),WA(l,89),16,8);MW(this,"dv",$I(e,90),$I(l,
90));MW(this,"md",$I(e,91),$I(l,91));bh(this,"cp",WA(e,92),WA(l,92));MW(this,"sm",$I(e,93),$I(l,93));bh(this,"cv",WA(e,94),WA(l,94));MW(this,"ng",$I(e,95),$I(l,95));MW(this,"il",$I(e,96),$I(l,96));MW(this,"lo",$I(e,97),$I(l,97));MW(this,"vm",$I(e,98),$I(l,98));Vk(this,"dc",_.gk(e,99),_.gk(l,99));MW(this,"rf",$I(e,100),$I(l,100));Vk(this,"vf",_.gk(e,102),_.gk(l,102));MW(this,"ra",_.T8(e,103),_.T8(l,103));MW(this,"ckm",$I(e,104),$I(l,104));MW(this,"gm",$I(e,105),$I(l,105));MW(this,"ngm",$I(e,106),$I(l,
106));bh(this,"em",WA(e,107),WA(l,107));MW(this,"cr",$I(e,108),$I(l,108));bh(this,"sl",e.getStoryboardLevel(),l.getStoryboardLevel());bh(this,"sb",WA(e,110),WA(l,110));Vk(this,"pt",_.gk(e,111),_.gk(l,111));Vk(this,"gce",_.gk(e,112),_.gk(l,112));MW(this,"tm",$I(e,113),$I(l,113));MW(this,"ntm",$I(e,114),$I(l,114));return this.JSC$17359_components_.join("-")};
var bh=function(l,e,O,E,J,z){if(O!=null){var M=J==void 0||J!=10&&J!=16?10:J;O=Number(O).toString(M);J=new c5h;J.append(M==16?"0x":"");M=J.append;z==void 0?z="":(z-=O.length,z=z<=0?"":(0,_.Ftu)("0",z));M.call(J,z);J.append(O);MRP(l,e,J.toString(),!!Number(E))}},MW=function(l,e,O,E){O&&MRP(l,e,"",!!E)},Vk=function(l,e,O,E){O&&MRP(l,e,String(O),!!Number(E))},MRP=function(l,e,O,E){E&&(e=e.charAt(0).toUpperCase()+e.substring(1));
l.JSC$17359_components_.push(e+O)};_.o_(IS,uw4);_.X=IS.prototype;_.X.JSC$17361_setCrop=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setCrop.call(this,l)};
_.X.JSC$17361_setHeight=function(l){l=l==null||l<0?void 0:l;l!=null&&this.setSize();return IS.superClass_.JSC$17361_setHeight.call(this,l)};
_.X.JSC$17361_setImageCrop=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setImageCrop.call(this,l)};
_.X.JSC$17361_setCircleCrop=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setCircleCrop.call(this,l)};
_.X.setSize=function(l){_.e0(l)&&(l=Math.max(l.width,l.height));l=l==null||l<0?void 0:l;l!=null&&(this.JSC$17361_setWidth(),this.JSC$17361_setHeight());return IS.superClass_.setSize.call(this,l)};
_.X.JSC$17361_setSmartCrop=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setSmartCrop.call(this,l)};
_.X.JSC$17361_setSmartCropNoClip=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setSmartCropNoClip.call(this,l)};
_.X.JSC$17361_setSmartCropUseFace=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setSmartCropUseFace.call(this,l)};
_.X.setCenterCrop=function(l){l&&Zo(this);return IS.superClass_.setCenterCrop.call(this,l)};
_.X.JSC$17361_setPad=function(l){l&&Zo(this);return IS.superClass_.JSC$17361_setPad.call(this,l)};
_.X.JSC$17361_setWidth=function(l){l=l==null||l<0?void 0:l;l!=null&&this.setSize();return IS.superClass_.JSC$17361_setWidth.call(this,l)};
var VRC=function(l){l.clearOptions();var e=l.JSC$17359_parsedOptions_,O=e.valueProto_;zd(!0,_.T8(O,3),_.T8(e.signatureFlagProto_,3))&&_.b$(O,3,!0);return l},Zo=function(l){l.setCenterCrop();
l.JSC$17361_setCircleCrop();l.JSC$17361_setCrop();l.JSC$17361_setImageCrop();l.JSC$17361_setPad();l.JSC$17361_setSmartCrop();l.JSC$17361_setSmartCropNoClip();l.JSC$17361_setSmartCropUseFace()};
IS.prototype.build=function(){var l=this.JSC$17359_parsedOptions_.valueProto_;$I(l,18)||$I(l,45)?l.getSize()||this.setSize(0):(l=this.JSC$17359_parsedOptions_.valueProto_,l.getSize()||l.getWidth()||l.getHeight()||(this.setSize(),this.JSC$17361_setHeight(),this.JSC$17361_setWidth(),Zo(this)));return IS.superClass_.build.call(this)};var lqP=/^[^\/]*\/\//,uh=function(l,e){e=e===void 0?!1:e;this.original_=l;this.originalPrefix_="";(l=this.original_.match(lqP))&&l[0]?(this.originalPrefix_=l[0],l=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):l="http://"+this.original_;this.uri_=_.rk(l,!0);this.isFreeformUrl_=e;this.JSC$17365_valid_=!0;this.obfuscated_=!1},e0i=function(l,e){l.JSC$17367_pathPrefix_=l.JSC$17367_pathPrefix_?l.JSC$17367_pathPrefix_+("/"+e):e},CV=function(l){if(l.JSC$17367_components_==
void 0){var e=l.uri_.getPath().substring(1);
l.JSC$17367_pathPrefix_=null;if(l.isFreeformUrl_){l.JSC$17367_components_=[];if((e.match(/=/g)||[]).length>1)return l.JSC$17365_valid_=!1,l.JSC$17367_components_;var O=e.indexOf("=");O!=-1?(l.JSC$17367_components_.push(e.substr(0,O)),l.JSC$17367_components_.push(e.substr(O+1))):l.JSC$17367_components_.push(e);return l.JSC$17367_components_}l.JSC$17367_components_=e.split("/");e=l.JSC$17367_components_.length;e>2&&l.JSC$17367_components_[0]=="u"&&(e0i(l,l.JSC$17367_components_[0]+"/"+l.JSC$17367_components_[1]),
l.JSC$17367_components_.shift(),l.JSC$17367_components_.shift(),e-=2);if(e==0||e==4||e>7)return l.JSC$17365_valid_=!1,l.JSC$17367_components_;if(e==2)e0i(l,l.JSC$17367_components_[0]);else if(l.JSC$17367_components_[0]=="image")e0i(l,l.JSC$17367_components_[0]);else if(e==7||e==3)return l.JSC$17365_valid_=!1,l.JSC$17367_components_;if(e<=3){l.obfuscated_=!0;e==3&&(e0i(l,l.JSC$17367_components_[1]),l.JSC$17367_components_.shift(),--e);--e;O=l.JSC$17367_components_[e];var E=O.indexOf("=");E!=-1&&(l.JSC$17367_components_[e]=
O.substr(0,E),l.JSC$17367_components_.push(O.substr(E+1)))}}return l.JSC$17367_components_};
uh.prototype.isValid=function(){CV(this);return this.JSC$17365_valid_};
uh.prototype.isObfuscated=function(){CV(this);return this.obfuscated_};
var OnP=function(l){CV(l);return l.isFreeformUrl_},oG=function(l){CV(l);
l.JSC$17367_pathPrefix_==void 0&&(l.JSC$17367_pathPrefix_=null);return l.JSC$17367_pathPrefix_},ENz=function(l){switch(CV(l).length){case 7:return!0;
case 6:return oG(l)==null;case 5:return!1;case 3:return!0;case 2:return oG(l)==null;case 1:return!1;default:return!1}},$2=function(l,e){if(OnP(l))a:{switch(e){case 7:e=0;
break;case 4:if(!ENz(l)){l=null;break a}e=1;break;default:l=null;break a}l=CV(l)[e]}else if(l.isObfuscated())a:{var O=oG(l)!=null?1:0;switch(e){case 6:e=O;break;case 4:if(!ENz(l)){l=null;break a}e=1+O;break;default:l=null;break a}l=CV(l)[e]}else a:{O=oG(l)!=null?1:0;switch(e){case 0:e=O;break;case 1:e=1+O;break;case 2:e=2+O;break;case 3:e=3+O;break;case 4:if(!ENz(l)){l=null;break a}e=4+O;break;case 5:e=ENz(l)?1:0;e=4+O+e;break;default:l=null;break a}l=CV(l)[e]}return l};
uh.prototype.getOptions=function(){this.options_==void 0&&(this.options_=$2(this,4));return this.options_};var $YC=function(){};
$YC.prototype.parse=function(l,e){return new CgP(l,e===void 0?!1:e)};
var CgP=function(l,e){uh.call(this,l,e===void 0?!1:e)};
_.m(CgP,uh);_.o_(mE,IS);var oZF;mE.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
mE.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var l=mE.superClass_.build.call(this),e=[];oG(this.parsedImageUrl_)!=null&&e.push(oG(this.parsedImageUrl_));var O=OnP(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var E=this.parsedImageUrl_;E.obfuscatedData_==void 0&&(E.obfuscatedData_=$2(E,6));e.push(E.obfuscatedData_+(l?"="+l:""))}else if(O){E=e.push;var J=this.parsedImageUrl_;J.freeformUrlPath_===void 0&&(J.freeformUrlPath_=$2(J,
7));E.call(e,J.freeformUrlPath_);l&&e.push(l)}else E=e.push,J=this.parsedImageUrl_,J.obfuscatedGaiaId_==void 0&&(J.obfuscatedGaiaId_=$2(J,0)),E.call(e,J.obfuscatedGaiaId_),E=e.push,J=this.parsedImageUrl_,J.photoId_==void 0&&(J.photoId_=$2(J,1)),E.call(e,J.photoId_),E=e.push,J=this.parsedImageUrl_,J.imageVersion_==void 0&&(J.imageVersion_=$2(J,2)),E.call(e,J.imageVersion_),E=e.push,J=this.parsedImageUrl_,J.signature_==void 0&&(J.signature_=$2(J,3)),E.call(e,J.signature_),l&&e.push(l),l=e.push,E=this.parsedImageUrl_,
E.filename_==void 0&&(E.filename_=$2(E,5)),l.call(e,E.filename_);e=O?e.join("="):e.join("/");e=_.rk(this.protocolPrefix_+this.JSC$17373_domain_+"/"+e+(this.JSC$17373_query_?"?"+this.JSC$17373_query_:"")).toString();e.startsWith("%3a//")&&(e=e.replace("%3a//","://"));return e};var J6f=_.E9(["viewBox"]),XeC=_.E9(["width"]),z0o=_.E9(["height"]),bn4=_.E9(["fill"]),MVF=_.E9(["id"]),VVF=_.E9(["x"]),Zno=_.E9(["y"]);dY4.prototype.getLength=function(){return this.parsedData.length};
dY4.prototype.write=function(l){for(var e=0,O=this.parsedData.length;e<O;e++)l.put(this.parsedData[e],8)};
var kLi=function(l,e){var O=new dY4(e);l.dataList.push(O);O=l.errorCorrectLevel;var E=1,J=encodeURI(e).toString().replace(/%[0-9a-fA-F]{2}/g,"a");e=J.length+(J.length!=e?3:0);J=0;for(var z=W$.length;J<=z;J++){var M=0;switch(O){case 1:M=W$[J][0];break;case 0:M=W$[J][1];break;case 3:M=W$[J][2];break;case 2:M=W$[J][3]}if(e<=M)break;else E++}if(E>W$.length)throw Error("uk");l.typeNumber=E;l.dataCache=null};
gZf.prototype.isDark=function(l,e){if(l<0||this.moduleCount<=l||e<0||this.moduleCount<=e)throw Error("mk`"+l+"`"+e);return this.modules[l][e]};
for(var I8C=function(l,e,O){l.moduleCount=l.typeNumber*4+17;l.modules=Array(l.moduleCount);for(var E=0;E<l.moduleCount;E++){l.modules[E]=Array(l.moduleCount);for(var J=0;J<l.moduleCount;J++)l.modules[E][J]=null}uBu(l,0,0);uBu(l,l.moduleCount-7,0);uBu(l,0,l.moduleCount-7);E=COC[l.typeNumber-1];for(J=0;J<E.length;J++)for(var z=0;z<E.length;z++){var M=E[J],Z=E[z];if(l.modules[M][Z]==null)for(var u=-2;u<=2;u++)for(var d=-2;d<=2;d++)l.modules[M+u][Z+d]=u==-2||u==2||d==-2||d==2||u==0&&d==0?!0:!1}for(E=
8;E<l.moduleCount-8;E++)l.modules[E][6]==null&&(l.modules[E][6]=E%2==0);for(E=8;E<l.moduleCount-8;E++)l.modules[6][E]==null&&(l.modules[6][E]=E%2==0);E=l.errorCorrectLevel<<3|O;for(J=E<<10;dz(J)-dz(1335)>=0;)J^=1335<<dz(J)-dz(1335);E=(E<<10|J)^21522;for(J=0;J<15;J++)z=!e&&(E>>J&1)==1,J<6?l.modules[J][8]=z:J<8?l.modules[J+1][8]=z:l.modules[l.moduleCount-15+J][8]=z;for(J=0;J<15;J++)z=!e&&(E>>J&1)==1,J<8?l.modules[8][l.moduleCount-J-1]=z:J<9?l.modules[8][15-J-1+1]=z:l.modules[8][15-J-1]=z;l.modules[l.moduleCount-
8][8]=!e;if(l.typeNumber>=7){E=l.typeNumber;for(J=E<<12;dz(J)-dz(7973)>=0;)J^=7973<<dz(J)-dz(7973);E=E<<12|J;for(J=0;J<18;J++)z=!e&&(E>>J&1)==1,l.modules[Math.floor(J/3)][J%3+l.moduleCount-8-3]=z;for(J=0;J<18;J++)z=!e&&(E>>J&1)==1,l.modules[J%3+l.moduleCount-8-3][Math.floor(J/3)]=z}if(l.dataCache==null){J=l.typeNumber;z=l.dataList;e=l.errorCorrectLevel;E=oNo(J,e);if(E==void 0)throw Error("tk`"+J+"`"+e);M=E.length/3;e=[];for(Z=0;Z<M;Z++){u=E[Z*3];d=E[Z*3+1];for(var g=E[Z*3+2],w=0;w<u;w++)e.push(new ir3(d,
g))}E=new wQf;for(M=0;M<z.length;M++)Z=z[M],E.put(Z.mode,4),E.put(Z.getLength(),$DO(Z.mode,J)),Z.write(E);for(M=J=0;M<e.length;M++)J+=e[M].dataCount;if(E.length>J*8)throw Error("nk`"+E.length+"`"+J*8);for(E.length+4<=J*8&&E.put(0,4);E.length%8!=0;)W2u(E,!1);for(;!(E.length>=J*8);){E.put(236,8);if(E.length>=J*8)break;E.put(17,8)}z=J=d=0;M=Array(e.length);Z=Array(e.length);for(u=0;u<e.length;u++){w=e[u].dataCount;var n=e[u].totalCount-w;J=Math.max(J,w);z=Math.max(z,n);M[u]=Array(w);for(g=0;g<M[u].length;g++)M[u][g]=
255&E.buffer[g+d];d+=w;g=n;w=new yJ([1],0);for(n=0;n<g;n++)w=w.multiply(new yJ([1,dD0(n)],0));g=w;w=(new yJ(M[u],g.getLength()-1)).mod(g);Z[u]=Array(g.getLength()-1);for(g=0;g<Z[u].length;g++)n=g+w.getLength()-Z[u].length,Z[u][g]=n>=0?w.get(n):0}for(g=E=0;g<e.length;g++)E+=e[g].totalCount;E=Array(E);for(g=d=0;g<J;g++)for(u=0;u<e.length;u++)g<M[u].length&&(E[d++]=M[u][g]);for(g=0;g<z;g++)for(u=0;u<e.length;u++)g<Z[u].length&&(E[d++]=Z[u][g]);l.dataCache=E}e=l.dataCache;E=-1;J=l.moduleCount-1;z=7;M=
0;for(Z=l.moduleCount-1;Z>0;Z-=2)for(Z==6&&Z--;;){for(u=0;u<2;u++)l.modules[J][Z-u]==null&&(d=!1,M<e.length&&(d=(e[M]>>>z&1)==1),gNf(O,J,Z-u)&&(d=!d),l.modules[J][Z-u]=d,z--,z==-1&&(M++,z=7));J+=E;if(J<0||l.moduleCount<=J){J-=E;E=-E;break}}},uBu=function(l,e,O){for(var E=-1;E<=7;E++)if(!(e+E<=-1||l.moduleCount<=e+E))for(var J=-1;J<=7;J++)O+J<=-1||l.moduleCount<=O+J||(l.modules[e+E][O+J]=0<=E&&E<=6&&(J==0||J==6)||0<=J&&J<=6&&(E==0||E==6)||2<=E&&E<=4&&2<=J&&J<=4?!0:!1)},mYu=function(l){for(var e=0,
O=0,E=0;E<8;E++){I8C(l,!0,E);
var J=l;for(var z=J.moduleCount,M=0,Z=0;Z<z;Z++)for(var u=0;u<z;u++){for(var d=0,g=J.isDark(Z,u),w=-1;w<=1;w++)if(!(Z+w<0||z<=Z+w))for(var n=-1;n<=1;n++)u+n<0||z<=u+n||(w!=0||n!=0)&&g==J.isDark(Z+w,u+n)&&d++;d>5&&(M+=3+d-5)}for(Z=0;Z<z-1;Z++)for(u=0;u<z-1;u++)if(d=0,J.isDark(Z,u)&&d++,J.isDark(Z+1,u)&&d++,J.isDark(Z,u+1)&&d++,J.isDark(Z+1,u+1)&&d++,d==0||d==4)M+=3;for(Z=0;Z<z;Z++)for(u=0;u<z-6;u++)J.isDark(Z,u)&&!J.isDark(Z,u+1)&&J.isDark(Z,u+2)&&J.isDark(Z,u+3)&&J.isDark(Z,u+4)&&!J.isDark(Z,u+5)&&
J.isDark(Z,u+6)&&(M+=40);for(u=0;u<z;u++)for(Z=0;Z<z-6;Z++)J.isDark(Z,u)&&!J.isDark(Z+1,u)&&J.isDark(Z+2,u)&&J.isDark(Z+3,u)&&J.isDark(Z+4,u)&&!J.isDark(Z+5,u)&&J.isDark(Z+6,u)&&(M+=40);for(u=d=0;u<z;u++)for(Z=0;Z<z;Z++)J.isDark(Z,u)&&d++;J=M+=Math.abs(100*d/z/z-50)/5*10;if(E==0||e>J)e=J,O=E}return O},COC=[[],
[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]],dz=function(l){for(var e=0;l!=0;)e++,l>>>=1;return e},gNf=function(l,e,O){switch(l){case 0:return(e+O)%2==0;
case 1:return e%2==0;case 2:return O%3==0;case 3:return(e+O)%3==0;case 4:return(Math.floor(e/2)+Math.floor(O/3))%2==0;case 5:return e*O%2+e*O%3==0;case 6:return(e*O%2+e*O%3)%2==0;case 7:return(e*O%3+(e+O)%2)%2==0;default:throw Error("ok`"+l);}},$DO=function(l,e){if(1<=e&&e<10)switch(l){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+l);}else if(e<27)switch(l){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+l);}else if(e<41)switch(l){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+l);}else throw Error("qk`"+e);},gz=function(l){if(l<1)throw Error("rk`"+l);
return inu[l]},dD0=function(l){for(;l<0;)l+=255;
for(;l>=256;)l-=255;return ih[l]},ih=Array(256),inu=Array(256),we3=0;we3<8;we3++)ih[we3]=1<<we3;
for(var wz=8;wz<256;wz++)ih[wz]=ih[wz-4]^ih[wz-5]^ih[wz-6]^ih[wz-8];for(var A6C=0;A6C<255;A6C++)inu[ih[A6C]]=A6C;yJ.prototype.get=function(l){return this.num[l]};
yJ.prototype.getLength=function(){return this.num.length};
yJ.prototype.multiply=function(l){for(var e=Array(this.getLength()+l.getLength()-1),O=0;O<this.getLength();O++)for(var E=0;E<l.getLength();E++)e[O+E]^=dD0(gz(this.get(O))+gz(l.get(E)));return new yJ(e,0)};
yJ.prototype.mod=function(l){if(this.getLength()-l.getLength()<0)return this;for(var e=gz(this.get(0))-gz(l.get(0)),O=Array(this.getLength()),E=0;E<this.getLength();E++)O[E]=this.get(E);for(E=0;E<l.getLength();E++)O[E]^=dD0(gz(l.get(E))+e);return(new yJ(O,0)).mod(l)};
var nN4=[[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]],oNo=function(l,e){switch(e){case 1:return nN4[(l-1)*4];case 0:return nN4[(l-1)*4+1];case 3:return nN4[(l-1)*4+2];case 2:return nN4[(l-1)*4+3]}};
wQf.prototype.get=function(l){return(this.buffer[Math.floor(l/8)]>>>7-l%8&1)==1};
wQf.prototype.put=function(l,e){for(var O=0;O<e;O++)W2u(this,(l>>>e-O-1&1)==1)};
var W2u=function(l,e){var O=Math.floor(l.length/8);l.buffer.length<=O&&l.buffer.push(0);e&&(l.buffer[O]|=128>>>l.length%8);l.length++},W$=[[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]],a84=function(){var l=function(e,O){this.JSC$17393__el=e;this.JSC$17393__htOption=O};
l.prototype.draw=function(e){function O(g,w){g=document.createElementNS("http://www.w3.org/2000/svg",g);for(var n in w)w.hasOwnProperty(n)&&(n==="href"?_.IUu(g,w[n]):_.hz([_.lX(J6f),_.lX(XeC),_.lX(z0o),_.lX(bn4),_.lX(MVF),_.lX(VVF),_.lX(Zno)],g,n,w[n]));return g}
var E=this.JSC$17393__htOption,J=this.JSC$17393__el,z=e.moduleCount;this.clear();var M=O("svg",{viewBox:"0 0 "+String(z)+" "+String(z),width:"100%",height:"100%",fill:E.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});J.appendChild(M);M.appendChild(O("rect",{fill:E.colorLight,width:"100%",height:"100%"}));M.appendChild(O("rect",{fill:E.colorDark,width:"1",height:"1",id:"template"}));for(var Z=0;Z<z;Z++)for(var u=0;u<z;u++)if(e.isDark(Z,u)){var d=O("use",{x:String(Z),y:String(u),href:"#template"});
M.appendChild(d)}};
l.prototype.clear=function(){for(;this.JSC$17393__el.hasChildNodes();)this.JSC$17393__el.removeChild(this.JSC$17393__el.lastChild)};
return l}(),nZF=document.documentElement.tagName.toLowerCase()==="svg"?a84:typeof CanvasRenderingContext2D!="undefined"?function(){var l=function(e,O){this._bIsPainted=!1;
AP4();this.JSC$17393__htOption=O;this._elCanvas=document.createElement("canvas");this._elCanvas.width=O.width;this._elCanvas.height=O.height;e.appendChild(this._elCanvas);this.JSC$17393__el=e;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17393__el.appendChild(this._elImage);this._bSupportDataURI=null};
l.prototype._onMakeImage=function(){var e=this._elCanvas.toDataURL("image/png");this._elImage.src=e;this._elImage.style.display="block";this._elCanvas.style.display="none"};
l.prototype._safeSetDataURI=function(e,O){var E=this;E._fFail=O;E._fSuccess=e;E._bSupportDataURI===null?(e=_.i$("IMG"),O=function(){E._bSupportDataURI=!1;E._fFail&&E._fFail.call(E)},e.onabort=O,e.onerror=O,e.onload=function(){E._bSupportDataURI=!0;
E._fSuccess&&E._fSuccess.call(E)},e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):E._bSupportDataURI===!0&&E._fSuccess?E._fSuccess.call(E):E._bSupportDataURI===!1&&E._fFail&&E._fFail.call(E)};
l.prototype.draw=function(e){var O=this._oContext,E=this.JSC$17393__htOption,J=e.moduleCount,z=E.width/J,M=E.height/J,Z=Math.round(z),u=Math.round(M);this._elImage.style.display="none";this.clear();for(var d=0;d<J;d++)for(var g=0;g<J;g++){var w=e.isDark(d,g),n=g*z,k=d*M;O.strokeStyle=w?E.colorDark:E.colorLight;O.lineWidth=1;O.fillStyle=w?E.colorDark:E.colorLight;O.fillRect(n,k,z,M);O.strokeRect(Math.floor(n)+.5,Math.floor(k)+.5,Z,u);O.strokeRect(Math.ceil(n)-.5,Math.ceil(k)-.5,Z,u)}this._bIsPainted=
!0};
l.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
l.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
l.prototype.round=function(e){return e?Math.floor(e*1E3)/1E3:e};
return l}():function(){var l=function(e,O){this.JSC$17393__el=e;
this.JSC$17393__htOption=O};
l.prototype.draw=function(e){for(var O=this.JSC$17393__htOption,E=this.JSC$17393__el,J=e.moduleCount,z=Math.floor(O.width/J),M=Math.floor(O.height/J),Z=['<table style="border:0;border-collapse:collapse;">'],u=0;u<J;u++){Z.push("<tr>");for(var d=0;d<J;d++)Z.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+z+"px;height:"+M+"px;background-color:"+(e.isDark(u,d)?O.colorDark:O.colorLight)+';"></td>');Z.push("</tr>")}Z.push("</table>");e=Z.join("");e=_.aW1(_.IWS,e);_.Ye(E,e);
e=E.childNodes[0];J=(O.width-e.offsetWidth)/2;z=(O.height-e.offsetHeight)/2;J>0&&z>0&&(e.style.margin=z+"px "+J+"px")};
l.prototype.clear=function(){this.JSC$17393__el.textContent=""};
return l}();
yPC.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17396__android||this.JSC$17396__android>=3)&&this._oDrawing.makeImage()};
yPC.prototype.clear=function(){this._oDrawing.clear()};
_.Op.QRCode=yPC;var aq4={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var As=function(){};
As.prototype.stringify=function(l){return _.Op.JSON.stringify(l,void 0)};
As.prototype.parse=function(l){return _.Op.JSON.parse(l,void 0)};var kGF=function(){_.k$.call(this,"z")};
_.o_(kGF,_.k$);var IqC=function(){_.k$.call(this,"y")};
_.o_(IqC,_.k$);var mDF=null,y6h=function(){return mDF=mDF||new _.Kx},pe3=function(l){_.k$.call(this,"serverreachability",l)};
_.o_(pe3,_.k$);var nV=function(l){var e=y6h();e.dispatchEvent(new pe3(e,l))},K23=function(l){_.k$.call(this,"statevent",l)};
_.o_(K23,_.k$);var aG=function(l){var e=y6h();e.dispatchEvent(new K23(e,l))},jsh=function(l,e,O,E){_.k$.call(this,"timingevent",l);
this.size=e;this.rtt=O;this.retries=E};
_.o_(jsh,_.k$);var Hnf=function(l,e,O){var E=y6h();E.dispatchEvent(new jsh(E,l,e,O))},k2=function(l,e){if(typeof l!=="function")throw Error("vk");
return _.Op.setTimeout(function(){l()},e)};var IG=function(){this.redactEnabled_=!0};
IG.prototype.disableRedact=function(){this.redactEnabled_=!1};
var c6h=function(l,e,O,E,J,z){l.info(function(){if(l.redactEnabled_)if(z){var M="";for(var Z=z.split("&"),u=0;u<Z.length;u++){var d=Z[u].split("=");if(d.length>1){var g=d[0];d=d[1];var w=g.split("_");M=w.length>=2&&w[1]=="type"?M+(g+"="+d+"&"):M+(g+"=redacted&")}}}else M=null;else M=z;return"XMLHTTP REQ ("+E+") [attempt "+J+"]: "+e+"\n"+O+"\n"+M})},F2h=function(l,e,O,E,J,z,M){l.info(function(){return"XMLHTTP RESP ("+E+") [ attempt "+J+"]: "+e+"\n"+O+"\n"+z+" "+M})},md=function(l,e,O,E){l.info(function(){return"XMLHTTP TEXT ("+
e+"): "+fqu(l,O)+(E?" "+E:"")})},R0o=function(l,e){l.info(function(){return"TIMEOUT: "+e})};
IG.prototype.debug=function(){};
IG.prototype.info=function(){};
IG.prototype.warning=function(){};
var fqu=function(l,e){if(!l.redactEnabled_)return e;if(!e)return null;try{var O=JSON.parse(e);if(O)for(var E=0;E<O.length;E++)if(Array.isArray(O[E])){var J=O[E];if(!(J.length<2)){var z=J[1];if(Array.isArray(z)&&!(z.length<1)){var M=z[0];if(M!="noop"&&M!="stop"&&M!="close")for(var Z=1;Z<z.length;Z++)z[Z]=""}}}return(0,_.Tv)(O)}catch(u){return l.debug("Exception parsing expected JS array - probably was not JS"),e}};var yk=function(l,e,O,E,J){this.JSC$17418_channel_=l;this.JSC$17418_channelDebug_=e;this.sid_=O;this.JSC$17418_rid_=E;this.JSC$17418_retryId_=J||1;this.JSC$17418_eventHandler_=new _.ue(this);this.timeout_=45E3;this.JSC$17418_extraHeaders_=null;this.JSC$17418_successful_=!1;this.JSC$17418_postData_=this.JSC$17418_requestUri_=this.JSC$17418_baseUri_=this.JSC$17418_type_=this.JSC$17418_requestStartTime_=this.JSC$17418_watchDogTimeoutTime_=this.JSC$17418_watchDogTimerId_=null;this.JSC$17418_pendingMessages_=
[];this.JSC$17418_xmlHttp_=null;this.JSC$17418_xmlHttpChunkStart_=0;this.JSC$17418_lastError_=this.JSC$17418_verb_=null;this.JSC$17418_lastStatusCode_=-1;this.JSC$17418_cancelled_=!1;this.JSC$17418_readyStateChangeThrottleMs_=0;this.JSC$17418_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new TU3},TU3=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},ssi=function(l,e){switch(l){case 0:return"Non-200 return code ("+e+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},GGz={},BUf={};
yk.prototype.setTimeout=function(l){this.timeout_=l};
var UD4=function(l,e,O){l.JSC$17418_type_=1;l.JSC$17418_baseUri_=_.$N(e.clone());l.JSC$17418_postData_=O;l.decodeChunks_=!0;POP(l,null)},POP=function(l,e){l.JSC$17418_requestStartTime_=Date.now();
Y7o(l);l.JSC$17418_requestUri_=l.JSC$17418_baseUri_.clone();ME(l.JSC$17418_requestUri_,"t",l.JSC$17418_retryId_);l.JSC$17418_xmlHttpChunkStart_=0;var O=l.JSC$17418_channel_.JSC$17437_supportsCrossDomainXhrs_;l.fetchResponseState_=new TU3;l.JSC$17418_xmlHttp_=h0h(l.JSC$17418_channel_,O?e:null,!l.JSC$17418_postData_);l.JSC$17418_readyStateChangeThrottleMs_>0&&(l.JSC$17418_readyStateChangeThrottle_=new _.b3((0,_.pb)(l.JSC$17422_xmlHttpHandler_,l,l.JSC$17418_xmlHttp_),l.JSC$17418_readyStateChangeThrottleMs_));
l.JSC$17418_eventHandler_.listen(l.JSC$17418_xmlHttp_,"readystatechange",l.JSC$17422_readyStateChangeHandler_);e=l.JSC$17418_extraHeaders_?_.mm.clone(l.JSC$17418_extraHeaders_):{};l.JSC$17418_postData_?(l.JSC$17418_verb_||(l.JSC$17418_verb_="POST"),e["Content-Type"]="application/x-www-form-urlencoded",l.JSC$17418_xmlHttp_.send(l.JSC$17418_requestUri_,l.JSC$17418_verb_,l.JSC$17418_postData_,e)):(l.JSC$17418_verb_="GET",l.JSC$17418_xmlHttp_.send(l.JSC$17418_requestUri_,l.JSC$17418_verb_,null,e));nV(1);
c6h(l.JSC$17418_channelDebug_,l.JSC$17418_verb_,l.JSC$17418_requestUri_,l.JSC$17418_rid_,l.JSC$17418_retryId_,l.JSC$17418_postData_)};
yk.prototype.JSC$17422_readyStateChangeHandler_=function(l){l=l.target;var e=this.JSC$17418_readyStateChangeThrottle_;e&&_.Gv(l)==3?(this.JSC$17418_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$17422_xmlHttpHandler_(l)};
yk.prototype.JSC$17422_xmlHttpHandler_=function(l){try{l==this.JSC$17418_xmlHttp_?L24(this):this.JSC$17418_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(e){this.JSC$17418_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),tV4(this)}finally{}};
var L24=function(l){var e=_.Gv(l.JSC$17418_xmlHttp_),O=l.JSC$17418_xmlHttp_.JSC$7833_lastErrorCode_,E=l.JSC$17418_xmlHttp_.getStatus();if(!(e<3||e==3&&!tV4(l))){l.JSC$17418_cancelled_||e!=4||O==7||(O==8||E<=0?nV(3):nV(2));q70(l);var J=l.JSC$17418_xmlHttp_.getStatus();l.JSC$17418_lastStatusCode_=J;O=vNP(l);tV4(l)||l.JSC$17418_channelDebug_.debug(function(){return"No response text for uri "+l.JSC$17418_requestUri_+" status "+J});
l.JSC$17418_successful_=J==200;F2h(l.JSC$17418_channelDebug_,l.JSC$17418_verb_,l.JSC$17418_requestUri_,l.JSC$17418_rid_,l.JSC$17418_retryId_,e,J);if(l.JSC$17418_successful_){if(l.decodeInitialResponse_&&!l.initialResponseDecoded_)if(E=NU3(l))md(l.JSC$17418_channelDebug_,l.JSC$17418_rid_,E,"Initial handshake response via X-HTTP-Initial-Response"),l.initialResponseDecoded_=!0,r6u(l,E);else{l.JSC$17418_successful_=!1;l.JSC$17418_lastError_=3;aG(12);l.JSC$17418_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
l.JSC$17418_rid_+")");pV(l);KV(l);return}l.decodeChunks_?DDh(l,e,O):(md(l.JSC$17418_channelDebug_,l.JSC$17418_rid_,O,null),r6u(l,O));e==4&&pV(l);l.JSC$17418_successful_&&!l.JSC$17418_cancelled_&&(e==4?S7C(l.JSC$17418_channel_,l):(l.JSC$17418_successful_=!1,Y7o(l)))}else N8h(l.JSC$17418_xmlHttp_),J==400&&O.indexOf("Unknown SID")>0?(l.JSC$17418_lastError_=3,aG(12),l.JSC$17418_channelDebug_.warning("XMLHTTP Unknown SID ("+l.JSC$17418_rid_+")")):(l.JSC$17418_lastError_=0,aG(13),l.JSC$17418_channelDebug_.warning("XMLHTTP Bad status "+
J+" ("+l.JSC$17418_rid_+")")),pV(l),KV(l)}},NU3=function(l){return l.JSC$17418_xmlHttp_&&(l=WU(l.JSC$17418_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.MA(l)?l:null},vNP=function(l){if(!QsH(l))return l.JSC$17418_xmlHttp_.getResponseText();
var e=l.JSC$17418_xmlHttp_.getResponse();if(e==="")return"";var O="",E=e.length,J=_.Gv(l.JSC$17418_xmlHttp_)==4;if(!l.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return pV(l),KV(l),"";l.fetchResponseState_.textDecoder=new _.Op.TextDecoder}for(var z=0;z<E;z++)l.fetchResponseState_.responseArrivedForFetch=!0,O+=l.fetchResponseState_.textDecoder.decode(e[z],{stream:!(J&&z==E-1)});e.length=0;l.fetchResponseState_.responseBuffer+=O;l.JSC$17418_xmlHttpChunkStart_=0;return l.fetchResponseState_.responseBuffer},
tV4=function(l){return l.JSC$17418_xmlHttp_?l.fetchResponseState_.responseArrivedForFetch?!0:!(!l.JSC$17418_xmlHttp_.getResponseText()&&!l.JSC$17418_xmlHttp_.getResponse()):!1},QsH=function(l){return l.JSC$17418_xmlHttp_?l.JSC$17418_verb_=="GET"&&l.JSC$17418_type_!=2&&l.JSC$17418_channel_.usesFetchStreams_:!1},DDh=function(l,e,O){for(var E=!0,J;!l.JSC$17418_cancelled_&&l.JSC$17418_xmlHttpChunkStart_<O.length;)if(J=xDh(l,O),J==BUf){e==4&&(l.JSC$17418_lastError_=4,aG(14),E=!1);
md(l.JSC$17418_channelDebug_,l.JSC$17418_rid_,null,"[Incomplete Response]");break}else if(J==GGz){l.JSC$17418_lastError_=4;aG(15);md(l.JSC$17418_channelDebug_,l.JSC$17418_rid_,O,"[Invalid Chunk]");E=!1;break}else md(l.JSC$17418_channelDebug_,l.JSC$17418_rid_,J,null),r6u(l,J);QsH(l)&&l.JSC$17418_xmlHttpChunkStart_!=0&&(l.fetchResponseState_.responseBuffer=l.fetchResponseState_.responseBuffer.slice(l.JSC$17418_xmlHttpChunkStart_),l.JSC$17418_xmlHttpChunkStart_=0);e!=4||O.length!=0||l.fetchResponseState_.responseArrivedForFetch||
(l.JSC$17418_lastError_=1,aG(16),E=!1);l.JSC$17418_successful_=l.JSC$17418_successful_&&E;E?O.length>0&&!l.firstByteReceived_&&(l.firstByteReceived_=!0,e=l.JSC$17418_channel_,e.JSC$17437_backChannelRequest_==l&&e.detectBufferingProxy_&&!e.bpDetectionDone_&&(e.JSC$17437_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+O.length),lKf(e),e.bpDetectionDone_=!0,aG(11))):(md(l.JSC$17418_channelDebug_,l.JSC$17418_rid_,O,"[Invalid Chunked Response]"),pV(l),KV(l))},xDh=function(l,e){var O=
l.JSC$17418_xmlHttpChunkStart_,E=e.indexOf("\n",O);
if(E==-1)return BUf;O=Number(e.substring(O,E));if(isNaN(O))return GGz;E+=1;if(E+O>e.length)return BUf;e=e.slice(E,E+O);l.JSC$17418_xmlHttpChunkStart_=E+O;return e};
yk.prototype.cancel=function(){this.JSC$17418_cancelled_=!0;pV(this)};
var Y7o=function(l){l.JSC$17418_watchDogTimeoutTime_=Date.now()+l.timeout_;eoO(l,l.timeout_)},eoO=function(l,e){if(l.JSC$17418_watchDogTimerId_!=null)throw Error("wk");
l.JSC$17418_watchDogTimerId_=k2((0,_.pb)(l.JSC$17422_onWatchDogTimeout_,l),e)},q70=function(l){l.JSC$17418_watchDogTimerId_&&(_.Op.clearTimeout(l.JSC$17418_watchDogTimerId_),l.JSC$17418_watchDogTimerId_=null)};
yk.prototype.JSC$17422_onWatchDogTimeout_=function(){this.JSC$17418_watchDogTimerId_=null;var l=Date.now();l-this.JSC$17418_watchDogTimeoutTime_>=0?(R0o(this.JSC$17418_channelDebug_,this.JSC$17418_requestUri_),this.JSC$17418_type_!=2&&(nV(3),aG(17)),pV(this),this.JSC$17418_lastError_=2,KV(this)):(this.JSC$17418_channelDebug_.warning("WatchDog timer called too early"),eoO(this,this.JSC$17418_watchDogTimeoutTime_-l))};
var KV=function(l){l.JSC$17418_channel_.state_==0||l.JSC$17418_cancelled_||S7C(l.JSC$17418_channel_,l)},pV=function(l){q70(l);
_.Q9(l.JSC$17418_readyStateChangeThrottle_);l.JSC$17418_readyStateChangeThrottle_=null;l.JSC$17418_eventHandler_.removeAll();if(l.JSC$17418_xmlHttp_){var e=l.JSC$17418_xmlHttp_;l.JSC$17418_xmlHttp_=null;e.abort();e.dispose()}};
yk.prototype.getLastError=function(){return this.JSC$17418_lastError_};
var r6u=function(l,e){try{var O=l.JSC$17418_channel_;if(O.state_!=0&&(O.JSC$17437_backChannelRequest_==l||OIC(O.forwardChannelRequestPool_,l)))if(!l.initialResponseDecoded_&&OIC(O.forwardChannelRequestPool_,l)&&O.state_==3){try{var E=O.wireCodec_.JSC$17432_parser_.parse(e)}catch(Z){E=null}if(Array.isArray(E)&&E.length==3){e=E;if(e[0]==0)a:if(O.JSC$17437_channelDebug_.debug("Server claims our backchannel is missing."),O.JSC$17437_backChannelTimerId_)O.JSC$17437_channelDebug_.debug("But we are currently starting the request.");
else{if(O.JSC$17437_backChannelRequest_)if(O.JSC$17437_backChannelRequest_.JSC$17418_requestStartTime_+3E3<l.JSC$17418_requestStartTime_)E3P(O),Jf0(O);else break a;else O.JSC$17437_channelDebug_.warning("We do not have a BackChannel established");X0P(O);aG(18)}else{O.JSC$17437_lastPostResponseArrayId_=e[1];var J=O.JSC$17437_lastPostResponseArrayId_-O.JSC$17437_lastArrayId_;if(0<J){var z=e[2];O.JSC$17437_channelDebug_.debug(z+" bytes (in "+J+" arrays) are outstanding on the BackChannel");z<37500&&
O.enableStreaming_&&O.JSC$17437_backChannelRetryCount_==0&&!O.JSC$17437_deadBackChannelTimerId_&&(O.JSC$17437_deadBackChannelTimerId_=k2((0,_.pb)(O.JSC$17439_onBackChannelDead_,O),6E3))}}if(zo3(O.forwardChannelRequestPool_)<=1&&O.forwardChannelFlushedCallback_){try{O.forwardChannelFlushedCallback_()}catch(Z){}O.forwardChannelFlushedCallback_=void 0}}else O.JSC$17437_channelDebug_.debug("Bad POST response data returned"),jP(O,11)}else if((l.initialResponseDecoded_||O.JSC$17437_backChannelRequest_==
l)&&E3P(O),!_.MA(e)){var M=O.wireCodec_.JSC$17432_parser_.parse(e);O.onInput_(M,l)}nV(4)}catch(Z){}};var bI3=function(l,e){this.JSC$17425_mapId=l;this.map=e;this.context=null};var Mq4=function(l){this.maxPoolSizeConfigured_=l||10;_.Op.PerformanceNavigationTiming?(l=_.Op.performance.getEntriesByType("navigation"),l=l.length>0&&(l[0].nextHopProtocol=="hq"||l[0].nextHopProtocol=="h2")):l=!!(_.Op.chrome&&_.Op.chrome.loadTimes&&_.Op.chrome.loadTimes()&&_.Op.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17428_maxSize_=l?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17428_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17428_request_=null;this.JSC$17428_pendingMessages_=
[]},Vq4=function(l){return l.JSC$17428_request_?!0:l.requestPool_?l.requestPool_.size>=l.JSC$17428_maxSize_:!1},zo3=function(l){return l.JSC$17428_request_?1:l.requestPool_?l.requestPool_.size:0},OIC=function(l,e){return l.JSC$17428_request_?l.JSC$17428_request_==e:l.requestPool_?l.requestPool_.has(e):!1},ZIh=function(l,e){l.requestPool_?l.requestPool_.add(e):l.JSC$17428_request_=e},ua3=function(l,e){l.JSC$17428_request_&&l.JSC$17428_request_==e?l.JSC$17428_request_=null:l.requestPool_&&l.requestPool_.has(e)&&
l.requestPool_.delete(e)};
Mq4.prototype.cancel=function(){this.JSC$17428_pendingMessages_=C_O(this);if(this.JSC$17428_request_)this.JSC$17428_request_.cancel(),this.JSC$17428_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var l=_.b(this.requestPool_.values()),e=l.next();!e.done;e=l.next())e.value.cancel();this.requestPool_.clear()}};
var C_O=function(l){if(l.JSC$17428_request_!=null)return l.JSC$17428_pendingMessages_.concat(l.JSC$17428_request_.JSC$17418_pendingMessages_);if(l.requestPool_!=null&&l.requestPool_.size!==0){var e=l.JSC$17428_pendingMessages_;l=_.b(l.requestPool_.values());for(var O=l.next();!O.done;O=l.next())e=e.concat(O.value.JSC$17418_pendingMessages_);return e}return _.rT(l.JSC$17428_pendingMessages_)},o30=function(l,e){l.JSC$17428_pendingMessages_=l.JSC$17428_pendingMessages_.concat(e)};var $k0=function(l,e){var O=new IG;O.debug("TestLoadImage: loading "+l);if(_.Op.Image){var E=new Image;E.onload=_.pz(H$,O,"TestLoadImage: loaded",!0,e,E);E.onerror=_.pz(H$,O,"TestLoadImage: error",!1,e,E);E.onabort=_.pz(H$,O,"TestLoadImage: abort",!1,e,E);E.ontimeout=_.pz(H$,O,"TestLoadImage: timeout",!1,e,E);_.Op.setTimeout(function(){if(E.ontimeout)E.ontimeout()},1E4);
E.src=l}else e(!1)},WSi=function(l,e){var O=new IG,E=new AbortController,J=setTimeout(function(){E.abort();
H$(O,"TestPingServer: timeout",!1,e)},1E4);
fetch(l,{signal:E.signal}).then(function(z){clearTimeout(J);z.ok?H$(O,"TestPingServer: ok",!0,e):H$(O,"TestPingServer: server error",!1,e)}).catch(function(){clearTimeout(J);
H$(O,"TestPingServer: error",!1,e)})},H$=function(l,e,O,E,J){try{l.debug(e),J&&(J.onload=null,J.onerror=null,J.onabort=null,J.ontimeout=null),E(O)}catch(z){}};var dkP=function(){this.JSC$17432_parser_=new As},g33=function(l,e,O){var E=O||"";
try{_.Fm1(l,function(J,z){var M=J;_.e0(J)&&(M=(0,_.Tv)(J));e.push(E+z+"="+encodeURIComponent(M))})}catch(J){throw e.push(E+"type="+encodeURIComponent("_badmap")),J;
}};var c$=function(l,e,O){return O&&O.internalChannelParams?O.internalChannelParams[l]||e:e},Fh=function(l){this.serverVersion_=0;
this.JSC$17437_outgoingMaps_=[];this.JSC$17437_channelDebug_=new IG;this.JSC$17437_hostPrefix_=this.JSC$17437_backChannelUri_=this.JSC$17437_forwardChannelUri_=this.JSC$17437_path_=this.JSC$17437_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17437_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17437_extraHeaders_=null;this.JSC$17437_nextMapId_=this.JSC$17437_nextRid_=0;this.JSC$17437_failFast_=c$("failFast",!1,l);this.enableStreaming_=this.JSC$17437_deadBackChannelTimerId_=
this.JSC$17437_backChannelTimerId_=this.JSC$17437_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17437_lastPostResponseArrayId_=this.JSC$17437_lastArrayId_=-1;this.JSC$17437_backChannelAttemptId_=this.JSC$17437_backChannelRetryCount_=this.JSC$17437_forwardChannelRetryCount_=0;this.JSC$17437_baseRetryDelayMs_=c$("baseRetryDelayMs",5E3,l);this.JSC$17437_retryDelaySeedMs_=c$("retryDelaySeedMs",1E4,l);this.JSC$17437_forwardChannelMaxRetries_=
c$("forwardChannelMaxRetries",2,l);this.JSC$17437_forwardChannelRequestTimeoutMs_=c$("forwardChannelRequestTimeoutMs",2E4,l);this.JSC$17437_xmlHttpFactory_=l&&l.xmlHttpFactory||void 0;this.networkTestUrl_=l&&l.networkTestUrl||void 0;this.usesFetchStreams_=l&&l.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17437_supportsCrossDomainXhrs_=l&&l.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Mq4(l&&l.concurrentRequestLimit);this.wireCodec_=new dkP;this.fastHandshake_=
l&&l.fastHandshake||!1;this.encodeInitMessageHeaders_=l&&l.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17437_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=l&&l.blockingHandshake||!1;l&&l.disableRedact&&this.JSC$17437_channelDebug_.disableRedact();l&&l.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
l&&l.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;l&&l.longPollingTimeout&&l.longPollingTimeout>0&&(this.longPollingTimeout_=l.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Fh.prototype.JSC$17439_channelVersion_=8;Fh.prototype.state_=1;
Fh.prototype.connect=function(l,e,O,E){this.JSC$17437_channelDebug_.debug("connect()");aG(0);this.JSC$17437_path_=l;this.JSC$17437_extraParams_=e||{};O&&E!==void 0&&(this.JSC$17437_extraParams_.OSID=O,this.JSC$17437_extraParams_.OAID=E);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17437_channelDebug_.debug("connectChannel_()");l=iIP(this,null,this.JSC$17437_path_);this.JSC$17437_channelDebug_.debug("GetForwardChannelUri: "+l);this.JSC$17437_forwardChannelUri_=l;w00(this)};
Fh.prototype.disconnect=function(){this.JSC$17437_channelDebug_.debug("disconnect()");AfH(this);if(this.state_==3){var l=this.JSC$17437_nextRid_++,e=this.JSC$17437_forwardChannelUri_.clone();_.S$(e,"SID",this.sid_);_.S$(e,"RID",l);_.S$(e,"TYPE","terminate");fV(this,e);l=new yk(this,this.JSC$17437_channelDebug_,this.sid_,l);l.JSC$17418_type_=2;l.JSC$17418_baseUri_=_.$N(e.clone());e=!1;if(_.Op.navigator&&_.Op.navigator.sendBeacon)try{e=_.Op.navigator.sendBeacon(l.JSC$17418_baseUri_.toString(),"")}catch(O){}!e&&
_.Op.Image&&((new Image).src=l.JSC$17418_baseUri_,e=!0);e||(l.JSC$17418_xmlHttp_=h0h(l.JSC$17418_channel_,null),l.JSC$17418_xmlHttp_.send(l.JSC$17418_baseUri_));l.JSC$17418_requestStartTime_=Date.now();Y7o(l)}n34(this)};
var Jf0=function(l){l.JSC$17437_backChannelRequest_&&(lKf(l),l.JSC$17437_backChannelRequest_.cancel(),l.JSC$17437_backChannelRequest_=null)},AfH=function(l){Jf0(l);
l.JSC$17437_backChannelTimerId_&&(_.Op.clearTimeout(l.JSC$17437_backChannelTimerId_),l.JSC$17437_backChannelTimerId_=null);E3P(l);l.forwardChannelRequestPool_.cancel();l.JSC$17437_forwardChannelTimerId_&&(typeof l.JSC$17437_forwardChannelTimerId_==="number"&&_.Op.clearTimeout(l.JSC$17437_forwardChannelTimerId_),l.JSC$17437_forwardChannelTimerId_=null)};
Fh.prototype.getState=function(){return this.state_};
var w00=function(l){Vq4(l.forwardChannelRequestPool_)||l.JSC$17437_forwardChannelTimerId_||(l.JSC$17437_forwardChannelTimerId_=!0,_.Ho(l.JSC$17439_onStartForwardChannelTimer_,l),l.JSC$17437_forwardChannelRetryCount_=0)},k7f=function(l,e){if(zo3(l.forwardChannelRequestPool_)>=l.forwardChannelRequestPool_.JSC$17428_maxSize_-(l.JSC$17437_forwardChannelTimerId_?1:0))return!1;
if(l.JSC$17437_forwardChannelTimerId_)return l.JSC$17437_channelDebug_.debug("Use the retry request that is already scheduled."),l.JSC$17437_outgoingMaps_=e.JSC$17418_pendingMessages_.concat(l.JSC$17437_outgoingMaps_),!0;if(l.state_==1||l.state_==2||l.JSC$17437_forwardChannelRetryCount_>=(l.JSC$17437_failFast_?0:l.JSC$17437_forwardChannelMaxRetries_))return!1;l.JSC$17437_channelDebug_.debug("Going to retry POST");l.JSC$17437_forwardChannelTimerId_=k2((0,_.pb)(l.JSC$17439_onStartForwardChannelTimer_,
l,e),aK3(l,l.JSC$17437_forwardChannelRetryCount_));l.JSC$17437_forwardChannelRetryCount_++;return!0};
Fh.prototype.JSC$17439_onStartForwardChannelTimer_=function(l){if(this.JSC$17437_forwardChannelTimerId_)if(this.JSC$17437_forwardChannelTimerId_=null,this.JSC$17437_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!l){this.JSC$17437_channelDebug_.debug("open_()");this.JSC$17437_nextRid_=Math.floor(Math.random()*1E5);l=this.JSC$17437_nextRid_++;var e=new yk(this,this.JSC$17437_channelDebug_,"",l),O=this.JSC$17437_extraHeaders_;this.initHeaders_&&(O?(O=_.mm.clone(O),_.mm.extend(O,this.initHeaders_)):
O=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(e.JSC$17418_extraHeaders_=O,O=null);var E;if(this.fastHandshake_)a:{for(var J=E=0;J<this.JSC$17437_outgoingMaps_.length;J++){b:{var z=this.JSC$17437_outgoingMaps_[J];if("__data__"in z.map&&(z=z.map.__data__,typeof z==="string")){z=z.length;break b}z=void 0}if(z===void 0)break;E+=z;if(E>4096){E=J;break a}if(E===4096||J===this.JSC$17437_outgoingMaps_.length-1){E=J+1;break a}}E=1E3}else E=1E3;E=IK4(this,e,E);
J=this.JSC$17437_forwardChannelUri_.clone();_.S$(J,"RID",l);_.S$(J,"CVER",22);this.httpSessionIdParam_&&_.S$(J,"X-HTTP-Session-Id",this.httpSessionIdParam_);fV(this,J);O&&(this.encodeInitMessageHeaders_?E="headers="+_.r5(xjC(O))+"&"+E:this.httpHeadersOverwriteParam_&&lPi(J,this.httpHeadersOverwriteParam_,O));ZIh(this.forwardChannelRequestPool_,e);this.blockingHandshake_&&_.S$(J,"TYPE","init");this.fastHandshake_?(_.S$(J,"$req",E),_.S$(J,"SID","null"),e.decodeInitialResponse_=!0,UD4(e,J,null)):UD4(e,
J,E);this.state_=2}}else this.state_==3&&(l?mkF(this,l):this.JSC$17437_outgoingMaps_.length==0?this.JSC$17437_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Vq4(this.forwardChannelRequestPool_)||(mkF(this),this.JSC$17437_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var mkF=function(l,e){var O;e?O=e.JSC$17418_rid_:O=l.JSC$17437_nextRid_++;var E=l.JSC$17437_forwardChannelUri_.clone();_.S$(E,"SID",l.sid_);_.S$(E,"RID",O);_.S$(E,"AID",l.JSC$17437_lastArrayId_);fV(l,E);l.httpHeadersOverwriteParam_&&l.JSC$17437_extraHeaders_&&lPi(E,l.httpHeadersOverwriteParam_,l.JSC$17437_extraHeaders_);O=new yk(l,l.JSC$17437_channelDebug_,l.sid_,O,l.JSC$17437_forwardChannelRetryCount_+1);l.httpHeadersOverwriteParam_===null&&(O.JSC$17418_extraHeaders_=l.JSC$17437_extraHeaders_);e&&
(l.JSC$17437_outgoingMaps_=e.JSC$17418_pendingMessages_.concat(l.JSC$17437_outgoingMaps_));e=IK4(l,O,1E3);O.setTimeout(Math.round(l.JSC$17437_forwardChannelRequestTimeoutMs_*.5)+Math.round(l.JSC$17437_forwardChannelRequestTimeoutMs_*.5*Math.random()));ZIh(l.forwardChannelRequestPool_,O);UD4(O,E,e)},fV=function(l,e){l.JSC$17437_extraParams_&&_.mm.forEach(l.JSC$17437_extraParams_,function(O,E){_.S$(e,E,O)});
l.handler_&&_.Fm1({},function(O,E){_.S$(e,E,O)})},IK4=function(l,e,O){O=Math.min(l.JSC$17437_outgoingMaps_.length,O);
var E=l.handler_?(0,_.pb)(l.handler_.JSC$17443_badMapError,l.handler_,l):null;a:{for(var J=l.JSC$17437_outgoingMaps_,z=-1;;){var M=["count="+O];z==-1?O>0?(z=J[0].JSC$17425_mapId,M.push("ofs="+z)):z=0:M.push("ofs="+z);for(var Z=!0,u=0;u<O;u++){var d=J[u].JSC$17425_mapId,g=J[u].map;d-=z;if(d<0)z=Math.max(0,J[u].JSC$17425_mapId-100),Z=!1;else try{g33(g,M,"req"+d+"_")}catch(w){E&&E(g)}}if(Z){E=M.join("&");break a}}E=void 0}l=l.JSC$17437_outgoingMaps_.splice(0,O);e.JSC$17418_pendingMessages_=l;return E},
yfP=function(l){l.JSC$17437_backChannelRequest_||l.JSC$17437_backChannelTimerId_||(l.JSC$17437_backChannelAttemptId_=1,_.Ho(l.JSC$17439_onStartBackChannelTimer_,l),l.JSC$17437_backChannelRetryCount_=0)},X0P=function(l){if(l.JSC$17437_backChannelRequest_||l.JSC$17437_backChannelTimerId_||l.JSC$17437_backChannelRetryCount_>=3)return!1;
l.JSC$17437_channelDebug_.debug("Going to retry GET");l.JSC$17437_backChannelAttemptId_++;l.JSC$17437_backChannelTimerId_=k2((0,_.pb)(l.JSC$17439_onStartBackChannelTimer_,l),aK3(l,l.JSC$17437_backChannelRetryCount_));l.JSC$17437_backChannelRetryCount_++;return!0};
Fh.prototype.JSC$17439_onStartBackChannelTimer_=function(){this.JSC$17437_backChannelTimerId_=null;p00(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17437_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17437_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17437_backChannelRequest_+" "+this.handshakeRttMs_);else{var l=2*this.handshakeRttMs_;this.JSC$17437_channelDebug_.info("BP detection timer enabled: "+l);this.bpDetectionTimerId_=k2((0,_.pb)(this.onBpDetectionTimer_,
this),l)}};
Fh.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17437_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17437_backChannelRequest_.JSC$17418_xmlHttp_!=null){var l=this.JSC$17437_backChannelRequest_.JSC$17418_xmlHttp_.getResponseText();l&&this.JSC$17437_channelDebug_.warning("Timer should have been cancelled : "+l)}this.JSC$17437_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;aG(10);Jf0(this);p00(this)}else this.JSC$17437_channelDebug_.warning("Invalid operation.")};
var lKf=function(l){l.bpDetectionTimerId_!=null&&(l.JSC$17437_channelDebug_.debug("Cancel the BP detection timer."),_.Op.clearTimeout(l.bpDetectionTimerId_),l.bpDetectionTimerId_=null)},p00=function(l){l.JSC$17437_channelDebug_.debug("Creating new HttpRequest");
l.JSC$17437_backChannelRequest_=new yk(l,l.JSC$17437_channelDebug_,l.sid_,"rpc",l.JSC$17437_backChannelAttemptId_);l.httpHeadersOverwriteParam_===null&&(l.JSC$17437_backChannelRequest_.JSC$17418_extraHeaders_=l.JSC$17437_extraHeaders_);l.JSC$17437_backChannelRequest_.JSC$17418_readyStateChangeThrottleMs_=0;var e=l.JSC$17437_backChannelUri_.clone();_.S$(e,"RID","rpc");_.S$(e,"SID",l.sid_);_.S$(e,"AID",l.JSC$17437_lastArrayId_);_.S$(e,"CI",l.enableStreaming_?"0":"1");!l.enableStreaming_&&l.longPollingTimeout_&&
_.S$(e,"TO",l.longPollingTimeout_);_.S$(e,"TYPE","xmlhttp");fV(l,e);l.httpHeadersOverwriteParam_&&l.JSC$17437_extraHeaders_&&lPi(e,l.httpHeadersOverwriteParam_,l.JSC$17437_extraHeaders_);l.backChannelRequestTimeoutMs_&&l.JSC$17437_backChannelRequest_.setTimeout(l.backChannelRequestTimeoutMs_);var O=l.JSC$17437_backChannelRequest_,E=l.JSC$17437_hostPrefix_;O.JSC$17418_type_=1;O.JSC$17418_baseUri_=_.$N(e.clone());O.JSC$17418_postData_=null;O.decodeChunks_=!0;POP(O,E);l.JSC$17437_channelDebug_.debug("New Request created")};
Fh.prototype.JSC$17439_onBackChannelDead_=function(){this.JSC$17437_deadBackChannelTimerId_!=null&&(this.JSC$17437_deadBackChannelTimerId_=null,Jf0(this),X0P(this),aG(19))};
var E3P=function(l){l.JSC$17437_deadBackChannelTimerId_!=null&&(_.Op.clearTimeout(l.JSC$17437_deadBackChannelTimerId_),l.JSC$17437_deadBackChannelTimerId_=null)},S7C=function(l,e){l.JSC$17437_channelDebug_.debug("Request complete");
var O=null;if(l.JSC$17437_backChannelRequest_==e){E3P(l);lKf(l);l.JSC$17437_backChannelRequest_=null;var E=2}else if(OIC(l.forwardChannelRequestPool_,e))O=e.JSC$17418_pendingMessages_,ua3(l.forwardChannelRequestPool_,e),E=1;else return;if(l.state_!=0)if(e.JSC$17418_successful_)E==1?(Hnf(e.JSC$17418_postData_?e.JSC$17418_postData_.length:0,Date.now()-e.JSC$17418_requestStartTime_,l.JSC$17437_forwardChannelRetryCount_),w00(l)):yfP(l);else{var J=e.JSC$17418_lastStatusCode_,z=e.getLastError();if(z==3||
z==0&&J>0)l.JSC$17437_channelDebug_.debug("Not retrying due to error type"),J>200&&(l.errorResponseStatusCode_=e.JSC$17418_lastStatusCode_);else{l.JSC$17437_channelDebug_.debug(function(){return"Maybe retrying, last error: "+ssi(z,l.errorResponseStatusCode_)});
if(E==1&&k7f(l,e)||E==2&&X0P(l))return;l.JSC$17437_channelDebug_.debug("Exceeded max number of retries")}O&&O.length>0&&o30(l.forwardChannelRequestPool_,O);l.JSC$17437_channelDebug_.debug("Error: HTTP request failed");switch(z){case 1:jP(l,5);break;case 4:jP(l,10);break;case 3:jP(l,6);break;default:jP(l,2)}}},aK3=function(l,e){var O=l.JSC$17437_baseRetryDelayMs_+Math.floor(Math.random()*l.JSC$17437_retryDelaySeedMs_);
l.isActive()||(l.JSC$17437_channelDebug_.debug("Inactive channel"),O*=2);return O*e};
Fh.prototype.onInput_=function(l,e){for(var O=0;O<l.length;O++){var E=l[O];this.JSC$17437_lastArrayId_=E[0];E=E[1];if(this.state_==2)if(E[0]=="c"){this.sid_=E[1];this.JSC$17437_hostPrefix_=E[2];var J=E[3];J!=null&&(this.JSC$17439_channelVersion_=J,this.JSC$17437_channelDebug_.info("VER="+this.JSC$17439_channelVersion_));J=E[4];J!=null&&(this.serverVersion_=J,this.JSC$17437_channelDebug_.info("SVER="+this.serverVersion_));E=E[5];E!=null&&typeof E==="number"&&E>0&&(this.backChannelRequestTimeoutMs_=
E*=1.5,this.JSC$17437_channelDebug_.info("backChannelRequestTimeoutMs_="+E));if(E=e.JSC$17418_xmlHttp_){var z=WU(E,"X-Client-Wire-Protocol");z&&(J=this.forwardChannelRequestPool_,!J.requestPool_&&(_.ZW(z,"spdy")||_.ZW(z,"quic")||_.ZW(z,"h2"))&&(J.JSC$17428_maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.JSC$17428_request_&&(ZIh(J,J.JSC$17428_request_),J.JSC$17428_request_=null)));this.httpSessionIdParam_&&((E=WU(E,"X-HTTP-Session-Id"))?(this.httpSessionId_=E,_.S$(this.JSC$17437_forwardChannelUri_,
this.httpSessionIdParam_,E)):this.JSC$17437_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17443_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-e.JSC$17418_requestStartTime_,this.JSC$17437_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));E=e;J=iIP(this,this.JSC$17437_supportsCrossDomainXhrs_?this.JSC$17437_hostPrefix_:null,this.JSC$17437_path_);this.JSC$17437_channelDebug_.debug("GetBackChannelUri: "+
J);this.JSC$17437_backChannelUri_=J;E.initialResponseDecoded_?(this.JSC$17437_channelDebug_.debug("Upgrade the handshake request to a backchannel."),ua3(this.forwardChannelRequestPool_,E),J=E,(z=this.backChannelRequestTimeoutMs_)&&J.setTimeout(z),J.JSC$17418_watchDogTimerId_&&(q70(J),Y7o(J)),this.JSC$17437_backChannelRequest_=E):yfP(this);this.JSC$17437_outgoingMaps_.length>0&&w00(this)}else E[0]!="stop"&&E[0]!="close"||jP(this,7);else this.state_==3&&(E[0]=="stop"||E[0]=="close"?E[0]=="stop"?jP(this,
7):this.disconnect():E[0]!="noop"&&this.handler_&&this.handler_.JSC$17443_channelHandleArray(E),this.JSC$17437_backChannelRetryCount_=0)}};
var jP=function(l,e){l.JSC$17437_channelDebug_.info("Error code "+e);if(e==2){var O=(0,_.pb)(l.testNetworkCallback_,l),E=l.networkTestUrl_,J=!E;E=new _.Jg(E||"//www.google.com/images/cleardot.gif");_.Op.location&&_.Op.location.protocol=="http"||_.XB(E,"https");_.$N(E);J?$k0(E.toString(),O):WSi(E.toString(),O)}else aG(2);l.onError_(e)};
Fh.prototype.testNetworkCallback_=function(l){l?(this.JSC$17437_channelDebug_.info("Successfully pinged google.com"),aG(2)):(this.JSC$17437_channelDebug_.info("Failed to ping google.com"),aG(1))};
Fh.prototype.onError_=function(l){this.JSC$17437_channelDebug_.debug("HttpChannel: error - "+l);this.state_=0;this.handler_&&this.handler_.JSC$17443_channelError(l);n34(this);AfH(this)};
var n34=function(l){l.state_=0;l.nonAckedMapsAtChannelClose_=[];if(l.handler_){var e=C_O(l.forwardChannelRequestPool_);if(e.length!=0||l.JSC$17437_outgoingMaps_.length!=0)l.JSC$17437_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+e.length+", outgoing: "+l.JSC$17437_outgoingMaps_.length}),_.Q8(l.nonAckedMapsAtChannelClose_,e),_.Q8(l.nonAckedMapsAtChannelClose_,l.JSC$17437_outgoingMaps_),l.forwardChannelRequestPool_.JSC$17428_pendingMessages_.length=0,_.rT(l.JSC$17437_outgoingMaps_),
l.JSC$17437_outgoingMaps_.length=0;
l.handler_.JSC$17443_channelClosed()}},KSO=function(l){if(l.state_==0)return l.nonAckedMapsAtChannelClose_;
var e=[];_.Q8(e,C_O(l.forwardChannelRequestPool_));_.Q8(e,l.JSC$17437_outgoingMaps_);return e},iIP=function(l,e,O){var E=_.rk(O);
E.JSC$8068_domain_!=""?(e&&_.zG(E,e+"."+E.JSC$8068_domain_),_.bO(E,E.JSC$8068_port_)):(E=_.Op.location,E=Ytf(E.protocol,e?e+"."+E.hostname:E.hostname,+E.port,O));e=l.httpSessionIdParam_;O=l.httpSessionId_;e&&O&&_.S$(E,e,O);_.S$(E,"VER",l.JSC$17439_channelVersion_);fV(l,E);return E},h0h=function(l,e,O){if(e&&!l.JSC$17437_supportsCrossDomainXhrs_)throw Error("xk");
e=l.usesFetchStreams_&&!l.JSC$17437_xmlHttpFactory_?new _.sk(new fy({streamBinaryChunks:O})):new _.sk(l.JSC$17437_xmlHttpFactory_);e.JSC$7833_withCredentials_=l.JSC$17437_supportsCrossDomainXhrs_;return e};
Fh.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var jF4=function(){};
_.X=jF4.prototype;_.X.JSC$17443_channelOpened=function(){};
_.X.JSC$17443_channelHandleArray=function(){};
_.X.JSC$17443_channelError=function(){};
_.X.JSC$17443_channelClosed=function(){};
_.X.isActive=function(){return!0};
_.X.JSC$17443_badMapError=function(){};var HIH=function(){},Td=function(l,e){_.Kx.call(this);
this.JSC$17446_channel_=new Fh(e);this.JSC$17446_url_=l;this.messageUrlParams_=e&&e.messageUrlParams||null;l=e&&e.messageHeaders||null;e&&e.clientProtocolHeaderRequired&&(l?_.mm.set(l,"X-Client-Protocol","webchannel"):l=_.mm.create("X-Client-Protocol","webchannel"));this.JSC$17446_channel_.JSC$17437_extraHeaders_=l;l=e&&e.initMessageHeaders||null;e&&e.messageContentType&&(l?_.mm.set(l,"X-WebChannel-Content-Type",e.messageContentType):l=_.mm.create("X-WebChannel-Content-Type",e.messageContentType));
e&&e.clientProfile&&(l?_.mm.set(l,"X-WebChannel-Client-Profile",e.clientProfile):l=_.mm.create("X-WebChannel-Client-Profile",e.clientProfile));this.JSC$17446_channel_.initHeaders_=l;(l=e&&e.httpHeadersOverwriteParam)&&!_.MA(l)&&(this.JSC$17446_channel_.httpHeadersOverwriteParam_=l);this.supportsCrossDomainXhr_=e&&e.supportsCrossDomainXhr||!1;this.sendRawJson_=e&&e.sendRawJson||!1;(e=e&&e.httpSessionIdParam)&&!_.MA(e)&&(this.JSC$17446_channel_.httpSessionIdParam_=e,_.mm.containsKey(this.messageUrlParams_,
e)&&_.mm.remove(this.messageUrlParams_,e));this.channelHandler_=new RG(this)};
_.o_(Td,_.Kx);Td.prototype.open=function(){this.JSC$17446_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17446_channel_.JSC$17437_supportsCrossDomainXhrs_=!0);this.JSC$17446_channel_.connect(this.JSC$17446_url_,this.messageUrlParams_||void 0)};
Td.prototype.close=function(){this.JSC$17446_channel_.disconnect()};
Td.prototype.send=function(l){var e=this.JSC$17446_channel_;if(typeof l==="string"){var O={};O.__data__=l;l=O}else this.sendRawJson_&&(O={},O.__data__=(0,_.Tv)(l),l=O);e.JSC$17437_outgoingMaps_.push(new bI3(e.JSC$17437_nextMapId_++,l));e.state_==3&&w00(e)};
Td.prototype.disposeInternal=function(){this.JSC$17446_channel_.handler_=null;delete this.channelHandler_;this.JSC$17446_channel_.disconnect();delete this.JSC$17446_channel_;Td.superClass_.disposeInternal.call(this)};
var cfi=function(l){kGF.call(this);l.__headers__&&(this.headers=l.__headers__,this.statusCode=l.__status__,delete l.__headers__,delete l.__status__);var e=l.__sm__;e?this.data=(this.metadataKey=_.mm.getAnyKey(e))?_.mm.get(e,this.metadataKey):e:this.data=l};
_.o_(cfi,kGF);var FS4=function(l){IqC.call(this);this.status=1;this.errorCode=l};
_.o_(FS4,IqC);var RG=function(l){this.JSC$17453_channel_=l};
_.o_(RG,jF4);RG.prototype.JSC$17443_channelOpened=function(){this.JSC$17453_channel_.dispatchEvent("w")};
RG.prototype.JSC$17443_channelHandleArray=function(l){this.JSC$17453_channel_.dispatchEvent(new cfi(l))};
RG.prototype.JSC$17443_channelError=function(l){this.JSC$17453_channel_.dispatchEvent(new FS4(l))};
RG.prototype.JSC$17443_channelClosed=function(){this.JSC$17453_channel_.dispatchEvent("x")};
var fKo=function(l,e){this.transportChannel_=l;this.JSC$17456_channel_=e},RoH=function(l){return KSO(l.JSC$17456_channel_).map(function(e){var O=l.transportChannel_;
e=e.map;"__data__"in e?(e=e.__data__,O=O.sendRawJson_?(0,_.Mv1)(e):e):O=e;return O})};var s2=function(l){T9u.dispatchEvent(new sF4(T9u,l))},T9u=new _.Kx,sF4=function(l){_.k$.call(this,"statevent",l)};
_.m(sF4,_.k$);var Gd=function(l,e,O,E,J){this.JSC$17461_channel_=l;this.JSC$17461_channelDebug_=e;this.sid_=O;this.JSC$17461_rid_=E;this.JSC$17461_retryId_=J||1;this.timeout_=45E3;this.JSC$17461_eventHandler_=new _.ue(this);this.pollingTimer_=new _.Zp;this.pollingTimer_.setInterval(250)};
_.X=Gd.prototype;_.X.JSC$17463_extraHeaders_=null;_.X.JSC$17463_successful_=!1;_.X.JSC$17463_watchDogTimerId_=null;_.X.JSC$17463_watchDogTimeoutTime_=null;_.X.JSC$17463_requestStartTime_=null;_.X.JSC$17463_type_=null;_.X.JSC$17463_baseUri_=null;_.X.JSC$17463_requestUri_=null;_.X.JSC$17463_postData_=null;_.X.JSC$17463_xmlHttp_=null;_.X.JSC$17463_xmlHttpChunkStart_=0;_.X.trident_=null;_.X.JSC$17463_verb_=null;_.X.JSC$17463_lastError_=null;_.X.JSC$17463_lastStatusCode_=-1;_.X.sendClose_=!0;
_.X.JSC$17463_cancelled_=!1;_.X.JSC$17463_readyStateChangeThrottleMs_=0;_.X.JSC$17463_readyStateChangeThrottle_=null;var G73=function(l,e){switch(l){case 0:return"Non-200 return code ("+e+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},B90={},P_u={};
Gd.prototype.setTimeout=function(l){this.timeout_=l};
var YS0=function(l,e,O){l.JSC$17463_type_=1;l.JSC$17463_baseUri_=_.$N(e.clone());l.JSC$17463_postData_=O;l.decodeChunks_=!0;Ukf(l,null)},ho0=function(l,e,O,E,J){l.JSC$17463_type_=1;
l.JSC$17463_baseUri_=_.$N(e.clone());l.JSC$17463_postData_=null;l.decodeChunks_=O;J&&(l.sendClose_=!1);Ukf(l,E)},Ukf=function(l,e){l.JSC$17463_requestStartTime_=Date.now();
LSO(l);l.JSC$17463_requestUri_=l.JSC$17463_baseUri_.clone();ME(l.JSC$17463_requestUri_,"t",l.JSC$17461_retryId_);l.JSC$17463_xmlHttpChunkStart_=0;l.JSC$17463_xmlHttp_=l.JSC$17461_channel_.JSC$17470_createXhrIo(l.JSC$17461_channel_.JSC$17470_shouldUseSecondaryDomains()?e:null);l.JSC$17463_readyStateChangeThrottleMs_>0&&(l.JSC$17463_readyStateChangeThrottle_=new _.b3((0,_.pb)(l.JSC$17463_xmlHttpHandler_,l,l.JSC$17463_xmlHttp_),l.JSC$17463_readyStateChangeThrottleMs_));l.JSC$17461_eventHandler_.listen(l.JSC$17463_xmlHttp_,
"readystatechange",l.JSC$17463_readyStateChangeHandler_);e=l.JSC$17463_extraHeaders_?_.mm.clone(l.JSC$17463_extraHeaders_):{};l.JSC$17463_postData_?(l.JSC$17463_verb_="POST",e["Content-Type"]="application/x-www-form-urlencoded",l.JSC$17463_xmlHttp_.send(l.JSC$17463_requestUri_,l.JSC$17463_verb_,l.JSC$17463_postData_,e)):(l.JSC$17463_verb_="GET",l.sendClose_&&!_.ws&&(e.Connection="close"),l.JSC$17463_xmlHttp_.send(l.JSC$17463_requestUri_,l.JSC$17463_verb_,null,e));l.JSC$17461_channel_.notifyServerReachabilityEvent(1);
e=l.JSC$17461_channelDebug_;var O=l.JSC$17463_postData_;if(O){var E="";O=O.split("&");for(var J=0;J<O.length;J++){var z=O[J].split("=");if(z.length>1){var M=z[0];z=z[1];var Z=M.split("_");E=Z.length>=2&&Z[1]=="type"?E+(M+"="+z+"&"):E+(M+"=redacted&")}}}else E=null;e.info("XMLHTTP REQ ("+l.JSC$17461_rid_+") [attempt "+l.JSC$17461_retryId_+"]: "+l.JSC$17463_verb_+"\n"+l.JSC$17463_requestUri_+"\n"+E)};
Gd.prototype.JSC$17463_readyStateChangeHandler_=function(l){l=l.target;var e=this.JSC$17463_readyStateChangeThrottle_;e&&_.Gv(l)==3?(this.JSC$17461_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$17463_xmlHttpHandler_(l)};
Gd.prototype.JSC$17463_xmlHttpHandler_=function(l){try{if(l==this.JSC$17463_xmlHttp_)a:{var e=_.Gv(this.JSC$17463_xmlHttp_),O=this.JSC$17463_xmlHttp_.JSC$7833_lastErrorCode_,E=this.JSC$17463_xmlHttp_.getStatus();if(_.ws&&!_.AZ("420+")){if(e<4)break a}else if(e<3||e==3&&!this.JSC$17463_xmlHttp_.getResponseText())break a;this.JSC$17463_cancelled_||e!=4||O==7||(O==8||E<=0?this.JSC$17461_channel_.notifyServerReachabilityEvent(3):this.JSC$17461_channel_.notifyServerReachabilityEvent(2));tqP(this);var J=
this.JSC$17463_xmlHttp_.getStatus();this.JSC$17463_lastStatusCode_=J;var z=this.JSC$17463_xmlHttp_.getResponseText();z||this.JSC$17461_channelDebug_.debug("No response text for uri "+this.JSC$17463_requestUri_+" status "+J);this.JSC$17463_successful_=J==200;this.JSC$17461_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17461_rid_+") [ attempt "+this.JSC$17461_retryId_+"]: "+this.JSC$17463_verb_+"\n"+this.JSC$17463_requestUri_+"\n"+e+" "+J);if(this.JSC$17463_successful_){e==4&&B$(this);if(this.decodeChunks_){for(l=
!0;!this.JSC$17463_cancelled_&&this.JSC$17463_xmlHttpChunkStart_<z.length;){var M=qSu(this,z);if(M==P_u){e==4&&(this.JSC$17463_lastError_=4,s2(15),l=!1);P$(this.JSC$17461_channelDebug_,this.JSC$17461_rid_,null,"[Incomplete Response]");break}else if(M==B90){this.JSC$17463_lastError_=4;s2(16);P$(this.JSC$17461_channelDebug_,this.JSC$17461_rid_,z,"[Invalid Chunk]");l=!1;break}else P$(this.JSC$17461_channelDebug_,this.JSC$17461_rid_,M,null),v3u(this,M)}e==4&&z.length==0&&(this.JSC$17463_lastError_=1,
s2(17),l=!1);this.JSC$17463_successful_=this.JSC$17463_successful_&&l;l||(P$(this.JSC$17461_channelDebug_,this.JSC$17461_rid_,z,"[Invalid Chunked Response]"),B$(this),N9i(this))}else P$(this.JSC$17461_channelDebug_,this.JSC$17461_rid_,z,null),v3u(this,z);this.JSC$17463_successful_&&!this.JSC$17463_cancelled_&&(e==4?this.JSC$17461_channel_.JSC$17470_onRequestComplete(this):(this.JSC$17463_successful_=!1,LSO(this)))}else J==400&&z.indexOf("Unknown SID")>0?(this.JSC$17463_lastError_=3,s2(13),this.JSC$17461_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17461_rid_+")")):(this.JSC$17463_lastError_=0,s2(14),this.JSC$17461_channelDebug_.warning("XMLHTTP Bad status "+J+" ("+this.JSC$17461_rid_+")")),B$(this),N9i(this)}else this.JSC$17461_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Z){this.JSC$17461_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var qSu=function(l,e){var O=l.JSC$17463_xmlHttpChunkStart_,E=e.indexOf("\n",O);if(E==-1)return P_u;O=Number(e.substring(O,E));if(isNaN(O))return B90;E+=1;if(E+O>e.length)return P_u;e=e.slice(E,E+O);l.JSC$17463_xmlHttpChunkStart_=E+O;return e};
Gd.prototype.cancel=function(){this.JSC$17463_cancelled_=!0;B$(this)};
var LSO=function(l){l.JSC$17463_watchDogTimeoutTime_=Date.now()+l.timeout_;rfz(l,l.timeout_)},rfz=function(l,e){if(l.JSC$17463_watchDogTimerId_!=null)throw Error("wk");
l.JSC$17463_watchDogTimerId_=pj((0,_.pb)(l.JSC$17463_onWatchDogTimeout_,l),e)},tqP=function(l){l.JSC$17463_watchDogTimerId_&&(_.Op.clearTimeout(l.JSC$17463_watchDogTimerId_),l.JSC$17463_watchDogTimerId_=null)};
Gd.prototype.JSC$17463_onWatchDogTimeout_=function(){this.JSC$17463_watchDogTimerId_=null;var l=Date.now();l-this.JSC$17463_watchDogTimeoutTime_>=0?(this.JSC$17461_channelDebug_.info("TIMEOUT: "+this.JSC$17463_requestUri_),this.JSC$17463_type_!=2&&this.JSC$17461_channel_.notifyServerReachabilityEvent(3),B$(this),this.JSC$17463_lastError_=2,s2(18),N9i(this)):(this.JSC$17461_channelDebug_.warning("WatchDog timer called too early"),rfz(this,this.JSC$17463_watchDogTimeoutTime_-l))};
var N9i=function(l){l.JSC$17461_channel_.JSC$17470_isClosed()||l.JSC$17463_cancelled_||l.JSC$17461_channel_.JSC$17470_onRequestComplete(l)},B$=function(l){tqP(l);
_.Q9(l.JSC$17463_readyStateChangeThrottle_);l.JSC$17463_readyStateChangeThrottle_=null;l.pollingTimer_.stop();l.JSC$17461_eventHandler_.removeAll();if(l.JSC$17463_xmlHttp_){var e=l.JSC$17463_xmlHttp_;l.JSC$17463_xmlHttp_=null;e.abort();e.dispose()}l.trident_&&(l.trident_=null)};
Gd.prototype.getLastError=function(){return this.JSC$17463_lastError_};
var v3u=function(l,e){try{l.JSC$17461_channel_.JSC$17470_onRequestData(l,e),l.JSC$17461_channel_.notifyServerReachabilityEvent(4)}catch(O){}};var P$=function(l,e,O,E){var J=l.info;a:if(O&&O!="y2f%"){try{var z=JSON.parse(O);if(z)for(var M=0;M<z.length;M++)if(Array.isArray(z[M])){var Z=z[M];if(!(Z.length<2)){var u=Z[1];if(Array.isArray(u)&&!(u.length<1)){var d=u[0];if(d!="noop"&&d!="stop")for(var g=1;g<u.length;g++)u[g]=""}}}var w=(0,_.Tv)(z);break a}catch(n){l.debug("Exception parsing expected JS array - probably was not JS");w=O;break a}w=void 0}else w=O;J.call(l,"XMLHTTP TEXT ("+e+"): "+w+(E?" "+E:""))};
Kj.prototype.debug=function(l){this.info(l)};
Kj.prototype.info=function(){};
Kj.prototype.warning=function(){};var Dkh=function(l,e){this.JSC$17468_channel_=l;this.JSC$17468_channelDebug_=e;this.JSC$17468_parser_=new As};
_.X=Dkh.prototype;_.X.JSC$17470_extraHeaders_=null;_.X.JSC$17470_request_=null;_.X.receivedIntermediateResult_=!1;_.X.JSC$17470_path_=null;_.X.state_=null;_.X.JSC$17470_lastStatusCode_=-1;_.X.JSC$17470_hostPrefix_=null;_.X.blockedPrefix_=null;
_.X.connect=function(l){this.JSC$17470_path_=l;l=SSF(this.JSC$17468_channel_,this.JSC$17470_path_);s2(3);Date.now();var e=this.JSC$17468_channel_.firstTestResults_;e!=null?(this.JSC$17470_hostPrefix_=e[0],(this.blockedPrefix_=e[1])?(this.state_=1,QFu(this)):(this.state_=2,xkP(this))):(ME(l,"MODE","init"),this.JSC$17470_request_=new Gd(this,this.JSC$17468_channelDebug_),this.JSC$17470_request_.JSC$17463_extraHeaders_=this.JSC$17470_extraHeaders_,ho0(this.JSC$17470_request_,l,!1,null,!0),this.state_=
0)};
var QFu=function(l){var e=l34(l.JSC$17468_channel_,l.blockedPrefix_,"/mail/images/cleardot.gif");_.$N(e);jmF(e.toString(),5E3,(0,_.pb)(l.checkBlockedCallback_,l),3,2E3);l.notifyServerReachabilityEvent(1)};
Dkh.prototype.checkBlockedCallback_=function(l){if(l)this.state_=2,xkP(this);else{s2(4);var e=this.JSC$17468_channel_;e.JSC$17471_channelDebug_.debug("Test Connection Blocked");e.JSC$17475_lastStatusCode_=e.connectionTest_.JSC$17470_lastStatusCode_;U2(e,9)}l&&this.notifyServerReachabilityEvent(2)};
var xkP=function(l){l.JSC$17468_channelDebug_.debug("TestConnection: starting stage 2");var e=l.JSC$17468_channel_.secondTestResults_;e!=null?(l.JSC$17468_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+e?"Buffered":"Unbuffered"),s2(5),e?(s2(11),Y2(l.JSC$17468_channel_,l,!1)):(s2(12),Y2(l.JSC$17468_channel_,l,!0))):(l.JSC$17470_request_=new Gd(l,l.JSC$17468_channelDebug_),l.JSC$17470_request_.JSC$17463_extraHeaders_=l.JSC$17470_extraHeaders_,e=eLF(l.JSC$17468_channel_,
l.JSC$17470_hostPrefix_,l.JSC$17470_path_),s2(5),ME(e,"TYPE","xmlhttp"),ho0(l.JSC$17470_request_,e,!1,l.JSC$17470_hostPrefix_,!1))};
_.X=Dkh.prototype;_.X.JSC$17470_createXhrIo=function(l){return this.JSC$17468_channel_.JSC$17470_createXhrIo(l)};
_.X.abort=function(){this.JSC$17470_request_&&(this.JSC$17470_request_.cancel(),this.JSC$17470_request_=null);this.JSC$17470_lastStatusCode_=-1};
_.X.JSC$17470_isClosed=function(){return!1};
_.X.JSC$17470_onRequestData=function(l,e){this.JSC$17470_lastStatusCode_=l.JSC$17463_lastStatusCode_;if(this.state_==0)if(this.JSC$17468_channelDebug_.debug("TestConnection: Got data for stage 1"),e){try{var O=this.JSC$17468_parser_.parse(e)}catch(E){Oiz(this.JSC$17468_channel_,this);return}this.JSC$17470_hostPrefix_=O[0];this.blockedPrefix_=O[1]}else this.JSC$17468_channelDebug_.debug("TestConnection: Null responseText"),Oiz(this.JSC$17468_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(s2(7),Date.now()):e=="11111"?(s2(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17470_lastStatusCode_=200,this.JSC$17470_request_.cancel(),this.JSC$17468_channelDebug_.debug("Test connection succeeded; using streaming connection"),s2(12),Y2(this.JSC$17468_channel_,this,!0)):(s2(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.X.JSC$17470_onRequestComplete=function(){this.JSC$17470_lastStatusCode_=this.JSC$17470_request_.JSC$17463_lastStatusCode_;this.JSC$17470_request_.JSC$17463_successful_?this.state_==0?(this.JSC$17468_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,QFu(this)):(this.state_=2,xkP(this))):this.state_==2&&(this.JSC$17468_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17468_channelDebug_.debug("Test connection succeeded; using streaming connection"),
s2(12),Y2(this.JSC$17468_channel_,this,!0)):(this.JSC$17468_channelDebug_.debug("Test connection failed; not using streaming"),s2(11),Y2(this.JSC$17468_channel_,this,!1))):(this.JSC$17468_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?s2(9):this.state_==2&&s2(10),Oiz(this.JSC$17468_channel_,this,this.JSC$17470_request_.getLastError()))};
_.X.JSC$17470_shouldUseSecondaryDomains=function(){return this.JSC$17468_channel_.JSC$17470_shouldUseSecondaryDomains()};
_.X.isActive=function(){return this.JSC$17468_channel_.isActive()};
_.X.notifyServerReachabilityEvent=function(l){this.JSC$17468_channel_.notifyServerReachabilityEvent(l)};var hs=function(l,e,O){this.state_=1;this.JSC$17471_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17471_channelDebug_=new Kj;this.JSC$17471_parser_=new As;this.firstTestResults_=l||null;this.secondTestResults_=e!=null?e:null;this.asyncTest_=O||!1},En4=function(l,e){this.JSC$17473_mapId=l;
this.map=e;this.context=null};
_.X=hs.prototype;_.X.JSC$17475_extraHeaders_=null;_.X.JSC$17475_extraParams_=null;_.X.forwardChannelRequest_=null;_.X.JSC$17475_backChannelRequest_=null;_.X.JSC$17475_path_=null;_.X.JSC$17475_forwardChannelUri_=null;_.X.JSC$17475_backChannelUri_=null;_.X.JSC$17475_hostPrefix_=null;_.X.JSC$17475_nextRid_=0;_.X.JSC$17475_nextMapId_=0;_.X.handler_=null;_.X.JSC$17475_forwardChannelTimerId_=null;_.X.JSC$17475_backChannelTimerId_=null;_.X.JSC$17475_deadBackChannelTimerId_=null;_.X.connectionTest_=null;
_.X.useChunked_=null;_.X.JSC$17475_lastArrayId_=-1;_.X.JSC$17475_lastPostResponseArrayId_=-1;_.X.JSC$17475_lastStatusCode_=-1;_.X.JSC$17475_forwardChannelRetryCount_=0;_.X.JSC$17475_backChannelRetryCount_=0;_.X.JSC$17475_channelVersion_=8;var JHf={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},XXF=function(l,e,O,E){_.k$.call(this,"timingevent",l);this.size=e;this.rtt=O;this.retries=E};
_.o_(XXF,_.k$);var zLh=function(l){_.k$.call(this,"serverreachability",l)};
_.o_(zLh,_.k$);hs.prototype.connect=function(l,e,O,E,J){this.JSC$17471_channelDebug_.debug("connect()");s2(0);this.JSC$17475_path_=e;this.JSC$17475_extraParams_=O||{};E&&J!==void 0&&(this.JSC$17475_extraParams_.OSID=E,this.JSC$17475_extraParams_.OAID=J);this.asyncTest_?(pj((0,_.pb)(this.connectTest_,this,l),100),bi3(this)):this.connectTest_(l)};
hs.prototype.disconnect=function(){this.JSC$17471_channelDebug_.debug("disconnect()");MJo(this);if(this.state_==3){var l=this.JSC$17475_nextRid_++,e=this.JSC$17475_forwardChannelUri_.clone();_.S$(e,"SID",this.sid_);_.S$(e,"RID",l);_.S$(e,"TYPE","terminate");LV(this,e);l=new Gd(this,this.JSC$17471_channelDebug_,this.sid_,l);l.JSC$17463_type_=2;l.JSC$17463_baseUri_=_.$N(e.clone());(new Image).src=l.JSC$17463_baseUri_.toString();l.JSC$17463_requestStartTime_=Date.now();LSO(l)}VJo(this)};
hs.prototype.connectTest_=function(l){this.JSC$17471_channelDebug_.debug("connectTest_()");this.connectionTest_=new Dkh(this,this.JSC$17471_channelDebug_);this.connectionTest_.JSC$17470_extraHeaders_=this.JSC$17475_extraHeaders_;this.connectionTest_.JSC$17468_parser_=this.JSC$17471_parser_;this.connectionTest_.connect(l)};
var bi3=function(l){l.JSC$17471_channelDebug_.debug("connectChannel_()");l.JSC$17475_ensureInState_(1,0);l.JSC$17475_forwardChannelUri_=SSF(l,l.JSC$17475_path_);Ziz(l)},MJo=function(l){l.connectionTest_&&(l.connectionTest_.abort(),l.connectionTest_=null);
l.JSC$17475_backChannelRequest_&&(l.JSC$17475_backChannelRequest_.cancel(),l.JSC$17475_backChannelRequest_=null);l.JSC$17475_backChannelTimerId_&&(_.Op.clearTimeout(l.JSC$17475_backChannelTimerId_),l.JSC$17475_backChannelTimerId_=null);usH(l);l.forwardChannelRequest_&&(l.forwardChannelRequest_.cancel(),l.forwardChannelRequest_=null);l.JSC$17475_forwardChannelTimerId_&&(_.Op.clearTimeout(l.JSC$17475_forwardChannelTimerId_),l.JSC$17475_forwardChannelTimerId_=null)},Ca3=function(l,e){if(l.state_==0)throw Error("zk");
l.JSC$17471_outgoingMaps_.length==1E3&&l.JSC$17471_parser_.stringify(e);l.JSC$17471_outgoingMaps_.push(new En4(l.JSC$17475_nextMapId_++,e));l.state_!=2&&l.state_!=3||Ziz(l)};
hs.prototype.JSC$17470_isClosed=function(){return this.state_==0};
hs.prototype.getState=function(){return this.state_};
var Ziz=function(l){l.forwardChannelRequest_||l.JSC$17475_forwardChannelTimerId_||(l.JSC$17475_forwardChannelTimerId_=pj((0,_.pb)(l.JSC$17475_onStartForwardChannelTimer_,l),0),l.JSC$17475_forwardChannelRetryCount_=0)};
hs.prototype.JSC$17475_onStartForwardChannelTimer_=function(l){this.JSC$17475_forwardChannelTimerId_=null;onf(this,l)};
var onf=function(l,e){l.JSC$17471_channelDebug_.debug("startForwardChannel_");if(l.state_==1){if(!e){l.JSC$17471_channelDebug_.debug("open_()");l.JSC$17475_nextRid_=Math.floor(Math.random()*1E5);e=l.JSC$17475_nextRid_++;var O=new Gd(l,l.JSC$17471_channelDebug_,"",e);O.JSC$17463_extraHeaders_=l.JSC$17475_extraHeaders_;var E=$Bu(l),J=l.JSC$17475_forwardChannelUri_.clone();_.S$(J,"RID",e);_.S$(J,"CVER","1");LV(l,J);YS0(O,J,E);l.forwardChannelRequest_=O;l.state_=2}}else l.state_==3&&(e?WRz(l,e):l.JSC$17471_outgoingMaps_.length==
0?l.JSC$17471_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):l.forwardChannelRequest_||(WRz(l),l.JSC$17471_channelDebug_.debug("startForwardChannel_ finished, sent request")))},WRz=function(l,e){if(e)if(l.JSC$17475_channelVersion_>6){l.JSC$17471_outgoingMaps_=l.pendingMaps_.concat(l.JSC$17471_outgoingMaps_);
l.pendingMaps_.length=0;var O=l.JSC$17475_nextRid_-1;e=$Bu(l)}else O=e.JSC$17461_rid_,e=e.JSC$17463_postData_;else O=l.JSC$17475_nextRid_++,e=$Bu(l);var E=l.JSC$17475_forwardChannelUri_.clone();_.S$(E,"SID",l.sid_);_.S$(E,"RID",O);_.S$(E,"AID",l.JSC$17475_lastArrayId_);LV(l,E);O=new Gd(l,l.JSC$17471_channelDebug_,l.sid_,O,l.JSC$17475_forwardChannelRetryCount_+1);O.JSC$17463_extraHeaders_=l.JSC$17475_extraHeaders_;O.setTimeout(1E4+Math.round(1E4*Math.random()));l.forwardChannelRequest_=O;YS0(O,E,e)},
LV=function(l,e){l.handler_&&(l=l.handler_.JSC$17482_getAdditionalParams())&&_.mm.forEach(l,function(O,E){_.S$(e,E,O)})},$Bu=function(l){var e=Math.min(l.JSC$17471_outgoingMaps_.length,1E3),O=["count="+e];
if(l.JSC$17475_channelVersion_>6&&e>0){var E=l.JSC$17471_outgoingMaps_[0].JSC$17473_mapId;O.push("ofs="+E)}else E=0;for(var J={},z=0;z<e;J={mapId$jscomp$3:void 0},z++){J.mapId$jscomp$3=l.JSC$17471_outgoingMaps_[z].JSC$17473_mapId;var M=l.JSC$17471_outgoingMaps_[z].map;J.mapId$jscomp$3=l.JSC$17475_channelVersion_<=6?z:J.mapId$jscomp$3-E;try{_.mm.forEach(M,function(Z){return function(u,d){O.push("req"+Z.mapId$jscomp$3+"_"+d+"="+encodeURIComponent(u))}}(J))}catch(Z){O.push("req"+J.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}l.pendingMaps_=l.pendingMaps_.concat(l.JSC$17471_outgoingMaps_.splice(0,e));
return O.join("&")},dBF=function(l){l.JSC$17475_backChannelRequest_||l.JSC$17475_backChannelTimerId_||(l.JSC$17475_backChannelAttemptId_=1,l.JSC$17475_backChannelTimerId_=pj((0,_.pb)(l.JSC$17475_onStartBackChannelTimer_,l),0),l.JSC$17475_backChannelRetryCount_=0)},iiz=function(l){if(l.JSC$17475_backChannelRequest_||l.JSC$17475_backChannelTimerId_||l.JSC$17475_backChannelRetryCount_>=3)return!1;
l.JSC$17471_channelDebug_.debug("Going to retry GET");l.JSC$17475_backChannelAttemptId_++;l.JSC$17475_backChannelTimerId_=pj((0,_.pb)(l.JSC$17475_onStartBackChannelTimer_,l),gnh(l,l.JSC$17475_backChannelRetryCount_));l.JSC$17475_backChannelRetryCount_++;return!0};
hs.prototype.JSC$17475_onStartBackChannelTimer_=function(){this.JSC$17475_backChannelTimerId_=null;this.JSC$17471_channelDebug_.debug("Creating new HttpRequest");this.JSC$17475_backChannelRequest_=new Gd(this,this.JSC$17471_channelDebug_,this.sid_,"rpc",this.JSC$17475_backChannelAttemptId_);this.JSC$17475_backChannelRequest_.JSC$17463_extraHeaders_=this.JSC$17475_extraHeaders_;this.JSC$17475_backChannelRequest_.JSC$17463_readyStateChangeThrottleMs_=0;var l=this.JSC$17475_backChannelUri_.clone();_.S$(l,
"RID","rpc");_.S$(l,"SID",this.sid_);_.S$(l,"CI",this.useChunked_?"0":"1");_.S$(l,"AID",this.JSC$17475_lastArrayId_);LV(this,l);_.S$(l,"TYPE","xmlhttp");ho0(this.JSC$17475_backChannelRequest_,l,!0,this.JSC$17475_hostPrefix_,!1);this.JSC$17471_channelDebug_.debug("New Request created")};
var Y2=function(l,e,O){l.JSC$17471_channelDebug_.debug("Test Connection Finished");l.useChunked_=l.secondTestResults_==null?O:!l.secondTestResults_;l.JSC$17475_lastStatusCode_=e.JSC$17470_lastStatusCode_;l.asyncTest_||bi3(l)},Oiz=function(l,e){l.JSC$17471_channelDebug_.debug("Test Connection Failed");
l.JSC$17475_lastStatusCode_=e.JSC$17470_lastStatusCode_;U2(l,2)};
hs.prototype.JSC$17470_onRequestData=function(l,e){if(this.state_!=0&&(this.JSC$17475_backChannelRequest_==l||this.forwardChannelRequest_==l))if(this.JSC$17475_lastStatusCode_=l.JSC$17463_lastStatusCode_,this.forwardChannelRequest_==l&&this.state_==3)if(this.JSC$17475_channelVersion_>7){try{var O=this.JSC$17471_parser_.parse(e)}catch(E){O=null}if(Array.isArray(O)&&O.length==3)if(e=O,e[0]==0)a:if(this.JSC$17471_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17475_backChannelTimerId_)this.JSC$17471_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17475_backChannelRequest_)if(this.JSC$17475_backChannelRequest_.JSC$17463_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17463_requestStartTime_)usH(this),this.JSC$17475_backChannelRequest_.cancel(),this.JSC$17475_backChannelRequest_=null;else break a;else this.JSC$17471_channelDebug_.warning("We do not have a BackChannel established");iiz(this);s2(19)}else this.JSC$17475_lastPostResponseArrayId_=e[1],l=this.JSC$17475_lastPostResponseArrayId_-this.JSC$17475_lastArrayId_,0<
l&&(e=e[2],this.JSC$17471_channelDebug_.debug(e+" bytes (in "+l+" arrays) are outstanding on the BackChannel"),e<37500&&this.useChunked_&&this.JSC$17475_backChannelRetryCount_==0&&!this.JSC$17475_deadBackChannelTimerId_&&(this.JSC$17475_deadBackChannelTimerId_=pj((0,_.pb)(this.JSC$17475_onBackChannelDead_,this),6E3)));else this.JSC$17471_channelDebug_.debug("Bad POST response data returned"),U2(this,11)}else e!="y2f%"&&(this.JSC$17471_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
U2(this,11));else this.JSC$17475_backChannelRequest_==l&&usH(this),_.MA(e)||(l=this.JSC$17471_parser_.parse(e),this.onInput_(l))};
hs.prototype.JSC$17475_onBackChannelDead_=function(){this.JSC$17475_deadBackChannelTimerId_!=null&&(this.JSC$17475_deadBackChannelTimerId_=null,this.JSC$17475_backChannelRequest_.cancel(),this.JSC$17475_backChannelRequest_=null,iiz(this),s2(20))};
var usH=function(l){l.JSC$17475_deadBackChannelTimerId_!=null&&(_.Op.clearTimeout(l.JSC$17475_deadBackChannelTimerId_),l.JSC$17475_deadBackChannelTimerId_=null)};
hs.prototype.JSC$17470_onRequestComplete=function(l){this.JSC$17471_channelDebug_.debug("Request complete");if(this.JSC$17475_backChannelRequest_==l){usH(this);this.JSC$17475_backChannelRequest_=null;var e=2}else if(this.forwardChannelRequest_==l)this.forwardChannelRequest_=null,e=1;else return;this.JSC$17475_lastStatusCode_=l.JSC$17463_lastStatusCode_;if(this.state_!=0)if(l.JSC$17463_successful_)if(e==1){e=l.JSC$17463_postData_?l.JSC$17463_postData_.length:0;l=Date.now()-l.JSC$17463_requestStartTime_;
var O=T9u;O.dispatchEvent(new XXF(O,e,l,this.JSC$17475_forwardChannelRetryCount_));Ziz(this);this.handler_&&this.handler_.JSC$17482_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else dBF(this);else{O=l.getLastError();if(O==3||O==7||O==0&&this.JSC$17475_lastStatusCode_>0)this.JSC$17471_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17471_channelDebug_.debug("Maybe retrying, last error: "+G73(O,this.JSC$17475_lastStatusCode_));var E;if(E=e==1)this.forwardChannelRequest_||
this.JSC$17475_forwardChannelTimerId_||this.state_==1||this.JSC$17475_forwardChannelRetryCount_>=2?E=!1:(this.JSC$17471_channelDebug_.debug("Going to retry POST"),this.JSC$17475_forwardChannelTimerId_=pj((0,_.pb)(this.JSC$17475_onStartForwardChannelTimer_,this,l),gnh(this,this.JSC$17475_forwardChannelRetryCount_)),this.JSC$17475_forwardChannelRetryCount_++,E=!0);if(E||e==2&&iiz(this))return;this.JSC$17471_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17471_channelDebug_.debug("Error: HTTP request failed");
switch(O){case 1:U2(this,5);break;case 4:U2(this,10);break;case 3:U2(this,6);break;case 7:U2(this,12);break;default:U2(this,2)}}};
var gnh=function(l,e){var O=5E3+Math.floor(Math.random()*1E4);l.isActive()||(l.JSC$17471_channelDebug_.debug("Inactive channel"),O*=2);return O*e};
hs.prototype.onInput_=function(l){for(var e=0;e<l.length;e++){var O=l[e];this.JSC$17475_lastArrayId_=O[0];O=O[1];this.state_==2?O[0]=="c"?(this.sid_=O[1],this.JSC$17475_hostPrefix_=O[2],O=O[3],O!=null?this.JSC$17475_channelVersion_=O:this.JSC$17475_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17482_channelOpened(),this.JSC$17475_backChannelUri_=eLF(this,this.JSC$17475_hostPrefix_,this.JSC$17475_path_),dBF(this)):O[0]=="stop"&&U2(this,7):this.state_==3&&(O[0]=="stop"?U2(this,7):
O[0]!="noop"&&this.handler_&&this.handler_.JSC$17482_channelHandleArray(O),this.JSC$17475_backChannelRetryCount_=0)}};
hs.prototype.JSC$17475_ensureInState_=function(l){if(!_.hq(arguments,this.state_))throw Error("Ak`"+this.state_);};
var U2=function(l,e){l.JSC$17471_channelDebug_.info("Error code "+e);if(e==2||e==9){var O=null;l.handler_&&(O=null);var E=(0,_.pb)(l.testGoogleComCallback_,l);O||(O=new _.Jg("//www.google.com/images/cleardot.gif"),_.$N(O));KPu(O.toString(),1E4,E)}else s2(2);l.onError_(e)};
hs.prototype.testGoogleComCallback_=function(l){l?(this.JSC$17471_channelDebug_.info("Successfully pinged google.com"),s2(2)):(this.JSC$17471_channelDebug_.info("Failed to ping google.com"),s2(1),this.onError_(8))};
hs.prototype.onError_=function(l){this.JSC$17471_channelDebug_.debug("HttpChannel: error - "+l);this.state_=0;this.handler_&&this.handler_.JSC$17482_channelError(l);VJo(this);MJo(this)};
var VJo=function(l){l.state_=0;l.JSC$17475_lastStatusCode_=-1;if(l.handler_)if(l.pendingMaps_.length==0&&l.JSC$17471_outgoingMaps_.length==0)l.handler_.JSC$17482_channelClosed();else{l.JSC$17471_channelDebug_.debug("Number of undelivered maps, pending: "+l.pendingMaps_.length+", outgoing: "+l.JSC$17471_outgoingMaps_.length);var e=_.rT(l.pendingMaps_),O=_.rT(l.JSC$17471_outgoingMaps_);l.pendingMaps_.length=0;l.JSC$17471_outgoingMaps_.length=0;l.handler_.JSC$17482_channelClosed(e,O)}},SSF=function(l,
e){e=l34(l,null,e);
l.JSC$17471_channelDebug_.debug("GetForwardChannelUri: "+e);return e},eLF=function(l,e,O){e=l34(l,l.JSC$17470_shouldUseSecondaryDomains()?e:null,O);
l.JSC$17471_channelDebug_.debug("GetBackChannelUri: "+e);return e},l34=function(l,e,O){var E=_.rk(O);
if(E.JSC$8068_domain_!="")e&&_.zG(E,e+"."+E.JSC$8068_domain_),_.bO(E,E.JSC$8068_port_);else{var J=window.location;E=Ytf(J.protocol,e?e+"."+J.hostname:J.hostname,+J.port,O)}l.JSC$17475_extraParams_&&_.mm.forEach(l.JSC$17475_extraParams_,function(z,M){_.S$(E,M,z)});
_.S$(E,"VER",l.JSC$17475_channelVersion_);LV(l,E);return E};
hs.prototype.JSC$17470_createXhrIo=function(l){if(l)throw Error("xk");l=new _.sk;l.JSC$7833_withCredentials_=!1;return l};
hs.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
hs.prototype.notifyServerReachabilityEvent=function(l){var e=T9u;e.dispatchEvent(new zLh(e,l))};
hs.prototype.JSC$17470_shouldUseSecondaryDomains=function(){return!1};
new N6u;var wX4=function(){};
_.X=wX4.prototype;_.X.JSC$17482_channelOpened=function(){};
_.X.JSC$17482_channelHandleArray=function(){};
_.X.JSC$17482_channelSuccess=function(){};
_.X.JSC$17482_channelError=function(){};
_.X.JSC$17482_channelClosed=function(){};
_.X.JSC$17482_getAdditionalParams=function(){return{}};
_.X.isActive=function(){return!0};var AHH=function(l){l.front_.length===0&&(l.front_=l.back_,l.front_.reverse(),l.back_=[])};
_.X=cP0.prototype;_.X.enqueue=function(l){this.back_.push(l)};
_.X.peek=function(){AHH(this);return _.sp(this.front_)};
_.X.getCount=function(){return this.front_.length+this.back_.length};
_.X.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.X.clear=function(){this.front_=[];this.back_=[]};
_.X.contains=function(l){return _.hq(this.front_,l)||_.hq(this.back_,l)};
_.X.remove=function(l){var e=this.front_;var O=Array.prototype.lastIndexOf.call(e,l,e.length-1);O>=0?(_.vx(e,O),e=!0):e=!1;return e||_.NA(this.back_,l)};
_.X.getValues=function(){for(var l=[],e=this.front_.length-1;e>=0;--e)l.push(this.front_[e]);e=this.back_.length;for(var O=0;O<e;++O)l.push(this.back_[O]);return l};var ts=function(l){this.JSC$17486_map_=new _.$k;this.size=0;l&&this.addAll(l)},nnO=function(l){var e=typeof l;
return e=="object"&&l||e=="function"?"o"+_.Ox(l):e.charAt(0)+l};
_.X=ts.prototype;_.X.getCount=function(){return this.JSC$17486_map_.size};
_.X.add=function(l){this.JSC$17486_map_.set(nnO(l),l);this.size=this.JSC$17486_map_.size};
_.X.addAll=function(l){l=_.J6(l);for(var e=l.length,O=0;O<e;O++)this.add(l[O]);this.size=this.JSC$17486_map_.size};
_.X.removeAll=function(l){l=_.J6(l);for(var e=l.length,O=0;O<e;O++)this.remove(l[O]);this.size=this.JSC$17486_map_.size};
_.X.delete=function(l){l=this.JSC$17486_map_.remove(nnO(l));this.size=this.JSC$17486_map_.size;return l};
_.X.remove=function(l){return this.delete(l)};
_.X.clear=function(){this.JSC$17486_map_.clear();this.size=0};
_.X.isEmpty=function(){return this.JSC$17486_map_.size===0};
_.X.has=function(l){return this.JSC$17486_map_.containsKey(nnO(l))};
_.X.contains=function(l){return this.JSC$17486_map_.containsKey(nnO(l))};
_.X.getValues=function(){return this.JSC$17486_map_.getValues()};
_.X.values=function(){return this.JSC$17486_map_.values()};
_.X.clone=function(){return new ts(this)};
_.X.equals=function(l){return this.getCount()==Ps4(l)&&a3u(this,l)};
var a3u=function(l,e){var O=Ps4(e);if(l.getCount()>O)return!1;!(e instanceof ts)&&O>5&&(e=new ts(e));return UTu(l,function(E){var J=e;return J.contains&&typeof J.contains=="function"?J.contains(E):J.containsValue&&typeof J.containsValue=="function"?J.containsValue(E):_.SM(J)||typeof J==="string"?_.hq(J,E):_.mm.containsValue(J,E)})};
ts.prototype.__iterator__=function(){return this.JSC$17486_map_.__iterator__(!1)};
ts.prototype[Symbol.iterator]=function(){return this.values()};var kxF={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(l){return(this._clampValue(l)-this.min)/(this.max-this.min)},
_clampValue:function(l){return Math.min(this.max,Math.max(this.min,this._calcStep(l)))},
_calcStep:function(l){l=parseFloat(l);if(!this.step)return l;l=Math.round((l-this.min)/this.step);return this.step<1?l/(1/this.step)+this.min:l*this.step+this.min},
_validateValue:function(){var l=this._clampValue(this.value);this.value=this.oldValue=isNaN(l)?this.oldValue:l;return this.value!==l},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var I3f;var mB0;_.RB({_template:function(){if(mB0!==void 0)return mB0;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;I3f===void 0&&(I3f=document.createElement("template"));var E=I3f;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return mB0=l},
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(){_.OK(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(l){l.keyCode===27&&(l.preventDefault(),this.close())},
_track:function(l){if(!this.persistent&&!this.disableSwipe)switch(l.preventDefault(),l.detail.state){case "start":this._trackStart(l);break;case "track":this._trackMove(l);break;case "end":this._trackEnd(l)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var l=this.$.contentContainer.getBoundingClientRect();this._savedWidth=l.width;this._translateOffset=this.position==="left"?l.left:l.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(l){this._trackDetails&&(this._translateDrawer(l.detail.dx+this._translateOffset),this._trackDetails.push({dx:l.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(l){if(this._trackDetails){var e=l.detail.dx+this._translateOffset,O=this.getWidth();e=this.position==="left"?e>=0||e<=-O:e<=0||e>=O;if(!e){var E=this._trackDetails;this._trackDetails=null;this._flingDrawer(l,E);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}O/=2;l.detail.dx<-O?this.opened=this.position==="right":l.detail.dx>O&&(this.opened=this.position==="left");e?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(l,e){for(var O=Date.now(),E=O-100,J,z=0,M=e.length-1;z<=M;){var Z=z+M>>1,u=e[Z];u.timeStamp>=E?(J=u,M=Z-1):z=Z+1}return J?(l.detail.dx-J.dx)/(O-J.timeStamp||1):0},
_flingDrawer:function(l,e){e=this._calculateVelocity(l,e);if(!(Math.abs(e)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;l=l.detail.dx+this._translateOffset;var O=this.getWidth(),E=this.position==="left",J=e>0;J?(e=Math.max(e,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(e=Math.min(e,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");e=this._FLING_INITIAL_SLOPE*(!J&&E?-(l+O):J&&!E?O-l:-l)/e;this._styleTransitionDuration(e);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,e)}},
_styleTransitionDuration:function(l){this.style.transitionDuration=l+"ms";this.$.contentContainer.style.transitionDuration=l+"ms";this.$.scrim.style.transitionDuration=l+"ms"},
_styleTransitionTimingFunction:function(l){this.$.contentContainer.style.transitionTimingFunction=l;this.$.scrim.style.transitionTimingFunction=l},
_translateDrawer:function(l){var e=this.getWidth();this.position==="left"?(l=Math.max(-e,Math.min(l,0)),this.$.scrim.style.opacity=1+l/e):(l=Math.max(0,Math.min(l,e)),this.$.scrim.style.opacity=1-l/e);this.translate3d(l+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var l=this._drawerState;l===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;l!==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=""),l!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var l=_.c9(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"])');l.length>0?(this._firstTabStop=l[0],this._lastTabStop=l[l.length-1]):
this._lastTabStop=this._firstTabStop=null;(l=this.getAttribute("tabindex"))&&parseInt(l,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(l){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||l.keyCode!==9||(l.shiftKey?this._firstTabStop&&_.c9(l).localTarget===this._firstTabStop&&(l.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.c9(l).localTarget===this._lastTabStop&&(l.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(l,e){this.toggleClass("visible",l&&!e,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var yHf;var pXf;_.RB({_template:function(){if(pXf!==void 0)return pXf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;yHf===void 0&&(yHf=document.createElement("template"));var E=yHf;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return pXf=l},
is:"tp-yt-paper-progress",behaviors:[kxF],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(l){this.toggleClass("indeterminate",l,this.$.primaryProgress)},
_transformProgress:function(l,e){l.style.transform=l.style.webkitTransform="scaleX("+e/100+")"},
_mainRatioChanged:function(l){this._transformProgress(this.$.primaryProgress,l)},
_progressChanged:function(l,e,O,E,J){l=this._clampValue(l);e=this._clampValue(e);var z=this._calcRatio(l)*100,M=this._calcRatio(e)*100;this._setSecondaryRatio(z);this._transformProgress(this.$.secondaryProgress,z);this._transformProgress(this.$.primaryProgress,M);this.secondaryProgress=l;J?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",e);this.setAttribute("aria-valuemin",O);this.setAttribute("aria-valuemax",E)},
_disabledChanged:function(l){this.setAttribute("aria-disabled",l?"true":"false")},
_hideSecondaryProgress:function(l){return l===0}});var KRi;var jto;var Hiu=function(){};
_.X=Hiu.prototype;_.X.registered=function(){};
_.X.addOwnKeyBinding=function(){};
_.X.removeOwnKeyBindings=function(){};
_.X.keyboardEventMatchesKeys=function(){};
_.X._collectKeyBindings=function(){};
_.X._prepKeyBindings=function(){};
_.X._addKeyBinding=function(){};
_.X._resetKeyEventListeners=function(){};
_.X._listenKeyEventListeners=function(){};
_.X._unlistenKeyEventListeners=function(){};
_.X._onKeyBindingEvent=function(){};
_.X._triggerKeyHandler=function(){};
_.X._tapHandler=function(){};
_.X._focusChanged=function(){};
_.X._detectKeyboardFocus=function(){};
_.X._userActivate=function(){};
_.X._upHandler=function(){};
_.X._spaceKeyDownHandler=function(){};
_.X._spaceKeyUpHandler=function(){};
_.X._asyncClick=function(){};
_.X._pressedChanged=function(){};
_.X._ariaActiveAttributeChanged=function(){};
_.X._activeChanged=function(){};
_.X._controlStateChanged=function(){};
_.X._changedButtonState=function(){};
_.X._focusBlurHandler=function(){};
_.X._disabledChanged=function(){};
_.X._changedControlState=function(){};
_.X._buttonStateChanged=function(){};
_.X._downHandler=function(){};
_.X.ensureRipple=function(){};
_.X.getRipple=function(){};
_.X.hasRipple=function(){};
_.X._noinkChanged=function(){};
_.X._calcRatio=function(){};
_.X._clampValue=function(){};
_.X._calcStep=function(){};
_.X._validateValue=function(){};
_.X._update=function(){};
_.X._setImmediateValue=function(){};
_.X._setExpand=function(){};
_.X._setDragging=function(){};
_.X._setTransiting=function(){};
_.X._setMarkers=function(){};
_.X._setPressed=function(){};
_.X._setPointerDown=function(){};
_.X._setReceivedFocusFromKeyboard=function(){};
_.X._setFocused=function(){};
_.X._setRatio=function(){};
Hiu=_.RB({_template:function(){if(jto!==void 0)return jto;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;KRi===void 0&&(KRi=document.createElement("template"));var E=KRi;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return jto=l},
is:"tp-yt-paper-slider",behaviors:[_.po,_.cy,_.v70,kxF],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&&_.PQ(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(l,e,O){this.setAttribute("aria-valuemin",e);this.setAttribute("aria-valuemax",O);this.setAttribute("aria-valuenow",l);this._positionKnob(this._calcRatio(l)*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(l){this._setImmediateValue(this._calcStep(this._calcKnobPosition(l)));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(l){return(this.max-this.min)*l/100+this.min},
_onTrack:function(l){l.stopPropagation();switch(l.detail.state){case "start":this._trackStart(l);break;case "track":this._trackX(l);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(l){this.dragging||this._trackStart(l);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,l.detail.dx*(this._isRTL?-1:1)));l=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(l);l=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(l+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var l=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;l.transform=l.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(l){this._expandKnob();l.preventDefault();this.focus()},
_bartrack:function(l){this._allowBarEvent(l)&&this._onTrack(l)},
_barclick:function(l){this._w=this.$.sliderBar.offsetWidth;var e=this.$.sliderBar.getBoundingClientRect();e=(l.detail.x-e.left)/this._w*100;this._isRTL&&(e=100-e);var O=this.ratio;this._setTransiting(!0);this._positionKnob(e);O===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
l.preventDefault();this.focus()},
_bardown:function(l){this._allowBarEvent(l)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(l))},
_knobTransitionEnd:function(l){l.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(l,e,O,E){E||this._setMarkers([]);e=Math.round((O-e)/this.step);e>l&&(e=l);if(e<0||!isFinite(e))e=0;this._setMarkers(Array(e))},
_mergeClasses:function(l){return Object.keys(l).filter(function(e){return l[e]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(l){return!this.ignoreBarTouch||l.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(l){this._isRTL?this._incrementKey(l):this._decrementKey(l)},
_rightKey:function(l){this._isRTL?this._decrementKey(l):this._incrementKey(l)},
_incrementKey:function(l){this.disabled||(l.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),l.preventDefault())},
_decrementKey:function(l){this.disabled||(l.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),l.preventDefault())},
_changeValue:function(l){this.value=l.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(l){l.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.qLx._createRipple.call(this)},
_focusedChanged:function(l){l&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=l?"":"none",this._ripple.holdDown=l)}});var cHC;var FRo;var qW=null,f3u=function(){};
_.X=f3u.prototype;_.X.fit=function(){};
_.X._discoverInfo=function(){};
_.X.resetFit=function(){};
_.X.refit=function(){};
_.X.position=function(){};
_.X.constrain=function(){};
_.X._sizeDimension=function(){};
_.X.__sizeDimension=function(){};
_.X.center=function(){};
_.X.__getNormalizedRect=function(){};
_.X.__getOffscreenArea=function(){};
_.X.__getPosition=function(){};
_.X.notifyResize=function(){};
_.X.assignParentResizable=function(){};
_.X.stopResizeNotificationsFor=function(){};
_.X._subscribeIronResize=function(){};
_.X._unsubscribeIronResize=function(){};
_.X.resizerShouldNotify=function(){};
_.X._onDescendantIronResize=function(){};
_.X._fireResize=function(){};
_.X._onIronRequestResizeNotifications=function(){};
_.X._parentResizableChanged=function(){};
_.X._notifyDescendant=function(){};
_.X._requestResizeNotifications=function(){};
_.X._findParent=function(){};
_.X.toggle=function(){};
_.X.open=function(){};
_.X.close=function(){};
_.X.cancel=function(){};
_.X.invalidateTabbables=function(){};
_.X._ensureSetup=function(){};
_.X._canceledChanged=function(){};
_.X._withBackdropChanged=function(){};
_.X._prepareRenderOpened=function(){};
_.X._finishRenderOpened=function(){};
_.X._finishRenderClosed=function(){};
_.X._preparePositioning=function(){};
_.X._finishPositioning=function(){};
_.X._applyFocus=function(){};
_.X._onCaptureClick=function(){};
_.X._onCaptureFocus=function(){};
_.X._onCaptureEsc=function(){};
_.X._onCaptureTab=function(){};
_.X._onIronResize=function(){};
_.X._onNodesChange=function(){};
_.X.__ensureFirstLastFocusables=function(){};
_.X.__openedChanged=function(){};
_.X.__deraf=function(){};
_.X.__updateScrollObservers=function(){};
_.X.__addScrollListeners=function(){};
_.X.__removeScrollListeners=function(){};
_.X.__isValidScrollAction=function(){};
_.X.__onCaptureScroll=function(){};
_.X.__saveScrollPosition=function(){};
_.X.__restoreScrollPosition=function(){};
_.X._setCanceled=function(){};
f3u=_.RB({_template:function(){if(FRo!==void 0)return FRo;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;cHC===void 0&&(cHC=document.createElement("template"));var E=cHC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);return FRo=l},
is:"tp-yt-paper-toast",behaviors:[_.SZ],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(){_.pi._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.qZ.requestAvailability()},
show:function(l){typeof l=="string"&&(l={text:l});for(var e in l)e.indexOf("_")===0?_.pi._warn('The property "'+e+'" is private and was not set.'):e in this?this[e]=l[e]:_.pi._warn('The property "'+e+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(l){l&&l.target===this&&l.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(qW&&qW!==this&&qW.close(),qW=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):qW===this&&(qW=null);_.DY._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(l){this.positionTarget=l},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var RLP=new _.v("disablePersonalizationAction");var mvC=new _.v("showDmaConsentFlowCommand");var y$C=new _.v("showMmgNoticeCommand");var TIF=new _.v("saveConsentAction");var stz=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ej(l)};
_.m(stz,_.Gu);var GxP=_.lr(stz);var BIC=new _.v("updateTopbarAvatarAction");var Paz=new _.v("channelHandleValidationResultRenderer");var UB0=new _.v("generateHandleFromNameResultRenderer");var Yfu=new _.v("channelHandleInputRenderer");var hLh=new _.v("copyLinkRenderer");var LR4=new _.v("timedCommand");var tJH=new _.v("clearCookieAction");var qfH=new _.v("getMultiPageMenuAction");var vn4=new _.v("addToGuideSectionAction"),NIC=new _.v("removeFromGuideSectionAction");var rHu=new _.v("updateNotificationsUnseenCountAction");var DBo=new _.v("resetChannelUnreadCountCommand");var SfC=new _.v("resetSubscriptionsUnreadDotCommand");var Qt0=new _.v("selectLanguageCommand");var UuF=new _.v("sendFeedbackAction");var xBF=new _.v("uploadImageToScottyCommand");var lYF=new _.v("registerPromoCommand");var e2z=new _.v("setPushNotificationsEnabledCommand");var Ooi=new _.v("desktopTopbarRenderer");var EkP=new _.v("surveyFollowUpRenderer");var JJO=new _.v("handlesClaimingRadioOptionRenderer");var Xy3=new _.v("hotkeyDialogRenderer");var z24=new _.v("modifyReportFormCommand");var boF=new _.v("accountLinkCommand");var MZO=new _.v("accountUnlinkCommand");var VZu=new _.v("logAccountLinkingEventCommand");var ZoF=new _.v("guideCollapsibleEntryRenderer");var u1f=new _.v("guideDownloadsEntryRenderer");var v$=new _.v("guideEntryRenderer");var CIh=new _.v("getLocationCommand");var ok4=new _.v("locationCollectionCommand");var $Z4=new _.v("storiesItemViewModel");var WoF=new _.v("addToRemoteQueueAction");var dZO=new _.v("insertInRemoteQueueAction");var gk4=new _.v("removeFromRemoteQueueAction");var io4=new _.v("notificationRenderer");var Z0u=new _.v("localWatchHistoryCommand");var wyF=new _.v("pdgBuyFlowHeaderRenderer");var AJu=new _.v("pdgColorSliderRenderer");var nkf=new _.v("pdgCommentOptionRenderer");var aYz=new _.v("pdgCommentPreviewRenderer");var kau=new _.v("superVodSelectableItemButtonRenderer");var IYu=new _.v("switchButtonRenderer");var mZ0=new _.v("upsellDialogRenderer");var yJH=new _.v("feedbackQuestionRenderer"),pyP=new _.v("feedbackOptionRenderer");var Ko3=new _.v("sponsorshipsTierRenderer"),jTH=new _.v("sponsorshipsPromotionChannelRenderer");var HoH=new _.v("simpleSurveyMessageRenderer");var Uv4=new _.v("invokeInstrumentManagerAction");var cJh=new _.v("logYpcFlowDismissCommand");var Foz=new _.v("logYpcFlowStartCommand");var fYF=new _.v("unlimitedCreateFamilyEndpoint");var R2u=new _.v("iconBadgeRenderer");var u$f=new _.v("collaborativePlaylistVisibilityValidationRule");var T03=function(l){_.k$.call(this,"channelMessage");this.message=l};
_.m(T03,_.k$);var sT0=function(l){_.k$.call(this,"channelError");this.error=l};
_.m(sT0,_.k$);var Ga3={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"},B0C={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},PIi={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},UZi={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Ylu={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var NW=function(l){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 _.$k;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;l&&(this.id=l.id||l.name,this.name=l.name,this.clientName=l.clientName?l.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=l.app,this.type=l.type||"REMOTE_CONTROL",this.username=l.user||"",this.avatar=l.userAvatarUri||"",this.obfuscatedGaiaId=l.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=l.ownerObfuscatedGaiaId||"",this.castUserId=l.castUserId||"",this.theme=l.theme||"u",h2H(this,l.capabilities||""),LoH(this,
l.compatibleSenderThemes||""),tZ4(this,l.experiments||""),this.remoteControllerUrl=l.remoteControllerUrl||"",this.localChannelEncryptionKey=l.localChannelEncryptionKey||"",this.deviceContext=l.deviceContext,this.brand=l.brand||"",this.model=l.model||"",this.year=l.year||0,this.os=l.os||"",this.osVersion=l.osVersion||"",this.chipset=l.chipset||"",this.mdxDialServerType=l.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=l.pairingType||"unknown",l=l.deviceInfo)&&(l=JSON.parse(l),this.brand=
l.brand||"",this.model=l.model||"",this.year=l.year||0,this.os=l.os||"",this.osVersion=l.osVersion||"",this.chipset=l.chipset||"",this.clientName=l.clientName?l.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=l.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
NW.prototype.copy=function(){var l={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&&(l.brand=this.brand);
this.model&&(l.model=this.model);this.year&&(l.year=this.year);this.os&&(l.os=this.os);this.osVersion&&(l.osVersion=this.osVersion);this.chipset&&(l.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(l.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(l.mdxDialServerType=this.mdxDialServerType);l=new NW(l);l.connected=this.connected;l.remoteControllerUrl=this.remoteControllerUrl;l.localChannelEncryptionKey=this.localChannelEncryptionKey;l.deviceContext=
this.deviceContext;l.castUserId=this.castUserId;return l};
NW.prototype.equals=function(l){return l?this.id==l.id:!1};
var h2H=function(l,e){l.capabilities.clear();_.WW(e.split(","),_.pz(_.mm.contains,Ga3)).forEach(function(O){l.capabilities.add(O)})},LoH=function(l,e){l.compatibleSenderThemes.clear();
_.WW(e.split(","),_.pz(_.mm.contains,B0C)).forEach(function(O){l.compatibleSenderThemes.add(O)})},tZ4=function(l,e){l.experiments.clear();
e.split(",").forEach(function(O){l.experiments.add(O)})};var qlF=function(l,e){this.action=l;this.params=e||{}};_.o_(FPh,_.y6);_.X=FPh.prototype;_.X.JSC$17522_onTick_=function(){this.JSC$17520_interval_=Math.min(3E5,this.JSC$17520_interval_*2);this.JSC$17522_listener_();this.nextTickTime_&&this.start()};
_.X.start=function(){var l=this.JSC$17520_interval_+15E3*Math.random(),e=this.delay_;e.isActive()||e.start(l);this.nextTickTime_=Date.now()+l};
_.X.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.X.isActive=function(){return this.delay_.isActive()};
_.X.reset=function(){this.delay_.stop();this.JSC$17520_interval_=5E3};_.o_(jI,wX4);_.X=jI.prototype;_.X.subscribe=function(l,e,O){return this.pubsub_.subscribe(l,e,O)};
_.X.unsubscribe=function(l,e,O){return this.pubsub_.unsubscribe(l,e,O)};
_.X.unsubscribeByKey=function(l){return this.pubsub_.unsubscribeByKey(l)};
_.X.publish=function(l,e){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.X.dispose=function(){this.JSC$17523_disposed_||(this.JSC$17523_disposed_=!0,_.Q9(this.pubsub_),this.disconnect(),_.Q9(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17523_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Ag({})})};
_.X.isDisposed=function(){return this.JSC$17523_disposed_};
_.X.connect=function(l,e,O){var E=this,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return _.VE(u,2),E.useAsyncBrowserChannelHandler_?_.C(u,E.connectPromise_,2):u.jumpTo(2);_.MR(u);if(E.JSC$17523_disposed_||E.JSC$17523_channel_&&E.JSC$17523_channel_.getState()==2)return u.return();E.sCookie_="";E.reconnectTimer_.stop();E.connectionParams_=l||null;E.connectUi_=e||0;J=E.JSC$17523_pathPrefix_+"/test";z=E.JSC$17523_pathPrefix_+"/bind";M=new hs(O?O.firstTestResults:null,O?O.secondTestResults:null,
E.enableAsyncTest_);if(Z=E.JSC$17523_channel_)Z.handler_=null;M.handler_=E;E.JSC$17523_channel_=M;if(E.useAsyncBrowserChannelHandler_)return E.connectPromise_=vku(E).then(function(){return N0H(E,J,z,Z,O)}),u.return(E.connectPromise_.then(function(){E.connectPromise_=_.Ag()}));
N0H(E,J,z,Z,O);return _.ZU(u,0)})};
var N0H=function(l,e,O,E,J){rJ0(l);if(l.JSC$17523_channel_){var z=_.hT("ID_TOKEN"),M=l.JSC$17523_channel_.JSC$17475_extraHeaders_||{};z?M["x-youtube-identity-token"]=z:delete M["x-youtube-identity-token"];l.JSC$17523_channel_.JSC$17475_extraHeaders_=M}DZi(l);E?(E.getState(),l.JSC$17523_channel_.connect(e,O,l.defaultQueryParams_,E.sid_,E.JSC$17475_lastArrayId_)):J?l.JSC$17523_channel_.connect(e,O,l.defaultQueryParams_,J.sessionId,J.arrayId):l.JSC$17523_channel_.connect(e,O,l.defaultQueryParams_)};
jI.prototype.disconnect=function(l){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Ag())}finally{this.disconnectUi_=l||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),rJ0(this),this.JSC$17523_channel_&&(this.JSC$17523_channel_.getState()==3&&onf(this.JSC$17523_channel_),this.JSC$17523_channel_.disconnect()),this.disconnectUi_=0}};
jI.prototype.sendMessage=function(l,e){var O=this,E;return _.V(function(J){switch(J.nextAddress){case 1:_.VE(J,2);if(!O.useAsyncBrowserChannelHandler_){J.jumpTo(2);break}return _.C(J,O.connectPromise_,2);case 2:_.MR(J);if(O.JSC$17523_disposed_)return J.return();E={_sc:l};e&&_.mm.extend(E,e);if(O.reconnectTimer_.isActive()||(O.JSC$17523_channel_?O.JSC$17523_channel_.getState():0)==2){O.JSC$17523_pendingMessages_.push(E);J.jumpTo(6);break}if(!O.isChannelOpened()){J.jumpTo(6);break}_.VE(J,8);if(!O.useAsyncBrowserChannelHandler_||
Sl4(O,l)){J.jumpTo(8);break}return _.C(J,vku(O),8);case 8:_.MR(J,0,0,1);O.isChannelOpened()&&(Sl4(O,l)||DZi(O),rJ0(O),Ca3(O.JSC$17523_channel_,E));_.ZU(J,6,1);break;case 6:_.ZU(J,0)}})};
var Sl4=function(l,e){return l.enableMdxAuthForConnectionOnly_?!0:l.disableMdxAuthForAdMessages_?Object.values(PIi).includes(e):l.disableMdxAuthForNonPlaybackMessages_?!Object.values(UZi).includes(e):l.disableMdxAuthForShortsMessages_?Object.values(Ylu).includes(e):!1};
jI.prototype.JSC$17482_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17523_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)QTF(this);else{var l=this.JSC$17523_pendingMessages_;this.JSC$17523_pendingMessages_=[];var e=l.length;DZi(this);xZC(this,l,e);lnP(this)}else lnP(this)};
var QTF=function(l){var e,O;_.V(function(E){if(E.nextAddress==1)return _.VE(E,2),_.C(E,vku(l),2);_.MR(E);e=l.JSC$17523_pendingMessages_;l.JSC$17523_pendingMessages_=[];O=e.length;xZC(l,e,O);lnP(l);return _.ZU(E,0)})},xZC=function(l,e,O){for(var E=0;E<O;++E)Ca3(l.JSC$17523_channel_,e[E]);
lnP(l)},lnP=function(l){l.publish("handlerOpened");
l.JSC$17523_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.X=jI.prototype;_.X.JSC$17482_channelError=function(l){var e=l==2&&this.JSC$17523_channel_.JSC$17475_lastStatusCode_==401;l==4||e||this.reconnectTimer_.start();this.publish("handlerError",l,e);e=Object.keys(JHf).find(function(O){return JHf[O]===l});
this.JSC$17523_channelErrorCounter.increment("BROWSER_CHANNEL",e!=null?e:"UNKNOWN")};
_.X.JSC$17482_channelClosed=function(l,e){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(e)for(var O=e.length,E=0;E<O;++E){var J=e[E].map;J&&this.JSC$17523_pendingMessages_.push(J)}this.JSC$17523_channelClosedCounter.increment("BROWSER_CHANNEL");l&&this.pendingMapsOnClosedCounter.JSC$7969_streamzService.JSC$7824_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",l.length);e&&this.undeliveredMapsOnClosedCounter.JSC$7972_streamzService.JSC$7824_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
e.length)};
_.X.JSC$17482_channelSuccess=function(l,e){e!=null&&l!=null&&this.channelMessageSentCounter.increment()};
_.X.JSC$17482_getAdditionalParams=function(){var l={v:2};this.sCookie_&&(l.gsessionid=this.sCookie_);this.connectUi_!=0&&(l.ui=""+this.connectUi_);this.disconnectUi_!=0&&(l.ui=""+this.disconnectUi_);this.connectionParams_&&_.mm.extend(l,this.connectionParams_);return l};
_.X.JSC$17482_channelHandleArray=function(l){l[0]=="S"?this.sCookie_=l[1]:l[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17523_channel_.disconnect()):this.publish("handlerMessage",new qlF(l[0],l[1]));this.JSC$17523_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.X.isChannelOpened=function(){return!!this.JSC$17523_channel_&&this.JSC$17523_channel_.getState()==3};
var rJ0=function(l){if(l.JSC$17523_channel_){var e=l.JSC$17523_getXsrfToken_(),O=l.JSC$17523_channel_.JSC$17475_extraHeaders_||{};e?O["x-youtube-lounge-xsrf-token"]=e:delete O["x-youtube-lounge-xsrf-token"];l.JSC$17523_channel_.JSC$17475_extraHeaders_=O}},vku=function(l){if(l.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Ag();
if(!l.enableCachedUpdateAuthorizationHeader_)return efu(l);l.updateAuthorizationHeaderPromise_===null&&(l.updateAuthorizationHeaderPromise_=efu(l));return l.updateAuthorizationHeaderPromise_},efu=function(l){return _.FV(l.getAuthorizationHeader_().then(function(e){Opo(l,e)}).thenCatch(function(){}),function(){l.updateAuthorizationHeaderPromise_=null})},Opo=function(l,e){if(l.JSC$17523_channel_){var O=l.JSC$17523_channel_.JSC$17475_extraHeaders_||{};
e&&Object.keys(e).length>0?O=Object.assign({},O,e):delete O.Authorization;l.JSC$17523_channel_.JSC$17475_extraHeaders_=O}},DZi=function(l){l.getAuthorizationHeaderSync_&&!l.useAsyncBrowserChannelHandler_&&Opo(l,l.getAuthorizationHeaderSync_())};
_.X=jI.prototype;_.X.setLoungeToken=function(l){(this.defaultQueryParams_.loungeIdToken=l)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17523_channel_){var e=this.JSC$17523_channel_.JSC$17475_extraHeaders_||{};l?e["X-YouTube-LoungeId-Token"]=l:delete e["X-YouTube-LoungeId-Token"];this.JSC$17523_channel_.JSC$17475_extraHeaders_=e}};
_.X.getDeviceId=function(){return this.defaultQueryParams_.id};
_.X.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.X.reconnect=function(){var l=this.reconnectTimer_;l.delay_.fire();l.start()};
_.X.safeReconnect_=function(){var l=this.JSC$17523_channel_,e=0;l.JSC$17475_backChannelRequest_&&e++;l.forwardChannelRequest_&&e++;e==0&&this.connect(this.connectionParams_,this.connectUi_)};var s4=function(l,e){var O=l.basePath;l.supportCors&&(O=l.scheme+"://"+l.domain+l.port+l.basePath);return _.e7(O+e,{})};
HU.prototype.sendRequest=function(l,e,O,E,J,z,M){l={format:z?"RAW":"JSON",method:l,context:this,timeout:5E3,withCredentials:!!M,onSuccess:_.pz(this.JSC$17528_onSuccess_,E,!z),onError:_.pz(this.onError_,J),onTimeout:_.pz(this.JSC$17528_onTimeout_,J)};O&&(l.postParams=O,l.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.nv(e,l)};
HU.prototype.JSC$17528_onSuccess_=function(l,e,O,E){e?l(E):l({text:O.responseText})};
HU.prototype.onError_=function(l,e){l(Error("Bk`"+e.status))};
HU.prototype.JSC$17528_onTimeout_=function(l){l(Error("Ck"))};var FA=function(l,e){return!!e&&(l.id==e||l.uuid==e)},EUH=function(l){return{name:l.name,
screenId:l.id,loungeToken:l.token,dialId:l.uuid,screenIdType:l.idType}},JKC=function(l){return new cU(l)},XCH=function(l){return Array.isArray(l)?_.pF(l,JKC):[]},YKC=function(l){if(!l)return"null";
var e=l.token?".."+l.token.slice(-6):"-",O=l.uuid?".."+l.uuid.slice(-6):"-";return'{name:"'+l.name+'",id:'+l.id.substr(0,6)+"..,token:"+(e+",uuid:"+O+",idType:"+l.idType+"}")},ddH=function(l){return Array.isArray(l)?"["+_.pF(l,YKC).join(",")+"]":"null"};var DYf="",TF=null;var X93=function(l,e){_.Kx.call(this);var O=this;this.handler=l();this.handler.subscribe("handlerOpened",this.JSC$17535_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(E,J){O.onError(J)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=e};
_.m(X93,_.Kx);_.X=X93.prototype;_.X.connect=function(l,e,O){this.handler.connect(l,e,O)};
_.X.disconnect=function(l){this.handler.disconnect(l)};
_.X.reconnect=function(){this.handler.reconnect()};
_.X.getDeviceId=function(){return this.handler.getDeviceId()};
_.X.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.X.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.X.JSC$17535_onOpened=function(){this.dispatchEvent("channelOpened");var l=this.handler,e=this.currentScreenId;_.dS("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!l.JSC$17523_channel_.useChunked_,sessionId:l.JSC$17523_channel_.sid_,arrayId:l.JSC$17523_channel_.JSC$17475_lastArrayId_});_.dS("yt-remote-session-screen-id",e);l=LPh();e=t44();_.hq(l,e)||l.push(e);rPF(l);N4F()};
_.X.onClosed=function(){this.dispatchEvent("channelClosed")};
_.X.onMessage=function(l){this.dispatchEvent(new T03(l))};
_.X.onError=function(l){this.dispatchEvent(new sT0(l?1:0))};
_.X.sendMessage=function(l,e){this.handler.sendMessage(l,e)};
_.X.setLoungeToken=function(l){this.handler.setLoungeToken(l)};
_.X.dispose=function(){this.handler.dispose()};var Jih=function(l,e,O){var E=this;O=O===void 0?function(){return""}:O;
var J=J===void 0?new HIH:J;var z=z===void 0?new _.k6:z;this.pathPrefix=l;this.defaultQueryParams=e;this.getXsrfToken=O;this.JSC$17538_pubsub=z;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new FPh(function(){var M;((M=E.channel)==null?void 0:zo3((new fKo(M,M.JSC$17446_channel_)).JSC$17456_channel_.forwardChannelRequestPool_))===0&&E.connect(E.connectionParams,E.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17538_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17538_channelOpenedCounter=new f8i;this.JSC$17538_channelClosedCounter=new RaH;this.JSC$17538_channelMessageReceivedCounter=new smz;this.JSC$17538_channelErrorCounter=new GLP};
Jih.prototype.connect=function(l,e){l=l===void 0?{}:l;e=e===void 0?0:e;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=l,this.connectUi=e,zfu(this),(l=_.hT("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=l: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 Td(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,bp4(this))};
var bp4=function(l){_.f4(l.channel,"w",function(){l.channelState=3;l.reconnectTimer.reset();l.connectionParams=null;l.connectUi=0;for(var e=_.b(l.nonAckedMessagesOnChannelClosed),O=e.next();!O.done;O=e.next())O=O.value,l.channel&&l.channel.send(O);l.nonAckedMessagesOnChannelClosed=[];l.publish("webChannelOpened");l.JSC$17538_channelOpenedCounter.increment("WEB_CHANNEL")});
_.f4(l.channel,"x",function(){l.channelState=0;l.reconnectTimer.isActive()||l.publish("webChannelClosed");var e,O=(e=l.channel)==null?void 0:RoH(new fKo(e,e.JSC$17446_channel_));O&&(l.nonAckedMessagesOnChannelClosed=[].concat(_.kA(O)));l.JSC$17538_channelClosedCounter.increment("WEB_CHANNEL")});
_.f4(l.channel,"z",function(e){var O=e.data;O[0]==="gracefulReconnect"?(l.reconnectTimer.start(),l.channel&&l.channel.close()):l.publish("webChannelMessage",new qlF(O[0],O[1]));l.lastStatusCode=e.statusCode;l.JSC$17538_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.f4(l.channel,"y",function(){l.lastStatusCode===401||l.reconnectTimer.start();l.publish("webChannelError");l.JSC$17538_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.X=Jih.prototype;_.X.disconnect=function(l){this.disconnectUi=l===void 0?0:l;this.reconnectTimer.stop();zfu(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.X.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.X.reconnect=function(){var l=this.reconnectTimer;l.delay_.fire();l.start()};
_.X.sendMessage=function(l,e){this.channel&&(zfu(this),l=Object.assign({},{_sc:l},e),this.channel.send(l))};
_.X.setLoungeToken=function(l){l||this.reconnectTimer.stop();l?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=l:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var zfu=function(l){var e=l.getXsrfToken();e?l.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=e:delete l.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.X=Jih.prototype;_.X.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.X.publish=function(l){return this.JSC$17538_pubsub.publish.apply(this.JSC$17538_pubsub,[l].concat(_.kA(_.ke.apply(1,arguments))))};
_.X.subscribe=function(l,e,O){return this.JSC$17538_pubsub.subscribe(l,e,O)};
_.X.unsubscribe=function(l,e,O){return this.JSC$17538_pubsub.unsubscribe(l,e,O)};
_.X.unsubscribeByKey=function(l){return this.JSC$17538_pubsub.unsubscribeByKey(l)};
_.X.dispose=function(){this.JSC$17538_disposed||(this.JSC$17538_disposed=!0,_.Q9(this.JSC$17538_pubsub),this.disconnect(),_.Q9(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.X.isDisposed=function(){return this.JSC$17538_disposed};var Evi=function(l){_.Kx.call(this);this.webChannelService=l();this.webChannelService.subscribe("webChannelOpened",this.JSC$17546_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.m(Evi,_.Kx);_.X=Evi.prototype;_.X.connect=function(l,e){this.webChannelService.connect(l,e)};
_.X.disconnect=function(l){this.webChannelService.disconnect(l)};
_.X.reconnect=function(){this.webChannelService.reconnect()};
_.X.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.X.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.X.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.X.JSC$17546_onOpened=function(){this.dispatchEvent("channelOpened")};
_.X.onClosed=function(){this.dispatchEvent("channelClosed")};
_.X.onMessage=function(l){this.dispatchEvent(new T03(l))};
_.X.onError=function(){this.dispatchEvent(new sT0(this.webChannelService.lastStatusCode===401?1:0))};
_.X.sendMessage=function(l,e){this.webChannelService.sendMessage(l,e)};
_.X.setLoungeToken=function(l){this.webChannelService.setLoungeToken(l)};
_.X.dispose=function(){this.webChannelService.dispose()};var Wuh=Date.now(),GF=null,ovP=Array(50),U4=-1,$d4=!1;_.o_(Yr,_.QL);Yr.prototype.getScreens=function(){return this.screens};
Yr.prototype.contains=function(l){return!!hau(this.screens,l)};
Yr.prototype.get=function(l){return l?fj(this.screens,l):null};
var MKC=function(l,e){var O=l.get(e.uuid)||l.get(e.id);if(O)return l=O.name,O.id=e.id||O.id,O.name=e.name,O.token=e.token,O.uuid=e.uuid||O.uuid,O.name!=l;l.screens.push(e);return!0},VKf=function(l,e){var O=l.screens.length!=e.length;
l.screens=_.WW(l.screens,function(z){return!!hau(e,z)});
for(var E=e.length,J=0;J<E;J++)O=MKC(l,e[J])||O;return O},ZpP=function(l,e){var O=l.screens.length;
l.screens=_.WW(l.screens,function(E){return!(E||e?!E!=!e?0:E.id==e.id:1)});
return l.screens.length<O};
Yr.prototype.info=function(l){BU(this.JSC$17547_logName_,l)};var un3=function(l,e,O,E,J){_.QL.call(this);this.JSC$17550_http_=l;this.pairingCode_=e;this.deviceId_=O;this.friendlyName_=E;this.enableShortLivedLoungeToken_=J;this.pollIndex_=0;this.JSC$17550_xhr_=null;this.JSC$17550_timer_=NaN};
_.m(un3,_.QL);_.X=un3.prototype;_.X.start=function(){!this.JSC$17550_xhr_&&isNaN(this.JSC$17550_timer_)&&this.poll_()};
_.X.stop=function(){this.JSC$17550_xhr_&&(this.JSC$17550_xhr_.abort(),this.JSC$17550_xhr_=null);isNaN(this.JSC$17550_timer_)||(_.wL(this.JSC$17550_timer_),this.JSC$17550_timer_=NaN)};
_.X.disposeInternal=function(){this.stop();_.QL.prototype.disposeInternal.call(this)};
_.X.poll_=function(){this.JSC$17550_timer_=NaN;this.JSC$17550_xhr_=_.nv(s4(this.JSC$17550_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.pb)(this.JSC$17552_onSuccess_,this),onError:(0,_.pb)(this.onError_,this),onTimeout:(0,_.pb)(this.JSC$17552_onTimeout_,this)})};
_.X.JSC$17552_onSuccess_=function(l,e){this.JSC$17550_xhr_=null;l=e.screen||{};l.dialId=this.deviceId_;l.name=this.friendlyName_;e=-1;this.enableShortLivedLoungeToken_&&l.shortLivedLoungeToken&&l.shortLivedLoungeToken.value&&l.shortLivedLoungeToken.refreshIntervalMs&&(l.screenIdType="shortLived",l.loungeToken=l.shortLivedLoungeToken.value,e=l.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new cU(l),e)};
_.X.onError_=function(l){this.JSC$17550_xhr_=null;l.status&&l.status==404?this.pollIndex_>=CSC.length?this.publish("pairingFailed",Error("Dk")):(l=CSC[this.pollIndex_],this.JSC$17550_timer_=_.dL((0,_.pb)(this.poll_,this),l),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+l.status))};
_.X.JSC$17552_onTimeout_=function(){this.JSC$17550_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var CSC=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.o_(Lj,Yr);_.X=Lj.prototype;_.X.start=function(){ht(this)&&this.publish("screenChange");!_.gS("yt-remote-lounge-token-expiration")&&oUC(this);_.wL(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.dL((0,_.pb)(this.start,this),1E4)};
_.X.add=function(l,e){ht(this);MKC(this,l);$Si(this,!1);this.publish("screenChange");e(l);l.token||oUC(this)};
_.X.remove=function(l,e){var O=ht(this);ZpP(this,l)&&($Si(this,!1),O=!0);e(l);O&&this.publish("screenChange")};
_.X.updateName=function(l,e,O,E){var J=ht(this),z=this.get(l.id);z?(z.name!=e&&(z.name=e,$Si(this,!1),J=!0),O(l)):E(Error("Gk"));J&&this.publish("screenChange")};
_.X.disposeInternal=function(){_.wL(this.loungeTokenRefreshTimer_);Lj.superClass_.disposeInternal.call(this)};
var oUC=function(l){if(l.screens.length){var e=_.pF(l.screens,function(E){return E.id}),O=s4(l.JSC$17554_http_,"/pairing/get_lounge_token_batch");
l.JSC$17554_http_.sendRequest("POST",O,{screen_ids:e.join(",")},(0,_.pb)(l.handleLoungeTokens_,l),(0,_.pb)(l.handleLoungeTokenError_,l))}};
Lj.prototype.handleLoungeTokens_=function(l){ht(this);var e=this.screens.length;l=l&&l.screens||[];for(var O=l.length,E=0;E<O;++E){var J=l[E],z=this.get(J.screenId);z&&(z.token=J.loungeToken,--e)}$Si(this,!e);e&&BU(this.JSC$17547_logName_,"Missed "+e+" lounge tokens.")};
Lj.prototype.handleLoungeTokenError_=function(l){BU(this.JSC$17547_logName_,"Requesting lounge tokens failed: "+l)};
var ht=function(l){if(_.a("deprecate_pair_servlet_enabled"))return VKf(l,[]);var e=XCH(Qm4());e=_.WW(e,function(O){return!O.uuid});
return VKf(l,e)},$Si=function(l,e){lp4(_.pF(l.screens,EUH));
e&&xY0()};var Qk=function(l,e){_.QL.call(this);this.getScreensToCheck_=e;e=(e=_.gS("yt-remote-online-screen-ids")||"")?e.split(","):[];for(var O={},E=this.getScreensToCheck_(),J=E.length,z=0;z<J;++z){var M=E[z].id;O[M]=_.hq(e,M)}this.screenIdSet_=O;this.JSC$17557_http_=l;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;WVf("Initialized with "+(0,_.Tv)(this.screenIdSet_))};
_.m(Qk,_.QL);Qk.prototype.isOnline=function(l){return!!this.screenIdSet_[l]};
Qk.prototype.start=function(){var l=parseInt(_.gS("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.C2()-144E5<l?0:l)?dSP(this):(this.fastCheckEndTime_=_.C2()+3E5,_.dS("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Qk.prototype.isEmpty=function(){return _.mm.isEmpty(this.screenIdSet_)};
Qk.prototype.update=function(){WVf("Updating availability on schedule.");var l=this.getScreensToCheck_(),e=_.mm.filter(this.screenIdSet_,function(O,E){return O&&!!fj(l,E)},this);
gUf(this,e)};
var ipf=function(l,e,O){var E=s4(l.JSC$17557_http_,"/pairing/get_screen_availability");l.JSC$17557_http_.sendRequest("POST",E,{lounge_token:e.token},(0,_.pb)(function(J){J=J.screens||[];for(var z=J.length,M=0;M<z;++M)if(J[M].loungeToken==e.token){O(J[M].status=="online");return}O(!1)},l),(0,_.pb)(function(){O(!1)},l))};
Qk.prototype.disposeInternal=function(){_.wL(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.QL.prototype.disposeInternal.call(this)};
var gUf=function(l,e){a:if(_.mm.getCount(e)!=_.mm.getCount(l.screenIdSet_))var O=!1;else{O=_.mm.getKeys(e);for(var E=O.length,J=0;J<E;++J)if(!l.screenIdSet_[O[J]]){O=!1;break a}O=!0}O||(WVf("Updated online screens: "+(0,_.Tv)(l.screenIdSet_)),l.screenIdSet_=e,l.publish("screenChange"));wCu(l)},dSP=function(l){isNaN(l.refreshTimer_)||_.wL(l.refreshTimer_);
l.refreshTimer_=_.dL((0,_.pb)(l.requestScreenAvailability_,l),l.fastCheckEndTime_>0&&l.fastCheckEndTime_<_.C2()?2E4:1E4)};
Qk.prototype.requestScreenAvailability_=function(){_.wL(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var l=AKf(this);if(_.mm.getCount(l)){var e=s4(this.JSC$17557_http_,"/pairing/get_screen_availability"),O={lounge_token:_.mm.getKeys(l).join(",")};this.currentRequest_=this.JSC$17557_http_.sendRequest("POST",e,O,(0,_.pb)(this.onScreenAvailability_,this,l),(0,_.pb)(this.onScreenAvailabilityError_,this))}else gUf(this,{}),dSP(this)};
Qk.prototype.onScreenAvailability_=function(l,e){this.currentRequest_=null;var O=_.mm.getKeys(AKf(this));if(_.bq(O,_.mm.getKeys(l))){e=e.screens||[];O={};for(var E=e.length,J=0;J<E;++J)O[l[e[J].loungeToken]]=e[J].status=="online";gUf(this,O);dSP(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Qk.prototype.onScreenAvailabilityError_=function(l){this.warn_("Screen availability failed: "+l);this.currentRequest_=null;dSP(this)};
var WVf=function(l){BU("OnlineScreenService",l)};
Qk.prototype.warn_=function(l){BU("OnlineScreenService",l)};
var AKf=function(l){var e={};_.DB(l.getScreensToCheck_(),function(O){O.token?e[O.token]=O.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return e},wCu=function(l){l=_.mm.getKeys(_.mm.filter(l.screenIdSet_,function(e){return e}));
l.sort(_.JC);l.length?_.dS("yt-remote-online-screen-ids",l.join(","),60):_.i4("yt-remote-online-screen-ids")};_.o_(tt,Yr);_.X=tt.prototype;_.X.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.X.add=function(l,e,O){this.localScreenService_.add(l,e,O)};
_.X.remove=function(l,e,O){this.localScreenService_.remove(l,e,O);this.onlineScreenService_.update()};
_.X.updateName=function(l,e,O,E){this.localScreenService_.contains(l)?this.localScreenService_.updateName(l,e,O,E):(l="Updating name of unknown screen: "+l.name,BU(this.JSC$17547_logName_,l),E(Error(l)))};
_.X.getScreens=function(l){return l?this.screens:CtC(this.screens,_.WW(this.automaticScreens_,function(e){return!this.contains(e)},this))};
_.X.JSC$17562_getOnlineScreens=function(){return _.WW(this.getScreens(!0),function(l){return this.onlineScreenService_.isOnline(l.id)},this)};
var ano=function(l,e,O,E,J,z){l.info("getAutomaticScreenByIds "+O+" / "+e);O||(O=l.deviceToScreenId_[e]);var M=l.getScreens(),Z=O?fj(M,O):null;O&&(l.disableAutomaticScreenCache_||Z)||(Z=fj(M,e));if(Z){Z.uuid=e;var u=x2(l,Z);ipf(l.onlineScreenService_,u,function(d){J(d?u:null)})}else O?nUu(l,O,(0,_.pb)(function(d){var g=x2(this,new cU({name:E,
screenId:O,loungeToken:d,dialId:e||""}));ipf(this.onlineScreenService_,g,function(w){J(w?g:null)})},l),z):J(null)};
tt.prototype.JSC$17562_getScreenByPollingPairingCode=function(l,e,O,E,J,z){var M=this;this.info("getDialScreenByPairingCode "+l+" / "+e);var Z=new un3(this.JSC$17560_http_,l,e,O,E);Z.subscribe("pairingComplete",function(u,d){_.Q9(Z);J(x2(M,u),d)});
Z.subscribe("pairingFailed",function(u){_.Q9(Z);z(u)});
Z.start();return(0,_.pb)(Z.stop,Z)};
var kWO=function(l,e){for(var O=l.screens.length,E=0;E<O;++E)if(l.screens[E].name==e)return l.screens[E];return null};
tt.prototype.JSC$17562_getScreenByPairingCode=function(l,e,O,E){_.nv(s4(this.JSC$17560_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:l},timeout:5E3,onSuccess:(0,_.pb)(function(J,z){J=new cU(z.screen||{});if(!J.name||kWO(this,J.name)){a:{z=J.name;for(var M=2,Z=e(z,M);kWO(this,Z);){M++;if(M>20)break a;Z=e(z,M)}z=Z}J.name=z}O(x2(this,J))},this),
onError:(0,_.pb)(function(J){E(Error("Hk`"+J.status))},this),
onTimeout:(0,_.pb)(function(){E(Error("Ik"))},this)})};
var Ini=function(l,e,O){ipf(l.onlineScreenService_,e,O)};
tt.prototype.disposeInternal=function(){_.Q9(this.localScreenService_);_.Q9(this.onlineScreenService_);tt.superClass_.disposeInternal.call(this)};
var nUu=function(l,e,O,E){l.info("requestLoungeToken_ for "+e);var J={postParams:{screen_ids:e},method:"POST",context:l,onSuccess:function(z,M){z=M&&M.screens||[];z[0]&&z[0].screenId==e?O(z[0].loungeToken):E(Error("Jk"))},
onError:function(){E(Error("Kk"))}};
_.nv(s4(l.JSC$17560_http_,"/pairing/get_lounge_token_batch"),J)},mSo=function(l){l.screens=l.localScreenService_.getScreens();
for(var e=_.mm.transpose(l.deviceToScreenId_),O=l.screens.length,E=0;E<O;++E){var J=l.screens[E];J.uuid=e[J.id]||""}l.info("Updated manual screens: "+ddH(l.screens))};
tt.prototype.handleScreenChange_=function(){mSo(this);this.publish("screenChange");this.onlineScreenService_.update()};
var gvu=function(l){yKi(l);l.localScreenService_=new Lj(l.JSC$17560_http_);l.localScreenService_.subscribe("screenChange",(0,_.pb)(l.handleScreenChange_,l));mSo(l);l.disableAutomaticScreenCache_||(l.automaticScreens_=XCH(_.gS("yt-remote-automatic-screen-cache")||[]));yKi(l);l.info("Initializing automatic screens: "+ddH(l.automaticScreens_));l.onlineScreenService_=new Qk(l.JSC$17560_http_,(0,_.pb)(l.getScreens,l,!0));l.onlineScreenService_.subscribe("screenChange",(0,_.pb)(function(){this.publish("onlineScreenChange")},
l))},x2=function(l,e){var O=l.get(e.id);
O?(O.uuid=e.uuid,e=O):((O=fj(l.automaticScreens_,e.uuid))?(O.id=e.id,O.token=e.token,e=O):l.automaticScreens_.push(e),l.disableAutomaticScreenCache_||pC0(l));yKi(l);l.deviceToScreenId_[e.uuid]=e.id;_.dS("yt-remote-device-id-map",l.deviceToScreenId_,31536E3);return e},pC0=function(l){l=_.WW(l.automaticScreens_,function(e){return e.idType!="shortLived"});
_.dS("yt-remote-automatic-screen-cache",_.pF(l,EUH))},yKi=function(l){l.deviceToScreenId_=_.gS("yt-remote-device-id-map")||{}};
tt.prototype.dispose=tt.prototype.dispose;_.o_(qP,_.QL);var l6=function(l,e){l.screen_=e;l.publish("sessionScreen",l.screen_)},KVC=function(l,e){l.screen_&&(l.screen_.token=e,x2(l.JSC$17564_screenService_,l.screen_));
l.publish("sessionScreen",l.screen_)};
qP.prototype.onSessionStopped=function(l){this.isDisposed()||(l&&(em(this,""+l),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
qP.prototype.info=function(l){BU(this.JSC$17564_logName_,l)};
var em=function(l,e){BU(l.JSC$17564_logName_,e)};
qP.prototype.JSC$17566_getCastSession=function(){return null};
qP.prototype.setDisplayStatus=function(l){var e=this.receiver_;l?(e.displayStatus=new chrome.cast.ReceiverDisplayStatus(l,[]),e.displayStatus.showStop=!0):e.displayStatus=null;chrome.cast.setReceiverDisplayStatus(e,(0,_.pb)(function(){this.info("Updated receiver status for "+e.friendlyName+": "+l)},this),(0,_.pb)(function(){em(this,"Failed to update receiver status for: "+e.friendlyName)},this))};
qP.prototype.disposeInternal=function(){this.setDisplayStatus("");qP.superClass_.disposeInternal.call(this)};var Oy=function(l,e,O){qP.call(this,l,e,"CastSession");var E=this;this.config_=O;this.JSC$17569_session_=null;this.JSC$17569_boundSessionUpdate_=(0,_.pb)(this.JSC$17571_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.pb)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.dL(function(){j6z(E,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17569_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17569_isInitLoungeToken_=!1;this.JSC$17569_lastLoungeTokenRefreshError_="unknown"};
_.m(Oy,qP);_.X=Oy.prototype;
_.X.setCastSession=function(l){if(this.JSC$17569_session_){if(this.JSC$17569_session_==l)return;em(this,"Overriding cast session with new session object");Hpu(this);this.JSC$17569_isInitLoungeToken_=!1;this.JSC$17569_lastLoungeTokenRefreshError_="unknown";this.JSC$17569_session_.removeUpdateListener(this.JSC$17569_boundSessionUpdate_);this.JSC$17569_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17569_session_=l;this.JSC$17569_session_.addUpdateListener(this.JSC$17569_boundSessionUpdate_);this.JSC$17569_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);cK4(this,"getMdxSessionStatus")};
_.X.launchWithParams=function(l){this.info("launchWithParams no-op for Cast: "+(0,_.Tv)(l))};
_.X.stop=function(){if(this.JSC$17569_session_)this.JSC$17569_session_.stop((0,_.pb)(function(){this.onSessionStopped()},this),(0,_.pb)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.X.setDisplayStatus=function(){};
_.X.disposeInternal=function(){this.info("disposeInternal");Hpu(this);this.JSC$17569_session_&&(this.JSC$17569_session_.removeUpdateListener(this.JSC$17569_boundSessionUpdate_),this.JSC$17569_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17569_session_=null;qP.prototype.disposeInternal.call(this)};
var fnC=function(l,e){_.wL(l.getLoungeTokenTimeoutKey_);l.getLoungeTokenTimeoutKey_=0;e==0?FV3(l):l.getLoungeTokenTimeoutKey_=_.dL(function(){FV3(l)},e)},FV3=function(l){cK4(l,"getLoungeToken");
_.wL(l.onLoungeTokenTimeoutKey_);l.onLoungeTokenTimeoutKey_=_.dL(function(){Rfi(l,null)},3E4)},cK4=function(l,e){l.info("sendYoutubeMessage_: "+e+" "+(0,_.Tv)(void 0));
var O={};O.type=e;l.JSC$17569_session_?l.JSC$17569_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",O,function(){},(0,_.pb)(function(){em(this,"Failed to send message: "+e+".")},l)):em(l,"Sending yt message without session: "+(0,_.Tv)(O))};
Oy.prototype.onYoutubeMessage_=function(l,e){if(!this.isDisposed())if(e)if(e=(0,_.Rc)(e),_.e0(e))switch(l=""+e.type,e=e.data||{},this.info("onYoutubeMessage_: "+l+" "+(0,_.Tv)(e)),l){case "mdxSessionStatus":j6z(this,e);break;case "loungeToken":Rfi(this,e);break;default:em(this,"Unknown youtube message: "+l)}else em(this,"Unable to parse message.");else em(this,"No data in message.")};
var Ttu=function(l,e){if(e)l.info("onConnectedScreenId_: Received screenId: "+e),l.screen_&&l.screen_.id==e||l.getScreen_(e,function(O){l6(l,O)},function(){return l.onSessionStopped()},5);
else l.onSessionStopped(Error("Nk"))},GW0=function(l,e,O){l.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(e));
var E=new cU(e);s64(l,E,function(J){J?(l.JSC$17569_isInitLoungeToken_=!0,x2(l.JSC$17564_screenService_,E),l6(l,E),l.JSC$17569_lastLoungeTokenRefreshError_="unknown",fnC(l,O)):(_.tT(Error("Ok`"+JSON.stringify(e))),l.onSessionStopped())},5)},j6z=function(l,e){_.wL(l.sessionStatusTimeoutKey_);
l.sessionStatusTimeoutKey_=0;if(e)l.config_.enableCastLoungeToken&&e.loungeToken?e.deviceId?l.screen_&&l.screen_.uuid==e.deviceId||(e.loungeTokenRefreshIntervalMs?GW0(l,{name:l.receiver_.friendlyName,screenId:e.screenId,loungeToken:e.loungeToken,dialId:e.deviceId,screenIdType:"shortLived"},e.loungeTokenRefreshIntervalMs):(_.tT(Error("Qk`"+JSON.stringify(e))),Ttu(l,e.screenId))):(_.tT(Error("Pk`"+JSON.stringify(e))),Ttu(l,e.screenId)):Ttu(l,e.screenId);else l.onSessionStopped(Error("Nk"))},Rfi=function(l,
e){_.wL(l.onLoungeTokenTimeoutKey_);
l.onLoungeTokenTimeoutKey_=0;var O=null;if(e)if(e.loungeToken){var E;((E=l.screen_)==null?void 0:E.token)==e.loungeToken&&(O="staleLoungeToken")}else O="missingLoungeToken";else O="noLoungeTokenResponse";O?(l.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(e)+", error: "+O)),l.JSC$17569_lastLoungeTokenRefreshError_=O,fnC(l,3E4)):(KVC(l,e.loungeToken),l.JSC$17569_isInitLoungeToken_=!1,l.JSC$17569_lastLoungeTokenRefreshError_="unknown",fnC(l,e.loungeTokenRefreshIntervalMs))};
Oy.prototype.getScreen_=function(l,e,O,E){_.wL(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;ano(this.JSC$17564_screenService_,this.receiver_.label,l,this.receiver_.friendlyName,(0,_.pb)(function(J){J?e(J):E>=0?(em(this,"Screen "+l+" appears to be offline. "+E+" retries left."),this.getScreenTimeoutKey_=_.dL((0,_.pb)(this.getScreen_,this,l,e,O,E-1),300)):O(Error("Rk"))},this),O)};
var s64=function(l,e,O,E){_.wL(l.JSC$17569_checkScreenAvailabilityTimeoutKey_);l.JSC$17569_checkScreenAvailabilityTimeoutKey_=0;Ini(l.JSC$17564_screenService_,e,function(J){J||E<0?O(J):l.JSC$17569_checkScreenAvailabilityTimeoutKey_=_.dL(function(){s64(l,e,O,E-1)},300)})};
Oy.prototype.JSC$17566_getCastSession=function(){return this.JSC$17569_session_};
Oy.prototype.JSC$17571_onSessionUpdate_=function(l){this.isDisposed()||l||(em(this,"Cast session died."),this.onSessionStopped())};
var Hpu=function(l){_.wL(l.getScreenTimeoutKey_);l.getScreenTimeoutKey_=0;_.wL(l.JSC$17569_checkScreenAvailabilityTimeoutKey_);l.JSC$17569_checkScreenAvailabilityTimeoutKey_=0;_.wL(l.sessionStatusTimeoutKey_);l.sessionStatusTimeoutKey_=0;_.wL(l.onLoungeTokenTimeoutKey_);l.onLoungeTokenTimeoutKey_=0;_.wL(l.getLoungeTokenTimeoutKey_);l.getLoungeTokenTimeoutKey_=0};var Ey=function(l,e,O,E){qP.call(this,l,e,"DialSession");this.config_=E;this.JSC$17573_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17573_theme_=O;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17573_deferredLaunchDeadlineTimer_=NaN;this.JSC$17573_boundSessionUpdate_=(0,_.pb)(this.JSC$17575_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17573_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17573_isInitLoungeToken_=!1;this.JSC$17573_lastLoungeTokenRefreshError_="unknown"};
_.m(Ey,qP);Ey.prototype.setCastSession=function(l){this.JSC$17573_session_=l;this.JSC$17573_session_.addUpdateListener(this.JSC$17573_boundSessionUpdate_)};
Ey.prototype.launchWithParams=function(l){this.connectData_=l;this.deferredLaunch_()};
Ey.prototype.stop=function(){Bto(this);if(this.JSC$17573_session_)this.JSC$17573_session_.stop((0,_.pb)(this.onSessionStopped,this,null),(0,_.pb)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Ey.prototype.disposeInternal=function(){Bto(this);this.JSC$17573_session_&&this.JSC$17573_session_.removeUpdateListener(this.JSC$17573_boundSessionUpdate_);this.JSC$17573_session_=null;qP.prototype.disposeInternal.call(this)};
var PS4=function(l){var e;return!!(l.config_.enableDialLoungeToken&&((e=l.JSC$17573_session_)==null?0:e.getDialAppInfo))},USF=function(l){l.cancelPolling_=l.JSC$17564_screenService_.JSC$17562_getScreenByPollingPairingCode(l.reversePairingCode_,l.receiver_.label,l.receiver_.friendlyName,PS4(l),function(e,O){l.cancelPolling_=function(){};
l.JSC$17573_isInitLoungeToken_=!0;l6(l,e);e.idType=="shortLived"&&O>0&&J4(l,O)},function(e){l.cancelPolling_=function(){};
l.onSessionStopped(e)})};
Ey.prototype.JSC$17575_onSessionUpdate_=function(l){this.isDisposed()||l||(em(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Y13=function(l){var e={};e.pairingCode=l.reversePairingCode_;e.theme=l.JSC$17573_theme_;O_f()&&(e.env_useStageMdx=1);return _.ay(e)},hfi=function(l){return new Promise(function(e){l.reversePairingCode_=UYF();
if(l.connectData_){var O=new chrome.cast.DialLaunchResponse(!0,Y13(l));e(O);USF(l)}else l.deferredLaunch_=function(){_.wL(l.JSC$17573_deferredLaunchDeadlineTimer_);l.deferredLaunch_=function(){};
l.JSC$17573_deferredLaunchDeadlineTimer_=NaN;var E=new chrome.cast.DialLaunchResponse(!0,Y13(l));e(E);USF(l)},l.JSC$17573_deferredLaunchDeadlineTimer_=_.dL(function(){l.deferredLaunch_()},100)})},tK4=function(l,e,O){l.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(e));
var E=new cU(e);return(new Promise(function(J){LVF(l,E,function(z){z?(l.JSC$17573_isInitLoungeToken_=!0,x2(l.JSC$17564_screenService_,E),l6(l,E),J4(l,O)):_.tT(Error("Tk`"+JSON.stringify(e)));J(z)},5)})).then(function(J){return J?new chrome.cast.DialLaunchResponse(!1):hfi(l)})},q13=function(l,e){var O=l.launchData_.receiver.label,E=l.receiver_.friendlyName;
return(new Promise(function(J){ano(l.JSC$17564_screenService_,O,e,E,function(z){z&&z.token&&l6(l,z);J(z)},function(z){em(l,"Failed to get DIAL screen: "+z);
J(null)})})).then(function(J){return J&&J.token?new chrome.cast.DialLaunchResponse(!1):hfi(l)})},LVF=function(l,e,O,E){_.wL(l.JSC$17573_checkScreenAvailabilityTimeoutKey_);
l.JSC$17573_checkScreenAvailabilityTimeoutKey_=0;Ini(l.JSC$17564_screenService_,e,function(J){J||E<0?O(J):l.JSC$17573_checkScreenAvailabilityTimeoutKey_=_.dL(function(){LVF(l,e,O,E-1)},300)})},J4=function(l,e){l.info("getDialAppInfoWithTimeout_ "+e);
PS4(l)&&(_.wL(l.getDialAppInfoTimeoutKey_),l.getDialAppInfoTimeoutKey_=0,e==0?vUO(l):l.getDialAppInfoTimeoutKey_=_.dL(function(){vUO(l)},e))},vUO=function(l){PS4(l)&&l.JSC$17573_session_.getDialAppInfo(function(e){l.info("getDialAppInfo dialLaunchData: "+JSON.stringify(e));
e=e.extraData||{};var O=null;if(e.loungeToken){var E;((E=l.screen_)==null?void 0:E.token)==e.loungeToken&&(O="staleLoungeToken")}else O="missingLoungeToken";O?(l.JSC$17573_lastLoungeTokenRefreshError_=O,J4(l,3E4)):(l.JSC$17573_isInitLoungeToken_=!1,l.JSC$17573_lastLoungeTokenRefreshError_="unknown",KVC(l,e.loungeToken),J4(l,e.loungeTokenRefreshIntervalMs))},function(e){l.info("getDialAppInfo error: "+e);
l.JSC$17573_lastLoungeTokenRefreshError_="noLoungeTokenResponse";J4(l,3E4)})},Bto=function(l){_.wL(l.JSC$17573_checkScreenAvailabilityTimeoutKey_);
l.JSC$17573_checkScreenAvailabilityTimeoutKey_=0;_.wL(l.getDialAppInfoTimeoutKey_);l.getDialAppInfoTimeoutKey_=0;l.cancelPolling_();l.cancelPolling_=function(){};
_.wL(l.JSC$17573_deferredLaunchDeadlineTimer_)};var Xb=function(l,e){qP.call(this,l,e,"ManualSession");this.JSC$17577_deferredLaunchDeadlineTimer_=_.dL((0,_.pb)(this.launchWithParams,this,null),150)};
_.m(Xb,qP);Xb.prototype.stop=function(){this.onSessionStopped()};
Xb.prototype.setCastSession=function(){};
Xb.prototype.launchWithParams=function(){_.wL(this.JSC$17577_deferredLaunchDeadlineTimer_);this.JSC$17577_deferredLaunchDeadlineTimer_=NaN;var l=fj(this.JSC$17564_screenService_.getScreens(),this.receiver_.label);if(l)l6(this,l);else this.onSessionStopped(Error("Uk"))};
Xb.prototype.disposeInternal=function(){_.wL(this.JSC$17577_deferredLaunchDeadlineTimer_);this.JSC$17577_deferredLaunchDeadlineTimer_=NaN;qP.prototype.disposeInternal.call(this)};var DQ=function(l,e){_.QL.call(this);this.config_=e;this.JSC$17580_screenService_=l;this.JSC$17580_appId_=e.appId||"233637DE";this.JSC$17580_theme_=e.theme||"cl";this.disableDial_=e.disableCastApi||!1;this.forceMirroring_=e.forceMirroring||!1;this.JSC$17580_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.pb)(this.onReceiverAction_,this)};
_.m(DQ,_.QL);
DQ.prototype.init=function(l,e){chrome.cast.timeout.requestSession=3E4;var O=new chrome.cast.SessionRequest(this.JSC$17580_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.a("desktop_enable_cast_connect")&&(O.androidReceiverCompatible=!0);this.disableDial_||(O.dialRequest=new chrome.cast.DialRequest("YouTube"));var E=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;l=l||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var J=(0,_.pb)(this.onReceiverUpdated_,
this);O=new chrome.cast.ApiConfig(O,(0,_.pb)(this.onSessionEstablished_,this),J,E,l);O.customDialLaunchCallback=(0,_.pb)(this.onDialLaunchRequested_,this);chrome.cast.initialize(O,(0,_.pb)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Z_i(),this.JSC$17580_screenService_.subscribe("onlineScreenChange",(0,_.pb)(this.JSC$17582_onScreenChange_,this)),this.customReceivers_=Nt4(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.pb)(function(z){this.warn_("Failed to set initial custom receivers: "+(0,_.Tv)(z))},this)),this.publish("yt-remote-cast2-availability-change",zO(this)),e(!0))},this),(0,_.pb)(function(z){this.warn_("Failed to initialize API: "+(0,_.Tv)(z));
e(!1)},this))};
DQ.prototype.setConnectedScreenStatus=function(l,e){b6("Setting connected screen ID: "+l+" -> "+e);if(this.JSC$17580_session_){var O=this.JSC$17580_session_.screen_;if(!l||O&&O.id!=l)b6("Unsetting old screen status: "+this.JSC$17580_session_.receiver_.friendlyName),M_(this,null)}if(l&&e){if(!this.JSC$17580_session_){l=fj(this.JSC$17580_screenService_.getScreens(),l);if(!l){b6("setConnectedScreenStatus: Unknown screen.");return}if(l.idType=="shortLived"){b6("setConnectedScreenStatus: Screen with id type to be short lived.");
return}O=rKf(this,l);O||(b6("setConnectedScreenStatus: Connected receiver not custom..."),O=new chrome.cast.Receiver(l.uuid?l.uuid:l.id,l.name),O.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(O),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pb)(function(E){this.warn_("Failed to set initial custom receivers: "+(0,_.Tv)(E))},this)));
b6("setConnectedScreenStatus: new active receiver: "+O.friendlyName);M_(this,new Xb(this.JSC$17580_screenService_,O),!0)}this.JSC$17580_session_.setDisplayStatus(e)}else b6("setConnectedScreenStatus: no screen.")};
var rKf=function(l,e){return e?_.Gg(l.customReceivers_,function(O){return FA(e,O.label)},l):null};
DQ.prototype.setLaunchParams=function(l){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17580_session_?this.JSC$17580_session_.launchWithParams(l):this.warn_("Setting connection data without a session")};
DQ.prototype.JSC$17582_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17580_session_?(this.JSC$17580_session_.stop(),M_(this,null)):b6("Stopping non-existing session")};
DQ.prototype.requestSession=function(){chrome.cast.requestSession((0,_.pb)(this.onSessionEstablished_,this),(0,_.pb)(this.onSessionRequestFailed_,this))};
DQ.prototype.disposeInternal=function(){this.JSC$17580_screenService_.unsubscribe("onlineScreenChange",(0,_.pb)(this.JSC$17582_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.NA(_.vK("yt.mdx.remote.debug.handlers_")||[],b_i);_.Q9(this.JSC$17580_session_);_.QL.prototype.disposeInternal.call(this)};
var b6=function(l){BU("Controller",l)};
DQ.prototype.warn_=function(l){BU("Controller",l)};
var b_i=function(l){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(l)},zO=function(l){return l.hasCastReceiver_||!!l.customReceivers_.length||!!l.JSC$17580_session_},M_=function(l,e,O){e!=l.JSC$17580_session_&&(_.Q9(l.JSC$17580_session_),(l.JSC$17580_session_=e)?(O?l.publish("yt-remote-cast2-receiver-resumed",e.receiver_):l.publish("yt-remote-cast2-receiver-selected",e.receiver_),e.subscribe("sessionScreen",(0,_.pb)(l.onSessionScreen_,l,e)),e.subscribe("sessionFailed",
function(){return DSo(l,e)}),e.screen_?l.publish("yt-remote-cast2-session-change",e.screen_):O&&l.JSC$17580_session_.launchWithParams(null)):l.publish("yt-remote-cast2-session-change",null))},DSo=function(l,e){l.JSC$17580_session_==e&&l.publish("yt-remote-cast2-session-failed")};
_.X=DQ.prototype;_.X.onSessionScreen_=function(l,e){this.JSC$17580_session_==l&&(e||M_(this,null),this.publish("yt-remote-cast2-session-change",e))};
_.X.onReceiverAction_=function(l,e){if(!this.isDisposed())if(l)switch(l.friendlyName=chrome.cast.unescape(l.friendlyName),b6("onReceiverAction_ "+l.label+" / "+l.friendlyName+"-- "+e),e){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17580_session_)if(this.JSC$17580_session_.receiver_.label!=l.label)b6("onReceiverAction_: Stopping active receiver: "+this.JSC$17580_session_.receiver_.friendlyName),this.JSC$17580_session_.stop();else{b6("onReceiverAction_: Casting to active receiver.");this.JSC$17580_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17580_session_.screen_);break}switch(l.receiverType){case chrome.cast.ReceiverType.CUSTOM:M_(this,new Xb(this.JSC$17580_screenService_,l));break;case chrome.cast.ReceiverType.DIAL:M_(this,new Ey(this.JSC$17580_screenService_,l,this.JSC$17580_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:M_(this,new Oy(this.JSC$17580_screenService_,l,this.config_));break;default:this.warn_("Unknown receiver type: "+l.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17580_session_&&
this.JSC$17580_session_.receiver_.label==l.label?this.JSC$17580_session_.stop():this.warn_("Stopping receiver w/o session: "+l.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.X.onDialLaunchRequested_=function(l){if(this.isDisposed())return Promise.reject(Error("Vk"));var e=l.receiver;e.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+e.friendlyName),e.receiverType=chrome.cast.ReceiverType.DIAL);var O=this.JSC$17580_session_?this.JSC$17580_session_.receiver_:null;if(!O||O.label!=e.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+e.friendlyName),Promise.reject(Error("Wk"));if(O&&O.label==e.label&&O.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17580_session_.screen_)return b6("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17580_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+O.receiverType+'" to "dial" for '+e.friendlyName);M_(this,new Ey(this.JSC$17580_screenService_,e,this.JSC$17580_theme_,this.config_))}e=this.JSC$17580_session_;e.launchData_=l;e.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(l=e.launchData_.extraData||{},O=l.screenId||null,PS4(e)&&l.loungeToken?l.loungeTokenRefreshIntervalMs?l=tK4(e,{name:e.receiver_.friendlyName,screenId:l.screenId,loungeToken:l.loungeToken,dialId:e.launchData_.receiver.label,screenIdType:"shortLived"},l.loungeTokenRefreshIntervalMs):(_.tT(Error("Sk`"+JSON.stringify(l))),l=q13(e,O)):l=q13(e,O)):l=hfi(e);return l};
_.X.onSessionEstablished_=function(l){var e=this;if(!this.isDisposed()&&!this.forceMirroring_){b6("New cast session ID: "+l.sessionId);var O=l.receiver;if(O.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17580_session_)if(O.receiverType==chrome.cast.ReceiverType.CAST)b6("Got resumed cast session before resumed mdx connection."),O.friendlyName=chrome.cast.unescape(O.friendlyName),M_(this,new Oy(this.JSC$17580_screenService_,O,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var E=this.JSC$17580_session_.receiver_,J=fj(this.JSC$17580_screenService_.getScreens(),E.label);J&&FA(J,O.label)&&E.receiverType!=chrome.cast.ReceiverType.CAST&&O.receiverType==chrome.cast.ReceiverType.CAST&&(b6("onSessionEstablished_: manual to cast session change "+O.friendlyName),_.Q9(this.JSC$17580_session_),this.JSC$17580_session_=new Oy(this.JSC$17580_screenService_,O,this.config_),this.JSC$17580_session_.subscribe("sessionScreen",(0,_.pb)(this.onSessionScreen_,this,this.JSC$17580_session_)),
this.JSC$17580_session_.subscribe("sessionFailed",function(){return DSo(e,e.JSC$17580_session_)}),this.JSC$17580_session_.launchWithParams(null));
this.JSC$17580_session_.setCastSession(l)}}};
_.X.JSC$17582_getCastSession=function(){return this.JSC$17580_session_?this.JSC$17580_session_.JSC$17566_getCastSession():null};
_.X.onSessionRequestFailed_=function(l){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Tv)(l)),l.code!=chrome.cast.ErrorCode.CANCEL&&M_(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.X.onReceiverUpdated_=function(l){b6("Receiver availability updated: "+l);if(!this.isDisposed()){var e=zO(this);this.hasCastReceiver_=l==chrome.cast.ReceiverAvailability.AVAILABLE;zO(this)!=e&&this.publish("yt-remote-cast2-availability-change",zO(this))}};
var Nt4=function(l){var e=l.JSC$17580_screenService_.JSC$17562_getOnlineScreens(),O=l.JSC$17580_session_&&l.JSC$17580_session_.receiver_;l=_.pF(e,function(E){O&&FA(E,O.label)&&(O=null);var J=E.uuid?E.uuid:E.id,z=rKf(this,E);z?(z.label=J,z.friendlyName=E.name):(z=new chrome.cast.Receiver(J,E.name),z.receiverType=chrome.cast.ReceiverType.CUSTOM);return z},l);
O&&(O.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(O=new chrome.cast.Receiver(O.label,O.friendlyName),O.receiverType=chrome.cast.ReceiverType.CUSTOM),l.push(O));return l};
DQ.prototype.JSC$17582_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Nt4(this),b6("Updating custom receivers: "+(0,_.Tv)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pb)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",zO(this)))};
DQ.prototype.setLaunchParams=DQ.prototype.setLaunchParams;DQ.prototype.setConnectedScreenStatus=DQ.prototype.setConnectedScreenStatus;DQ.prototype.stopSession=DQ.prototype.JSC$17582_stopSession;DQ.prototype.getCastSession=DQ.prototype.JSC$17582_getCastSession;DQ.prototype.requestSession=DQ.prototype.requestSession;DQ.prototype.init=DQ.prototype.init;DQ.prototype.dispose=DQ.prototype.dispose;var RRf=[];var S14=function(l){l.audioTrackId=null;l.trackData=null;l.playerState=-1;l.hasPrevious=!1;l.hasNext=!1;l.playerTime_=0;l.playerTimeAt_=_.C2();l.seekableStart_=0;l.seekableEnd_=0;l.duration_=0;l.loadedTime=0;l.liveIngestionTime_=NaN;l.isLive_=!1};
_.X=SI.prototype;
_.X.reset=function(l){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;l&&(this.index=l.index,this.listId=l.listId,this.videoId=l.videoId,this.playerState=l.playerState,this.volume=l.volume,this.muted=l.muted,this.audioTrackId=l.audioTrackId,this.trackData=l.trackData,this.hasPrevious=l.hasPrevious,this.hasNext=l.hasNext,this.playerTime_=l.playerTime,this.playerTimeAt_=l.playerTimeAt,this.seekableStart_=l.seekableStart,this.seekableEnd_=l.seekableEnd,this.duration_=l.duration,this.loadedTime=
l.loadedTime,this.liveIngestionTime_=l.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.X.stopPlayer=function(){this.index=-1;this.videoId="";S14(this)};
_.X.isPlaying=function(){return this.playerState==1};
_.X.isBuffering=function(){return this.playerState==3};
_.X.isAdPlaying=function(){return this.playerState==1081};
var Vb=function(l,e){l.playerTime_=e;l.playerTimeAt_=_.C2()},Q6H=function(l){switch(l.playerState){case 1:case 1081:return(_.C2()-l.playerTimeAt_)/1E3+l.playerTime_;
case -1E3:return 0}return l.playerTime_};
SI.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.C2()-this.playerTimeAt_)/1E3:0):this.duration_};
var xS3=function(l,e,O){var E=l.videoId;l.videoId=e;l.index=O;e!=E&&S14(l)},l14=function(l){var e={};
e.index=l.index;e.listId=l.listId;e.videoId=l.videoId;e.playerState=l.playerState;e.volume=l.volume;e.muted=l.muted;e.audioTrackId=l.audioTrackId;e.trackData=_.mm.unsafeClone(l.trackData);e.hasPrevious=l.hasPrevious;e.hasNext=l.hasNext;e.playerTime=l.playerTime_;e.playerTimeAt=l.playerTimeAt_;e.seekableStart=l.seekableStart_;e.seekableEnd=l.seekableEnd_;e.duration=l.duration_;e.loadedTime=l.loadedTime;e.liveIngestionTime=l.liveIngestionTime_;return e};
SI.prototype.clone=function(){return new SI(l14(this))};var Zd=function(l,e){_.QL.call(this);var O=this;this.state_=0;this.connection_=l;this.contextSubscriptions_=[];this.actionQueue_=new cP0;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.pb)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.pb)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.pb)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.pb)(this.onCloudviewAvailabilityChange_,this);var E=0;l?(E=l.getProxyState(),
E!=3&&(l.subscribe("proxyStateChange",this.setState_,this),eIP(this))):E=3;E!=0&&(e?this.setState_(E):_.dL(function(){O.setState_(E)},0));
(l=BvP())&&O6z(this,l);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.m(Zd,_.QL);Zd.prototype.getState=function(){return this.state_};
Zd.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Zd.prototype.reconnect=function(){this.connection_.reconnect()};
var u6=function(l){return new SI(l.connection_.getPlayerContextData())};
_.X=Zd.prototype;_.X.play=function(){Ca(this)?(this.castMedia_?this.castMedia_.play(null,_.II,Ew0(this,"play")):oY(this,"play"),J7o(this,1,Q6H(u6(this))),this.publish("remotePlayerChange")):$t(this,this.play)};
_.X.pause=function(){Ca(this)?(this.castMedia_?this.castMedia_.pause(null,_.II,Ew0(this,"pause")):oY(this,"pause"),J7o(this,2,Q6H(u6(this))),this.publish("remotePlayerChange")):$t(this,this.pause)};
_.X.seekTo=function(l){if(Ca(this)){if(this.castMedia_){var e=u6(this),O=new chrome.cast.media.SeekRequest;O.currentTime=l;e.isPlaying()||e.isBuffering()?O.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:O.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(O,_.II,Ew0(this,"seekTo",{newTime:l}))}else oY(this,"seekTo",{newTime:l});J7o(this,3,l);this.publish("remotePlayerChange")}else $t(this,_.pz(this.seekTo,l))};
_.X.stop=function(){if(Ca(this)){this.castMedia_?this.castMedia_.stop(null,_.II,Ew0(this,"stopVideo")):oY(this,"stopVideo");var l=u6(this);l.stopPlayer();WV(this,l);this.publish("remotePlayerChange")}else $t(this,this.stop)};
_.X.setVolume=function(l,e){if(Ca(this)){var O=u6(this);if(this.castSession_){if(O.volume!=l){var E=Math.round(l)/100;this.castSession_.setReceiverVolumeLevel(E,(0,_.pb)(function(){PU("set receiver volume: "+E)},this),(0,_.pb)(function(){this.warn_("failed to set receiver volume.")},this))}O.muted!=e&&this.castSession_.setReceiverMuted(e,(0,_.pb)(function(){PU("set receiver muted: "+e)},this),(0,_.pb)(function(){this.warn_("failed to set receiver muted.")},this))}else{var J={volume:l,
muted:e};O.volume!=-1&&(J.delta=l-O.volume);oY(this,"setVolume",J)}O.muted=e;O.volume=l;WV(this,O)}else $t(this,_.pz(this.setVolume,l,e))};
_.X.setAudioTrack=function(l,e){Ca(this)?(e=e.getLanguageInfo().getId(),oY(this,"setAudioTrack",{videoId:l,audioTrackId:e}),l=u6(this),l.audioTrackId=e,WV(this,l)):$t(this,_.pz(this.setAudioTrack,l,e))};
_.X.addVideo=function(l){Ca(this)?oY(this,"addVideo",{videoId:l}):$t(this,_.pz(this.addVideo,l))};
_.X.addPlaylist=function(l){Ca(this)?oY(this,"addVideos",{listId:l}):$t(this,_.pz(this.addPlaylist,l))};
_.X.addVideos=function(l){l.length==0?this.warn_("Ignore add videos request due to empty list"):Ca(this)?oY(this,"addVideos",{videoIds:l.join(",")}):$t(this,_.pz(this.addVideos,l))};
_.X.JSC$17592_removeVideo=function(l){Ca(this)?oY(this,"removeVideo",{videoId:l}):$t(this,_.pz(this.JSC$17592_removeVideo,l))};
_.X.JSC$17592_insertVideo=function(l){Ca(this)?oY(this,"insertVideo",{videoId:l}):$t(this,_.pz(this.JSC$17592_insertVideo,l))};
_.X.playVideo=function(l,e,O,E,J,z,M){E=E===void 0?null:E;J=J===void 0?null:J;z=z===void 0?null:z;M=M===void 0?null:M;var Z=u6(this),u={videoId:l};O!==void 0&&(u.currentIndex=O);xS3(Z,l,O||0);e!==void 0&&(Vb(Z,e),u.currentTime=e);E&&(u.listId=E);J&&(u.playerParams=J);z&&(u.clickTrackingParams=z);M&&(u.locationInfo=(0,_.Tv)(M));oY(this,"setPlaylist",u);E||WV(this,Z)};
_.X.nextVideo=function(l,e){if(Ca(this)){if(l&&e){var O=u6(this);xS3(O,l,e);WV(this,O)}oY(this,"next")}else $t(this,_.pz(this.nextVideo,l,e))};
_.X.clearPlaylist=function(){if(Ca(this)){oY(this,"clearPlaylist");var l=u6(this);l.reset();WV(this,l);this.publish("remotePlayerChange")}else $t(this,this.clearPlaylist)};
_.X.dispose=function(){if(this.state_!=3){var l=this.state_;this.state_=3;this.publish("proxyStateChange",l,this.state_)}_.QL.prototype.dispose.call(this)};
_.X.disposeInternal=function(){XJu(this);this.connection_=null;this.actionQueue_.clear();O6z(this,null);_.QL.prototype.disposeInternal.call(this)};
var eIP=function(l){_.DB("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(e){this.contextSubscriptions_.push(this.connection_.subscribe(e,_.pz(this.onProxyEvent_,e),this))},l)},XJu=function(l){_.DB(l.contextSubscriptions_,function(e){this.connection_.unsubscribeByKey(e)},l);
l.contextSubscriptions_.length=0},Ca=function(l){return l.getState()==1},$t=function(l,e){l.actionQueue_.getCount()<50&&l.actionQueue_.enqueue(e)},J7o=function(l,e,O){var E=u6(l);
Vb(E,O);E.playerState!=-1E3&&(E.playerState=e);WV(l,E)},oY=function(l,e,O){l.connection_.sendMessage(e,O)},WV=function(l,e){XJu(l);
l.connection_.setPlayerContextData(l14(e));eIP(l)};
Zd.prototype.setState_=function(l){if((l!=this.state_||l==2)&&this.state_!=3&&l!=0){var e=this.state_;this.state_=l;this.publish("proxyStateChange",e,l);if(l==1)for(;!this.actionQueue_.isEmpty();)l=this.actionQueue_,AHH(l),l.front_.pop().apply(this);else l==3&&this.dispose()}};
Zd.prototype.onProxyEvent_=function(l,e){this.publish(l,e)};
var O6z=function(l,e){l.castSession_&&(l.castSession_.removeUpdateListener(l.boundCastStatusListener_),l.castSession_.removeMediaListener(l.boundCastMediaListener_),l.onCastMediaChange_(null));l.castSession_=e;if(l.castSession_&&(PU("Setting cast session: "+l.castSession_.sessionId),l.castSession_.addUpdateListener(l.boundCastStatusListener_),l.castSession_.addMediaListener(l.boundCastMediaListener_),l.castSession_.media.length))l.onCastMediaChange_(l.castSession_.media[0])};
Zd.prototype.onCastStatusUpdate_=function(l){if(!l)this.onCastMediaChange_(null),O6z(this,null);else if(this.castSession_.receiver.volume){l=this.castSession_.receiver.volume;var e=u6(this),O=Math.round(100*l.level||0);if(e.volume!=O||e.muted!=l.muted)PU("Cast volume update: "+l.level+(l.muted?" muted":"")),e.volume=O,e.muted=!!l.muted,WV(this,e)}};
Zd.prototype.onCastMediaChange_=function(l){PU("Cast media: "+!!l);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=l)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),zIo(this),this.publish("remotePlayerChange")};
var zIo=function(l){var e=l.castMedia_.media,O=l.castMedia_.customData;if(e&&O){var E=u6(l);e.contentId!=E.videoId&&PU("Cast changing video to: "+e.contentId);E.videoId=e.contentId;E.playerState=O.playerState;Vb(E,l.castMedia_.getEstimatedTime());WV(l,E)}else PU("No cast media video. Ignoring state update.")};
Zd.prototype.onCastMediaUpdate_=function(l){if(l)zIo(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Zd.prototype.onCloudviewAvailabilityChange_=function(){var l=BvP();l&&O6z(this,l)};
Zd.prototype.warn_=function(l){BU("CP",l)};
var Ew0=function(l,e,O){return(0,_.pb)(function(E){this.warn_("Failed to "+e+" with cast v2 channel. Error code: "+E.code);E.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+e+" using MDx browser channel."),oY(this,e,O))},l)};var gO=function(l,e,O,E){E=E===void 0?!1:E;_.QL.call(this);var J=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$17599_http_=l;this.enableConnectWithInitialState_=E;this.listeners_.push(_.bN(window,"beforeunload",function(){J.JSC$17602_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new SI;this.currentScreenId_=e.id;this.currentScreenIdType_=e.idType;this.channelService=zR4(this.JSC$17599_http_,O,this.JSC$17602_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){b6h(J)});
this.channelService.listen("channelClosed",function(){dO("Channel closed");isNaN(J.connectTimerId_)?RS(!0):RS();J.dispose()});
this.channelService.listen("channelError",function(z){RS();isNaN(J.getReconnectTimeout_())?(z==1&&J.currentScreenIdType_=="shortLived"&&J.publish("browserChannelAuthError",z),dO("Channel error: "+z+" without reconnection"),J.dispose()):(J.reconnecting_=!0,dO("Channel error: "+z+" with reconnection in "+J.getReconnectTimeout_()+" ms"),M90(J,2))});
this.channelService.listen("channelMessage",function(z){V9u(J,z)});
this.channelService.setLoungeToken(e.token);this.subscribe("remoteQueueChange",function(){var z=J.playerContext_.videoId;q00()&&_.dS("yt-remote-session-video-id",z)})};
_.m(gO,_.QL);
gO.prototype.connect=function(l,e){if(e){var O=e.listId,E=e.videoId,J=e.videoIds,z=e.playerParams,M=e.clickTrackingParams,Z=e.index,u={videoId:E},d=e.currentTime,g=e.locationInfo;e=e.loopMode;d!==void 0&&(u.currentTime=d<=5?0:d);z&&(u.playerParams=z);g&&(u.locationInfo=g);M&&(u.clickTrackingParams=M);O&&(u.listId=O);J&&J.length>0&&(u.videoIds=J.join(","));Z!==void 0&&(u.currentIndex=Z);this.enableConnectWithInitialState_&&(u.loopMode=e||"LOOP_MODE_OFF");O&&(this.playerContext_.listId=O);this.playerContext_.videoId=
E;this.playerContext_.index=Z||0;this.playerContext_.state=3;Vb(this.playerContext_,d);this.autoplayMode_="UNSUPPORTED";O=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";dO("Connecting with "+O+" and params: "+(0,_.Tv)(u));this.channelService.connect({method:O,params:(0,_.Tv)(u)},l,S0u())}else dO("Connecting without params"),this.channelService.connect({},l,S0u());Z6C(this)};
gO.prototype.setLoungeToken=function(l){this.channelService.setLoungeToken(l)};
gO.prototype.dispose=function(){this.isDisposed()||(_.zJ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),M90(this,3));_.QL.prototype.dispose.call(this)};
gO.prototype.disposeInternal=function(){u5P(this);Cyh(this);owC(this);_.wL(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.wL(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.UvV(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.QL.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var $gi=function(l){return _.Gg(l.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"})},dO=function(l){BU("conn",l)},M90=function(l,e){l.publish("proxyStateChange",e)},Z6C=function(l){l.connectTimerId_=_.dL(function(){dO("Connecting timeout");
l.JSC$17602_disconnect_(1)},2E4)},u5P=function(l){_.wL(l.connectTimerId_);
l.connectTimerId_=NaN},owC=function(l){_.wL(l.reconnectedCheckScreenTimeout_);
l.reconnectedCheckScreenTimeout_=NaN},Wg4=function(l){Cyh(l);
l.playingSyncTimerId_=_.dL(function(){i6(l,"getNowPlaying")},2E4)},Cyh=function(l){_.wL(l.playingSyncTimerId_);
l.playingSyncTimerId_=NaN},b6h=function(l){dO("Channel opened");
l.reconnecting_&&(l.reconnecting_=!1,owC(l),l.reconnectedCheckScreenTimeout_=_.dL(function(){dO("Timing out waiting for a screen.");l.JSC$17602_disconnect_(1)},15E3))},gw3=function(l,e){var O=null;
if(e){var E=$gi(l);E&&(O={clientName:E.clientName,deviceMake:E.brand,deviceModel:E.model,osVersion:E.osVersion})}_.zJ("yt.mdx.remote.remoteClient_",O);e&&(u5P(l),owC(l));O=l.channelService.isChannelOpened()&&isNaN(l.connectTimerId_);e==O?e&&(M90(l,1),i6(l,"getSubtitlesTrack")):e?(l.getOtherConnectedRemoteId_()&&l.playerContext_.reset(),M90(l,1),i6(l,"getNowPlaying"),dgu(l)):l.JSC$17602_disconnect_(1)},i6F=function(l,e){var O=e.params.videoId;
delete e.params.videoId;O==l.playerContext_.videoId&&(_.mm.isEmpty(e.params)?l.playerContext_.trackData=null:l.playerContext_.trackData=e.params,l.publish("remotePlayerChange"))},wJz=function(l,e,O){var E=e.params.videoId||e.params.video_id,J=parseInt(e.params.currentIndex,10);
l.playerContext_.listId=e.params.listId||l.playerContext_.listId;xS3(l.playerContext_,E,J);l.publish("remoteQueueChange",O)},A7z=function(l,e){e.params=e.params||{};
wJz(l,e,"NOW_PLAYING_MAY_CHANGE");l.onStateChange_(e);l.publish("autoplayDismissed")};
gO.prototype.onStateChange_=function(l){var e=parseInt(l.params.currentTime||l.params.current_time,10);Vb(this.playerContext_,isNaN(e)?0:e);e=parseInt(l.params.state,10);e=isNaN(e)?-1:e;e==-1&&this.playerContext_.playerState==-1E3&&(e=-1E3);this.playerContext_.playerState=e;e=Number(l.params.loadedTime);this.playerContext_.loadedTime=isNaN(e)?0:e;e=Number(l.params.duration);this.playerContext_.duration_=isNaN(e)?0:e;e=this.playerContext_;var O=Number(l.params.liveIngestionTime);e.liveIngestionTime_=
O;e.isLive_=isNaN(O)?!1:!0;e=this.playerContext_;O=Number(l.params.seekableStartTime);l=Number(l.params.seekableEndTime);e.seekableStart_=isNaN(O)?0:O;e.seekableEnd_=isNaN(l)?0:l;this.playerContext_.playerState==1?Wg4(this):Cyh(this);this.publish("remotePlayerChange")};
gO.prototype.onAdStateChange_=function(l){if(this.playerContext_.playerState!=-1E3){var e=1085;switch(parseInt(l.params.adState,10)){case 1:e=1081;break;case 2:e=1084;break;case 0:e=1083}this.playerContext_.playerState=e;l=parseInt(l.params.currentTime,10);Vb(this.playerContext_,isNaN(l)?0:l);this.publish("remotePlayerChange")}};
var nwf=function(l,e){var O=e.params.muted=="true";l.playerContext_.volume=parseInt(e.params.volume,10);l.playerContext_.muted=O;l.publish("remotePlayerChange")},a13=function(l,e){l.autoplayVideoId_=e.params.videoId;
l.publish("nowAutoplaying",parseInt(e.params.timeout,10))},kZC=function(l,e){l.autoplayVideoId_=e.params.videoId||null;
l.publish("autoplayUpNext",l.autoplayVideoId_)},I1u=function(l,e){l.autoplayMode_=e.params.autoplayMode;
l.publish("autoplayModeChange",l.autoplayMode_);l.autoplayMode_=="DISABLED"&&l.publish("autoplayDismissed")},mgF=function(l,e){var O=e.params.hasNext=="true";
l.playerContext_.hasPrevious=e.params.hasPrevious=="true";l.playerContext_.hasNext=O;l.publish("previousNextChange")};
gO.prototype.isCapabilitySupportedOnConnectedDevices_=function(l){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var e=_.b(this.connectedDevices_),O=e.next();!O.done;O=e.next())if(!O.value.capabilities.has(l))return!1;return!0};
var V9u=function(l,e){e=e.message;e.params?dO("Received: action="+e.action+", params="+(0,_.Tv)(e.params)):dO("Received: action="+e.action+" {}");switch(e.action){case "loungeStatus":e=(0,_.Rc)(e.params.devices);l.connectedDevices_=_.pF(e,function(E){return new NW(E)});
e=!!_.Gg(l.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"});
gw3(l,e);e=l.isCapabilitySupportedOnConnectedDevices_("mlm");l.publish("multiStateLoopEnabled",e);break;case "loungeScreenDisconnected":uRf(l.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"});
gw3(l,!1);break;case "remoteConnected":var O=new NW((0,_.Rc)(e.params.device));_.Gg(l.connectedDevices_,function(E){return E.equals(O)})||_.qA(l.connectedDevices_,O);
break;case "remoteDisconnected":O=new NW((0,_.Rc)(e.params.device));uRf(l.connectedDevices_,function(E){return E.equals(O)});
break;case "gracefulDisconnect":break;case "playlistModified":wJz(l,e,"QUEUE_MODIFIED");break;case "nowPlaying":A7z(l,e);break;case "onStateChange":l.onStateChange_(e);break;case "onAdStateChange":l.onAdStateChange_(e);break;case "onVolumeChanged":nwf(l,e);break;case "onSubtitlesTrackChanged":i6F(l,e);break;case "nowAutoplaying":a13(l,e);break;case "autoplayDismissed":l.publish("autoplayDismissed");break;case "autoplayUpNext":kZC(l,e);break;case "onAutoplayModeChanged":I1u(l,e);break;case "onHasPreviousNextChanged":mgF(l,
e);break;case "requestAssistedSignIn":l.publish("assistedSignInRequested",e.params.authCode);break;case "onLoopModeChanged":l.publish("loopModeChange",e.params.loopMode);break;default:dO("Unrecognized action: "+e.action)}};
_.X=gO.prototype;_.X.getProxyState_=function(){var l=3;this.isDisposed()||(l=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(l=1):l=2);return l};
_.X.JSC$17602_disconnect_=function(l){dO("Disconnecting with "+l);_.zJ("yt.mdx.remote.remoteClient_",null);u5P(this);this.publish("beforeDisconnect",l);l==1&&RS();this.channelService.disconnect(l);this.dispose()};
_.X.getPlayerContextData_=function(){var l=this.playerContext_;this.clientVideoId_&&(l=this.playerContext_.clone(),xS3(l,this.clientVideoId_,l.index));return l14(l)};
_.X.setPlayerContextData_=function(l){var e=this,O=new SI(l);O.videoId&&O.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=O.videoId,_.wL(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.dL(function(){if(e.clientVideoId_){var J=e.clientVideoId_;e.clientVideoId_=null;e.playerContext_.videoId!=J&&i6(e,"getNowPlaying")}},5E3));
var E=[];this.playerContext_.listId==O.listId&&this.playerContext_.videoId==O.videoId&&this.playerContext_.index==O.index||E.push("remoteQueueChange");this.playerContext_.playerState==O.playerState&&this.playerContext_.volume==O.volume&&this.playerContext_.muted==O.muted&&Q6H(this.playerContext_)==Q6H(O)&&(0,_.Tv)(this.playerContext_.trackData)==(0,_.Tv)(O.trackData)||E.push("remotePlayerChange");this.playerContext_.reset(l);_.DB(E,function(J){this.publish(J)},this)};
_.X.getOtherConnectedRemoteId_=function(){var l=this.channelService.getDeviceId(),e=_.Gg(this.connectedDevices_,function(O){return O.type=="REMOTE_CONTROL"&&O.id!=l});
return e?e.id:""};
_.X.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.X.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.X.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.X.JSC$17602_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var dgu=function(l){_.wL(l.idleDisconnectTimerId_);l.idleDisconnectTimerId_=_.dL(function(){l.JSC$17602_disconnect_(1)},864E5)},i6=function(l,e,O){O?dO("Sending: action="+e+", params="+(0,_.Tv)(O)):dO("Sending: action="+e);
l.channelService.sendMessage(e,O)};
gO.prototype.sendMessageWithUserAction_=function(l,e){i6(this,l,e);dgu(this)};
gO.prototype.JSC$17602_getXsrfToken_=function(){var l=_.mW.get("SAPISID","")||_.mW.get("__Secure-1PAPISID",void 0)||"",e=_.mW.get("__Secure-3PAPISID","")||"";if(!l&&!e)return"";l=_.x4(_.IQ(l),2);e=_.x4(_.IQ(e),2);return _.x4(_.IQ(","+l+","+e),2)};
gO.prototype.subscribe=gO.prototype.subscribe;gO.prototype.unsubscribeByKey=gO.prototype.unsubscribeByKey;gO.prototype.getProxyState=gO.prototype.getProxyState_;gO.prototype.disconnect=gO.prototype.JSC$17602_disconnect_;gO.prototype.getPlayerContextData=gO.prototype.getPlayerContextData_;gO.prototype.setPlayerContextData=gO.prototype.setPlayerContextData_;gO.prototype.getOtherConnectedRemoteId=gO.prototype.getOtherConnectedRemoteId_;gO.prototype.getReconnectTimeout=gO.prototype.getReconnectTimeout_;
gO.prototype.getAutoplayMode=gO.prototype.getAutoplayMode_;gO.prototype.getAutoplayVideoId=gO.prototype.getAutoplayVideoId_;gO.prototype.reconnect=gO.prototype.JSC$17602_reconnect_;gO.prototype.sendMessage=gO.prototype.sendMessageWithUserAction_;gO.prototype.getXsrfToken=gO.prototype.JSC$17602_getXsrfToken_;gO.prototype.isCapabilitySupportedOnConnectedDevices=gO.prototype.isCapabilitySupportedOnConnectedDevices_;var y7u=function(l){Yr.call(this,"ScreenServiceProxy");this.instance_=l;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.pb)(this.JSC$17605_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.pb)(this.onOnlineScreenChange_,this)))};
_.m(y7u,Yr);_.X=y7u.prototype;_.X.getScreens=function(l){return this.instance_.$_gs(l)};
_.X.contains=function(l){return!!this.instance_.$_c(l)};
_.X.get=function(l){return this.instance_.$_g(l)};
_.X.start=function(){this.instance_.$_st()};
_.X.add=function(l,e,O){this.instance_.$_a(l,e,O)};
_.X.remove=function(l,e,O){this.instance_.$_r(l,e,O)};
_.X.updateName=function(l,e,O,E){this.instance_.$_un(l,e,O,E)};
_.X.disposeInternal=function(){for(var l=this.subscriptionKeys_.length,e=0;e<l;++e)this.instance_.$_ubk(this.subscriptionKeys_[e]);this.subscriptionKeys_.length=0;this.instance_=null;Yr.prototype.disposeInternal.call(this)};
_.X.JSC$17605_onScreenChange_=function(){this.publish("screenChange")};
_.X.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
tt.prototype.$_st=tt.prototype.start;tt.prototype.$_gspc=tt.prototype.JSC$17562_getScreenByPairingCode;tt.prototype.$_gsppc=tt.prototype.JSC$17562_getScreenByPollingPairingCode;tt.prototype.$_c=tt.prototype.contains;tt.prototype.$_g=tt.prototype.get;tt.prototype.$_a=tt.prototype.add;tt.prototype.$_un=tt.prototype.updateName;tt.prototype.$_r=tt.prototype.remove;tt.prototype.$_gs=tt.prototype.getScreens;tt.prototype.$_gos=tt.prototype.JSC$17562_getOnlineScreens;tt.prototype.$_s=tt.prototype.subscribe;
tt.prototype.$_ubk=tt.prototype.unsubscribeByKey;var f1H=function(l){eRh();if(!TF||!TF.get("yt-remote-disable-remote-module-for-dev")){l=_.hT("MDX_CONFIG")||l;Zdf();N4F();wO||(wO=new HU(l?l.loungeApiHost:void 0),O_f()&&(wO.basePath="/api/loungedev"));A4||(A4=_.vK("yt.mdx.remote.deferredProxies_")||[],_.zJ("yt.mdx.remote.deferredProxies_",A4));pJ0();var e=na();if(!e){var O=new tt(wO,l?l.disableAutomaticScreenCache||!1:!1);_.zJ("yt.mdx.remote.screenService_",O);e=na();var E={};l&&(E={appId:l.appId,disableDial:l.disableDial,theme:l.theme,loadCastApiSetupScript:l.loadCastApiSetupScript,
disableCastApi:l.disableCastApi,enableDialLoungeToken:l.enableDialLoungeToken,enableCastLoungeToken:l.enableCastLoungeToken,forceMirroring:l.forceMirroring});_.zJ("yt.mdx.remote.enableConnectWithInitialState_",l?l.enableConnectWithInitialState||!1:!1);Fu4(O,function(z){z?aY()&&Udi(aY(),"YouTube TV"):O.subscribe("onlineScreenChange",function(){Jt("yt-remote-receiver-availability-change")})},E)}if(l&&!_.vK("yt.mdx.remote.initialized_")){_.zJ("yt.mdx.remote.initialized_",!0);
kt("Initializing: "+(0,_.Tv)(l));IY.push(_.Wm("yt-remote-cast2-api-ready",function(){Jt("yt-remote-api-ready")}));
IY.push(_.Wm("yt-remote-cast2-availability-change",function(){Jt("yt-remote-receiver-availability-change")}));
IY.push(_.Wm("yt-remote-cast2-receiver-selected",function(){Kgz();Jt("yt-remote-auto-connect","cast-selector-receiver")}));
IY.push(_.Wm("yt-remote-cast2-receiver-resumed",function(){Jt("yt-remote-receiver-resumed","cast-selector-receiver")}));
IY.push(_.Wm("yt-remote-cast2-session-change",jnf));IY.push(_.Wm("yt-remote-connection-change",function(z){z?Udi(aY(),"YouTube TV"):H6P()||(Udi(null,null),GzF())}));
IY.push(_.Wm("yt-remote-cast2-session-failed",function(){Jt("yt-remote-connection-failed")}));
E=c7f();l.isAuto&&(E.id+="#dial");var J=l.capabilities||[];J.length>0&&(E.capabilities=J);E.name=l.device;E.app=l.app;(l=l.theme)&&(E.theme=l);kt(" -- with channel params: "+(0,_.Tv)(E));E?(_.dS("yt-remote-session-app",E.app),_.dS("yt-remote-session-name",E.name)):(_.i4("yt-remote-session-app"),_.i4("yt-remote-session-name"));_.zJ("yt.mdx.remote.channelParams_",E);e.start();aY()||Fg0()}}},Tno=function(){var l=na().instance_.$_gos();
var e=RI4();e&&m_()&&(hau(l,e)||l.push(e));return Y03(l)},sni=function(){var l=Tno(),e=RI4();
e||(e=H6P());return _.Gg(l,function(O){return e&&FA(e,O.key)?!0:!1})},RI4=function(){var l=aY();
if(!l)return null;var e=na().getScreens();return fj(e,l)},jnf=function(l){kt("remote.onCastSessionChange_: "+YKC(l));
if(l){var e=RI4();e&&e.id==l.id?(Udi(e.id,"YouTube TV"),l.idType=="shortLived"&&(l=l.token)&&(e=m_())&&e.setLoungeToken(l)):(e&&GZz(),Bn4(l,1))}else m_()&&GZz()},GZz=function(){Pe4()?rB().stopSession():NP("stopSession called before API ready.");
var l=m_();l&&(l.disconnect(1),Pyi(null))},Ug4=function(){var l=m_();
return l&&l.getProxyState()!=3?new Zd(m_(),void 0):null},kt=function(l){BU("remote",l)},na=function(){if(!Y5h){var l=_.vK("yt.mdx.remote.screenService_");
Y5h=l?new y7u(l):null}return Y5h},aY=function(){return _.vK("yt.mdx.remote.currentScreenId_")},hIz=function(l){_.zJ("yt.mdx.remote.currentScreenId_",l)},Kgz=function(){_.zJ("yt.mdx.remote.connectData_",null)},m_=function(){return _.vK("yt.mdx.remote.connection_")},Pyi=function(l){var e=m_();
Kgz();l||hIz("");_.zJ("yt.mdx.remote.connection_",l);A4&&(_.DB(A4,function(O){O(l)}),A4.length=0);
e&&!l?Jt("yt-remote-connection-change",!1):!e&&l&&Jt("yt-remote-connection-change",!0)},H6P=function(){var l=q00();
if(!l)return null;var e=na();if(!e)return null;e=e.getScreens();return fj(e,l)},Bn4=function(l,e){hIz(l.id);
l=new gO(wO,l,c7f(),_.vK("yt.mdx.remote.enableConnectWithInitialState_")||!1);l.connect(e,_.vK("yt.mdx.remote.connectData_"));l.subscribe("beforeDisconnect",function(O){Jt("yt-remote-before-disconnect",O)});
l.subscribe("beforeDispose",function(){m_()&&Pyi(null)});
l.subscribe("browserChannelAuthError",function(){var O=RI4();O&&O.idType=="shortLived"&&(Pe4()?rB().handleBrowserChannelAuthError():NP("refreshLoungeToken called before API ready."))});
Pyi(l)},Fg0=function(){var l=H6P();
l?(kt("Resume connection to: "+YKC(l)),Bn4(l,0)):(RS(),GzF(),kt("Skipping connecting because no session screen found."))},wO=null,A4=null,Y5h=null,pJ0=function(){var l=c7f();
if(_.mm.isEmpty(l)){l=t44();var e=_.gS("yt-remote-session-name")||"",O=_.gS("yt-remote-session-app")||"";l={device:"REMOTE_CONTROL",id:l,name:e,app:O,mdxVersion:3};l.authuser=String(_.hT("SESSION_INDEX","0"));(e=_.hT("DELEGATED_SESSION_ID"))&&(l.pageId=String(e));_.zJ("yt.mdx.remote.channelParams_",l)}},c7f=function(){return _.vK("yt.mdx.remote.channelParams_")||{}},IY=[];var Lgu=new _.qx("yt-menu"),t9F=function(){},vw4=function(l,e,O){l=e=="right-click"?O.rightClickMenuPopupHint:O.menuPopupHint;
if(!(q5O(e)>10))return e=e||"default",Lgu.set(e+"-impression",q5O(e)+1),l},q5O=function(l){return parseInt(Lgu.get((l||"default")+"-impression")||0,10)};
_.uv(t9F);var Nnu=function(){this.contexts_=new WeakMap;this.JSC$17611_networkService_=this.activeContext_=null},r7F=function(l,e,O){var E=l.contexts_.get(e);
E||(E=new MNo(l.JSC$17611_networkService_),l.contexts_.set(e,E));l.activeContext_=E;O&&l.activeContext_.reset();l.activeContext_.start();return l.activeContext_};var yb=function(){};
yb.prototype.enqueue=function(){var l=this,e;return _.V(function(O){if(l.isCounterfactual())return(e=l.getCounterfactualData())&&l.shouldLogCounterfactualImpression()&&l.sendImpressionEndpoints(e),O.return();l.doEnqueue();_.Cl(O)})};
yb.prototype.sendImpressionEndpoints=function(l){_.SU.getInstance().triggerOptionalAction("yt-service-request",{},l[0])};var pa=function(l,e){this.renderer=l;this.page=e};
_.m(pa,yb);pa.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
pa.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
pa.prototype.shouldLogCounterfactualImpression=function(){return!0};
pa.prototype.doEnqueue=function(){var l=_.zn(this.page);l&&l.pause();this.renderer.impressionCommand&&_.SU.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.P0(_.SU.getInstance(),[this.renderer.promoCommand],this.page)};var Dgi=function(l,e){this.renderer=l;this.resolver=_.x7();this.JSC$17623_enforcementCounter=new _.cDx;e?this.JSC$17623_playerManager=_.zn(e):this.JSC$17623_playerManager=null;_.A$(1,!0)};
_.m(Dgi,yb);_.X=Dgi.prototype;_.X.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var l=[];this.renderer.impressionEndpoints.forEach(function(e){(e=_.t3(e))&&l.push(e)});
return l}};
_.X.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.X.shouldLogCounterfactualImpression=function(){var l=_.ezp();l?(this.JSC$17623_enforcementCounter.increment("POPUP"),_.A$(3)):_.A$(2);return l};
_.X.cancel=function(){this.resolver.promise.cancel()};
_.X.doEnqueue=function(){var l=this;_.ezp()?(this.JSC$17623_enforcementCounter.increment("POPUP"),_.A$(3),S54(this)):this.JSC$17623_playerManager?(this.resolver.promise.then(function(){S54(l)}),QnF(this.resolver,this.JSC$17623_playerManager)):_.A$(2)};
var QnF=function(l,e){var O=_.x7();e.getPlayerPromise().then(function(E){O.resolve(E)});
O.promise.then(function(E){E.addEventListener("onAbnormalityDetected",l.resolve);_.FV(l.promise,function(){E.removeEventListener("onAbnormalityDetected",l.resolve)})});
l.promise.thenCatch(function(){O.promise.cancel()})},S54=function(l){_.A$(3);
var e={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:l.renderer}};e=_.SU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});Promise.all(e).then(function(){xgh();l.JSC$17623_playerManager&&l.JSC$17623_playerManager.pause()})},xgh=function(){DGH(function(l,e){_.N5i(l,e);
l===0?_.A$(7):_.A$(4)})};var llf=function(l,e){this.renderer=l;this.page=e;this.resolver=_.x7()};
_.m(llf,yb);_.X=llf.prototype;_.X.cancel=function(){this.resolver.promise.cancel()};
_.X.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.X.isCounterfactual=function(){return!this.renderer.isVisible};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var l=this;this.resolver.promise.then(function(){var O={popup:{mealbarPromoRenderer:l.renderer},popupType:"MEALBAR"};_.SU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:O},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var e=_.zn(this.page);e&&exz(this.resolver,e)}break;default:this.resolver.resolve()}};
var exz=function(l,e){var O=_.x7();e.getPlayerPromise().then(function(E){O.resolve(E)});
O.promise.then(function(E){E.addEventListener("onAdEnd",l.resolve);_.FV(l.promise,function(){E.removeEventListener("onAdEnd",l.resolve)})});
l.promise.thenCatch(function(){O.promise.cancel()})};var OQi=function(l,e){this.renderer=l;this.page=e};
_.m(OQi,yb);_.X=OQi.prototype;_.X.cancel=function(){this.JSC$17631_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17631_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17631_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.X.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.X.isCounterfactual=function(){return!this.renderer.isVisible};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var l=this,e,O;((e=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(O=e.playbackUpsellDialogTriggerConditionData)==null?void 0:O.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17631_downloadedVideosCountSelectorUnsubscriber=_.kw(_.Om(),t7H,function(E,J){E>J&&(E53(l),l.cancel())}):E53(this)};
var E53=function(l){var e={popup:{upsellDialogRenderer:l.renderer},popupType:"MODAL"};_.SU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});(l=_.zn(l.page))&&l.pause()};var Ka={},Jwo=(Ka.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Ka.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Ka.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Ka.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Ka.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Ka.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Ka.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Ka),XaH=function(l,e){this.renderer=l;this.targetManager=
e};
_.m(XaH,yb);_.X=XaH.prototype;_.X.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17638_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17638_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17638_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.X.getCounterfactualData=function(){if(this.isCounterfactual()){var l;return(l=this.renderer.promoConfig)==null?void 0:l.impressionEndpoints}};
_.X.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.X.shouldLogCounterfactualImpression=function(){return!0};
_.X.doEnqueue=function(){var l=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17638_downloadedVideosCountSelectorUnsubscriber=_.kw(_.Om(),t7H,function(e,O){l.renderer.targetId&&e>O&&(ReF(l.targetManager,l.renderer.targetId,zxH(l)),l.cancel())});
break;default:ReF(this.targetManager,this.renderer.targetId,zxH(this))}};
var zxH=function(l){var e;if((e=l.renderer.suggestedPosition)==null?0:e.type)var O=Jwo[l.renderer.suggestedPosition.type];O||(O="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:l.renderer},popupType:"HINT",position:O}}};var bQo=function(){this.previousPage=null},MQu;
bQo.prototype.registerPromoCommand=function(l,e){VQh(this,void 0,void 0,_.I(l.roadblock,mZ0),void 0,void 0,e)};
var VQh=function(l,e,O,E,J,z,M){l.previousPage!==M&&l.pendingTooltipPromo&&l.pendingTooltipPromo.cancel();l.previousPage=M;J?(l.pendingEnforcementPromo&&l.pendingEnforcementPromo.cancel(),l.pendingEnforcementPromo=new Dgi(J,M),l.pendingEnforcementPromo.enqueue()):z?(l.pendingCommandWrapperPromo=new pa(z,M),l.pendingCommandWrapperPromo.enqueue()):E?(l.pendingRoadblockPromo&&l.pendingRoadblockPromo.cancel(),l.pendingRoadblockPromo=new OQi(E,M),l.pendingRoadblockPromo.enqueue()):e?(l.pendingMealbarPromo&&
l.pendingMealbarPromo.cancel(),l.pendingMealbarPromo=new llf(e,M),l.pendingMealbarPromo.enqueue()):O&&(l.pendingTooltipPromo&&l.pendingTooltipPromo.cancel(),l.pendingTooltipPromo=new XaH(O,_.jQ()),l.pendingTooltipPromo.enqueue())},ZQP=function(){MQu||(MQu=new bQo);
return MQu};var qKu=!1;var PGz=function(l,e){var O=_.hT("SESSION_INDEX");this.actionToken_=l;this.commonToken_=e;this.sessionIndex_=O},B8o=function(l){var e=_.x7(),O=_.vK("payments.business.integration.bootstrap"),E=_.vK("payments.business.integration"),J=E.Style.create().withMaterialDesignStyle(),z=E.mashupMode.popup("instrument-manager");
O.asMashupMode(z).usingUserIndex(l.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(J).inStandaloneContext(E.standaloneContextAuthId.forUserId()).instrumentManager(l.actionToken_,l.commonToken_.length>0?l.commonToken_:void 0,function(M){var Z=M.instrumentId;Z?e.resolve(Z):(Z=_.vK("payments.business.integration.scenario.InstrumentManager"),e.reject(M.errorCode&&M.errorCode===Z.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(M){_.tT(M);
e.reject("instrumentManagerLoadError")});
return e.promise};var Oi=function(l,e,O){this.payloadName="transactionFlowFailed";this.payload={errorType:l,serializedTransactionFlowLoggingParams:e,isUserDismiss:O===void 0?!1:O}};
_.zJ("yt.ypc.shared.YpcTransactionFlowError",Oi);var jm=function(){return _.IB.apply(this,arguments)||this};
_.m(jm,_.IB);jm.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
jm.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
jm.prototype.onErrorMessageDismiss=jm.prototype.onErrorMessageDismiss;_.L([_.T({readOnly:!0,observer:"errorRendererChanged"}),_.q("design:type",Object)],jm.prototype,"errorRenderer",void 0);_.L([_.wP("yt-live-chat-error-message-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jm.prototype,"onErrorMessageDismiss",null);_.L([_.m0()],jm);var uJf=[jm.prototype];var C4u;var o5u;var $5f=new _.qx("yt-live-chat"),W6P=new Map;W6P.set("timestamp_toggle","show-timestamps");W6P.set("reactions_toggle","allow-reactions");var HV=function(){return _.B.apply(this,arguments)||this};
_.m(HV,_.B);_.X=HV.prototype;_.X.menuItemIdentifierChanged=function(){var l;(l=this.data)!=null&&l.menuItemIdentifier&&(l=W6P.get(this.data.menuItemIdentifier))&&(_.a("enable_lwe_web_mute")?(l=$5f.get(l),this.isToggled=!(l===void 0?!this.data.isToggled:!l)):this.isToggled=$5f.get(l))};
_.X.onFocus=function(){this.toggleButton.focus()};
_.X.onTap=function(){var l=this.data.command;l&&this.componentBehavior.resolveCommand(l)};
_.X.computeText=function(l,e,O){return this.componentBehavior.getSimpleString(l?O:e)};
_.X.computeIcon=function(l,e,O){return(l=l?O:e)&&l.iconType?_.w6(l.iconType):""};
HV.prototype.onTap=HV.prototype.onTap;HV.prototype.onFocus=HV.prototype.onFocus;HV.prototype.menuItemIdentifierChanged=HV.prototype.menuItemIdentifierChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],HV.prototype,"componentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HV.prototype,"data",void 0);
_.L([_.T({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.q("design:type",String)],HV.prototype,"icon",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],HV.prototype,"isToggled",void 0);_.L([_.aB("tp-yt-paper-toggle-button"),_.q("design:type",Object)],HV.prototype,"toggleButton",void 0);_.L([_.AA("data.menuItemIdentifier"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HV.prototype,"menuItemIdentifierChanged",null);
_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HV.prototype,"onFocus",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HV.prototype,"onTap",null);_.L([_.Ps({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],HV);
_.Y(HV,"yt-live-chat-toggle-renderer",function(){if(o5u===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;C4u===void 0&&(C4u=document.createElement("template"));var E=C4u;O.call(e,E.content.cloneNode(!0),l.content.firstChild);o5u=l}l=o5u;return l},{mode:_.a("live_chat_enable_sink_wrapper")?2:0});var d5u=new _.Xa("NAVIGATION_PROGRESS_TOKEN");_.Yd("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var g5F={},xdF=(g5F.CSI=function(l,e){var O={};O[l]=e;l=_.qz(_.tVt)(O);Object.keys(l).length>0&&_.Pb(l)},g5F.ECATCHER=function(l){return function(e,O){_.hT(l)[e]=O}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),g5F);var iQ4={},waH={},Aw3=(waH[ok4.name]=!0,waH),cV=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;l.tabGesturesIsActive=!1;l.actionRouterIsRoot=!0;l.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"};l.pageTitle="";l.titleSuffix="YouTube";l.unseenNotificationCount=
0;l.hasNavigated=!1;l.hasSetScrollTopForNavigation=!1;l.pagePreparer=null;l.zwiebackInitJobId=0;l.dataUpdatePromise=null;l.loadDepsPromise=_.Ag();l.hasPendingNavigation=!1;l.pendingPlayerOnResponseReceivedActions=[];return l};
_.m(cV,_.IB);cV.prototype.attached=function(){n5C(this);document.addEventListener("yt-navigate-cache",_.id(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var l=Fb();l.init();l.dispatchElement=this.hostElement};
var n5C=function(l,e){e=e===void 0?0:e;var O=_.V2().resolve(_.MG(_.KQ));if(O)alz(l,O);else{if(e>=5)throw Error("Xk");setTimeout(function(){n5C(l,e+1)},0)}},alz=function(l,e){e.addEventListener("yt-navigate-start",_.id(l,l.onYtNavigateStart));
e.addEventListener("yt-navigate-finish",_.id(l,l.onYtNavigateFinish));e.addEventListener("yt-navigate-error",_.id(l,l.onYtNavigateError));e.addEventListener("yt-page-data-fetched",_.id(l,l.onYtPageDataFetched))};
_.X=cV.prototype;_.X.detached=function(){var l=_.V2().resolve(_.KQ);l.removeEventListener("yt-navigate-start",_.id(this,this.onYtNavigateStart));l.removeEventListener("yt-navigate-finish",_.id(this,this.onYtNavigateFinish));l.removeEventListener("yt-navigate-error",_.id(this,this.onYtNavigateError));l.removeEventListener("yt-page-data-fetched",_.id(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.id(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.X.setPageOffset=function(l,e){l?_.Wb(this.hostElement,"yt-set-page-offset",[l,e]):_.UW(Error("Yk"))};
_.X.setPageOffsetForNavigation=function(l,e){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(l,e))};
_.X.onYtNavigateSetPageOffset=function(l,e){this.setPageOffsetForNavigation(e.page,e.offset)};
_.X.getPageOffset=function(){var l=_.ud(this.hostElement).querySelector("#page-manager").getCurrentPage(),e=0;l&&(e=_.Wb(this.hostElement,"yt-get-page-offset",[l])[0]);return e};
_.X.onYtHistoryPop=function(l,e){if(_.LH("DISABLE_WARM_LOADS"))l.preventDefault(),window.location.reload();else{var O=_.V2().resolve(_.KQ);O.hasPendingNavigation()&&l.preventDefault();O.cancelPendingNavigation();_.dQ(this.hostElement,"yt-pending-navigation-cancelled");e.errorMsg&&(l=e.errorMsg.split(" - "),e=Error(l[0]),l.length==2&&l[1]&&(_.LZ(e,l[1]),_.hG(e)),window.location.reload())}};
_.X.onYtHistoryLoad=function(l,e){var O=this;if(_.LH("DISABLE_WARM_LOADS"))window.location.reload();else{(l=e.endpoint)&&Object.keys(l).length||(l=null);var E=e.historyEntry,J=_.V2().resolve(_.KQ),z=_.V2().resolve(_.XZ),M=null;E&&E.rootData&&(M=E.rootData);var Z=M&&kl0(M);!M||Z||M.filler?l?(J.navigate(l,!0),IlC(this,l)):(e.legacyBorder||Z||(e.JSC$26634_savedComponentState==null&&M==null?_.hG(new _.Hk("Incomplete history entry",e.forward)):_.YE(new _.Hk("Malformed history entry",e.JSC$26634_savedComponentState,
e.forward,M))),window.location.reload()):(_.eoW({isHot:!0}),_.Pb({webInfo:{navigationReason:"h"}}),_.bAd(),_.Yu("srt"),_.Yu("pdc"),this.cancelPendingTasks(),m5C(this,e.forward,M),M.player&&(M.player.loaded=!1),IlC(this,l),_.fJ0(J,l||{},M,2,{},!1,e).then(function(){O.setPageOffset(z.getCurrentPage(),E.scrollTop||0)}))}};
_.X.initHistoryManager=function(l){if(!this.hasNavigated){this.hasNavigated=!0;var e=_.ud(this.hostElement).querySelector("#page-manager").getCurrentData();l=isNaN(l)?this.getPageOffset():l;var O=_.V2().resolve(_.KQ).currentEndpoint;this.replaceState(O,e,l)}};
_.X.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.X.onYtNavigateStart=function(l,e){this.cancelPendingTasks();e.noProgressBar||(l=_.V2().resolve(_.MG(d5u)))&&l.start();l=this.hasPendingNavigation?null:this.data;var O=_.V2().resolve(_.XZ),E,J,z;_.a("kevlar_use_vimio_behavior")&&!((E=e.endpoint)==null?0:(J=E.commandMetadata)==null?0:(z=J.webCommandMetadata)==null?0:z.ignoreNavigation)&&(E=O.getCurrentPage())&&E.disconnectVisibilityRoot();O.prepareForNavigation(e.pageType,e.endpoint);_.a("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.bB(1,
"pcl"),_.Me(this.pagePreparer,O.preparePage.bind(O,e.pageType,e.endpoint)));E=this.getPageOffset();this.initHistoryManager(E);e.reload||this.hasPendingNavigation?this.replaceState(e.endpoint,l,E):(l==null?void 0:l.page)==="watch"&&e.pageType==="watch"&&_.a("kevlar_replace_watch_to_watch_history_state")?this.replaceState(e.endpoint,l,E):(l==null?void 0:l.page)!=="shorts"||e.pageType!=="shorts"||e.endpoint.reelWatchEndpoint.sequenceParams||_.a("short_to_short_back_nav_killswitch")?e.type!="navigate-back"&&
e.type!="navigate-forward"&&(e.pageType==="shorts"&&_.$u(this.hostElement,"yt-shorts-reset"),this.saveAndPush(e.url,e.endpoint,l,E)):this.replaceState(e.endpoint,l,0);this.hasPendingNavigation=!0};
var ywH=function(l){l.hasPendingNavigation=!1;(l=_.V2().resolve(_.MG(d5u)))&&l.finish()};
cV.prototype.onYtNavigateError=function(l,e){ywH(this);l=this.get("endpoint.commandMetadata.webCommandMetadata.url",e);var O=_.Qt(window.location.href);l&&!O.pbjreload&&(e=e.navigationErrorReason||"10",_.a("kevlar_parent_on_pbjreload")&&(O={csn:_.P9()},this.get("data.endpoint.clickTrackingParams")&&(O.itct=this.data.endpoint.clickTrackingParams),_.bi(l,O)),_.DC(_.xd(l,{pbjreload:e})))};
cV.prototype.onYtNavigateCache=function(l,e){var O=this,E=e.url,J=e.endpoint,z=e.data;l=!!e.miniplayer;e=!!e.skipHistory;if(E&&J&&z){var M=this.getPageOffset(),Z=this.data||null;e||this.saveAndPush(E,J,Z,M);E=_.fJ0(_.V2().resolve(_.KQ),J,z,l?4:3,{},l);l&&E.then(function(){O.dataUpdatePromise&&O.dataUpdatePromise.then(function(){var u=_.V2().resolve(_.XZ);O.setPageOffset(u.getCurrentPage(),0)})})}};
cV.prototype.onYtNavigateFinish=function(l,e){var O=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){pa4(O,e.fromHistory)})};
var pa4=function(l,e){ywH(l);if(l.pendingPlayerOnResponseReceivedActions){for(var O=_.b(l.pendingPlayerOnResponseReceivedActions),E=O.next();!E.done;E=O.next())_.aX(E.value,l.hostElement);l.pendingPlayerOnResponseReceivedActions=[]}O=_.V2().resolve(_.XZ);!e&&l.hasNavigated&&((e=O.getCurrentPage())?e.is==="ytd-shorts"||l.tabGesturesIsActive||l.setPageOffsetForNavigation(e,0):_.hG(Error("Zk")));_.N7(function(){_.N7(function(){_.Yu("pda")})})};
cV.prototype.onYtNavigate=function(l){if(!l.detail.endpoint){var e=new _.Hk("Error: Missing yt-navigate endpoint from target:",l.target,l.target.nodeName);_.UW(e)}if(e=_.a("cold_missing_history"))e=Fb(),e.init(!1),e=!(e.browserHistory.boundHistoryReplaceState&&e.browserHistory.boundHistoryPushState);if(e){_.Yd("DISABLE_WARM_LOADS",!0);e=new _.Hk("Failed to initialize history manager",this.getDebugString());var O=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
O?_.hG(e):_.UW(e)}e=l.detail.endpoint;var E,J;_.a("debug_forward_web_query_parameters")&&((E=e.commandMetadata)==null?0:(J=E.webCommandMetadata)==null?0:J.url)&&(e=JSON.parse(JSON.stringify(e)),e.commandMetadata.webCommandMetadata.url=_.Pg2(e.commandMetadata.webCommandMetadata.url,window.location.search));l={type:0,command:e,form:{params:l.detail.params,tempData:l.detail.tempData||{},requestType:l.detail.type,createScreenConfig:l.detail.createScreenConfig,reload:l.detail.reload?l.detail.reload:!1,
requestForm:l.detail}};_.a("kevlar_yt_navigate_command_handler")?(E=_.V2().resolve(_.Zh),l.form.skipDefaultElement=!0,E.resolveCommand(e,{form:l.form})):this.handleNavigate(l)};
cV.prototype.handleNavigate=function(l){this.hasSetScrollTopForNavigation=!1;var e=_.V2().resolve(_.KQ),O=l.form||{};e.navigate(l.command,O.reload,O.params,O.tempData,O.requestType,O.createScreenConfig,O.ignoreConfirmation,O.requestForm)&&IlC(this,l.command,O.tempData)};
cV.prototype.onYtPageDataFetched=function(l,e){try{_.pNR().reset();this.data=e.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.V2().resolve(_.XZ).updatePageData(this.data);var O=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);O&&lGu(O);var E=this.get("response.responseContext.serviceTrackingParams",this.data);E&&lGu(E);var J=
this.get("playerResponse.onResponseReceivedActions",this.data);J&&(J=K6F(this,J));J&&_.wQ(this.hostElement,J,this.hostElement);var z=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),M=this.get("response.responseContext.consistencyTokenJar",this.data);if(z||M){var Z=_.g8M(),u=(0,_.mm.getValues)(Z.tokenJars);z&&Z.replace(u,z);M&&Z.replace(u,M)}}catch(d){_.UW(d)}};
var IlC=function(l,e,O){try{l.onYtEndpointChangeHandler(e,O)}catch(E){_.UW(E)}};
_.X=cV.prototype;_.X.onYtEndpointChangeHandler=function(){};
_.X.setPageTitle=function(l){l=(this.pageTitle=l)?l+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+l};
_.X.onYtUpdateTitle=function(l,e){this.setPageTitle(e)};
_.X.setUnseenNotificationCount=function(l){this.unseenNotificationCount=l;this.setPageTitle(this.pageTitle)};
_.X.handleUpdateNotificationsUnseenCountAction=function(l){_.I(l,rHu)&&((l=_.I(l,rHu).unseenCount)?this.setUnseenNotificationCount(l):this.setUnseenNotificationCount(0))};
_.X.handleClearCookieAction=function(l){var e;(l=(e=_.I(l,tJH))==null?void 0:e.cookieName)&&_.X9M(l)};
_.X.onYtUpdateUnseenNotificationCount=function(l,e){this.setUnseenNotificationCount(e)};
_.X.loadData=function(l){var e=this;this.loadDepsPromise.then(function(){var O=_.V2().resolve(_.MG(_.KQ));O||_.UW(Error("$k"));if(l&&l.response){if(!l.endpoint){var E=_.Dp(window.document.location.href)||"/",J="";if(E==="/"||E.startsWith("/?"))J="WEB_PAGE_TYPE_BROWSE";l.endpoint={commandMetadata:{webCommandMetadata:{url:E,webPageType:J,rootVe:3854}}}}_.fJ0(O,l.endpoint,l,5,{})}else l.endpoint?O.navigate(l.endpoint):O.navigate(_.an);_.UD.cancelJob(e.zwiebackInitJobId);e.zwiebackInitJobId=_.UD.addLowPriorityJob(vvu)})};
var Fb=function(){return _.V2().resolve(_.W5)};
cV.prototype.getDebugString=function(){return Fb().getDebugString()};
cV.prototype.getThirdPartyManipulationSuspected=function(){return Fb().getThirdPartyManipulationSuspected()};
cV.prototype.replaceState=function(l,e,O){Fb().saveAndReplace(l,e,O)};
cV.prototype.saveAndPush=function(l,e,O,E){Fb().saveAndPush(l,e,O,E)};
var kl0=function(l){return _.I(l.endpoint,_.ej)||_.I(l.endpoint,_.jT)?!0:!l||isNaN(l.expirationTime)?!1:(0,_.VZ)()>l.expirationTime},m5C=function(l,e,O){var E=l.get("response.trackingParams",O),J=_.B9(),z=_.P9();
if(E&&J&&z&&(E=l.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",O),!E&&O.rootVe&&(E=O.rootVe),J=e?"forwardButton":"backButton",e=l.get("playerResponse.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",l.data),l=l.get("response.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",l.data),e=(l=e||l)?_.cf(l):void 0,l=_.yN(),J=[_.Ag(O)],_.on(l,E,e,{dataPromises:J,csnToClone:O.csn}),O.graftedVes))for(O=
_.b(O.graftedVes),E=O.next();!E.done;E=O.next())_.$w(l,E.value)};
cV.prototype.onStoreGraftedVeAction=function(l){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(l)):_.hG(Error("al"))};
var K6F=function(l,e){return e.filter(function(O){for(var E in O)if(Aw3[E])return l.pendingPlayerOnResponseReceivedActions.push(O),!0;return!1})};
_.Ji.Object.defineProperties(cV.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
cV.prototype.onStoreGraftedVeAction=cV.prototype.onStoreGraftedVeAction;cV.prototype.loadData=cV.prototype.loadData;cV.prototype.onYtUpdateUnseenNotificationCount=cV.prototype.onYtUpdateUnseenNotificationCount;cV.prototype.handleClearCookieAction=cV.prototype.handleClearCookieAction;cV.prototype.handleUpdateNotificationsUnseenCountAction=cV.prototype.handleUpdateNotificationsUnseenCountAction;cV.prototype.setUnseenNotificationCount=cV.prototype.setUnseenNotificationCount;
cV.prototype.onYtUpdateTitle=cV.prototype.onYtUpdateTitle;cV.prototype.setPageTitle=cV.prototype.setPageTitle;cV.prototype.onYtEndpointChangeHandler=cV.prototype.onYtEndpointChangeHandler;cV.prototype.onYtPageDataFetched=cV.prototype.onYtPageDataFetched;cV.prototype.handleNavigate=cV.prototype.handleNavigate;cV.prototype.onYtNavigate=cV.prototype.onYtNavigate;cV.prototype.onYtNavigateFinish=cV.prototype.onYtNavigateFinish;cV.prototype.onYtNavigateCache=cV.prototype.onYtNavigateCache;
cV.prototype.onYtNavigateError=cV.prototype.onYtNavigateError;cV.prototype.onYtNavigateStart=cV.prototype.onYtNavigateStart;cV.prototype.cancelPendingTasks=cV.prototype.cancelPendingTasks;cV.prototype.initHistoryManager=cV.prototype.initHistoryManager;cV.prototype.onYtHistoryLoad=cV.prototype.onYtHistoryLoad;cV.prototype.onYtHistoryPop=cV.prototype.onYtHistoryPop;cV.prototype.onYtNavigateSetPageOffset=cV.prototype.onYtNavigateSetPageOffset;cV.prototype.setPageOffset=cV.prototype.setPageOffset;
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],cV.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cV.prototype,"data",void 0);_.L([_.wP("yt-navigate-set-page-offset"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],cV.prototype,"onYtNavigateSetPageOffset",null);
_.L([_.wP("yt-history-pop"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],cV.prototype,"onYtHistoryPop",null);_.L([_.wP("yt-history-load"),_.q("design:type",Function),_.q("design:paramtypes",[Event,_.lJq]),_.q("design:returntype")],cV.prototype,"onYtHistoryLoad",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],cV.prototype,"onYtNavigate",null);
_.L([_.wP("yt-update-title"),_.q("design:type",Function),_.q("design:paramtypes",[Event,String]),_.q("design:returntype")],cV.prototype,"onYtUpdateTitle",null);_.L([_.wP("yt-update-unseen-notification-count"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Number]),_.q("design:returntype")],cV.prototype,"onYtUpdateUnseenNotificationCount",null);_.L([_.m0()],cV);iQ4.YtdAppBehavior=[_.ZH.YtActionHandlerBehavior,cV.prototype];var fa=function(){var l=_.IB.apply(this,arguments)||this;l._noAccessors=!0;return l};
_.m(fa,_.IB);fa.prototype.ready=function(){var l=this;_.ud(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){l.onChange_()})};
fa.prototype.dataChanged_=function(){_.ud(this.hostElement).querySelector("#checkbox").checked=!1};
fa.prototype.onChange_=function(){var l=_.ud(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.$u(this.hostElement,"yt-dismissal-reason-"+l,this.data.feedbackToken)};
fa.prototype.dataChanged_=fa.prototype.dataChanged_;_.L([_.T(),_.q("design:type",Object)],fa.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],fa.prototype,"dataChanged_",null);_.L([_.m0()],fa);var j3f=[fa.prototype];var RY=function(){var l=_.IB.apply(this,arguments)||this;l.timeoutJobId=0;l.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return l};
_.m(RY,_.IB);RY.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
RY.prototype.startTimeout=function(){var l=this,e=this.data&&this.data.displayDurationSeconds;e&&!this.timeoutJobId&&(this.timeoutJobId=_.fZ(_.UD,function(){_.Wb(l.hostElement,"yt-close-popup-action",[l.is]);l.timeoutJobId=0},e*1E3))};
RY.prototype.cancelTimeout=function(){_.UD.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
RY.prototype.ytdHatsSurveyBehaviorDataChanged=RY.prototype.ytdHatsSurveyBehaviorDataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],RY.prototype,"ytActionHandlerBehavior",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RY.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.L([_.m0()],RY);var HQu=[_.ZH.YtActionHandlerBehavior,RY.prototype];var cwh=function(l,e){return l.SHARED_RENDERERS_.hasOwnProperty(e)?"yt":l.prefix},TO={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};TO.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.a("kevlar_mealbar_above_player"),modern:_.a("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
TO.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};TO.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};TO.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
TO.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)"}};
TO.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};
TO.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};
TO.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};
TO.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};TO.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"}};
TO.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};TO.TOAST={component:null,properties:{}};var F6F=new function(l,e,O){this.supportedPopups=l;this.navigationEndpointPopupMap=e;this.popupTypeMap=O;this.supportedPopups=l;this.navigationEndpointPopupMap=e;this.popupTypeMap=O}({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:_.a("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"}),flC=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17690_popupConfig=TO;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 RxC=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.fe.getInstance()},sy=function(l,e){var O=l.pageNameToElement.get(e);
if(!O){switch(e){case "watch":var E=_.a("web_watch_force_learning_journey_for_testing")?_.zH("ytd-watch-learning-journey"):_.a("kevlar_watch_fixie")?_.zH("ytd-watch-fixie"):_.a("kevlar_watch_grid")?_.zH("ytd-watch-grid"):_.zH("ytd-watch-flexy");break;case "learning_journey_watch":E=_.zH("ytd-watch-learning-journey");break;case "shorts":E=_.zH("ytd-shorts");break;case "search":E=_.zH("ytd-search");break;case "channel":E=_.zH("ytd-browse");E.pageSubtype="channels";break;case "trending":E=_.zH("ytd-browse");
E.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":E=
_.zH("ytd-browse");E.pageSubtype=e;break;case "browse":E=_.zH("ytd-browse");break;default:_.hG(new _.Hk("Error getting page element for type",e))}O=E;l.pageNameToElement.set(e,O)}return O};
RxC.prototype.preparePage=function(l,e,O){O&&(l=_.I4(O)||l);if(l!=="watch"&&l!=="learning_journey_watch"){var E=this.elementPoolPopulator,J=l;J!=E.targetPage_&&E.pendingPages_.indexOf(J)>-1&&(E.targetPage_&&(E.pendingPages_.unshift(E.targetPage_),E.abort()),GVo(E,J),_.Dw0(E,J))}if((E=sy(this,l))||!_.I(O,_.Db)){E.isAttached||E===e||(E.hidden=!0);if(!E.data&&(l!=="watch"&&l!=="learning_journey_watch"||!_.a("swatcheroo_page_pool_dont_provide_filler_data"))){var z;if(l=(z=_.hT("FILLER_DATA",{})[l])==
null?void 0:z.response)E.data=l}return E}};var TSu=function(l){this.JSC$28521_clientRoot=l;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Jgu,"yt-end-playlist-command":XbF,"yt-recover-playlist-command":bzP,"yt-refresh-playlist-command":Zzo,"yt-playlist-remove-videos-action":Mjh};_.QW(_.SU.getInstance(),this.playlistHandlerActionMap,this.JSC$28521_clientRoot);NP4()},s3P;var GO=function(l,e,O){this.apiKey=l;this.endpoint=e;this.confidenceThreshold=O===void 0?.5:O;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=e==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||e==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
e==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||e==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new HIH};
_.X=GO.prototype;
_.X.start=function(l){if(this.state===0)if(this.isOnline()){l.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=l.supportsHttpHeadersOverwriteParam);l.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=l.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.UG("voice_assistant");_.hg("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=l.languageCode||"en-US";this.supportsCrossDomainXhr=l.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=l.youtubeAssistantRequest||null;this.listeningHandler=l.listeningHandler||this.listeningHandler;this.audioDetectedHandler=l.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=l.stopHandler||this.stopHandler;this.completeHandler=l.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=l.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=l.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
l.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=l.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=l.accessToken;this.additionalHeaders=l.additionalHeaders||{};var e;this.prefetchResponseTimeoutMs=(e=l.prefetchResponseTimeoutMs)!=null?e:this.prefetchResponseTimeoutMs;GlP(this);this.startAudio();BSO(this)}else this.errorHandler("OFFLINE")};
_.X.stop=function(l){var e=l===void 0?{}:l;l=e.logCancel===void 0?!0:e.logCancel;var O=e.logMicClosed===void 0?!0:e.logMicClosed;var E=e.handleError===void 0?!0:e.handleError;e=e.handleStop===void 0?!0:e.handleStop;this.state!==0&&(l&&BV("voz_cx"),PV(this,{logMicClosed:O,handleStop:e}),E&&this.errorHandler("ABORTED"))};
_.X.getState=function(){return this.state};
_.X.isSupported=function(){return!0};
_.X.stopAudio=function(l){(l===void 0||l)&&BV("voz_mf")};
_.X.startAudio=function(){BV("voz_vp");return _.Ag(null)};
var P44=function(l,e){l.channelOpen&&(l.state!==2&&(l.state=2,BV("voz_ss"),l.listeningHandler()),e=new Uint8Array(e),e='{ "audioIn": "'+_.x4(e)+'" }',l.channel.send(e))},PV=function(l,e){var O=e===void 0?{}:e;
e=O.logMicClosed===void 0?!0:O.logMicClosed;O=O.handleStop===void 0?!0:O.handleStop;l.vozEndOfDataTimeout>-1&&(clearTimeout(l.vozEndOfDataTimeout),l.vozEndOfDataTimeout=-1);U5h(l);l.stopAudio(e);l.channel&&(l.channelOpen=!1,l.manuallyClosedChannel=!0,l.channel.close(),l.channel=void 0);l.transcribedSpeechResults=[];l.state=0;O&&l.stopHandler()},GlP=function(l){var e={httpHeadersOverwriteParam:l.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},l.additionalHeaders,l.accessToken&&l.isUsingVoz?{Authorization:"Bearer "+l.accessToken}:{"x-goog-api-key":l.apiKey}),supportsCrossDomainXhr:l.supportsCrossDomainXhr};l.channel=new Td(l.endpoint,e);l.channel.open();_.f4(l.channel,"w",function(){var O=l.channel,E=O.send,J=l.isUsingVoz?"PLACEHOLDER":"example";J={config:{dialogStateIn:{languageCode:l.languageCode},deviceConfig:{deviceId:J,deviceModelId:J},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!l.isUsingVoz)J.config.requestType=4;else if(l.isUsingVoz&&l.youtubeAssistantRequest){var z=JSON.stringify(l.youtubeAssistantRequest);J.config.internalIn={youtubeAssistantS3InputJson:z}}E.call(O,J);l.channelOpen=!0;l.manuallyClosedChannel=!1});
_.f4(l.channel,"x",function(){l.manuallyClosedChannel||(l.channelOpen=!1,l.channel=void 0,PV(l))});
_.f4(l.channel,"z",function(O){if(O.data){U5h(l);for(var E=0;E<O.data.length;E++){var J=l,z=O.data[E],M=z.speechResults;if(M)a:{var Z=[];z=[];var u=!1;M=_.b(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;if(d.noSpeech){PV(J);J.errorHandler("NO_SPEECH");break a}d.transcript!==void 0&&d.stability!==void 0&&(d.stability<J.confidenceThreshold&&(u=!0),u?z.push(d.transcript):Z.push(d.transcript))}if(Z.length!==0||z.length!==0)Z=Z.join(" "),z=z.join(" "),J.receivedEndOfUtterance&&!J.isUsingVoz?J.isUsingVoz||
J.completeHandler([Z,z]):(u=J,M=Z,d=z,BV("voz_sf"),u.transcriptionUpdateHandler(M,d),u.transcribedSpeechResults=[M,d]),J.receivedEndOfUtterance&&(BV("voz_eou"),J.transcriptionCompleteHandler([Z,z]),J.isUsingVoz&&(J.prefetchResponseTimeoutMs===0?PV(J,{logMicClosed:!1,handleStop:!0}):J.prefetchResponseTimeoutMs>0&&YgC(J)))}else J.isUsingVoz&&(z==null?0:z.internalOut)?(z=JSON.parse(z.internalOut.youtubeAssistantS3OutputJson),z.userHasOptedInToVaa||z.vaaConsent?J.vaaConsentUpdateHandler(!!z.userHasOptedInToVaa,
!!z.vaaConsent):(hxu(J),z&&(Z=J.transcribedSpeechResults,BV("voz_rqf"),J.completeHandler(Z,z)))):z.eventType==="END_OF_UTTERANCE"?J.receivedEndOfUtterance=!0:(BV("voz_err"),J.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.hG(Error("bl")))}}});
_.f4(l.channel,"y",function(O){PV(l);switch(O.status){case 1:O="WEBCHANNEL_NETWORK_ERROR";break;case 2:O="WEBCHANNEL_SERVER_ERROR";break;default:O="WEBCHANNEL_UNKNOWN_ERROR"}l.errorHandler(O);l.logError(Error(O))})};
GO.prototype.logError=function(l){_.UW(l)};
GO.prototype.isOnline=function(){return!0};
var YgC=function(l){hxu(l);l.prefetchResponseSetTimeoutId=setTimeout(function(){PV(l,{logMicClosed:!1,handleStop:!0})},l.prefetchResponseTimeoutMs)},hxu=function(l){l.prefetchResponseSetTimeoutId>-1&&(clearTimeout(l.prefetchResponseSetTimeoutId),l.prefetchResponseSetTimeoutId=-1)},BSO=function(l){U5h(l);
l.noResponseReceivedTimeout=window.setTimeout(function(){PV(l);l.errorHandler("NO_SPEECH")},11E3)},U5h=function(l){l.noResponseReceivedTimeout>-1&&(window.clearTimeout(l.noResponseReceivedTimeout),l.noResponseReceivedTimeout=-1)},BV=function(l){_.Yu(l,void 0,"voice_assistant")};var Uy=function(){GO.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.m(Uy,GO);Uy.prototype.isSupported=function(){return ujz()};
Uy.prototype.startAudio=function(){var l=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Tr(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(E){L64(l,E)};
this.processor.connect(this.audioContext.destination);var e=function(E){l.stream=E;if(!l.audioContext)return _.Ag(null);E=l.audioContext.createMediaStreamSource(E);l.processor&&E.connect(l.processor);return _.Ag(null)},O={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?e(this.stream):(O=navigator.mediaDevices.getUserMedia(O))?O.then(e).catch(function(E){PV(l);E.name&&E.name==="NotAllowedError"?l.errorHandler("NO_MICROPHONE_PERMISSION"):(l.errorHandler("AUDIO_ERROR"),l.logError(E));return _.Tr(null)}):(PV(this),this.errorHandler("AUDIO_ERROR"),_.hG(Error("cl")));
return GO.prototype.startAudio.call(this)};
Uy.prototype.stopAudio=function(l){l=l===void 0?!0:l;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(e){e.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;GO.prototype.stopAudio.call(this,l)};
Uy.prototype.isOnline=function(){return navigator.onLine};
var L64=function(l,e){if(l.audioContext)if(window.OfflineAudioContext){var O=l.audioContext.sampleRate,E=e.inputBuffer.getChannelData(0);e=new window.OfflineAudioContext(1,E.length,16E3);for(var J=e.createBuffer(1,E.length,O),z=J.getChannelData(0),M=0,Z=0;Z<E.length;Z++)z[Z]=E[Z],M+=z[Z]*z[Z];!l.audioDetected&&Math.sqrt(M/E.length)>.01&&(l.audioDetected=!0,l.audioDetectedHandler());E=e.createBufferSource();E.buffer=J;E.connect(e.destination);E.start(0);e.oncomplete=function(u){u=u.renderedBuffer.getChannelData(0);
for(var d=Math.floor(16384E3/O),g=new Int16Array(d),w=0;w<d;++w)g[w]=Math.max(-1,Math.min(1,u[w]))*32767;P44(l,g.buffer)};
e.startRendering()}else tQu(l,e)},tQu=function(l,e){var O=l.audioContext.sampleRate,E=e.inputBuffer.getChannelData(0),J=Math.floor((O+8E3)/16E3);
O=E.length/J;e=new Float32Array(O);for(var z=0;z<O;++z)e[z]=E[z*J];E=new Int16Array(O);for(J=0;J<O;++J)E[J]=Math.max(-1,Math.min(1,e[J]))*32767;P44(l,E.buffer)};var qgu={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var v5o=function(){this.JSC$17755_audioEnabled=!0;this.audioFeedbackHolder={}};
v5o.prototype.isPlaying=function(l){return l.currentTime>0&&!l.paused&&!l.ended&&l.readyState>2};
var NS4=function(l){for(var e=_.b(Object.values(qgu)),O=e.next();!O.done;O=e.next())O=O.value,l.audioFeedbackHolder[O]=new Audio,l.audioFeedbackHolder[O].src="/s/search/audio/"+O+".mp3",l.audioFeedbackHolder[O].load()},Yt=function(l,e){if(l.JSC$17755_audioEnabled!==!1&&e in l.audioFeedbackHolder){for(var O=_.b(Object.values(l.audioFeedbackHolder)),E=O.next();!E.done;E=O.next())E=E.value,l.isPlaying(E)&&E.pause();
l.audioFeedbackHolder[e].currentTime=0;l.audioFeedbackHolder[e].play().catch(function(){})}};var rwi=function(l,e){var O=this;this.store=l;this.service=e;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){O.setState("offline");O.stop()};
this.audioPlayer=new v5o;var E;(E=this.audioPlayer)==null||NS4(E)};
_.X=rwi.prototype;_.X.getService=function(){return this.service};
_.X.isEnabled=function(){return!!this.service};
_.X.isSupported=function(){var l;return(l=this.service)==null?void 0:l.isSupported()};
_.X.start=function(){var l=this,e,O,E,J,z,M,Z,u,d,g,w,n,k;return _.V(function(y){switch(y.nextAddress){case 1:l.store.dispatch(eju("",""));if(!navigator.onLine)return l.setState("offline"),y.return();window.addEventListener("offline",l.handleOfflineEvent);l.stream=null;if(!l.permissionsSupported){y.jumpTo(2);break}_.b1(y,3);return _.C(y,D53(l),5);case 5:e=y.yieldResult;if(!e)return(O=l.audioPlayer)==null||Yt(O,"failure"),y.return();l.service.stream=l.stream;l.setState("listening");_.Q2(y,2);break;
case 3:_.u1(y),l.permissionsSupported=!1;case 2:E={context:_.Cig(_.uL())},E.youtubeAssistantParams={searchParams:{inlineSearchResponse:l.enableInlineSearchResponse}},J=function(c,f){l.store.dispatch(OdO("transcribing"));l.store.dispatch(eju(c,f))},z=function(){var c;
(c=l.audioPlayer)==null||Yt(c,"open");l.setState("listening")},M=function(){l.setState("transcribing")},Z=function(c){l.setErrorState(c)},u=function(c,f){var P;
(P=l.audioPlayer)==null||Yt(P,"success");f&&(_.a("kevlar_voice_search_inline_search")&&(l.responseProcessor=_.V2().resolve(_.WvT),l.responseProcessor&&(P=f.navigationAction,c=f.prefetchedSearchResponse,P&&c&&(P=(new _.ePi).JSC$11044_getStoreKey(P),_.xx(l.responseProcessor,c,P)))),l.JSC$17773_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",f))},d=function(){window.removeEventListener("offline",l.handleOfflineEvent)},g=_.nuW(!1),w=g.Authorization!=null,n=l.enableFirstPartyAuth||
l.enableFPAForSignedInUsers&&w?g:{"X-Goog-Visitor-Id":g["X-Goog-Visitor-Id"]},k={completeHandler:u,
errorHandler:Z,listeningHandler:z,audioDetectedHandler:M,stopHandler:d,transcriptionUpdateHandler:J,youtubeAssistantRequest:E,languageCode:Sg4(),additionalHeaders:n,supportsCrossDomainXhr:l.enableFirstPartyAuth||l.enableFPAForSignedInUsers&&w,supportsHttpHeadersOverwriteParam:!l.disableHttpHeadersOverwrite},l.service.start(k),_.Cl(y)}})};
_.X.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.X.reset=function(){this.store.dispatch(_.oM({type:"RESET_VOICE_SEARCH_STATE"}))};
_.X.setState=function(l){this.store.dispatch(OdO(l))};
_.X.setErrorState=function(l){switch(l){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var e;(e=this.audioPlayer)==null||Yt(e,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)D53(this);else{var O;(O=this.audioPlayer)==null||Yt(O,"failure");this.setState("permission-denied")}break;case "ABORTED":var E;(E=this.audioPlayer)==null||Yt(E,"no_input");break;default:var J;(J=this.audioPlayer)==
null||Yt(J,"no_input");this.setState("timeout")}};
var D53=function(l){var e,O;return _.V(function(E){switch(E.nextAddress){case 1:return _.C(E,navigator.permissions.query({name:"microphone"}),2);case 2:e=E.yieldResult;if(e.state==="granted")return E.return(!0);if(e.state==="denied")return l.setState("permission-denied"),E.return(!1);l.setState("permission");O={audio:{sampleSize:16,channelCount:1},video:!1};_.b1(E,3);return _.C(E,navigator.mediaDevices.getUserMedia(O),5);case 5:return l.stream=E.yieldResult,E.return(!0);case 3:return _.u1(E),l.setState("permission-denied"),
E.return(!1)}})},Sg4=function(){var l=_.hT("INNERTUBE_CONTEXT_HL"),e=_.hT("INNERTUBE_CONTEXT_GL");
return l.indexOf("-")>-1?l:l+"-"+e};var Q3O=function(l,e,O){rwi.call(this,e,O);this.JSC$17773_actionRouter=l;this.enableInlineSearchResponse=_.a("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.a("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.a("kevlar_voice_search_enable_fpa_signedin_users")},x5f;
_.m(Q3O,rwi);
var lHF=function(){if(!x5f){var l="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.a("kevlar_voice_search_auth_enabled")||_.a("kevlar_voice_search_use_yt_endpoint")?l="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.a("kevlar_voice_search_use_fp_endpoint")&&(l="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");x5f=
new Q3O(_.SU.getInstance(),_.Om(),new Uy(_.hT("VOZ_API_KEY"),l,.5))}return x5f};var eyC=function(l){this.JSC$17777_clientRoot=l;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17777_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)]]));l=_.b(this.eventListeners);for(var e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;O=_.b(O);for(var E=O.next();!E.done;E=O.next()){var J=
_.b(E.value);E=J.next().value;J=J.next().value;e.addEventListener(E,J)}}_.QW(_.SU.getInstance(),this.autonavPauseActionMap,this.JSC$17777_clientRoot)},Og4,E80=function(l){return _.a("kevlar_autonav_popup_filtering")?(l=_.OV(l))?l.hasAttribute("prevent-autonav"):!0:!0};
_.X=eyC.prototype;_.X.onIronOverlayOpened=function(l){E80(l)&&(this.autonavPauseReasons.overlayOpen=!0,h4(this))};
_.X.onIronOverlayClosed=function(l){E80(l)&&(this.autonavPauseReasons.overlayOpen=!1,h4(this))};
_.X.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;h4(this)};
_.X.onYtAutonavPauseBlur=function(){var l=this;_.UD.addJob(function(){l.isInBackground()||(l.autonavPauseReasons.inputBoxFocus=!1,h4(l))},8,0)};
_.X.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;h4(this)};
_.X.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;h4(this)};
_.X.onYtAutonavPauseScroll=function(){var l=_.V2().resolve(_.XZ);l.isOnWatch()&&(l=l.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=l.getBoundingClientRect().top<-200,h4(this))};
_.X.onYtAutonavPauseUserEngagement=function(l){var e=this;if(_.a("user_engagement_enable_autoplay_pause_feature")){var O=Number(l.lowEngagementThresholdMs);isNaN(O)||O<=0||l.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.V2().resolve(_.BF),_.uN()<O?_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.DzO()?(this.userEngagementCsn=_.P9(),_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
e.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,h4(this)):_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.mTd(Error("dl`"+JSON.stringify(l)))};
_.X.onYtAutonavPausePlayer=function(l){this.autonavPauseReasons.requestedByPlayer=!!l.detail;h4(this)};
_.X.onYtAutonavVisibilityChanged=function(){var l=this,e,O,E;return _.V(function(J){if(J.nextAddress==1)return(e=_.bV())?_.C(J,e.getPlayerPromise(),2):J.return();O=J.yieldResult;E=O.isMuted()||O.getVolume()===0;l.autonavPauseReasons.backgroundAndMute=l.isInBackground()&&E;h4(l);_.Cl(J)})};
_.X.onYtAutonavPausePlayerEnded=function(){_.V2().resolve(_.BF);var l=144E5;_.a("user_engagement_enable_autoplay_pause_feature")||_.a("is_part_of_any_user_engagement_experiment")||(l=45E5);this.autonavPauseReasons.longIdle=_.uN()>l;Jbz(this);h4(this)};
_.X.onYtUserActivity=function(){var l=this;this.autonavPauseReasons.userEngagement&&(_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",l.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,h4(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",l.userEngagementCsn);_.Pm()}),this.autonavPauseReasons.youthereLactExperiment=!1,h4(this));
this.autonavPauseReasons.longIdle&&!_.a("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,h4(this))};
_.X.isInBackground=function(){var l=window.document.visibilityState;return!(!l||l==="visible")};
var h4=function(l){for(var e=!1,O=_.b(Object.values(l.autonavPauseReasons)),E=O.next();!E.done;E=O.next())E=E.value,e=e||E;e?_.E5.getInstance().pause(l.autonavPauseReasons):(l=_.E5.getInstance(),l.autonavState_==3?(l.setState(2,!1,!1),l.autonavPauseReason_=void 0):l.autonavState_==1&&(l.disabledAutonavPauseReason_=void 0))},Jbz=function(l){var e=!1;
if(_.a("enable_autoplay_pause_by_lact")){_.V2().resolve(_.BF);e=_.Cv("autoplay_pause_by_lact_sec")*1E3;var O=_.Cv("autoplay_pause_by_lact_sampling_fraction");(e=_.uN()>=e&&Math.random()<O)&&!_.DzO()&&(_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),e=!1)}e!==l.autonavPauseReasons.youthereLactExperiment&&(l.autonavPauseReasons.youthereLactExperiment=e)&&(l.userEngagementCsn=_.P9(),_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",l.userEngagementCsn)}));
l.autonavPauseReasons.userEngagement&&_.fZ(_.UD,function(){_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",l.userEngagementCsn)})};
eyC.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Dv("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Pm(),this.autonavPauseReasons.youthereLactExperiment=!1,h4(this));this.autonavPauseReasons.userEngagement&&(_.Dv("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,h4(this))};
eyC.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var La=function(){var l=_.B.apply(this,arguments)||this;l.miniGuideVisible=!1;l.guideOpened=_.a("disable_initial_guide_state_fix")?!1:l.canFitPersistentGuide(l.initialBodyClientWidth);l.guideUserStateOpened=l.getInitialGuideUserStateOpened();l.isFullscreenShorts=!1;l.miniGuideWidthThreshold=_.Cv("kevlar_mini_guide_width_threshold",791);l.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");l.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
l.persistentGuideBlockedPagePathRegex=new RegExp(l.persistentGuideBlockedPagesPatterns.join("|"));l.animationTransitionDuration=0;l.lateDataResolver=_.x7();l.initialGuideDataFetchFailed=!1;l.initialLoad=!0;l.guideRenderers=new Set;l.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return l};
_.m(La,_.B);_.X=La.prototype;_.X.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.X.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.X.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.X.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.X.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.X.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.X.ready=function(){_.V2().addProvider({provide:_.Yl,useValue:this.hostElement})};
_.X.attached=function(){var l=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.id(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.id(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.id(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.id(this,this.onYtGuideShow));_.OK(this,function(){l.animationTransitionDuration=200})};
_.X.detached=function(){document.removeEventListener("yt-navigate-finish",_.id(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.id(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.id(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.id(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.id(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.id(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.id(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.X.getData=function(){return this.data};
_.X.load=function(){var l=this,e,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=l.lateDataResolver.resolve.bind(l),z.return(l.lateDataResolver.promise);if(window.ytInitialGuideData)return e=_.x7(),e.resolve(window.ytInitialGuideData),z.return(e.promise);E=!1;_.b1(z,2);return _.C(z,l.fetchGuideData(),4);case 4:O=z.yieldResult;_.Q2(z,3);break;case 2:J=_.u1(z),J.message==="Returned error"&&(E=!0);
case 3:if(O)return z.return(O);l.onYtGuideClose();E||(l.initialGuideDataFetchFailed=!0);return z.return(l.lateDataResolver.promise)}})};
_.X.fetchGuideData=function(){var l=this,e,O,E,J,z,M,Z;return _.V(function(u){if(u.nextAddress==1)return e=_.V2(),l.guidePromise||(O=e.resolve(_.Um),l.guidePromise=_.Qh(O,Vy3)),_.C(u,l.guidePromise,2);if(u.nextAddress!=3)return E=u.yieldResult,J=e.resolve(_.tv),_.C(u,J(),3);(z=u.yieldResult)&&((M=E)==null?void 0:(Z=M.responseContext)==null?void 0:Z.maxAgeSeconds)!==0&&z.put("service:guide:fallback",new _.uF({innertubeResponse:E}));return u.return(E)})};
_.X.initializeGuideDataIfEmpty=function(){var l=this,e,O;return _.V(function(E){if(E.nextAddress==1){if(!l.initialGuideDataFetchFailed||l.data)return E.return();_.b1(E,2);return _.C(E,l.fetchGuideData(),4)}if(E.nextAddress!=2)return(e=E.yieldResult)&&l.lateDataResolver.resolve(e),_.Q2(E,0);O=_.u1(E);_.hG(O);_.Cl(E)})};
_.X.initializeGuideData=function(){var l=this,e;return _.V(function(O){switch(O.nextAddress){case 1:return _.nN(FWh(),{mainAppWeb:_.ST()}),_.b1(O,2),_.C(O,l.load(),4);case 4:l.data=O.yieldResult;_.Q2(O,3);break;case 2:_.u1(O),_.a2(FWh(),"FAILURE");case 3:e=l.data&&l.data.items&&l.data.items.length>0?"SUCCESS":"FAILURE",_.a2(FWh(),e),_.Cl(O)}})};
_.X.setGuideData=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1)return e.disabled?J.return():e.data?(l.data=e.data,e.guideRenderers.add(l),J.return()):_.C(J,e.initializeGuideData(),2);e.graftGuideToPage();O=_.LH("IS_HOMEPAGE_COLD")?"eop":void 0;_.a("disable_element_pool_populator")?e.setGuideDataAfterInit(l):(E=new _.bB(1,O),_.Me(E,e.setGuideDataAfterInit.bind(e,l)));_.Cl(J)})};
_.X.setGuideDataAfterInit=function(l){l.data=this.data;l.markDirty();this.guideRenderers.add(l);_.N7(function(){_.Yu("gle")});
_.OK(this,function(){_.Yu("gpe")})};
_.X.graftGuideToPage=function(){if(this.data){var l=this.data&&this.data.trackingParams;l&&(l=_.cf(l),_.WJ(_.yN(),l))}};
_.X.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.id(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.X.onDrawerOpenedChanged=function(l,e){!e.value&&this.guideOpened&&(this.guideOpened=!1)};
_.X.onYtGuideToggle=function(l){var e=this.guideOpened;this.guideOpened=!e;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var O=_.Kz();_.jj(0,109,!this.guideUserStateOpened);O.save()}this.updateGuideDrawerElementState();if(this.guideElement){var E;this.guideOpened&&((E=l.detail)==null?0:E.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.id(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.id(this,
this.onAppDrawerTransitioned))}e||this.initializeGuideDataIfEmpty()};
_.X.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.id(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.EW(this.guideElement)};
_.X.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.id(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(xTf(this.guideOpened))};
_.X.guidePersistentAndVisibleChanged=function(){_.dQ(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.X.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.oM({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.X.miniGuideVisibleChanged=function(){_.dQ(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.X.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(xTf(this.guideOpened)),this.initialLoad=!1);_.dQ(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.X.activeEndpointChanged=function(){_.dQ(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.X.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.X.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()};
_.X.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var l=this.canFitPersistentGuide(this.cachedClientWidth);l?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=l}this.updateGuideDrawerElementState()};
_.X.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.X.getGuideOpened=function(){return this.guideOpened};
_.X.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.X.getActiveEndpoint=function(){return this.activeEndpoint};
_.X.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.X.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&&_.$u(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.X.computeGuidePersistentAndVisible=function(){var l=this;_.rP(this,"computeGuidePersistentAndVisible",function(){l.guidePersistentAndVisible=l.guideOpened&&l.guidePersistent;l.guideIsVisibleButNotPersistent=!(!l.guideOpened||l.guidePersistent)})};
_.X.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.X.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.X.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.X.startLoadingWatch=function(){this.closeGuide()};
_.X.startLoadingShorts=function(){_.a("web_hide_guide_on_shorts")&&this.closeGuide()};
_.X.onYtNavigateFinish=function(l,e){if(!_.gs||e){this.activeEndpoint=e.endpoint;this.pageType=e.pageType;this.pageUrl=e.response.url;var O,E;l=(E=_.I((O=e.endpoint)==null?void 0:O.commandMetadata,_.V4))==null?void 0:E.url;!this.pageUrl&&l&&(this.pageUrl=l);_.a("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.X.getVisibleGuideRenderer=function(){for(var l=_.b(this.guideRenderers),e=l.next();!e.done;e=l.next())if(e=e.value,this.miniGuideVisible&&e.is==="ytd-mini-guide-renderer"||this.guideOpened&&e.is==="ytd-guide-renderer")return e;return null};
_.X.markGuideRendererDirty=function(l){if(l){typeof l.markDirty==="function"&&l.markDirty();l=_.b([].concat(_.kA(_.ud(l).children)));for(var e=l.next();!e.done;e=l.next())this.markGuideRendererDirty(e.value)}};
_.X.persistentGuideEnabled=function(l,e){if(!e||l==="watch"||l==="settings"||l==="shorts"&&this.isFullscreenShorts||_.a("reels_web_disable_persistent_guide_shorts")&&l==="shorts")return!1;var O=_.A5(e)||"";return _.a("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(E){return O===E}):!this.persistentGuideBlockedPagePathRegex.test(O)};
_.X.canFitPersistentGuide=function(l){var e=_.Cv("kevlar_persistent_guide_width_threshold",1312);return e===-1||_.a("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:l>e};
_.X.canFitMiniGuide=function(l){return this.miniGuideWidthThreshold===-1?!1:l>this.miniGuideWidthThreshold};
_.X.onResize=function(){var l=this;_.rP(this,"calculateGuideState",function(){l.onResizeDebounced()})};
_.X.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.X.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.X.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.X.getInitialGuideUserStateOpened=function(){return!_.Kz().getFlag(109)};
_.Ji.Object.defineProperties(La.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.hT("initialBodyClientWidth")||window.innerWidth}}});
La.prototype.onResize=La.prototype.onResize;La.prototype.observeForMiniGuideVisible=La.prototype.observeForMiniGuideVisible;La.prototype.computeGuidePersistentAndVisible=La.prototype.computeGuidePersistentAndVisible;La.prototype.cachedClientWidthChanged=La.prototype.cachedClientWidthChanged;La.prototype.resetGuide=La.prototype.resetGuide;La.prototype.activeEndpointChanged=La.prototype.activeEndpointChanged;La.prototype.guideOpenedChanged=La.prototype.guideOpenedChanged;
La.prototype.miniGuideVisibleChanged=La.prototype.miniGuideVisibleChanged;La.prototype.guideIsVisibleButNotPersistentChanged=La.prototype.guideIsVisibleButNotPersistentChanged;La.prototype.guidePersistentAndVisibleChanged=La.prototype.guidePersistentAndVisibleChanged;La.prototype.onGuideElementChanged=La.prototype.onGuideElementChanged;La.prototype.onGuidePersistentChanged=La.prototype.onGuidePersistentChanged;La.prototype.onRenderGuideChanged=La.prototype.onRenderGuideChanged;
La.prototype.onActiveEndpointChanged=La.prototype.onActiveEndpointChanged;La.prototype.onMiniGuideVisibleChanged=La.prototype.onMiniGuideVisibleChanged;La.prototype.onGuideIsVisibleButNotPersistentChanged=La.prototype.onGuideIsVisibleButNotPersistentChanged;La.prototype.onGuidePersistendAndVisibleChanged=La.prototype.onGuidePersistendAndVisibleChanged;_.L([_.K(_.sl),_.q("design:type",Object)],La.prototype,"ironResizableBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],La.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],La.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],La.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],La.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],La.prototype,"disabled",void 0);
_.L([_.T(),_.q("design:type",Boolean)],La.prototype,"guidePersistentAndVisible",void 0);_.L([_.AA("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onGuidePersistendAndVisibleChanged",null);_.L([_.T(),_.q("design:type",Boolean)],La.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.AA("guideIsVisibleButNotPersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.L([_.T(),_.q("design:type",Object)],La.prototype,"miniGuideVisible",void 0);_.L([_.AA("miniGuideVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onMiniGuideVisibleChanged",null);_.L([_.T(),_.q("design:type",Boolean)],La.prototype,"forceMiniGuideClose",void 0);
_.L([_.T(),_.q("design:type",Object)],La.prototype,"activeEndpoint",void 0);_.L([_.AA("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onActiveEndpointChanged",null);_.L([_.T(),_.q("design:type",Boolean)],La.prototype,"renderGuide",void 0);_.L([_.AA("renderGuide"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onRenderGuideChanged",null);
_.L([_.T(),_.q("design:type",Object)],La.prototype,"guideOpened",void 0);_.L([_.T(),_.q("design:type",Boolean)],La.prototype,"guidePersistent",void 0);_.L([_.AA("guidePersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onGuidePersistentChanged",null);_.L([_.T(),_.q("design:type",Object)],La.prototype,"guideUserStateOpened",void 0);_.L([_.T(),_.q("design:type",String)],La.prototype,"pageUrl",void 0);
_.L([_.T(),_.q("design:type",String)],La.prototype,"pageType",void 0);_.L([_.T(),_.q("design:type",Number)],La.prototype,"cachedClientWidth",void 0);_.L([_.T(),_.q("design:type",Object)],La.prototype,"guideElement",void 0);_.L([_.T({selector:_.mI}),_.q("design:type",Object)],La.prototype,"isFullscreenShorts",void 0);_.L([_.AA("guideElement"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onGuideElementChanged",null);
_.L([_.AA("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"guidePersistentAndVisibleChanged",null);_.L([_.y0("guideIsVisibleButNotPersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.L([_.AA("miniGuideVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"miniGuideVisibleChanged",null);_.L([_.y0("guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"guideOpenedChanged",null);_.L([_.AA("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"activeEndpointChanged",null);
_.L([_.y0("pageUrl"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"resetGuide",null);_.L([_.y0("cachedClientWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"cachedClientWidthChanged",null);_.L([_.AA("guideOpened","guidePersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"computeGuidePersistentAndVisible",null);
_.L([_.y0("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"observeForMiniGuideVisible",null);_.L([_.wP("iron-resize"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],La.prototype,"onResize",null);_.L([_.U({disableElementRegistration:!0,is:"yt-guide-manager"})],La);var XuC=_.Y(La,"yt-guide-manager",void 0,{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var t4=function(){var l=_.B.apply(this,arguments)||this;l.JSC$17787_keyboardInUse=!1;l.boundHandleCapturedKeydownEvent=function(e){l.handleCapturedKeydownEvent(e)};
return l};
_.m(t4,_.B);_.X=t4.prototype;_.X.attached=function(){this.listenToDocument(document)};
_.X.listenToDocument=function(l){l.addEventListener("keydown",_.id(this,this.onKeyDownEvent));l.addEventListener("keyup",_.id(this,this.onKeyUpEvent));l.addEventListener("mousedown",_.id(this,this.onMouseDownEvent));_.a("desktop_keyboard_capture_keydown_killswitch")||l.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);l.addEventListener("yt-page-data-updated",_.id(this,this.onPageUpdate))};
_.X.detached=function(){this.unlistenFromDocument(document)};
_.X.unlistenFromDocument=function(l){l.removeEventListener("keydown",_.id(this,this.onKeyDownEvent));l.removeEventListener("keyup",_.id(this,this.onKeyUpEvent));l.removeEventListener("mousedown",_.id(this,this.onMouseDownEvent));_.a("desktop_keyboard_capture_keydown_killswitch")||l.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);l.removeEventListener("yt-page-data-updated",_.id(this,this.onPageUpdate))};
_.X.ready=function(){_.V2().addProvider({provide:_.of,useValue:this})};
_.X.isKeyBoardInUse=function(){return this.JSC$17787_keyboardInUse};
_.X.handleCapturedKeydownEvent=function(l){if(l.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(l)};
_.X.onMouseDownEvent=function(){this.JSC$17787_keyboardInUse=!1};
_.X.onPageUpdate=function(){if(_.a("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.a("web_shorts_keyboard_shortcut_usage_log")){_.eI.clear();for(var l=_.b(_.x9),e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;O=_.sL(O);_.eI.set(e,O);_.DG(_.P9(),_.B9(),O)}_.O4.clear();l=_.b(_.l7);for(e=l.next();!e.done;e=l.next())O=_.b(e.value),e=O.next().value,O=O.next().value,O=_.sL(O),_.O4.set(e,O),_.DG(_.P9(),_.B9(),O);_.Sj(_.P9(),_.B9(),[].concat(_.kA(_.O4.values()),
_.kA(_.eI.values())));_.xu(_.P9(),[].concat(_.kA(_.O4.values()),_.kA(_.eI.values())))}};
_.X.onMiniplayerActiveChange=function(){var l;(l=_.V2().resolve(_.NJ).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(l.document):this.unlistenFromDocument(l.document))};
_.X.ignoreKeyEvent=function(l){if(l.ctrlKey||l.altKey)if(_.a("kevlar_macro_markers_keyboard_shortcut")){if(l.keyCode!==37&&l.keyCode!==39)return!0}else return!0;var e=_.ey(l)||[];return _.lhf(e)?!0:l.defaultPrevented?($r(l.keyCode,l.shiftKey,this.isShortsPage),!0):l.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(l):!1};
_.X.isSpacebarClick=function(l){var e=l||window.event;var O;e.composedPath&&typeof e.composedPath==="function"?O=e.composedPath():O=e.path;O&&O.length?e=O[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e&&l.keyCode===32&&(l=e.tagName==="BUTTON"||e.tagName==="A"||e.tagName==="INPUT",e=(e=e.getAttribute("role"))&&(e==="option"||e==="button"||e.indexOf("menuitem")===0),l||e)?!0:!1};
_.X.onKeyDownEvent=function(l){if(!this.ignoreKeyEvent(l)&&(l.keyCode===191&&(l.shiftKey||l.metaKey?l.repeat!=null&&l.repeat||(this.openHotkeyDialog(),$r(l.keyCode,l.shiftKey,this.isShortsPage)):(this.focusSearchBox(),l.preventDefault())),!l.metaKey)){var e=_.V2().resolve(_.NJ);switch(l.keyCode){case 9:this.JSC$17787_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(l);break;case 84:e.pipController.getWindow()&&window.focus();this.toggleTheaterMode(l.keyCode,l.shiftKey);break;case 73:e.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(l.keyCode,l.shiftKey);break;case 70:if(this.isShortsPage&&_.a("web_fullscreen_shorts")){_.OvC();break}this.isMiniplayerActive()?e.pipController.getWindow()&&(e.close(!0),window.focus()):this.passEventToPlayer(l);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(l.keyCode,l.shiftKey):this.closeMiniplayer(l.keyCode,l.shiftKey)||this.passEventToPlayer(l);break;case 13:l.shiftKey&&_.a("web_ephemeral_actions")&&_.V2().resolve(_.$Y).activate(l);break;
default:this.passEventToPlayer(l)}}};
_.X.onKeyUpEvent=function(l){if(!this.ignoreKeyEvent(l))if(_.a("web_speedmaster_spacebar_control")&&l.keyCode===32)this.handlePlayerSpaceKey(l,!0);else{var e=this.getPlayerManager();e&&(e=e.getPlayer())&&e.handleGlobalKeyUp(l.keyCode,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code)}};
_.X.getPlayerManager=function(){var l=_.bV(),e=_.V2().resolve(_.MG(_.XZ));return l&&e&&e.isOnWatch()?l:null};
_.X.passEventToPlayer=function(l,e){var O=this,E,J,z;return _.V(function(M){if(M.nextAddress==1)return!_.a("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&O.isMiniplayerActive()?E=_.V2().resolve(_.NJ).getPlayerElement():O.inlinePreviewIsActive?(J=_.dQ(O.hostElement,"yt-get-inline-preview-player-action"))&&J[0]&&(E=J[0]):E=_.bV(),E?_.C(M,E.getPlayerPromise(),3):M.jumpTo(0);z=M.yieldResult;e?z.handleGlobalKeyUp(l.keyCode,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code,l.repeat):z.handleGlobalKeyDown(l.keyCode,
l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code,l.repeat);l.keyCode!==38&&l.keyCode!==40&&$r(l.keyCode,l.shiftKey,O.isShortsPage);_.Cl(M)})};
_.X.focusSearchBox=function(){_.$u(this.hostElement,"yt-focus-searchbox")};
_.X.openHotkeyDialog=function(){_.$u(this.hostElement,"yt-open-hotkey-dialog")};
_.X.isMiniplayerActive=function(){return _.V2().resolve(_.NJ).isMiniplayerActive()};
_.X.closeMiniplayer=function(l,e){return this.isMiniplayerActive()?(_.V2().resolve(_.NJ).close(),$r(l,e,this.isShortsPage),!0):!1};
_.X.toggleTheaterMode=function(l,e){var O=_.tM(_.Om().getState()),E=this.getPlayerManager(),J=_.a("disable_theater_mode_keyboard")||_.LH("START_IN_FULL_WINDOW_MODE");E&&!J&&(O=!O,_.ZG()&&_.a("external_fullscreen")&&(O=!0),_.Wb(this.hostElement,"yt-toggle-theater-mode",[O]),$r(l,e,this.isShortsPage))};
_.X.toggleMiniplayer=function(l,e){var O=this.getPlayerManager();if(this.isMiniplayerActive()){var E;((E=_.V2().resolve(_.MG(_.XZ)))==null?0:E.isOnWatch())?_.V2().resolve(_.NJ).close(!0):_.ab(_.V2().resolve(_.NJ));$r(l,e,this.isShortsPage)}else O&&(_.Wb(this.hostElement,"yt-activate-miniplayer-from-watch-action"),$r(l,e,this.isShortsPage))};
_.X.handlePlayerSpaceKey=function(l,e){var O=!!_.bV()||this.isMiniplayerActive();O=_.a("disable_space_scroll_fix")||O;_.a("global_spacebar_pause")&&!this.isKeyBoardInUse()&&O&&(l.preventDefault(),this.passEventToPlayer(l,e))};
_.X.isPresentingTheaterMode=function(){return _.a("web_watch_enable_tm_esc_key")?_.tM(_.Om().getState())&&!_.ZG():!1};
t4.prototype.onMiniplayerActiveChange=t4.prototype.onMiniplayerActiveChange;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],t4.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],t4.prototype,"ytdReduxBehavior",void 0);_.L([_.T({selector:_.oU8}),_.q("design:type",Boolean)],t4.prototype,"inlinePreviewIsActive",void 0);_.L([_.T({selector:_.SC3}),_.q("design:type",Boolean)],t4.prototype,"isShortsPage",void 0);
_.L([_.T({selector:_.Pt}),_.q("design:type",Boolean)],t4.prototype,"miniplayerIsActive",void 0);_.L([_.AA("miniplayerIsActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],t4.prototype,"onMiniplayerActiveChange",null);_.L([_.U({disableElementRegistration:!0,is:"yt-hotkey-manager"})],t4);_.Y(t4,"yt-hotkey-manager",void 0,{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var q_=function(){var l=_.B.apply(this,arguments)||this;l.loopStateEntityKey_=null;l.playlistLoopStateEntity_=null;l.isShuffleNextPlaylist=!1;l.PLAYER_EVENTS_=new Map;l.playerListenersSetup_=!1;l.videoSkipJob_=0;l.canAutoAdvance_=!1;l.playerManager_=null;l.TEST_ONLY={};return l};
_.m(q_,_.B);_.X=q_.prototype;_.X.ready=function(){_.V2().addProvider({provide:_.U5,useValue:this.hostElement})};
_.X.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_)};
_.X.attached=function(){document.addEventListener("yt-navigate-start",_.id(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.id(this,this.onYtNavigateFinish_))};
_.X.detached=function(){document.removeEventListener("yt-navigate-start",_.id(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.id(this,this.onYtNavigateFinish_))};
_.X.updatePlaylistEventListeners=function(l,e){e&&!this.playerListenersSetup_?(this.playerManager_=l,this.registerPlaylistEventListeners_(l)):!e&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(l))};
_.X.setPlayer=function(l){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=l};
_.X.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.X.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.X.registerPlaylistEventListeners_=function(l){var e=this;l.getPlayerPromise().then(function(O){e.playerListenersSetup_||(e.ytPlayerListenerBehavior.listenToPlayerEvents(O,e.PLAYER_EVENTS_),e.playerListenersSetup_=!0)})};
_.X.removePlaylistEventListeners_=function(l){var e=this;l.getPlayerPromise().then(function(O){e.playerListenersSetup_&&(e.ytPlayerListenerBehavior.unlistenFromPlayerEvents(O,e.PLAYER_EVENTS_),e.playerListenersSetup_=!1)})};
_.X.setPlaylistComponent=function(l){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.id(this,this.onPlaylistYtNavigate_)),l&&(l.data&&this.playlistComponent.data&&l.data.playlistId==this.playlistComponent.data.playlistId?(l.loopOn=this.playlistComponent.loopOn,l.shuffleOn=this.playlistComponent.shuffleOn):(l.loopOn=!1,l.shuffleOn=!1),this.isShuffleNextPlaylist&&(l.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=l;this.playlistComponent.addEventListener("yt-navigate",
_.id(this,this.onPlaylistYtNavigate_))};
_.X.setAutoplayRenderer=function(l){this.autoplayData=l};
_.X.setPlaylistData=function(l){this.currentPlaylistData_=l;_.$u(this.hostElement,"yt-playlist-data-updated");_.mm.isEmpty(l)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(l)};
_.X.setPlayerPlaybackControlData=function(l){this.playerManager_&&this.playerManager_.updatePlayerComponents(l.playlistPanelRenderer)};
_.X.getPlaylistData=function(){return this.currentPlaylistData_};
_.X.getTempData_=function(l,e){if(this.playlistComponent==null)return null;l={};this.playlistComponent.shuffleOn&&(l.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(l.loop_on=this.playlistComponent.loopOn);e&&(l.autonav="1",_.V2().resolve(_.BF),e=_.uN(),e>0&&(l.lact=e),this.playerManager_&&(e=this.playerManager_.getPlayer())&&e.shouldSendVisibilityState()&&(e=e.getVisibilityState(),e!=0&&(l.vis=e)));_.a("enable_unknown_lact_fix_on_html5")&&(_.V2().resolve(_.BF),l.lact=
_.uN());return l};
_.X.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.X.setLoopStateEntityKey_=function(l){var e;this.loopStateEntityKey_=((e=this.getPlaylistLoopData_(l))==null?void 0:e.playlistLoopStateEntityKey)||null};
_.X.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.X.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.X.skipVideo=function(){var l=this,e=_.a("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||e)e=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.pT(_.UD,function(){l.onPlaylistNext();l.videoSkipJob_=0},e)};
_.X.cancelVideoSkip=function(){this.videoSkipJob_&&(_.UD.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.X.isInBackground_=function(){var l=window.document.visibilityState;return!(!l||l=="visible")};
_.X.onPlaylistIndex_=function(l){this.playlistComponent&&(l=this.playlistComponent.data.contents[l].playlistPanelVideoRenderer.navigationEndpoint,_.$u(this.hostElement,"yt-navigate",{endpoint:l,tempData:this.getTempData_(l)}))};
_.X.onPlayerStateChange_=function(l){if(l=l==0&&this.playlistComponent&&this.canAutoAdvance_)l=_.E5.getInstance(),l=!(l.autonavState_===3?l.autonavPauseReason_&&l.autonavPauseReason_.inputBoxFocus===!0:l.autonavState_===1&&l.disabledAutonavPauseReason_&&l.disabledAutonavPauseReason_.inputBoxFocus===!0);l&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.X.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.X.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.X.navigateToAutoplayWatchEndpoint_=function(l,e,O){var E=this.playlistComponent.data.currentIndex,J=this.getNumPlayableVideos_();l=="NORMAL"&&e=="autoplayVideo"&&E+1>=J&&O||!(l=this.getVideoEndpoint_(l,e))||(O=this.getTempData_(l,O),_.$u(this.hostElement,"yt-navigate",{endpoint:l,tempData:O}))};
_.X.getNumPlayableVideos_=function(){for(var l=0,e=_.b(this.playlistComponent.data.contents||[]),O=e.next();!O.done;O=e.next())O.value.playlistPanelVideoRenderer&&(l+=1);return l};
_.X.getVideoEndpoint_=function(l,e){if(this.autoplayData&&this.autoplayData.sets)for(var O=0,E=this.autoplayData.sets.length;O<E;O++){var J=this.autoplayData.sets[O];if(J.mode==l){if(J[e])return J[e];break}}else l=new _.Hk("AutoplayData is undefined in playlist manager","Mode: "+l+" endpoint: "+e),_.hG(l)};
_.X.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.X.onPlaylistYtNavigate_=function(l){if(l.detail.endpoint){l.stopPropagation();var e=l.detail;e.tempData=this.getTempData_(l.detail.endpoint);_.$u(this.hostElement,"yt-navigate",e)}};
_.X.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.X.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.X.playlistLoopStateEntityChanged_=function(l){var e=this,O,E,J;return _.V(function(z){if(z.nextAddress==1){if(!l)return z.return();O=l.state==="PLAYLIST_LOOP_STATE_ONE";return e.playerManager_?_.C(z,e.playerManager_.getPlayerPromise(),3):z.jumpTo(2)}z.nextAddress!=2&&(E=z.yieldResult,E.setLoopVideo(O));J=l.state==="PLAYLIST_LOOP_STATE_ALL";e.playlistComponent&&(e.playlistComponent.loopOn=J);_.Cl(z)})};
_.X.getPlaylistLoopData_=function(l){var e,O;if(l=l==null?void 0:(e=l.playlistButtons)==null?void 0:(O=e.menuRenderer)==null?void 0:O.topLevelButtons)for(e=_.b(l),O=e.next();!O.done;O=e.next())if(O=O.value,O.playlistLoopButtonRenderer)return O.playlistLoopButtonRenderer};
_.X.getLoopStateCommand_=function(l){var e=this.getPlaylistData(),O;e=((O=this.getPlaylistLoopData_(e))==null?void 0:O.states)||[];var E;l=(E=_.I(e[l?1:2],_.e9R))==null?void 0:E.button;var J;return(J=_.I(l,_.YU))==null?void 0:J.command};
_.X.onPlayerLoopChange_=function(l){this.playlistLoopStateEntity_&&(l?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(l=this.getLoopStateCommand_(l))&&this.ytComponentBehavior.resolveCommand(l)};
_.X.onSleepTimerSettingsChanged_=function(l){this.canAutoAdvance_=l!=="End of video"};
q_.prototype.onPlaylistLoopStateEntityChanged=q_.prototype.onPlaylistLoopStateEntityChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],q_.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],q_.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],q_.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],q_.prototype,"loopStateEntityKey_",void 0);
_.L([_.T({selectorArgs:["loopStateEntityKey_"],selector:_.mqV}),_.q("design:type",Object)],q_.prototype,"playlistLoopStateEntity_",void 0);_.L([_.AA("playlistLoopStateEntity_"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],q_.prototype,"onPlaylistLoopStateEntityChanged",null);_.L([_.U({disableElementRegistration:!0,is:"yt-playlist-manager"})],q_);_.Y(q_,"yt-playlist-manager",void 0,{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var zyO,bgo=function(){if(zyO!==void 0)return zyO;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return zyO=l};var vV=function(){var l=_.B.apply(this,arguments)||this;l.lastCallback=null;l.getAccountLinkPromises={};l.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);l.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return l};
_.m(vV,_.B);_.X=vV.prototype;_.X.getLocation=function(){return window.location.href};
_.X.getCompletionUrl=function(){return _.z9(this.getLocation())};
_.X.containsRedirectState=function(l){return(l=_.sU(_.J9g(l)))?(new URLSearchParams(l)).get("redirect_state")!==null:!1};
_.X.createGalConfig=function(l,e){var O=new nDC;l=O=e?this.getPopupOrRedirectSetting(O,_.hT("LINK_API_KEY"),_.hT("LINK_API_KEY_REDIRECT"),l):aPu(O,_.hT("LINK_API_KEY"));l.authUser=_.hT("SESSION_INDEX")||0;l.supportedFlows=new Set([4]);return l.build()};
_.X.getPopupOrRedirectSetting=function(l,e,O,E){this.isGalInteractionPopupMode(E)?(l.interactionMode=0,l=aPu(l,e)):(l.interactionMode=1,e=this.getCompletionUrl(),l.completionUrl=e,l=aPu(l,O));return l};
_.X.isGalInteractionPopupMode=function(l){if(this.redirectModeProviderAllowlist.has(l))switch(l){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.X.getStatusEntityKeyForProviderId=function(l){return _.iH(l+":all","accountLinkStatusEntity")};
_.X.findNestedPropValue=function(l,e){var O=!1,E=null;JSON.stringify(l,function(J,z){O||J!==e||(O=!0,E=z);return O?null:z});
return E};
_.X.findAccountLinkButtonViewModel=function(l,e){var O=null,E=!1;JSON.stringify(l,function(J,z){E||z.accountLinkStatusEntityKey!==e||z.accountLinkStatusSecondaryEntityKey||(E=!0,O=z);return E?null:z});
return O};
_.X.executeLinkingSuccessOrFailureCommands=function(l,e,O){var E=null,J;(e==null?0:(J=e.url)==null?0:J.includes("account_sharing"))?E=e==null?void 0:e.response:E=e==null?void 0:e.response;(e=this.findAccountLinkButtonViewModel(E,l))?(l=O?this.findNestedPropValue(e,"onSuccessCommand"):this.findNestedPropValue(e,"onFailureCommand"))?_.ap([l],this.hostElement):_.Nz(Error("el")):_.Nz(Error("fl`"+l))};
_.X.handleInitializeRequest=function(l,e){var O=this,E=xrP(this.createGalConfig(l,!0));this.containsRedirectState(this.getLocation())?NA4(l,E.config,E.galService).then(function(J){var z=O.getStatusEntityKeyForProviderId(l);if(J.statusCode===1)e&&O.executeLinkingSuccessOrFailureCommands(z,e,!0),J=O.getLocation().indexOf("#"),J!==-1&&window.history.pushState(null,"",O.getLocation().substring(0,J));else return e&&O.executeLinkingSuccessOrFailureCommands(z,e,!1),Promise.reject(Error(J.statusMessage))}).catch(function(J){_.hG(J);
_.Bm("gamingAccountLinkStatusChanged",{serviceId:l,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)}):this.getAccountLinkPromises[l]=E.startLinkingSession({serviceId:l})};
_.X.handleAccountLinkCommand=function(l){_.I(l,boF)&&this.handleLinkRequest(_.I(l,boF))};
_.X.handleLinkRequest=function(l){var e=this,O=l.thirdPartyId;if(O)if(this.isGalInteractionPopupMode(O)){var E=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",l.onFailureCommand)},J=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",l.onSuccessCommand)};
this.lastCallback=J;this.getAccountLinkPromises[O].then(function(z){eHF(z).then(function(M){M.statusCode===1?J():E()})}).catch(function(){E()})}else this.getAccountLinkPromises[O].then(function(z){eHF(z).then(function(M){if(M.statusCode!==1)return Promise.reject(Error(M.statusMessage))})}).catch(function(z){_.hG(z);
_.Bm("gamingAccountLinkStatusChanged",{serviceId:O,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(z)})};
_.X.closeAndFire=function(l,e){_.Wb(this.hostElement,"yt-close-popup-action",[l]);e&&_.ap([e],this.hostElement)};
_.X.handleAccountUnlinkCommand=function(l){_.I(l,MZO)&&this.handleUnlinkRequest(_.I(l,MZO))};
_.X.handleUnlinkRequest=function(l){var e=this,O=l.thirdPartyId;if(O){var E=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",l.onFailureCommand)},J=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",l.onSuccessCommand)};
this.lastCallback=J;var z=xrP(this.createGalConfig(O,!1));this.unlinkUserGal(z,O).then(function(M){M.statusCode===1?J():E()}).catch(function(){E()})}};
_.X.unlinkUserGal=function(l,e){return l.deleteLink(e)};
_.X.handleLogAccountLinkingEventCommand=function(l){_.a("enable_gel_log_commands")&&_.I(l,VZu)&&(l=_.I(l,VZu).event)&&_.Bm("gamingAccountLinkStatusChanged",l)};
_.Ji.Object.defineProperties(vV,{template:{configurable:!0,enumerable:!0,get:function(){return bgo()}}});
_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],vV.prototype,"ytOpenPopupBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],vV.prototype,"ytActionHandlerBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-third-party-manager"})],vV);_.Y(vV,"ytd-third-party-manager",function(){return bgo()},{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var MFz,VFH=function(){return MFz!==void 0?MFz:MFz=document.createElement("template")};
document.head.appendChild(VFH().content);var Zg4,uPf=function(){if(Zg4!==void 0)return Zg4;var l=document.createElement("template");_.p(l,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");l.content.insertBefore(VFH().content.cloneNode(!0),l.content.firstChild);l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Zg4=l};var CBH=_.E9(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),N_=function(){var l=_.B.apply(this,arguments)||this;l.currentPage=void 0;l.renderLoadingStateJobId=0;l.updatePageDataJobId=0;l.pageDisposeJobsets=new WeakMap;l.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"};l.applyZoomTransition=_.oy("web_page_transition_type")==="zoom";l.applySlideTransition=_.oy("web_page_transition_type")==="slide"||_.a("enable_plj_landing_page");l.TEST_ONLY=void 0;return l};
_.m(N_,_.B);_.X=N_.prototype;_.X.ready=function(){var l=_.V2();l.addProvider({provide:_.XZ,useValue:this});l.addProvider({provide:_.keq,useValue:this})};
_.X.created=function(){this.pagePool=new RxC;this.contextSwitcher=new Nnu};
_.X.attached=function(){_.$u(this.hostElement,"attached");var l=_.V2().resolve(_.MG(_.Pc));l&&(this.contextSwitcher.JSC$17611_networkService_=l);this.viewTransitionCoordinator=_.V2().resolve(_.MG(_.VY));this.setupPageTransitionAnimation()};
_.X.getPageOffset=function(l){return l.getScrollTop()};
_.X.setPageOffset=function(l,e){try{l.setScrollTop(e)}catch(O){}};
_.X.setPageOffsetForNavigation=function(l,e){_.$u(this.hostElement,"yt-navigate-set-page-offset",{page:l,offset:e===void 0?0:e})};
_.X.pauseActiveContext=function(){var l=this.contextSwitcher;l.activeContext_&&l.activeContext_.pause()};
_.X.getModuleNameForType=function(l){return l==="watch"?_.a("kevlar_watch_fixie")?"watchFixie":_.a("kevlar_watch_grid")?"watchGrid":"watchFlexy":l==="shorts"||l==="search"?l:"browse"};
_.X.attachPage=function(l){var e,O=!_.a("pc_is_attached_ks")&&(l==null?void 0:(e=l.polymerController)==null?void 0:e.isAttached);if(!l.isAttached&&!O)try{_.ud(this.hostElement).appendChild(l)}catch(J){var E;_.hG(new _.Hk("Error attaching page element for component",{origin:(E=this.currentPage)==null?void 0:E.is,component:l.is}))}};
_.X.setActivePage=function(l){var e=this,O=!1,E=function(){var J=e.isOnWatch(),z=e.currentPage;if(l)if(l!==e.currentPage){z&&(z.hidden=!0,z.active=!1,z.removeAttribute("role"));e.currentPage=l;var M,Z=_.I4((M=e.data)==null?void 0:M.endpoint);z&&_.$u(e.hostElement,"yt-page-type-changed",{oldPageType:z.is,newPageType:l.is,newPageSubtype:Z});_.ls().dispatch(_.oM({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:l.is}));_.ls().dispatch(_.oM({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:Z||""}));l.hidden=
!1;e.attachPage(l);l.active=!0;l.setAttribute("role","main");z&&e.setPageOffsetForNavigation(l,0);_.a("kevlar_remove_page_dom_on_switch")&&!J&&z&&_.ud(e.hostElement).removeChild(z)}else O=!0;else J=new _.Hk("Unable to set active page",z?z.is:"unknown origin",(Z=e.data)==null?void 0:Z.endpoint),_.UW(J)};
this.viewTransitionCoordinator?g0F(this.viewTransitionCoordinator,E,this.viewTransitionConfigForSetActivePage(this.currentPage,l)):E();return O};
_.X.viewTransitionConfigForSetActivePage=function(l,e){return _.a("web_thumbnail_to_watch_transition")&&(l==null?void 0:l.is)==="ytd-browse"&&this.isWatchPage(e)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(l==null?void 0:l.is)==="ytd-browse"&&(e==null?void 0:e.is)==="ytd-browse"&&l!==e?this.applySlideTransition?{transitionType:"slide"}:{transitionType:"zoom"}:(l==null?void 0:l.is)!=="ytd-browse"||(e==null?void 0:e.is)!=="ytd-watch-learning-journey"&&
(e==null?void 0:e.tagName.toLowerCase())!=="ytd-watch-learning-journey"?{viewTransitionOptions:{shouldWrap:!1}}:{transitionType:"learning-journey"}};
_.X.updatePageData=function(l){var e=this,O=this.data;this.updatePageDataJobId&&_.UD.cancelJob(this.updatePageDataJobId);this.data=l;return new _.kE(function(E){var J=function(){l.filler?e.performDataUpdate(l,O):TP3(function(){e.performDataUpdate(l,O)});
var u=_.h7();_.L6(u,"cr")||u.processSignal("cr");E()},z=function(){l&&l.page==="watch"?e.updatePageDataJobId=_.pT(_.UD,J):J()};
if(_.a("kevlar_enable_mss_page_modules_client")&&l){var M=_.V2().resolve(_.DL),Z=e.getModuleNameForType(l.page);(M=n0z(M,[Z]))?M.then(z):z()}else z()})};
_.X.isDownloadsPage=function(l){var e,O;return(l==null?void 0:(e=l.endpoint)==null?void 0:(O=e.browseEndpoint)==null?void 0:O.browseId)==="FEdownloads"};
_.X.setPlayerSyncInterval=function(l){var e;return _.V(function(O){if(O.nextAddress==1)return _.C(O,_.V2().resolve(_.CT),2);e=O.yieldResult;e.setUpPositionSyncInterval(l);_.Cl(O)})};
_.X.performDataUpdate=function(l,e){_.a("kevlar_early_popup_close")||_.Wb(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var O=!l.filler;O&&(_.Yu("lps"),_.a("config_age_report_killswitch")||$xF());var E=E4(l),J,z=!1;if(_.a("kevlar_remove_page_dom_on_switch")){var M=e&&E4(e);E===M&&(J=this.getCurrentPage())}J||(J=sy(this.pagePool,E));O&&BPH(this.pagePool.elementPoolPopulator,E);O&&!this.renderLoadingStateJobId&&(z=this.setActivePage(J));if(J){M=E==="watch";var Z=
E==="shorts",u=E==="learning_journey_watch";_.a("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(J);if(M||Z||u)J.playerData=l.playerResponse;if(Z){l.reelWatchSequenceResponse?J.reelWatchSequenceResponse=l.reelWatchSequenceResponse:l.cachedReelWatchSequenceResponse?J.reelWatchSequenceResponse=l.cachedReelWatchSequenceResponse:_.a("web_enable_cached_reel_sequence_fix")&&J.cachedReelWatchSequenceResponse&&!J.reelWatchSequenceResponse&&(J.reelWatchSequenceResponse=J.cachedReelWatchSequenceResponse);
J.currentEndpoint=l.endpoint;var d;J.isPreviousPageShorts=!!(e==null?0:(d=e.endpoint)==null?0:d.reelWatchEndpoint);l.cachedReelWatchSequenceResponse=l.reelWatchSequenceResponse||l.cachedReelWatchSequenceResponse||(e==null?void 0:e.cachedReelWatchSequenceResponse);J.cachedReelWatchSequenceResponse=l.cachedReelWatchSequenceResponse}d=this.isDownloadsPage(l);var g=this.isDownloadsPage(e);d&&!g?this.setPlayerSyncInterval(6E5):!d&&g&&this.setPlayerSyncInterval();_.a("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(l,J,O,M,Z,u);au3(_.V2().resolve(_.NJ),e,l);_.ef(_.V2().resolve(_.BF));_.a("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(J);O?(O=typeof J.loadPage,O==="function"?(J.pageContext=r7F(this.contextSwitcher,J,J.data!==l.response),O=function(){J.loadPage(l.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionCoordinator&&J.is==="ytd-browse"&&z&&(E==="learning"||this.isDifferentBrowseId(l==null?void 0:l.endpoint,
e==null?void 0:e.endpoint))?this.applySlideTransition?g0F(this.viewTransitionCoordinator,O,{transitionType:"slide"}):g0F(this.viewTransitionCoordinator,O,{transitionType:"zoom"}):O()):_.YE(new _.Hk("b/38014653 ",[E,
J.is,J.nodeName,O,J.isAttached,e&&E4(e),this.hostElement.children.length])),_.Yu("pdl")):(J.hidden=!0,l.response.filler=!0,J.data=l.response,this.attachPage(J));_.$u(this.hostElement,"yt-page-data-updated",{pageType:E})}_.fZ(_.UD,function(){_.a("logging_avoid_blocking_during_navigation")&&_.SVW().transition("none");var w=ZQP(),n=J;if(l){var k=LuO(l),y=tHF(l),c;a:{if(l.playerResponse){var f=l.playerResponse,P;if((c=f.auxiliaryUi)==null?0:(P=c.messageRenderers)==null?0:P.upsellDialogRenderer){c=f.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(l.response&&(c=l.response,(f=c.overlay)==null?0:f.upsellDialogRenderer)){c=c.overlay.upsellDialogRenderer;break a}c=void 0}var h;var N;P=(h=l.playerResponse)==null?void 0:(N=h.auxiliaryUi)==null?void 0:N.messageRenderers;h=(P==null?void 0:P.enforcementMessageViewModel)||(P==null?void 0:P.bkaEnforcementMessageViewModel);h=(h==null?void 0:h.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?h:void 0;var t;a:{if(l.response&&(N=l.response,(t=N.overlay)==null?0:t.commandWrapperPromoRenderer)){t=
N.overlay.commandWrapperPromoRenderer;break a}t=void 0}VQh(w,k,y,c,h,t,n)}})};
_.X.preparePrefetchRequest=function(l,e,O,E,J,z){var M,Z,u,d,g,w,n,k,y,c,f,P,h,N,t;return _.V(function(r){if(r.nextAddress==1)return!O||!(E||J||z)||_.a("kevlar_disable_background_prefetch")&&_.qz(_.L2t)()===0?r.return():(M=_.zn(e))?_.C(r,M.getPlayerPromise(),2):r.return();Z=r.yieldResult;u=_.V2().resolve(_.MG(_.Pc));if(!u)return r.return();if(J)return d=_.$x(_.pQ),qVh(d,(g=l.endpoint)==null?void 0:g.reelWatchEndpoint,e.reelWatchSequenceResponse,Z,u),r.return();k=(w=l.response)==null?void 0:(n=w.responseContext)==
null?void 0:n.webResponseContextExtensionData;if(!k)return r.return();h=(y=l.response)==null?void 0:(c=y.contents)==null?void 0:(f=c.twoColumnWatchNextResults)==null?void 0:(P=f.autoplay)==null?void 0:P.autoplay;N=_.V2().resolve(_.U5);t=_.$x(_.pQ);vTh(t,k,Z,u,N,h);_.Cl(r)})};
_.X.movePlayerToWatch=function(l){var e=this,O,E;return _.V(function(J){O=sy(e.pagePool,"watch");E=O.getPlayerContainer();l.appendTo(E);_.Cl(J)})};
_.X.movePlayerToShorts=function(l){var e=this,O,E,J;return _.V(function(z){O=sy(e.pagePool,"shorts");E=O.getPlayerContainer();(J=l)==null||J.appendTo(E,void 0,!0);_.Cl(z)})};
_.X.getPlayerFromWatch=function(){var l=sy(this.pagePool,"watch");return _.zn(l)};
_.X.getPlayerFromShorts=function(){var l=sy(this.pagePool,"shorts");return _.zn(l)};
_.X.startLoadingWatch=function(){var l=sy(this.pagePool,"watch");this.renderLoadingStateJobId?(_.UD.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(l)};
_.X.startLoadingShorts=function(){var l=sy(this.pagePool,"shorts");this.setActivePage(l)};
_.X.startLoadingLearningJourney=function(){var l=sy(this.pagePool,"learning_journey_watch");this.setActivePage(l)};
_.X.getCurrentPage=function(){return this.currentPage};
_.X.getDestinationPageType=function(){return this.destinationPageType};
_.X.getCurrentData=function(){return this.data};
_.X.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.X.isOnShorts=function(){var l;return((l=this.currentPage)==null?void 0:l.is)==="ytd-shorts"};
_.X.isWatchPage=function(l){return!!l&&(l.is==="ytd-watch-flexy"||l.is==="ytd-watch-fixie"||l.is==="ytd-watch-grid")};
_.X.preparePage=function(l,e){var O=this,E=function(){var M=O.pagePool.preparePage(l,O.currentPage,e);M&&O.attachPage(M)},J=function(M){_.LZ(M,e);
_.hG(M)};
if(_.a("kevlar_enable_mss_page_modules_client")){var z=this.getModuleNameForType(l);if(z=n0z(_.V2().resolve(_.DL),[z])){z.then(E.bind(this)).catch(J.bind(this));return}}try{E()}catch(M){J(M)}};
_.X.lazyPrepareCriticalPages=function(l,e){l=_.I4(e)||l;_.a("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(l).then(this.maybePrepareWatchPage.bind(this,l)):this.maybePrepareWatchPage(l)};
_.X.maybePrepareWatchPage=function(l){l!=="watch"&&_.fZ(_.UD,this.preparePage.bind(this,"watch"))};
_.X.downloadPageModules=function(l){l=this.getModuleNameForType(l);var e=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);e.delete(l);var O=_.V2().resolve(_.DL);O.JSC$16373_loadModules(l);return O.JSC$16373_loadModules.apply(O,_.kA(e))};
_.X.renderPageLoadingState=function(l,e){this.preparePage(l,e);var O=sy(this.pagePool,l);O.loadingData&&(O.loadingData.endpoint=e);O.loading=!0;this.setActivePage(O);l!=="watch"&&l!=="learning_journey_watch"||_.$u(this.hostElement,"yt-guide-close")};
_.X.prepareForNavigation=function(l,e){var O=this;if(this.currentPage&&this.data){var E=_.I4(e)||l;this.destinationPageType=E;E4(this.data)==E&&_.$u(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((l==="watch"||l==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.UD.cancelJob(this.renderLoadingStateJobId);_.V2().resolve(_.NJ).deactivate(e);var J=this.data;this.renderLoadingStateJobId=_.RK(_.UD,function(){if(O.data!=
J){var z=sy(O.pagePool,l);O.setActivePage(z)}else O.renderPageLoadingState(l,e);O.renderLoadingStateJobId=0},150)}};
_.X.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var l=new _.bB(1);this.currentPage.pageDisposeJobs.forEach(function(e){_.Me(l,e)});
this.pageDisposeJobsets.set(this.currentPage,l)}};
_.X.flushPageDisposeJobset=function(l){var e=this.pageDisposeJobsets.get(l);e&&(e.flushJobs(),this.pageDisposeJobsets.delete(l))};
_.X.onYtStopOldPlayer=function(l,e){e=e===void 0?!1:e;var O,E=_.$6("kevlar_new_stop_old_player_logic_pages");if(_.a("kevlar_check_current_page_on_stop_old_player")&&(E.length===0||this.currentPage&&E.includes(this.currentPage.is)))if(this.data&&(O=E4(this.data)),E4(l)===O&&this.currentPage&&E4(this.currentPage.data)!==O)var J=_.zn(this.currentPage);else O=E4(this.data),J=sy(this.pagePool,O),J=_.zn(J);else this.data&&(O=E4(this.data),J=sy(this.pagePool,O),J=_.zn(J));if(J)if(l=E4(l),E=sy(this.pagePool,
l),E=_.zn(E),J==E)e&&!_.a("kevlar_disable_preemptive_player_reset")&&J.resetForNewPlayback();else if(e=O==="watch"&&l!=="watch",!e||l==="shorts"||_.hyC()&&!M7P(this.data)&&l!=="yts-products"&&l!="mini_app"&&l!="playables")O=_.V2().resolve(_.NJ),e&&O.isMiniplayerActive()&&O.pipController.getWindow()||J.stop()};
_.X.setupPageTransitionAnimation=function(){var l=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionCoordinator){QJ(this.viewTransitionCoordinator,"slide",{beforeTransition:function(){l.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){l.hostElement.style.viewTransitionName=""}});
QJ(this.viewTransitionCoordinator,"zoom",{beforeTransition:function(){l.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){l.hostElement.style.viewTransitionName=""}});
var e=_.Cv("web_page_transition_exit_ms"),O=_.Cv("web_page_transition_wait_ms"),E=_.Cv("web_page_transition_enter_ms");if(!isNaN(e)||!isNaN(O)||!isNaN(E))if(e=WWf(CBH,e,O,E))O=document.createElement("style"),O.textContent=_.IVp(e),document.head.appendChild(O)}};
_.X.isDifferentBrowseId=function(l,e){l=_.I(l,_.ms);e=_.I(e,_.ms);return(l==null?void 0:l.browseId)!==(e==null?void 0:e.browseId)};
_.Ji.Object.defineProperties(N_,{template:{configurable:!0,enumerable:!0,get:function(){return uPf()}}});
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-page-manager"})],N_);_.Y(N_,"ytd-page-manager",function(){return uPf()},{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var rO=function(l,e,O){O=O===void 0?!1:O;_.y6.call(this);this.draggableElement=l;this.callbacks=e;this.allowClicks=O;this.dragOccurred=!1;this.internalDragger=new _.h6(this.draggableElement);this.dragDelay=new _.be(this.delayedDrag.bind(this));o8z(this);this.allowClicks&&(_.xaC(this.internalDragger,5),l.addEventListener("click",_.id(this,this.validateClick),{capture:!0}))};
_.m(rO,_.y6);var o8z=function(l){_.f4(l.internalDragger,"earlycancel",function(){l.allowClicks&&(l.dragOccurred=!1)});
_.f4(l.internalDragger,"start",function(e){var O,E;(E=(O=l.callbacks).onStartDrag)==null||E.call(O,e);!e.defaultPrevented&&l.allowClicks&&(l.dragOccurred=!0)});
_.f4(l.internalDragger,"beforedrag",function(e){e.preventDefault();l.lastOffset=new _.KF(e.clientX-l.internalDragger.startX,e.clientY-l.internalDragger.startY);l.dragDelay.start()});
_.f4(l.internalDragger,"end",function(){l.dragDelay.stop();var e,O;(O=(e=l.callbacks).onEndDrag)==null||O.call(e);l.lastOffset=void 0})};
rO.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
rO.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.id(this,this.validateClick),{capture:!0})};
rO.prototype.validateClick=function(l){this.dragOccurred&&(this.dragOccurred=!1,l.stopPropagation(),l.preventDefault())};var Dd=function(l,e){_.y6.call(this);this.JSC$17812_resizeContainer=l;this.callbacks=e;this.aspectRatio=16/9;this.JSC$17812_resizers=[];l=_.b(this.JSC$17812_resizeContainer.children);for(e=l.next();!e.done;e=l.next())$e3(this,e.value)};
_.m(Dd,_.y6);Dd.prototype.disposeInternal=function(){for(var l=_.b(this.JSC$17812_resizers),e=l.next();!e.done;e=l.next())e.value.dispose();l=_.b(this.JSC$17812_resizeContainer.children);for(e=l.next();!e.done;e=l.next())e.value.setAttribute("disabled","");this.JSC$17812_resizers.length=0};
Dd.prototype.setSize=function(l){this.currentMiniplayerSize=l};
Dd.prototype.setAspectRatio=function(l){this.aspectRatio=l};
Dd.prototype.update=function(l,e){for(var O=_.b(this.JSC$17812_resizeContainer.children),E=O.next();!E.done;E=O.next()){E=E.value;var J=E.getAttribute("alignment");_.$T(E,"disabled",J===l||J===e)}};
var $e3=function(l,e){var O=e.getAttribute("alignment"),E=new rO(e,{onStartDrag:function(J){if(e.hasAttribute("disabled"))J.preventDefault();else{l.dragStartSize=l.currentMiniplayerSize;var z,M;(M=(z=l.callbacks).onStartResize)==null||M.call(z)}},
onDrag:function(J){if(l.dragStartSize){O!=="north"&&O!=="west"||J.scale(-1);var z=O==="north"||O==="south";J=z?J.y:J.x;z&&l.aspectRatio>=1?J*=l.aspectRatio:!z&&l.aspectRatio<1&&(J/=l.aspectRatio);l.callbacks.onResize(l.dragStartSize+J)}}});
l.JSC$17812_resizers.push(E)};var W8f,dez=function(){return W8f!==void 0?W8f:W8f=document.createElement("template")};
document.head.appendChild(dez().content);var g83;var igP=_.XO(function(l){var e=_.e4("yt-draggable"),O=l.onDrag,E=l.onDragStart,J=l.onDragEnd,z=_.J3(l,{allowClicks:!1,dragThreshold:5}),M=z.dragThreshold,Z=z.allowClicks;l=z.children;z=z.className;var u=void 0,d=void 0,g=new _.KF(0,0),w=!1;_.sC(function(){u=new _.h6(e.value);d=new _.be(k);n(u,d);if(Z()){_.xaC(u,M());var c;(c=e.value)==null||c.addEventListener("click",y,{capture:!0})}_.B3(function(){var f;(f=u)==null||f.dispose();if(Z()){var P;(P=e.value)==null||P.removeEventListener("click",y,{capture:!0})}})});
var n=function(c,f){_.f4(c,"earlycancel",function(){Z()&&(w=!1)});
_.f4(c,"start",function(P){E==null||E(P);P.defaultPrevented||Z()&&(w=!0)});
_.f4(c,"beforedrag",function(P){u&&d&&(P.preventDefault(),g=new _.KF(P.clientX-u.startX,P.clientY-u.startY),d.start())});
_.f4(c,"end",function(){f.stop();J==null||J();g=new _.KF(0,0)})},k=function(){g&&O(g)},y=function(c){w&&(w=!1,c.stopPropagation(),c.preventDefault())};
return _.W("yt-draggable",{el:e,class:_.ax("ytDraggableComponentHost",z)},l)},"ng");var wuz=_.XO(function(l){var e=_.b(_.AF(0,void 0,"CvAwBd")),O=e.next().value,E=e.next().value;e=function(J){var z={},M={};return _.W(igP,{className:_.ax("ytdMiniplayerComponentResizer",(z.ytdMiniplayerComponentResizerDisabled=function(){return J===l.horizontalAlignment()||J===l.verticalAlignment()},z.ytdMiniplayerComponentResizerNorth=J==="north",z.ytdMiniplayerComponentResizerEast=J==="east",z.ytdMiniplayerComponentResizerSouth=J==="south",z.ytdMiniplayerComponentResizerWest=J==="west",z)),
onDragStart:function(){E(l.currentMiniplayerSize());if(l.onResizeStart)l.onResizeStart()},
onDrag:function(Z){J!=="north"&&J!=="west"||Z.scale(-1);var u;Z=(u=J==="north"||J==="south")?Z.y:Z.x;var d=l.currentAspectRatio();u&&d>=1?Z*=d:!u&&d<1&&(Z/=d);u=Z;l.onResize(O()+u)}},_.W("div",{class:_.ax("ytdMiniplayerComponentResizerCorner",(M.ytdMiniplayerComponentResizerNorthCorner=J==="north",M.ytdMiniplayerComponentResizerEastCorner=J==="east",M.ytdMiniplayerComponentResizerSouthCorner=J==="south",M.ytdMiniplayerComponentResizerWestCorner=J==="west",M))}))};
return _.W("div",{class:"ytdMiniplayerComponentResizers"},e("north"),e("east"),e("south"),e("west"))},"og");var AbH=16/9,n84=_.XO(function(){var l=_.e4("ytd-miniplayer"),e=_.b(_.AF(new _.uX(NaN,NaN),void 0,"YeKki")),O=e.next().value,E=e.next().value;e=_.b(_.AF(!1,void 0,"DcXgUd"));var J=e.next().value,z=e.next().value;e=_.b(_.AF(!1,void 0,"aDeXOc"));var M=e.next().value,Z=e.next().value;e=_.b(_.AF(!1,void 0,"JpZfjb"));var u=e.next().value,d=e.next().value;e=_.b(_.AF(!1,void 0,"EmCWpc"));var g=e.next().value,w=e.next().value;e=_.b(_.AF(!1,void 0,"ovvtt"));var n=e.next().value,k=e.next().value;e=_.b(_.AF(!1,
void 0,"wPIoNd"));var y=e.next().value,c=e.next().value;e=_.b(_.AF(AbH,void 0,"AmisJf"));var f=e.next().value,P=e.next().value,h=_.b(_.AF(!1,void 0,"uNKP1c"));e=h.next().value;var N=h.next().value;h=_.b(_.AF(!1,void 0,"n9hvIf"));var t=h.next().value,r=h.next().value;h=_.b(_.AF(void 0,void 0,"Sjx4Dc"));var D=h.next().value,b2=h.next().value;h=_.b(_.AF(_.hT("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var $V=h.next().value,gT=h.next().value;h=_.b(_.AF("south",void 0,"jyzxy"));var mx=h.next().value,
jM=h.next().value;h=_.b(_.AF(400,void 0,"JFUs2d"));var cx=h.next().value,tq=h.next().value,Px=_.V2().resolve(_.NJ).miniplayerPropSignalMap[0],S0=Px.data,QH=Px.externalPlaylistData;h=Px.toastData;var pR=Px.playabilityStatus,oq=Px.isReadyToResume,ZS=Px.isDisabled,Ou=Px.watchWhile,uq=Px.playerVe,ZV=Px.expandVe,jO=Px.closeVe,V8=Px.readyToResumeVe,AC=Px.readyToResumeCloseVe,Fk=Px.repositionVe,tu=Px.resizeVe;Px=_.b(_.jN(oq));var kq=Px.next().value,Ni=Px.next().value,YA=!1,v6=!1,Xk;_.sC(function(){E(_.K0());
l.value.addEventListener("animationend",function(Yq){Yq.target===l.value&&(k(!1),c(!1))});
ou4(l.value)});
_.lg("yt-window-resized",function(Yq){Yq&&E(Yq)});
var P6=function(){Xk&&P(Xk.getVideoAspectRatio())},wf=function(){if(Xk){var Yq=Xk.getPlayerState()===1;
kq()&&Yq&&Ni(!1)}},w1=function(){var Yq=ZV();
if(Yq){var mH=_.P9(3);mH&&_.On(mH,Yq)}},KR=function(){var Yq=jO(),mH=AC();
Yq&&_.On(_.P9(3),Yq);oq()&&mH&&_.On(_.P9(3),mH)};
_.lg("yt-activate-miniplayer",function(Yq){var mH;return _.V(function(QC){if(QC.nextAddress==1)return J()?QC.return():_.C(QC,(mH=_.V2().resolve(_.NJ).getPlayerElement())==null?void 0:mH.getPlayerPromise(),2);Xk=QC.yieldResult;if(!Xk)return QC.return();!t()&&_.a("kevlar_watch_while_v2")&&(jM(Yq&&!_.a("kevlar_watch_while_bottom_align")?"north":"south"),gT(_.hT("HTML_DIR")==="rtl"?"west":"east"));var Ap=Xk;Ap.addEventListener("onVideoDataChange",P6);Ap.addEventListener("onStateChange",wf);Ap.addEventListener("onExpandMiniplayer",
w1);Ap.addEventListener("onCloseMiniplayer",KR);P(Xk.getVideoAspectRatio());z(!0);Ci0()||k(!0);_.Cl(QC)})});
_.lg("yt-deactivate-miniplayer",function(Yq){return _.V(function(mH){if(!J())return mH.return();z(!1);Ni(!1);c(Yq);w(!1);Z(!1);if(Xk){var QC=Xk;QC.removeEventListener("onVideoDataChange",P6);QC.removeEventListener("onStateChange",wf);QC.removeEventListener("onExpandMiniplayer",w1);QC.removeEventListener("onCloseMiniplayer",KR)}Ci0()||k(!0);_.Cl(mH)})});
var CP=function(){return!(Ou()&&_.a("kevlar_watch_while_modern"))},z1=function(){var Yq;
return!((Yq=QH())==null||!Yq.contents)},bz=function(){var Yq=cx();
var mH=O();mH=Math.min(Math.min(mH.width,mH.height)-32,720);var QC=f(),Ap=CP(),V5=z1()&&M(),Tq=Math.min(Yq,mH);Yq=new _.uX(192,Ap?116:192);QC=qmC(new _.uX(V5?AbH:QC,1),new _.uX(Tq,Ap?Tq-76:Tq));Yq.width<=QC.width&&Yq.height<=QC.height||(tTu(QC,Yq),QC.width=Math.min(QC.width,mH),QC.height=Math.min(QC.height,mH));return new _.uX(QC.width,_.hc(192,QC.height+izH(Ap,V5),720))},wp=function(){var Yq=bz(),mH=CP(),QC=z1()&&M();
return new _.uX(Yq.width,Yq.height-izH(mH,QC))},ti=function(){var Yq=function(mH){mH.target===l.value&&g()&&(w(!1),l.value.removeEventListener("transitionend",Yq))};
Ci0()||(l.value.addEventListener("transitionend",Yq),w(!0));Z(!M())};
_.Gh(function(){var Yq=uq(),mH=_.P9(3),QC=_.B9(3);if(mH&&QC&&Yq){_.DG(mH,QC,Yq);QC=Fk();var Ap=tu(),V5=ZV(),Tq=jO(),lt=AC();V5&&Tq&&lt&&(_.Sj(mH,Yq,[V5,Tq,lt]),_.xu(mH,[V5,Tq]));QC&&Ap&&_.Sj(mH,Yq,[QC,Ap])}},"yiTJkc");
_.Gh(function(){var Yq=V8();if(Yq){var mH=_.P9(0),QC=_.B9(0);mH&&QC&&(_.DG(mH,QC,Yq),_.xu(mH,[Yq]))}},"fy89qe");
Px={};return _.W("ytd-miniplayer",{el:l,class:_.ax("ytdMiniplayerComponentHost",(Px.ytdMiniplayerComponentVisible=function(){return J()||n()},Px.ytdMiniplayerComponentAnimatingSnap=u,Px.ytdMiniplayerComponentAnimatingPlaylistExpand=g,Px.ytdMiniplayerComponentAnimatingFade=n,Px),function(){if(n()){var Yq=mx();
var mH=J(),QC=y();Yq=mH?Yq==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":QC?Yq==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Yq==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Yq="";return Yq}),
style:_.HF({top:function(){return mx()==="north"?"16px":""},
right:function(){return $V()==="east"?"16px":""},
bottom:function(){return mx()==="south"?"16px":""},
left:function(){return $V()==="west"?"16px":""},
width:function(){return bz().width+"px"},
height:function(){return bz().height+"px"},
transform:function(){var Yq=D();return Yq?"translate("+Yq.x+"px, "+Yq.y+"px)":""}})},_.W("div",{class:"ytdMiniplayerComponentContent"},_.W(igP,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Yq){var mH=gui($V(),mx(),O(),bz(),D()),QC=wp();Math.abs(Yq.clientY-(mH.y+QC.height))>15?(N(!0),Yq=_.P9(3),mH=Fk(),YA||(YA=!0,Yq&&mH&&_.xu(Yq,[mH])),Yq&&mH&&_.On(Yq,mH)):Yq.preventDefault()},
onDrag:function(Yq){b2(Yq)},
onDragEnd:function(){var Yq=$9C(gui($V(),mx(),O(),bz(),D()),O(),bz()),mH=d9P($V(),mx(),O(),bz()),QC=d9P(Yq.horizontalAlignment,Yq.verticalAlignment,O(),bz());QC=new _.KF(QC.x-mH.x,QC.y-mH.y);var Ap;mH=mH.y+(((Ap=D())==null?void 0:Ap.y)||0)+bz().height/2;var V5=function(){$V()===Yq.horizontalAlignment&&mx()===Yq.verticalAlignment||r(!0);gT(Yq.horizontalAlignment);jM(Yq.verticalAlignment);b2(void 0)},Tq=function(lt){lt.target===l.value&&u()&&(d(!1),V5(),l.value.removeEventListener("transitionend",Tq))};
N(!1);mx()==="south"&&mH>O().height?(V5(),_.V2().resolve(_.NJ).close()):(l.value.addEventListener("transitionend",Tq),d(!0),b2(QC))}},_.W(_.A,{cond:J,
then:function(){return _.W(_.IOu,{isDisabled:ZS,playabilityStatus:pR,size:wp})}}),_.W(_.A,{cond:CP,
then:function(){return _.W(_.aOO,{isReadyToResume:kq,data:S0,expanded:M,onExpandClick:ti,playlistData:QH})}}),_.W(_.A,{cond:e,
then:function(){return _.W("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.W(_.A,{cond:function(){return z1()&&M()||g()},
then:function(){return _.W(_.vFF,{className:"ytdMiniplayerComponentPlaylistPanel",data:QH,hideHeaderText:!0,withinMiniplayer:!0})}}),_.W("div",{class:"ytdMiniplayerComponentToast"},_.W(_.moi,{toastData:h}))),_.W(wuz,{onResize:function(Yq){tq(_.hc(192,Yq,720))},
onResizeStart:function(){var Yq=_.P9(3),mH=tu();v6||(v6=!0,Yq&&mH&&_.xu(Yq,[mH]));Yq&&mH&&_.On(Yq,mH)},
currentAspectRatio:f,currentMiniplayerSize:cx,horizontalAlignment:$V,verticalAlignment:mx}))},"pg");_.a("ytd_miniplayer_to_wiz")&&_.Zw(n84,"ytd-miniplayer",{});_.Zw(_.moi,"ytd-miniplayer-toast",{props:{toastData:_.lB}});var aH3=16/9,kHf=new _.uX(400,400/aH3),Sm=function(){var l=_.B.apply(this,arguments)||this;l.active=!1;l.hasNoData=!1;l.enabled=!1;l.expanded=!1;l.readyToResume=!1;l.isDisabled=!1;l.externalPlaylistData={};l.premiumBadges=[];l.watchWhile=!1;l.playerState=null;l.verticalAttachment="south";l.horizontalAttachment=_.hT("HTML_DIR")==="rtl"?"west":"east";l.isAnimatingFade=!1;l.isAnimatingSnap=!1;l.isAnimatingExpand=!1;l.isDragging=!1;l.playerHidden=!1;l.hasPlaylistData=!1;l.closed=!1;l.expandedClosed=!1;
l.isForReadyToResume=!1;l.watchResponse=null;l.player=null;l.playerVe=null;l.expandVe=null;l.closeVe=null;l.readyToResumeCloseVe=null;l.disabledInitialStateIsPlaying=!1;l.PLAYER_EVENTS=new Map;l.aspectRatio=aH3;l.currentMiniplayerSize=400;l.userSetSize=!1;l.userSetPosition=!1;l.userHasDragged=!1;l.maxMiniplayerSize=720;l.transform=new _.KF(0,0);l.windowDimensions=new _.uX(NaN,NaN);l.dimensions=kHf;l.screenLayer=3;l.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return l};
_.m(Sm,_.B);_.X=Sm.prototype;_.X.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.X.ready=function(){this.setUpDragging();this.setUpResizing()};
_.X.attached=function(){this.onWindowResized(_.K0());this.hostElement.addEventListener("animationend",_.id(this,this.resetFadingAnimation))};
_.X.detached=function(){this.hostElement.removeEventListener("animationend",_.id(this,this.resetFadingAnimation))};
_.X.resetFadingAnimation=function(l){l.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.X.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.X.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.X.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var l=_.P9(this.screenLayer);this.readyToResumeCloseVe&&l&&_.xu(l,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.X.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var l=_.P9(0),e=_.B9(0);l&&e&&(_.DG(l,e,this.readyToResumeVe),_.xu(l,[this.readyToResumeVe]))}};
_.X.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var l=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=l===-1||l===1||l===3)&&this.player.pauseVideo()}};
_.X.activate=function(l,e){e=e===void 0?!1:e;var O=this,E;return _.V(function(J){if(J.nextAddress==1)return O.setInitialActivatePositioning(e),O.enabled=!0,O.active=!0,O.expanded=!1,O.closed=!1,O.expandedClosed=!1,O.watchWhileHidden||(O.isAnimatingFade=!0),_.V2().resolve(_.U5).setPlaylistComponent(O.JSC$17823_playlistPanel),l.appendTo(O.playerContainer),_.C(J,l.getPlayerPromise(),2);E=J.yieldResult;E.setSizeStyle(!1,!0);O.ytPlayerListenerBehavior.listenToPlayerEvents(E,O.PLAYER_EVENTS);O.player=E;
O.watchWhile&&_.a("kevlar_watch_while_minimum_size")&&O.setMiniplayerSize(192);O.setAspectRatio(O.player.getVideoAspectRatio());O.onIsDisabledChanged();_.Cl(J)})};
_.X.setInitialActivatePositioning=function(l){if(!this.userSetPosition&&_.a("kevlar_watch_while_v2")){this.verticalAttachment=l&&!_.a("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.hT("HTML_DIR")==="rtl"?"west":"east";var e;(e=this.JSC$17823_resizers)==null||e.update(this.horizontalAttachment,this.verticalAttachment)}};
_.X.deactivate=function(l,e){var O=this;return _.V(function(E){if(!O.active)return E.return();l||(O.expanded?O.expandedClosed=!0:O.closed=!0);O.active=!1;O.isForReadyToResume=!1;e&&_.a("kevlar_watch_while_counterfactual")||(O.isAnimatingFade=!0);O.player&&O.ytPlayerListenerBehavior.unlistenFromPlayerEvents(O.player,O.PLAYER_EVENTS);O.player=null;_.Cl(E)})};
_.X.onMetadataTap=function(l){this.expandVe&&(l===void 0||l)&&(l=_.P9(this.screenLayer))&&_.On(l,this.expandVe);_.ab(_.V2().resolve(_.NJ))};
_.X.onDisabledTap=function(l){l.target===_.ud(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.X.onPlaylistExpandTap=function(l){if(this.hasPlaylistData){l=_.ey(l)||[];l=_.b(l);for(var e=l.next();!e.done;e=l.next()){e=e.value;if(e===this.hostElement)break;if(e.classList&&e.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.X.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.id(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.X.animatedResizePlaylist=function(l){l.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.id(this,this.animatedResizePlaylist)))};
_.X.getExpandIcon=function(l){return l?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.X.onPlayerVideoDataChange=function(){var l,e=(l=this.player)==null?void 0:l.getVideoAspectRatio();e&&e!==this.aspectRatio&&this.setAspectRatio(e)};
_.X.setAspectRatio=function(l){if(this.active){this.aspectRatio=l;this.updateDimensionsAndResize();var e;(e=this.JSC$17823_resizers)==null||e.setAspectRatio(l)}};
_.X.updateDimensionsAndResize=function(){var l=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),e=this.expanded?aH3:this.aspectRatio,O=new _.uX(192,this.showInfoBar?116:192);l=qmC(new _.uX(e,1),new _.uX(l,this.showInfoBar?l-76:l));O.width<=l.width&&O.height<=l.height||(tTu(l,O),l.width=Math.min(l.width,this.maxMiniplayerSize),l.height=Math.min(l.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&e<=1?Math.max(l.width,l.height)+76:Math.max(l.width,l.height)));this.dimensions=
new _.uX(l.width,this.clamp(l.height+this.getNonPlayerHeight()));this.resize()};
_.X.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var l=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=l.height+"px";var e;(e=this.player)==null||e.setInternalSize(l.width,l.height)};
_.X.getPlayerSize=function(l){var e=Math.max(0,l.height-this.getNonPlayerHeight());return new _.uX(l.width,e)};
_.X.getNonPlayerHeight=function(){var l=0;this.showInfoBar&&(l+=76);this.expanded&&(l+=285);return l};
_.X.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.V2().resolve(_.NJ).close()};
_.X.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.X.logClosingClick=function(){this.closeVe&&_.On(_.P9(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.On(_.P9(this.screenLayer),this.readyToResumeCloseVe)};
_.X.onPlayerExpandMiniplayer=function(){if(this.expandVe){var l=_.P9(this.screenLayer);l&&_.On(l,this.expandVe)}};
_.X.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var l=this.playerState===1;this.continueWatching&&l&&(this.continueWatching=!1);this.premiumBadges.length&&l&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.X.getScreenLayer=function(){return this.screenLayer};
_.X.logMiniplayer=function(){var l=_.P9(this.screenLayer),e=_.B9(this.screenLayer);l&&e&&this.playerVe&&(_.DG(l,e,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.Sj(l,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.xu(l,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.Sj(l,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.X.computePlaylistData=function(l,e){return e};
_.X.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.X.computeExpandButtonHidden=function(l,e,O){return!l||!e||O};
_.X.computePlaylistIndexHidden=function(l,e){return!l||e};
_.X.computePlaylistPanelHidden=function(l,e){return!e&&!l};
_.X.computeExpandButtonLabel=function(l){return l?_.ml("MINIPLAYER_COLLAPSE_LABEL"):_.ml("MINIPLAYER_EXPAND_LABEL")};
_.X.computeDisabledStateCloseButtonLabel=function(){return _.ml("MINIPLAYER_CLOSE",void 0,"Close")};
_.X.onWindowResized=function(l){l&&(l=this.windowDimensions=l,this.maxMiniplayerSize=Math.min(Math.min(l.width,l.height)-32,720),this.updateDimensionsAndResize())};
_.X.setUpResizing=function(){var l=this;this.JSC$17823_resizers||(this.JSC$17823_resizers=new Dd(this.JSC$17823_resizeContainer,{onStartResize:function(){l.handleResizeStart()},
onResize:function(e){l.handleResize(e)}}),this.JSC$17823_resizers.setSize(this.currentMiniplayerSize),this.JSC$17823_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.X.handleResizeStart=function(){var l=_.P9(this.screenLayer);this.userSetSize||(this.userSetSize=!0,l&&this.resizeVe&&_.xu(l,[this.resizeVe]));l&&this.resizeVe&&_.On(l,this.resizeVe)};
_.X.handleResize=function(l){this.setMiniplayerSize(l);this.updateDimensionsAndResize()};
_.X.setUpDragging=function(){var l=this;this.JSC$17823_dragger||(this.JSC$17823_dragger=new rO(this.draggableContainer,{onStartDrag:function(e){!l.isSafeToDrag(e)||l.isAnimatingSnap?e.preventDefault():l.handleDragStart()},
onDrag:function(e){l.transform=e;l.setTransform(l.transform)},
onEndDrag:function(){l.handleDragEnd()}},!0))};
_.X.handleDragStart=function(){this.isDragging=!0;var l=_.P9(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,l&&this.repositionVe&&_.xu(l,[this.repositionVe]));l&&this.repositionVe&&_.On(l,this.repositionVe)};
_.X.handleDragEnd=function(){this.isDragging=!1;var l=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&l>this.windowDimensions.height&&_.V2().resolve(_.NJ).close();this.animateSnapToCorner()};
_.X.animateSnapToCorner=function(){var l=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),e=this.getNearestAttachments();e=this.getGlobalPositionFromAttachments(e.horizontalAttachment,e.verticalAttachment);l=new _.KF(e.x-l.x,e.y-l.y);this.isAnimatingSnap=!0;this.setTransform(l);this.hostElement.addEventListener("transitionend",_.id(this,this.endSnapAnimation))};
_.X.endSnapAnimation=function(l){l.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.id(this,this.endSnapAnimation)),this.endDrag())};
_.X.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.X.setTransform=function(l){this.hostElement.style.transform=l?"translate("+l.x+"px, "+l.y+"px)":""};
_.X.getGlobalPositionFromAttachments=function(l,e){return new _.KF(l==="west"?16:this.windowDimensions.width-this.dimensions.width-16,e==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.X.updateAttachments=function(){var l=this.getNearestAttachments();if(this.horizontalAttachment!==l.horizontalAttachment||this.verticalAttachment!==l.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=l.horizontalAttachment;this.verticalAttachment=l.verticalAttachment;var e;(e=this.JSC$17823_resizers)==null||e.update(this.horizontalAttachment,this.verticalAttachment)};
_.X.getNearestAttachments=function(){var l=this.getCurrentGlobalPosition();return{horizontalAttachment:l.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:l.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.X.getCurrentGlobalPosition=function(){var l=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return WlP(l,this.transform)};
_.X.isSafeToDrag=function(l){var e=this.playerContainer.getBoundingClientRect();return Math.abs(l.clientY-(e.y+e.height))>15};
_.X.setMiniplayerSize=function(l){this.currentMiniplayerSize=this.clamp(l);var e;(e=this.JSC$17823_resizers)==null||e.setSize(this.currentMiniplayerSize)};
_.X.clamp=function(l){return _.hc(192,l,720)};
_.X.registerViewTransitionTasks=function(){var l=this,e=_.V2().resolve(_.MG(_.VY));if(e){var O={beforeTransition:function(){l.hostElement&&(l.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){l.hostElement&&(l.hostElement.style.viewTransitionName="")}};
QJ(e,"slide",O);QJ(e,"zoom",O)}};
_.Ji.Object.defineProperties(Sm.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.a("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.ml("CONTINUE_WATCHING",void 0,"Continue watching")};var l;if((l=this.externalPlaylistData)==null?0:l.contents)return this.externalPlaylistData.titleText;var e;return(e=this.data)==null?void 0:e.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.externalPlaylistData)==null?0:l.contents){var e;return(e=_.Qnu(this.externalPlaylistData))==null?void 0:e.title}var O;return(O=this.data)==null?void 0:O.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var l,e,O,E;return((l=this.externalPlaylistData)==null?void 0:l.currentIndex)!==void 0&&((e=this.externalPlaylistData)==null?0:e.totalVideos)&&!((O=this.data)==null?0:(E=O.playlistData)==null?0:E.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.O$A(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.a("kevlar_watch_while_counterfactual")}}});
Sm.prototype.onIsDisabledChanged=Sm.prototype.onIsDisabledChanged;Sm.prototype.readyToResumeVeChanged=Sm.prototype.readyToResumeVeChanged;Sm.prototype.premiumBrandingChanged=Sm.prototype.premiumBrandingChanged;Sm.prototype.onPlayerVeChange=Sm.prototype.onPlayerVeChange;Sm.prototype.hasPlaylistDataChanged=Sm.prototype.hasPlaylistDataChanged;_.L([_.K(_.NO.YtPlayerListenerBehavior),_.q("design:type",_.ru)],Sm.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Sm.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Sm.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.L([_.aB("#draggable"),_.q("design:type",HTMLDivElement)],Sm.prototype,"draggableContainer",void 0);
_.L([_.aB("#resize-container"),_.q("design:type",HTMLDivElement)],Sm.prototype,"JSC$17823_resizeContainer",void 0);_.L([_.aB("#video-container"),_.q("design:type",HTMLDivElement)],Sm.prototype,"videoContainer",void 0);_.L([_.aB("#player-container"),_.q("design:type",HTMLDivElement)],Sm.prototype,"playerContainer",void 0);_.L([_.aB("#playlist"),_.q("design:type",HTMLDivElement)],Sm.prototype,"JSC$17823_playlistPanel",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"active",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"hasNoData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"enabled",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"expanded",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"readyToResume",void 0);
_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"isDisabled",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"externalPlaylistData",void 0);_.L([_.T(),_.q("design:type",Array)],Sm.prototype,"premiumBadges",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"toastData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"watchWhile",void 0);_.L([_.T(),_.q("design:type",Boolean)],Sm.prototype,"premiumBranding",void 0);
_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"playerState",void 0);_.L([_.T(),_.q("design:type",Boolean)],Sm.prototype,"continueWatching",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Sm.prototype,"verticalAttachment",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Sm.prototype,"horizontalAttachment",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"isAnimatingFade",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"isAnimatingSnap",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"isAnimatingExpand",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"isDragging",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"playerHidden",void 0);
_.L([_.T({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.q("design:type",Object)],Sm.prototype,"playlistData",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.q("design:type",Object)],Sm.prototype,"hasPlaylistData",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"closed",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Sm.prototype,"expandedClosed",void 0);
_.L([_.T({selector:_.unM}),_.q("design:type",Boolean)],Sm.prototype,"isSingleOptionSurveyActive",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Un}),_.q("design:type",Boolean)],Sm.prototype,"isWatchPage",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("watchWhile"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"showInfoBar",null);_.L([_.R("premiumBadges","showInfoBar"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"showOverlayPremiumBadges",null);
_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"watchResponse",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"miniplayerRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"playabilityStatus",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"playerVe",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"expandVe",void 0);_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"closeVe",void 0);
_.L([_.T(),_.q("design:type",Object)],Sm.prototype,"readyToResumeCloseVe",void 0);_.L([_.T(),_.q("design:type",_.Gz)],Sm.prototype,"readyToResumeVe",void 0);_.L([_.T(),_.q("design:type",_.Gz)],Sm.prototype,"resizeVe",void 0);_.L([_.T(),_.q("design:type",_.Gz)],Sm.prototype,"repositionVe",void 0);_.L([_.AA("hasPlaylistData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sm.prototype,"hasPlaylistDataChanged",null);
_.L([_.AA("playerVe"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sm.prototype,"onPlayerVeChange",null);_.L([_.AA("premiumBranding"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sm.prototype,"premiumBrandingChanged",null);_.L([_.AA("readyToResumeVe"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sm.prototype,"readyToResumeVeChanged",null);
_.L([_.AA("isDisabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Sm.prototype,"onIsDisabledChanged",null);_.L([_.R("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"miniplayerSubtitle",null);_.L([_.R("data.miniplayerTitle","externalPlaylistData"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"miniplayerTitle",null);
_.L([_.R("externalPlaylistData","continueWatching"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"playlistIndexMessage",null);_.L([_.T({reflectToAttribute:!0}),_.R("playabilityStatus"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"showErrorScreen",null);_.L([_.T({reflectToAttribute:!0}),_.R("watchWhile"),_.q("design:type",Object),_.q("design:paramtypes",[])],Sm.prototype,"watchWhileHidden",null);
_.a("ytd_miniplayer_to_wiz")||_.Y(Sm,"ytd-miniplayer",function(){if(g83===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
l.content.insertBefore(dez().content.cloneNode(!0),l.content.firstChild);l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);g83=l}l=g83;return l},{mode:2});var IHu;var Qb=function(){var l=_.B.apply(this,arguments)||this;l.useListItemStyles=_.a("web_list_item_style_for_menu_items");l.systemIcons=_.a("kevlar_system_icons");return l};
_.m(Qb,_.B);_.X=Qb.prototype;_.X.ready=function(){this.hostElement.addEventListener("tap",_.id(this,this.onEndpointTapExtra))};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){var l;(l=_.ud(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.X.onEndpointTapExtra=function(l){_.$u(this.hostElement,"iron-activate");var e=this.data.navigationEndpoint;e&&_.I(e,_.sOt)&&(l.stopPropagation(),_.wQ(this.hostElement,[e],this.hostElement))};
_.X.computeIcon=function(l){return l&&l.iconType?_.w6(l.iconType):""};
_.X.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.forceUpdateStylesOnLegacyBrowsers=function(){_.a("kevlar_legacy_browsers")&&_.dP(this.hostElement)};
Qb.prototype.forceUpdateStylesOnLegacyBrowsers=Qb.prototype.forceUpdateStylesOnLegacyBrowsers;Qb.prototype.onFocus=Qb.prototype.onFocus;_.L([_.K(_.x8),_.q("design:type",Object)],Qb.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.DVi.YtConditionalRendererBehavior),_.q("design:type",Object)],Qb.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],Qb.prototype,"ytEndpointBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Qb.prototype,"data",void 0);_.L([_.T({computed:"computeIcon(data.icon)",value:""}),_.q("design:type",String)],Qb.prototype,"icon",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],Qb.prototype,"useIcons",void 0);_.L([_.T({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Qb.prototype,"hasSeparator",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Qb.prototype,"useListItemStyles",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Qb.prototype,"systemIcons",void 0);_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qb.prototype,"onFocus",null);_.L([_.AA("useIcons","hasSeparator"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qb.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(Qb,"ytd-menu-navigation-item-renderer",function(){if(IHu===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);IHu=l}l=IHu;return l},{mode:1});var me3;var ybu=_.xp(_.ml("DOWNLOAD",{},"Download")),puC=_.xp(_.ml("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),K8u=_.xp(_.ml("RETRY",{},"Retry")),jfu=_.xp(_.ml("PAUSE_DOWNLOADING",{},"Pause downloading")),Hgh=_.xp(_.ml("RESUME_DOWNLOAD",{},"Resume download")),xt=function(){var l=_.B.apply(this,arguments)||this;l.primaryText=ybu;l.primaryIconType="OFFLINE_DOWNLOAD";l.hasSecondaryContent=!1;l.hasSeparator=!1;l.transferState="TRANSFER_STATE_UNKNOWN";l.isVideoDeletedByUser=!1;l.isHidden=!1;l.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return l};
_.m(xt,_.B);_.X=xt.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){this.primaryEntry.focus()};
_.X.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.X.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.X.getRemoveAction=function(){return"ACTION_REMOVE"};
_.X.sendOfflineAction=function(l){var e=this.data.serviceEndpoint;if(e){var O=_.I(e,_.AM);O&&l&&(O.action=l);this.ytComponentBehavior.resolveCommand(e)}};
_.X.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=ybu,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=ybu;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=K8u;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=puC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Hgh;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=puC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
jfu;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=puC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=puC;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=ybu,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.X.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.X.isSecondaryEntryHidden=function(l,e){return l?!0:!e};
_.X.computeHasSeparator=function(){var l;return!((l=this.data)==null||!l.hasSeparator)};
xt.prototype.showHideButton=xt.prototype.showHideButton;xt.prototype.onTransferStateChange=xt.prototype.onTransferStateChange;xt.prototype.onFocus=xt.prototype.onFocus;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],xt.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],xt.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],xt.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],xt.prototype,"primaryText",void 0);_.L([_.T(),_.q("design:type",String)],xt.prototype,"primaryIconType",void 0);_.L([_.T(),_.q("design:type",String)],xt.prototype,"primaryAction",void 0);_.L([_.T(),_.q("design:type",Object)],xt.prototype,"secondaryText",void 0);_.L([_.T(),_.q("design:type",String)],xt.prototype,"secondaryIconType",void 0);
_.L([_.T(),_.q("design:type",String)],xt.prototype,"secondaryAction",void 0);_.L([_.T(),_.q("design:type",Object)],xt.prototype,"hasSecondaryContent",void 0);_.L([_.T({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.q("design:type",Object)],xt.prototype,"hasSeparator",void 0);_.L([_.T({selector:_.Yp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.q("design:type",String)],xt.prototype,"transferState",void 0);
_.L([_.T({selector:_.cKt,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.q("design:type",Object)],xt.prototype,"isVideoDeletedByUser",void 0);_.L([_.T(),_.q("design:type",Object)],xt.prototype,"isHidden",void 0);_.L([_.T({selector:_.mSA,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.q("design:type",Object)],xt.prototype,"offlineabilityState",void 0);_.L([_.aB("#primary-entry"),_.q("design:type",Object)],xt.prototype,"primaryEntry",void 0);
_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xt.prototype,"onFocus",null);_.L([_.y0("transferState","isVideoDeletedByUser"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xt.prototype,"onTransferStateChange",null);_.L([_.y0("offlineabilityState"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],xt.prototype,"showHideButton",null);
_.Y(xt,"ytd-menu-service-item-download-renderer",function(){if(me3===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);me3=l}l=me3;return l},{mode:1});var cbh;var lR=function(){var l=_.B.apply(this,arguments)||this;l.useIcons=!1;l.systemIcons=_.a("kevlar_system_icons");l.useListItemStyles=_.a("web_list_item_style_for_menu_items");return l};
_.m(lR,_.B);_.X=lR.prototype;_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.X.onFocus=function(){var l;(l=_.ud(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.X.onTap=function(){_.dQ(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var l=this.data.serviceEndpoint,e=this.data.command;if(l){var O,E=(O=this.data)==null?void 0:O.trackingParams;O=!!_.I(l,_.JfS);E&&O&&_.Om().dispatch(_.oM({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:E}}));this.ytComponentBehavior.resolveCommand(l)||_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}})}e&&(this.ytComponentBehavior.resolveCommand(e)||_.wQ(this.hostElement,
[e],this.hostElement))};
_.X.computeIcon=function(l){return l&&l.iconType?_.w6(l.iconType):""};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.computeHasSeparator=function(){var l;return!((l=this.data)==null||!l.hasSeparator)};
_.X.forceUpdateStylesOnLegacyBrowsers=function(){_.a("kevlar_legacy_browsers")&&_.dP(this.hostElement)};
_.X.computeIsSelected=function(){var l;return!((l=this.data)==null||!l.isSelected)};
lR.prototype.forceUpdateStylesOnLegacyBrowsers=lR.prototype.forceUpdateStylesOnLegacyBrowsers;lR.prototype.onTap=lR.prototype.onTap;lR.prototype.onFocus=lR.prototype.onFocus;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],lR.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],lR.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.DVi.YtConditionalRendererBehavior),_.q("design:type",Object)],lR.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lR.prototype,"data",void 0);_.L([_.T({computed:"computeIcon(data.icon)",value:""}),_.q("design:type",String)],lR.prototype,"icon",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lR.prototype,"useIcons",void 0);
_.L([_.T({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.q("design:type",Boolean)],lR.prototype,"hasSeparator",void 0);_.L([_.T({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.q("design:type",Boolean)],lR.prototype,"isSelected",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lR.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],lR.prototype,"useListItemStyles",void 0);
_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lR.prototype,"onFocus",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],lR.prototype,"onTap",null);_.L([_.AA("useIcons","hasSeparator"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lR.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Y(lR,"ytd-menu-service-item-renderer",function(){if(cbh===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);cbh=l}l=cbh;return l},{mode:2});var F83;var eh=function(){return _.B.apply(this,arguments)||this};
_.m(eh,_.B);_.X=eh.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onDataChanged=function(){var l=this;_.OK(this,function(){l.postbox.openDialog();l.focus();_.$u(l.hostElement,"yt-refit")})};
_.X.focus=function(){this.postbox.focus()};
_.X.closePopup=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
_.X.onYtCommentboxDismiss=function(){this.closePopup()};
eh.prototype.onYtCommentboxDismiss=eh.prototype.onYtCommentboxDismiss;eh.prototype.onDataChanged=eh.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eh.prototype,"data",void 0);_.L([_.T({value:function(){return _.ml("SBOX_INAPPROPRIATE_CANCEL")}}),
_.q("design:type",String)],eh.prototype,"closeButtonAriaLabel",void 0);_.L([_.aB("#postbox"),_.q("design:type",Object)],eh.prototype,"postbox",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eh.prototype,"onDataChanged",null);_.L([_.wP("yt-commentbox-dismiss"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],eh.prototype,"onYtCommentboxDismiss",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],eh);
_.Y(eh,"ytd-backstage-post-dialog-popup-renderer",function(){if(F83!==void 0)return F83;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return F83=l},{mode:1});var fH0;var OQ=function(){return _.B.apply(this,arguments)||this};
_.m(OQ,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OQ.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],OQ);
_.Y(OQ,"ytd-sender-id-section-renderer",function(){if(fH0!==void 0)return fH0;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return fH0=l},{mode:1});var Ryu;var T_i;var sf4;var EQ=function(){return _.B.apply(this,arguments)||this};
_.m(EQ,_.B);EQ.prototype.closePopup=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],EQ.prototype,"data",void 0);_.L([_.Ps({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],EQ);
_.Y(EQ,"yt-community-post-section-renderer",function(){if(sf4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;T_i===void 0&&(T_i=document.createElement("template"));var E=T_i;O.call(e,E.content.cloneNode(!0),l.content.firstChild);sf4=l}l=sf4;return l},{mode:2});var GHP;var B_i;var PBH;var UeC;var Ydu;var hyu;var J2=function(){return _.B.apply(this,arguments)||this};
_.m(J2,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],J2.prototype,"data",void 0);_.L([_.Ps({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],J2);
_.Y(J2,"yt-share-start-time-with-context-renderer",function(){if(hyu===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Ydu===void 0&&(Ydu=document.createElement("template"));var E=Ydu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);hyu=l}l=hyu;return l},{mode:2});var XI=function(){return _.B.apply(this,arguments)||this};
_.m(XI,_.B);XI.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],XI.prototype,"data",void 0);_.L([_.Ps({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],XI);
_.Y(XI,"yt-share-panel-title-v15-renderer",function(){if(UeC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;PBH===void 0&&(PBH=document.createElement("template"));var E=PBH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);UeC=l}l=UeC;return l},{mode:2});var zX=function(){return _.B.apply(this,arguments)||this};
_.m(zX,_.B);zX.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zX.prototype,"data",void 0);_.L([_.Ps({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],zX);
_.Y(zX,"yt-share-panel-header-renderer",function(){if(B_i===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;GHP===void 0&&(GHP=document.createElement("template"));var E=GHP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);B_i=l}l=B_i;return l},{mode:2});var L84;var tFz;var bR=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-open-popup-action":"onOpen"};return l};
_.m(bR,_.B);_.X=bR.prototype;_.X.attached=function(){this.onOpen()};
_.X.updateTimeSecs=function(l){this.currentTimeSecs=l};
_.X.computeTimeString=function(l){l=l.toString();var e=Math.floor(Number(l)/3600),O=Math.floor(Number(l)%3600%60);return(e>0?e+":":"")+_.Vl(Math.floor(Number(l)%3600/60),e>0?2:1)+":"+_.Vl(O,2)};
_.X.computeTimeStringA11y=function(l){l=_.fn8({seconds:l});var e=l.hours===void 0?0:l.hours,O=l.minutes===void 0?0:l.minutes,E=l.seconds===void 0?0:l.seconds;l=[];if(e>0){var J=r5z().format({hours:e});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.qu)||e>9999)J=J.replace(e.toString(),_.Rfd(e)),_.qu==="km"&&(J=J.replace(".",","));l.push(J)}O>0&&l.push(r5z().format({minutes:O}));E>0&&l.push(r5z().format({seconds:E}));e="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");O=_.qu==
"am"?"{0}\u1363 ":_.qu=="fa"?"{0}\u060c\u200f ":_.qu=="my"?"{0} - ":_.qu=="ne"?"{0},":_.qu=="th"?"{0} ":_.qu=="ur"?"{0}\u060c ":_.qu=="ar"||_.qu=="ar-XB"?"{0} \u0648":_.qu=="ja"||_.qu=="zh-CN"||_.qu=="zh-HK"||_.qu=="zh-TW"?"{0}\u3001":"{0}, ";E=_.qu=="am"?"\u1363 ":_.qu=="fa"?"\u060c\u200f ":_.qu=="my"?" - ":_.qu=="th"?" ":_.qu=="ur"?"\u060c ":_.qu=="ar"||_.qu=="ar-XB"?" \u0648":_.qu=="ja"||_.qu=="zh-CN"||_.qu=="zh-HK"||_.qu=="zh-TW"?"\u3001":", ";J=_.qu=="am"?" \u12a5\u1293 {0}":_.qu=="as"?" \u0986\u09f0\u09c1 {0}":
_.qu=="az"?" v\u0259 {0}":_.qu=="bn"?" \u098f\u09ac\u0982 {0}":_.qu=="cs"?" a\u00a0{0}":_.qu=="de"?" und {0}":_.qu=="el"?" \u03ba\u03b1\u03b9 {0}":_.qu=="eu"?" eta {0}":_.qu=="fa"?"\u060c \u0648 {0}":_.qu=="fil"?", at {0}":_.qu=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.qu=="hi"?", \u0914\u0930 {0}":_.qu=="hu"?" \u00e9s {0}":_.qu=="hy"?" \u0587 {0}":_.qu=="id"?", dan {0}":_.qu=="iw"?" \u05d5-{0}":_.qu=="ja"?"\u3001{0}":_.qu=="ka"?" \u10d3\u10d0 {0}":_.qu=="km"?" \u1793\u17b7\u1784 {0}":_.qu=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.qu=="ko"?" \ubc0f {0}":_.qu=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.qu=="lt"?" ir {0}":_.qu=="lv"?" un {0}":_.qu=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.qu=="mr"?" \u0906\u0923\u093f {0}":_.qu=="ms"?" dan {0}":_.qu=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.qu=="ne"?" \u0930 {0}":_.qu=="or"?", \u0b13 {0}":_.qu=="pa"?" \u0a05\u0a24\u0a47 {0}":_.qu=="ro"?" \u0219i {0}":_.qu=="si"?", \u0dc3\u0dc4 {0}":_.qu=="sk"?" a {0}":_.qu=="sl"?" in {0}":_.qu=="sq"?" dhe {0}":_.qu=="sv"?" och {0}":
_.qu=="sw"?" na {0}":_.qu=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.qu=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.qu=="th"?" \u0e41\u0e25\u0e30{0}":_.qu=="tr"?" ve {0}":_.qu=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.qu=="uz"?" va {0}":_.qu=="vi"?" v\u00e0 {0}":_.qu=="zh-HK"?"\u53ca{0}":_.qu=="zu"?", ne-{0}":_.qu=="af"||_.qu=="nl"?" en {0}":_.qu=="ar"||_.qu=="ar-XB"?" \u0648{0}":_.qu=="be"||_.qu=="uk"?" \u0456 {0}":_.qu=="en-GB"||_.qu=="en-IN"?" and {0}":_.qu=="en"||_.qu=="en-XA"?
", and {0}":_.qu=="et"||_.qu=="fi"?" ja {0}":_.qu=="fr"||_.qu=="fr-CA"?" et {0}":_.qu=="zh-CN"||_.qu=="zh-TW"?"\u548c{0}":_.qu=="da"||_.qu=="is"||_.qu=="no"?" og {0}":_.qu=="es"||_.qu=="es-419"||_.qu=="es-US"?" y {0}":_.qu=="kk"||_.qu=="lo"||_.qu=="mn"?", {0}":_.qu=="bg"||_.qu=="mk"||_.qu=="ru"||_.qu=="sr"?" \u0438 {0}":_.qu=="gl"||_.qu=="it"||_.qu=="pt-BR"||_.qu=="pt-PT"?" e {0}":" i {0}";var z=_.qu=="am"?"{0} \u12a5\u1293 {1}":_.qu=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.qu=="az"?"{0} v\u0259 {1}":
_.qu=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.qu=="de"?"{0} und {1}":_.qu=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.qu=="eu"?"{0} eta {1}":_.qu=="fa"?"{0} \u0648 {1}":_.qu=="fil"?"{0} at {1}":_.qu=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.qu=="hi"?"{0} \u0914\u0930 {1}":_.qu=="hu"?"{0} \u00e9s {1}":_.qu=="hy"?"{0} \u0587 {1}":_.qu=="iw"?"{0} \u05d5-{1}":_.qu=="ja"?"{0}\u3001{1}":_.qu=="ka"?"{0} \u10d3\u10d0 {1}":_.qu=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.qu=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.qu=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.qu=="ko"?"{0} \ubc0f {1}":_.qu=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.qu=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.qu=="lt"?"{0} ir {1}":_.qu=="lv"?"{0} un {1}":_.qu=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.qu=="mn"?"{0}, {1}":_.qu=="mr"?"{0} \u0906\u0923\u093f {1}":_.qu=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.qu=="ne"?"{0} \u0930 {1}":_.qu=="or"?"{0} \u0b13 {1}":_.qu=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.qu=="ro"?"{0} \u0219i {1}":_.qu==
"si"?"{0} \u0dc3\u0dc4 {1}":_.qu=="sl"?"{0} in {1}":_.qu=="sq"?"{0} dhe {1}":_.qu=="sv"?"{0} och {1}":_.qu=="sw"?"{0} na {1}":_.qu=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.qu=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.qu=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.qu=="tr"?"{0} ve {1}":_.qu=="ur"?"{0} \u0627\u0648\u0631 {1}":_.qu=="uz"?"{0} va {1}":_.qu=="vi"?"{0} v\u00e0 {1}":_.qu=="zh-HK"?"{0}\u53ca{1}":_.qu=="zu"?"{0} ne-{1}":_.qu=="af"||_.qu=="nl"?"{0} en {1}":_.qu=="ar"||_.qu==
"ar-XB"?"{0} \u0648{1}":_.qu=="be"||_.qu=="uk"?"{0} \u0456 {1}":_.qu=="cs"||_.qu=="sk"?"{0} a\u00a0{1}":_.qu=="et"||_.qu=="fi"?"{0} ja {1}":_.qu=="fr"||_.qu=="fr-CA"?"{0} et {1}":_.qu=="id"||_.qu=="ms"?"{0} dan {1}":_.qu=="zh-CN"||_.qu=="zh-TW"?"{0}\u548c{1}":_.qu=="da"||_.qu=="is"||_.qu=="no"?"{0} og {1}":_.qu=="es"||_.qu=="es-419"||_.qu=="es-US"?"{0} y {1}":_.qu=="bg"||_.qu=="mk"||_.qu=="ru"||_.qu=="sr"?"{0} \u0438 {1}":_.qu=="en"||_.qu=="en-GB"||_.qu=="en-IN"||_.qu=="en-XA"?"{0} and {1}":_.qu==
"gl"||_.qu=="it"||_.qu=="pt-BR"||_.qu=="pt-PT"?"{0} e {1}":"{0} i {1}";_.qu==="sq"?(J=J.replace("dhe","e"),z=z.replace("dhe","e")):_.qu==="th"?(E=E.replace("{0}"," {0}"),z=z.replace("{0}","{0} "),z=z.replace("{1}"," {1}")):_.qu==="ne"?E=",":_.qu==="zh-CN"?E="":e.includes(_.qu)&&(E=" ");return l.length<2?l.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(_.qu)?l.length===2?
z.replace("{0}",l[0]).replace("{1}",l[1]):O.replace("{0}",l[0])+l.slice(1,-1).join(E)+J.replace("{0}",l[l.length-1]):l.join(E)};
_.X.getTimeParam=function(){return wbH(this.timeString)};
_.X.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var l={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},e;_.gn(_.yN(),(e=this.data)==null?void 0:e.trackingParams,l,7)};
_.X.onChangeStartAtTimestamp=function(){for(var l=this.startAtTimestamp.value.split(":"),e=0,O=1,E=l.length-1;E>=0;E--)e+=Number(l[E])*O,O*=60;this.updateTimeSecs(e);this.setTimestamp()};
_.X.onOpen=function(){var l=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var e=_.bV();e?e.getPlayerPromise().then(function(O){O=O.getCurrentTime();l.updateTimeSecs(O)}):vPC()&&this.updateTimeSecs(vPC())};
_.X.setTimestamp=function(){var l=Math.floor(this.currentTimeSecs);_.Wb(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!l,timestamp:l||""}])};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],bR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bR.prototype,"data",void 0);_.L([_.T({value:!1,notify:!0}),_.q("design:type",Boolean)],bR.prototype,"isStartAtChecked",void 0);_.L([_.T(),_.q("design:type",Number)],bR.prototype,"currentTimeSecs",void 0);
_.L([_.T({computed:"computeTimeString(currentTimeSecs)"}),_.q("design:type",String)],bR.prototype,"timeString",void 0);_.L([_.T({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.q("design:type",String)],bR.prototype,"timeStringA11y",void 0);_.L([_.aB("#start-at-timestamp"),_.q("design:type",Object)],bR.prototype,"startAtTimestamp",void 0);_.L([_.Ps({is:"yt-start-at-renderer",disableElementRegistration:!0})],bR);
_.Y(bR,"yt-start-at-renderer",function(){if(tFz===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;L84===void 0&&(L84=document.createElement("template"));var E=L84;O.call(e,E.content.cloneNode(!0),l.content.firstChild);tFz=l}l=tFz;return l},{mode:2});var qdi;var v8h;var N_F=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),rbo=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),De0=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Sdf={};Sdf.YtBindingExpressionsBehavior={identity:_.Bx,msg:function(l,e){e=e===void 0?{}:e;return _.ml(l,e,l)},
msgPlural:function(l,e){return _.y4(l,e)},
getMusicIconFromType:function(l){if(_.a("music_web_enable_icon_wil"))l=_.w6(l);else if(rbo.has(l))l="yt-sys-icons:"+rbo.get(l);else{var e=N_F.get(l)||_.w6(l).split(":")[1];e=_.m$x(e);var O;l=((O=De0.get(l))!=null?O:"yt-sys-icons:")+e}return l}};var QfO;var xef;var lTC;var eMf=document.head,Oeo=eMf.appendChild,Elu;if(lTC===void 0){var Jx0=document.createElement("template");_.p(Jx0,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');lTC=Jx0}Elu=lTC;Oeo.call(eMf,Elu.content);var Mn=function(){var l=_.B.apply(this,arguments)||this;l.screenLayer=7;return l};
_.m(Mn,_.B);Mn.prototype.getScreenLayer=function(){return this.screenLayer};
Mn.prototype.onTap=function(l){l&&l.detail&&(l.detail.x||l.detail.y)&&_.ud(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.ii(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(l=this.getScreenLayer(),_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:l}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Ji.Object.defineProperties(Mn.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()}}});
Mn.prototype.onTap=Mn.prototype.onTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Mn.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Mn.prototype,"data",void 0);_.L([_.R("data.title"),_.q("design:type",Object),_.q("design:paramtypes",[])],Mn.prototype,"title",null);
_.L([_.R("data.serviceName"),_.q("design:type",String),_.q("design:paramtypes",[])],Mn.prototype,"icon",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Mn.prototype,"onTap",null);_.L([_.Ps({is:"yt-share-target-renderer",disableElementRegistration:!0})],Mn);
_.Y(Mn,"yt-share-target-renderer",function(){if(xef===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;QfO===void 0&&(QfO=document.createElement("template"));var E=QfO;O.call(e,E.content.cloneNode(!0),l.content.firstChild);xef=l}l=xef;return l},{mode:2});var X84;var zM4;var Vv=function(){var l=_.B.apply(this,arguments)||this;l.SHARE_TARGET_WIDTH=70;l.SHARE_TARGET_MARGIN_RIGHT=8;l.PAGE_SCROLL_SPEED=9;l.actionMap={"yt-share-panel-reset-action":"onReset_"};return l};
_.m(Vv,_.B);_.X=Vv.prototype;_.X.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.X.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ud(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ud(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.X.onReset_=function(){if(_.ud(this.hostElement).querySelector("#list")){var l=_.ud(this.hostElement).querySelector("#list");var e=_.ud(this.hostElement).querySelector("#list");var O=e.offsetLeft,E=e.offsetParent;E||_.ukk(e)!="fixed"||(E=_.HR(e).documentElement);if(E){if(_.iv&&!_.AZ(58)){var J=_.w6R(E);O+=J.left}else Number(_.h38)>=8&&!(Number(_.h38)>=9)&&(J=_.w6R(E),O-=J.left);e=_.gq6(E)?E.clientWidth-(O+e.offsetWidth):O}else e=O;tbh(l,e);this.updateScrollButtons_()}};
_.X.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.X.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.X.onScrollWheel_=function(l){l.stopPropagation();l.preventDefault();var e=LXf(_.ud(this.hostElement).querySelector("#list"));l=Math.abs(l.deltaX)>Math.abs(l.deltaY)?l.deltaX:l.deltaY;tbh(_.ud(this.hostElement).querySelector("#list"),e+l);this.updateScrollButtons_()};
_.X.smoothScrollByOnePage_=function(l){var e=_.ud(this.hostElement).querySelector("#list"),O=(Math.floor(e.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,E=LXf(e),J=O*(l?1:-1),z=this.PAGE_SCROLL_SPEED,M=this.updateScrollButtons_.bind(this),Z=0,u;(function g(){Z+=z;u=Z/O*2;tbh(e,E+J*(u<1?u*u:-u*u+4*u-2));Z<O?window.requestAnimationFrame(g):M()})()};
_.X.updateScrollButtons_=function(){var l=LXf(_.ud(this.hostElement).querySelector("#list")),e=_.ud(this.hostElement).querySelector("#list").scrollWidth-_.ud(this.hostElement).querySelector("#list").clientWidth;_.ud(this.hostElement).querySelector("#scroll-button-back").hidden=l<=0;_.ud(this.hostElement).querySelector("#scroll-button-forward").hidden=l>=e};
Vv.prototype.onScrollWheel_=Vv.prototype.onScrollWheel_;Vv.prototype.onDataChanged_=Vv.prototype.onDataChanged_;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Vv.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(Sdf.YtBindingExpressionsBehavior),_.q("design:type",Object)],Vv.prototype,"ytBindingExpressionsBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Vv.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Vv.prototype,"onDataChanged_",null);_.L([_.wP("wheel"),_.q("design:type",Function),_.q("design:paramtypes",[WheelEvent]),_.q("design:returntype")],Vv.prototype,"onScrollWheel_",null);
_.L([_.Ps({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Vv);
_.Y(Vv,"yt-third-party-share-target-section-renderer",function(){if(zM4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;X84===void 0&&(X84=document.createElement("template"));var E=X84;O.call(e,E.content.cloneNode(!0),l.content.firstChild);zM4=l}l=zM4;return l},{mode:2});var Z5=function(){return _.B.apply(this,arguments)||this};
_.m(Z5,_.B);Z5.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"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Z5.prototype,"data",void 0);_.L([_.Ps({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Z5);
_.Y(Z5,"yt-third-party-network-section-renderer",function(){if(v8h===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;qdi===void 0&&(qdi=document.createElement("template"));var E=qdi;O.call(e,E.content.cloneNode(!0),l.content.firstChild);v8h=l}l=v8h;return l},{mode:2});_.Zw(_.XO(function(l){return _.W("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.W("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.W(_.Tn,{data:function(){return l.data().firstPartyItems}},{listItemViewModel:_.jG})))},"qg"),"first-party-network-section-view-model",{props:{data:_.lB}});var bef=_.E9(["data:image/svg+xml;charset=UTF-8;base64,",""]),uR=function(){var l=_.B.apply(this,arguments)||this;l.screenLayer=7;l.qrCodeEnabled=_.a("web_enable_sharing_qr_code");l.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return l};
_.m(uR,_.B);_.X=uR.prototype;_.X.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.X.attached=function(){this.JSC$17875_scroller&&(this.JSC$17875_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17875_scroller.attached&&typeof this.JSC$17875_scroller.attached==="function"&&this.JSC$17875_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.X.onDataChanged=function(){var l=this,e;(e=this.data)!=null&&e.contents&&(this.hostElement.setAttribute("links-only","true"),_.$T(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.OK(this,function(){_.$u(l.hostElement,"yt-refit");l.focusSharePanelHeader()}))};
_.X.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.X.handleSetTimestamp=function(l){var e=this.shortUrl();l.isSet&&(e=_.NC(e,"t",l.timestamp));this.maybeRenderQrCode(e)};
_.X.shortUrl=function(){var l,e=(l=this.data)==null?void 0:l.contents;if(e)for(l=0;l<e.length;l++){var O=void 0,E=void 0;if((O=e[l])==null?0:(E=O.thirdPartyNetworkSection)==null?0:E.copyLinkContainer){var J=E=O=void 0;return(J=_.I((O=e[l])==null?void 0:(E=O.thirdPartyNetworkSection)==null?void 0:E.copyLinkContainer,hLh))==null?void 0:J.shortUrl}}};
_.X.maybeRenderQrCode=function(l){var e=this,O,E,J,z,M,Z,u,d,g;return _.V(function(w){if(w.nextAddress==1){O=_.ud(e.hostElement).querySelector("#qr-code");if(!e.qrCodeEnabled||!l)return O&&(O.style.display="none"),w.return();E=_.Thq(_.V2().resolve(_.A3),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});J=document.createElement("div");return typeof E==="function"?(E(J),w.jumpTo(2)):_.C(w,E,3)}w.nextAddress!=2&&(z=w.yieldResult,z(J));u=(M=J)==null?void 0:(Z=M.firstChild)==null?void 0:Z.firstChild;
d=document.createElement("img");g=_.IH(bef,btoa(u.outerHTML));d.onload=function(){var n={canvas:O,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:d},k=new gZf;kLi(k,l);I8C(k,!1,mYu(k));var y=k.modules,c=Object.assign({},aq4,n);y=structuredClone(y);n=y.length;var f,P=(f=c.canvas)!=null?f:document.createElement("canvas");f=c.cellSize;k=c.logo;var h,N=(h=c.logoSize)!=null?h:Math.floor(n/4);n%2!==N%2&&N++;var t=c.logoPadding,r=c.backgroundColor;h=n*f;var D=
c.width,b2=0;D&&(b2=c.padding,b2=Math.ceil(b2*h/(D-b2*2)),P.style.width=D+"px",P.style.height=D+"px");P.width!==h+b2*2&&(P.width=h+b2*2);P.height!==h+b2*2&&(P.height=h+b2*2);h=P.getContext("2d");c.autoClear&&h.clearRect(0,0,P.width,P.height);h.fillStyle=r;h.beginPath();h.roundRect(0,0,P.width,P.height,c.borderRadius);h.fill();h.save();h.translate(b2,b2);if(k)for(P=Math.floor(n-N)/2-t,t=Math.floor(n+N)/2+t,r=P;r<t;r++)for(D=P;D<t;D++)y[r][D]=!1;for(P=0;P<n;P++)for(t=0;t<n;t++)(P<7&&t<7||P<7&&t>=n-
7||P>=n-7&&t<7)&&(y[P][t]=!1);var $V;P=($V=c.markerColor)!=null?$V:c.color;pQC(h,0,0,f,P);pQC(h,f*(n-7),0,f,P);pQC(h,0,f*(n-7),f,P);switch(c.cellStyle){case 0:$V=y;y=$V.length;P=c.cellSize;h.beginPath();for(t=0;t<y;t++)for(r=0;r<y;r++)$V[t][r]&&h.rect(t*P,r*P,P,P);h.fillStyle=c.color;h.fill();break;case 1:$V=y;y=$V.length;P=c.cellSize;t=P*c.relativeCircleSize;h.fillStyle=c.color;h.beginPath();for(c=0;c<y;c++)for(r=0;r<y;r++)$V[c][r]&&(h.beginPath(),h.ellipse((c+.5)*P,(r+.5)*P,t/2,t/2,0,0,2*Math.PI),
h.fill());h.fill();break;case 2:$V=y;y=$V.length;P=c.cellSize;h.fillStyle=c.color;c=[[1,1],[-1,1],[-1,-1],[1,-1]];h.beginPath();for(t=0;t<y;t++)for(r=0;r<y;r++)if($V[t][r])h.roundRect(t*P,r*P,P,P,P/2),t+1<y&&$V[t+1][r]&&h.rect(t*P+P/2,r*P,P,P),r+1<y&&$V[t][r+1]&&h.rect(t*P,r*P+P/2,P,P);else{D=t*P+P/2;b2=r*P+P/2;for(var gT=0;gT<4;gT++){var mx=_.b(c[gT]),jM=mx.next().value;mx=mx.next().value;t+jM>=0&&t+jM<y&&r+mx>=0&&r+mx<y&&$V[t+jM][r]&&$V[t][r+mx]&&$V[t+jM][r+mx]&&(jM=gT*Math.PI/2,mx=P/2,h.moveTo(D+
mx*Math.cos(jM),b2+mx*Math.sin(jM)),h.arc(D,b2,P/2,jM,jM+Math.PI/2,!1),h.lineTo(D+mx*(Math.cos(jM)-Math.sin(jM)),b2+mx*(Math.cos(jM)+Math.sin(jM))),h.lineTo(D+mx*Math.cos(jM),b2+mx*Math.sin(jM)))}}h.fill()}k&&h.drawImage(k,(n-N)*f/2,(n-N)*f/2,N*f,N*f);h.restore();O.style.removeProperty("display")};
d.src=_.W2(g);_.Cl(w)})};
_.X.hasCommunityPostRenderer=function(){var l,e,O,E;return!!((l=this.data)==null?0:(e=l.header)==null?0:(O=e.sharePanelHeaderRenderer)==null?0:(E=O.communityPost)==null?0:E.communityPostSectionRenderer)};
_.X.onTapClose=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.X.getScreenLayer=function(){return this.screenLayer};
_.X.logSharePanelPage=function(){if(!_.a("enable_share_panel_navigation_logging_fix_on_web")){var l;if((l=this.data)!=null&&l.trackingParams){l=this.data.trackingParams;var e=this.parentClickTrackingParams;e=e?_.cf(e):void 0;var O=_.yN();_.on(O,21760,e,{layer:7,parentLayer:0});O.graftServerVe(l,void 0,7);_.Om().dispatch(_.oM({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
uR.prototype.onDataChanged=uR.prototype.onDataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],uR.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],uR.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],uR.prototype,"data",void 0);_.L([_.T({value:_.ml("SBOX_INAPPROPRIATE_CANCEL")}),_.q("design:type",String)],uR.prototype,"closeButtonAriaLabel",void 0);_.L([_.aB("yt-share-panel-header-renderer"),_.q("design:type",HTMLElement)],uR.prototype,"header",void 0);_.L([_.T({selector:function(l){return l.share.parentClickTrackingParams}}),
_.q("design:type",String)],uR.prototype,"parentClickTrackingParams",void 0);_.L([_.T(),_.q("design:type",Object)],uR.prototype,"qrCodeEnabled",void 0);_.L([_.aB("#scroller"),_.q("design:type",Object)],uR.prototype,"JSC$17875_scroller",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uR.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],uR);
_.Y(uR,"ytd-unified-share-panel-renderer",function(){if(Ryu!==void 0)return Ryu;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Ryu=l},{mode:1});var Mk4;var Cs=function(){var l=_.B.apply(this,arguments)||this;l.modernModal=_.a("kevlar_sign_in_modal_modernization");return l};
_.m(Cs,_.B);Cs.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Cs.prototype.computeShouldHideOldButtons=function(){var l;return!((l=this.data)==null?0:l.button)};
_.Ji.Object.defineProperties(Cs.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var l,e;if(this.modernModal&&((l=this.data)==null?0:(e=l.button)==null?0:e.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var O,E;return(O=this.data)==null?void 0:(E=O.button)==null?void 0:E.buttonRenderer}}});
_.L([_.T(),_.q("design:type",Object)],Cs.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],Cs.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Cs.prototype,"modernModal",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Cs.prototype,"buttonRendererData",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Cs);
_.Y(Cs,"ytd-modal-with-title-and-button-renderer",function(){if(Mk4!==void 0)return Mk4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Mk4=l},{mode:1});var Vku;var oE=function(){return _.B.apply(this,arguments)||this};
_.m(oE,_.B);oE.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("page-changed",this.page))};
oE.prototype.pageChangedForBinding=oE.prototype.pageChangedForBinding;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],oE.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],oE.prototype,"page",void 0);_.L([_.AA("page"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oE.prototype,"pageChangedForBinding",null);
_.L([_.U({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],oE);
_.Y(oE,"ytd-account-item-section-header-renderer",function(){if(Vku!==void 0)return Vku;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Vku=l},{mode:1});var Zeu;var $i=function(){return _.B.apply(this,arguments)||this};
_.m($i,_.B);$i.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"}}}};
$i.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],$i.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$i.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Function)],$i.prototype,"onAccountItemTap",void 0);
_.L([_.U({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],$i);
_.Y($i,"ytd-account-item-section-renderer",function(){if(Zeu!==void 0)return Zeu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Zeu=l},{mode:1});var uN0;var C80;var WM=function(){return _.B.apply(this,arguments)||this};
_.m(WM,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WM.prototype,"data",void 0);_.L([_.U({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],WM);
_.Y(WM,"ytd-accounts-dialog-header-renderer",function(){if(C80!==void 0)return C80;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return C80=l},{mode:1});var olu;var dm=function(){return _.B.apply(this,arguments)||this};
_.m(dm,_.B);dm.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dm.prototype,"data",void 0);_.L([_.U({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],dm);
_.Y(dm,"ytd-google-account-header-renderer",function(){if(olu!==void 0)return olu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return olu=l},{mode:1});var gm=function(){return _.B.apply(this,arguments)||this};
_.m(gm,_.B);gm.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"}}}};
gm.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("page-changed",this.page))};
gm.prototype.pageChangedForBinding=gm.prototype.pageChangedForBinding;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gm.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],gm.prototype,"page",void 0);
_.L([_.AA("page"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gm.prototype,"pageChangedForBinding",null);_.L([_.U({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],gm);
_.$0()(gm,"ytd-account-section-list-renderer",function(){if(uN0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);uN0=l}l=uN0;return l},{allowedProps:["data"],
mode:1});var $Oh;var iR=function(){var l=_.B.apply(this,arguments)||this;l.enableHandlesAccountMenuSwitcher=_.a("enable_handles_account_menu_switcher");return l};
_.m(iR,_.B);iR.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
iR.prototype.dataChanged=iR.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],iR.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],iR.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.L([_.aB("#avatar"),_.q("design:type",Object)],iR.prototype,"avatar",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iR.prototype,"dataChanged",null);_.L([_.U({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],iR);
_.$0()(iR,"ytd-active-account-header-renderer",function(){if($Oh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);$Oh=l}l=$Oh;return l},{allowedProps:["data"],
mode:1});var WYF;var dOC;var wm=function(){return _.B.apply(this,arguments)||this};
_.m(wm,_.B);wm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wm.prototype.onBackTap=function(){_.$u(this.hostElement,"yt-menu-back-tapped")};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wm.prototype,"data",void 0);_.L([_.U({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],wm);
_.$0()(wm,"ytd-simple-menu-header-renderer",function(){if(dOC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);dOC=l}l=dOC;return l},{allowedProps:["data"],
mode:2});var glF;var A2=function(){return _.B.apply(this,arguments)||this};
_.m(A2,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],A2.prototype,"data",void 0);_.L([_.U({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],A2);
_.Y(A2,"ytd-comment-video-thumbnail-header-renderer",function(){if(glF!==void 0)return glF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return glF=l},{mode:1});var ieo;var ns=function(){return _.B.apply(this,arguments)||this};
_.m(ns,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ns.prototype,"data",void 0);_.L([_.U({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ns);
_.Y(ns,"ytd-abuse-type-selector-renderer",function(){if(ieo!==void 0)return ieo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ieo=l},{mode:1});var w8i;var aE=function(){return _.B.apply(this,arguments)||this};
_.m(aE,_.B);aE.prototype.attached=function(){var l=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){l.additionalContextInput.focusTextInput()})};
aE.prototype.handleAdditionalContextChanged=function(){var l=this;_.rP(this,"ytd-report-channel-additional-context-update",function(){l.ytdReduxBehavior.dispatch(_.oM({type:"ADDITIONAL_CONTEXT_UPDATED",payload:l.additionalContext}))},300)};
aE.prototype.updateAdditionalContextFromBinding=function(l){this.additionalContext=l.detail.value};
aE.prototype.handleAdditionalContextChanged=aE.prototype.handleAdditionalContextChanged;_.L([_.K(_.sY),_.q("design:type",Object)],aE.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",String)],aE.prototype,"additionalContext",void 0);_.L([_.T({selector:function(l){return l.reportChannelAbuse.additionalContext}}),
_.q("design:type",String)],aE.prototype,"additionalContextRedux",void 0);_.L([_.T(),_.q("design:type",Object)],aE.prototype,"data",void 0);_.L([_.aB("yt-text-input-form-field-renderer"),_.q("design:type",Object)],aE.prototype,"additionalContextInput",void 0);_.L([_.AA("additionalContext"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aE.prototype,"handleAdditionalContextChanged",null);
_.L([_.U({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],aE);
_.Y(aE,"ytd-report-channel-modal-additional-context-renderer",function(){if(w8i!==void 0)return w8i;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return w8i=l},{mode:1});var Ax3;var ki=function(){var l=_.B.apply(this,arguments)||this;l.nextButtonDisabled=null;l.submitEndpoint=null;l.navigationEndpoint=null;l.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return l};
_.m(ki,_.B);_.X=ki.prototype;_.X.computeNextButtonData=function(l,e,O){var E={};e&&(E.navigationEndpoint=e);O&&(E.serviceEndpoint=O);l&&l.buttonRenderer&&_.mm.extend(E,l.buttonRenderer);return E};
_.X.handleReportChannelModalDisableNextButtonAction=function(l){this.setNextButtonIsDisabled(l)};
_.X.handleReportFormEndpointUpdateAction=function(l){this.setNextButtonIsDisabled(!!l.disableSubmitButton);this.resetEndpointData();l.submitEndpoint?this.submitEndpoint=l.submitEndpoint:l.submitNavigationEndpoint&&(this.navigationEndpoint=l.submitNavigationEndpoint)};
_.X.handleSignalActionSubmitForm=function(){var l,e=Object.keys(((l=this.reportChannelAbuseForm)==null?void 0:l.selectedVideoIds)||{}),O;l=((O=this.reportChannelAbuseForm)==null?void 0:O.additionalContext)||"";var E;O=((E=this.reportChannelAbuseForm)==null?void 0:E.impersonatedChannelUrl)||"";var J;if((J=this.data)==null?0:J.submitEndpoint){e={impersonated_channel_url:O,text:l,video_ids:e};var z;_.V2().resolve(_.Zh).resolveCommand((z=this.data)==null?void 0:z.submitEndpoint,{form:Object.assign({},
e,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.X.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.X.onYtServiceRequestError=function(l){this.setNextButtonIsDisabled(!1);_.Zs(this.hostElement,l.detail.error.message)};
_.X.setNextButtonIsDisabled=function(l){this.set("data.nextButton.buttonRenderer.isDisabled",l)};
_.X.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
ki.prototype.onYtServiceRequestError=ki.prototype.onYtServiceRequestError;ki.prototype.onYtServiceRequestCompleted=ki.prototype.onYtServiceRequestCompleted;_.L([_.T(),_.q("design:type",Object)],ki.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],ki.prototype,"nextButtonDisabled",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ki.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ki.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ki.prototype,"submitEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],ki.prototype,"navigationEndpoint",void 0);_.L([_.T({selector:function(l){return l.reportChannelAbuse}}),
_.q("design:type",Object)],ki.prototype,"reportChannelAbuseForm",void 0);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ki.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],ki.prototype,"onYtServiceRequestError",null);
_.L([_.U({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],ki);
_.Y(ki,"ytd-report-channel-modal-footer-renderer",function(){if(Ax3!==void 0)return Ax3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Ax3=l},{mode:1});var nlO;var IE=function(){var l=_.B.apply(this,arguments)||this;l.boundOnTapDismissButton=function(){l.closePopup()};
return l};
_.m(IE,_.B);IE.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
IE.prototype.handleDataChanged=function(){_.OW(this.hostElement)};
IE.prototype.closePopup=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
IE.prototype.handleDataChanged=IE.prototype.handleDataChanged;_.L([_.T(),_.q("design:type",Object)],IE.prototype,"boundOnTapDismissButton",void 0);_.L([_.T(),_.q("design:type",Object)],IE.prototype,"data",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IE.prototype,"handleDataChanged",null);_.L([_.U({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],IE);
_.Y(IE,"ytd-report-channel-modal-header-renderer",function(){if(nlO!==void 0)return nlO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return nlO=l},{mode:1});var aT4;var mN=function(){var l=_.B.apply(this,arguments)||this;l.autoValidate=!1;l.invalid=!1;l.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return l};
_.m(mN,_.B);_.X=mN.prototype;_.X.attached=function(){var l=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){l.channelUrlInput.focusTextInput()})};
_.X.disableNextButton=function(l){_.Wb(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[l])};
_.X.handleImpersonatedChannelUrlChanged=function(){var l=this;this.disableNextButton(!0);this.invalid=!1;_.rP(this,"ytd-report-channel-impersonated-channel-update",function(){var e=l.impersonatedChannelUrl.trim();l.ytdReduxBehavior.dispatch(_.oM({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:e}));var O;((O=l.data)==null?0:O.submitEndpoint)&&e&&_.V2().resolve(_.Zh).resolveCommand(l.data.submitEndpoint,{form:{impersonated_channel_url:e,element:l.hostElement}})},500)};
_.X.handleModifyReportFormCommand=function(l){this.invalid=this.get("modifyReportFormCommand.action",l)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.X.updateInvalidFromBinding=function(l){this.invalid=l.detail.value};
_.X.updateImpersonatedChannelUrlFromBinding=function(l){this.impersonatedChannelUrl=l.detail.value};
mN.prototype.handleImpersonatedChannelUrlChanged=mN.prototype.handleImpersonatedChannelUrlChanged;_.L([_.K(_.sY),_.q("design:type",Object)],mN.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],mN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mN.prototype,"autoValidate",void 0);_.L([_.T(),_.q("design:type",Object)],mN.prototype,"invalid",void 0);
_.L([_.T(),_.q("design:type",String)],mN.prototype,"impersonatedChannelUrl",void 0);_.L([_.T({selector:function(l){return l.reportChannelAbuse.impersonatedChannelUrl}}),
_.q("design:type",String)],mN.prototype,"impersonatedChannelUrlRedux",void 0);_.L([_.T(),_.q("design:type",Object)],mN.prototype,"data",void 0);_.L([_.aB("#text-input"),_.q("design:type",Object)],mN.prototype,"channelUrlInput",void 0);_.L([_.AA("impersonatedChannelUrl"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mN.prototype,"handleImpersonatedChannelUrlChanged",null);
_.L([_.U({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],mN);
_.Y(mN,"ytd-report-channel-modal-impersonation-renderer",function(){if(aT4!==void 0)return aT4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return aT4=l},{mode:1});var kEu;var ITP;var yv=function(){return _.B.apply(this,arguments)||this};
_.m(yv,_.B);yv.prototype.onCheckboxToggled=function(l){var e,O,E=(O=_.I((e=this.data)==null?void 0:e.video,_.Lp))==null?void 0:O.videoId;E&&this.ytdReduxBehavior.dispatch(l.target.checked?_.oM({type:"VIDEO_SELECTED",payload:E}):_.oM({type:"VIDEO_UNSELECTED",payload:E}))};
yv.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Ji.Object.defineProperties(yv.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var l,e=(l=this.data)==null?void 0:l.video;if(!e)return{};var O;l=(O=_.I(e,_.Lp))==null?void 0:O.navigationEndpoint;if(!l)return e;_.I(l==null?void 0:l.commandMetadata,_.V4)&&(_.I(l.commandMetadata,_.V4).ignoreNavigation=!0);return e}}});
_.L([_.T({reflectToAttribute:!0,selector:function(l,e){return e in l.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.q("design:type",Boolean)],yv.prototype,"checked",void 0);_.L([_.T(),_.q("design:type",Object)],yv.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],yv.prototype,"video",null);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],yv.prototype,"ytdReduxBehavior",void 0);_.L([_.U({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],yv);
_.Y(yv,"ytd-selectable-video-renderer",function(){if(ITP!==void 0)return ITP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ITP=l},{mode:1});var ps=function(){var l=_.B.apply(this,arguments)||this;l.monitorScroll=!0;return l};
_.m(ps,_.B);ps.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ps.prototype,"data",void 0);_.L([_.U({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],ps);
_.Y(ps,"ytd-selectable-video-list-renderer",function(){if(kEu!==void 0)return kEu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kEu=l},{mode:1});var mOP;_.Y7("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Ks=function(){return _.B.apply(this,arguments)||this};
_.m(Ks,_.B);Ks.prototype.onChange=function(l){if(l=_.OV(l).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.a("kevlar_command_handler_migration_killswitch"))_.wQ(this.hostElement,l,this.hostElement);else{l=_.b(l);for(var e=l.next();!e.done;e=l.next())this.ytComponentBehavior.resolveCommand(e.value)}};
Ks.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Ks.prototype.updateDataToggledFromBinding=function(l){this.set("data.toggled",l.detail.value)};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ks.prototype,"data",void 0);_.L([_.T({computed:"isEnabled(data)"}),_.q("design:type",Boolean)],Ks.prototype,"enabled",void 0);_.L([_.U({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Ks);
_.Y(Ks,"ytd-toggle-item-renderer",function(){if(mOP!==void 0)return mOP;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return mOP=l},{mode:1});var yxF;var p8u;var KYz;var jh=function(){var l=_.B.apply(this,arguments)||this;l.setVisible=!1;l.boundOnSubmitButtonClick=function(){l.onSubmitButtonClick()};
l.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return l};
_.m(jh,_.B);jh.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}}}}}};
jh.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
jh.prototype.onSubmitButtonClick=function(){var l;((l=this.data)==null?0:l.submitEndpoint)&&!_.a("enable_ytc_refunds_submit_form_signal_action")&&_.ii(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
jh.prototype.handleSignalActionSubmitForm=function(){var l;((l=this.data)==null?0:l.submitEndpoint)&&_.ii(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Ji.Object.defineProperties(jh.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.hiddenByDefault)&&!this.setVisible}}});
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],jh.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jh.prototype,"setVisible",void 0);_.L([_.T(),_.q("design:type",Object)],jh.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],jh.prototype,"surveyFeedbackData",void 0);_.L([_.T(),_.q("design:type",Object)],jh.prototype,"boundOnSubmitButtonClick",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data","setVisible"),_.q("design:type",Object),_.q("design:paramtypes",[])],jh.prototype,"visibilityHidden",null);_.L([_.Ps({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],jh);
_.Y(jh,"yt-flow-footer-renderer",function(){if(KYz===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;p8u===void 0&&(p8u=document.createElement("template"));var E=p8u;O.call(e,E.content.cloneNode(!0),l.content.firstChild);KYz=l}l=KYz;return l},{mode:2});var HM=function(){return _.B.apply(this,arguments)||this};
_.m(HM,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],HM.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HM.prototype,"data",void 0);_.L([_.T({selector:function(l){return l.ypc.surveyFeedbackData}}),
_.q("design:type",Object)],HM.prototype,"surveyFeedbackData",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],HM);
_.Y(HM,"ytd-flow-footer-renderer",function(){if(yxF!==void 0)return yxF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return yxF=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var jkF;var He3;var cM=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return l};
_.m(cM,_.B);_.X=cM.prototype;_.X.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.hm("multiPageMenuSectionItems")}}};
_.X.handleHideEnclosingAction_=function(l){if(this.data&&this.data.items)for(var e=0;e<this.data.items.length;e++){var O=this.data.items[e].notificationRenderer;if(O&&O.notificationId==l.hideEnclosingAction.notificationId){this.splice("data.items",e,1);_.Wb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.X.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.$T(this.hostElement,"hidden",!0)};
_.X.updateMenu_=function(l){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&l&&!l.doNotRefreshInbox){l=this.data.continuations;for(var e=0;e<l.length;e++)if(l[e].invalidationContinuationData){var O=void 0;var E=(O=l[e].invalidationContinuationData)==null?void 0:O.continuation;break}l=_.mm.clone(this.data.continuationUpdateEndpoint||null);l.continuation=E;l.click_tracking_params=this.data.trackingParams;_.ii(this.hostElement,[l])}};
_.X.onServiceRequestCompleted_=function(l,e){if(this.data&&(l=e.actions)){e=0;for(var O=l.length;e<O;e++){var E=_.I(l[e],_.ohS);if(!E)break;if((E.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||E.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&E.continuationItems&&this.data.items){var J=this.data.items.length-1;this.data.items[J].continuationItemRenderer&&this.splice.apply(this,["data.items",J,1].concat(E.continuationItems))}}}};
cM.prototype.onServiceRequestCompleted_=cM.prototype.onServiceRequestCompleted_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cM.prototype,"data",void 0);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],cM.prototype,"onServiceRequestCompleted_",null);_.L([_.Ps({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],cM);
_.$0()(cM,"yt-multi-page-menu-section-renderer",function(){if(He3===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;jkF===void 0&&(jkF=document.createElement("template"));var E=jkF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);He3=l}l=He3;return l},{allowedProps:["data"],
mode:2});var cx4;var FYi;var FI=function(){return _.B.apply(this,arguments)||this};
_.m(FI,_.B);FI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Ji.Object.defineProperties(FI.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.progress)==null?0:this.data.progress*100}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FI.prototype,"data",void 0);_.L([_.R("data.progress"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],FI.prototype,"showProgressBar",null);
_.L([_.R("data.progress"),_.q("design:type",Number),_.q("design:paramtypes",[])],FI.prototype,"progress",null);_.L([_.Ps({is:"yt-flow-header-renderer",disableElementRegistration:!0})],FI);
_.Y(FI,"yt-flow-header-renderer",function(){if(FYi===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;cx4===void 0&&(cx4=document.createElement("template"));var E=cx4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);FYi=l}l=FYi;return l},{mode:2});var fTP;var RM0;var fs=function(){return _.B.apply(this,arguments)||this};
_.m(fs,_.B);fs.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fs.prototype,"data",void 0);_.L([_.Ps({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],fs);
_.Y(fs,"yt-post-confirmation-flow-step-renderer",function(){if(RM0===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;fTP===void 0&&(fTP=document.createElement("template"));var E=fTP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);RM0=l}l=RM0;return l},{mode:2});var TuO;var sku;var RE=function(){return _.B.apply(this,arguments)||this};
_.m(RE,_.B);
RE.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],RE.prototype,"data",void 0);_.L([_.Ps({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],RE);
_.Y(RE,"yt-refund-confirmation-flow-step-renderer",function(){if(sku===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;TuO===void 0&&(TuO=document.createElement("template"));var E=TuO;O.call(e,E.content.cloneNode(!0),l.content.firstChild);sku=l}l=sku;return l},{mode:2});_.Z8(Agi);_.Z8(nuO);var aGO=_.jp({avatarViewModel:_.Hp});_.Z8(k9u);var IGu=_.jp({commentInteractionViewModel:nuO,sharedSubscriptionViewModel:k9u,buttonViewModel:_.hM});_.Z8(m9z);_.Z8(ygu);_.Z8(pb4);_.Z8(Klu);_.Z8(jpu);var Hzu=_.jp({profileIdentityInfoViewModel:_.RuP,profileInfoViewModel:jpu});_.Z8(cgF);_.ip(cgF,"yt-profile-card-view-model",{propNames:["data"]});var TX=function(){var l=_.B.apply(this,arguments)||this;l.enableFocusFix=_.a("music_web_enable_focus_on_setting_menu_fix")&&_.LH("IS_MOBILE_WEB",!1);l.covered=!1;l.hideMenu=!1;l.isCommentNotificationOnProfileCard=!1;l.scrolledByTouch=!1;l.disableBackdropFilter=_.a("web_disable_backdrop_filter");l.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return l};
_.m(TX,_.B);_.X=TX.prototype;
_.X.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"}}}};
_.X.ready=function(){var l=this;this.JSC$17984_containerElement.addEventListener("scroll",function(){l.ytRendererBehavior.markDirty()})};
_.X.attributeChanged=function(l,e){l==="menu-style"&&_.Wb(this.hostElement,"yt-multi-page-menu-closed-action",[e])};
_.X.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.id(this,this.focusOnStampFinished))};
_.X.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.id(this,this.focusOnStampFinished))};
_.X.reset=function(){this.closeJobId&&(_.UD.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.X.focusOnStampFinished=function(l){l.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.id(this,this.focusOnStampFinished)),this.doFocus())};
_.X.doFocus=function(){var l=_.ymi(this.sectionsElement);l.length&&l[0].focus()};
_.X.computeMenuStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.X.computeIsCommentNotificationOnProfileCard=function(l){return _.a("enable_profile_cards_on_comments")&&l.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.X.computeHideMenu=function(l,e){return l||!(!e||!e.showLoadingSpinner)};
_.X.onPopupClosed=function(){this.isPopUpOpen=!1;_.Wb(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.X.onPopupOpened=function(l,e){this.isPopUpOpen=!0;e.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.$u(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.oM({type:"CHANNEL_REPORT_RESET"})))};
_.X.onYtNavigate=function(l,e){this.shouldCloseOnNavigateEvent(e.endpoint)&&_.Wb(this.hostElement,"yt-close-all-popups-action")};
_.X.handleEndpoint=function(l){l=_.I(l,_.GW);!this.isCommentNotificationOnProfileCard&&l&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17984_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.X.handleActions=function(l){for(var e=0,O=l.length;e<O;e++){var E=_.I(l[e],qfH);E&&this.handleGetMultiPageMenuAction(E);(E=_.I(l[e],_.ohS))&&this.handleAppendContinuationItemsAction(E)}};
_.X.onServiceRequestSentOrCompleted=function(l,e){l.detail&&l.detail.endpoint&&this.handleEndpoint(l.detail.endpoint);e.actions&&this.handleActions(e.actions)};
_.X.handleGetMultiPageMenuAction=function(l){var e=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ud(this.submenuElement).appendChild(e);(l=l.menu.multiPageMenuRenderer)&&this.logSubmenu(l);e.data=l;e.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.X.handleAppendContinuationItemsAction=function(l){if(this.data&&l.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&l.continuationItems&&this.data.sections){var e=this.data.sections.length-1;this.data.sections[e].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),e--);if(this.data.sections[e].multiPageMenuNotificationSectionRenderer&&l.continuationItems){l=_.b(l==null?void 0:l.continuationItems);for(var O=l.next();!O.done;O=l.next())if(O=O.value,_.I(O,io4)){var E=
void 0,J=void 0,z=void 0,M=void 0,Z=void 0;((E=this)==null?0:(J=E.data)==null?0:(z=J.sections)==null?0:(M=z[e])==null?0:(Z=M.multiPageMenuNotificationSectionRenderer)==null?0:Z.items)&&this.push("data.sections."+e+".multiPageMenuNotificationSectionRenderer.items",O)}else if(_.I(O,_.lm0)||_.I(O,_.o2))this.push("data.sections",O),e++}}};
_.X.logSubmenu=function(l){if(!_.a("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var e=this.ytRendererBehavior.getScreenLayer(),O=_.P9(e),E=_.B9(e);if((l=l.trackingParams)&&O&&E){var J=_.cf(l);_.a("combine_ve_grafts")?_.yN().graftServerVe(l,E,e):_.DG(O,E,J)}}};
_.X.emptySubmenuContainer=function(){for(var l=_.ud(this.submenuElement);l.firstChild;)l.removeChild(l.firstChild)};
_.X.onMenuBackTap=function(l){_.$u(this.hostElement,"yt-submenu-closed");l.stopPropagation()};
_.X.onSubmenuClosed=function(l){_.OV(l)!==this.hostElement&&(this.covered=!1,_.$u(this.hostElement,"yt-refit"),l.stopPropagation())};
_.X.onRetrieveLocation=function(l,e){e.hasComments&&(e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),l.stopPropagation())};
_.X.shouldCloseOnNavigateEvent=function(l){if(!l)return!0;if(_.I(l,_.S7H)||_.I(l,_.Qs1)||_.I(l,_.DD6)||_.I(l,_.Db))return!1;var e;return((e=_.I(l==null?void 0:l.commandMetadata,_.V4))==null?0:e.ignoreNavigation)?!1:!0};
_.X.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.X.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.X.refitAfterRender=function(){var l=this;_.OK(this,function(){_.$u(l.hostElement,"yt-refit")})};
TX.prototype.refitAfterRender=TX.prototype.refitAfterRender;TX.prototype.onRetrieveLocation=TX.prototype.onRetrieveLocation;TX.prototype.onSubmenuClosed=TX.prototype.onSubmenuClosed;TX.prototype.onMenuBackTap=TX.prototype.onMenuBackTap;TX.prototype.onServiceRequestSentOrCompleted=TX.prototype.onServiceRequestSentOrCompleted;TX.prototype.onYtNavigate=TX.prototype.onYtNavigate;TX.prototype.onPopupOpened=TX.prototype.onPopupOpened;TX.prototype.onPopupClosed=TX.prototype.onPopupClosed;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],TX.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],TX.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],TX.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],TX.prototype,"enableFocusFix",void 0);_.L([_.T(),_.q("design:type",Object)],TX.prototype,"covered",void 0);_.L([_.T({computed:"computeHideMenu(covered, data)"}),_.q("design:type",Object)],TX.prototype,"hideMenu",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.q("design:type",String)],TX.prototype,"menuStyle",void 0);
_.L([_.T({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.q("design:type",Object)],TX.prototype,"isCommentNotificationOnProfileCard",void 0);_.L([_.T(),_.q("design:type",Boolean)],TX.prototype,"isPopUpOpen",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TX.prototype,"scrolledByTouch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TX.prototype,"disableBackdropFilter",void 0);
_.L([_.aB("#sections"),_.q("design:type",HTMLElement)],TX.prototype,"sectionsElement",void 0);_.L([_.aB("#spinner"),_.q("design:type",HTMLElement)],TX.prototype,"spinnerElement",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],TX.prototype,"headerElement",void 0);_.L([_.aB("#container"),_.q("design:type",HTMLElement)],TX.prototype,"JSC$17984_containerElement",void 0);_.L([_.aB("#submenu"),_.q("design:type",HTMLElement)],TX.prototype,"submenuElement",void 0);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TX.prototype,"onPopupClosed",null);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],TX.prototype,"onPopupOpened",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],TX.prototype,"onYtNavigate",null);
_.L([_.wP("yt-service-request-completed"),_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],TX.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.wP("yt-menu-back-tapped"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TX.prototype,"onMenuBackTap",null);
_.L([_.wP("yt-submenu-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TX.prototype,"onSubmenuClosed",null);_.L([_.wP("yt-retrieve-location"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],TX.prototype,"onRetrieveLocation",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TX.prototype,"refitAfterRender",null);
_.L([_.U({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],TX);
_.Y(TX,"ytd-multi-page-menu-renderer",function(){if(WYF!==void 0)return WYF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return WYF=l},{mode:1});var GE4;var sQ=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return l};
_.m(sQ,_.B);_.X=sQ.prototype;_.X.created=function(){this.showTooltips=!0};
_.X.computeAccessibility_=function(l){return this.get("accessibility.accessibilityData",l)||null};
_.X.onTap=function(){var l=_.dQ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(l&&l.length===1&&l[0])_.Wb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var e;if((e=this.data)==null?0:e.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var O;((O=this.data)==null?0:O.menuRequest)&&_.ii(this.hostElement,[this.data.menuRequest])}}};
_.X.handleTopbarMenuClosedAction=function(l){var e,O;(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(l)===((e=this.data)==null?void 0:(O=e.icon)==null?void 0:O.iconType)&&this.toggleIconState(!1)};
_.X.toggleIconState=function(l){_.a("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=l)};
_.X.handleUpdateTopbarAvatarAction=function(l){var e;l=(e=_.I(l,BIC))==null?void 0:e.avatarUrl;var O,E;e=(O=this.data)==null?void 0:(E=O.avatar)==null?void 0:E.thumbnails;l&&e&&(O={thumbnails:[Object.assign({},e[0],{url:l})]},this.set("data.avatar",O))};
_.Ji.Object.defineProperties(sQ.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ud(this.hostElement).querySelector("#button")}}});
sQ.prototype.onTap=sQ.prototype.onTap;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],sQ.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.HGR.YtButtonBehavior),_.q("design:type",Object)],sQ.prototype,"ytButtonBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sQ.prototype,"data",void 0);
_.L([_.aB("yt-icon-button#button"),_.q("design:type",Object)],sQ.prototype,"iconButton",void 0);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],sQ.prototype,"onTap",null);_.L([_.U({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],sQ);
_.Y(sQ,"ytd-topbar-menu-button-renderer",function(){if(GE4!==void 0)return GE4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GE4=l},{mode:1});var BuC;var GX=function(){return _.B.apply(this,arguments)||this};
_.m(GX,_.B);GX.prototype.getSelected=function(){return this.reasons.selected};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],GX.prototype,"data",void 0);_.L([_.aB("#reasons"),_.q("design:type",Object)],GX.prototype,"reasons",void 0);_.L([_.U({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],GX);
_.Y(GX,"ytd-ad-feedback-content",function(){if(BuC!==void 0)return BuC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BuC=l},{mode:1});var P8u;var BM=function(){return _.B.apply(this,arguments)||this};
_.m(BM,_.B);_.X=BM.prototype;_.X.onPopupOpened=function(){_.Wb(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.X.computeConfirmButton=function(l){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:l.confirmLabel}};
_.X.computeCancelButton=function(l){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:l.cancelLabel}};
_.X.onConfirmTap=function(){var l=this.content.getSelected();l!==void 0&&(l=this.data.reasons[l].endpoint)&&(_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}}),_.Wb(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.X.sendFeedbackSubmitToastAction=function(){var l;(l=this.data)!=null&&l.completionMessage&&_.Wb(this.hostElement,"yt-open-popup-action",[_.J$(this.data.completionMessage),this])};
_.X.onCancelTap=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
BM.prototype.onPopupOpened=BM.prototype.onPopupOpened;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BM.prototype,"data",void 0);_.L([_.aB("#content"),_.q("design:type",Object)],BM.prototype,"content",void 0);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],BM.prototype,"onPopupOpened",null);
_.L([_.U({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],BM);
_.Y(BM,"ytd-ad-feedback-renderer",function(){if(P8u!==void 0)return P8u;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return P8u=l},{mode:1});var UOu;var PM=function(){return _.B.apply(this,arguments)||this};
_.m(PM,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PM.prototype,"data",void 0);_.L([_.U({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],PM);
_.Y(PM,"ytd-ad-info-dialog-content",function(){if(UOu!==void 0)return UOu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return UOu=l},{mode:1});var YYf;var UQ=function(){return _.B.apply(this,arguments)||this};
_.m(UQ,_.B);UQ.prototype.computeConfirmButton=function(l){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:l.confirmLabel}};
UQ.prototype.onConfirmTap=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
UQ.prototype.computeShouldShowTitle=function(){var l;return!((l=this.data)==null||!l.title)};
UQ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
UQ.prototype.onPopupClosed=UQ.prototype.onPopupClosed;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],UQ.prototype,"data",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],UQ.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],UQ);
_.Y(UQ,"ytd-ad-info-dialog-renderer",function(){if(YYf!==void 0)return YYf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return YYf=l},{mode:1});var hMo;var Yi=function(){var l=_.B.apply(this,arguments)||this;l.actionButtonClass="action-button";l.dismissButtonId="dismiss-button";l.dialogDismiss=!0;return l};
_.m(Yi,_.B);_.X=Yi.prototype;_.X.computeInPlayer=function(l){return(l==null?void 0:l.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.X.computedLogo=function(){var l,e;return this.isDarkTheme()?(l=this.data)==null?void 0:l.logoDark:(e=this.data)==null?void 0:e.logo};
_.X.computedHeaderImage=function(){var l,e;return this.isDarkTheme()?(l=this.data)==null?void 0:l.headerImageDark:(e=this.data)==null?void 0:e.headerImage};
_.X.computeLogoIconId=function(){var l,e,O,E=(l=this.computedLogo())==null?void 0:(e=l.sources)==null?void 0:(O=e[0])==null?void 0:O.height;return E&&E%31===0?"logo-icon-with-padding":"logo-icon"};
_.X.computeLogoIconHeight=function(){var l,e,O,E=(l=this.computedLogo())==null?void 0:(e=l.sources)==null?void 0:(O=e[0])==null?void 0:O.height;return E&&E%31===0?"31":"24"};
_.X.onPopupClosed=function(){_.V2().resolve(_.X6).dispose()};
_.X.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.X.onShow=function(){this.inPlayer&&_.A$(6)};
_.X.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var l=0;l<this.data.impressionEndpoints.length;l++){var e=_.I(this.data.impressionEndpoints[l],_.L4);e&&this.ytComponentBehavior.resolveCommand(e)}};
_.X.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Wb(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Ji.Object.defineProperties(Yi.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var l,e;return!((l=this.data)==null||!l.headerImageDark)&&!((e=this.data)==null||!e.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.secondaryButton)}}});
Yi.prototype.onPopupClosed=Yi.prototype.onPopupClosed;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Yi.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.Dl.YtVisibilityBehavior),_.q("design:type",Object)],Yi.prototype,"ytVisibilityBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Yi.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],Yi.prototype,"actionButtonClass",void 0);_.L([_.T(),_.q("design:type",Object)],Yi.prototype,"dismissButtonId",void 0);_.L([_.T(),_.q("design:type",Object)],Yi.prototype,"dialogDismiss",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Yi.prototype,"hasHeaderImage",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Yi.prototype,"hasPremiumButton",null);
_.L([_.T({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.q("design:type",Boolean)],Yi.prototype,"inPlayer",void 0);_.L([_.aB("#dismiss-button"),_.q("design:type",HTMLElement)],Yi.prototype,"dismissButton",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Yi.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Yi);
_.Y(Yi,"ytd-enforcement-message-view-model",function(){if(hMo!==void 0)return hMo;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return hMo=l},{mode:1});var LY4;var tkO;var h2=function(){var l=_.B.apply(this,arguments)||this;l.TEST_ONLY={immediateValidation:function(){l.immediateValidation()},
onValidationResponse:function(e){l.onValidationResponse(e)},
onGenerateHandleFromNameResponse:function(e){l.onGenerateHandleFromNameResponse(e)}};
return l};
_.m(h2,_.B);_.X=h2.prototype;_.X.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.X.validate=function(){this.immediateValidation()};
_.X.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.X.setHandleInputValue=function(l){this.handleDir=this.getHandleDir(l);this.handleInput.value=l;this.validationState={status:"PENDING"};this.immediateValidation()};
_.X.getHandleDir=function(l){var e=l===""&&!1;return(e=_.g60.test.call(_.g60,l))?"rtl":"ltr"};
_.X.onDataChanged=function(){var l,e;this.handleDir=this.getHandleDir((e=(l=this.data)==null?void 0:l.handle)!=null?e:"");var O;this.validationState=((O=this.data)==null?0:O.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var E;((E=this.data)==null?0:E.validateOnInit)&&this.immediateValidation()};
_.X.stopPropagation=function(l){l.stopPropagation()};
_.X.onInput=function(){var l;this.handleDir=this.getHandleDir((l=this.handleInput.value)!=null?l:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.X.onFocusout=function(l){this.handleInput.contains(l.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.X.delayedValidation=function(){var l,e;this.debouncedValidation((e=(l=this.data)==null?void 0:l.validationDelayMs)!=null?e:1E3)};
_.X.immediateValidation=function(){this.debouncedValidation(0)};
_.X.debouncedValidation=function(l){var e=this;_.rP(this,"debouncedValidation",function(){var O,E=e.staticValidation((O=e.handleInput.value)!=null?O:"");if(E!==void 0)e.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:E};else{var J;if((J=e.data)!=null&&J.validateChannelHandleCommand){e.validationState={status:"LOADING"};var z;e.ytComponentBehavior.resolveCommand(e.data.validateChannelHandleCommand,{form:{handle:(z=e.handleInput.value)!=null?z:""},commandController:{onSuccess:function(M,
Z){e.onValidationResponse(Z)},
onServerError:function(M,Z){e.onValidationServerError(Z)}}})}else e.handleUnexpectedValidationError(new _.Hk("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",e.data))}},l)};
_.X.staticValidation=function(l){var e;if(((e=this.data)==null?void 0:e.channelHandleStaticValidationParams)!==void 0){e=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(l)&&e.validValueRegexpErrorMessage!==void 0)return e.validValueRegexpErrorMessage;if(e.minLength!==void 0&&l.length<e.minLength&&e.minLengthErrorMessage!==void 0)return e.minLengthErrorMessage;if(e.maxLength!==void 0&&l.length>e.maxLength&&e.maxLengthErrorMessage!==void 0)return e.maxLengthErrorMessage}};
_.X.onValidationResponse=function(l){var e=_.I(l.result,Paz);e===void 0?this.handleUnexpectedValidationError(new _.Hk("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",l)):this.handleValidationResultRenderer(e)};
_.X.onValidationServerError=function(l){this.handleUnexpectedValidationError(new _.Hk("ValidateChannelHandle request failed.",l))};
_.X.handleValidationResultRenderer=function(l){if(l.handle===void 0)this.handleUnexpectedValidationError(new _.Hk("ChannelHandleValidationResultRenderer does not contain handle.",l));else if(l.handle===this.handleInput.value)switch(l.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:l.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:l.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Hk("Unrecognized ChannelHandleValidationResult",l));break;default:_.VC(l.result)}};
_.X.handleUnexpectedValidationError=function(l){var e;this.validationState={status:"UNKNOWN",handle:(e=this.handleInput.value)!=null?e:""};_.hG(l)};
_.X.stopEventPropagation=function(l){l.stopPropagation()};
_.X.updateHandleOnChannelNameInputChange=function(l){if(!this.wasEdited){var e,O;this.debouncedGenerateHandleFromName(l,(O=(e=this.data)==null?void 0:e.validationDelayMs)!=null?O:1E3)}};
_.X.debouncedGenerateHandleFromName=function(l,e){var O=this;_.rP(this,"debouncedGenerateHandleFromName",function(){var E;(E=O.data)!=null&&E.validateChannelHandleCommand?O.ytComponentBehavior.resolveCommand(O.data.validateChannelHandleCommand,{form:{name:l},commandController:{onSuccess:function(J,z){O.onGenerateHandleFromNameResponse(z)},
onServerError:function(J,z){_.hG(new _.Hk("Error calling GenerateHandleFromName",z))}}}):_.hG(new _.Hk("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",O.data))},e)};
_.X.onGenerateHandleFromNameResponse=function(l){this.wasEdited||((l=_.I(l.result,UB0))?this.setHandleInputValue(l.handle):_.hG(new _.Hk("Invalid results when generate handle from name")))};
_.Ji.Object.defineProperties(h2.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var l;if(l=this.validationState)l=this.validationState,l=l.status==="OK"||l.status==="UNKNOWN";if(l)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.validationState)==null?void 0:l.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 l,e=(l=this.channelHandleEntity)==null?void 0:l.handleEdit;this.handleDir=this.getHandleDir(e!=null?e:"");return e}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var l,e;if(((l=this.data)==null?void 0:(e=l.channelHandleStaticValidationParams)==null?void 0:e.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
h2.prototype.stopEventPropagation=h2.prototype.stopEventPropagation;h2.prototype.onDataChanged=h2.prototype.onDataChanged;h2.prototype.applyHandleEdit=h2.prototype.applyHandleEdit;h2.prototype.onValueChanged=h2.prototype.onValueChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],h2.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Boolean)],h2.prototype,"wasEdited",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],h2.prototype,"handleDir",void 0);_.L([_.aB("#handle-input"),_.q("design:type",Object)],h2.prototype,"handleInput",void 0);_.L([_.T(),_.R("validationState"),_.q("design:type",Object),_.q("design:paramtypes",[])],h2.prototype,"value",null);
_.L([_.AA("value"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h2.prototype,"onValueChanged",null);_.L([_.R("validationState"),_.q("design:type",Object),_.q("design:paramtypes",[])],h2.prototype,"errorIndicator",null);_.L([_.T({reflectToAttribute:!0}),_.R("errorIndicator"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],h2.prototype,"borderErrorIndicator",null);
_.L([_.T({selectorArgs:["data.channelHandleEntityKey"],selector:function(l,e){return _.wV(l.entities,"channelHandle",e)}}),
_.q("design:type",Object)],h2.prototype,"channelHandleEntity",void 0);_.L([_.R("channelHandleEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],h2.prototype,"handleEdit",null);_.L([_.AA("handleEdit"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h2.prototype,"applyHandleEdit",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h2.prototype,"onDataChanged",null);
_.L([_.R("data.channelHandleStaticValidationParams.validValueRegexp"),_.q("design:type",Object),_.q("design:paramtypes",[])],h2.prototype,"validValueRegexp",null);_.L([_.wP("yt-service-request-sent"),_.wP("yt-service-request-completed"),_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],h2.prototype,"stopEventPropagation",null);_.L([_.U({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],h2);
_.Y(h2,"ytd-channel-handle-input-renderer",function(){if(tkO!==void 0)return tkO;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return tkO=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var Ls=function(){var l=_.B.apply(this,arguments)||this;l.data=null;l.errorMessage=null;l.isLoading=!0;l.hideContainer=!1;l.enableNewChannelCreationOnIdForAll=_.a("enable_new_channel_creation_for_id4all");l.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};l.testOnly={setErrorMessage:function(e){l.resetErrorState();
l.setErrorState(e)}};
return l};
_.m(Ls,_.B);_.X=Ls.prototype;_.X.created=function(){this.logScreenVe()};
_.X.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")};
_.X.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var l;((l=this.zeroStepErrorMessageEntity)==null?0:l.value)&&this.set("errorMessage",_.xp(this.zeroStepErrorMessageEntity.value))};
_.X.onCreateTap=function(){var l=this;if(this.data&&this.data.channelCreationEndpoint){var e,O;if(!((e=this.data.createChannelButton)==null?0:(O=e.buttonRenderer)==null?0:O.isDisabled)){var E;if((E=this.nameInput)!=null&&E.value){this.setLoadingState();var J,z;e=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(J=this.handleInput)==null?void 0:J.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((z=this.handleInput)==null?void 0:z.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:e,commandController:{onSuccess:function(M,Z){l.onChannelCreationEndpointSuccess(Z);l.obakeImageSource&&_.Bm("channelCreatedWithObakeImage",{imageSourceType:l.obakeImageSource})},
onServerError:function(){l.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.X.endpointRequiresServiceRequestAction=function(l){return!!_.I(l,_.UU)||!!_.I(l,BIC)};
_.X.isNavigateAction=function(l){var e;return!!_.I(l,_.tE)||!!_.I((e=_.I(l,LR4))==null?void 0:e.command,_.tE)};
_.X.isPlaylistAction=function(l){return!!_.I(l,_.BC)||!!_.I(l,_.tK)};
_.X.onChannelCreationEndpointSuccess=function(l){if(l.createChannelError){var e;this.setErrorState((e=l.createChannelError)==null?void 0:e.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.a("enable_secondary_channel_creation_form")&&l.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(l.navigationEndpoint);if(l.actions){e=_.b(l.actions);for(var O=e.next();!O.done;O=e.next())if(O=O.value,this.endpointRequiresServiceRequestAction(O)&&this.ytComponentBehavior.resolveCommand(O),
this.isNavigateAction(O)){var E=void 0;O=_.I((E=_.I(O,LR4))==null?void 0:E.command,_.tE);E=void 0;this.isPlaylistAction((E=O)==null?void 0:E.endpoint)&&(_.Wb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),E=void 0,this.ytComponentBehavior.resolveCommand((E=O)==null?void 0:E.endpoint))}}l.actions&&l.actions.some(function(J){var z;return _.I(J,_.tE)||_.I((z=_.I(J,LR4))==null?void 0:z.command,_.tE)})||_.Wb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.X.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.X.onCancelTap=function(){var l,e,O;if(!((l=this.data)==null?0:(e=l.cancelButton)==null?0:(O=e.buttonRenderer)==null?0:O.isDisabled)){var E,J,z;l=(E=this.data)==null?void 0:(J=E.cancelButton)==null?void 0:(z=J.buttonRenderer)==null?void 0:z.command;if(!l||!_.I(l,_.$0g)){var M;this.nameInput&&((M=this.data)==null?0:M.name)&&(this.nameInput.value=this.data.name);var Z;this.handleInput&&((Z=this.data)==null?0:Z.channelHandleInput)&&(this.handleInput.data=_.I(this.data.channelHandleInput,Yfu));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.X.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.X.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.X.onClearProfilePhotoTap=function(){var l,e,O;((l=this.data)==null?0:(e=l.clearProfilePhotoButton)==null?0:(O=e.buttonRenderer)==null?0:O.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.X.onEditAvatarTap=function(){var l,e,O;((l=this.data)==null?0:(e=l.editAvatarButton)==null?0:(O=e.buttonRenderer)==null?0:O.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.X.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)};
_.X.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var l;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((l=this.data)==null?0:l.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.X.setErrorState=function(l){this.resetErrorState();if(l)this.set("errorMessage",l);else{var e;if((e=this.zeroStepErrorMessageEntity)==null?0:e.value)this.set("errorMessage",_.xp(this.zeroStepErrorMessageEntity.value));else{var O;((O=this.data)==null?0:O.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.X.fetchImageBlobWithAlr=function(l,e){e=e===void 0?5:e;var O=this,E,J,z,M,Z;return _.V(function(u){switch(u.nextAddress){case 1:return _.C(u,fetch(l,{method:"GET",mode:"cors"}),2);case 2:E=u.yieldResult;if(E.ok){u.jumpTo(3);break}if(e===0)throw Error();J=O.addJitter(Math.pow(2,5-e));return _.C(u,new Promise(function(d){setTimeout(d,J*1E3)}),4);
case 4:return u.return(O.fetchImageBlobWithAlr(l,e-1));case 3:if(!E.headers.get("content-type").split(";").some(function(d){return d.trim()==="text/plain"})){u.jumpTo(5);
break}z=O;M=z.fetchImageBlobWithAlr;return _.C(u,E.text(),6);case 6:return u.return(M.call(z,u.yieldResult,e-1));case 5:return _.C(u,E.blob(),7);case 7:return Z=u.yieldResult,u.return(Z)}})};
_.X.addJitter=function(l){var e=l*.3*Math.random();Math.random()>.5&&(e*=-1);return l+e};
_.X.openProfilePicturePicker=function(){var l=this,e,O,E,J,z;return _.V(function(M){if(M.nextAddress==1){e=l.data.scottyUploadUrl;if(!e)return M.return();O=document.documentElement.hasAttribute("dark");E=document.body.style.colorScheme;O&&(document.body.style.colorScheme="dark");J=qUz(vxz(tdC(Gi4(O?"dark":"light")),function(Z){var u,d,g,w,n;return _.V(function(k){if(k.nextAddress==1)return u=_.NC(VRC(new mE(Z.photoUrl,!1)).build(),"alr","yes"),l.obakeImageSource=l.pictureChangeSourceToObakeImageSourceType(Z.photoSource),
_.b1(k,2),l.setLoadingState(),_.C(k,l.fetchImageBlobWithAlr(u),4);if(k.nextAddress!=2)return d=k.yieldResult,g=new FileReader,g.addEventListener("load",function(){var y,c,f,P,h,N;return _.V(function(t){if(t.nextAddress==1){if(d.size>15728640)return l.setErrorState((y=l.data)==null?void 0:y.imageSizeErrorMessage),_.hG(Error("jl")),t.return();if(!g.result)return l.setErrorState((c=l.data)==null?void 0:c.genericImageLoadErrorMessage),_.hG(Error("kl")),t.return();f=g.result;_.b1(t,2);return _.C(t,Flz(d,
e),4)}if(t.nextAddress!=2)return P=t.yieldResult,l.handleImageUpdatedAction(f,P),l.resetErrorState(),_.Q2(t,0);h=_.u1(t);l.setErrorState((N=l.data)==null?void 0:N.uploadErrorMessage);if(h instanceof Error)_.UW(h);else{var r=new _.Hk(JSON.stringify(h));_.UW(r)}_.Cl(t)})}),g.readAsDataURL(d),_.Q2(k,0);
w=_.u1(k);l.setErrorState((n=l.data)==null?void 0:n.genericImageLoadErrorMessage);w instanceof Error?_.UW(w):_.YE(new _.Hk(JSON.stringify(w)));_.Cl(k)})}),function(){l.hideContainer=!1;
document.body.style.colorScheme=E});
_.b1(M,2);return _.C(M,J.openPicker(),4)}if(M.nextAddress!=2)return _.Q2(M,0);_.u1(M);l.setErrorState((z=l.data)==null?void 0:z.selectImageErrorMessage);_.Cl(M)})};
_.X.pictureChangeSourceToObakeImageSourceType=function(l){switch(l){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.X.logScreenVe=function(){_.on(_.yN(),124448)};
_.X.graftServerVe=function(){var l=_.B9(),e,O,E=(e=this.data)==null?void 0:(O=e.loggingDirectives)==null?void 0:O.trackingParams;E&&l&&(this.channelCreationFormVe=_.yN().graftServerVe(E,l),l={visualElement:this.channelCreationFormVe},_.IX().reportShown(l))};
_.X.isNameChanged=function(l){var e;return((e=this.data)==null?void 0:e.name)!==l};
_.X.isHandleChanged=function(l){var e,O=_.I((e=this.data)==null?void 0:e.channelHandleInput,Yfu);return O&&l?O.handle!==l:!1};
_.X.handleImageUpdatedAction=function(l,e){this.hideContainer=!1;this.previewDataUrl=l;this.encryptedBlobId=e};
_.X.handleImageSelectionErrorAction=function(l){this.hideContainer=!1;this.setErrorState(l)};
_.X.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.X.showContainer=function(){this.hideContainer=!1};
_.X.maybeWipeZeroStepErrorMessage=function(){var l,e=(l=this.data)==null?void 0:l.zeroStepErrorMessageEntityKey,O;e&&((O=this.zeroStepErrorMessageEntity)==null?0:O.value)&&this.ytdReduxBehavior.dispatch(_.IK("stringEntity",e,{key:e,value:""}))};
_.Ji.Object.defineProperties(Ls.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 l;return((l=this.photoThumbnail)==null?0:l.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 l;return!((l=this.data)==null||!l.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.descriptionInfo}}});
Ls.prototype.dataChanged=Ls.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ls.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Ls.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ls.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Ls.prototype,"errorMessage",void 0);
_.L([_.T(),_.q("design:type",Object)],Ls.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",String)],Ls.prototype,"previewDataUrl",void 0);_.L([_.T(),_.q("design:type",Number)],Ls.prototype,"obakeImageSource",void 0);_.L([_.T(),_.q("design:type",Object)],Ls.prototype,"hideContainer",void 0);_.L([_.aB("#title-input"),_.q("design:type",Object)],Ls.prototype,"nameInput",void 0);_.L([_.aB("#handle-input"),_.q("design:type",Object)],Ls.prototype,"handleInput",void 0);
_.L([_.T(),_.q("design:type",Boolean)],Ls.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.L([_.T({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.QO2}),_.q("design:type",Object)],Ls.prototype,"zeroStepErrorMessageEntity",void 0);_.L([_.R("data","data.isDefaultProfilePhoto","previewDataUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ls.prototype,"photoThumbnail",null);
_.L([_.R("data","data.isDefaultProfilePhoto","photoThumbnail"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ls.prototype,"userSetPhotoThumbnailUrl",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ls.prototype,"hideProfilePhotoButtonLayer",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Ls.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.L([_.y0("data","zeroStepErrorMessageEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ls.prototype,"dataChanged",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.descriptionInfo","zeroStepErrorMessageEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ls.prototype,"description",null);_.L([_.U({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Ls);
_.Y(Ls,"ytd-channel-creation-dialog-renderer",function(){if(LY4!==void 0)return LY4;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return LY4=l},{mode:1});var qYH;var t2=function(){var l=_.B.apply(this,arguments)||this;l.isLoading=!1;l.isDisabled=!1;return l};
_.m(t2,_.B);t2.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
t2.prototype.updateDisabled=function(){var l;this.isDisabled=this.isLoading||((l=this.handleInput)==null?void 0:l.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
t2.prototype.onSaveClick=function(){var l=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var e;((e=this.data)==null?void 0:e.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var O;if((O=l.data)==null?0:O.nextEndpoint){var E;l.ytComponentBehavior.resolveCommand((E=l.data)==null?void 0:E.nextEndpoint)}else l.isLoading=
!1,l.closeDialog()},
onServerError:function(){l.isLoading=!1;l.handleInput.validate();var O;l.errorMessage=(O=l.data)==null?void 0:O.errorMessage}}}))}};
t2.prototype.closeDialog=function(){_.Wb(this.hostElement,"yt-close-popup-action",[this.is])};
t2.prototype.updateDisabled=t2.prototype.updateDisabled;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],t2.prototype,"data",void 0);_.L([_.aB("#handle-input"),_.q("design:type",Object)],t2.prototype,"handleInput",void 0);_.L([_.AA("isLoading"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],t2.prototype,"updateDisabled",null);
_.L([_.U({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],t2);
_.Y(t2,"ytd-channel-handle-edit-dialog-renderer",function(){if(qYH!==void 0)return qYH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qYH=l},{mode:1});var vlf;var qn=function(){return _.B.apply(this,arguments)||this};
_.m(qn,_.B);qn.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qn.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],qn);
_.Y(qn,"ytd-channel-switcher-footer-renderer",function(){if(vlf!==void 0)return vlf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return vlf=l},{mode:1});var Nui;var rx4;var vM=function(){return _.B.apply(this,arguments)||this};
_.m(vM,_.B);vM.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
vM.prototype.onIronChange=vM.prototype.onIronChange;_.L([_.T(),_.q("design:type",Object)],vM.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Function)],vM.prototype,"onDontAskAgainChanged",void 0);_.L([_.aB("#checkbox"),_.q("design:type",Object)],vM.prototype,"checkbox",void 0);_.L([_.wP("iron-change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],vM.prototype,"onIronChange",null);
_.L([_.U({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],vM);
_.Y(vM,"ytd-identity-prompt-footer-renderer",function(){if(rx4!==void 0)return rx4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rx4=l},{mode:1});var Nn=function(){var l=_.B.apply(this,arguments)||this;l.dontAskAgain=!1;l.showPopup=!1;l.boundDontAskAgainChanged=function(e){l.dontAskAgainChanged(e)};
l.boundOnAccountItemTap=function(e){l.onAccountItemTap(e)};
return l};
_.m(Nn,_.B);_.X=Nn.prototype;
_.X.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]]"}}}}}};
_.X.ready=function(){var l=this;_.ud(this.hostElement).querySelector("#container").addEventListener("scroll",function(){l.ytRendererBehavior.markDirty()})};
_.X.dontAskAgainChanged=function(l){this.dontAskAgain=l};
_.X.onAccountItemTap=function(l){if(l){var e={};this.dontAskAgain&&(e={dont_ask_again:this.dontAskAgain});_.DC(l,e)}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.X.redirectOnlyAccount=function(l){l.sections&&l.sections.length>0&&(l=_.I(l.sections[0],_.uiH),(l==null?0:l.contents)&&(l==null?void 0:l.contents.length)<=1?(l=_.Qt(window.location.href),(l==null?0:l.next)&&_.wQT(l.next)?_.DC(l.next):_.DC("/")):this.showPopup=!0)};
Nn.prototype.dataChanged=Nn.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Nn.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Object)],Nn.prototype,"dontAskAgain",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Nn.prototype,"showPopup",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Object)],Nn.prototype,"boundDontAskAgainChanged",void 0);_.L([_.T({reflectToAttribute:!1}),_.q("design:type",Object)],Nn.prototype,"boundOnAccountItemTap",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Nn.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Nn);
_.Y(Nn,"ytd-channel-switcher-renderer",function(){if(Nui!==void 0)return Nui;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Nui=l},{mode:1});var DOo;var rm=function(){return _.B.apply(this,arguments)||this};
_.m(rm,_.B);_.Ji.Object.defineProperties(rm.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.L([_.T(),_.q("design:type",Object)],rm.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],rm.prototype,"steps",null);_.L([_.U({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],rm);
_.Y(rm,"ytd-channel-transfer-stepper-renderer",function(){if(DOo!==void 0)return DOo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DOo=l},{mode:1});var SYu;var D5=function(){var l=_.B.apply(this,arguments)||this;l.data=null;l.isError=!1;l.isLoading=!1;return l};
_.m(D5,_.B);_.X=D5.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.X.computeProfileName=function(l){return l?l.givenNameValue+" "+l.familyNameValue:""};
_.X.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)};
_.X.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)};
D5.prototype.onYtServiceRequestError=D5.prototype.onYtServiceRequestError;D5.prototype.onYtServiceRequestSent=D5.prototype.onYtServiceRequestSent;D5.prototype.dataChanged=D5.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],D5.prototype,"data",void 0);
_.L([_.T({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.q("design:type",String)],D5.prototype,"profileName",void 0);_.L([_.T(),_.q("design:type",Object)],D5.prototype,"isError",void 0);_.L([_.T(),_.q("design:type",Object)],D5.prototype,"isLoading",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],D5.prototype,"dataChanged",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],D5.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],D5.prototype,"onYtServiceRequestError",null);_.L([_.U({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],D5);
_.Y(D5,"ytd-channel-warm-welcome-cont-renderer",function(){if(SYu!==void 0)return SYu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return SYu=l},{mode:1});var Qk0;var Sh=function(){var l=_.B.apply(this,arguments)||this;l.data=null;return l};
_.m(Sh,_.B);Sh.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Sh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Sh.prototype,"data",void 0);_.L([_.U({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Sh);
_.Y(Sh,"ytd-channel-warm-welcome-renderer",function(){if(Qk0!==void 0)return Qk0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Qk0=l},{mode:1});var xOu;var Qv=function(){return _.B.apply(this,arguments)||this};
_.m(Qv,_.B);_.Ji.Object.defineProperties(Qv.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.authorThumbnail)||{}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qv.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Qv.prototype,"thumbnailDetails",null);_.L([_.U({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Qv);
_.Y(Qv,"ytd-comment-preview-renderer",function(){if(xOu!==void 0)return xOu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return xOu=l},{mode:1});var l2C;var xi=function(){return _.B.apply(this,arguments)||this};
_.m(xi,_.B);xi.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Ji.Object.defineProperties(xi.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.submitButton}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xi.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],xi.prototype,"submitButton",null);_.L([_.U({is:"ytd-notice-renderer",disableElementRegistration:!0})],xi);
_.Y(xi,"ytd-notice-renderer",function(){if(l2C!==void 0)return l2C;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return l2C=l},{mode:1});var emH;var lc=function(){return _.B.apply(this,arguments)||this};
_.m(lc,_.B);lc.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lc.prototype,"data",void 0);_.L([_.U({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],lc);
_.Y(lc,"ytd-preview-comment-dialog-content",function(){if(emH!==void 0)return emH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return emH=l},{mode:1});var OC4;var eL=function(){return _.B.apply(this,arguments)||this};
_.m(eL,_.B);eL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
eL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],eL.prototype,"data",void 0);_.L([_.U({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],eL);
_.Y(eL,"ytd-preview-comment-dialog-renderer",function(){if(OC4!==void 0)return OC4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return OC4=l},{mode:1});var EGi;var JLu=_.a("web_button_rework")&&_.LH("BUTTON_REWORK")||_.a("web_button_rework_with_live"),OF=function(){var l=_.B.apply(this,arguments)||this;l.closeLabel=_.ml("CLOSE");l.selectedAmountIndex=1;l.privacyCheckboxValue=!1;l.useAmsterdamStyle=JLu;l.amountPlaceholderIndex=-1;return l};
_.m(OF,_.B);_.X=OF.prototype;_.X.onAmountClick=function(l){this.selectedAmountIndex=_.ud(this.hostElement).querySelector("#amounts").indexForElement(l.currentTarget)};
_.X.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Wb(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.X.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Wb(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Wb(this.hostElement,"yt-close-popup-action",[this.is]);var l;(l=_.bV())==null||l.getPlayerPromise().then(function(e){e.pauseVideo()})}};
_.X.donationCallback=function(l){l.success?(this.hostElement.hasAttribute("live-chat")&&l.response&&l.response.data&&l.response.data.actions&&_.Wb(this.hostElement,"yt-live-chat-open-popup",[l.response.data.actions[0]]),_.Wb(this.hostElement,"yt-close-popup-action",[this.is]),_.Wb(this.hostElement,"yt-live-chat-close-buy-flow")):l.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(l.errorMessageRenderer)};
_.X.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ud(this.hostElement).querySelector("#custom-amount-input").focus()};
_.X.updateConfirmationDialogTextWithAmount=function(l){var e=this.getConfirmDialogRuns();e&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(e),"text"],this.getFormattedAmount(l))};
_.X.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.X.getAmountPlaceholderIndex=function(l){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=l.findIndex(function(e){return e.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.X.getFormattedAmount=function(l){var e;return(new _.vt(4,((e=this.data)==null?void 0:e.currencyCode)||"")).format(l)};
_.X.isAmountValid=function(l){if(l==="")return!1;l=Number(l)*1E6;var e=this.get("minAmountMicros",this.data),O=this.get("maxAmountMicros",this.data);return e&&l<e||O&&l>O?!1:!0};
_.X.setInputError=function(){this.shouldShowValidationError?_.ud(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ud(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.X.setInitialCheckboxValue=function(){var l;this.privacyCheckboxValue=!((l=this.data)==null||!l.privacyCheckboxInitialState)};
_.X.updateCustomAmountInputFromBinding=function(l){this.customAmountInput=l.detail.value};
_.X.updatePrivacyCheckboxValueFromBinding=function(l){this.privacyCheckboxValue=l.detail.value};
_.Ji.Object.defineProperties(OF.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var l=this,e,O;return((e=this.data)==null?void 0:(O=e.suggestedAmounts)==null?void 0:O.map(function(E,J){return{buttonRenderer:{style:l.selectedAmountIndex===J?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:E.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 l;return!((l=this.data)==null||!l.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 l=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(l&&this.amountMicros!==null)return Object.assign({},l,{ypcGetCartEndpoint:Object.assign({},l.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 l=this.get("confirmLargeAmount",this.data);if(l&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),l}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l=this.get("donateButton.buttonRenderer",this.data);if(l)return Object.assign({},l,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
OF.prototype.setInitialCheckboxValue=OF.prototype.setInitialCheckboxValue;OF.prototype.setInputError=OF.prototype.setInputError;OF.prototype.setFocusOnCustomAmountInput=OF.prototype.setFocusOnCustomAmountInput;_.L([_.K(uJf),_.q("design:type",Object)],OF.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],OF.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],OF.prototype,"closeLabel",void 0);_.L([_.T(),_.q("design:type",Object)],OF.prototype,"selectedAmountIndex",void 0);_.L([_.T(),_.q("design:type",String)],OF.prototype,"customAmountInput",void 0);_.L([_.T(),_.q("design:type",Object)],OF.prototype,"privacyCheckboxValue",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],OF.prototype,"useAmsterdamStyle",void 0);_.L([_.AA("customAmount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OF.prototype,"setFocusOnCustomAmountInput",null);_.L([_.R("data","selectedAmountIndex"),_.q("design:type",Array),_.q("design:paramtypes",[])],OF.prototype,"suggestedAmountButtons",null);
_.L([_.R("data","selectedAmountIndex"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],OF.prototype,"isCustomAmountSelected",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],OF.prototype,"showPrivacyCheckbox",null);_.L([_.R("data","selectedAmountIndex","customAmount"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"amountMicros",null);
_.L([_.R("isCustomAmountSelected","customAmountInput"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"customAmount",null);_.L([_.R("customAmount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],OF.prototype,"shouldShowValidationError",null);_.L([_.R("customAmount"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],OF.prototype,"isDonateButtonEnabled",null);
_.L([_.R("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"donateCommand",null);_.L([_.R("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"donateCommandWithConfirmation",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"largeDonationThreshold",null);
_.L([_.R("customAmount","donateCommand","amountMicros"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"confirmLargeAmountCommand",null);_.L([_.R("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.q("design:type",Object),_.q("design:paramtypes",[])],OF.prototype,"donateButtonRenderer",null);_.L([_.AA("shouldShowValidationError"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OF.prototype,"setInputError",null);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],OF.prototype,"setInitialCheckboxValue",null);_.L([_.U({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],OF);
_.Y(OF,"ytd-donation-amount-picker-renderer",function(){if(EGi!==void 0)return EGi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return EGi=l},{mode:1});var X5F;var EF=function(){return _.B.apply(this,arguments)||this};
_.m(EF,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],EF.prototype,"ytComponentBehavior",void 0);_.L([_.T({}),_.q("design:type",Object)],EF.prototype,"data",void 0);_.L([_.U({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],EF);
_.Y(EF,"ytd-donation-post-transaction-content",function(){if(X5F!==void 0)return X5F;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return X5F=l},{mode:1});var zmf;var J1=function(){return _.B.apply(this,arguments)||this};
_.m(J1,_.B);J1.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.L([_.T({}),_.q("design:type",Object)],J1.prototype,"data",void 0);_.L([_.U({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],J1);
_.Y(J1,"ytd-donation-post-transaction-renderer",function(){if(zmf!==void 0)return zmf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return zmf=l},{mode:1});var bCo;var Mfo;var X2=function(){return _.B.apply(this,arguments)||this};
_.m(X2,_.B);X2.prototype.computeIsStreamingProvider=function(l){return!!l.isStreamingShelf};
X2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],X2.prototype,"data",void 0);_.L([_.T({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],X2.prototype,"isStreamingProvider",void 0);
_.L([_.U({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],X2);
_.Y(X2,"ytd-media-provider-renderer",function(){if(Mfo!==void 0)return Mfo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Mfo=l},{mode:1});var Vfu;var zA=function(){return _.B.apply(this,arguments)||this};
_.m(zA,_.B);zA.prototype.observeLightsourcePalette=function(){var l,e=(l=this.data)==null?void 0:l.vibrantsourceColorPaletteData;e&&_.PF(this.hostElement,e)};
zA.prototype.observeLightsourcePalette=zA.prototype.observeLightsourcePalette;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zA.prototype,"data",void 0);
_.L([_.AA("data.vibrantsourceColorPaletteData"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zA.prototype,"observeLightsourcePalette",null);_.L([_.U({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],zA);
_.Y(zA,"ytd-streaming-pop-up-dialog",function(){if(Vfu!==void 0)return Vfu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Vfu=l},{mode:1});var bc=function(){return _.B.apply(this,arguments)||this};
_.m(bc,_.B);bc.prototype.onPopupOpened_=function(){var l;((l=this.data)==null?0:l.serviceEndpoint)&&_.V2().resolve(_.Zh).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bc.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
bc.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"}}}}};
bc.prototype.onPopupOpened_=bc.prototype.onPopupOpened_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.qU),_.q("design:type",Object)],bc.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],bc.prototype,"data",void 0);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bc.prototype,"onPopupOpened_",null);_.L([_.U({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],bc);
_.Y(bc,"ytd-brandconnect-popup-renderer",function(){if(bCo!==void 0)return bCo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return bCo=l},{mode:1});var ZCu;var Mb=function(){return _.B.apply(this,arguments)||this};
_.m(Mb,_.B);_.X=Mb.prototype;_.X.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){for(var l=0;l<this.getOptionRenderers().length;l++)this.notifyPath("data.options."+l+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+l+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.X.updateSubmitButton=function(l){this.set("data.submitButton.buttonRenderer.isDisabled",!l)};
_.X.computeAlt=function(l){return _.lG(l)};
_.X.onDismissTap=function(){_.Wb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.getOptionRenderers=function(l){return(l=l||this.data)&&l.options?l.options.reduce(function(e,O){O.checkboxSurveyOptionRenderer&&e.push(O.checkboxSurveyOptionRenderer);return e},[]):[]};
_.X.onOptionChange=function(l){var e=this,O=!1;if(l.detail.checked)for(var E=this.getOptionRenderers().find(function(Z){return Z.value===l.detail.value}),J=this.getOptionRenderers(),z=0;z<J.length;z++){var M=J[z];
this.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked");M.checked&&((E==null?0:E.isExclusiveOption)?!M.isExclusiveOption:M.isExclusiveOption)?this.set("data.options."+z+".checkboxSurveyOptionRenderer.checked",!1):M.checked&&(O=!0)}else O=this.getOptionRenderers().some(function(Z,u){e.notifyPath("data.options."+u+".checkboxSurveyOptionRenderer.checked");return Z.checked});
this.updateSubmitButton(O)};
_.X.onSubmitTap=function(){var l=this.getOptionRenderers().filter(function(z){return z.checked});
if(l.length!==0){var e=l.map(function(z){return z.responseEndpoint});
l=[];for(var O=1;O<e.length;O++){var E=void 0,J=(E=_.I(e[O],_.Yx))==null?void 0:E.feedbackToken;J&&l.push(J)}e=[e[0]];l.length&&e.push({extra_feedback_tokens:l});_.ii(this.hostElement,e);_.Wb(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);l=this.data&&this.data.submitActions||[];if(_.a("kevlar_command_handler_migration_killswitch"))_.wQ(this.hostElement,l,this.hostElement);else for(l=_.b(l),e=l.next();!e.done;e=l.next())this.ytComponentBehavior.resolveCommand(e.value)}};
Mb.prototype.onOptionChange=Mb.prototype.onOptionChange;Mb.prototype.dataChanged=Mb.prototype.dataChanged;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],Mb.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Mb.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.L([_.K(HQu),_.q("design:type",Object)],Mb.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Mb.prototype,"data",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Mb.prototype,"dataChanged",null);
_.L([_.wP("ytd-checkbox-survey-option-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Mb.prototype,"onOptionChange",null);_.L([_.U({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Mb);
_.Y(Mb,"ytd-checkbox-survey-renderer",function(){if(ZCu!==void 0)return ZCu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ZCu=l},{mode:1});var uKu;var CFh;var Vc=function(){return _.B.apply(this,arguments)||this};
_.m(Vc,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.L([_.K(j3f),_.q("design:type",Object)],Vc.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Vc.prototype,"data",void 0);_.L([_.U({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Vc);
_.Y(Vc,"ytd-dismissal-reason-text-renderer",function(){if(CFh!==void 0)return CFh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return CFh=l},{mode:1});var oGu;var ZI=function(){return _.B.apply(this,arguments)||this};
_.m(ZI,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.L([_.K(j3f),_.q("design:type",Object)],ZI.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ZI.prototype,"data",void 0);_.L([_.U({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],ZI);
_.Y(ZI,"ytd-dismissal-reason-video-renderer",function(){if(oGu!==void 0)return oGu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return oGu=l},{mode:1});var uc=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(uc,_.B);_.X=uc.prototype;_.X.created=function(){this.selectedFeedbackTokens=new ts};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.X.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.X.onDismissalReasonSelected=function(l,e){_.$u(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(e);this.hasReasonsSelected=!0};
_.X.onDismissalReasonDeselected=function(l,e){_.$u(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(e);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.X.onCancelTap=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
_.X.onSubmitTap=function(){var l=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(l={feedback_tokens:l},_.V2().resolve(_.Zh).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},l,{element:this.hostElement})}));_.Wb(this.hostElement,"yt-close-popup-action")};
uc.prototype.onDismissalReasonDeselected=uc.prototype.onDismissalReasonDeselected;uc.prototype.onDismissalReasonSelected=uc.prototype.onDismissalReasonSelected;uc.prototype.dataChanged=uc.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],uc.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Boolean)],uc.prototype,"hasReasonsSelected",void 0);_.L([_.T(),_.q("design:type",ts)],uc.prototype,"selectedFeedbackTokens",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],uc.prototype,"darkerDarkTheme",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uc.prototype,"dataChanged",null);
_.L([_.wP("yt-dismissal-reason-selected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,String]),_.q("design:returntype")],uc.prototype,"onDismissalReasonSelected",null);_.L([_.wP("yt-dismissal-reason-deselected"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,String]),_.q("design:returntype")],uc.prototype,"onDismissalReasonDeselected",null);_.L([_.U({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],uc);
_.Y(uc,"ytd-dismissal-follow-up-renderer",function(){if(uKu!==void 0)return uKu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return uKu=l},{mode:1});var $fu;var C7=function(){return _.B.apply(this,arguments)||this};
_.m(C7,_.B);_.X=C7.prototype;_.X.onCheckedChange=function(){this.multiselect||_.$u(this.hostElement,"yt-feedback-single-select-changed");_.ud(this.hostElement).querySelector("#freeform").focus();_.$u(this.hostElement,"yt-refit")};
_.X.showTextBox=function(l,e){return l&&e};
_.X.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))};
_.X.updateDataCheckedFromBinding=function(l){this.set("data.checked",l.detail.value)};
_.X.updateDataResultTextFromBinding=function(l){this.set("data.resultText",l.detail.value)};
C7.prototype.dataChanged=C7.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],C7.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],C7.prototype,"multiselect",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],C7.prototype,"dataChanged",null);
_.L([_.U({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],C7);
_.Y(C7,"ytd-feedback-option-renderer",function(){if($fu!==void 0)return $fu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $fu=l},{mode:1});var Wnu;var oJ=function(){return _.B.apply(this,arguments)||this};
_.m(oJ,_.B);oJ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
oJ.prototype.onSingleSelectCheckedChanged=function(l){l=_.OV(l);for(var e=0;e<this.data.options.length;e++)if(l.data!==_.I(this.data.options[e],pyP)){var O="data.options."+e+".feedbackOptionRenderer.checked";this.notifyPath(O);this.set(O,!1)}};
oJ.prototype.onSingleSelectCheckedChanged=oJ.prototype.onSingleSelectCheckedChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],oJ.prototype,"data",void 0);
_.L([_.wP("yt-feedback-single-select-changed"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],oJ.prototype,"onSingleSelectCheckedChanged",null);_.L([_.U({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],oJ);
_.Y(oJ,"ytd-feedback-question-renderer",function(){if(Wnu!==void 0)return Wnu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Wnu=l},{mode:1});var df4;var $c=function(){return _.B.apply(this,arguments)||this};
_.m($c,_.B);$c.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
$c.prototype.getSelectedFeedbackResults=function(){for(var l={},e=0;e<this.data.questions.length;e++)for(var O=_.I(this.data.questions[e],yJH),E=0;E<O.options.length;E++){var J=_.I(O.options[E],pyP);J&&J.checked&&(l[J.optionKey]=J.resultText)}return l};
$c.prototype.onKeyUp=function(){var l=this;_.WF(_.UD,function(){_.$u(l.hostElement,"yt-refit")});
_.UD.start()};
$c.prototype.submitSurvey=function(){var l=this.getSelectedFeedbackResults();Object.keys(l).length>0&&this.data.submitFeedbackEndpoint&&(l={survey_results:l,is_feedback_token_unencrypted:!0},_.V2().resolve(_.Zh).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},l,{element:this.hostElement})}))};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],$c.prototype,"data",void 0);_.L([_.U({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],$c);
_.Y($c,"ytd-feedback-survey-renderer",function(){if(df4!==void 0)return df4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return df4=l},{mode:1});var gGf;var iCf;var WL=function(){return _.B.apply(this,arguments)||this};
_.m(WL,_.B);WL.prototype.computeAlt=function(l){return _.lG(l)};
WL.prototype.submitResponse=function(){var l,e;(l=this.data)!=null&&l.feedbackToken&&((e=this.data)==null?void 0:e.nextStageIndex)!==void 0&&(_.dQ(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.dQ(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
WL.prototype.onClick=function(){this.submitResponse()};
WL.prototype.onClick=WL.prototype.onClick;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WL.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],WL.prototype,"vertical",void 0);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WL.prototype,"onClick",null);
_.L([_.U({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],WL);
_.Y(WL,"ytd-single-select-answer-option-renderer",function(){if(iCf!==void 0)return iCf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iCf=l},{mode:1});var w5H;var dK=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return l};
_.m(dK,_.B);dK.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
dK.prototype.dataChanged=function(){var l,e;this.vertical=((e=(l=this.data)==null?void 0:l.answerOrientation)!=null?e:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
dK.prototype.submitFeedback=function(l){var e;((e=this.data)==null?0:e.responseEndpoint)&&l&&_.ii(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[l]}])};
dK.prototype.dataChanged=dK.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],dK.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],dK.prototype,"eventForwardingBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],dK.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],dK.prototype,"vertical",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],dK.prototype,"darkerDarkTheme",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dK.prototype,"dataChanged",null);_.L([_.U({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],dK);
_.Y(dK,"ytd-single-select-question-renderer",function(){if(w5H!==void 0)return w5H;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return w5H=l},{mode:1});var gK=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return l};
_.m(gK,_.B);_.X=gK.prototype;_.X.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"}}}};
_.X.dataChanged=function(){this.jumpToStage(0)};
_.X.jumpToStage=function(l){var e,O;if((e=this.data)==null?0:(O=e.stages)==null?0:O[l])this.currentStage=this.data.stages[l],this.refitAfterRender()};
_.X.computeAlt=function(l){return _.lG(l)};
_.X.computeSimpleMessage=function(l){var e;return(e=_.I(l,HoH))==null?void 0:e.messageText};
_.X.computeHideDismiss=function(l){var e;return(e=_.I(l,EkP))==null?void 0:e.hideParentDismissButton};
_.X.onDismissTap=function(){_.Wb(this.hostElement,"yt-close-popup-action");_.I(this.currentStage,HoH)||this.data.dismissalEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.X.refitAfterRender=function(){var l=this;_.OK(this,function(){_.$u(l.hostElement,"yt-refit")})};
gK.prototype.dataChanged=gK.prototype.dataChanged;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],gK.prototype,"eventForwardingBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],gK.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.K(HQu),_.q("design:type",Object)],gK.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gK.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],gK.prototype,"currentStage",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gK.prototype,"dataChanged",null);_.L([_.U({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],gK);
_.Y(gK,"ytd-multi-stage-survey-renderer",function(){if(gGf!==void 0)return gGf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return gGf=l},{mode:1});var ALi;var ic=function(){return _.B.apply(this,arguments)||this};
_.m(ic,_.B);ic.prototype.computeAlt=function(l){return _.lG(l)};
ic.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.V2().resolve(_.Zh).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Wb(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.kq4(!1)))};
ic.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ic.prototype.onTap=ic.prototype.onTap;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],ic.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ic.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ic.prototype,"vertical",void 0);
_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ic.prototype,"onTap",null);_.L([_.U({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ic);
_.Y(ic,"ytd-single-option-survey-option-renderer",function(){if(ALi!==void 0)return ALi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ALi=l},{mode:1});var nGH;var wK=function(){return _.B.apply(this,arguments)||this};
_.m(wK,_.B);_.X=wK.prototype;_.X.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){var l,e;this.vertical=(((l=this.data)==null?void 0:(e=l.surveyOrientation)==null?void 0:e.type)||"HORIZONTAL")==="VERTICAL"};
_.X.computeAlt=function(l){return _.lG(l)};
_.X.onDismissTap=function(){_.Wb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.V2().resolve(_.Zh).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.kq4(!1))};
wK.prototype.dataChanged=wK.prototype.dataChanged;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],wK.prototype,"eventForwardingBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(HQu),_.q("design:type",Object)],wK.prototype,"ytdHatsSurveyBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],wK.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wK.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],wK.prototype,"vertical",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wK.prototype,"dataChanged",null);_.L([_.U({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],wK);
_.Y(wK,"ytd-single-option-survey-renderer",function(){if(nGH!==void 0)return nGH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return nGH=l},{mode:1});var a24;var A1=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(A1,_.B);A1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
A1.prototype.onDismissTap=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
A1.prototype.onNavigate=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
A1.prototype.onNavigate=A1.prototype.onNavigate;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],A1.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],A1.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],A1.prototype,"darkerDarkTheme",void 0);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],A1.prototype,"onNavigate",null);_.L([_.U({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],A1);
_.Y(A1,"ytd-survey-follow-up-renderer",function(){if(a24!==void 0)return a24;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return a24=l},{mode:1});var kBF;var I2h;var mfH;var n7=function(){var l=_.B.apply(this,arguments)||this;l.polymer2="Element"in Polymer;return l};
_.m(n7,_.B);_.X=n7.prototype;_.X.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.X.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.X.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.X.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("minutes-changed",this.minutes))};
_.X.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("seconds-changed",this.seconds))};
_.X.updateMinutesFromBinding=function(l){this.minutes=l.detail.value};
_.X.updateSecondsFromBinding=function(l){this.seconds=l.detail.value};
n7.prototype.secondsChangedForBinding=n7.prototype.secondsChangedForBinding;n7.prototype.minutesChangedForBinding=n7.prototype.minutesChangedForBinding;n7.prototype.secondsChanged=n7.prototype.secondsChanged;_.L([_.T(),_.q("design:type",String)],n7.prototype,"minutes",void 0);_.L([_.T(),_.q("design:type",String)],n7.prototype,"seconds",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],n7.prototype,"polymer2",void 0);
_.L([_.aB("#seconds"),_.q("design:type",Object)],n7.prototype,"secondsEl",void 0);_.L([_.AA("seconds"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n7.prototype,"secondsChanged",null);_.L([_.AA("minutes"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n7.prototype,"minutesChangedForBinding",null);
_.L([_.AA("seconds"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n7.prototype,"secondsChangedForBinding",null);_.L([_.Ps({is:"yt-timestamp-input",disableElementRegistration:!0})],n7);
_.Y(n7,"yt-timestamp-input",function(){if(mfH===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;I2h===void 0&&(I2h=document.createElement("template"));var E=I2h;O.call(e,E.content.cloneNode(!0),l.content.firstChild);mfH=l}l=mfH;return l},{mode:2});var aJ=function(){return _.B.apply(this,arguments)||this};
_.m(aJ,_.B);_.X=aJ.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18156_scroller.dialogElement=this.hostElement.parentNode};
_.X.dataChanged=function(){var l=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Mc().getPlayerPromise().then(function(e){e=e.getCurrentTime();l.minutes=Math.floor(e/60).toString();l.seconds=(Math.floor(e)%60).toString()})};
_.X.onTapSubmit=function(l){l.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(l={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(l.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(l.minutes=this.minutes,l.seconds=this.seconds),_.V2().resolve(_.Zh).resolveCommand(this.serviceEndpoint,{form:Object.assign({},l,{element:this.hostElement})}))};
_.X.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.X.onYtServiceRequestCompleted=function(l,e){e=e.actions;if(Array.isArray(e))for(var O=0,E=e.length;O<E;O++)_.I(e[O],_.Fn)&&(l.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(e[O]))};
_.X.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.X.toggleSubmitButton=function(l){this.set("submitButton.isDisabled",!l)};
_.X.handleInput=function(){var l=this.issueType,e=this.affiliation,O=this.minutes,E=this.seconds;O=!this.showTimestamp||!!O&&!!E;this.toggleSubmitButton(!!this.descriptionText&&!!l&&!!e&&O)};
_.X.computeServiceEndpoint=function(l){return this.get("submitButton.buttonRenderer.serviceEndpoint",l)};
_.X.computeSubmitButton=function(l){(l=this.get("submitButton.buttonRenderer",l))&&(l=Object.assign({},l,{serviceEndpoint:void 0}));return l};
_.X.computeShowTimestamp=function(l){return!!l};
_.X.onValueChangedForIssueType=function(l){this.issueType=l.detail.value};
_.X.onValueChangedForAffiliation=function(l){this.affiliation=l.detail.value};
_.X.updateDescriptionTextFromBinding=function(l){this.descriptionText=l.detail.value};
_.X.updateFullNameTextFromBinding=function(l){this.fullNameText=l.detail.value};
_.X.updateMinutesFromBinding=function(l){this.minutes=l.detail.value};
_.X.updateSecondsFromBinding=function(l){this.seconds=l.detail.value};
aJ.prototype.handleInput=aJ.prototype.handleInput;aJ.prototype.onYtServiceRequestError=aJ.prototype.onYtServiceRequestError;aJ.prototype.onYtServiceRequestCompleted=aJ.prototype.onYtServiceRequestCompleted;aJ.prototype.onYtServiceRequestSent=aJ.prototype.onYtServiceRequestSent;aJ.prototype.dataChanged=aJ.prototype.dataChanged;_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],aJ.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.L([_.aB("#scroller"),_.q("design:type",Object)],aJ.prototype,"JSC$18156_scroller",void 0);_.L([_.aB("#description"),_.q("design:type",HTMLInputElement)],aJ.prototype,"description",void 0);_.L([_.aB("#full-name"),_.q("design:type",Object)],aJ.prototype,"fullName",void 0);_.L([_.T(),_.q("design:type",Object)],aJ.prototype,"data",void 0);
_.L([_.T({computed:"computeShowTimestamp(data.timestampLabel)"}),_.q("design:type",Boolean)],aJ.prototype,"showTimestamp",void 0);_.L([_.T({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.q("design:type",Object)],aJ.prototype,"serviceEndpoint",void 0);_.L([_.T({computed:"computeSubmitButton(data)"}),_.q("design:type",Object)],aJ.prototype,"submitButton",void 0);_.L([_.T(),_.q("design:type",String)],aJ.prototype,"descriptionText",void 0);
_.L([_.T(),_.q("design:type",Number)],aJ.prototype,"issueType",void 0);_.L([_.T(),_.q("design:type",Number)],aJ.prototype,"affiliation",void 0);_.L([_.T(),_.q("design:type",String)],aJ.prototype,"fullNameText",void 0);_.L([_.T(),_.q("design:type",String)],aJ.prototype,"minutes",void 0);_.L([_.T(),_.q("design:type",String)],aJ.prototype,"seconds",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aJ.prototype,"dataChanged",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],aJ.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],aJ.prototype,"onYtServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],aJ.prototype,"onYtServiceRequestError",null);_.L([_.AA("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aJ.prototype,"handleInput",null);_.L([_.U({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],aJ);
_.Y(aJ,"ytd-legal-report-details-form-renderer",function(){if(kBF!==void 0)return kBF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kBF=l},{mode:1});var yLO;var kc=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return l};
_.m(kc,_.B);kc.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
kc.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var l=this.formRenderer.getForm();l&&this.data.submitEndpoint&&(_.V2().resolve(_.Zh).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},l,{element:this.hostElement})}),_.Wb(this.hostElement,"yt-close-popup-action"))}};
kc.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Wb(this.hostElement,"yt-close-popup-action"))};
kc.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
kc.prototype.onPopupClosed=kc.prototype.onPopupClosed;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],kc.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],kc.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);
_.L([_.aB("yt-form-renderer"),_.q("design:type",Object)],kc.prototype,"formRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],kc.prototype,"data",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kc.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-form-popup-content",disableElementRegistration:!0})],kc);
_.Y(kc,"ytd-form-popup-content",function(){if(yLO!==void 0)return yLO;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return yLO=l},{mode:1});var p5u;var IJ=function(){return _.B.apply(this,arguments)||this};
_.m(IJ,_.B);IJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
IJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
IJ.prototype.onPopupOpened=function(){_.$u(this.hostElement,"yt-invalidate-popup-tabbables")};
IJ.prototype.onYtServiceRequestCompleted=function(l,e){e.data&&e.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.$u(this.hostElement,"yt-invalidate-popup-tabbables"))};
IJ.prototype.onYtServiceRequestCompleted=IJ.prototype.onYtServiceRequestCompleted;IJ.prototype.onPopupOpened=IJ.prototype.onPopupOpened;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],IJ.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],IJ.prototype,"data",void 0);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],IJ.prototype,"onPopupOpened",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],IJ.prototype,"onYtServiceRequestCompleted",null);_.L([_.U({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],IJ);
_.Y(IJ,"ytd-form-popup-renderer",function(){if(p5u!==void 0)return p5u;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return p5u=l},{mode:1});var KnP;var mi=function(){var l=_.B.apply(this,arguments)||this;l.isLoading=!1;return l};
_.m(mi,_.B);_.X=mi.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Ys4(this.hostElement)};
_.X.onYtServiceRequestSent=function(){this.isLoading=!0};
_.X.onYtServiceRequestCompleted=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.X.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.wQ(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.X.closePopupHandler=function(){this.fireOnCloseActions()};
_.X.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var l=this.get("data.headerImage.thumbnails");l&&(l=_.up(l,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+l+")")}};
_.X.onYtNavigate=function(l){(l=_.OV(l))&&l.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
mi.prototype.onYtNavigate=mi.prototype.onYtNavigate;mi.prototype.onHeaderImageChanged=mi.prototype.onHeaderImageChanged;mi.prototype.closePopupHandler=mi.prototype.closePopupHandler;mi.prototype.onYtServiceRequestCompleted=mi.prototype.onYtServiceRequestCompleted;mi.prototype.onYtServiceRequestSent=mi.prototype.onYtServiceRequestSent;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],mi.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mi.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],mi.prototype,"isLoading",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLDivElement)],mi.prototype,"header",void 0);_.L([_.aB("#confirm-button"),_.q("design:type",_.pg)],mi.prototype,"confirmButton",void 0);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mi.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mi.prototype,"onYtServiceRequestCompleted",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],mi.prototype,"closePopupHandler",null);_.L([_.AA("data.headerImage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mi.prototype,"onHeaderImageChanged",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],mi.prototype,"onYtNavigate",null);
_.L([_.U({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],mi);
_.Y(mi,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(KnP!==void 0)return KnP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return KnP=l},{mode:1});var jlP;var yc=function(){var l=_.B.apply(this,arguments)||this;l.isLoading=!1;return l};
_.m(yc,_.B);_.X=yc.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Ys4(this.hostElement)};
_.X.onYtServiceRequestCompleted=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.X.onYtServiceRequestError=function(l){_.Zs(this.hostElement,l.detail.error.message)};
_.X.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.X.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Wb(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.X.onDataChanged=function(){this.isLoading=!1;var l=this.get("data.headerImage.thumbnails");l&&(l=_.up(l,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+l+")");l=_.P9();var e=_.B9(),O=this.get("data.trackingParams");O&&e&&l&&_.DG(l,e,_.cf(O))};
_.Ji.Object.defineProperties(yc.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
yc.prototype.onDataChanged=yc.prototype.onDataChanged;yc.prototype.onDomChange=yc.prototype.onDomChange;yc.prototype.onYtServiceRequestError=yc.prototype.onYtServiceRequestError;yc.prototype.onYtServiceRequestCompleted=yc.prototype.onYtServiceRequestCompleted;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],yc.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],yc.prototype,"isLoading",void 0);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],yc.prototype,"hasDescription",null);_.L([_.aB("tp-yt-paper-dialog-scrollable"),_.q("design:type",Object)],yc.prototype,"scrollable",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],yc.prototype,"header",void 0);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yc.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yc.prototype,"onYtServiceRequestError",null);
_.L([_.wP("dom-change"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],yc.prototype,"onDomChange",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yc.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],yc);
_.Y(yc,"ytd-gaming-account-link-setting-renderer",function(){if(jlP!==void 0)return jlP;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return jlP=l},{mode:1});var HC4;var cLo;var p7=function(){var l=_.B.apply(this,arguments)||this;l.isHeader=!1;l.getEndpointForm=function(){return BQu(l.data)};
return l};
_.m(p7,_.B);_.X=p7.prototype;_.X.triggerHintActions=function(){var l=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var e=_.dQ(l.hostElement,"yt-get-opened-popups-action");!(e&&e.length===1?e[0]:[]).some(function(O){O=O.openPopupAction.popupType;return O==="SURVEY"||O==="MEALBAR"||O==="HINT"})&&l.data.hintActions&&l.guideOpened&&(_.wQ(l.hostElement,l.data.hintActions,l.hostElement),l.data.hintActions=void 0)})};
_.X.getBadgeIconType=function(l){return l&&l.liveBroadcasting?"live":null};
_.X.onDown=function(){this.interaction.triggerDown()};
_.X.onUp=function(){this.interaction.triggerUp()};
_.X.onTap=function(l){if(this.data.serviceEndpoint){var e;_.a("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.I(this.data.serviceEndpoint,_.jT))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):G9u(this.data.serviceEndpoint,this);l.preventDefault()}else this.data.navigationEndpoint&&!_.Eh(_.ey(l),this.hostElement,["A".toString()])&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.X.computeActive=function(l,e){if(!l)return!1;var O=l.navigationEndpoint;l=l.serviceEndpoint;if(!O&&!l||!e)return!1;if(O){l=(l=_.I4(e))&&["subscriptions","filteredsubscriptions"].includes(l);if(_.I(O,_.ms)&&_.I(e,_.ms)&&!l){var E=_.I(O,_.ms).browseId;e=_.I(e,_.ms).browseId;return E!==void 0&&e!==void 0&&(E===e||E==="VLWL"&&e==="FEwatch_later"||E==="FEwatch_later"&&e==="VLWL")}var J;O=(J=_.I(O.commandMetadata,_.V4))==null?void 0:J.url;e=(E=_.I(e.commandMetadata,_.V4))==null?void 0:E.url;return!(!O||
!e||O!==e&&O!==_.A5(e))}return this.isActiveShortsTab(l,e)};
_.X.isActiveShortsTab=function(l,e){e=!!_.I(e,_.jT)||!!_.I(e,_.PC);return(!!_.I(l,_.jT)||!!_.I(l,_.PC))&&e};
_.X.computeIsPrimary=function(l){return!!l};
_.Ji.Object.defineProperties(p7.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 l=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&l)return l}}});
p7.prototype.onTap=p7.prototype.onTap;p7.prototype.onUp=p7.prototype.onUp;p7.prototype.onDown=p7.prototype.onDown;p7.prototype.triggerHintActions=p7.prototype.triggerHintActions;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],p7.prototype,"componentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],p7.prototype,"rendererBehavior",void 0);_.L([_.K(_.XP.YtTaskEmitterBehavior),_.q("design:type",Object)],p7.prototype,"taskEmitterBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],p7.prototype,"activeEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],p7.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],p7.prototype,"guideOpened",void 0);_.L([_.T(),_.q("design:type",String)],p7.prototype,"type",void 0);_.L([_.aB("yt-interaction"),_.q("design:type",Object)],p7.prototype,"interaction",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],p7.prototype,"isHeader",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data","activeEndpoint"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],p7.prototype,"active",null);_.L([_.T({reflectToAttribute:!0}),_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],p7.prototype,"isPrimary",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.count","data.presentationStyle","data.badges.*"),_.q("design:type",String),_.q("design:paramtypes",[])],p7.prototype,"lineEndStyle",null);
_.L([_.R("lineEndStyle"),_.q("design:type",Object),_.q("design:paramtypes",[])],p7.prototype,"ariaLabel",null);_.L([_.AA("data.hintActions","guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],p7.prototype,"triggerHintActions",null);_.L([_.wP("down"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],p7.prototype,"onDown",null);
_.L([_.wP("up"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],p7.prototype,"onUp",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],p7.prototype,"onTap",null);_.L([_.U({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],p7);
_.Y(p7,"ytd-guide-entry-renderer",function(){if(cLo!==void 0)return cLo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return cLo=l},{mode:1});var K7=function(){var l=_.B.apply(this,arguments)||this;l.userToggled=!1;return l};
_.m(K7,_.B);_.X=K7.prototype;_.X.getItemsPath=function(){return"data.expandableItems"};
_.X.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.X.onExpanderItemTapped=function(l){var e=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.a("kevlar_guide_expandable_items_killswitch")&&_.OK(this,function(){_.EW(e.expandableItems)});
l.preventDefault()};
_.X.onCollapserItemTapped=function(l){var e=this;this._setExpanded(!1);this.userToggled=!0;l.preventDefault();this.expandableItems&&!_.a("kevlar_guide_collapsible_items_killswitch")&&_.OK(this,function(){_.OW(e.hostElement)})};
_.X.observeActiveEndpoint=function(){for(var l=this.activeEndpoint,e=this.data,O=this.expandableItems.children,E=0,J=O.length;E<J;E++)O[E].activeEndpoint=l;e&&e.autoExpandCommand&&l&&!this.userToggled&&(O=this.data.autoExpandCommand,e=!(!_.I(O,_.ms)||!_.I(l,_.ms)||_.I(O,_.ms).browseId!==_.I(l,_.ms).browseId),l=this.get("commandMetadata.webCommandMetadata.url",l),O=this.get("commandMetadata.webCommandMetadata.url",O),e=e||!!(l&&O&&l.includes(O)),this._setExpanded(e),e&&this.ytLazyListBehavior.fillRemainingListItems())};
K7.prototype.observeActiveEndpoint=K7.prototype.observeActiveEndpoint;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],K7.prototype,"ytLazyListBehavior",void 0);_.L([_.aB("#expandable-items"),_.q("design:type",HTMLElement)],K7.prototype,"expandableItems",void 0);
_.L([_.T(),_.q("design:type",Object)],K7.prototype,"data",void 0);_.L([_.T({readOnly:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],K7.prototype,"expanded",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],K7.prototype,"initialCount",void 0);_.L([_.T(),_.q("design:type",Object)],K7.prototype,"activeEndpoint",void 0);_.L([_.AA("data","activeEndpoint","canShowMore"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],K7.prototype,"observeActiveEndpoint",null);
_.L([_.U({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],K7);
_.Y(K7,"ytd-guide-collapsible-entry-renderer",function(){if(HC4!==void 0)return HC4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return HC4=l},{mode:_.Wf("kevlar_poly_si_batch_j079")?1:2});var Fnh;var f2C;var jL=function(){var l=_.B.apply(this,arguments)||this;l.allVideosCount=0;l.renderGuideEntry=!1;return l};
_.m(jL,_.B);jL.prototype.observeRenderEntry=function(){var l;this.renderGuideEntry=!((l=this.data)==null||!l.alwaysShow)||!!this.allVideosCount};
jL.prototype.observeRenderEntry=jL.prototype.observeRenderEntry;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],jL.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],jL.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],jL.prototype,"activeEndpoint",void 0);_.L([_.T({selector:_.AKT}),_.q("design:type",Object)],jL.prototype,"allVideosCount",void 0);
_.L([_.T(),_.q("design:type",Object)],jL.prototype,"renderGuideEntry",void 0);_.L([_.y0("allVideosCount","data.alwaysShow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],jL.prototype,"observeRenderEntry",null);_.L([_.U({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],jL);
_.Y(jL,"ytd-guide-downloads-entry-renderer",function(){if(f2C===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);f2C=l}l=f2C;return l},{mode:1});var HL=function(){var l=_.B.apply(this,arguments)||this;l.youtab=_.a("web_enable_youtab");l.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return l};
_.m(HL,_.B);_.X=HL.prototype;_.X.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]]"}}}}}};
_.X.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var l=this.sectionItems.children,e=0,O=l.length;e<O;e++)l[e].activeEndpoint=this.activeEndpoint}};
_.X.handleAddToGuideSectionAction=function(l){var e=_.I(l,vn4);if(e&&this.data&&(l=e.items,e=e.handlerData,l&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1)){e=0;for(var O=l.length;e<O;e++)l[e].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,l[e])}};
_.X.handleRemoveFromGuideSectionAction=function(l){var e=_.I(l,NIC);e&&this.data&&(l=e.guideEntryId,e=e.handlerData,l&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(l,this.data.sectionItems),this.removeFromCollapsedSection(l,this.data.sectionItems)))};
_.X.removeFromExpandedSection=function(l,e){l=this.getEntryIndexMatchingId(l,e);l!==-1&&this.splice("data.sectionItems",l,1)};
_.X.removeFromCollapsedSection=function(l,e){var O=e.findIndex(function(E){return!!_.I(E,ZoF)});
O&&O!==-1&&e[O]&&_.I(e[O],ZoF)&&(e=_.I(e[O],ZoF).expandableItems)&&(l=this.getEntryIndexMatchingId(l,e),l!==-1&&this.splice("data.sectionItems."+O+".guideCollapsibleEntryRenderer.expandableItems",l,1))};
_.X.getEntryIndexMatchingId=function(l,e){var O=this;return e.findIndex(function(E){return O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===l})};
HL.prototype.activeEndpointChanged=HL.prototype.activeEndpointChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],HL.prototype,"actionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#section-items"),_.q("design:type",HTMLDivElement)],HL.prototype,"sectionItems",void 0);
_.L([_.aB("#header-entry"),_.q("design:type",Object)],HL.prototype,"headerEntry",void 0);_.L([_.T(),_.q("design:type",Object)],HL.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],HL.prototype,"activeEndpoint",void 0);_.L([_.T(),_.q("design:type",Object)],HL.prototype,"youtab",void 0);_.L([_.AA("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HL.prototype,"activeEndpointChanged",null);
_.L([_.U({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],HL);
_.Y(HL,"ytd-guide-collapsible-section-entry-renderer",function(){if(Fnh===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);Fnh=l}l=Fnh;return l},{mode:1});var RmC;var Ti4;var cL=function(){var l=_.B.apply(this,arguments)||this;l.modernTypography=_.a("web_modern_typography");l.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 l};
_.m(cL,_.B);_.X=cL.prototype;
_.X.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}}}}};
_.X.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var l=_.dQ(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);l&&l.length===1&&l[0]&&_.dQ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.X.handleResetChannelUnreadCountCommand=function(l){var e;(l=(e=_.I(l,DBo))==null?void 0:e.channelId)&&this.data&&this.data.items&&(e=this.getPathToEntryMatchingId(l))&&(this.set(e+".guideEntryRenderer.count",0),this.set(e+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.X.handleResetSubscriptionsUnreadDotCommand=function(l){var e,O=(e=_.I(l,SfC))==null?void 0:e.targetId,E;O&&(E=this.data)!=null&&E.items&&(l=this.data.items.findIndex(function(J){var z;return((z=J.guideEntryRenderer)==null?void 0:z.targetId)===O}),l<0||this.set("data.items."+l+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.X.getPathToEntryMatchingId=function(l){if(this.data&&this.data.items){var e=this.getEntryIndexMatchingId(l,this.data.items);if(e>-1)return"data.items."+e;for(var O=0;O<this.data.items.length;O++)if(e=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[O]))if(e=this.getEntryIndexMatchingId(l,e),e>-1)return"data.items."+O+".guideCollapsibleEntryRenderer.expandableItems."+e}};
_.X.handleAddToGuideSectionAction=function(l){var e=this;if(_.I(l,vn4)){var O=_.I(l,vn4).items;l=_.I(l,vn4).handlerData;var E,J;O&&l&&((E=this.data)==null?void 0:(J=E.handlerDatas)==null?void 0:J.indexOf(l))>-1&&(O=O.filter(function(z){return(z=e.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",z))&&!e.isGuideItemPresent(z)}),this.unshift.apply(this,["data.items"].concat(_.kA(O))))}};
_.X.isGuideItemPresent=function(l){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(l,this.data.items)!==-1)return!0;var e=this.data.items.find(function(O){return!!O.guideCollapsibleEntryRenderer});
if((e==null?0:e.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(l,e.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.X.getEntryIndexMatchingId=function(l,e){var O=this;return e.findIndex(function(E){return O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",E)===l})};
_.X.handleRemoveFromGuideSectionAction=function(l){if(_.I(l,NIC)){var e=_.I(l,NIC).guideEntryId;l=_.I(l,NIC).handlerData;var O,E;e&&l&&((O=this.data)==null?void 0:(E=O.handlerDatas)==null?void 0:E.indexOf(l))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(e,this.data.items),this.removeFromCollapsedSection(e,this.data.items))}};
_.X.removeFromExpandedSection=function(l,e){l=this.getEntryIndexMatchingId(l,e);l!==-1&&this.splice("data.items",l,1)};
_.X.removeFromCollapsedSection=function(l,e){var O=e.findIndex(function(E){return!!E.guideCollapsibleEntryRenderer});
O!==-1&&(e=e[O].guideCollapsibleEntryRenderer.expandableItems)&&(l=this.getEntryIndexMatchingId(l,e),l!==-1&&this.splice("data.items."+O+".guideCollapsibleEntryRenderer.expandableItems",l,1))};
_.X.activeEndpointChanged=function(){for(var l=_.ud(this.hostElement).querySelector("#items").children,e=0,O=l.length;e<O;e++)l[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.X.guideOpenedChanged=function(){for(var l=_.ud(this.hostElement).querySelector("#items").children,e=0,O=l.length;e<O;e++)l[e].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
cL.prototype.guideOpenedChanged=cL.prototype.guideOpenedChanged;cL.prototype.activeEndpointChanged=cL.prototype.activeEndpointChanged;cL.prototype.persistentGuideChanged=cL.prototype.persistentGuideChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],cL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],cL.prototype,"ytLazyListBehavior",void 0);_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],cL.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],cL.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cL.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],cL.prototype,"modernTypography",void 0);_.L([_.T(),_.q("design:type",String)],cL.prototype,"type",void 0);_.L([_.T({value:20}),_.q("design:type",Number)],cL.prototype,"initialCount",void 0);_.L([_.T({value:10}),_.q("design:type",Number)],cL.prototype,"targetFramerate",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],cL.prototype,"autoFill",void 0);_.L([_.T({value:50}),_.q("design:type",Number)],cL.prototype,"renderDelay",void 0);
_.L([_.AA("guidePersistentAndVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cL.prototype,"persistentGuideChanged",null);_.L([_.y0("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cL.prototype,"activeEndpointChanged",null);_.L([_.y0("guideOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cL.prototype,"guideOpenedChanged",null);
_.L([_.U({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],cL);
_.Y(cL,"ytd-guide-section-renderer",function(){if(Ti4!==void 0)return Ti4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Ti4=l},{mode:_.Wf("kevlar_poly_si_batch_j073")?1:2});var sl4;var F2=function(){return _.B.apply(this,arguments)||this};
_.m(F2,_.B);_.Ji.Object.defineProperties(F2.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],F2.prototype,"rendererBehaviors",void 0);_.L([_.T(),_.q("design:type",Object)],F2.prototype,"data",void 0);_.L([_.T(),_.R("data.signInButton.buttonRenderer.style"),_.q("design:type",Object),_.q("design:paramtypes",[])],F2.prototype,"alignByText",null);_.L([_.U({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],F2);
_.Y(F2,"ytd-guide-signin-promo-renderer",function(){if(sl4===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);sl4=l}l=sl4;return l},{mode:1});var f7=function(){var l=_.B.apply(this,arguments)||this;l.showFooter=!1;return l};
_.m(f7,_.B);f7.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}}}}};
f7.prototype.attached=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1){e=_.V2().resolve(_.MG(_.Yl));if(!e)return O.jumpTo(0);e.setGuideData(l.hostElement);return _.C(O,0,3)}l.ytLazyListBehavior.initialCount=2;return O.return()})};
f7.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
f7.prototype.dataChanged=f7.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],f7.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.JL.YtLazyListBehavior),_.q("design:type",Object)],f7.prototype,"ytLazyListBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],f7.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],f7.prototype,"showFooter",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],f7.prototype,"autoFill",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],f7.prototype,"dataChanged",null);_.L([_.U({is:"ytd-guide-renderer",disableElementRegistration:!0})],f7);
_.Y(f7,"ytd-guide-renderer",function(){if(RmC!==void 0)return RmC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return RmC=l},{mode:_.Wf("kevlar_poly_si_batch_j073")?1:2});var GB0;var RJ=function(){var l=_.B.apply(this,arguments)||this;l.systemIcons=_.a("kevlar_system_icons");l.frostedGlass=_.a("web_frosted_glass");l.getEndpointForm=function(){return BQu(l.data)};
return l};
_.m(RJ,_.B);_.X=RJ.prototype;_.X.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.X.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.lG(this.data.formattedTitle))};
_.X.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.X.onDown=function(){this.interaction.triggerDown()};
_.X.onUp=function(){this.interaction.triggerUp()};
_.X.onTap=function(l){if(this.data.serviceEndpoint){var e;_.a("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.I(this.data.serviceEndpoint,_.jT))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):G9u(this.data.serviceEndpoint,this);l.preventDefault()}else{var O;((O=this.data)==null?0:O.navigationEndpoint)&&!_.Eh(_.ey(l),this.hostElement,["A".toString()])&&_.$u(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.X.computeActive=function(l,e){if(!l)return!1;var O=l.navigationEndpoint;l=l.serviceEndpoint;if(!O&&!l||!e)return!1;if(O){l=_.I(O,_.ms);var E=_.I(e,_.ms);if(l&&E)return l.browseId===E.browseId&&l.params===E.params;var J;O=(J=_.I(O.commandMetadata,_.V4))==null?void 0:J.url;var z;e=(z=_.I(e.commandMetadata,_.V4))==null?void 0:z.url;return!(!O||!e||O!==e&&O!==_.A5(e))}return this.isActiveShortsTab(l,e)};
_.X.isActiveShortsTab=function(l,e){e=!!_.I(e,_.jT)||!!_.I(e,_.PC);return(!!_.I(l,_.jT)||!!_.I(l,_.PC))&&e};
_.X.computeTitle=function(l,e){return e?"":_.lG(l)};
_.Ji.Object.defineProperties(RJ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
RJ.prototype.onTap=RJ.prototype.onTap;RJ.prototype.onUp=RJ.prototype.onUp;RJ.prototype.onDown=RJ.prototype.onDown;RJ.prototype.onActiveStateChange=RJ.prototype.onActiveStateChange;RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);
_.L([_.K(_.By),_.q("design:type",Object)],RJ.prototype,"ironButtonState",void 0);_.L([_.T(),_.q("design:type",Object)],RJ.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],RJ.prototype,"activeEndpoint",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],RJ.prototype,"noLabels",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.q("design:type",Boolean)],RJ.prototype,"isActive",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],RJ.prototype,"systemIcons",void 0);_.L([_.aB("yt-interaction"),_.q("design:type",Object)],RJ.prototype,"interaction",void 0);_.L([_.R("isActive"),_.q("design:type",Object),_.q("design:paramtypes",[])],RJ.prototype,"ariaSelected",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],RJ.prototype,"frostedGlass",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"dataChanged",null);_.L([_.AA("isActive"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"onActiveStateChange",null);_.L([_.wP("down"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"onDown",null);
_.L([_.wP("up"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],RJ.prototype,"onUp",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],RJ.prototype,"onTap",null);_.L([_.U({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],RJ);
_.Y(RJ,"ytd-mini-guide-entry-renderer",function(){if(GB0!==void 0)return GB0;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return GB0=l},{mode:_.Wf("kevlar_poly_si_batch_j063")?1:2});var Bif;var TA=function(){var l=_.B.apply(this,arguments)||this;l.allVideosCount=0;l.noLabels=_.a("kevlar_mini_guide_no_labels");l.frostedGlass=_.a("web_frosted_glass");return l};
_.m(TA,_.B);_.X=TA.prototype;_.X.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.X.visibleChanged=function(){if(this.visible&&!this.data){var l=_.V2().resolve(_.MG(_.Yl));l&&l.setGuideData(this.hostElement)}};
_.X.dataChanged=function(){var l=[],e;if((e=this.data)!=null&&e.items){e=_.b(this.data.items);for(var O=e.next();!O.done;O=e.next()){O=O.value;var E=void 0;if((E=O.guideSectionRenderer)==null?0:E.items)for(E=void 0,O=_.b((E=O.guideSectionRenderer)==null?void 0:E.items),E=O.next();!E.done;E=O.next())if(E=E.value,E.guideEntryRenderer)E=E.guideEntryRenderer,E.isPrimary&&l.push({guideEntryRenderer:E});else if(E.guideCollapsibleSectionEntryRenderer){var J=void 0;((J=_.I(E.guideCollapsibleSectionEntryRenderer.headerEntry,
v$))==null?0:J.isPrimary)&&l.push({guideEntryRenderer:_.I(E.guideCollapsibleSectionEntryRenderer.headerEntry,v$)});if(E=E.guideCollapsibleSectionEntryRenderer.sectionItems)for(E=_.b(E),J=E.next();!J.done;J=E.next()){var z=J.value;J=_.I(z,u1f);var M=void 0;((M=_.I(z,v$))==null?0:M.isPrimary)?l.push({guideEntryRenderer:_.I(z,v$)}):J&&(z=void 0,_.I((z=J)==null?void 0:z.entryRenderer,v$)&&(J.alwaysShow||this.allVideosCount)&&l.push({guideEntryRenderer:_.I(J.entryRenderer,v$)}))}}}}this.miniGuideItems=
l};
_.X.activeEndpointChanged=function(){for(var l=this.items.children,e=0;e<l.length;e++)l[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
TA.prototype.activeEndpointChanged=TA.prototype.activeEndpointChanged;TA.prototype.dataChanged=TA.prototype.dataChanged;TA.prototype.visibleChanged=TA.prototype.visibleChanged;_.L([_.K(_.sY),_.q("design:type",Object)],TA.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],TA.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],TA.prototype,"ytComponentBehavior",void 0);_.L([_.aB("#items"),_.q("design:type",Object)],TA.prototype,"items",void 0);_.L([_.T(),_.q("design:type",Object)],TA.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],TA.prototype,"visible",void 0);
_.L([_.T(),_.q("design:type",Object)],TA.prototype,"miniGuideItems",void 0);_.L([_.T({selector:_.AKT}),_.q("design:type",Object)],TA.prototype,"allVideosCount",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TA.prototype,"noLabels",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],TA.prototype,"frostedGlass",void 0);_.L([_.y0("visible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TA.prototype,"visibleChanged",null);
_.L([_.y0("data","allVideosCount"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TA.prototype,"dataChanged",null);_.L([_.y0("activeEndpoint"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TA.prototype,"activeEndpointChanged",null);_.L([_.U({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],TA);
_.Y(TA,"ytd-mini-guide-renderer",function(){if(Bif===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);Bif=l}l=Bif;return l},{mode:1});var PFF;var Ufh=/^[\x00-\x7F]+$/,sF=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(sF,_.B);_.Ji.Object.defineProperties(sF.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var l,e=_.lG((l=this.data)==null?void 0:l.handle);if(e)return _.xp("@"+e)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var l=_.lG(this.displayHandle),e,O=_.lG((e=this.data)==null?void 0:e.handleUrl);if(l&&O)return _.xp(O+l)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var l=_.lG(this.displayHandle);if(l&&!Ufh.test(l)){var e;return(e=this.data)==null?void 0:e.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var l=_.lG(this.displayHandleUrl),e,O=_.lG((e=this.data)==null?void 0:e.urlInfoText);if(l&&O)return _.xp(O+" "+l)}}});
_.L([_.T(),_.q("design:type",Object)],sF.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],sF.prototype,"displayHandle",null);_.L([_.R("displayHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],sF.prototype,"displayHandleUrl",null);_.L([_.R("displayHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],sF.prototype,"warningText",null);
_.L([_.R("displayHandleUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],sF.prototype,"urlInfoTextWithUrl",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],sF.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],sF);
_.Y(sF,"ytd-handles-claiming-confirm-dialog-content",function(){if(PFF!==void 0)return PFF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return PFF=l},{mode:1});var Ywo;var GA=function(){var l=_.B.apply(this,arguments)||this;l.okButtonOverride={style:"mono",type:"outline",size:"M"};return l};
_.m(GA,_.B);GA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
GA.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],GA.prototype,"okButtonOverride",void 0);_.L([_.T(),_.q("design:type",Object)],GA.prototype,"data",void 0);_.L([_.U({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],GA);
_.Y(GA,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Ywo!==void 0)return Ywo;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Ywo=l},{mode:1});var hmH;var Lno=/^[\x00-\x7F]+$/,BL=function(){var l=_.B.apply(this,arguments)||this;l.isLoading=!1;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(BL,_.B);BL.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var l;this.selectedHandle=(l=this.handleInput)==null?void 0:l.value;this.onSelectedHandleChanged(this.selectedHandle);_.dQ(this.hostElement,"yt-refit-popups-action")}};
_.Ji.Object.defineProperties(BL.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.xp("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.xp(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Lno.test(this.selectedHandle)){var l;return(l=this.data)==null?void 0:l.warningText}}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],BL.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BL.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],BL.prototype,"selectedHandle",void 0);_.L([_.T(),_.q("design:type",Object)],BL.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Function)],BL.prototype,"onSelectedHandleChanged",void 0);_.L([_.aB("#channel-handle-input"),_.q("design:type",Object)],BL.prototype,"handleInput",void 0);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],BL.prototype,"handleUrlPrefix",null);_.L([_.R("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],BL.prototype,"displayHandle",null);_.L([_.R("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],BL.prototype,"displayHandleUrl",null);_.L([_.R("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],BL.prototype,"warningText",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BL.prototype,"darkerDarkTheme",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],BL);
_.Y(BL,"ytd-handles-claiming-edit-dialog-content",function(){if(hmH!==void 0)return hmH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return hmH=l},{mode:1});var tfo;var PL=function(){var l=_.B.apply(this,arguments)||this;l.actionButtonOverride={style:"mono",type:"filled",size:"M"};l.cancelButtonOverride={style:"mono",type:"text",size:"M"};l.selectButtonDisabled=!1;l.isLoading=!1;l.hasSelectedHandleEventListener=!1;l.selectedHandleChanged=function(e){l.selectedHandle=e};
return l};
_.m(PL,_.B);_.X=PL.prototype;_.X.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.X.onDataChanged=function(){var l,e;this.selectedHandle=(e=_.I((l=this.data)==null?void 0:l.inputField,Yfu))==null?void 0:e.handle};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onCancel=function(){this.selectedHandle="";_.Wb(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onSelectHandle=function(){var l=this;if(this.selectedHandle!==void 0){var e;((e=this.data)==null?void 0:e.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(O,E){if(E.newHandleUpdateStatus!==void 0&&E.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&E.newHandleUpdateStatus.errorMessage)_.Zs(l.hostElement,_.lG(E.newHandleUpdateStatus.errorMessage)),
l.isLoading=!1;else{var J;if((J=l.data)==null?0:J.onChannelUpdateSuccess){O=l.data.onChannelUpdateSuccess;var z,M;if(E=(z=_.I(O,_.Fn))==null?void 0:(M=z.popup)==null?void 0:M.handlesClaimingConfirmDialogRenderer)E.handle=_.xp(l.selectedHandle);l.ytComponentBehavior.resolveCommand(O);_.Wb(l.hostElement,"yt-close-popup-action",[l.is])}else l.isLoading=!1}},
onServerError:function(){var O;l.content&&((O=l.content)==null?0:O.handleInput)&&l.content.handleInput.validate();l.isLoading=!1;_.Zs(l.hostElement,_.ml("TRY_AGAIN_LATER"))}}}))}};
_.X.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
PL.prototype.onDataChanged=PL.prototype.onDataChanged;PL.prototype.onSelectedHandleChanged=PL.prototype.onSelectedHandleChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],PL.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"actionButtonOverride",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"cancelButtonOverride",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",String)],PL.prototype,"selectedHandle",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"selectButtonDisabled",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"hasSelectedHandleEventListener",void 0);_.L([_.T(),_.q("design:type",Object)],PL.prototype,"handleInput",void 0);
_.L([_.AA("selectedHandle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PL.prototype,"onSelectedHandleChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],PL.prototype,"onDataChanged",null);_.L([_.aB("ytd-handles-claiming-edit-dialog-content"),_.q("design:type",Object)],PL.prototype,"content",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],PL);
_.Y(PL,"ytd-handles-claiming-edit-dialog-renderer",function(){if(tfo!==void 0)return tfo;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tfo=l},{mode:1});var qwP;var UF=function(){return _.B.apply(this,arguments)||this};
_.m(UF,_.B);_.Ji.Object.defineProperties(UF.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.handle){var e;return _.xp("@"+_.lG((e=this.data)==null?void 0:e.handle))}}}});
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],UF.prototype,"formattedHandle",null);_.L([_.T(),_.q("design:type",Object)],UF.prototype,"data",void 0);_.L([_.U({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],UF);
_.Y(UF,"ytd-handles-claiming-radio-option-renderer",function(){if(qwP!==void 0)return qwP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qwP=l},{mode:1});var vG3;var NiH=/^[\x00-\x7F]+$/,Yc=function(){var l=_.B.apply(this,arguments)||this;l.initialRadioIndex="-1";l.isLoading=!1;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.maybeSubmitFeedback=function(){l.feedbackSurveyRenderer.submitSurvey()};
return l};
_.m(Yc,_.B);Yc.prototype.updateSelectedHandleIndexFromBinding=function(l){this.selectedRadioIndex=+l.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(l)};
Yc.prototype.selectedHandleChanged=function(l){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var e;this.selectedHandle=(e=this.handleInput)==null?void 0:e.value;this.onSelectedHandleChanged(l)}};
_.Ji.Object.defineProperties(Yc.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var l;return this.ytRendererBehavior.getSimpleString((l=this.data)==null?void 0:l.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.xp("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.xp(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!NiH.test(this.selectedHandle)){var l;return(l=this.data)==null?void 0:l.warningText}}}});
_.L([_.T(),_.q("design:type",Object)],Yc.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Yc.prototype,"initialRadioIndex",void 0);_.L([_.T(),_.q("design:type",Number)],Yc.prototype,"selectedRadioIndex",void 0);_.L([_.T(),_.q("design:type",String)],Yc.prototype,"selectedHandle",void 0);_.L([_.T(),_.q("design:type",Object)],Yc.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Function)],Yc.prototype,"onSelectedHandleChanged",void 0);
_.L([_.T(),_.q("design:type",Function)],Yc.prototype,"onSelectedRadioIndexChanged",void 0);_.L([_.aB("#channel-handle-input"),_.q("design:type",Object)],Yc.prototype,"handleInput",void 0);_.L([_.aB("ytd-feedback-survey-renderer"),_.q("design:type",Object)],Yc.prototype,"feedbackSurveyRenderer",void 0);_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],Yc.prototype,"radioButtonLength",null);
_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Yc.prototype,"handleUrlPrefix",null);_.L([_.R("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Yc.prototype,"displayHandle",null);_.L([_.R("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Yc.prototype,"displayHandleUrl",null);_.L([_.R("selectedHandle"),_.q("design:type",Object),_.q("design:paramtypes",[])],Yc.prototype,"warningText",null);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Yc.prototype,"darkerDarkTheme",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Yc);
_.Y(Yc,"ytd-handles-claiming-select-dialog-content",function(){if(vG3!==void 0)return vG3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return vG3=l},{mode:1});var rLu;var h1=function(){var l=_.B.apply(this,arguments)||this;l.actionButtonOverride={style:"mono",type:"filled",size:"M"};l.cancelButtonOverride={style:"mono",type:"text",size:"M"};l.initialRadioIndex="-1";l.selectButtonDisabled=!1;l.isLoading=!1;l.selectedRadioIndexChanged=function(e){l.selectedRadioIndex=Number(e.detail.value)};
l.selectedHandleChanged=function(e){l.selectedHandle=e.detail.value};
l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(h1,_.B);_.X=h1.prototype;_.X.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.X.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.X.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.dQ(this.hostElement,"yt-refit-popups-action")};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Wb(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onSelectHandle=function(){var l=this;if(this.selectedHandle!==void 0){var e;((e=this.data)==null?void 0:e.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(O,E){if(E.newHandleUpdateStatus!==void 0&&E.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&E.newHandleUpdateStatus.errorMessage)_.Zs(l.hostElement,_.lG(E.newHandleUpdateStatus.errorMessage)),
l.isLoading=!1;else{var J;if((J=l.data)==null?0:J.onChannelUpdateSuccess){O=l.data.onChannelUpdateSuccess;E=_.I(O,_.Fn);var z;if(E==null?0:(z=E.popup)==null?0:z.handlesClaimingConfirmDialogRenderer)E.popup.handlesClaimingConfirmDialogRenderer.handle=_.xp(l.selectedHandle);l.ytComponentBehavior.resolveCommand(O);_.Wb(l.hostElement,"yt-close-popup-action",[l.is])}else l.isLoading=!1}},
onServerError:function(){if(l.selectedRadioIndex===l.radioButtonLength){var O;l.content&&((O=l.content)==null?0:O.handleInput)&&l.content.handleInput.validate()}l.isLoading=!1;_.Zs(l.hostElement,_.ml("TRY_AGAIN_LATER"))}}}))}};
_.X.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var l,e;this.selectedHandle=(l=this.content)==null?void 0:(e=l.handleInput)==null?void 0:e.value}else this.selectedRadioIndex>=0&&((l=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(l==null?void 0:l.handle):this.selectedHandle=void 0)};
_.X.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.X.getRadioItem=function(l){if(this.radioButtonLength>l&&l>=0)return _.I(this.data.radioButton[l],JJO)};
_.Ji.Object.defineProperties(h1.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.radioButton)||[]).length}}});
h1.prototype.onSelectedHandleChanged=h1.prototype.onSelectedHandleChanged;h1.prototype.onSelectedHandleIndexChanged=h1.prototype.onSelectedHandleIndexChanged;h1.prototype.onDataChanged=h1.prototype.onDataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],h1.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],h1.prototype,"actionButtonOverride",void 0);_.L([_.T(),_.q("design:type",Object)],h1.prototype,"cancelButtonOverride",void 0);
_.L([_.T(),_.q("design:type",Object)],h1.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],h1.prototype,"initialRadioIndex",void 0);_.L([_.T(),_.q("design:type",Number)],h1.prototype,"selectedRadioIndex",void 0);_.L([_.T(),_.q("design:type",String)],h1.prototype,"selectedHandle",void 0);_.L([_.T(),_.q("design:type",Object)],h1.prototype,"selectButtonDisabled",void 0);_.L([_.T(),_.q("design:type",Object)],h1.prototype,"isLoading",void 0);
_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],h1.prototype,"radioButtonLength",null);_.L([_.aB("ytd-handles-claiming-select-dialog-content"),_.q("design:type",Object)],h1.prototype,"content",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h1.prototype,"onDataChanged",null);
_.L([_.AA("selectedRadioIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h1.prototype,"onSelectedHandleIndexChanged",null);_.L([_.AA("selectedHandle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],h1.prototype,"onSelectedHandleChanged",null);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],h1.prototype,"darkerDarkTheme",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.U({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],h1);
_.Y(h1,"ytd-handles-claiming-select-dialog-renderer",function(){if(rLu!==void 0)return rLu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rLu=l},{mode:1});var DfH;var SwF;var L7=function(){return _.B.apply(this,arguments)||this};
_.m(L7,_.B);L7.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],L7.prototype,"data",void 0);_.L([_.U({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],L7);
_.Y(L7,"ytd-hotkey-dialog-section-option-renderer",function(){if(SwF!==void 0)return SwF;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return SwF=l},{mode:1});var Qlu;var t1=function(){return _.B.apply(this,arguments)||this};
_.m(t1,_.B);t1.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],t1.prototype,"data",void 0);_.L([_.U({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],t1);
_.Y(t1,"ytd-hotkey-dialog-section-renderer",function(){if(Qlu!==void 0)return Qlu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Qlu=l},{mode:1});var qb=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(qb,_.B);qb.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],qb.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],qb.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],qb);
_.Y(qb,"ytd-hotkey-dialog-content",function(){if(DfH!==void 0)return DfH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return DfH=l},{mode:1});var xfH;var vL=function(){return _.B.apply(this,arguments)||this};
_.m(vL,_.B);vL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var l=document.querySelector("ytd-hotkey-dialog-content #scrollable");l&&(l.dialogElement=this.hostElement.parentElement)};
vL.prototype.onCloseTap=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vL.prototype,"data",void 0);_.L([_.U({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],vL);
_.Y(vL,"ytd-hotkey-dialog-renderer",function(){if(xfH!==void 0)return xfH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return xfH=l},{mode:1});var lE0;var Nb=function(){return _.B.apply(this,arguments)||this};
_.m(Nb,_.B);Nb.prototype.onYtServiceRequestError=function(){if(this.blocked){var l;var e=(l=this.data)==null?void 0:l.defaultServiceEndpoint}else{var O;e=(O=this.data)==null?void 0:O.toggledServiceEndpoint}var E;(e=(E=_.I(e,_.E$F))==null?void 0:E.onFailureAction)&&this.ytComponentBehavior.resolveCommand(e);this.updateBlockState(!this.blocked)};
Nb.prototype.onYtToggleButton=function(l){this.updateBlockState(l.detail.toggled)};
Nb.prototype.updateBlockState=function(l){if(l!==this.blocked){var e=this.blockedEntityKey;e&&this.ytdReduxBehavior.dispatch(_.IK("blockStateEntity",e,{key:e,blocked:l}));this.set("data.isToggled",l)}};
_.Ji.Object.defineProperties(Nb.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)}}});
Nb.prototype.onYtToggleButton=Nb.prototype.onYtToggleButton;Nb.prototype.onYtServiceRequestError=Nb.prototype.onYtServiceRequestError;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Nb.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Nb.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Nb.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Nb.prototype,"blockedEntityKey",void 0);
_.L([_.T({selectorArgs:["blockedEntityKey"],selector:function(l,e){return _.wV(l.entities,"blockStateEntity",e)}}),
_.q("design:type",Object)],Nb.prototype,"blockStateEntity",void 0);_.L([_.R("data","blockStateEntity"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Nb.prototype,"blocked",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Nb.prototype,"onYtServiceRequestError",null);
_.L([_.wP("yt-toggle-button"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Nb.prototype,"onYtToggleButton",null);_.L([_.U({is:"ytd-block-button",disableElementRegistration:!0})],Nb);
_.Y(Nb,"ytd-block-button",function(){if(lE0!==void 0)return lE0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return lE0=l},
{mode:1});var egO;var OYC;var rK=function(){return _.B.apply(this,arguments)||this};
_.m(rK,_.B);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rK.prototype,"data",void 0);_.L([_.U({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],rK);
_.Y(rK,"ytd-kids-blocklist-picker-item-renderer",function(){if(OYC!==void 0)return OYC;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return OYC=l},{mode:1});var DI=function(){return _.B.apply(this,arguments)||this};
_.m(DI,_.B);DI.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],DI.prototype,"data",void 0);_.L([_.U({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],DI);
_.Y(DI,"ytd-kids-blocklist-picker-content",function(){if(egO!==void 0)return egO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return egO=
l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var ERH;var Z4=function(){var l=_.B.apply(this,arguments)||this;l.hasAnyRequestSucceeded=!1;l.hasAnyRequestFailed=!1;l.numPendingRequests=0;return l};
_.m(Z4,_.B);_.X=Z4.prototype;_.X.attached=function(){this.hostElement.setAttribute("dialog","")};
_.X.onDoneButtonTap=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.X.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.X.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.X.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.X.onPopupClosed=function(l){var e,O;if(((e=l.detail)==null?void 0:(O=e.popup)==null?void 0:O.is)==="tp-yt-paper-dialog"){var E;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((E=this.data)==null?0:E.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.J$(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Z4.prototype.onPopupClosed=Z4.prototype.onPopupClosed;Z4.prototype.onYtServiceRequestError=Z4.prototype.onYtServiceRequestError;Z4.prototype.onYtServiceRequestCompleted=Z4.prototype.onYtServiceRequestCompleted;Z4.prototype.onYtServiceRequestSent=Z4.prototype.onYtServiceRequestSent;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Z4.prototype,"data",void 0);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z4.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z4.prototype,"onYtServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Z4.prototype,"onYtServiceRequestError",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Z4.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Z4);
_.Y(Z4,"ytd-kids-blocklist-picker-renderer",function(){if(ERH!==void 0)return ERH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ERH=l},{mode:1});var Jd0;var XpF;var uT=function(){return _.B.apply(this,arguments)||this};
_.m(uT,_.B);uT.prototype.setTip=function(l){var e=this;this.data&&(this.tip=vw4(t9F.getInstance(),l,this.data),_.OK(this,function(){_.$u(e.hostElement,"yt-refit")}))};
uT.prototype.clearTip=function(){this.tip=void 0};
uT.prototype.computeHidden=function(l){return!l};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],uT.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.q("design:type",Boolean)],uT.prototype,"hidden",void 0);_.L([_.T(),_.q("design:type",Object)],uT.prototype,"tip",void 0);_.L([_.U({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],uT);
_.Y(uT,"ytd-menu-popup-tip-renderer",function(){if(XpF!==void 0)return XpF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);
return XpF=l},{mode:1});var zg4;var Ch=function(){var l=_.B.apply(this,arguments)||this;l.useIcons=!1;l.systemIcons=_.a("kevlar_system_icons");l.useListItemStyles=_.a("web_list_item_style_for_menu_items");return l};
_.m(Ch,_.B);_.X=Ch.prototype;_.X.onFocus=function(){var l;(l=_.ud(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.X.onTap=function(){var l=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(l&&_.I(l,_.nz))this.componentBehavior.resolveCommand(l),this.updateToggledStateInEntity();else if(l){this.componentBehavior.resolveCommand(l)||_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}});var e;((e=_.I(l,_.ku))==null?void 0:e.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.X.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.X.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.X.updateToggledStateInEntity=function(){var l=this.data.toggleMenuServiceItemEntityKey,e=!this.data.isToggled;l&&this.ytdReduxBehavior.dispatch(_.IK("toggleMenuServiceItemEntity",l,{key:l,isToggled:e}))};
_.X.computeIcon=function(l,e,O){return(l=l?O:e)&&l.iconType?_.w6(l.iconType):""};
_.X.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.X.isIconActive=function(l){return!_.a("toggle_menu_active_icon_killswitch")&&l};
_.Ji.Object.defineProperties(Ch.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?0:l.isToggled)?(e=this.data)==null?void 0:e.toggledText:(O=this.data)==null?void 0:O.defaultText}}});
Ch.prototype.toggledStateEntityChanged=Ch.prototype.toggledStateEntityChanged;Ch.prototype.onYtServiceRequestCompleted=Ch.prototype.onYtServiceRequestCompleted;Ch.prototype.onTap=Ch.prototype.onTap;Ch.prototype.onFocus=Ch.prototype.onFocus;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ch.prototype,"componentBehavior",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],Ch.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ch.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ch.prototype,"useIcons",void 0);_.L([_.T({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.q("design:type",String)],Ch.prototype,"icon",void 0);
_.L([_.T({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(l,e){return _.wV(l.entities,"toggleMenuServiceItemEntity",e)}}),
_.q("design:type",Object)],Ch.prototype,"toggleMenuServiceItemEntity",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ch.prototype,"systemIcons",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Ch.prototype,"useListItemStyles",void 0);_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ch.prototype,"onFocus",null);
_.L([_.R("data.isToggled"),_.q("design:type",Object),_.q("design:paramtypes",[])],Ch.prototype,"toggleButtonText",null);_.L([_.wP("tap"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ch.prototype,"onTap",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ch.prototype,"onYtServiceRequestCompleted",null);
_.L([_.AA("toggleMenuServiceItemEntity.isToggled","data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ch.prototype,"toggledStateEntityChanged",null);_.L([_.U({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Ch);
_.Y(Ch,"ytd-toggle-menu-service-item-renderer",function(){if(zg4!==void 0)return zg4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return zg4=l},{mode:1});var bYf;var or=function(){return _.B.apply(this,arguments)||this};
_.m(or,_.B);or.prototype.onFocus=function(){var l;(l=_.ud(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.Ji.Object.defineProperties(or.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.nU(this.data.iconUrl)}}});
or.prototype.onFocus=or.prototype.onFocus;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],or.prototype,"rendererBehavior",void 0);_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],or.prototype,"ytEndpointBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],or.prototype,"data",void 0);_.L([_.wP("focus"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],or.prototype,"onFocus",null);
_.L([_.R("data.iconUrl"),_.q("design:type",Object),_.q("design:paramtypes",[])],or.prototype,"imageSource",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],or);
_.Y(or,"ytd-menu-custom-icon-item-renderer",function(){if(bYf!==void 0)return bYf;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return bYf=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});_.Zw(_.jG,"yt-list-item-view-model",{props:{data:_.lB,isMenuItem:_.lB,isCompact:_.lB,onTap:_.Vh,trailingAccessory:_.Vh,hideSelectionTextChevron:_.lB,disabled:_.lB,inPopup:_.lB,disableHorizontalPadding:_.lB,isOverlay:_.lB,isToggled:_.lB}});var $L=function(){var l=_.B.apply(this,arguments)||this;l.disableBackdropFilter=_.a("web_disable_backdrop_filter");return l};
_.m($L,_.B);_.X=$L.prototype;
_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.X.computeAriaLabel=function(l){return l};
_.X.onPopupOpened=function(){this.items.selected=0;for(var l=_.b(_.ud(this.items).children),e=l.next();!e.done;e=l.next())e.value.popupPositionTarget=this.positionTarget;if(l=this.popupTip||void 0)l.setTip(this.source||""),this.source=void 0;this.veData&&(l=_.P9())&&_.xu(l,[this.veData])};
_.X.onPopupClosed=function(){var l=this.popupTip||void 0;l&&l.clearTip()};
_.X.onIronActivate=function(l){this.shouldPersist(l)||_.Wb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(l=_.P9())&&_.On(l,this.veData)};
_.X.shouldPersist=function(l){var e,O;if(((e=l.detail)==null?void 0:e.selected)===void 0||(O=this.data)==null||!O.items)return!1;var E,J;return!((J=(E=this.data.items[l.detail.selected])==null?void 0:E.toggleMenuServiceItemRenderer)==null||!J.persistentOnMenuPopup)};
_.X.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(l){return l.menuNavigationItemRenderer?!!l.menuNavigationItemRenderer.icon:l.menuServiceItemRenderer?!!l.menuServiceItemRenderer.icon:l.menuConditionalServiceItemRenderer?!!l.menuConditionalServiceItemRenderer.icon:l.menuConditionalNavigationItemRenderer?!!l.menuConditionalNavigationItemRenderer.icon:l.toggleMenuServiceItemRenderer?!!l.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
$L.prototype.onPopupClosed=$L.prototype.onPopupClosed;$L.prototype.onPopupOpened=$L.prototype.onPopupOpened;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],$L.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],$L.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],$L.prototype,"veData",void 0);_.L([_.T({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.q("design:type",String)],$L.prototype,"ariaLabel",void 0);_.L([_.T({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],$L.prototype,"useIcons",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],$L.prototype,"disableBackdropFilter",void 0);_.L([_.aB("#items"),_.q("design:type",Object)],$L.prototype,"items",void 0);_.L([_.aB("ytd-menu-popup-tip-renderer"),_.q("design:type",Object)],$L.prototype,"popupTip",void 0);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$L.prototype,"onPopupOpened",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],$L.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],$L);
_.Y($L,"ytd-menu-popup-renderer",function(){if(Jd0!==void 0)return Jd0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Jd0=l},{mode:1});var MWu;var VWz=_.XO(function(l){l=_.J3(l,{icon:void 0});var e=l.data;l=l.icon;var O=function(){return e().iconBadgeText},E={},J=_.ax("yt-spec-icon-badge-shape",function(){a:switch(e().iconBadgeType){case "notification":var z="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":z="yt-spec-icon-badge-shape--type-cart";break a;default:z=""}return z},function(){a:switch(e().iconBadgeStyle){case "overlay":var z="yt-spec-icon-badge-shape--style-overlay";
break a;default:z=""}return z},(E["yt-spec-icon-badge-shape--text-size-small"]=function(){var z=O();
return!!((z==null?0:z.length)&&z.length>2)},E));
return _.W("yt-icon-badge-shape",null,_.W(_.A,{cond:l,then:function(z){return _.W("div",{class:J},_.W("div",{class:"yt-spec-icon-badge-shape__icon"},_.W(_.cF,{icon:z})),_.W(_.A,{cond:O,then:function(M){return _.W("div",{class:"yt-spec-icon-badge-shape__badge"},M)}}))}}))},"rg");
VWz.idomCompat=!0;_.Zw(VWz,"yt-icon-badge-shape",{props:{data:_.lB,icon:_.lB}});var WP=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};l.unseenCount=0;l.isOverlay=!1;return l};
_.m(WP,_.B);_.X=WP.prototype;_.X.attached=function(){var l=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(e){l.onServiceWorkerMessage(e)})};
_.X.onDataChanged=function(){this.isAttached&&!this.JSC$18287_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18287_lastData=this.data};
_.X.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.X.computeIcon=function(){var l,e;return(l=this.data)==null?void 0:(e=l.icon)==null?void 0:e.iconType};
_.X.onServiceWorkerMessage=function(l){l.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.X.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.I(this.data.updateUnseenCountEndpoint,_.ku)&&_.I(this.data.updateUnseenCountEndpoint,_.ku).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.X.handleUpdateNotificationsUnseenCountAction=function(l){var e=this;l=_.I(l,rHu);l!=null&&l.unseenCount&&l.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(l.unseenCount),_.UD.addLowPriorityJob(function(){e.data.updateUnseenCountEndpoint&&e.ytComponentBehavior.resolveCommand(e.data.updateUnseenCountEndpoint)},l.timeoutMs))};
_.X.onClick=function(){_.$u(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var l=_.dQ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),e=this.data.menuRequest;l&&l.length===1&&l[0]?_.Wb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):e&&this.ytComponentBehavior.resolveCommand(e)};
_.X.handleTopbarMenuClosedAction=function(l){l==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.X.toggleIconState=function(l){this.iconButton&&(this.iconButton.pressed=l)};
_.X.sendUnseenCountRequest=function(l){var e=this;_.fZ(_.UD,function(){e.ytComponentBehavior.resolveCommand(l)})};
_.X.updateCountUI=function(l){this.set("unseenCount",l<9?l:"9+")};
_.Ji.Object.defineProperties(WP.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
WP.prototype.handleUpdateNotificationsUnseenCountAction=WP.prototype.handleUpdateNotificationsUnseenCountAction;WP.prototype.onDataChanged=WP.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x8),_.q("design:type",Object)],WP.prototype,"ytdOpenPopupBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],WP.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],WP.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],WP.prototype,"unseenCount",void 0);_.L([_.T(),_.q("design:type",Object)],WP.prototype,"isOverlay",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],WP.prototype,"showTooltips",void 0);_.L([_.aB("yt-icon-button"),_.q("design:type",Object)],WP.prototype,"iconButton",void 0);
_.L([_.R("unseenCount"),_.q("design:type",Object),_.q("design:paramtypes",[])],WP.prototype,"showNotificationCount",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],WP.prototype,"onDataChanged",null);_.L([_.wP("yt-update-notifications-unseen-count-action"),_.q("design:type",Function),_.q("design:paramtypes",[Object]),_.q("design:returntype")],WP.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.L([_.U({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],WP);
_.Y(WP,"ytd-notification-topbar-button-renderer",function(){if(MWu!==void 0)return MWu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return MWu=l},{mode:_.Wf("kevlar_poly_si_batch_j025")?1:2});var ZYi;var dJ=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return l};
_.m(dJ,_.B);dJ.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}}}}}};
dJ.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
dJ.prototype.onDarkModeToggled=function(l){this.dark=l};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],dJ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],dJ.prototype,"data",void 0);_.L([_.T({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],dJ.prototype,"dark",void 0);
_.L([_.U({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],dJ);
_.Y(dJ,"yt-pdg-buy-flow-header-renderer",function(){if(ZYi!==void 0)return ZYi;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return ZYi=l},{mode:1});var uf4;var CE4;var gJ=function(){var l=_.B.apply(this,arguments)||this;l.immediateValue=0;l.isDarkTheme=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(gJ,_.B);_.X=gJ.prototype;_.X.created=function(){_.qZ.requestAvailability()};
_.X.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.X.dataChanged=function(){var l=_.ud(this.hostElement).querySelector("#color-slider");l.immediateValue&&this.updateSliderKnobAndGradientStyles(l.immediateValue);this.data.notches[0].knobColorArgb&&_.dP(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.qv(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.hT("HTML_DIR")==="rtl"&&_.ud(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.X.onSliderImmediateChange=function(){var l=_.ud(this.hostElement).querySelector("#color-slider");l.dragging&&(l.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(l.immediateValue),this.updateSliderKnobAndGradientStyles(l.immediateValue)),this.updateSliderAria())};
_.X.onSliderChange=function(){var l=_.ud(this.hostElement).querySelector("#color-slider");l.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(l.immediateValue),this.updateSliderKnobAndGradientStyles(l.immediateValue));this.updateSliderAria()};
_.X.updateSliderAria=function(){var l=_.ud(this.hostElement).querySelector("#color-slider"),e=_.ud(this.hostElement).querySelector("#color-slider");e=_.lG(this.data.notches[e.immediateValue].tierValue);_.Fu()&&_.$u(this.hostElement,"iron-announce",{text:e});l.setAttribute("aria-valuetext",e)};
_.X.updateSuperThanksSelectedTierEntity=function(l){if(l!==this.immediateValue){var e,O,E=this==null?void 0:(e=this.data)==null?void 0:(O=e.superThanksSelectedTierEntity)==null?void 0:O.key;E&&E.length>0&&this.ytdReduxBehavior.dispatch(_.IK("superThanksSelectedTierEntity",E,{key:E,index:l}))}};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.updateSliderKnobAndGradientStyles=function(l){this.immediateValue=l;l=this.data.notches[l];if(l==null?0:l.knobColorArgb)var e={"--ytd-pdg-color-slider-knob-color":_.qv(l.knobColorArgb)};(l==null?0:l.linearGradientCssStyle)&&e!==null&&(e=Object.assign({},e,{"--ytd-pdg-color-slider-active-color":l==null?void 0:l.linearGradientCssStyle}));e!==null&&_.dP(this.hostElement,e)};
gJ.prototype.onSliderChange=gJ.prototype.onSliderChange;gJ.prototype.onSliderImmediateChange=gJ.prototype.onSliderImmediateChange;gJ.prototype.dataChanged=gJ.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],gJ.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],gJ.prototype,"immediateValue",void 0);_.L([_.T(),_.q("design:type",Number)],gJ.prototype,"maxMarkers",void 0);
_.L([_.T({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:DxH}),_.q("design:type",Object)],gJ.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],gJ.prototype,"isDarkTheme",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],gJ.prototype,"ytdReduxBehavior",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gJ.prototype,"dataChanged",null);
_.L([_.wP("immediate-value-change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gJ.prototype,"onSliderImmediateChange",null);_.L([_.wP("change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],gJ.prototype,"onSliderChange",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],gJ);
_.Y(gJ,"ytd-pdg-color-slider-renderer",function(){if(CE4!==void 0)return CE4;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return CE4=l},{mode:1});var oRP;var $lC;var iT=null;
_.RB({is:"ytd-comment-input",_template:function(){if($lC!==void 0)return $lC;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return $lC=l},
behaviors:[_.egW.YtHostElementBehavior,_.po,_.va.YtComponentBehavior,_.VG.YtRendererstamperBehavior,_.bmk.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 _.hb}},
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",_.id(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;_.gI();this.focus()},
detached:function(){document.removeEventListener("tap",_.id(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(l){l=l.detail;l=l.isCustomEmoji?l.shortcuts[0]:l.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,l);this.maybeUpdateTextDirection_();_.$u(this.hostElement,"input")},
getInputRange_:function(){var l=_.H1();if(l){l=l.getBrowserRangeObject();for(var e=l.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return l;e=e.parentNode}}l=this.getEditableTextArea_();l=_.Yn(l,l.childNodes.length);l.select();return l.getBrowserRangeObject()},
insertTextWithEmojis_:function(l,e,O){(e=this.emojiManager.createDocumentFragment(e,!0,!1,O===void 0?!0:O))&&e.childNodes.length!==0&&(l.collapsed||l.deleteContents(),O=e.lastChild,l.insertNode(e),_.pbF(O).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var l=_.H1();if(l){var e=l.JSC$9287_getStartNode(),O=l.JSC$9287_getEndNode();if(PiO(e)&&PiO(O)){var E=l.JSC$9287_getStartOffset(),J;if(_.n2&&e.nodeType===Node.ELEMENT_NODE&&(J=_.BTR(e)))_.Yn(J,0).select();else{J=xr(e)?e:_.R7(e,xr);var z=xr(O)?O:_.R7(O,xr);if(J||z)if(l.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){l=!0;E===e.length&&(l=!1);if(iT==="end"||iT==="right")l=!1;e=e.parentNode;l=[].concat(_.kA(e.parentNode.childNodes)).indexOf(e)+(l?0:1);_.Yn(e.parentNode,l).select()}}else J?
J.previousSibling&&J.previousSibling.length>0?_.hH(O,l.JSC$9287_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),J.parentNode.insertBefore(e,J),_.hH(O,l.JSC$9287_getEndOffset(),e,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.hH(e,l.JSC$9287_getStartOffset(),z.nextSibling,1).select():(O=document.createTextNode("\u200b"),z.parentNode.insertBefore(O,z.nextSibling),_.hH(e,l.JSC$9287_getStartOffset(),O,O.length).select()));iT=null}}else iT=
null}else iT=null},
leftKeyPressed_:function(){iT="left"},
rightKeyPressed_:function(){iT="right"},
endKeyPressed_:function(){iT="end"},
maybeDeleteChip_:function(){var l=qG3(!0);if(l){var e=_.H1(),O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();_.sf(O,e,l,l.childNodes.length).select()}},
maybeBackspaceChip_:function(){var l=qG3(!1);if(l){var e=_.H1(),O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();_.sf(O,e,l,0).select()}},
maybeBackspaceChipWordMode_:function(l){var e=_.H1();if(e.isCollapsed()){var O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();var E=vu4(O,e,!0);E&&(_.sf(O,e,E,0).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(l){var e=_.H1();if(e.isCollapsed()){var O=e.JSC$9287_getStartNode();e=e.JSC$9287_getStartOffset();var E=vu4(O,e,!1);E&&(_.sf(O,e,E,E.childNodes.length).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
onContentClick:function(l){l.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(l){l.defaultPrevented||l.currentTarget.tagName==="YTD-COMMENT-INPUT"&&xr(l.target)&&l.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ud(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ud(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(l,e){l=YG4(l,this.emojiManager,e).cloneNode(!0);for(e=l.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var O=_.f3();_.vVq(O,e);e=O.nextSibling;break;case "DIV":(O=e.lastChild)&&e.nextSibling&&_.GP(_.f3(),O);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.s8(_.f3(),e);O&&O.nodeName==="BR"&&_.wk(O);O=e;e.hasChildNodes()?(e=e.firstChild,
_.NTR(O)):(e=e.nextSibling,_.wk(O));break;default:e=e.nextSibling}return NQu(l)},
setTextAreaValue:function(l){l||(l="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof l==="string"&&(l={runs:[{text:l}]});e.text=l},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();iT=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var l=this.getEditableTextArea_();l&&(_.Yn(l,l.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.hT("HTML_DIR")==="rtl"){var l=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";l.setAttribute("dir",e)}},
handleInputEvent_:function(){var l=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(l=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(l,!0);this.updateCharCount_();l=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=l.scrollHeight>l.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var l=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:l})},
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(l){this.isEmojiButtonDisplayed&&(l.preventDefault(),l.stopImmediatePropagation(),l=l.clipboardData.getData("text/plain"),this.insertText_(l,!1,!1),_.$u(this.hostElement,"input"))},
insertText_:function(l,e,O){e=e===void 0?!1:e;O=O===void 0?!0:O;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&l){var E=this.getInputRange_().cloneRange();this.emojiManager&&E&&(e&&this.emojiInput.offsetStartOfRangeBy(E,l.length),this.insertTextWithEmojis_(E,l,O),U9H(this.getEditableTextArea_().lastChild)||(E=this.getInputRange_().cloneRange()),E&&(this.emojiInput.updateSuggestions(E,l),this.updateSuggestionOffset_(E)))}},
getSimpleString:_.lG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(l){return l?"focused":"not-focused"},
computePlaceholderText_:function(l){return this.getSimpleString(l)},
computeEditableText_:function(l){return this.getSimpleString(l)},
onPrefilledContentDismissed_:function(l){l.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(l,e){l?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(l){var e=this.getEditableTextArea_();[].concat(_.kA(l.dataTransfer.items)).forEach(function(O){O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(E){e.appendChild(document.createTextNode(E))})});
l.preventDefault()},
preventDefault_:function(l){l.preventDefault()},
onSuggestionInsert_:function(l){this.insertTextWithEmojis_(l.detail.range,l.detail.text)},
onEmojiSuggestionClick_:function(l){this.emojiInput.insertSuggestion(l.detail)},
updateSuggestionOffset_:function(l){if(this.emojiInput&&_.ud(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,O=l.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-O)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;l=l.getBoundingClientRect().left-e;_.ud(this.emojiInput).querySelector("#dropdown").style.marginLeft=l+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.qx("yt-post"));return this.localStorage}});var wJ=function(){var l=_.B.apply(this,arguments)||this;l.currentCommentOptionIndex=0;l.isEmojiPickerDisplayed=!1;l.emojiManager=_.hb;l.isUgcEmpty=!1;l.userGeneratedCommentChangedHandler=function(){_.$u(l.hostElement,"ytd-pdg-user-generated-comment-changed");l.isEmojiYtdCommentInputEnabled&&(l.isUgcEmpty=!l.ytdCommentInputEl.getTextAreaValue())};
l.pasteHandler=function(e){e.preventDefault();e.stopImmediatePropagation();var O;if(e=(O=e.clipboardData)==null?void 0:O.getData("text/plain"))O=document.getSelection().getRangeAt(0),O.collapsed||O.deleteContents(),e=document.createTextNode(e),O.insertNode(e),O.selectNodeContents(e),O.collapse(!1),e=window.getSelection(),e.removeAllRanges(),e.addRange(O)};
l.onDocumentClick=function(e){if(l.isEmojiPickerDisplayed){var O,E,J;!(e.target instanceof Node)||(O=e.composedPath())!=null&&O.includes(l.editableTextEl)||(E=e.composedPath())!=null&&E.includes(l.emojiButtonEl)||(J=e.composedPath())!=null&&J.includes(l.emojiPickerEl)||(l.isEmojiPickerDisplayed=!1)}};
return l};
_.m(wJ,_.B);_.X=wJ.prototype;_.X.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.X.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.X.detached=function(){var l;(l=this.contentEl)==null||l.removeEventListener("input",this.userGeneratedCommentChangedHandler);var e;(e=this.contentEl)==null||e.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.X.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.X.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var l;this.contentEl.textContent=this.rendererBehavior.getSimpleString((l=this.data)==null?void 0:l.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.X.reloadEmojis=function(){this.emojiPickerEl&&_.I(this.emojiPicker,_.$8q)&&this.emojiPickerEl.updateEmojiCategories()};
_.X.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.dP(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.X.handleBackgroundColorStyling=function(){var l;if((l=this.currentCommentOption)==null?0:l.commentBackgroundColorArgb){var e;_.dP(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.qv((e=this.currentCommentOption)==null?void 0:e.commentBackgroundColorArgb)})}else _.dP(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.X.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var l;(l=this.contentEl)==null||l.focus()}};
_.X.onEditButtonClick=function(l){var e=document.getSelection();e&&this.contentEl&&(l.stopPropagation(),l.preventDefault(),e.selectAllChildren(this.contentEl),e.collapseToEnd())};
_.X.onContentDrop=function(l){var e=this;if(l.dataTransfer){l=_.b(l.dataTransfer.items);for(var O=l.next();!O.done;O=l.next())O=O.value,O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(E){var J;(J=e.contentEl)==null||J.appendChild(document.createTextNode(E))})}};
_.X.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.X.getUserGeneratedCommentText=function(){var l,e=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(l=this.contentEl)==null?void 0:l.textContent;return e?e.trim():""};
_.X.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.X.onEmojiSelect=function(l){this.ytdCommentInputEl.onEmojiSelect(l)};
_.Ji.Object.defineProperties(wJ.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.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 l;return!((l=this.currentCommentOption)==null||!l.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if(_.I((l=this.currentCommentOption)==null?void 0:l.chipRenderer,_.yfR)){var e;return _.I((e=this.currentCommentOption)==null?void 0:e.chipRenderer,_.yfR)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var l,e;return((l=this.data)==null?0:l.commentOptionRenderers)?_.I((e=this.data)==null?void 0:e.commentOptionRenderers[this.superThanksSelectedTierEntity.index],nkf):void 0}var O,E;return((O=this.data)==null?0:O.commentOptionRenderers)?_.I((E=this.data)==null?void 0:E.commentOptionRenderers[this.currentCommentOptionIndex],nkf):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var l;return this.rendererBehavior.getSimpleString((l=this.data)==null?void 0:l.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var l;return this.rendererBehavior.getSimpleString((l=this.data)==null?void 0:l.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.commentDialog,_.b2C))==null?void 0:e.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.commentDialog,_.b2C))==null?void 0:e.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=_.I((l=this.data)==null?void 0:l.commentDialog,_.b2C))==null?void 0:e.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(e=_.I((l=this.data)==null?void 0:l.commentDialog,_.b2C))==null?void 0:e.emojiPicker;if(!_.I(O,_.$8q)||!_.I(O,_.$8q).categories)return!1;l=function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var E,J;return((E=_.I(O,_.$8q))==null?0:(J=E.categories)==null?0:J.find(l))?!0:!1}}});
wJ.prototype.onEmojiSelect=wJ.prototype.onEmojiSelect;wJ.prototype.dataChanged=wJ.prototype.dataChanged;wJ.prototype.currentCommentOptionChanged=wJ.prototype.currentCommentOptionChanged;_.L([_.K(_.sY),_.q("design:type",Object)],wJ.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wJ.prototype,"rendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.aB("#content-dom-if"),_.q("design:type",_.sV)],wJ.prototype,"contentDomIfEl",void 0);_.L([_.aB("#content-no-emojis"),_.q("design:type",HTMLElement)],wJ.prototype,"contentEl",void 0);_.L([_.aB("#container"),_.q("design:type",HTMLElement)],wJ.prototype,"containerEl",void 0);_.L([_.aB("#comment-chip-container"),_.q("design:type",HTMLElement)],wJ.prototype,"paidCommentChipContainerEl",void 0);_.L([_.aB("#text-input"),_.q("design:type",HTMLElement)],wJ.prototype,"editableTextEl",void 0);
_.L([_.aB("#emoji-button"),_.q("design:type",HTMLElement)],wJ.prototype,"emojiButtonEl",void 0);_.L([_.aB("#emoji-picker > yt-emoji-picker-renderer"),_.q("design:type",Object)],wJ.prototype,"emojiPickerEl",void 0);_.L([_.aB("#text-input > ytd-comment-input"),_.q("design:type",Object)],wJ.prototype,"ytdCommentInputEl",void 0);_.L([_.T(),_.q("design:type",Object)],wJ.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],wJ.prototype,"currentCommentOptionIndex",void 0);
_.L([_.T({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:DxH}),_.q("design:type",Object)],wJ.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.T(),_.q("design:type",Object)],wJ.prototype,"isEmojiPickerDisplayed",void 0);_.L([_.T(),_.q("design:type",Object)],wJ.prototype,"emojiManager",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],wJ.prototype,"isUgcEmpty",void 0);
_.L([_.AA("currentCommentOption"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wJ.prototype,"currentCommentOptionChanged",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],wJ.prototype,"dataChanged",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],wJ.prototype,"isEmojiYtdCommentInputEnabled",null);
_.L([_.R("data.title"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"title",null);_.L([_.R("data.authorText"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"channelName",null);_.L([_.R("data.commentOptionRenderers","currentCommentOption"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],wJ.prototype,"shouldShowPaidCommentChipRenderer",null);
_.L([_.R("data.commentOptionRenderers","currentCommentOption"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"paidCommentChipRenderer",null);_.L([_.R("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"currentCommentOption",null);
_.L([_.R("data.defaultCommentText","superThanksSelectedTierEntity"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"commentText",null);_.L([_.R("data.placeholderText"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"placeholderText",null);_.L([_.R("data.commentDialog.commentDialogRenderer.editableText"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"editableText",null);
_.L([_.R("data.commentDialog.commentDialogRenderer.emojiButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"emojiButton",null);_.L([_.R("data.commentDialog.commentDialogRenderer.emojiPicker"),_.q("design:type",Object),_.q("design:paramtypes",[])],wJ.prototype,"emojiPicker",null);
_.L([_.R("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],wJ.prototype,"isEmojiButtonDisplayed",null);_.L([_.wP("yt-emoji-select"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],wJ.prototype,"onEmojiSelect",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],wJ);
_.Y(wJ,"ytd-pdg-comment-preview-renderer",function(){if(oRP!==void 0)return oRP;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return oRP=l},{mode:2});var WO4;var AS=function(){var l=_.B.apply(this,arguments)||this;l.selected=!1;return l};
_.m(AS,_.B);_.X=AS.prototype;_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.X.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.X.dataChanged=function(){this.data&&(_.C1(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.dP(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.qv(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.qv(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.X.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.X.onClick=function(){this.logClick()};
_.X.onKeyboardSelect=function(){_.$u(this.hostElement,"tap");this.onClick()};
_.X.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AS.prototype.onClick=AS.prototype.onClick;AS.prototype.selectedChanged=AS.prototype.selectedChanged;AS.prototype.dataChanged=AS.prototype.dataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],AS.prototype,"componentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.po),_.q("design:type",Object)],AS.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.K(_.Sy),_.q("design:type",Object)],AS.prototype,"ironSelectableBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],AS.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],AS.prototype,"shownThumbnail",void 0);_.L([_.T(),_.q("design:type",Object)],AS.prototype,"basePriceText",void 0);_.L([_.T(),_.q("design:type",Object)],AS.prototype,"purchaseCommand",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],AS.prototype,"selected",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AS.prototype,"dataChanged",null);_.L([_.AA("selected"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AS.prototype,"selectedChanged",null);_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],AS.prototype,"onClick",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],AS);
_.Y(AS,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(WO4!==void 0)return WO4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return WO4=l},{mode:1});var nh=function(){var l=_.B.apply(this,arguments)||this;l.selectedItemIndex=0;l.buyButtonDisabled=!1;return l};
_.m(nh,_.B);_.X=nh.prototype;
_.X.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]]"}}}}}};
_.X.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var l;var e=(l=_.I(this.data.colorSlider,AJu))==null?void 0:l.notches[this.selectedItemIndex].purchaseCommand}else{var O;e=(O=_.I(this.data.selectableItemButtons[this.selectedItemIndex],kau))==null?void 0:O.purchaseCommand}if(e){l=_.I(e,_.XJC);l.productData||(l.productData={});var E;l.productData={pdgData:{commentMessageText:(E=this.commentPreviewRenderer)==null?void 0:E.getUserGeneratedCommentText()}};
_.$u(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(e)}}};
_.X.dataChanged=function(){if(this.data){_.hb.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.sgx(_.hb,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.hb.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var l;this.buyButtonDisabled=!((l=_.I(this.data.commentPreview,aYz))==null||!l.placeholderText);this.updatePriceSelectorStatus();var e;if((e=this.data)==null?0:e.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;l=[];this.data.preloadImages&&(l=this.data.preloadImages);
l=l.map(function(O){return _.up(O.thumbnails,1920)});
l=_.b(l);for(e=l.next();!e.done;e=l.next())(e=e.value)&&_.m0t(e).thenCatch(function(){_.hG(Error("ll"))})}};
_.X.superThanksSelectedTierEntityChanged=function(){var l;(this==null?void 0:(l=this.superThanksSelectedTierEntity)==null?void 0:l.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.X.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.X.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ud(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ud(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ud(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ud(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.X.closeBuyFlow=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.X.onUserGeneratedContentChanged=function(){var l;this.buyButtonDisabled=!((l=this.commentPreviewRenderer)==null?0:l.getUserGeneratedCommentText())};
_.X.updateSelectedItemIndexFromBinding=function(l){this.selectedItemIndex=l.detail.value};
_.Ji.Object.defineProperties(nh.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.disclaimerText)}}});
nh.prototype.onUserGeneratedContentChanged=nh.prototype.onUserGeneratedContentChanged;nh.prototype.closeBuyFlow=nh.prototype.closeBuyFlow;nh.prototype.selectedItemIndexChanged=nh.prototype.selectedItemIndexChanged;nh.prototype.superThanksSelectedTierEntityChanged=nh.prototype.superThanksSelectedTierEntityChanged;nh.prototype.dataChanged=nh.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],nh.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],nh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],nh.prototype,"selectedItemIndex",void 0);_.L([_.T(),_.q("design:type",Boolean)],nh.prototype,"isColorSlider",void 0);
_.L([_.T(),_.q("design:type",Object)],nh.prototype,"buyButtonDisabled",void 0);_.L([_.T({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:DxH}),_.q("design:type",Object)],nh.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.aB("ytd-pdg-comment-preview-renderer"),_.q("design:type",Object)],nh.prototype,"commentPreviewRenderer",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],nh.prototype,"ytdReduxBehavior",void 0);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nh.prototype,"dataChanged",null);_.L([_.AA("superThanksSelectedTierEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nh.prototype,"superThanksSelectedTierEntityChanged",null);_.L([_.AA("selectedItemIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nh.prototype,"selectedItemIndexChanged",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nh.prototype,"closeBuyFlow",null);_.L([_.wP("ytd-pdg-user-generated-comment-changed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],nh.prototype,"onUserGeneratedContentChanged",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],nh.prototype,"isDisclaimerTextShown",null);
_.L([_.U({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],nh);
_.Y(nh,"yt-super-vod-buy-flow-content-renderer",function(){if(uf4!==void 0)return uf4;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return uf4=l},{mode:1});var dlh;var ar=function(){var l=_.B.apply(this,arguments)||this;l.lottieAnimationRef={};return l};
_.m(ar,_.B);_.X=ar.prototype;_.X.created=function(){_.qZ.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.id(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.X.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.$u(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.X.detached=function(){this.autoCloseJobId&&_.UD.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.id(this,this.onPopupIronOverlayOpened))};
_.X.dataChanged=function(){var l=this;this.data&&this.data.autoCloseDelay&&(_.Wb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.WF(_.UD,function(){l.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.dP(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.X.onDOMLoadedLottie=function(){var l=this,e,O,E=Number((e=this.data)==null?void 0:(O=e.autoCloseDelay)==null?void 0:O.seconds)||0;this.fadeOutJobId=_.WF(_.UD,function(){l.lottiePlayerEl.classList.add("fadeout")},(E-.25)*1E3);
this.autoCloseJobId=_.WF(_.UD,function(){l.closePopup()},E*1E3)};
_.X.openPopup=function(){this.ironOverlayBehavior.open()};
_.X.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Wb(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.wQ(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.V2().resolve(_.Zh).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.UD.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.UD.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.X.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var l,e;(l=this.lottieAnimationRef)==null||(e=l.lottieEl)==null||e.destroy();l=this.data.lottie;var O,E;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:l.url+"_"+Math.random(),path:l.url,autoplay:!0,loop:(E=(O=l.settings)==null?void 0:O.loop)!=null?E:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Ji.Object.defineProperties(ar.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var l,e;return!!((l=this.data)==null?0:(e=l.lottie)==null?0:e.url)}}});
ar.prototype.maybeInitializeLottie=ar.prototype.maybeInitializeLottie;ar.prototype.dataChanged=ar.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ar.prototype,"rendererBehavior",void 0);_.L([_.K(_.SZ),_.q("design:type",Object)],ar.prototype,"ironOverlayBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ar.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],ar.prototype,"lottiePlayerProps",void 0);
_.L([_.T(),_.q("design:type",Object)],ar.prototype,"lottieAnimationRef",void 0);_.L([_.aB("ytd-lottie-player"),_.q("design:type",HTMLElement)],ar.prototype,"lottiePlayerEl",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ar.prototype,"dataChanged",null);_.L([_.R("data"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],ar.prototype,"hasLottieAnimation",null);
_.L([_.AA("data.lottie.url"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ar.prototype,"maybeInitializeLottie",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],ar);
_.Y(ar,"ytd-desktop-image-overlay-renderer",function(){if(dlh!==void 0)return dlh;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return dlh=l},{mode:1});var gR0;var kL=function(){return _.B.apply(this,arguments)||this};
_.m(kL,_.B);_.X=kL.prototype;_.X.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"}}}}};
_.X.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",_.id(this,this.closePopup))};
_.X.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.id(this,this.closePopup))};
_.X.dataChanged=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.I(this.data.header,wyF)&&(this.hasBackgroundBanner=!!_.I(this.data.header,wyF).backgroundBanner)};
_.X.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.id(this,this.closePopup))};
_.X.closePopup=function(){this.data&&this.data.onCloseCommand&&_.ii(this.hostElement,[this.data.onCloseCommand])};
kL.prototype.handleBuyflowSelectionSubmitted=kL.prototype.handleBuyflowSelectionSubmitted;kL.prototype.dataChanged=kL.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kL.prototype,"data",void 0);
_.L([_.T({value:!0,reflectToAttribute:!0}),_.q("design:type",Boolean)],kL.prototype,"hasBackgroundBanner",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kL.prototype,"dataChanged",null);_.L([_.wP("yt-pdg-buy-flow-selection-submitted"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kL.prototype,"handleBuyflowSelectionSubmitted",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],kL);
_.Y(kL,"ytd-pdg-buy-flow-renderer",function(){if(gR0!==void 0)return gR0;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return gR0=l},{mode:1});var iYh;var Ir=function(){var l=_.B.apply(this,arguments)||this;l.isOpen=!1;l.isPlaylistCreated=!1;return l};
_.m(Ir,_.B);_.X=Ir.prototype;_.X.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.X.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.$u(this.hostElement,"yt-refit")};
_.X.onCreateTap=function(){var l=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.ii(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(e,O){if(!_.a("killswitch_ep_in_create_playlist_response")&&(O==null?0:O.actions))for(e=_.b(O.actions),O=e.next();!O.done;O=e.next())O=O.value,_.I(O,_.UU)&&l.ytComponentBehavior.resolveCommand(O)}}]),this.isPlaylistCreated=!0)};
_.X.onKeydown=function(l){if(l.keyCode===13)this.onCreateTap()};
_.X.onServiceRequestCompleted=function(l){l.stopPropagation();_.Wb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.X.computePrivacyBadge=function(l){return l?[{metadataBadgeRenderer:l}]:[]};
Ir.prototype.onServiceRequestCompleted=Ir.prototype.onServiceRequestCompleted;Ir.prototype.onKeydown=Ir.prototype.onKeydown;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Ir.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ir.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Ir.prototype,"isOpen",void 0);
_.L([_.T(),_.q("design:type",Object)],Ir.prototype,"isPlaylistCreated",void 0);_.L([_.T({value:{REQUIRED_LABEL:_.ml("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.ml("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.q("design:type",Object)],Ir.prototype,"addToStrings",void 0);_.L([_.T({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.q("design:type",Array)],Ir.prototype,"privacyBadge",void 0);
_.L([_.aB("#privacy-input"),_.q("design:type",Object)],Ir.prototype,"privacyInput",void 0);_.L([_.aB("#name-input"),_.q("design:type",Object)],Ir.prototype,"nameInput",void 0);_.L([_.wP("keydown"),_.q("design:type",Function),_.q("design:paramtypes",[KeyboardEvent]),_.q("design:returntype")],Ir.prototype,"onKeydown",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Ir.prototype,"onServiceRequestCompleted",null);
_.L([_.U({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Ir);
_.Y(Ir,"ytd-add-to-playlist-create-renderer",function(){if(iYh!==void 0)return iYh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iYh=l},{mode:1});var wpO;var Ad3;var m9=function(){var l=_.B.apply(this,arguments)||this;l.transferState="TRANSFER_STATE_UNKNOWN";return l};
_.m(m9,_.B);m9.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
m9.prototype.onCheckboxChange=function(l){var e=this;this.data&&_.rP(this,"yt-playlist-checkbox-changed",function(){var O=_.OV(l).checked?e.data.addToPlaylistServiceEndpoint:e.data.removeFromPlaylistServiceEndpoint;O&&_.V2().resolve(_.Zh).resolveCommand(O,{form:{element:e.hostElement}});_.a("dl_playlist_killswitch")||e.transferState!=="TRANSFER_STATE_UNKNOWN"&&e.transferState!=="TRANSFER_STATE_FAILED"&&e.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:e.data.playlistId,action:"ACTION_SYNC"}})},
100)};
m9.prototype.computeIconType=function(l){return l?"yt-icons:"+l.toLowerCase():null};
m9.prototype.dataChanged=m9.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],m9.prototype,"data",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],m9.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);_.L([_.aB("#checkbox"),_.q("design:type",HTMLInputElement)],m9.prototype,"checkbox",void 0);
_.L([_.T({selector:_.hY,selectorArgs:["data.playlistId"]}),_.q("design:type",String)],m9.prototype,"transferState",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],m9.prototype,"dataChanged",null);_.L([_.U({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],m9);
_.Y(m9,"ytd-playlist-add-to-option-renderer",function(){if(Ad3!==void 0)return Ad3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Ad3=l},{mode:1});_.Z8(rg3);_.ip(rg3,"ytd-menu-title-renderer",{propNames:["data"]});var yo=function(){var l=_.B.apply(this,arguments)||this;l.addToStrings={ADD_TO_DROPDOWN_LABEL:_.ml("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};l.closeButtonAriaLabel=_.ml("SBOX_INAPPROPRIATE_CANCEL");l.dialog=_.a("desktop_add_to_playlist_renderer_dialog_popup");return l};
_.m(yo,_.B);_.X=yo.prototype;_.X.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"}}}};
_.X.onPopupOpened=function(){_.oB(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.X.onPopupClosed=function(){_.oB(this.playlists,"scrollable",!1)};
_.X.computeAriaLabel=function(){var l;if(this==null?0:(l=this.data)==null?0:l.actions){l=_.b(this.data.actions);for(var e=l.next();!e.done;e=l.next())if(e=e.value,e.menuTitleRenderer)return _.lG(e.menuTitleRenderer.title)}};
_.X.onTapClose=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Ji.Object.defineProperties(yo.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if(this==null?0:(l=this.data)==null?0:l.actions){l=_.b(this.data.actions);for(var e=l.next();!e.done;e=l.next())if(e=e.value,e.menuTitleRenderer)return e.menuTitleRenderer}return!1}}});
yo.prototype.onPopupClosed=yo.prototype.onPopupClosed;yo.prototype.onPopupOpened=yo.prototype.onPopupOpened;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],yo.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yo.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],yo.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],yo.prototype,"addToStrings",void 0);_.L([_.T({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.q("design:type",String)],yo.prototype,"ariaLabel",void 0);_.L([_.T(),_.q("design:type",String)],yo.prototype,"closeButtonAriaLabel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],yo.prototype,"dialog",void 0);
_.L([_.aB("#playlists"),_.q("design:type",HTMLElement)],yo.prototype,"playlists",void 0);_.L([_.aB("ytd-add-to-playlist-create-renderer"),_.q("design:type",Object)],yo.prototype,"createRenderer",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],yo.prototype,"menuTitleRenderer",null);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yo.prototype,"onPopupOpened",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],yo.prototype,"onPopupClosed",null);_.L([_.U({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],yo);
_.Y(yo,"ytd-add-to-playlist-renderer",function(){if(wpO!==void 0)return wpO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wpO=l},{mode:1});var nRP;var ph=function(){var l=_.B.apply(this,arguments)||this;l.isPlaylistEditComplete=!1;l.isCollabEngagementDisabled=!1;l.closeButtonAriaLabel=_.ml("SBOX_INAPPROPRIATE_CANCEL");l.saveButton={title:_.ml("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"};l.onValueChanged=function(){l.updateSaveButtonState();l.computeCollabEngagementDisabled()};
return l};
_.m(ph,_.B);_.X=ph.prototype;_.X.attached=function(){this.JSC$18343_scroller&&(this.JSC$18343_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18343_scroller.attached&&typeof this.JSC$18343_scroller.attached==="function"&&this.JSC$18343_scroller.attached())};
_.X.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.X.onPopupClosed=function(){this.reset()};
_.X.close=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.X.onClickSave=function(){var l=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var e=[];this.nameInput.value!==null&&e.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&e.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var O=Number(this.privacyInput.value);isNaN(O)||e.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:O})}this.votingInput.value!==null&&(O=this.votingInput.value)&&e.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:O});if(e.length>0){var E;_.I((E=this.data)==null?void 0:E.updateSettingsEndpoint,_.BC).actions=e;var J;if((J=this.data)==null?0:J.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){l.close()}}}),this.isPlaylistEditComplete=!0}}};
_.X.computePrivacyBadge=function(l){return l?[{metadataBadgeRenderer:l}]:[]};
_.X.computeEditorData=function(l){var e,O;return l==null?void 0:(e=l.sections)==null?void 0:(O=e[0])==null?void 0:O.playlistSettingsEditorCasualSectionRenderer};
_.X.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.X.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}}}}}};
_.X.computeAriaLabel=function(){var l,e,O,E=(l=this.data)==null?void 0:(e=l.sections)==null?void 0:(O=e[0])==null?void 0:O.playlistSettingsEditorCasualSectionRenderer;return _.lG(E==null?void 0:E.title)};
_.X.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"}))};
_.X.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.X.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.X.isNameChanged=function(){var l,e,O;return(((l=this.editorData)==null?void 0:(e=l.name)==null?void 0:(O=e.textInputFormFieldRenderer)==null?void 0:O.value)||"")!==(this.nameInput.value||"")};
_.X.isDescriptionChanged=function(){var l,e,O;return(((l=this.editorData)==null?void 0:(e=l.description)==null?void 0:(O=e.textInputFormFieldRenderer)==null?void 0:O.value)||"")!==(this.descriptionInput.value||"")};
_.X.isPrivacyChanged=function(){var l,e,O,E,J,z,M,Z;return((M=(l=this.editorData)==null?void 0:(e=l.privacy)==null?void 0:(O=e.dropdownFormFieldRenderer)==null?void 0:(E=O.dropdown)==null?void 0:(J=E.dropdownRenderer)==null?void 0:(z=J.entries)==null?void 0:z.find(function(u){var d;return u==null?void 0:(d=u.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(Z=M.privacyDropdownItemRenderer)==null?void 0:Z.int32Value)!==this.privacyInput.value};
_.X.isVotingChanged=function(){var l,e,O,E,J,z,M,Z;return((M=(l=this.editorData)==null?void 0:(e=l.voting)==null?void 0:(O=e.dropdownFormFieldRenderer)==null?void 0:(E=O.dropdown)==null?void 0:(J=E.dropdownRenderer)==null?void 0:(z=J.entries)==null?void 0:z.find(function(u){var d;return u==null?void 0:(d=u.privacyDropdownItemRenderer)==null?void 0:d.isSelected}))==null?void 0:(Z=M.privacyDropdownItemRenderer)==null?void 0:Z.int32Value)!==this.votingInput.value};
ph.prototype.onPopupClosed=ph.prototype.onPopupClosed;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],ph.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ph.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],ph.prototype,"data",void 0);_.L([_.T({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.q("design:type",Array)],ph.prototype,"privacyBadge",void 0);_.L([_.T({computed:"computeEditorData(data)"}),_.q("design:type",Object)],ph.prototype,"editorData",void 0);_.L([_.T(),_.q("design:type",Object)],ph.prototype,"isPlaylistEditComplete",void 0);_.L([_.T(),_.q("design:type",Object)],ph.prototype,"isCollabEngagementDisabled",void 0);
_.L([_.T({value:{REQUIRED_LABEL:_.ml("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.ml("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.q("design:type",Object)],ph.prototype,"addToStrings",void 0);_.L([_.T({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.q("design:type",String)],ph.prototype,"ariaLabel",void 0);_.L([_.T(),_.q("design:type",String)],ph.prototype,"closeButtonAriaLabel",void 0);
_.L([_.T(),_.q("design:type",Object)],ph.prototype,"saveButton",void 0);_.L([_.aB("#name-input"),_.q("design:type",Object)],ph.prototype,"nameInput",void 0);_.L([_.aB("#description-input"),_.q("design:type",Object)],ph.prototype,"descriptionInput",void 0);_.L([_.aB("#privacy-input"),_.q("design:type",Object)],ph.prototype,"privacyInput",void 0);_.L([_.aB("#voting-input"),_.q("design:type",Object)],ph.prototype,"votingInput",void 0);
_.L([_.aB("#scroller"),_.q("design:type",Object)],ph.prototype,"JSC$18343_scroller",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],ph.prototype,"onPopupClosed",null);_.L([_.T(),_.q("design:type",Object)],ph.prototype,"onValueChanged",void 0);_.L([_.U({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],ph);
_.Y(ph,"ytd-playlist-settings-editor-renderer",function(){if(nRP===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);nRP=l}l=nRP;return l},{mode:1});var aEu;_.Y7("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Kh=function(){return _.B.apply(this,arguments)||this};
_.m(Kh,_.B);_.X=Kh.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.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 l=this.get("data.nextButton.buttonRenderer.navigationEndpoint");l&&(this.nextNavigationEndpoint=l,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.X.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 l={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",l)}}};
_.X.onPopupOpened=function(l){l.detail!==this&&l.detail!==this.hostElement||!_.a("enable_premium_voluntary_pause")||_.Wb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.X.onNextButtonTap=function(){var l=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);l&&this.ytdOpenPopupBehavior.openPopup(l)};
_.X.updateSelectedResponseIndexFromBinding=function(l){this.selectedResponseIndex=l.detail.value};
Kh.prototype.onPopupOpened=Kh.prototype.onPopupOpened;Kh.prototype.onSelectedResponseIndexChange=Kh.prototype.onSelectedResponseIndexChange;Kh.prototype.dataChanged=Kh.prototype.dataChanged;_.L([_.K(_.x8),_.q("design:type",Object)],Kh.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],Kh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],Kh.prototype,"selectedResponseIndex",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kh.prototype,"dataChanged",null);_.L([_.AA("selectedResponseIndex"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Kh.prototype,"onSelectedResponseIndexChange",null);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Kh.prototype,"onPopupOpened",null);_.L([_.U({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Kh);
_.Y(Kh,"ytd-red-cancel-survey-renderer",function(){if(aEu!==void 0)return aEu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return aEu=l},{mode:1});var kDo;var ju=function(){var l=_.B.apply(this,arguments)||this;l.closeButtonAriaLabel=_.ml("SBOX_INAPPROPRIATE_CANCEL");return l};
_.m(ju,_.B);ju.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
ju.prototype.onClickClose=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],ju.prototype,"rendererStamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],ju.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],ju.prototype,"closeButtonAriaLabel",void 0);_.L([_.U({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],ju);
_.Y(ju,"ytd-search-filter-options-dialog-renderer",function(){if(kDo!==void 0)return kDo;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return kDo=l},{mode:1});var IE4;var Qp3=function(){return function(l){l=l.availabilityType;return l===void 0||l==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||l==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var HP=function(){var l=_.B.apply(this,arguments)||this;l.qualityOptions=[];l.upsellOptions=[];l.showUpsellSection=!1;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.rememberSettingsChecked=!1;return l};
_.m(HP,_.B);_.X=HP.prototype;_.X.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}}}}};
_.X.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.X.updateQualityOptions=function(){if(this.formats===void 0)_.Wb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var l=[],e=[];this.showUpsellSection=!1;for(var O=_.b(this.formats),E=O.next();!E.done;E=O.next())(E=E.value)&&(E.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?e.push(E):l.push(E));l.length&&(this.qualityOptions=SGO(l));e.length&&(this.showUpsellSection=!0,this.upsellOptions=SGO(e))}};
_.X.updateRememberString=function(){if(this.downloadQualityPickerEntity)var l=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var e;l=(e=this.data)==null?void 0:e.premiumRememberSettingString}else{var O;l=(O=this.data)==null?void 0:O.rememberSettingString}l=l===void 0?_.ml("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):l;this.rememberSettingsCheckboxRenderer={title:_.Zr(l),disabled:!1}};
_.X.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Ji.Object.defineProperties(HP.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var l;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(l=this.data)==null?void 0:l.qualityFormats}}});
HP.prototype.updateRememberString=HP.prototype.updateRememberString;HP.prototype.updateQualityOptions=HP.prototype.updateQualityOptions;HP.prototype.dataChanged=HP.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],HP.prototype,"data",void 0);
_.L([_.K(_.sY),_.q("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Boolean)],HP.prototype,"selectedUpsellQuality",void 0);_.L([_.T({computed:"computeIcon_(data.premiumIcon)",value:""}),_.q("design:type",String)],HP.prototype,"premiumIcon",void 0);_.L([_.T({selector:qs3,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.q("design:type",Object)],HP.prototype,"downloadQualityPickerEntity",void 0);
_.L([_.T(),_.q("design:type",Array)],HP.prototype,"qualityOptions",void 0);_.L([_.T(),_.q("design:type",Array)],HP.prototype,"upsellOptions",void 0);_.L([_.T(),_.q("design:type",Object)],HP.prototype,"showUpsellSection",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],HP.prototype,"darkerDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],HP.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.L([_.aB("#remember-settings"),_.q("design:type",HTMLInputElement)],HP.prototype,"rememberSettingsCheckbox",void 0);_.L([_.T(),_.q("design:type",Object)],HP.prototype,"rememberSettingsChecked",void 0);_.L([_.T(),_.q("design:type",Function)],HP.prototype,"onRememberSettingsCheckedChanged",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HP.prototype,"dataChanged",null);
_.L([_.AA("downloadQualityPickerEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HP.prototype,"updateQualityOptions",null);_.L([_.AA("selectedUpsellQuality"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],HP.prototype,"updateRememberString",null);_.L([_.U({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],HP);
_.Y(HP,"ytd-download-quality-selector-content",function(){if(IE4!==void 0)return IE4;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return IE4=l},{mode:1});var mlo;var cP=function(){var l=_.B.apply(this,arguments)||this;l.selectedUpsellQuality=!1;l.qualityOptions=[];l.darkerDarkTheme=_.a("web_darker_dark_theme");l.useUpsellDismissAlternate=_.a("use_not_now_dl_upsell_dismiss_cta");l.shouldShowAlternateUpsellDimiss=!1;l.rememberSettings=!1;l.rememberSettingsChecked=!1;l.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};l.rememberSettingsCheckedChanged=function(e){l.rememberSettingsChecked=e};
return l};
_.m(cP,_.B);_.X=cP.prototype;
_.X.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(_.ml("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(_.ml("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(_.ml("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Zr(_.ml("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.X.updateQualityOptions=function(){this.formats===void 0?_.Wb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=SGO(this.formats)};
_.X.onQualityOptionsSelect=function(l){if(this.qualityOptions&&l){l!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var e=_.b(this.qualityOptions.entries()),O=e.next();!O.done;O=
e.next()){O=_.b(O.value);var E=O.next().value;O=O.next().value;var J=void 0,z=void 0;if(((J=O)==null?void 0:(z=J.settingsRadioOptionRenderer)==null?void 0:z.id)===l){this.selectedQualityIndex=E;l=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((l=this.formats[E])==null?void 0:l.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.X.onClickSubmit=function(){var l;if((l=this.downloadButtonRenderer)==null||!l.isDisabled){var e,O;l=(O=(e=this.data)==null?void 0:e.onSubmitEndpoint)!=null?O:{};var E,J;if(this.formats&&(((E=_.I(l,_.AM))==null?0:E.videoId)||((J=_.I(l,_.nT))==null?0:J.playlistId))){var z,M,Z,u,d,g;e={formatType:(u=(z=this.formats)==null?void 0:(M=z[(Z=this.selectedQualityIndex)!=null?Z:0])==null?void 0:M.format)!=null?u:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(d=this.getOfflineEndpoint(l))==null?void 0:(g=d.actionParams)==null?void 0:g.settingsAction)};this.getOfflineEndpoint(l).actionParams=e;this.ytComponentBehavior.resolveCommand(l)}_.Wb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.X.onClickUpsell=function(){var l;if((l=this.upsellButtonRenderer)==null||!l.isDisabled){var e,O;l=(O=(e=this.data)==null?void 0:e.upsellEndpoint)!=null?O:{};this.ytComponentBehavior.resolveCommand(l);_.Wb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);e="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var E,J,z,M;e=(M=(E=this.formats)==null?void 0:(J=E[(z=this.selectedQualityIndex)!=null?z:0])==null?void 0:J.format)!=null?M:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:e}})}};
_.X.onClickClose=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.X.getOfflineSettingsAction=function(l,e){return l?e===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":e:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.X.getOfflineEndpoint=function(l){return _.I(l,_.AM)?_.I(l,_.AM):_.I(l,_.nT)};
_.Ji.Object.defineProperties(cP.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Zr(_.ml("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var l;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(l=this.data)==null?void 0:l.qualityFormats}}});
cP.prototype.updateQualityOptions=cP.prototype.updateQualityOptions;cP.prototype.dataChanged=cP.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],cP.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Number)],cP.prototype,"selectedQualityIndex",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"selectedUpsellQuality",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);
_.L([_.T({selector:qs3,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.q("design:type",Object)],cP.prototype,"downloadQualityPickerEntity",void 0);_.L([_.T(),_.q("design:type",Array)],cP.prototype,"qualityOptions",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],cP.prototype,"darkerDarkTheme",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],cP.prototype,"useUpsellDismissAlternate",void 0);
_.L([_.T(),_.q("design:type",Object)],cP.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"downloadButtonRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"upsellButtonRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"cancelButtonRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"upsellCancelButtonRenderer",void 0);_.L([_.T(),_.q("design:type",Object)],cP.prototype,"rememberSettings",void 0);
_.L([_.T(),_.q("design:type",Object)],cP.prototype,"rememberSettingsChecked",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cP.prototype,"dataChanged",null);_.L([_.AA("downloadQualityPickerEntity"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],cP.prototype,"updateQualityOptions",null);_.L([_.U({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],cP);
_.Y(cP,"ytd-download-quality-selector-renderer",function(){if(mlo!==void 0)return mlo;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return mlo=l},{mode:1});var yd0;var FH=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(FH,_.B);FH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
FH.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],FH.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],FH.prototype,"darkerDarkTheme",void 0);_.L([_.T({computed:"computeIcon_(data.infoIcon)"}),_.q("design:type",Object)],FH.prototype,"infoIcon",void 0);
_.L([_.T({computed:"computeIcon_(data.warningIcon)"}),_.q("design:type",Object)],FH.prototype,"warningIcon",void 0);_.L([_.U({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],FH);
_.Y(FH,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(yd0!==void 0)return yd0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return yd0=l},{mode:1});var ppH;var fh=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(fh,_.B);fh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fh.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"}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],fh.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],fh.prototype,"darkerDarkTheme",void 0);_.L([_.U({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],fh);
_.Y(fh,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(ppH!==void 0)return ppH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return ppH=l},{mode:1});var KOh;var Rr=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(Rr,_.B);Rr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Rr.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"}}}}};
Rr.prototype.onServiceRequestSentOrCompleted=function(l,e){e&&e.actions&&e.actions.length>0&&_.Wb(this.hostElement,"yt-close-popup-action",[this.is])};
Rr.prototype.onServiceRequestSentOrCompleted=Rr.prototype.onServiceRequestSentOrCompleted;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Rr.prototype,"darkerDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],Rr.prototype,"data",void 0);
_.L([_.wP("yt-service-request-completed"),_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],Rr.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.U({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Rr);
_.Y(Rr,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(KOh!==void 0)return KOh;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return KOh=l},{mode:1});var jez;var Tb=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.submitButtonDisabled=!0;return l};
_.m(Tb,_.B);_.X=Tb.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.X.onDataChanged=function(){var l,e,O;if(((l=this.data)==null?void 0:(e=l.confirmButton)==null?void 0:(O=e.buttonRenderer)==null?void 0:O.isDisabled)!==void 0){var E,J,z;this.submitButtonDisabled=(E=this.data)==null?void 0:(J=E.confirmButton)==null?void 0:(z=J.buttonRenderer)==null?void 0:z.isDisabled}};
_.X.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.X.updateSubmitButtonDisabledFromBinding=function(l){this.submitButtonDisabled=l.detail.value};
_.X.updateSubmitButtonDisabledFromConfirmCheckbox=function(l){this.submitButtonDisabled=!l.detail.value};
Tb.prototype.onDataChanged=Tb.prototype.onDataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Tb.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Tb.prototype,"darkerDarkTheme",void 0);
_.L([_.T(),_.q("design:type",Object)],Tb.prototype,"submitButtonDisabled",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Tb.prototype,"onDataChanged",null);_.L([_.U({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Tb);
_.Y(Tb,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(jez!==void 0)return jez;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return jez=l},{mode:1});var HYz;var sc=function(){return _.B.apply(this,arguments)||this};
_.m(sc,_.B);_.Ji.Object.defineProperties(sc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var l,e,O;return((l=this.data)==null?void 0:l.title)+" "+((e=this.data)==null?void 0:e.metadataPrimary)+" "+((O=this.data)==null?void 0:O.metadataSecondary)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],sc.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sc.prototype,"data",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],sc.prototype,"ariaLabel",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],sc);
_.Y(sc,"ytd-compact-product-list-item-renderer",function(){if(HYz!==void 0)return HYz;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return HYz=l},{mode:1});var cdz;var Gb=function(){return _.B.apply(this,arguments)||this};
_.m(Gb,_.B);Gb.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]]"}}}}}};
_.Ji.Object.defineProperties(Gb.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Gb.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Gb.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Gb);
_.Y(Gb,"ytd-compact-product-list-renderer",function(){if(cdz!==void 0)return cdz;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return cdz=l},{mode:1});var FOP;var BP=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(BP,_.B);_.X=BP.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.X.getBackgroundUrl=function(){var l=this.get("data.headerImage.thumbnails");return l?"url("+_.up(l,this.hostElement.clientWidth)+")":""};
_.X.onDataChanged=function(){var l=this.getBackgroundUrl();l&&(this.header.style.backgroundImage=l);l=_.P9();var e=_.B9(),O=this.get("data.trackingParams");O&&e&&l&&_.DG(l,e,_.cf(O));l=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(e=l.next();!e.done;e=l.next())e.value.onShow()};
_.X.onPopupClosed=function(l){_.OV(l).localName==="ytd-membership-post-cancel-renderer"&&_.Wb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
BP.prototype.onPopupClosed=BP.prototype.onPopupClosed;BP.prototype.onDataChanged=BP.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],BP.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],BP.prototype,"darkerDarkTheme",void 0);
_.L([_.aB("#header"),_.q("design:type",HTMLDivElement)],BP.prototype,"header",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],BP.prototype,"onDataChanged",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],BP.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],BP);
_.Y(BP,"ytd-membership-post-cancel-renderer",function(){if(FOP!==void 0)return FOP;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return FOP=l},{mode:1});var fEH;var PP=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(PP,_.B);PP.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
PP.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],PP.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],PP.prototype,"darkerDarkTheme",void 0);_.L([_.aB("ytd-feedback-survey-renderer"),_.q("design:type",Object)],PP.prototype,"feedbackSurveyRenderer",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],PP);
_.Y(PP,"ytd-sponsorship-confirm-cancel-content",function(){if(fEH!==void 0)return fEH;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return fEH=l},{mode:1});var Rg3;var Uc=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.maybeSubmitFeedback=function(){l.content&&l.content.maybeSubmitFeedback()};
return l};
_.m(Uc,_.B);_.X=Uc.prototype;_.X.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.X.onYtPopupOpened=function(l,e){e===this&&this.data&&this.data.onOpenCommands&&_.wQ(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Wb(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.X.onYtPopupClosed=function(l,e){(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.wQ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestCompleted=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.X.onYtServiceRequestError=function(l){_.Zs(this.hostElement,l.detail.error.message)};
_.X.onDataChanged=function(){if(this.isAttached){var l=this.backgroundUrl;l&&(_.ud(this.hostElement).querySelector("#header").style.backgroundImage=l)}};
_.Ji.Object.defineProperties(Uc.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return l?"url("+_.up(l,this.hostElement.clientWidth)+")":""}}});
Uc.prototype.onDataChanged=Uc.prototype.onDataChanged;Uc.prototype.onYtServiceRequestError=Uc.prototype.onYtServiceRequestError;Uc.prototype.onYtServiceRequestCompleted=Uc.prototype.onYtServiceRequestCompleted;Uc.prototype.onYtPopupClosed=Uc.prototype.onYtPopupClosed;Uc.prototype.onYtPopupOpened=Uc.prototype.onYtPopupOpened;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Uc.prototype,"data",void 0);_.L([_.T({value:function(){return _.ml("SBOX_INAPPROPRIATE_CANCEL")}}),
_.q("design:type",String)],Uc.prototype,"closeButtonAriaLabel",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Uc.prototype,"darkerDarkTheme",void 0);_.L([_.aB("#scrollable"),_.q("design:type",Object)],Uc.prototype,"scrollable",void 0);_.L([_.aB("ytd-sponsorship-confirm-cancel-content"),_.q("design:type",Object)],Uc.prototype,"content",void 0);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Uc.prototype,"onYtPopupOpened",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],Uc.prototype,"onYtPopupClosed",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Uc.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Uc.prototype,"onYtServiceRequestError",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Uc.prototype,"onDataChanged",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Uc);
_.Y(Uc,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Rg3!==void 0)return Rg3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Rg3=l},{mode:_.Wf("kevlar_poly_si_batch_j081")?1:2});var Tru;var YL=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(YL,_.B);YL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],YL.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],YL.prototype,"darkerDarkTheme",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],YL);
_.Y(YL,"ytd-sponsorships-celebration-content",function(){if(Tru!==void 0)return Tru;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return Tru=
l},{mode:1});var seO;var GD0=_.E9(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),hS=function(){var l=_.B.apply(this,arguments)||this;l.scriptsAppended=!1;l.buttonOverrides={type:"tonal",style:"overlay-dark"};return l};
_.m(hS,_.B);_.X=hS.prototype;
_.X.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:_.a("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.onDataChanged=function(){var l;(l=this.header)==null||l.style.setProperty("background-color",this.backgroundColor);if(l=this.headerImageUrl){var e;(e=this.header)==null||e.style.setProperty("background-image",l)}e=_.P9(4);l=_.B9(4);var O=this.get("data.trackingParams");if(O&&l&&e){var E=_.cf(O);_.DG(e,l,E);_.a("combine_ve_grafts")?_.yN().graftServerVe(O,l,4):_.DG(e,l,E)}e=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(l=e.next();!l.done;l=e.next())l.value.onShow();if(e=this.get("data.gtmId"))_.fQ(e,
_.hT("GL","")),this.setupConversionTracking()};
_.X.setupConversionTracking=function(){if(!this.scriptsAppended){var l=document.createElement("script");var e=_.G1(GD0.join(""));_.P2(l,e);document.head.appendChild(l);l=document.createElement("noscript");l.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(l);this.scriptsAppended=!0}};
_.X.onPopupClosed=function(l){if(_.OV(l).localName==="ytd-sponsorships-celebration-renderer"){_.Wb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var e;this.data&&((e=this.data)==null?0:e.dismissCommand)&&_.n4.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Ji.Object.defineProperties(hS.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.qv(l)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return l?"url("+_.up(l,this.hostElement.getBoundingClientRect().width)+")":""}}});
hS.prototype.onPopupClosed=hS.prototype.onPopupClosed;hS.prototype.onDataChanged=hS.prototype.onDataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],hS.prototype,"data",void 0);_.L([_.aB("#header"),_.q("design:type",HTMLElement)],hS.prototype,"header",void 0);
_.L([_.T(),_.q("design:type",Object)],hS.prototype,"scriptsAppended",void 0);_.L([_.T(),_.q("design:type",Object)],hS.prototype,"buttonOverrides",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],hS.prototype,"onDataChanged",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],hS.prototype,"onPopupClosed",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],hS);
_.Y(hS,"ytd-sponsorships-celebration-renderer",function(){if(seO!==void 0)return seO;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return seO=l},{mode:1});var BrF;var Lh=function(){var l=_.B.apply(this,arguments)||this;l.isToggleChecked=!1;return l};
_.m(Lh,_.B);Lh.prototype.onDataChanged=function(){var l;this.isToggleChecked=((l=this.data)==null?void 0:l.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Lh.prototype.close=function(){var l;((l=this.data)==null?0:l.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Lh.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var l,e=_.I((l=this.data)==null?void 0:l.switchButton,IYu);e&&(this.isToggleChecked&&e.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOnInnertubeCommand),!this.isToggleChecked&&e.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOffInnertubeCommand))};
Lh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Lh.prototype.onDataChanged=Lh.prototype.onDataChanged;_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Lh.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Lh.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Lh.prototype,"isToggleChecked",void 0);_.L([_.T({value:_.ml("CLOSE")}),_.q("design:type",String)],Lh.prototype,"closeButtonAriaLabel",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Lh.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Lh);
_.Y(Lh,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(BrF!==void 0)return BrF;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return BrF=l},{mode:1});var PEP;var tS=function(){return _.B.apply(this,arguments)||this};
_.m(tS,_.B);_.X=tS.prototype;_.X.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"}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.detached=function(){this.playerElement.stop()};
_.X.onYtServiceRequestCompleted=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.X.onYtServiceRequestError=function(l){_.Zs(this.hostElement,l.detail.error.message)};
_.X.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.X.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.X.getTier=function(l,e){return!l||!l.tiers||e<0?null:_.I(l.tiers[e],Ko3)};
_.X.moreThanOne=function(l){return!!(l&&l.length>1)};
_.X.tierOverviewTap=function(l){var e=this;this.selectedTier=l.model.index;_.OK(this,function(){_.$u(e.hostElement,"yt-refit")})};
_.X.computeSelectedClass=function(l,e){return this.isSelected(l,e)?"selected":""};
_.X.computeButtonAriaPressed=function(l,e){return this.isSelected(l,e)?"true":"false"};
_.X.isSelected=function(l,e){return l===e};
_.X.onDataChanged=function(){_.ud(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ud(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 l=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),
e=l.next();!e.done;e=l.next())e.value.onShow();var O;this.set("selectedTier",(O=this.get("data.targetTierIndex"))!=null?O:0);var E;(l=(E=this.data)==null?void 0:E.onVisible)&&this.ytComponentBehavior.resolveCommand(l)};
_.X.initializeVe=function(l){var e=_.P9(),O=_.B9(),E=this.get("data.trackingParams");O&&e&&(this.screenLayer=4,e=_.qz(_.$kg)(void 0,69877,{clientScreenNonce:e,visualElement:O},void 0,void 0,void 0),_.Yv(e,69877,4),O=_.B9(4),E&&O&&(E=_.cf(E),_.DG(e,O,E),l&&(this.offerVideoVe=_.sL(74659),_.DG(e,E,this.offerVideoVe))))};
_.X.setHeaderBackground=function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ud(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.qv(l);if(l=this.getHeaderImage())l=_.up(l,screen.width),_.ud(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+l+")"};
_.X.getHeaderImage=function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&l?l:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.X.setupVideoPlayer=function(l){var e=this,O,E,J,z;return _.V(function(M){if(M.nextAddress==1)return O=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),E=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.a("kevlar_player_update_killswitch")?e.playerElement.update({args:{autoplay:O,video_id:l,player_params:E}}):e.playerElement.loadVideoWithPlayerVars({autoplay:O,video_id:l,player_params:E}),
_.C(M,e.playerElement.getPlayerPromise(),2);J=M.yieldResult;J.addEventListener("onStateChange",function(Z){e.onPlayerStateChange(Z)});
J.setScreenLayer(e.screenLayer);(z=_.P9(4))&&e.offerVideoVe&&_.Q4(z,e.offerVideoVe);O&&(e.pauseOtherPlayers(),e.playerElement.focusOnPlayer(),e.playerElement.getPlayer().hideControls(),_.fZ(_.UD,function(){e.fadeOutHeaderOverlay()},4E3));
_.Cl(M)})};
_.X.onPlayerStateChange=function(l){l===1?this.backgroundPlayerElement&&(l=this.backgroundPlayerElement.player_.getPlayerState(),l!==1&&l!==3||this.backgroundPlayerElement.pause()):l===0&&(_.ud(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ud(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.X.fadeOutHeaderOverlay=function(){_.ud(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.X.onHeaderTap=function(){if(this.offerVideo){_.ud(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var l;((l=this.playerElement.player_)==null?void 0:l.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(l=_.P9(4))&&this.offerVideoVe&&_.On(l,this.offerVideoVe)}};
_.X.getBackgroundImageLayerClass=function(l){return l?"background-image-layer-with-video":""};
_.X.getHeaderClass=function(l){return l?"header-with-video":""};
_.X.getHeaderOverlayClass=function(l){return l?"header-overlay-with-video":""};
_.X.getTitleContainerClass=function(l,e){return l?"title-container-with-video":e?"title-container-without-video-flexible":"title-container-without-video"};
_.X.tierTitleDisplayStatus=function(l){return this.moreThanOne(l)?"hide":"show"};
_.X.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.V2().resolve(_.NJ).getPlayerElement():this.backgroundPlayerElement=_.bV();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var l=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=l===1||l===3;this.backgroundPlayerElement.pause()}};
_.X.isMiniplayerActive=function(){return _.V2().resolve(_.NJ).isMiniplayerActive()};
_.X.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("selected-tier-changed",this.selectedTier))};
tS.prototype.selectedTierChangedForBinding=tS.prototype.selectedTierChangedForBinding;tS.prototype.onDataChanged=tS.prototype.onDataChanged;tS.prototype.onYtPopupClosed=tS.prototype.onYtPopupClosed;tS.prototype.onYtPopupOpened=tS.prototype.onYtPopupOpened;tS.prototype.onYtServiceRequestError=tS.prototype.onYtServiceRequestError;tS.prototype.onYtServiceRequestCompleted=tS.prototype.onYtServiceRequestCompleted;
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],tS.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],tS.prototype,"data",void 0);_.L([_.T({value:0}),_.q("design:type",Number)],tS.prototype,"selectedTier",void 0);
_.L([_.T({value:""}),_.q("design:type",String)],tS.prototype,"offerVideo",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],tS.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.L([_.T({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ox(this)}}),
_.q("design:type",String)],tS.prototype,"playerId",void 0);_.L([_.aB("tp-yt-paper-dialog-scrollable"),_.q("design:type",Object)],tS.prototype,"scrollable",void 0);_.L([_.aB("ytd-sponsorships-tier-renderer"),_.q("design:type",Object)],tS.prototype,"tierRenderer",void 0);_.L([_.aB("#player"),_.q("design:type",Object)],tS.prototype,"playerElement",void 0);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],tS.prototype,"onYtServiceRequestCompleted",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],tS.prototype,"onYtServiceRequestError",null);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tS.prototype,"onYtPopupOpened",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tS.prototype,"onYtPopupClosed",null);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tS.prototype,"onDataChanged",null);
_.L([_.AA("selectedTier"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],tS.prototype,"selectedTierChangedForBinding",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],tS);
_.Y(tS,"ytd-sponsorships-offer-renderer",function(){if(PEP!==void 0)return PEP;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return PEP=l},{mode:_.Wf("kevlar_poly_si_batch_j077")?1:2});var Uli;var q2=function(){var l=_.B.apply(this,arguments)||this;l.buttonOverrides={type:"filled",style:"mono"};return l};
_.m(q2,_.B);q2.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}}}}}};
q2.prototype.backgroundColorChanged=function(){var l,e,O,E=(e=_.I((l=this.data)==null?void 0:l.content,jTH))==null?void 0:(O=e.backgroundColor)==null?void 0:O.backgroundColor;E&&(l=_.t$(E),_.ud(this.hostElement).querySelector("#banner").style.backgroundColor=l,_.ud(this.hostElement).querySelector("#abstract-art").style.backgroundColor=l)};
q2.prototype.attached=function(){this.JSC$18429_scroller&&(this.JSC$18429_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18429_scroller.attached&&typeof this.JSC$18429_scroller.attached==="function"&&this.JSC$18429_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
q2.prototype.backgroundColorChanged=q2.prototype.backgroundColorChanged;_.L([_.T(),_.q("design:type",Object)],q2.prototype,"data",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#scroller"),_.q("design:type",Object)],q2.prototype,"JSC$18429_scroller",void 0);_.L([_.T(),_.q("design:type",Object)],q2.prototype,"buttonOverrides",void 0);
_.L([_.AA("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],q2.prototype,"backgroundColorChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],q2);
_.Y(q2,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Uli!==void 0)return Uli;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Uli=l},{mode:_.Wf("kevlar_poly_si_batch_j077")?1:2});var YMz;var hgH;var vP=function(){return _.B.apply(this,arguments)||this};
_.m(vP,_.B);vP.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
vP.prototype.computeIsInitiallyChecked=function(l){return l===1};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],vP.prototype,"data",void 0);_.L([_.aB("#checkbox"),_.q("design:type",Object)],vP.prototype,"checkbox",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],vP);
_.Y(vP,"ytd-subscription-toggle-option-renderer",function(){if(hgH!==void 0)return hgH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return hgH=l},{mode:1});var N2=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return l};
_.m(N2,_.B);N2.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"}}}};
N2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
N2.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var l=_.ud(this.hostElement).querySelector("#options").selected;l=this.data.options[l].subscriptionRadioOptionRenderer.serviceEndpoint;var e=_.ud(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");e&&l&&l.modifyChannelNotificationPreferenceEndpoint&&(e=e.getValue())&&(l.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[e]);_.V2().resolve(_.Zh).resolveCommand(l,{form:{element:this.hostElement}});
_.Wb(this.hostElement,"yt-close-popup-action")};
_.Ji.Object.defineProperties(N2.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var l=this.data.options,e=0;e<l.length;e++){var O=l[e].subscriptionRadioOptionRenderer;if(O&&O.selected)return e}return null}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],N2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],N2.prototype,"eventForwardingBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],N2.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],N2.prototype,"darkerDarkTheme",void 0);_.L([_.R("data.options"),_.q("design:type",Object),_.q("design:paramtypes",[])],N2.prototype,"initialIndex",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],N2);
_.Y(N2,"ytd-subscription-notification-options-renderer",function(){if(YMz!==void 0)return YMz;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return YMz=l},{mode:1});var LO3;var rJ=function(){return _.B.apply(this,arguments)||this};
_.m(rJ,_.B);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],rJ.prototype,"data",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],rJ);
_.Y(rJ,"ytd-tvfilm-offer-groups-renderer",function(){if(LO3!==void 0)return LO3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return LO3=l},{mode:1});var tWu;var D4=function(){var l=_.B.apply(this,arguments)||this;l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(D4,_.B);_.X=D4.prototype;_.X.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"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.X.computeThumbnailClass=function(l){return l.thumbnailOverlays?l.isShow?"thumbnail-show":"thumbnail-movie":l.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.X.computeCommerceSectionClass=function(l){return l.offers&&l.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.X.computeTitleClass=function(l){return l.offers&&l.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.X.onDataChanged=function(){[].concat(_.kA(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(l){l.onShow()})};
D4.prototype.onDataChanged=D4.prototype.onDataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],D4.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],D4.prototype,"darkerDarkTheme",void 0);
_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],D4.prototype,"onDataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],D4);
_.Y(D4,"ytd-ypc-offers-overlay-renderer",function(){if(tWu!==void 0)return tWu;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return tWu=l},{mode:_.Wf("kevlar_poly_si_batch_j028")?1:2});var qM4;var vRu=function(){this.usedMethods=new Set};
vRu.prototype.add=function(l){this.usedMethods.add(l)};
vRu.prototype.reset=function(){this.usedMethods.clear()};var Dl3=function(l,e){this.query=l;this.previousSearchQuery=e;this.id=NrF++;if(!rdf){e=_.hT("SBOX_SETTINGS");l="https://"+((e==null?void 0:e.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var O=e==null?void 0:e.REQUEST_LANGUAGE;O&&(l+="&hl="+O);(O=e==null?void 0:e.REQUEST_DOMAIN)&&(l+="&gl="+O);l+="&client=youtube&gs_ri=youtube";(O=e==null?void 0:e.SUGG_EXP_ID)&&(l+="&sugexp="+encodeURIComponent(O));(O=e==null?void 0:e.PSUGGEST_TOKEN)&&(l+="&tok="+O);(e=
e==null?void 0:e.SESSION_INDEX)&&(l+="&authuser="+e);_.a("desktop_enable_visual_suggest")&&(l+="&h=180&w=320&ytvs=1");rdf=l}},SMH=function(l){var e="q="+encodeURIComponent(l.query);
l.previousSearchQuery&&(e+="&pq="+encodeURIComponent(l.previousSearchQuery));return e},Qeo=function(){var l=_.hT("SBOX_SETTINGS"),e={};
if(l==null?0:l.SEND_VISITOR_DATA)e["X-Goog-Visitor-Id"]=l==null?void 0:l.VISITOR_DATA;return e},xl4=function(l){var e=rdf;
e+="&gs_id="+l.id.toString(36);e+="&q="+encodeURIComponent(l.query);e+="&cp="+l.query.length;l.previousSearchQuery&&(e+="&pq="+encodeURIComponent(l.previousSearchQuery));(l=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(e+="&video_id="+l);return e},NrF=0,rdf="";var lih=_.qX.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,enu=_.qX.SEARCH_ENTITY_SUGGESTION_MOVIE,Owf=_.qX.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,E_3=_.qX.SEARCH_ENTITY_SUGGESTION_TV_SHOW,JQO=function(l,e){this.text=l;this.bold=e},Xd4=function(l,e,O){this.input=e;
this.index=O;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=l[0];this.type=l[1];this.subtypes=l[2];var E;this.displayText=e5((E=l[3])==null?void 0:E.b);var J;this.ignoredPrefix=e5((J=l[3])==null?void 0:J.a);var z,M;this.hasNewVideo=((z=l[3])==null?void 0:(M=z.zam)==null?void 0:M.toString())==="true"?!0:!1;var Z;this.visualSuggestUrl=(Z=l[3])==null?void 0:Z.zai;var u;this.entityType=e5((u=l[3])==null?void 0:u.zap);var d;this.entityName=e5((d=l[3])==null?void 0:d.zao);var g;e=e5((g=
l[3])==null?void 0:g.zaf);var w;this.entityMid=(w=l[3])==null?void 0:w.zae;g=lr4(this.subtypes,this.entityMid);if(e&&g){if(e){w="";switch(g){case "YOUTUBE_ENTITY_TYPE_SONG":w=Owf;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":w=lih;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":w=E_3;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":w=enu}g=g==="YOUTUBE_ENTITY_TYPE_SONG"||g==="YOUTUBE_ENTITY_TYPE_ALBUM"?w+" \u2022  \u2022 "+e:e}else g="";this.entitySubtitle=g}var n;this.externalChannelId=(n=l[3])==null?void 0:n.zav;var k;
this.entityThumbnailAttributionUrl=(k=l[3])==null?void 0:k.zaq},bwi=function(l,e){var O=[],E,J=(E=l.displayText)!=null?E:l.text;
(e==null?0:e.useEntityName)&&znP(l)&&l.entityName&&(J=l.entityName);if(l.type===33)return O.push(new JQO(J,!1)),O;if(J.length>=l.input.length&&J.substring(0,l.input.length)===l.input)O.push(new JQO(l.input,!1)),O.push(new JQO(J.substring(l.input.length),!0));else{var z=new Set(l.input.split(/\s/)),M=J.split(/\s/);O=M.map(function(Z,u){return new JQO(Z.trim()+(u===M.length-1?"":" "),!z.has(Z))})}return O},znP=function(l){var e=!!lr4(l.subtypes);
l=!!l.entityMid;return e||l};var Mci=function(l){this.rawResponse=["",[],{}];this.suggestions=[];try{var e=JSON.parse(e70(l));if(typeof e==="object"&&e!==null)this.rawResponse=e;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(E){console.log("Suggest: Failed to parse SuggestResponse!");return}var O=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(E,J){return new Xd4(E,O,J)})};var VcO=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new vRu;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18466_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Zw0,u3z=function(){Zw0||(Zw0=new VcO);
return Zw0};
VcO.prototype.updateSuggestions=function(l){var e=this;this.availableSuggestions.forEach(function(O){e.previousSuggestions[O]=!0});
this.availableSuggestions=l.map(function(O){var E=O.type.toString();O.subtypes.length>0&&(E+="i"+O.subtypes.join("i"),E+="k"+O.suggestionSources.COMPLETE_SERVER.toString());return E})};
var Cou=function(l,e){var O=Date.now();l.firstEditTime<0&&(l.firstEditTime=O);e&&(l.lastQueryBuildTime=O);l.lastEditTime=O};
VcO.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18466_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var o_F=function(l){var e="";l.availableSuggestions.forEach(function(J){delete l.previousSuggestions[J]});
for(var O=_.b(Object.keys(l.previousSuggestions)),E=O.next();!E.done;E=O.next())E=E.value,l.previousSuggestions[E]&&(e+=(e?"j":"")+E);return e},$U4=function(l,e){var O=[];
e&&(O[1]=e.toString());O[0]="youtube";O[7]=Date.now()-l.startTime;O[6]=l.sessionNumber;l.zeroPrefixSuggestionCount>=0&&(O[33]=l.zeroPrefixSuggestionCount);O[13]=l.outOfSyncResponseCount;if(l.availableSuggestions.length>0){for(var E=e="",J=0,z=_.b(l.availableSuggestions),M=z.next();!M.done;M=z.next())M=M.value,M!==E&&(J>1&&(e+="l"+J),e+=(E?"j":"")+M,J=0,E=M),J+=1;J>1&&(e+="l"+J);O[3]=e}O[35]=o_F(l);l.selectedSuggestionIndex>=0&&(O[2]=l.selectedSuggestionIndex);var Z;if(e=(Z=_.hT("SBOX_SETTINGS"))==
null?void 0:Z.SUGG_EXP_ID)O[19]=l.normalize(e),Z=0,l.experimentTriggeredBeforeFinal&&(Z|=1),l.experimentTriggeredFinal&&(Z|=2),O[20]=Z;O[26]=Array.from(l.inputMethodsTracker.usedMethods).join("j");if(l.JSC$18466_totalRoundTripTime>0){O[15]=l.JSC$18466_totalRoundTripTime;O[14]=l.maxRoundTripTime;Z=[];for(J=e=0;J<10;J++)E=l.roundTripTimeHistogram[J],E===0?e++:(e>1?Z.push(J+"-"+E):e===1?Z.push("0j"+E):Z.push(E.toString()),e=0);Z=Z.join("j");O[16]=Z}l.zeroPrefixRoundTripTime>0&&(O[36]=l.zeroPrefixRoundTripTime);
l.lastQueryBuildTime>0&&(O[18]=l.lastQueryBuildTime-l.startTime);l.firstEditTime>0&&(O[4]=l.firstEditTime-l.startTime);l.lastEditTime>0&&(O[5]=l.lastEditTime-l.startTime);return O.join(".")};
VcO.prototype.normalize=function(l){return l.replaceAll(".","-")};
var Wqz=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Su=function(){var l=_.B.apply(this,arguments)||this;l.microphoneSpinnerActive=!1;l.noAnimations=!1;l.boundExitClick=function(){l.onExitButtonClick()};
l.speechOverlayClassName="";l.isLevelAnimating=!1;l.playCloseDialogAudioFeedback=!0;l.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return l};
_.m(Su,_.B);_.X=Su.prototype;_.X.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.X.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=lHF()};
_.X.dataChanged=function(){this.logDialog()};
_.X.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var l;(l=this.manager.audioPlayer)!=null&&(l.JSC$17755_audioEnabled=!1)}this.manager.stop();(l=this.manager.audioPlayer)!=null&&(l.JSC$17755_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.X.handleSpeechQueryCompleteAction=function(l){var e=l.navigationAction;e&&(l.trackingParams&&_.yN().graftServerVe(l.trackingParams,this.dialogVe,5),_.$u(this.hostElement,"yt-navigate",{endpoint:e,tempData:this.getNavigationParams(e),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.X.onExitButtonClick=function(){this.closeDialog()};
_.X.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var l;if((l=this.manager)!=null){var e;(e=l.audioPlayer)==null||Yt(e,"failure");l.setState("microphone-off");l.stop()}}else(l=this.manager)==null||l.start()};
_.X.transcriptionChanged=function(){var l,e;(((l=this.transcription)==null?0:l.low)||((e=this.transcription)==null?0:e.high))&&this.setState("transcribing",this.transcription)};
_.X.stateChanged=function(){this.setState(this.state,this.transcription)};
_.X.logDialog=function(){var l;(l=this.data)!=null&&l.trackingParams&&(l=_.yN(),_.on(l,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=l.graftServerVe(this.data.trackingParams,void 0,5))};
_.X.getNavigationParams=function(l){var e={};if(_.a("web_yt_searchbox")){var O=u3z();O.inputMethodsTracker.add(6);O=$U4(O,15);e.gs_l=O;var E;e.oq=((E=_.I(l,_.yF))==null?void 0:E.query)||""}else if(l=window.ytvoicesearchloggingparams){if(l=l())e.oq=l.oq,e.gs_l=l.gs_l}else _.Nz(Error("ml"));return e};
_.X.closeDialog=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.X.setState=function(l,e){if(this.data){var O=this.data,E={};switch(l){case "listening":E={headerText:O.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:O.microphoneButtonAriaLabel};break;case "timeout":E={headerText:O.promptHeader,microphoneState:"try-again",microphoneLabel:O.promptMicrophoneLabel,microphoneAriaLabel:O.promptMicrophoneLabel};break;case "microphone-off":E={headerText:O.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:O.promptMicrophoneLabel,
microphoneAriaLabel:O.promptMicrophoneLabel};break;case "transcribing":(e==null?0:e.low)||(e==null?0:e.high)?E={transcriptionLow:e==null?void 0:e.low,transcriptionHigh:e==null?void 0:e.high,microphoneState:"speaking",microphoneAriaLabel:O.microphoneButtonAriaLabel}:E={headerText:O.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:O.microphoneButtonAriaLabel};break;case "processing":E={headerText:O.loadingHeader,microphoneState:"processing",microphoneAriaLabel:O.microphoneButtonAriaLabel};
break;case "offline":E={headerText:O.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:O.connectionErrorMicrophoneLabel,microphoneAriaLabel:O.connectionErrorMicrophoneLabel};break;case "permission":E={headerText:O.permissionsHeader,bodyLine1:O.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:O.permissionsSubtext};break;case "permission-denied":E={headerText:O.disabledHeader,bodyLine1:O.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:O.disabledSubtext}}E.className=
l;this.speechOverlayState=E;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.X.setMicrophoneState=function(l){var e=this.isLevelAnimating;this.isLevelAnimating=l==="speaking";!e&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=l==="processing"&&!this.noAnimations};
_.X.setClass=function(l){this.speechOverlayClassName&&_.oB(this.hostElement,this.speechOverlayClassName,!1);l&&(this.speechOverlayClassName=l,_.oB(this.hostElement,l,!0))};
_.X.runLevelAnimation=function(){var l=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var e=1+Math.random()*.75,O=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+O/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+e+")");_.UD.addJob(function(){l.runLevelAnimation()},3,O)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Su.prototype.stateChanged=Su.prototype.stateChanged;Su.prototype.transcriptionChanged=Su.prototype.transcriptionChanged;Su.prototype.onPopupClosed=Su.prototype.onPopupClosed;Su.prototype.dataChanged=Su.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Su.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Su.prototype,"rendererStamperBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],Su.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],Su.prototype,"eventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Su.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Su.prototype,"speechOverlayState",void 0);
_.L([_.T(),_.q("design:type",Object)],Su.prototype,"microphoneSpinnerActive",void 0);_.L([_.T({type:_.a("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.q("design:type",Object)],Su.prototype,"noAnimations",void 0);_.L([_.T({selector:function(l){var e;return(e=l.voiceSearch)==null?void 0:e.transcription}}),
_.q("design:type",Object)],Su.prototype,"transcription",void 0);_.L([_.T({selector:function(l){var e;return(e=l.voiceSearch)==null?void 0:e.overlay}}),
_.q("design:type",String)],Su.prototype,"state",void 0);_.L([_.T(),_.q("design:type",Object)],Su.prototype,"boundExitClick",void 0);_.L([_.aB("#microphone-levels"),_.q("design:type",HTMLElement)],Su.prototype,"level",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Su.prototype,"dataChanged",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Su.prototype,"onPopupClosed",null);
_.L([_.y0("transcription"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Su.prototype,"transcriptionChanged",null);_.L([_.y0("state"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Su.prototype,"stateChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Su);
_.Y(Su,"ytd-voice-search-dialog-renderer",function(){if(qM4!==void 0)return qM4;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return qM4=l},{mode:1});var dUf;var Qo=function(){var l=_.B.apply(this,arguments)||this;l.isOverlay=!1;l.hidden=!1;return l};
_.m(Qo,_.B);_.X=Qo.prototype;_.X.onPopupClosed=function(){this.toggleIconState(!1)};
_.X.computeIcon=function(){var l,e,O;return(e=_.I((l=this.data)==null?void 0:l.icon,R2u))==null?void 0:(O=e.icon)==null?void 0:O.iconType};
_.X.computeIconBadgeShape=function(){var l;return{iconBadgeType:"cart",iconBadgeText:(l=this.iconBadgeEntity)==null?void 0:l.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.X.onClick=function(){var l;(l=this.data)!=null&&l.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.X.computeHidden=function(l){return!l};
_.X.toggleIconState=function(l){this.iconButton&&(this.iconButton.pressed=l)};
Qo.prototype.onPopupClosed=Qo.prototype.onPopupClosed;_.L([_.K(_.sY),_.q("design:type",Object)],Qo.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Qo.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Qo.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Qo.prototype,"isOverlay",void 0);
_.L([_.T({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.q("design:type",Object)],Qo.prototype,"hidden",void 0);_.L([_.T({selectorArgs:["data.iconBadgeEntityKey"],selector:function(l,e){return _.wV(l.entities,"iconBadgeEntity",e)}}),
_.q("design:type",Object)],Qo.prototype,"iconBadgeEntity",void 0);_.L([_.aB("yt-icon-button"),_.q("design:type",HTMLButtonElement)],Qo.prototype,"iconButton",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Qo.prototype,"onPopupClosed",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Qo);
_.Y(Qo,"ytd-icon-badge-topbar-button-renderer",function(){if(dUf!==void 0)return dUf;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return dUf=l},{mode:1});var g_F;var xL=function(){var l=_.B.apply(this,arguments)||this;l.premiumOptions=[];l.darkerDarkTheme=_.a("web_darker_dark_theme");return l};
_.m(xL,_.B);xL.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Ji.Object.defineProperties(xL.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],xL.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Array)],xL.prototype,"premiumOptions",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],xL.prototype,"darkerDarkTheme",void 0);_.L([_.R("premiumOptions"),_.q("design:type",Object),_.q("design:paramtypes",[])],xL.prototype,"hasPremiumOptions",null);
_.L([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],xL);
_.Y(xL,"ytd-offline-promo-content",function(){if(g_F!==void 0)return g_F;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return g_F=l},{mode:1});var iwH;var lC=function(){var l=_.B.apply(this,arguments)||this;l.premiumOptions=[];return l};
_.m(lC,_.B);lC.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var l;this.premiumOptions=x9C((l=this.data)==null?void 0:l.formats)};
lC.prototype.onClickSubmit=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var l;(l=_.bV())==null||l.pause()};
lC.prototype.attached=function(){this.JSC$18486_scroller&&(this.JSC$18486_scroller.dialogElement=this.hostElement.parentNode)};
_.Ji.Object.defineProperties(lC.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
lC.prototype.dataChanged=lC.prototype.dataChanged;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],lC.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],lC.prototype,"data",void 0);
_.L([_.T({computed:"computeIcon_(data.headersIcon)",value:""}),_.q("design:type",String)],lC.prototype,"headersIcon",void 0);_.L([_.T(),_.q("design:type",Array)],lC.prototype,"premiumOptions",void 0);_.L([_.aB("#scroller"),_.q("design:type",Object)],lC.prototype,"JSC$18486_scroller",void 0);_.L([_.R("headersIcon"),_.q("design:type",Object),_.q("design:paramtypes",[])],lC.prototype,"showIcon",null);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],lC.prototype,"dataChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],lC);
_.Y(lC,"ytd-offline-promo-renderer",function(){if(iwH!==void 0)return iwH;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return iwH=l},{mode:1});var wdO;var e_=function(){var l=_.B.apply(this,arguments)||this;l.playbackPauseInterval=NaN;l.isLoading=!1;l.hasError=!1;l.dialogClass="";l.youtubeLabel=_.ml("LOGO_ALT_LABEL",{},"YouTube Home");l.logoName="yt-logos-ext:yt-logo-updated";l.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return l};
_.m(e_,_.B);_.X=e_.prototype;_.X.onDataChange=function(){var l;if(this.showEOMV1Text=!((l=this.data)==null||!l.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.X.attached=function(){this.pausePlayer()};
_.X.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.X.handleLangSelect=function(l){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[l.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.X.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.X.handleSaveConsent=function(l){var e=this;this.showLoadingSpinner();this.showLoadingSpinner();Rd0(_.I(l,TIF)).catch(function(O){_.hG(new _.Hk("Something went wrong when save consent "+(O.message?O.message:O)+"."));e.hideLoadingSpinner();e.showErrorMessage()})};
_.X.handleDisablePersonalization=function(l){var e=this;this.showLoadingSpinner();TLu(_.I(l,RLP)).then(function(){e.dialog.close();e.resumePlayer()}).catch(function(O){_.hG(new _.Hk("Something went wrong when disable personalization "+(O.message?O.message:O)+"."));
e.hideLoadingSpinner();e.showErrorMessage()})};
_.X.showLoadingSpinner=function(){var l=this;this.showSpinnerJobId=_.UD.addLowPriorityJob(function(){l.isLoading=!0},500)};
_.X.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.UD.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.X.showErrorMessage=function(){var l=this;this.hasError=!0;_.UD.addLowPriorityJob(function(){l.hasError=!1},2E3)};
_.X.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.gL(function(){try{var l=_.bV();l&&l.pause()}catch(e){}},100))};
_.X.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var l=_.bV();l&&l.play()}catch(e){}};
_.Ji.Object.defineProperties(e_.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.eomV1Text)return[];l=[];for(var e=["SHIELD","WARNING","BAR_CHART"],O=this.data.eomV1Text.essentialCookieMsg.items,E=0;E<e.length&&E<O.length;E++)l.push({icon:e[E],text:O[E]});return l}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.eomV1Text)return[];l=[];for(var e=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],O=this.data.eomV1Text.nonEssentialCookieMsg.items,E=0;E<e.length&&E<O.length;E++)l.push({icon:e[E],text:O[E]});return l}}});
e_.prototype.onDataChange=e_.prototype.onDataChange;_.L([_.T(),_.q("design:type",Object)],e_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],e_.prototype,"showEOMV1Text",void 0);_.L([_.T(),_.q("design:type",Object)],e_.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Object)],e_.prototype,"hasError",void 0);_.L([_.T(),_.q("design:type",Number)],e_.prototype,"showSpinnerJobId",void 0);_.L([_.T(),_.q("design:type",Object)],e_.prototype,"dialogClass",void 0);
_.L([_.aB("#dialog"),_.q("design:type",Object)],e_.prototype,"dialog",void 0);_.L([_.aB("#cb-header"),_.q("design:type",HTMLElement)],e_.prototype,"header",void 0);_.L([_.aB("#lang-select"),_.q("design:type",HTMLElement)],e_.prototype,"langSelect",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],e_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],e_.prototype,"ytComponentBehavior",void 0);
_.L([_.T(),_.q("design:type",String)],e_.prototype,"youtubeLabel",void 0);_.L([_.T(),_.q("design:type",Object)],e_.prototype,"logoName",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],e_.prototype,"onDataChange",null);_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],e_.prototype,"eomEssentialCookieMsgItems",null);
_.L([_.R("data"),_.q("design:type",Array),_.q("design:paramtypes",[])],e_.prototype,"eomNonEssentialCookieMsgItems",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],e_);
_.Y(e_,"ytd-consent-bump-v2-lightbox",function(){if(wdO!==void 0)return wdO;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return wdO=l},{mode:1});var AQu;var Ob=function(){return _.B.apply(this,arguments)||this};
_.m(Ob,_.B);Ob.prototype.ready=function(){if(!_.pv()||QXH)var l=!0;else QXH=!0,l=!1;l||(l=document.querySelector("ytd-app"),l||(l=document.body),this.internalLightBox=_.ud(l).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.L([_.T(),_.q("design:type",Object)],Ob.prototype,"data",void 0);_.L([_.aB("#lightbox"),_.q("design:type",Object)],Ob.prototype,"lightBox",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ob);
_.Y(Ob,"ytd-consent-bump-v2-renderer",function(){if(AQu!==void 0)return AQu;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return AQu=l},{mode:1});var n_C;var ai4;var kmC;var Eb=function(){var l=_.B.apply(this,arguments)||this;l.ephemeralActionsEnabled=_.a("web_ephemeral_actions");return l};
_.m(Eb,_.B);_.X=Eb.prototype;_.X.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&uO4(this.toastManager,this.toastType)};
_.X.open=function(l){this.toast&&(this.ephemeralAction&&_.V2().resolve(_.$Y).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=l!=null?l:0,this.toastManager.enqueue(this.toast,l)):this.toast.open())};
_.X.close=function(l){var e;(e=this.toast)==null||e.close();this.toastManager&&l===1&&uO4(this.toastManager,l)};
_.X.refit=function(){var l;(l=this.toast)==null||l.refit()};
_.X.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var l;(l=this.toast)==null||l.close()}};
_.X.setVerticalOffset=function(l){this.toast&&(this.toast.verticalOffset=l,this.toast.fit())};
_.X.computeButtonClass_=function(l){return l?"toast-button":""};
_.X.computeText_=function(l){return _.lG(l)};
_.X.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.vu("toast-opened-changed",this.toastOpened))};
_.X.updateToastOpenedFromBinding=function(l){this.toastOpened=l.detail.value};
_.Ji.Object.defineProperties(Eb.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var l,e,O=(l=this.data)==null?void 0:(e=l.actionButton)==null?void 0:e.buttonRenderer;return(O==null?void 0:O.command)||(O==null?void 0:O.serviceEndpoint)||(O==null?void 0:O.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var l=[],e;((e=this.data)==null?0:e.responseText)&&l.push(_.lG(this.data.responseText));var O;((O=this.data)==null?0:O.subText)&&l.push(_.lG(this.data.subText));var E,J;if((E=this.data)==null?0:(J=E.actionButton)==null?0:J.buttonRenderer){var z,M;l.push(((z=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(M=z.accessibilityData)==null?void 0:M.label)||_.lG(this.data.actionButton.buttonRenderer.text))}return l.filter(function(Z){return Z}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var l,e;return(e=(l=this.toast)==null?void 0:l.opened)!=null?e:!1}}});
Eb.prototype.toastOpenedChangedForBinding=Eb.prototype.toastOpenedChangedForBinding;Eb.prototype.toastOpenedChanged=Eb.prototype.toastOpenedChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],Eb.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Eb.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],Eb.prototype,"duration",void 0);
_.L([_.T(),_.q("design:type",Number)],Eb.prototype,"toastType",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Eb.prototype,"useCloseButton",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Eb.prototype,"closeToastOnActionButtonClick",void 0);_.L([_.T({value:function(){return _.ml("SBOX_INAPPROPRIATE_CANCEL")}}),
_.q("design:type",String)],Eb.prototype,"closeButtonAriaLabel",void 0);_.L([_.T(),_.q("design:type",Boolean)],Eb.prototype,"toastOpened",void 0);_.L([_.T(),_.q("design:type",Boolean)],Eb.prototype,"hasOpened",void 0);_.L([_.T(),_.q("design:type",Object)],Eb.prototype,"ephemeralActionsEnabled",void 0);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],Eb.prototype,"command",null);
_.L([_.R("ephemeralActionsEnabled","labelText","command","duration"),_.q("design:type",Object),_.q("design:paramtypes",[])],Eb.prototype,"ephemeralAction",null);_.L([_.R("ephemeralAction"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],Eb.prototype,"hasEphemeralAction",null);_.L([_.aB("#toast"),_.q("design:type",Object)],Eb.prototype,"toast",void 0);_.L([_.T({value:function(){return{style:"call-to-action-inverse"}}}),
_.q("design:type",Object)],Eb.prototype,"buttonOverrides",void 0);_.L([_.T({value:{style:"mono-inverse"}}),_.q("design:type",Object)],Eb.prototype,"closeButtonOverrides",void 0);_.L([_.T({value:function(){return _.V2().resolve(_.MG(_.MQ))}}),
_.q("design:type",Object)],Eb.prototype,"toastManager",void 0);_.L([_.R("data.responseText","data.subText","data.actionButton"),_.q("design:type",Object),_.q("design:paramtypes",[])],Eb.prototype,"labelText",null);_.L([_.AA("toastOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Eb.prototype,"toastOpenedChanged",null);
_.L([_.AA("toastOpened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Eb.prototype,"toastOpenedChangedForBinding",null);_.L([_.Ps({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Eb);
_.Y(Eb,"yt-notification-action-renderer",function(){if(kmC===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ai4===void 0&&(ai4=document.createElement("template"));var E=ai4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);kmC=l}l=kmC;return l},{mode:2});var J_=function(){var l=_.B.apply(this,arguments)||this;l.duration=4E3;l.downloadingCount=0;l.downloadedCount=0;l.downloadingOnlySmartDownloads=!1;l.sessionTotalDownloads=0;l.sessionDownloaded=0;l.previousSessionsDownloaded=0;l.totalDownloadPercentage=0;l.currentDownloadProgress=0;l.currentDownloadPercentage=0;l.isLeaderTab=!0;l.isFullScreen=!1;l.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};l.boundBeforeUnload=function(e){l.isLeaderTab&&l.downloadingCount>0&&(e.preventDefault(),
e.returnValue=!0)};
return l};
_.m(J_,_.B);_.X=J_.prototype;
_.X.open=function(){this.updateDownloadState();if(this.data){var l=this.sessionDownloaded+1,e=this.sessionTotalDownloads>1?_.ml("VIDEOS_DOWNLOADING_RATIO",{downloaded:l.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+l+"/"+this.sessionTotalDownloads):_.ml("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(e=this.sessionTotalDownloads>1?_.ml("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:l.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
l+"/"+this.sessionTotalDownloads):_.ml("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));l=this.isLeaderTab?_.ml("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.lG(this.data.responseText)!==e||_.lG(this.data.subText)!==l)this.set("data.responseText",_.xp(e)),this.set("data.subText",_.xp(l)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.X.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.X.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.X.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.X.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var l=this.downloadedCount-this.previousSessionsDownloaded;l<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-l);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.X.handleFullscreenChange=function(l){(this.isFullScreen=l)||this.updatePopup()};
J_.prototype.updateCurrentDownloadProgress=J_.prototype.updateCurrentDownloadProgress;J_.prototype.updatePopup=J_.prototype.updatePopup;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],J_.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],J_.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],J_.prototype,"actionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"duration",void 0);_.L([_.T({selector:function(l){return _.AJq(l.entities).length}}),
_.q("design:type",Object)],J_.prototype,"downloadingCount",void 0);_.L([_.T({selector:t7H}),_.q("design:type",Object)],J_.prototype,"downloadedCount",void 0);_.L([_.T({selector:function(l){var e=_.AJq(l.entities);return LW4(l.entities,e)}}),
_.q("design:type",Object)],J_.prototype,"downloadingOnlySmartDownloads",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"sessionTotalDownloads",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"sessionDownloaded",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"previousSessionsDownloaded",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"totalDownloadPercentage",void 0);
_.L([_.T({selector:function(l){var e;l=(e=_.AJq(l.entities))!=null?e:[];return l.length>0?_.FRA(l.slice(-1)):0}}),
_.q("design:type",Object)],J_.prototype,"currentDownloadProgress",void 0);_.L([_.T(),_.q("design:type",Object)],J_.prototype,"currentDownloadPercentage",void 0);_.L([_.T({selector:_.Ind}),_.q("design:type",Object)],J_.prototype,"isLeaderTab",void 0);_.L([_.aB("yt-notification-action-renderer"),_.q("design:type",Object)],J_.prototype,"notificationActionRenderer",void 0);
_.L([_.y0("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J_.prototype,"updatePopup",null);_.L([_.y0("currentDownloadProgress"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],J_.prototype,"updateCurrentDownloadProgress",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],J_);
_.Y(J_,"ytd-video-download-toast-renderer",function(){if(n_C!==void 0)return n_C;var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return n_C=l},{mode:1});var Ii0;var mUu;var Xo=function(){return _.B.apply(this,arguments)||this};
_.m(Xo,_.B);Xo.prototype.computeIsRedLogo=function(l,e){!l&&e&&(l=e);return l==="YOUTUBE_RED_LOGO"||l==="YOUTUBE_PREMIUM_LOGO"};
Xo.prototype.computeLogoName=function(l){l=this.componentBehavior.computeIcon_(l);return l===""?"yt-logos-ext:yt-logo-updated":l};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Xo.prototype,"componentBehavior",void 0);_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.q("design:type",Boolean)],Xo.prototype,"isRedLogo",void 0);_.L([_.T({computed:"computeLogoName(data)"}),_.q("design:type",String)],Xo.prototype,"logoName",void 0);_.L([_.T({value:{}}),_.q("design:type",Object)],Xo.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],Xo.prototype,"logoType",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-logo"})],Xo);
_.Y(Xo,"ytd-logo",function(){if(mUu!==void 0)return mUu;var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return mUu=l},{mode:_.Wf("kevlar_poly_si_batch_j074")?1:2});var zU=function(){var l=_.B.apply(this,arguments)||this;l.animationRef={};return l};
_.m(zU,_.B);_.X=zU.prototype;_.X.attached=function(){document.addEventListener("yt-navigate-finish",_.id(this,this.logYoodle))};
_.X.detached=function(){document.removeEventListener("yt-navigate-finish",_.id(this,this.logYoodle))};
_.X.logYoodle=function(){var l,e;if((l=this.data)==null?0:(e=l.loggingDirectives)==null?0:e.trackingParams)this.ytRendererBehavior.markDirty(),_.yN().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.X.computeHideImg=function(l,e){return!!l||!!e};
_.X.computeHideYtdLogo=function(l,e){return!l||!!e};
_.X.computeHideLottie=function(l){return!l};
_.X.computeIsRedLogo=function(l){return l==="YOUTUBE_RED_LOGO"||l==="YOUTUBE_PREMIUM_LOGO"};
_.X.renderLogoEntity=function(){var l=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),e=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),O=this.getLogoTitleText(this.data),E=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==l&&(this.url=l);this.animatedUrl!==e&&(this.animatedUrl=e);this.logoTitleText!==O&&(this.logoTitleText=O);this.lottieUrl!==E&&(this.lottieUrl=E,this.lottiePlayerProps=this.computeLottiePlayerProps(E))};
_.X.getSanitizedThumbnail=function(l){return l&&l.thumbnails?_.qqx(l.thumbnails,122)||"":""};
_.X.getThumbnailUrl=function(l,e){if(!e)return"";var O,E;l=l?(O=e.darkThemeLogo)==null?void 0:O.thumbnail:(E=e.lightThemeLogo)==null?void 0:E.thumbnail;return this.getSanitizedThumbnail(l)};
_.X.getAnimatedThumbnailUrl=function(l,e){return e?this.getSanitizedThumbnail(l?e.darkThemeAnimatedLogo:e.lightThemeAnimatedLogo):""};
_.X.getLogoTitleText=function(l){if(l)return _.lG(l.tooltipText)};
_.X.computeLogoIcon=function(l,e){if(e){var O,E;return l?(O=e.darkThemeLogo)==null?void 0:O.icon:(E=e.lightThemeLogo)==null?void 0:E.icon}};
_.X.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.X.getLottieUrl=function(l,e){var O,E,J,z;return l?e==null?void 0:(O=e.darkThemeLogo)==null?void 0:(E=O.lottieAnimation)==null?void 0:E.url:e==null?void 0:(J=e.lightThemeLogo)==null?void 0:(z=J.lottieAnimation)==null?void 0:z.url};
_.X.computeLottiePlayerProps=function(l){if(l){var e;if((e=this.animationRef)==null?0:e.lottieEl){var O;(O=this.animationRef)==null||O.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:l,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.X.onLottieError=function(){this.data&&this.lottieUrl&&_.$u(this.hostElement,"yoodle-error")};
_.X.onImgError=function(){this.data&&!this.lottieUrl&&_.$u(this.hostElement,"yoodle-error")};
zU.prototype.playAnimation=zU.prototype.playAnimation;zU.prototype.renderLogoEntity=zU.prototype.renderLogoEntity;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],zU.prototype,"data",void 0);_.L([_.T({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.q("design:type",Boolean)],zU.prototype,"hideImg",void 0);
_.L([_.T({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.q("design:type",Boolean)],zU.prototype,"hideYtdLogo",void 0);_.L([_.T({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.q("design:type",Boolean)],zU.prototype,"hideLottie",void 0);_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.q("design:type",Boolean)],zU.prototype,"isRedLogo",void 0);
_.L([_.T(),_.q("design:type",Boolean)],zU.prototype,"useDarkThemeYoodle",void 0);_.L([_.T(),_.q("design:type",String)],zU.prototype,"url",void 0);_.L([_.T(),_.q("design:type",String)],zU.prototype,"animatedUrl",void 0);_.L([_.T(),_.q("design:type",String)],zU.prototype,"logoTitleText",void 0);_.L([_.T({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.q("design:type",Object)],zU.prototype,"logoIcon",void 0);_.L([_.T(),_.q("design:type",Object)],zU.prototype,"logoType",void 0);
_.L([_.T(),_.q("design:type",String)],zU.prototype,"lottieUrl",void 0);_.L([_.T(),_.q("design:type",Object)],zU.prototype,"lottiePlayerProps",void 0);_.L([_.T(),_.q("design:type",Object)],zU.prototype,"animationRef",void 0);_.L([_.AA("data"),_.AA("useDarkThemeYoodle"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],zU.prototype,"renderLogoEntity",null);
_.L([_.wP("click"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],zU.prototype,"playAnimation",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],zU);
_.Y(zU,"ytd-yoodle-renderer",function(){if(Ii0!==void 0)return Ii0;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return Ii0=l},{mode:_.Wf("kevlar_poly_si_batch_j074")?1:2});var yQO;var pdu;var bC=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return l};
_.m(bC,_.B);_.X=bC.prototype;_.X.onYoodleError=function(){_.a("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.X.computeLogoName=function(l){l=this.componentBehavior.computeIcon_(l);return l===""?"yt-logos-ext:yt-logo-updated":l};
_.X.computeTitle=function(l,e,O){return O&&(e==null?0:e.tooltipText)?_.lG(e.tooltipText):_.lG(l)};
_.X.computeAriaLabel=function(l,e,O){return O&&(e==null?0:e.tooltipText)?_.lG(l):""};
_.X.computeShowYoodle=function(l,e,O){return!l||!e&&!!O&&!_.mm.isEmpty(O)};
_.X.onNavigateHomeAction=function(){if(_.a("kevlar_miniplayer_navigate_home_from_app_killswitch")){var l;(l=_.ud(this.hostElement).querySelector(".yt-simple-endpoint"))==null||l.click()}};
_.X.computeLogoHref=function(l,e,O){var E;(O==null?0:O.onTapCommand)?E=this.componentBehavior.computeHref_(O.onTapCommand):l&&(E=this.componentBehavior.computeHref_(l));return E?E:e};
_.X.computeCommand=function(l,e){return(e==null?void 0:e.onTapCommand)||l};
_.X.getEndpointForm=function(){if(_.a("kevlar_topbar_disable_cache_only_home")){var l=_.V2().resolve(_.LQ),e=SDH(l.getState())||"";l=_.LjM(l.getState())||"";return{disableCache:e==="ytd-browse"&&l==="home"}}return{disableCache:!0}};
bC.prototype.onYoodleError=bC.prototype.onYoodleError;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],bC.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],bC.prototype,"componentBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],bC.prototype,"ytdReduxBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],bC.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],bC.prototype,"countryCode",void 0);_.L([_.T({selectorArgs:["data.overrideEntityKey"],selector:function(l,e){return _.wV(l.entities,"logoEntity",e)}}),
_.q("design:type",Object)],bC.prototype,"logoEntity",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.q("design:type",Boolean)],bC.prototype,"showYoodle",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],bC.prototype,"yoodleError",void 0);_.L([_.T({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.q("design:type",String)],bC.prototype,"titleText",void 0);
_.L([_.T({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.q("design:type",String)],bC.prototype,"ariaLabelText",void 0);_.L([_.T({value:"/"}),_.q("design:type",String)],bC.prototype,"defaultEndpointUrl",void 0);_.L([_.T({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.q("design:type",String)],bC.prototype,"endpointUrl",void 0);
_.L([_.T({computed:"computeCommand(data.endpoint, logoEntity)"}),_.q("design:type",String)],bC.prototype,"command",void 0);_.L([_.T(),_.q("design:type",Object)],bC.prototype,"logoType",void 0);_.L([_.T({}),_.q("design:type",Boolean)],bC.prototype,"useDarkThemeYoodle",void 0);_.L([_.wP("yoodle-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],bC.prototype,"onYoodleError",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],bC);
_.Y(bC,"ytd-topbar-logo-renderer",function(){if(pdu!==void 0)return pdu;var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return pdu=l},{mode:_.Wf("kevlar_poly_si_batch_j027")?1:2});var Kqf=0;var jWH=_.qX.SEARCH_APPEND_LABEL,Hw0=_.qX.SUGGESTION_NEW_VIDEOS_TEXT,cQF=_.qX.SUGGESTION_THUMBNAIL_LABEL,Fq4=_.qX.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,fiz=_.XO(function(l){function e(KR){var CP,z1;return _.V(function(bz){if(bz.nextAddress==1)return CP=new Request(KR),_.b1(bz,2),_.C(bz,fetch(CP,{credentials:"include"}),4);if(bz.nextAddress!=2)return ZV(!0),_.Q2(bz,0);z1=_.u1(bz);_.hG(z1);_.Cl(bz)})}
var O=l.isHighlighted;var E=l.suggestion;var J=l.onClickCallback;var z=l.onHoverUpdateCallback;var M=l.labels;var Z=l.queryBuilderFunction;var u=l.onRemoveCallback;var d=l.suggestionIndex;var g=l.generateUniqueId;var w=l.highlightedId;var n=l.useScrollMargin;var k=l.isKeyboardMode;var y=null,c=null,f=_.e4("div"),P=_.e4("span");l=_.b(_.AF(!1,void 0,"CgAMgc"));var h=l.next().value,N=l.next().value,t=_.O0("a",function(KR){KR&&_.LN(237477,KR,c,function(CP){c=CP})}),r=_.O0("button",function(KR){KR&&_.LN(237477,
KR,c,function(CP){c=CP})}),D=_.pd(function(KR){if((KR==null?void 0:KR.button)===2)return KR.preventDefault(),!1;
var CP=_.P9();CP&&y&&_.En(CP,y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var z1;J(KR,E().text,E().index,E().entityMid,KR==null?void 0:(z1=KR.detail)==null?void 0:z1.wasSelectedByKeyboard);return!1}),b2=function(){return E().type===35},$V=function(){return _.a("desktop_enable_single_suggestion_highlight")},gT=function(){return _.Cv("desktop_suggestions_panel_row_height")||0},mx=function(){var KR;
return _.a("desktop_enable_new_video_metadata")&&((KR=E())==null?void 0:KR.hasNewVideo)===!0},jM=function(){return _.a("desktop_enable_visual_suggest")},cx=function(){return _.a("desktop_enable_entity_suggest")&&znP(E())},tq=function(){return E().entitySubtitle},Px=function(){return $V()?(O==null?void 0:O())||AC()&&!(k==null?0:k()):(O==null?void 0:O())||AC()},S0=function(){var KR=_.hT("SBOX_SETTINGS");
return b2()&&!(KR==null?0:KR.HIDE_REMOVE_LINK)},QH=function(){return bwi(E(),{useEntityName:cx()})},pR,oq=!((pR=_.V2().resolve(_.MG(_.lp)))==null||!pR()),ZS=function(){return b2()?_.a("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Ou=function(){return M==null?void 0:M().SUGGESTION_DISMISS_LABEL},uq=function(){return M==null?void 0:M().SUGGESTION_DISMISSED_LABEL};
l=_.b(_.AF(!1,void 0,"RcUcKd"));pR=l.next().value;var ZV=l.next().value;l=_.b(_.AF(!1,void 0,"yGR7je"));var jO=l.next().value,V8=l.next().value,AC=jO,Fk=_.pd(function(){Z(P.value.innerText);return!1}),tu=_.pd(function(KR){KR.preventDefault();
return!1}),kq=_.pd(function(KR){var CP=E().text,z1=_.hT("SBOX_SETTINGS"),bz="https://"+(z1.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
bz+="&delq="+encodeURIComponent(CP);(CP=z1==null?void 0:z1.PSUGGEST_TOKEN)&&(bz+="&tok="+CP);(z1=z1==null?void 0:z1.SESSION_INDEX)&&(bz+="&authuser="+z1);e(bz);KR.preventDefault();(KR=_.P9())&&c&&_.En(KR,c,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");u(d==null?void 0:d());return!1}),Ni=_.pd(function(){if($V()&&(k==null?0:k()))return!1;
V8(!0);z(!0);return!1}),YA=_.pd(function(){V8(!1);
z(!1);return!1}),v6=_.pd(function(){N(!0);
return!1}),Xk=_.pd(function(){N(!1);
return!1}),P6=_.pd(function(KR){KR.preventDefault();
var CP;(KR=(CP=E().entityThumbnailAttributionUrl)!=null?CP:"")&&_.WYu(KR);return!1});
l=_.b(_.AF("",void 0,"k9uVge"));var wf=l.next().value,w1=l.next().value;_.RU(function(){S0()&&w1(g==null?void 0:g(d==null?void 0:d()));f.value&&_.LN(12453,f.value,y,function(KR){y=KR})});
return _.W(_.A,{cond:pR,then:function(){var KR={};return _.W("div",{class:_.ax("ytSuggestionComponentRemovedText",(KR.ytSuggestionComponentLargerRemovedText=function(){return jM()},KR)),
style:function(){return gT()>0?"height: "+gT()+"px;":""},
role:"button"},uq)},
else:function(){var KR={},CP={};return _.W("div",{class:_.ax("ytSuggestionComponentSuggestion",(KR.ytSuggestionComponentSuggestionHover=function(){return!$V()},KR.ytSuggestionComponentHighlighted=Px,KR.ytSuggestionComponentPersonalizedSuggestion=b2,KR.ytSuggestionComponentMweb=!1,KR.ytSuggestionComponentLargerSuggestion=function(){return mx()||jM()},KR.ytSuggestionComponentThumbnailSuggestion=function(){return jM()},KR.ytSuggestionComponentRoundedSuggestion=function(){return _.a("desktop_enable_scrollable_suggestions_panel")&&
_.a("desktop_enable_suggestions_panel_padding")},KR.ytSuggestionComponentThumbnailPadding=function(){return jM()&&!b2()},KR)),
style:function(){return gT()>0?"height: "+gT()+"px;":""},
role:"presentation","on:mousedown":D,"on:mouseover":Ni,"on:mouseout":YA,el:f},_.W("div",{class:_.ax("ytSuggestionComponentText",(CP.ytSuggestionComponentScrollMargin=n,CP)),"aria-label":function(){return mx()?E().text+" "+Hw0:E().text},
id:function(){return g==null?void 0:g(d==null?void 0:d())},
"on:mousedown":D,role:"option"},_.W(_.A,{cond:function(){return E().type!==33},
then:function(){return _.W(_.cF,{icon:ZS,className:"ytSuggestionComponentIcon"})}}),_.W("div",{class:"ytSuggestionComponentLeftContainer"},_.W("span",{el:P,
role:"button",tabindex:0},_.W(_.KH,{each:QH},function(z1){return z1.bold?_.W("span",{class:"ytSuggestionComponentBold"},z1.text):_.W("span",null,z1.text)})),_.W(_.A,{cond:function(){return cx()&&!!E().entitySubtitle||mx()},
then:function(){return _.W("div",{class:"ytSuggestionComponentMetadataContainer"},_.W(_.A,{cond:function(){return cx()&&!!E().entitySubtitle},
then:function(){return _.W("div",{class:"ytSuggestionComponentEntitySubtitle"},tq)}}),_.W(_.A,{cond:function(){return mx()},
then:function(){return _.W("div",{class:"ytSuggestionComponentNewVideoContainer"},_.W("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.W("div",{class:"ytSuggestionComponentNewVideoText"},Hw0))}}))}}))),_.W("div",{class:"ytSuggestionComponentRightContainer"},_.W(_.A,{cond:function(){return jM()&&E().visualSuggestUrl!==void 0},
then:function(){var z1={};return _.W("div",{class:"ytSuggestionComponentThumbnailContainer"},_.W("img",{"aria-label":cQF,class:_.ax("ytSuggestionComponentVisualSuggestThumbnail",(z1.ytSuggestionComponentCircularFrame=function(){return cx()&&E().subtypes.includes(790)},z1.ytSuggestionComponentEntitySuggestThumbnail=function(){return cx()},z1)),
src:function(){return E().visualSuggestUrl}}),_.W(_.A,{cond:function(){return cx()&&!!E().entityThumbnailAttributionUrl},
then:function(){var bz={};return _.W("span",{title:Fq4,role:"tooltip"},_.W("div",{"on:mouseover":v6,"on:mouseout":Xk,"on:mousedown":P6,class:_.ax("ytSuggestionComponentThumbnailOverlay",(bz.ytSuggestionComponentThumbnailOverlayHidden=function(){return!h()},bz))},_.W(_.cF,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.W(_.cK,null,_.W(_.jD,{when:function(){return jM()&&S0()}},function(){var z1={};
return _.W("button",{class:_.ax("ytSuggestionComponentRemoveLinkClearButton",(z1.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return wf()&&wf()===(w==null?void 0:w())},z1.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Px()},z1)),
el:r,"on:mousedown":kq,"aria-label":Ou,id:function(){return wf()}},_.W(_.cF,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.W(_.jD,{when:function(){return!(jM()&&E().visualSuggestUrl!==void 0)&&S0()}},function(){var z1={};
return _.W("a",{class:_.ax("ytSuggestionComponentRemoveLink",(z1.ytSuggestionComponentRemoveLinkDark=oq,z1.ytSuggestionComponentRemoveLinkSelected=function(){return wf()&&wf()===(w==null?void 0:w())},z1)),
el:t,"on:mousedown":kq,"aria-label":Ou,tabindex:0,role:"button",id:function(){return wf()}},Ou)}),_.W(_.jD,{when:function(){return!1}},function(){return _.W("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Fk,"on:mousedown":tu,role:"button","aria-label":jWH},_.W(_.cF,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"sg");var Rnu=_.XO(function(){return _.W("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.W("button",{class:"ytdTextInputAssistantButton","on:click":_.pd(function(){u3z().inputMethodsTracker.add(3);var l,e=(l=_.hT("SBOX_SETTINGS"))==null?void 0:l.REQUEST_LANGUAGE;if(e)return _.Nd("//www.google.com/textinputassistant/14/"+e+"_tia.js"),!1})},_.W("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"tg");var TZC=function(){this.cache=new Map},sW0=function(l){for(var e=_.b(l.cache.entries()),O=e.next();!O.done;O=e.next()){var E=_.b(O.value);
O=E.next().value;E=E.next().value;E.suggestions.some(function(J){return J.type===35})&&l.cache.delete(O)}};var GmC=_.qX.SEARCH,BZF=_.qX.SEARCH_CLEAR_LABEL,PoF=new _.Xa("FAKE_SUGGEST_RESPONSE");_.Zw(_.XO(function(l){function e(){v6||(v6=setTimeout(function(){P6()},1E3))}
function O(iq,W6,Au){if(iq.trim()){YA=iq;_.Yd("REFINEMENTS_TUPLE",void 0);kq=!0;var uk;W6=$U4(jO,W6);var zS=(uk=l.searchEndpoint)==null?void 0:uk.call(l);uk=ZS.value.value;zS||(zS=Myz);var gG;(gG=_.I(zS.commandMetadata,_.V4))!=null&&gG.url||(gG=Error("nl`"+JSON.stringify(zS)),_.UW(gG),zS=Myz);gG=_.mm.unsafeClone(zS);zS=_.qr(_.I(gG.commandMetadata,_.V4).url,"search_query",iq);_.vD(location.href,"sv")==="1"&&(_.I(gG,_.yF).params="EgOAAgE%3D",zS=_.qr(zS,"sv","1"));_.I(gG,_.yF)&&(_.I(gG,_.yF).query=iq);
zS=zS.replace(/%20/g,"+");_.I(gG.commandMetadata,_.V4).url=zS;Au=_.a("desktop_enable_entity_suggest")?{entityMid:Au}:{};_.V2().resolve(_.Zh).resolveCommand(gG,{form:{tempData:Object.assign({},{gs_l:W6,oq:uk!=null?uk:iq},Au)}});P6();ZS.value.value=iq;ZS.value.blur();jO.reset()}}
function E(iq){return _.V(function(W6){return W6.return(new Promise(function(Au){var uk=new XMLHttpRequest;uk.open("GET",xl4(iq),!0);uk.withCredentials=!0;var zS=_.hT("SBOX_SETTINGS");(zS==null?0:zS.SEND_VISITOR_DATA)&&uk.setRequestHeader("X-Goog-Visitor-Id",zS==null?void 0:zS.VISITOR_DATA);uk.onload=function(){Au(uk.responseText)};
uk.onerror=function(){_.hG(Error("ol"));Au(null)};
setTimeout(function(){uk.abort()},1E4);
uk.send(null)}))})}
function J(iq){var W6,Au,uk,zS;return _.V(function(gG){switch(gG.nextAddress){case 1:return W6={credentials:"include",headers:Qeo()},window.AbortController&&(Au=new AbortController,setTimeout(function(){Au.abort("ytsbox-suggest-timeout")},1E4),W6.signal=Au.signal),_.b1(gG,2),_.C(gG,fetch(xl4(iq),W6),4);
case 4:uk=gG.yieldResult.text();_.Q2(gG,3);break;case 2:return zS=_.u1(gG),zS!=="ytsbox-abort-last"&&zS!=="ytsbox-suggest-timeout"&&_.hG(zS),gG.return(null);case 3:return gG.return(uk)}})}
function z(iq){var W6,Au,uk;return _.V(function(zS){switch(zS.nextAddress){case 1:if(W6=_.V2().resolve(_.MG(PoF)))return zS.return(W6);Au=Date.now();e();return _.a("yt_searchbox_xhr")?_.C(zS,E(iq),5):_.C(zS,J(iq),4);case 4:uk=zS.yieldResult;zS.jumpTo(3);break;case 5:uk=zS.yieldResult;case 3:if(uk){v6&&(clearTimeout(v6),v6=null);var gG=jO,Al=Au,Tu=iq.query.length===0;Al=Date.now()-Al;Tu?gG.zeroPrefixRoundTripTime=Al:(gG.JSC$18466_totalRoundTripTime+=Al,gG.maxRoundTripTime=Math.max(gG.maxRoundTripTime,
Al),Tu=Math.floor(Al/100),Tu>=Wqz.length?++gG.roundTripTimeHistogram[9]:++gG.roundTripTimeHistogram[Wqz[Tu]])}return zS.return(uk)}})}
function M(iq){var W6,Au,uk;return _.V(function(zS){if(zS.nextAddress==1)return(W6=ZV.cache.get(SMH(iq)))?zS.return(W6):_.C(zS,z(iq),2);Au=zS.yieldResult;if(Au===null)return zS.return(null);uk=new Mci(Au);iq.query.length===0&&uk.suggestions.length===0||ZV.cache.set(SMH(iq),uk);return zS.return(uk)})}
function Z(iq){var W6,Au;return _.V(function(uk){if(uk.nextAddress==1){Ni=!1;var zS=YA;zS=_.CDT()==="search"?(_.vD(location.href,"search_query")||_.vD(location.href,"q"))===zS:!1;W6=new Dl3(iq,zS?YA:null);return _.C(uk,M(W6),2)}Au=uk.yieldResult;if(Au===null)return uk.return();W6.query.length===0&&(jO.zeroPrefixSuggestionCount=Au.suggestions.length);if(W6.id<=Xk)return jO.outOfSyncResponseCount++,uk.return();if(document.activeElement!==ZS.value)return uk.return();Xk=W6.id;var gG=jO,Al=Au.rawResponse[2]||
{};gG.experimentTriggeredBeforeFinal||(gG.experimentTriggeredBeforeFinal=gG.experimentTriggeredFinal);gG.experimentTriggeredFinal=!!Al.e;jO.updateSuggestions(Au.suggestions);f(-1);S0([]);Au.suggestions!==k()&&pH(Au.suggestions.length);y(Au.suggestions);$V(Au.suggestions.length>0&&Au.suggestions[0].type===33);uq&&(uq.hidden=Au.suggestions.length===0,b2()?(uq.style.minWidth="",gG=uq.style,Al=(zS=k()[0])==null?void 0:zS.ignoredPrefix,gG.marginLeft=(Al?Math.min(Al.length*6,Ou.value.offsetWidth):0).toString()+
"px"):(uq.style.minWidth=Ou.value.offsetWidth+"px",uq.style.marginLeft="0"),RH());_.Cl(uk)})}
function u(){if(!kq)return!1;var iq=_.hT("REFINEMENTS_TUPLE");return iq?(iq=iq[1].map(function(W6,Au){return new Xd4([W6,0,[71]],ZS.value.value,Au)}),k()!==iq&&pH(iq.length),S0([]),y(iq),jO.updateSuggestions(iq),kq=!1,uq.hidden=iq.length===0,Ni=iq.length>0,!0):!1}
function d(){var iq=ZS.value.value;(typeof iq==="string"||iq instanceof String)&&iq!==""?t(!0):t(!1)}
function g(){if(_.CDT()==="search"){var iq=window.location.href;try{var W6=_.vD(iq,"search_query")||_.vD(iq,"q")||""}catch(Au){W6=""}W6&&(ZS.value.value=W6,t(!0))}}
var w=_.b(_.AF([],void 0,"kGFAjf")),n=w.next().value;w=w.next().value;var k=n,y=w;n=_.b(_.AF(-1,void 0,"mLGL9e"));var c=n.next().value,f=n.next().value;n=_.b(_.AF(-1,void 0,"u2rYdc"));var P=n.next().value,h=n.next().value;n=_.b(_.AF(!1,void 0,"W9DFC"));var N=n.next().value,t=n.next().value;n=_.b(_.AF(!1,void 0,"Ip4dNc"));var r=n.next().value,D=n.next().value;w=_.b(_.AF(!1,void 0,"ZNKSQb"));n=w.next().value;w=w.next().value;var b2=n,$V=w;w=_.b(_.AF(!1,void 0,"JBrGLd"));n=w.next().value;var gT=w.next().value;
w=_.b(_.AF(!1,void 0,"P2pD6e"));var mx=w.next().value,jM=w.next().value;w=_.b(_.AF(1,void 0,"SjP20c"));var cx=w.next().value,tq=w.next().value;w=_.b(_.AF([],void 0,"h4dRaf"));var Px=w.next().value,S0=w.next().value;w=_.b(_.AF(!1,void 0,"TUTzaf"));var QH=w.next().value,pR=w.next().value;w=_.a("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var oq=_.e4("yt-searchbox"),ZS=_.e4("input"),Ou=_.e4("div"),uq,ZV=
new TZC,jO=u3z(),V8=_.V2().resolve(_.MG(_.lp)),AC=function(){var iq;return((iq=l.forceDarkMode)==null?void 0:iq.call(l))||!(V8==null||!V8())},Fk=function(){return _.a("desktop_enable_scrollable_suggestions_panel")},tu="i"+Kqf++,kq=!1,Ni=!1,YA="",v6=null,Xk=-1,P6=function(){S0([]);
y([]);$V(!1);uq&&(uq.hidden=!0);v6&&(clearTimeout(v6),v6=null);f(-1)},wf=function(iq,W6){iq.preventDefault();
pR(!0);uq&&(uq.hidden=!1);var Au=c();iq=k();var uk=Px();W6=OOP(W6);Au+=W6;for(Au>=iq.length?Au=-1:Au<-1&&(Au=iq.length-1);Au!==-1&&(uk.includes(Au)||Au>=iq.length||Au<0);)Au+=W6,Au>=iq.length&&(Au=-1);f(Au);c()>=0&&(ZS.value.value=k()[c()].text,h(0),d(),iq=c(),uk=P(),(uk=document.getElementById(Tq[iq][uk]))&&Fk()&&(iq===k().length-1?uq.scrollTop=uq.scrollHeight:uk.scrollIntoView({block:"nearest",inline:"start"})))},w1=_.pd(function(iq){if(!(iq.relatedTarget instanceof Element&&iq.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){D(!0);
var W6;(W6=l.focusCallback)==null||W6.call(l,!0);u()||(Ni?uq.hidden=!1:(_.$u(oq.value,"yt-autonav-pause-focus",{}),Z(iq.target.value)))}}),KR=_.pd(function(iq){if(!(iq.relatedTarget instanceof Element&&iq.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){D(!1);
var W6;(W6=l.focusCallback)==null||W6.call(l,!1);uq.scrollTop=0;uq.hidden=!0;_.$u(oq.value,"yt-autonav-pause-blur",{})}}),CP=function(iq){iq=OOP(iq);
var W6;((W6=Tq[c()])==null?0:W6[P()+iq])&&h(P()+iq)},z1=_.pd(function(iq){var W6=iq.target;
switch(iq.keyCode){case 13:iq.preventDefault();var Au;if((Au=Tq[c()])==null?0:Au[P()]){var uk;(uk=document.getElementById(Tq[c()][P()]))==null||uk.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}iq=iq.shiftKey?4:3;Au=jO;uk=c();Au.selectedSuggestionIndex=uk;O(W6.value,iq);break;case 27:uq&&(uq.hidden=!0);break;case 40:wf(iq,40);break;case 38:wf(iq,38);break;case 39:CP(39);break;case 37:CP(37);break;case 229:jO.inputMethodsTracker.add(4);break;default:jO.inputMethodsTracker.add(1),
Cou(jO)}return!1}),bz=_.pd(function(iq){Z(iq.target.value);
d();Fk()&&uq&&(uq.scrollTop=0);return!1}),wp=_.pd(function(){jO.inputMethodsTracker.add(2);
Cou(jO);return!1});
_.RU(function(){if(uq){jO.reset();if(window.ResizeObserver){var iq=new ResizeObserver(function(){b2()||(uq.style.minWidth=Ou.value.offsetWidth+"px")});
iq.observe(Ou.value);(new ResizeObserver(function(){RH()})).observe(uq);
_.B3(function(){iq.disconnect()})}g();
window.addEventListener("yt-navigate-finish",g);window.addEventListener("yt-focus-searchbox",function(){ZS.value.focus()});
var W6;gT((W6=_.hT("SBOX_SETTINGS"))==null?void 0:W6.HAS_ON_SCREEN_KEYBOARD)}else _.UW(new _.Hk("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var ti=_.pd(function(iq){iq.preventDefault();O(ZS.value.value,12);return!1}),Yq=_.pd(function(iq){iq.preventDefault();
var W6,Au;(W6=ZS)==null||(Au=W6.value)==null||Au.focus();var uk,zS;((uk=ZS)==null?void 0:(zS=uk.value)==null?void 0:zS.value)!==""&&(ZS.value.value="",ZS.value.dispatchEvent(new Event("input")));return!1}),mH=_.pd(function(){var iq=QCo(ZS.value.value,k().filter(function(W6){return W6.type!==35}).map(function(W6){return{label:W6.text}}));
_.Wb(oq.value,"yt-open-popup-action",[{openPopupAction:iq},document.body]);return!1}),QC=_.pd(function(){ZS.value.focus();
return!1}),Ap=function(iq,W6,Au,uk,zS){jO.selectedSuggestionIndex=Au;
O(W6,zS?3:1,uk)},V5=function(iq){ZS.value.value=iq;
ZS.value.dispatchEvent(new Event("input"));jO.inputMethodsTracker.add(5);Cou(jO,!0)},Tq=[[]],lt=function(iq){var W6="searchbox-suggestion"+_.Be(_.yp);
Tq[iq].push(W6);return W6},pH=function(iq){if(k()){Tq=[[]];
for(var W6=0;W6<iq;W6++)Tq.push([])}},RH=function(){if(Fk()){var iq=uq,W6=iq.scrollTop;
iq=iq.scrollHeight-iq.clientHeight;jM(W6>=iq);W6=Math.abs(iq-W6);W6<=40?tq(1-(40-W6)/40):tq(1)}},Mr=function(){return"opacity: "+cx()*100+"%"},ad=_.pd(function(){RH();
return!1}),Tg=_.pd(function(){pR(!1);
return!1}),YV,d1={},z0={},Hv={},oi={};
return _.W("yt-searchbox",{class:_.ax("ytSearchboxComponentHost",(d1.ytSearchboxComponentMweb=!1,d1.ytSearchboxComponentDesktop=!0,d1["yt-searchbox-filled-query"]=function(){return N()},d1["ytd-masthead"]=function(){return!r()},d1.ytSearchboxComponentHostDark=AC,d1)),
role:"search",el:oq,"client-ve-type":10349},_.W("div",{el:Ou,"on:click":QC,class:_.ax("ytSearchboxComponentInputBox",(z0.ytSearchboxComponentInputBoxDark=AC,z0.ytSearchboxComponentInputBoxHasFocus=r,z0))},_.W("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":ti},_.W(_.A,{cond:r,then:function(){return _.W("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.W(_.cF,{icon:"SEARCH"}))}}),_.W("input",{el:ZS,
class:_.ax("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":tu,"aria-expanded":!((YV=uq)==null?0:YV.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":KR,"on:focus":w1,"on:input":bz,"on:keydown":z1,"on:paste":wp,placeholder:l.placeholderText,"aria-activedescendant":function(){var iq;return(iq=Tq[c()])==null?void 0:iq[P()]},
"aria-autocomplete":"list",role:"combobox"})),_.W(_.A,{cond:n,then:function(){return _.W("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.W(Rnu,null))}}),_.W(_.A,{cond:N,
then:function(){return _.W("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.W("button",{class:"ytSearchboxComponentClearButton","on:click":Yq,"aria-label":l.clearButtonAriaLabel||BZF},_.W(_.cF,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.W(_.Rx,{model:{}})))}})),_.W("button",{class:_.ax("ytSearchboxComponentSearchButton",(Hv.ytSearchboxComponentSearchButtonDark=AC,Hv)),
"on:click":ti,"aria-label":GmC,title:l.placeholderText},_.W(_.cF,{icon:"SEARCH"})),_.W(_.A,{cond:function(){if(ujz()&&_.a("mweb_voice_search")&&l.voiceSearchButton)return l.voiceSearchButton()},
then:function(iq){var W6={};return _.W("div",{class:_.ax("ytSearchboxComponentVoiceSearchWrapper",(W6.ytSearchboxComponentHideVoiceSearchButton=function(){return N()},W6))},_.W(_.Tn,{data:iq},{buttonRenderer:function(Au){return _.W(_.vp,{data:Au.data,
onButtonClickCallback:function(){}})}}))}}),_.W("div",{el:_.zk(function(iq){return void(uq=iq)}),
id:tu,class:_.ax("ytSearchboxComponentSuggestionsContainer",(oi.ytSearchboxComponentSuggestionsContainerDark=AC,oi["yt-searchbox-suggestions-container"]=!1,oi.ytSearchboxComponentSuggestionsContainerScrollable=Fk(),oi.ytSearchboxComponentSuggestionsContainerAnimated=w,oi)),"on:scroll":ad,"on:mousemove":Tg,role:"listbox",hidden:!0},_.W(_.KH,{each:k},function(iq,W6){return _.W(fiz,{suggestion:iq,isHighlighted:function(){return W6()===c()},
onClickCallback:Ap,onHoverUpdateCallback:function(Au){if(_.a("desktop_enable_single_suggestion_highlight")){var uk=W6();Au&&(h(0),f(uk))}},
onRemoveCallback:function(Au){sW0(ZV);Au===void 0||Au<0||Px().includes(Au)||S0([].concat(_.kA(Px()),[Au]))},
labels:l.labels,queryBuilderFunction:V5,suggestionIndex:W6,generateUniqueId:lt,highlightedId:function(){var Au;return(Au=Tq[c()])==null?void 0:Au[P()]},
useScrollMargin:Fk(),isKeyboardMode:QH})}),_.W(_.A,{cond:function(){return!b2()&&k().find(function(iq){return iq.type!==35})&&_.a("searchbox_reporting")},
then:function(){return _.W("button",{class:"ytSearchboxComponentReportButton","on:mousedown":mH},_.ml("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.W(_.A,{cond:function(){return!mx()&&Fk()},
then:function(){return _.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Mr}))}})))},"ug"),"yt-searchbox",{props:{searchEndpoint:_.lB,
placeholderText:_.lB,labels:_.lB,voiceSearchButton:_.lB,focusCallback:_.Vh,clearButtonAriaLabel:_.lB,forceDarkMode:_.lB}});var My=function(){var l=_.B.apply(this,arguments)||this;l.menuButtonTargetId="topbar-guide-menu";l.narrow=!1;l.menuStrings={BACK_ALT_LABEL:_.ml("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.ml("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.ml("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.ml("SBOX_PLACEHOLDER",void 0,"Search")};l.pageDarkTheme=document.documentElement.hasAttribute("dark");l.watchPageScrollTop=0;l.theater=!1;l.fullscreen=!1;l.desktopUnifiedSearchPanelMode=_.a("desktop_enable_unified_search_panel");
l.cinematicTheaterMode=_.a("web_cinematic_theater_mode");l.ytSearchboxFocused=!1;l.searchboxLabels=_.hT("SBOX_LABELS");l.topbarIsAboveChipbar=!1;l.isDarkThemeForced=!1;l.areGhostCardsHidden=!1;l.guideKeyboardToggle=!1;l.voiceSearchManager=lHF();l.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};l.setYtSearchboxFocused=function(e){l.ytSearchboxFocused=e};
return l};
_.m(My,_.B);_.X=My.prototype;_.X.computeSimpleText=function(l){return _.lG(l)};
_.X.onDarkChanged=function(){for(var l=_.b(this.buttons||[]),e=l.next();!e.done;e=l.next())e.value.isOverlay=!!this.dark;l=_.b(this.buttonRenderers||[]);for(e=l.next();!e.done;e=l.next())e.value.overrides=this.computeButtonOverride()};
_.X.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.X.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var l=_.L6(_.h7(),"aa");_.oB(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||l||(this.isDarkThemeForced=this.dark=!0);this.logoType?(l=this.hostElement.querySelector("#masthead-logo"))&&(_.a("polymer_on_demand_shady_dom")?l.setAttribute("slot","masthead-logo-old"):_.wk(l)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.id(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.id(this,this.onSetTheaterModeEnabled))};
_.X.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.id(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.id(this,this.onSetTheaterModeEnabled))};
_.X.dataChanged=function(){var l=this.data;l&&(this.voiceEnabled=l.voiceSearchButton?lHF().isSupported():!1,_.hg1(_.jQ(),this.menuButtonTargetId,this.guideButton),l.onReceivedActions&&l.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.wQ(this.hostElement,l.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&l&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.oB(this.hostElement,"dark",!1),_.oB(this.hostElement,"theater",!1),
(l=this.hostElement.querySelector("#masthead-logo"))&&(_.a("polymer_on_demand_shady_dom")?l.setAttribute("slot","masthead-logo-old"):_.wk(l))))};
_.X.computeCenterHidden=function(){var l;return this.data&&!((l=this.data.searchbox)==null?0:l.fusionSearchboxRenderer)};
_.X.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.oB(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.X.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.X.onWatchScroll=function(l){this.watchPageScrollTop=l.detail||0;this.updateMastheadBackgroundOpacity()};
_.X.onFullscreenChangeAction=function(l){l||(this.watchPageScrollTop=0);this.fullscreen=l;this.updateMastheadBackgroundOpacity()};
_.X.onSetTheaterModeEnabled=function(l){this.theater=l.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.X.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.X.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.X.setBackgroundOpacity=function(l){l=this.calculateBackgroundOpacity(l);this.background.style.opacity=""+l};
_.X.calculateBackgroundOpacity=function(l){var e=this.theater&&this.cinematicTheaterMode?.6:0,O=this.hostElement.clientHeight/2;return Math.min(Math.max(l,0),O)/O*(1-e)+e};
_.X.shouldShowCinematicMastHead=function(){var l=_.a("kevlar_watch_grid")&&!_.a("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(l||this.pageDarkTheme)};
_.X.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.X.focusGuide=function(){this.guideButton.focus()};
_.X.onGuideToggleTap=function(){_.$u(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.X.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.X.onGuideToggleHover=function(){_.$u(this.hostElement,"yt-guide-hover")};
_.X.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.X.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.X.closeOnOutsideClickCondition=function(l){for(l=_.ey(l);l[0];){var e=l.shift();if(e instanceof Element&&e.id==="kbd")return!1}return!0};
_.X.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.X.pausePlayer=function(){var l;(l=_.bV())==null||l.pause();this.pauseMiniplayer()};
_.X.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var l;(l=_.V2().resolve(_.NJ).getPlayerElement())==null||l.pause()}};
_.X.isMiniplayerActive=function(){return _.V2().resolve(_.NJ).isMiniplayerActive()};
_.X.updateNarrowFromBinding=function(l){this.narrow=l.detail.value};
_.X.onYtSendFeedbackAction=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Ji.Object.defineProperties(My.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.a("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var l;return(l=this.data)==null?void 0:l.voiceSearchButton}}}});
My.prototype.narrowChanged=My.prototype.narrowChanged;My.prototype.onWatchPageChange=My.prototype.onWatchPageChange;My.prototype.onRendererStamperFinished=My.prototype.onRendererStamperFinished;My.prototype.dataChanged=My.prototype.dataChanged;My.prototype.onDarkChanged=My.prototype.onDarkChanged;_.L([_.K(_.sl),_.q("design:type",Object)],My.prototype,"ironResizableBehavior",void 0);_.L([_.K(_.VSF),_.q("design:type",Object)],My.prototype,"ytdExpandableInputBehavior",void 0);
_.L([_.K(_.hx.YtdGuideStateAwareBehavior),_.q("design:type",Object)],My.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],My.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.sY),_.q("design:type",Object)],My.prototype,"ytdReduxBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],My.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],My.prototype,"narrow",void 0);_.L([_.T(),_.q("design:type",Object)],My.prototype,"logoType",void 0);_.L([_.T(),_.q("design:type",Boolean)],My.prototype,"voiceEnabled",void 0);
_.L([_.T(),_.q("design:type",Object)],My.prototype,"menuStrings",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],My.prototype,"dark",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],My.prototype,"pageDarkTheme",void 0);_.L([_.T(),_.q("design:type",Object)],My.prototype,"watchPageScrollTop",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.Un}),_.q("design:type",Boolean)],My.prototype,"isWatchPage",void 0);
_.L([_.T({reflectToAttribute:!0,selector:_.CS8}),_.q("design:type",Boolean)],My.prototype,"isShortsPage",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],My.prototype,"theater",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],My.prototype,"fullscreen",void 0);_.L([_.T({reflectToAttribute:!0,selector:_.gUT}),_.q("design:type",String)],My.prototype,"frostedGlassMode",void 0);_.L([_.T(),_.q("design:type",Object)],My.prototype,"ytSearchboxFocused",void 0);
_.L([_.kT("#buttons > *"),_.q("design:type",Array)],My.prototype,"buttons",void 0);_.L([_.kT("ytd-button-renderer"),_.q("design:type",Array)],My.prototype,"buttonRenderers",void 0);_.L([_.aB("#background"),_.q("design:type",HTMLDivElement)],My.prototype,"background",void 0);_.L([_.aB("#guide-button"),_.q("design:type",Object)],My.prototype,"guideButton",void 0);_.L([_.aB("#logo"),_.q("design:type",Object)],My.prototype,"logo",void 0);
_.L([_.T({computed:"computeButtonOverride(dark)"}),_.q("design:type",Object)],My.prototype,"buttonOverrides",void 0);_.L([_.y0("dark"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],My.prototype,"onDarkChanged",null);_.L([_.T({value:function(){return this.onVoiceTap.bind(this)}}),
_.q("design:type",Function)],My.prototype,"boundOnTapVoiceButton",void 0);_.L([_.T(),_.q("design:type",Object)],My.prototype,"topbarIsAboveChipbar",void 0);_.L([_.T(),_.q("design:type",String),_.q("design:paramtypes",[])],My.prototype,"guideIcon",null);_.L([_.R("voiceEnabled"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],My.prototype,"shouldShowVoiceSearchButton",null);_.L([_.R("data"),_.q("design:type",Object),_.q("design:paramtypes",[])],My.prototype,"voiceSearchButton",null);
_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],My.prototype,"dataChanged",null);_.L([_.wP("yt-rendererstamper-finished"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],My.prototype,"onRendererStamperFinished",null);_.L([_.y0("isWatchPage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],My.prototype,"onWatchPageChange",null);
_.L([_.y0("narrow"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],My.prototype,"narrowChanged",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-masthead"})],My);
_.Y(My,"ytd-masthead",function(){if(yQO!==void 0)return yQO;var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return yQO=l},{mode:_.Wf("kevlar_poly_si_batch_j036")?1:2});var UU0;var Yzo={},hn3={},Lqi={},tcu={},qzF=(tcu.OFFLINE=(Yzo["publicytnetworkstatus-online"]="BACK_ONLINE",Yzo),tcu.ONLINE=(hn3["publicytnetworkstatus-offline"]="OFFLINE",hn3),tcu.BACK_ONLINE=(Lqi["publicytnetworkstatus-offline"]="OFFLINE",Lqi.TIMER_TRIGGER="ONLINE",Lqi),tcu),Vj=function(){var l=_.B.apply(this,arguments)||this;l.currentState="ONLINE";l.scheduledJobId=0;l.bannerString="";l.bannerVe=null;l.networkStatusManagerInstance=new _.xP;return l};
_.m(Vj,_.B);_.X=Vj.prototype;_.X.attached=function(){var l=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){l.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){l.stateChangeHandler("publicytnetworkstatus-offline")})};
_.X.detached=function(){var l=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){l.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){l.stateChangeHandler("publicytnetworkstatus-offline")})};
_.X.enterState=function(l){var e=this;this.scheduledJobId&&_.UD.cancelJob(this.scheduledJobId);l==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):l==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.ml("NO_INTERNET_CONNECTION",void 0,"No internet connection")):l==="BACK_ONLINE"&&(this.bannerString=_.ml("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.fZ(_.UD,function(){e.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=l};
_.X.stateChangeHandler=function(l){(l=qzF[this.currentState][l])&&this.enterState(l)};
_.X.logVisibility=function(l){var e=_.P9();this.createBannerVe(l);e&&this.bannerVe&&(l?_.xu(e,[this.bannerVe]):_.lH(e,[this.bannerVe]))};
_.X.createBannerVe=function(l){!this.bannerVe&&l&&(this.bannerVe=_.sL(37929),_.WJ(_.yN(),this.bannerVe))};
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",String)],Vj.prototype,"currentState",void 0);_.L([_.T(),_.q("design:type",Object)],Vj.prototype,"scheduledJobId",void 0);_.L([_.T(),_.q("design:type",Object)],Vj.prototype,"bannerString",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Vj);
_.Y(Vj,"ytd-network-status-banner",function(){if(UU0!==void 0)return UU0;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return UU0=
l},{mode:1});var v_O;var ZX=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};l.hidden=!0;l.frostedGlass=_.a("web_frosted_glass");return l};
_.m(ZX,_.B);ZX.prototype.computeHidden=function(l){return l&&l.status?!1:!0};
ZX.prototype.handleUpdatePermissionRoleCommand=function(l){if(l=_.I(l,_.KSS))if(l=_.I(l.renderer,_.p0S))this.data=l};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],ZX.prototype,"componentBehavior",void 0);_.L([_.T({value:!0,computed:"computeHidden(data)"}),_.q("design:type",Object)],ZX.prototype,"hidden",void 0);_.L([_.T(),_.q("design:type",Object)],ZX.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],ZX.prototype,"frostedGlass",void 0);
_.L([_.U({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],ZX);
_.Y(ZX,"ytd-permission-role-bottom-bar-renderer",function(){if(v_O!==void 0)return v_O;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return v_O=l},{mode:1});var NZu;var rQ3;var Ep4={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var uC=function(){return _.B.apply(this,arguments)||this};
_.m(uC,_.B);_.X=uC.prototype;_.X.attached=function(){this.JSC$18569_scroller&&(this.JSC$18569_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18569_scroller.attached&&typeof this.JSC$18569_scroller.attached==="function"&&this.JSC$18569_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(O){O.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var l=_.ud(this.hostElement);l.querySelector("tp-yt-paper-radio-group").selected="";var e=l.querySelector("#reason-text");e&&(e.value="");l.querySelector("#description-text").value=""}};
_.X.canSubmit=function(l,e){_.$u(this.hostElement,"yt-invalidate-popup-tabbables");return!(l&&e)};
_.X.onCancel=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.X.onSubmit=function(){var l=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(z){return z.active}).map(function(z){return z.innerText.trim()}),e=this.hostElement.querySelector("tp-yt-paper-radio-group"),O=e.selectedItem,E=O.name;
O=O.innerText.trim();var J=e.querySelector("#reason-text");e=void 0;J&&(e=J.value);(J=this.descriptionText.value)&&(J=J.trim());JY0(this.data.searchQuery,l,E,O,J,e);_.Wb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.X.sendFormSubmitToast=function(){var l=_.Xv(_.ml("SBOX_INAPPROPRIATE_TOAST"));_.Wb(this.hostElement,"yt-open-popup-action",[l,this])};
_.X.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(l){return l.active})};
_.X.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
uC.prototype.onIronSelect=uC.prototype.onIronSelect;uC.prototype.onIronChange=uC.prototype.onIronChange;uC.prototype.dataChanged=uC.prototype.dataChanged;_.L([_.T(),_.q("design:type",Object)],uC.prototype,"data",void 0);_.L([_.T({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.q("design:type",Boolean)],uC.prototype,"submitDisabled",void 0);_.L([_.T(),_.q("design:type",Boolean)],uC.prototype,"suggestionSelected",void 0);
_.L([_.T(),_.q("design:type",Boolean)],uC.prototype,"catagorySelected",void 0);_.L([_.aB("#scroller"),_.q("design:type",Object)],uC.prototype,"JSC$18569_scroller",void 0);_.L([_.aB("#description-text"),_.q("design:type",Object)],uC.prototype,"descriptionText",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uC.prototype,"dataChanged",null);
_.L([_.wP("iron-change"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uC.prototype,"onIronChange",null);_.L([_.wP("iron-select"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],uC.prototype,"onIronSelect",null);_.L([_.U({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],uC);
_.Y(uC,"ytd-search-suggestion-report-dialog",function(){if(rQ3!==void 0)return rQ3;var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);return rQ3=l},{mode:1});var C$=function(l){var e=l.openPopupAction;var O=l.target;var E=l.container;var J=l.popupContainerConfig;var z=l.getElement;l=l.removeWhenClosed===void 0?!1:l.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=e;this.target=O;this.container=E;this.popupContainerConfig=J;this.getElement=z;this.JSC$18575_popupConfig=this.popupContainerConfig.JSC$17690_popupConfig[this.openPopupAction.popupType];this.rendererName=(e=this.getName())?_.c3u(e,cwh(this.popupContainerConfig,
e)):"";_.a("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=l);this.createPopup()};
C$.prototype.updatePopup=function(l){this.openPopupAction=l;this.JSC$18575_popupConfig=this.popupContainerConfig.JSC$17690_popupConfig[this.openPopupAction.popupType];DUu(this);_.a("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
C$.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var xUC=function(l,e,O){(e=e&&l.JSC$18575_popupConfig.narrowProperties?l.JSC$18575_popupConfig.narrowProperties:l.JSC$18575_popupConfig.properties)&&O!==void 0&&(e.isAriaModal=O);Sz4(l,e);l.isRtl()&&Sz4(l,l.JSC$18575_popupConfig.rtlProperties);QW4(l)};
C$.prototype.createPopup=function(){var l=this.JSC$18575_popupConfig.component;if(this.popupContent=lk4(this,this.rendererName)){if(l){this.popup=lk4(this,l);var e=this.popupContent;_.a("web_enable_wrapper_for_cow_component_in_popup")&&(e=document.createElement("div"),e.appendChild(this.popupContent));_.a("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18575_popupConfig.slotName&&e.setAttribute("slot",this.JSC$18575_popupConfig.slotName);l=this.popup;var O=this.container.tagName.toLowerCase(),
E=_.EV(e);_.EGd(_.X0(l),_.M7(e,O,E));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.a("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ud(this.container).appendChild(this.popup)}};
var DUu=function(l){var e,O,E=(e=l.openPopupAction.accessibilityData)==null?void 0:(O=e.accessibilityData)==null?void 0:O.label;E&&(l.popup.ariaLabel=E);var J;((J=l.popupContent.polymerController)!=null?J:l.popupContent).data=(0,_.mm.unsafeClone)(l.openPopupAction.popup[l.getName()]);l.popupContent.duration=eNP(l);l.popupContent.positionType=l.openPopupAction.position;var z=l.openPopupAction.properties;z&&Object.keys(z).forEach(function(M){l.popupContent[M]=z[M]})},Sz4=function(l,e){if(e)for(var O=
_.b(Object.keys(e)),E=O.next();!E.done;E=O.next())E=E.value,l.popup[E]=e[E]},QW4=function(l){if(l.openPopupAction.position){var e=l.JSC$18575_popupConfig.positionalProperties&&l.JSC$18575_popupConfig.positionalProperties[l.openPopupAction.position],O=l.JSC$18575_popupConfig.rtlPositionalProperties&&l.JSC$18575_popupConfig.rtlPositionalProperties[l.openPopupAction.position];
e=l.isRtl()&&O?O:e;e.shiftedHorizontalOffset&&(O=l.popup.style.display,l.popup.style.display="block",l.popupContent&&l.popup.positionTarget&&l.popupContent.clientWidth>l.popup.positionTarget.clientWidth&&(e.horizontalOffset=l.popup.positionTarget.clientWidth/2-e.shiftedHorizontalOffset),l.popup.style.display=O);Sz4(l,e)}},Oqz=function(l,e){if(e)for(var O=_.b(Object.keys(e)),E=O.next();!E.done;E=O.next())E=E.value,l.popup.style[E]=e[E]};
C$.prototype.getName=function(){return _.PK(this.openPopupAction.popup,"renderer")||_.PK(this.openPopupAction.popup,"dialog")||_.PK(this.openPopupAction.popup,"model")||void 0};
var eNP=function(l){l=l.openPopupAction.durationHintMs;return l===0?l:Math.max(4E3,l||4E3)};
C$.prototype.isRtl=function(){return _.hT("HTML_DIR")==="rtl"};
var lk4=function(l,e){l=l.getElement(e,l.target);l==null&&_.hG(new _.Hk("popup getElement returned null",e));return l};var Emz={};
Emz.YtPopupContainerBehavior=[_.va.YtComponentBehavior,_.ZH.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Cz(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.op(this.hostElement)},
closePopup:function(l){var e=this.createCacheKey(void 0,l);this.popups_[e]&&this.handleClosePopupAction_(void 0,l)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.UD.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.UD.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(l){l.opened&&l.keepBelowPlayer&&this.ensurePopupBelowPlayer(l)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var l in this.popups_){var e=this.popups_[l];if(e.popup.scrollAction==="refit"){var O=e.popup.positionTarget.getBoundingClientRect(),E=e.popup;O=O.top;var J=e;if(!J.naturalHeight){J.popup.hidden=!1;J.popup.style.position="fixed";J.popup.style.top="0px";J.popup.style.left="0px";var z=J.popup.getBoundingClientRect();J.naturalHeight=z.bottom-z.top;J.popup.refit()}E.hidden=!(O>=J.naturalHeight+60);e.popupContent.clientHeight===0&&e.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(l){this.popupContainerConfig=l},
handleOpenPopupAction:function(l,e){var O=l.openPopupAction,E=_.V2().resolve(_.MG(_.MQ))&&O.popupType==="TOAST";E&&!O.uniqueId&&(O.uniqueId=_.Hr());if(!_.a("popup_container_parent_target_killswitch")){var J;e=(J=this.getParentTarget(e))!=null?J:e}var z=this.ensurePopup_(O,e);return new _.kE(function(M){z.then(function(Z){if(!Z)return M();this.maybeCreateNarrowMediaQuery_();var u=this.createCacheKey(Z.rendererName,Z.openPopupAction.uniqueId);if(O.showOncePerUniqueId){if(this.shownPopupKeys_.has(u))return M();
this.shownPopupKeys_.add(u)}u=this.popups_[u];var d=!(!u||!u.openPopupAction.beReused);d=!!O.reusePopup||d;if(Z.popup.opened&&!d){E&&!Z.openPopupAction.replacePopup||this.handleClosePopupAction_(Z.rendererName,Z.openPopupAction.uniqueId);d=O.popupType==="DIALOG"&&!_.a("popup_container_dialog_reopen_killswitch");if(!E&&!d&&u&&u.target==e&&!Z.openPopupAction.replacePopup)return M();_.OK(Z.popup,function(){this.completeOpenPopupAction_(O,e,Z);M()}.bind(this))}else Z.popup.opened?Z.updatePopup(O):this.completeOpenPopupAction_(O,
e,Z),M()}.bind(this))}.bind(this))},
getParentTarget:function(l){if(l&&l instanceof HTMLElement)for(var e=_.b(Object.entries(this.popups_)),O=e.next();!O.done;O=e.next())if(O=_.b(O.value),O.next(),O=O.next().value,O.popup.tagName==="TP-YT-IRON-DROPDOWN"&&l.closest(O.rendererName))return O.target},
completeOpenPopupAction_:function(l,e,O){O.updatePopup(l);l=this.narrowMediaQuery_.queryMatches;var E=this.isAriaModal;O.target=e;var J;e=((J=O.target.polymerController)!=null?J:O.target).popupPositionTarget||O.target;O.JSC$18575_popupConfig.targetContainer&&(e=O.container);O.popup.positionTarget=e;O.popupContent.positionTarget=e;QW4(O);O.JSC$18575_popupConfig.forceFocus&&(O.popupContent.style.outline="none");O.popupContent.tabIndex=-1;O.JSC$18575_popupConfig.narrowProperties&&(O.popup.style.position=
"static");O.JSC$18575_popupConfig.preventAutonav&&O.popup.setAttribute("prevent-autonav",!0);O.JSC$18575_popupConfig.forceCloseOnOutsideClick&&O.popup.setAttribute("force-close-on-outside-click",!0);xUC(O,l,E);Oqz(O,O.JSC$18575_popupConfig.styles);O.isRtl()&&Oqz(O,O.JSC$18575_popupConfig.rtlStyles);if(!O.openPopupAction.shouldStopParentSignal){var z;J=(z=O.target.polymerController)!=null?z:O.target;(O.popupContent.startForwardingEvents||O.popupContainerConfig.forwardingEnabledPopups.has(O.rendererName))&&
J.parentComponent!==O.popupContent&&O.popupContent!==O.target&&O.target!==document.body&&(O.popupContent.startForwardingEvents?O.popupContent.startForwardingEvents(O.popupContainerConfig.forwardedEvents,O.target):(O.JSC$18575_eventForwarder||(O.JSC$18575_eventForwarder=new _.Ac(O.popupContent)),O.JSC$18575_eventForwarder.start(O.popupContainerConfig.forwardedEvents,O.target)))}O=O.popup;O.addEventListener("iron-overlay-opened",_.id(this,this.onPopupIronOverlayOpened_));O.addEventListener("iron-overlay-closed",
_.id(this,this.onPopupIronOverlayClosed_));O.addEventListener("iron-overlay-canceled",_.id(this,this.onPopupIronOverlayCanceled_));O.addEventListener("yt-refit",_.id(this,this.refitPopup_));O.addEventListener("yt-invalidate-popup-tabbables",_.id(this,this.handleInvalidatePopupTabbables_));O.open()},
getPopupDurationMs_:function(l){return l.durationHintMs===0?l.durationHintMs:Math.max(4E3,l.durationHintMs||4E3)},
handleClosePopupAction_:function(l,e){var O=_.a("web_popup_cache_key_killswitch")||!!e;if(l||O){var E=this.createCacheKey(l,e);l=(l=this.popups_[E])&&l.popup}else l=_.jx1(_.r0);if(l&&l.close){if(e=_.V2().resolve(_.MG(_.of)))l.restoreFocusOnClose=e.isKeyBoardInUse();l.close();this.removePopup_(l,E)}},
handleClosePopupCommand_:function(l){l.closePopupCommand&&l.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,l.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(l){var e={},O;for(O in this.popups_)if(e={key$jscomp$1150:e.key$jscomp$1150},e.key$jscomp$1150=O,!l||!l.some(function(z){return function(M){return M==z.key$jscomp$1150}}(e))){var E=this.popups_[e.key$jscomp$1150],J=E.popup;
_.V2().resolve(_.MG(_.MQ))&&E.openPopupAction.popupType==="TOAST"||(J&&J.close&&J.close(),this.removePopup_(J,e.key$jscomp$1150))}},
handleClosePopupsAction_:function(l){l.forEach(function(e){var O=this.popups_[e];O&&((O=O.popup)&&O.close&&O.close(),this.removePopup_(O,e))}.bind(this))},
handleGetPopupOpenedAction_:function(l,e){return(e=this.createCacheKey(l,e))&&this.popups_[e]?this.popups_[l].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var l=[],e;for(e in this.popups_){var O=this.popups_[e];O.popup.opened&&l.push(O)}return l},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(l,e){_.a("ytpopup_disable_default_html_caching")&&l&&l.removeWhenClosed&&(_.ud(this.hostElement).removeChild(l),e&&this.popups_[e]&&delete this.popups_[e])},
shouldReusePopup_:function(l){return!(!l||!l.reusePopup)||!(!l||!l.beReused)},
ensurePopup_:function(l,e){this.maybeCreateNarrowMediaQuery_();var O=_.PK(l.popup,"renderer")||_.PK(l.popup,"dialog")||_.PK(l.popup,"model");if(!O)return _.Ag();O=_.c3u(O,cwh(this.popupContainerConfig,O));return _.Ag(this.getAndMaybeCreatePopup_(l,O,e))},
getAndMaybeCreatePopup_:function(l,e,O){var E=this.createCacheKey(e,l.uniqueId);if(this.popups_[E])return this.popups_[E];l=new C$({openPopupAction:l,target:O,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(e)});return this.popups_[E]=l},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(l){return _.a("ytpopup_disable_default_html_caching")?l&&l.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",_.id(this,this.openPopupQueryMatchesChanged_)),_.ud(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(l){l=l.detail.value;for(var e in this.popups_)xUC(this.popups_[e],l)},
onPopupIronOverlayClosed_:function(l){var e=l.currentTarget,O=_.kBu(e);O=O.length>0?O[0]:e;if(O.is!=="ytd-reel-watch-while-dialog-renderer"||l.target.is!=="tp-yt-iron-dropdown"){l.detail.popup=e;l.detail.popupRenderer=O;var E,J={context:{openingElement:((E=this.popups_[(O==null?void 0:O.is)||""])==null?void 0:E.target)||void 0}};Object.assign(J,l.detail);var z;_.$u((z=O.hostElement)!=null?z:O,"yt-popup-closed",J);e.removeEventListener("yt-refit",_.id(this,this.refitPopup_));e.removeEventListener("yt-invalidate-popup-tabbables",
_.id(this,this.handleInvalidatePopupTabbables_));e.removeEventListener("iron-overlay-canceled",_.id(this,this.onPopupIronOverlayCanceled_));e.removeEventListener("iron-overlay-closed",_.id(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(e)}},
onPopupIronOverlayCanceled_:function(l,e){var O=l.currentTarget,E=_.kBu(O);E=E.length>0?E[0]:O;if(E.is!=="ytd-reel-watch-while-dialog-renderer"||l.target.is!=="tp-yt-iron-dropdown"){var J;_.$u((J=E.hostElement)!=null?J:E,"yt-popup-canceled",l.detail);J=e?_.ey(e):null;(!e||["click","tap"].includes(e.type))&&!O.hasAttribute("force-close-on-outside-click")&&O.positionTarget&&J&&J.includes(O.positionTarget)&&l.preventDefault();O.restoreFocusOnClose=_.po.keyboardEventMatchesKeys(e,"esc")}},
onPopupIronOverlayOpened_:function(l){l=l.currentTarget;var e=_.kBu(l);e=e.length>0?e[0]:l;var O,E;_.$u((O=e.hostElement)!=null?O:e,"yt-popup-opened",(E=e.hostElement)!=null?E:e);l.keepBelowPlayer&&(this.ensurePopupBelowPlayer(l,!0),this.dynamicallyPositionedElements_.add(l));O=_.V2().resolve(_.MG(_.of));E=!!e.querySelector("#toast");O&&O.isKeyBoardInUse()&&!E&&(typeof e.focusFirstItem==="function"?e.focusFirstItem():(e=_.ymi(l),e.length&&e[0].focus()));l.removeEventListener("iron-overlay-opened",
_.id(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(l){l=l.currentTarget;l.refit&&l.refit()},
refitPopups_:function(){for(var l in this.popups_)this.popups_[l].refit()},
handleInvalidatePopupTabbables_:function(l){l=l.currentTarget;l.invalidateTabbables&&l.invalidateTabbables()},
createCacheKey:function(l,e){return _.a("web_popup_cache_key_killswitch")?e?l+"#"+e:l:e?"#"+e:l},
openSheet:function(l,e){var O=l==null?void 0:l.openPopupActionCommand;!O&&(l==null?0:l.viewModel)&&(O={openPopupAction:{popup:{sheetViewModel:l.viewModel},popupType:"CONTEXTUAL_SHEET"}});O&&this.handleOpenPopupAction(O,e)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var l=this;return _.V(function(e){return e.return(l.handleGetOpenedPopupsAction_().filter(function(O){var E;return((E=O.openPopupAction)==null?void 0:E.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(l,e,O){if(_.a("web_dialog_utils_killswitch")){var E=l==null?void 0:l.openPopupActionCommand,J=(O==null?0:O.ariaLabel)?{accessibilityData:{accessibilityData:{label:O.ariaLabel}}}:void 0;!E&&(l==null?0:l.viewModel)&&(E={openPopupAction:Object.assign({},{popup:{dialogViewModel:l.viewModel},popupType:(O==null?0:O.isModal)?"MODAL":"DIALOG"},J&&J)});E&&this.handleOpenPopupAction(E,e)}else{if(J=l==null?void 0:l.viewModel){var z=O=O===void 0?{}:O;O=z.ariaLabel;J={popup:{dialogViewModel:J},
popupType:z.isModal?"MODAL":"DIALOG"};z={accessibilityData:{label:O}};O&&(J.accessibilityData=z);J={openPopupAction:J}}else J=void 0;if(J=(E=J)!=null?E:l==null?void 0:l.openPopupActionCommand)this.isAriaModal=_.a("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(J,e)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var l=this;return _.V(function(e){return e.return(l.handleGetOpenedPopupsAction_().filter(function(O){var E;return((E=O.openPopupAction)==null?void 0:E.popupType)==="DIALOG"}).length>0)})}}];var Jhf;var X4h;var zN0=_.E9(["about:blank"]),oj=function(){var l=_.B.apply(this,arguments)||this;l.isMuted=!1;l.pageLoadTimeoutId=void 0;return l};
_.m(oj,_.B);_.X=oj.prototype;_.X.dataChanged=function(){var l=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var e=this.data.url,O=_.YP(e);_.a("enable_yt_ata_iframe_authuser")?(O=_.YP(e),_.H2(this.iframe,Xt3(O))):_.H2(this.iframe,O);this.pageLoadTimeoutId=_.fZ(_.Gi(),function(){return void l.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.zP({destination:window,iframe:this.iframe,origin:_.F1x(O.toString()),channelName:"ataiframe",onMessage:_.LQV(stz,function(E){GxP(E.data)?(E=_.nJ(E.data,1,_.ai,_.Oo()),E.length!==1?_.hG(Error("pl")):(E=E[0],E===3?(l.isMuted=!0,l.logStateChanged({adMuteRequested:!0})):E===1&&l.close())):_.hG(Error("ql"))}),
onEstablished:function(){l.cancelPageLoadTimeout();l.logStateChanged({pageLoadSucceeded:!0})}})}};
_.X.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Gi().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.X.logStateChanged=function(l){var e;if((e=this.data)==null?0:e.trackingParams)l={adsClientData:{aboutThisAdData:l}},_.yN().stateChanged(this.data.trackingParams,l)};
_.X.close=function(){_.Wb(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.handlesPopupClosed=function(l,e){var O=this,E,J;return _.V(function(z){if(z.nextAddress==1)return _.hT("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Wb(O.hostElement,"on-about-this-ad-popup-closed",[O.isMuted,e]),z.jumpTo(0)):l&&z73(l)?_.C(z,bOi(l),4):(O.isMuted&&_.Wb(O.hostElement,"yt-mute-ad-action",[O.is,O]),z.jumpTo(0));if(E=z.yieldResult){var M=J=new _.Kw(E),Z=O.isMuted;M.getOptions().includes("onAboutThisAdPopupClosed")?_.WEi(M,"onAboutThisAdPopupClosed",{isMuted:Z,layoutId:e}):_.VP("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Cl(z)})};
_.X.onPopupClosed=function(l){var e=this,O,E;return _.V(function(J){O=_.OP(zN0);_.H2(e.iframe,O);e.cancelPageLoadTimeout();if(!e.data)return J.jumpTo(0);e.ytRendererBehavior.markDirty();E=l.detail.context.openingElement;return _.C(J,e.handlesPopupClosed(E,e.data.layoutId),0)})};
_.X.detached=function(){this.cancelPageLoadTimeout()};
_.X.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oj.prototype.onPopupClosed=oj.prototype.onPopupClosed;oj.prototype.dataChanged=oj.prototype.dataChanged;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.L([_.aB("#iframe"),_.q("design:type",HTMLIFrameElement)],oj.prototype,"iframe",void 0);_.L([_.T(),_.q("design:type",Object)],oj.prototype,"data",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],oj.prototype,"dataChanged",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype",Promise)],oj.prototype,"onPopupClosed",null);_.L([_.Ps({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],oj);
_.Y(oj,"yt-about-this-ad-renderer",function(){if(X4h===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;Jhf===void 0&&(Jhf=document.createElement("template"));var E=Jhf;O.call(e,E.content.cloneNode(!0),l.content.firstChild);X4h=l}l=X4h;return l},{mode:2});var bq3;var Mg4;var $Q=function(l){var e=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=e.message;"stack"in e&&(this.stack=e.stack);this.maxFileSizeMB=l;Object.setPrototypeOf(this,$Q.prototype)};
_.m($Q,Error);var Vgo=function(l,e){var O=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=O.message;"stack"in O&&(this.stack=O.stack);this.minWidth=l;this.minHeight=e;Object.setPrototypeOf(this,Vgo.prototype)};
_.m(Vgo,Error);var ZqH=function(l){this.requirements=l;this.JSC$18603_maxFileSize=l.maxFileSizeMB*1024*1024},ut4=function(l,e){if(e.size>l.JSC$18603_maxFileSize)throw new $Q(l.requirements.maxFileSizeMB);
};var Cw3=function(l,e){this.canvas=l;this.imageEditorBuilder=e};
Cw3.prototype.addEventListeners=function(l){var e=function(J){om4(l,J)};
this.JSC$18609_mouseDownEvent=e;var O=function(J){$NC(l,J)};
this.JSC$18609_mouseMoveEvent=O;var E=function(){WkP(l)};
this.JSC$18609_mouseUpEvent=E;this.canvas.addEventListener("mousedown",e);this.canvas.addEventListener("mousemove",O);document.addEventListener("mouseup",E)};
Cw3.prototype.removeEventListeners=function(){this.JSC$18609_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18609_mouseDownEvent);this.JSC$18609_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18609_mouseMoveEvent);this.JSC$18609_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18609_mouseUpEvent)};
var dNF=function(l,e){l.removeEventListeners();return new Promise(function(O){var E=new Image;E.crossOrigin="anonymous";E.onload=function(){var J=l.imageEditorBuilder(l.canvas,E);l.addEventListeners(J);O(J)};
E.src=e})},Wz=function(l,e,O,E,J,z,M,Z){this.canvas=l;
this.image=e;this.requiredRatio=O;this.minImageCropDimension=E;this.minOutputImageResolution=J;this.component=z;this.styleFocusedCorner=Z===void 0?!0:Z;this.action=2;this.focusedCorner=this.resizeCorner=0;l=this.canvas.getContext("2d");if(!l)throw Error("rl");this.ctx=l;this.canvasMargin=M!=null?M:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;M=this.image;l=this.canvasInnerWidth/M.width;M.height*l>912&&(l=M.width/M.height*912/M.width);M=l;this.scaledImageWidth=this.canvas.width%2?
VoH(this.image.width*M):Mo4(this.image.width*M);this.scaledImageHeight=Math.round(this.image.height*M);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18612_overlayMarginBottom=this.JSC$18612_overlayMarginTop=this.canvasMargin;this.JSC$18612_overlayMarginRight=this.JSC$18612_overlayMarginLeft=this.horizontalMargin;this.JSC$18612_overlayWidth=this.scaledImageWidth;this.JSC$18612_overlayHeight=this.scaledImageHeight;
l=this.image.width/this.image.height;l>this.requiredRatio?(this.JSC$18612_overlayWidth=this.canvas.width%2?VoH(this.scaledImageHeight*this.requiredRatio):Mo4(this.scaledImageHeight*this.requiredRatio),this.JSC$18612_overlayMarginRight=this.JSC$18612_overlayMarginLeft=(this.canvas.width-this.JSC$18612_overlayWidth)/2):l<this.requiredRatio&&(this.JSC$18612_overlayHeight=this.canvas.height%2?VoH(this.scaledImageWidth/this.requiredRatio):Mo4(this.scaledImageWidth/this.requiredRatio),this.JSC$18612_overlayMarginBottom=
this.JSC$18612_overlayMarginTop=(this.canvas.height-this.JSC$18612_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*M,this.scaledImageWidth);gm4(this)};
Wz.prototype.getContext=function(){return this.ctx};
var om4=function(l,e){e={x:Math.round(e.pageX-l.canvas.getBoundingClientRect().left),y:Math.round(e.pageY-l.canvas.getBoundingClientRect().top)};l.dragStart=e;iqP(l,e)!==0?(l.action=1,w4f(l,e),l.resizeCorner=iqP(l,e)):e.x>l.JSC$18612_overlayMarginLeft&&e.x<l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth&&e.y>l.JSC$18612_overlayMarginTop&&e.y<l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight&&(l.action=0)},AhC=function(l,e){switch(e){case 1:return{x:l.JSC$18612_overlayMarginLeft,
y:l.JSC$18612_overlayMarginTop};case 2:return{x:l.JSC$18612_overlayMarginLeft,y:l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight};case 3:return{x:l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth,y:l.JSC$18612_overlayMarginTop};case 4:return{x:l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth,y:l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight};default:throw Error("sl");}},akf=function(l,e){if(l.focusedCorner!==0){l.dragStart=AhC(l,l.focusedCorner);
l.action=1;l.resizeCorner=l.focusedCorner;var O=l.dragStart.x,E=l.dragStart.y;switch(e){case 0:l.focusedCorner===1||l.focusedCorner===4?(O-=10,E-=10):(O-=10,E+=10);break;case 1:l.focusedCorner===1||l.focusedCorner===4?(O+=10,E+=10):(O+=10,E-=10);break;case 2:O=l.focusedCorner===1||l.focusedCorner===4?O-10:O+10;E-=10;break;case 3:O=l.focusedCorner===1||l.focusedCorner===4?O+10:O-10;E+=10;break;default:throw Error("tl");}nmF(l,{x:O,y:E});gm4(l);l.action=2;l.dragStart=void 0}},$NC=function(l,e){e={x:Math.round(e.pageX-
l.canvas.getBoundingClientRect().left),
y:Math.round(e.pageY-l.canvas.getBoundingClientRect().top)};w4f(l,e);switch(l.action){case 1:nmF(l,e);break;case 0:l.dragStart&&(l.JSC$18612_overlayMarginLeft=Math.max(l.horizontalMargin,Math.min(l.JSC$18612_overlayMarginLeft-(l.dragStart.x-e.x),l.horizontalMargin+l.scaledImageWidth-l.JSC$18612_overlayWidth)),l.JSC$18612_overlayMarginRight=l.canvas.width-l.JSC$18612_overlayMarginLeft-l.JSC$18612_overlayWidth,l.JSC$18612_overlayMarginTop=Math.max(l.canvasMargin,Math.min(l.JSC$18612_overlayMarginTop-
(l.dragStart.y-e.y),l.scaledImageHeight-l.JSC$18612_overlayHeight+l.canvasMargin)),l.JSC$18612_overlayMarginBottom=l.canvas.height-(l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight));break;default:return}gm4(l);l.dragStart=e},WkP=function(l){l.action=2;
l.dragStart=void 0;document.body.style.cursor="auto"},w4f=function(l,e){switch(iqP(l,e)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:l.action!==1&&(document.body.style.cursor="auto")}},iqP=function(l,e){var O=l.JSC$18612_overlayMarginLeft-5,E=l.JSC$18612_overlayMarginTop-5,J=l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth-5;
l=l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-5;return kso(e,{x:O,y:E})?1:kso(e,{x:J,y:E})?3:kso(e,{x:O,y:l})?2:kso(e,{x:J,y:l})?4:0},kso=function(l,e){return l.x>=e.x&&l.x<=e.x+10&&l.y>=e.y&&l.y<=e.y+10},nmF=function(l,e){if(l.dragStart)switch(l.resizeCorner){case 2:Math.abs((l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth-e.x)/(e.y-l.JSC$18612_overlayMarginTop))>=l.requiredRatio?Ik4(l,e.x):mNf(l,e.y);
break;case 1:Math.abs((l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth-e.x)/(l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-e.y))>=l.requiredRatio?yhu(l,e.x):mNf(l,e.y);break;case 4:Math.abs((e.x-l.JSC$18612_overlayMarginLeft)/(e.y-l.JSC$18612_overlayMarginTop))>=l.requiredRatio?Ik4(l,e.x):p4u(l,e.y);break;case 3:Math.abs((e.x-l.JSC$18612_overlayMarginLeft)/(l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-e.y))>=l.requiredRatio?yhu(l,e.x):p4u(l,e.y);break;default:throw Error("ul");
}},Ik4=function(l,e){var O=l.JSC$18612_overlayMarginTop;
l.JSC$18612_overlayMarginBottom=Kku(l,e);l.JSC$18612_overlayHeight=l.canvas.height-l.JSC$18612_overlayMarginBottom-O;l.JSC$18612_overlayWidth=Math.round(l.JSC$18612_overlayHeight*l.requiredRatio);jou(l)},yhu=function(l,e){var O=l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight;
l.JSC$18612_overlayMarginTop=Kku(l,e);l.JSC$18612_overlayHeight=O-l.JSC$18612_overlayMarginTop;l.JSC$18612_overlayWidth=Math.round(l.JSC$18612_overlayHeight*l.requiredRatio);jou(l)},jou=function(l){switch(l.resizeCorner){case 2:case 1:l.JSC$18612_overlayMarginLeft=l.canvas.width-l.JSC$18612_overlayMarginRight-l.JSC$18612_overlayWidth;
break;case 4:case 3:l.JSC$18612_overlayMarginRight=l.canvas.width-l.JSC$18612_overlayMarginLeft-l.JSC$18612_overlayWidth;break;default:throw Error("ul");}},mNf=function(l,e){var O=l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth;
l.JSC$18612_overlayMarginLeft=HqF(l,e);l.JSC$18612_overlayWidth=O-l.JSC$18612_overlayMarginLeft;l.JSC$18612_overlayHeight=Math.round(l.JSC$18612_overlayWidth/l.requiredRatio);chu(l)},p4u=function(l,e){var O=l.JSC$18612_overlayMarginLeft;
l.JSC$18612_overlayMarginRight=HqF(l,e);l.JSC$18612_overlayWidth=l.canvas.width-l.JSC$18612_overlayMarginRight-O;l.JSC$18612_overlayHeight=Math.round(l.JSC$18612_overlayWidth/l.requiredRatio);chu(l)},chu=function(l){switch(l.resizeCorner){case 2:case 4:l.JSC$18612_overlayMarginBottom=l.canvas.height-l.JSC$18612_overlayMarginTop-l.JSC$18612_overlayHeight;
break;case 1:case 3:l.JSC$18612_overlayMarginTop=l.canvas.height-l.JSC$18612_overlayMarginBottom-l.JSC$18612_overlayHeight;break;default:throw Error("ul");}},Kku=function(l,e){switch(l.resizeCorner){case 2:e=l.canvas.height-(l.JSC$18612_overlayMarginTop+FkC(l,e));
break;case 4:e=l.canvas.height-(l.JSC$18612_overlayMarginTop+fku(l,e));break;case 1:e=l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-FkC(l,e);break;case 3:e=l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-fku(l,e);break;default:throw Error("ul");}return Math.max(e,l.canvasMargin)},FkC=function(l,e){e=l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth-Math.max(e,l.horizontalMargin);
e=e<0?l.JSC$18612_overlayWidth:Math.max(e,l.minOverlayWidth);return Math.round(e/l.requiredRatio)},fku=function(l,e){e=l.canvas.width-Math.max(l.canvas.width-e,l.horizontalMargin)-l.JSC$18612_overlayMarginLeft;
e=e<0?l.JSC$18612_overlayWidth:Math.max(e,l.minOverlayWidth);return Math.round(e/l.requiredRatio)},HqF=function(l,e){switch(l.resizeCorner){case 2:e=l.canvas.width-l.JSC$18612_overlayMarginRight-RN0(l,e);
break;case 4:e=l.canvas.width-l.JSC$18612_overlayMarginLeft-RN0(l,e);break;case 1:e=l.canvas.width-l.JSC$18612_overlayMarginRight-Tqh(l,e);break;case 3:e=l.canvas.width-l.JSC$18612_overlayMarginLeft-Tqh(l,e);break;default:throw Error("ul");}return Math.max(e,l.horizontalMargin)},RN0=function(l,e){e=l.canvas.height-Math.max(l.canvas.height-e,l.canvasMargin)-l.JSC$18612_overlayMarginTop;
return e<0?l.JSC$18612_overlayWidth:Math.max(Math.round(e*l.requiredRatio),l.minOverlayWidth)},Tqh=function(l,e){e=l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-Math.max(e,l.canvasMargin);
return e<0?l.JSC$18612_overlayWidth:Math.max(Math.round(e*l.requiredRatio),l.minOverlayWidth)},gm4=function(l){l.ctx.clearRect(0,0,l.canvas.width,l.canvas.height);
l.ctx.drawImage(l.image,0,0,l.image.width,l.image.height,l.horizontalMargin,l.canvasMargin,l.canvas.width-2*l.horizontalMargin,l.scaledImageHeight);l.ctx.fillStyle="rgba(0, 0, 0, 0.7)";l.ctx.fillRect(l.horizontalMargin,l.JSC$18612_overlayMarginTop,l.JSC$18612_overlayMarginLeft-l.horizontalMargin,l.JSC$18612_overlayHeight);l.ctx.fillRect(l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth,l.JSC$18612_overlayMarginTop,l.JSC$18612_overlayMarginRight-l.horizontalMargin,l.JSC$18612_overlayHeight);l.ctx.fillRect(l.horizontalMargin,
l.canvasMargin,l.scaledImageWidth,l.JSC$18612_overlayMarginTop-l.canvasMargin);l.ctx.fillRect(l.horizontalMargin,l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight,l.scaledImageWidth,l.JSC$18612_overlayMarginBottom-l.canvasMargin);l.drawOverlay();l.component&&_.$u(l.component,"image-updated")};
Wz.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18612_overlayMarginLeft,this.JSC$18612_overlayMarginTop,this.JSC$18612_overlayWidth,this.JSC$18612_overlayHeight);so0(this)};
var so0=function(l){var e=l.JSC$18612_overlayMarginLeft-5,O=l.JSC$18612_overlayMarginTop-5,E=l.JSC$18612_overlayMarginLeft+l.JSC$18612_overlayWidth-5,J=l.JSC$18612_overlayMarginTop+l.JSC$18612_overlayHeight-5;l.ctx.fillStyle="#FFF";l.ctx.fillRect(e,O,10,10);l.ctx.strokeRect(e,O,10,10);l.ctx.fillRect(E,O,10,10);l.ctx.strokeRect(E,O,10,10);l.ctx.fillRect(e,J,10,10);l.ctx.strokeRect(e,J,10,10);l.ctx.fillRect(E,J,10,10);l.ctx.strokeRect(E,J,10,10);if(l.focusedCorner!==0&&l.styleFocusedCorner){l.ctx.lineWidth=
4;l.ctx.strokeStyle="#3EA6FF";switch(l.focusedCorner){case 1:--e;--O;break;case 2:--e;O=J-1;break;case 3:e=E-1;--O;break;case 4:e=E-1;O=J-1;break;default:return}l.ctx.strokeRect(e,O,12,12)}};
Wz.prototype.crop=function(l,e){e=e===void 0?!0:e;var O=this.image.width/this.scaledImageWidth,E=document.createElement("canvas"),J=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],z=this.JSC$18612_overlayWidth*O,M=this.JSC$18612_overlayHeight*O;E.width=Math.max(z,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);E.height=Math.max(M,J);l&&(E.width=Math.min(E.width,E.height),E.height=Math.min(E.width,E.height));
l=E.getContext("2d");if(!l)throw Error("il");J=(this.JSC$18612_overlayMarginLeft-this.horizontalMargin)*O;O*=this.JSC$18612_overlayMarginTop-this.canvasMargin;e||(l.fillStyle="white",l.fillRect(0,0,E.width,E.height));l.drawImage(this.image,J,O,z,M,0,0,E.width,E.height);return E};var Gs3=function(l,e,O,E,J){Wz.call(this,l,e,O,E,void 0,J,8,!1)};
_.m(Gs3,Wz);Gs3.prototype.drawOverlay=function(){var l=this.getContext(),e=this.JSC$18612_overlayWidth,O=this.JSC$18612_overlayHeight,E=this.JSC$18612_overlayMarginTop,J=this.JSC$18612_overlayMarginLeft;l.lineWidth=2;l.strokeStyle="#3EA6FF";l.beginPath();l.arc(J+e/2,E+O/2,e/2,0,2*Math.PI);l.stroke();l.strokeRect(J,E,e,O);so0(this)};
var Bqf={maxFileSizeMB:15,minWidth:98,minHeight:98},Pwz=["image/png","image/jpeg","image/gif"],dR=function(){var l=_.B.apply(this,arguments)||this;l.fileSelectorFocusListener=null;l.errorMessage=null;l.isLoading=!0;l.hideContainer=!0;l.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return l};
_.m(dR,_.B);_.X=dR.prototype;_.X.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.X.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.X.computePlaylistThumbnail=function(l){return l==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.X.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Wb(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.X.setErrorState=function(l){this.resetErrorState();l&&(this.errorMessage=l)};
_.X.showPopup=function(){var l=this;this.hideContainer=!1;_.fZ(_.UD,function(){_.$u(l.hostElement,"yt-refit")});
this.isLoading=!1};
_.X.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.X.closePopup=function(){this.resetFileSelector();_.Wb(this.hostElement,"yt-close-popup-action",[this.is])};
_.X.onCancelTap=function(){this.isPlaylistThumbnail||_.Wb(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.X.openFileSelector=function(){var l=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.fZ(_.UD,function(){setTimeout(function(){if(!l.fileSelector.files||l.fileSelector.files.length===0)l.onCancelTap();l.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(e){e instanceof Error?_.UW(e):_.YE(new _.Hk(JSON.stringify(e)))}};
_.X.handleFileSelection=function(){var l=this,e,O,E,J,z,M;return _.V(function(Z){switch(Z.nextAddress){case 1:_.b1(Z,2);if(!l.fileSelector.files||!l.imageEditorCanvas)return l.onCancelTap(),Z.return();e=l.fileSelector.files[0];ut4(l.imageChecker,e);_.b1(Z,4);return _.C(Z,RUu(e),6);case 6:l.mimeType=Z.yieldResult;_.Q2(Z,5,2);break;case 4:_.u1(Z,2),_.Wb(l.hostElement,"yt-image-selection-error-action",[(O=l.data)==null?void 0:O.genericImageLoadErrorMessage]),l.onCancelTap();case 5:E=new FileReader;E.addEventListener("load",
function(){var u,d;return _.V(function(g){if(g.nextAddress==1){if(!E.result)return _.hG(Error("kl")),g.return();u=E.result;d=new Image;d.src=u;d.onload=function(){try{var w=l.imageChecker;if(d.width<w.requirements.minWidth||d.height<w.requirements.minHeight)throw new Vgo(w.requirements.minWidth,w.requirements.minHeight);}catch(k){if(k instanceof Vgo){var n;_.Wb(l.hostElement,"yt-image-selection-error-action",[(n=l.data)==null?void 0:n.imageDimensionErrorMessage]);l.logImageDimensionErrorVe()}else k instanceof
Error?_.UW(k):(w=new _.Hk(JSON.stringify(k)),_.UW(w));l.onCancelTap()}l.showPopup()};
d.onerror=function(){var w;_.Wb(l.hostElement,"yt-image-selection-error-action",[(w=l.data)==null?void 0:w.genericImageLoadErrorMessage]);l.onCancelTap()};
return _.C(g,dNF(l.imageEditorCanvas,u),2)}l.imageEditor=g.yieldResult;l.updatePositionOfAllCorners();l.addEventListeners(l.imageEditor);_.Cl(g)})},!1);
E.readAsDataURL(e);_.Q2(Z,0);break;case 2:J=_.u1(Z),J instanceof $Q?_.Wb(l.hostElement,"yt-image-selection-error-action",[(z=l.data)==null?void 0:z.imageSizeErrorMessage]):(J instanceof Error?_.UW(J):_.YE(new _.Hk(JSON.stringify(J))),_.Wb(l.hostElement,"yt-image-selection-error-action",[(M=l.data)==null?void 0:M.genericImageLoadErrorMessage])),l.onCancelTap(),_.Cl(Z)}})};
_.X.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var l=_.mX(_.yN(),{veType:232707,visualElement:_.sL(232707)});l&&(l={visualElement:l},_.IX().reportShown(l))}};
_.X.handleImageSelectionErrorAction=function(l){this.isPlaylistThumbnail&&_.XAt(this.hostElement,l)};
_.X.convertToImageFormatBundle=function(l){var e=this,O,E,J;return _.V(function(z){switch(z.nextAddress){case 1:return O=l.toDataURL(e.outputMimeType,1),_.C(z,TQ4(O),2);case 2:E=z.yieldResult;_.b1(z,3);ut4(e.imageChecker,E);_.Q2(z,4);break;case 3:J=_.u1(z);if(!(J instanceof $Q))throw J;_.hG(new _.Hk("Output size is bigger than input size for image",e.mimeType,e.outputMimeType,E.size));O=l.toDataURL("image/jpeg",.95);return _.C(z,TQ4(O),6);case 6:E=z.yieldResult;case 4:return z.return({dataUrl:O,imageFile:E})}})};
_.X.handleUploadImageToScottyCommand=function(l){var e=this,O,E,J,z,M,Z,u,d,g,w;return _.V(function(n){switch(n.nextAddress){case 1:if(!e.imageEditor||!_.I(l,xBF))return n.return();O=_.I(l,xBF).scottyUploadUrl;if(!O){var k=new _.Hk("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.UW(k);return n.return()}_.b1(n,2);e.setLoadingState();E=e.imageEditor.crop(!1,!1);return _.C(n,e.convertToImageFormatBundle(E),4);case 4:return J=n.yieldResult,_.C(n,Flz(J.imageFile,O),5);case 5:z=
n.yieldResult;((M=e.data)==null?0:M.onUploadEndpoint)?(Z=e.buildUploadServiceEndpoint(z),e.ytComponentBehavior.resolveCommand(Z),u=_.I(Z,_.BC),((d=u)==null?0:d.params)?e.closePopup():e.resetFileSelector()):(_.Wb(e.hostElement,"yt-image-updated-action",[J.dataUrl,z]),e.closePopup());_.Q2(n,0);break;case 2:g=_.u1(n),e.setErrorState((w=e.data)==null?void 0:w.uploadErrorMessage),g instanceof Error?_.UW(g):(k=new _.Hk(JSON.stringify(g)),_.UW(k)),_.Cl(n)}})};
_.X.buildUploadServiceEndpoint=function(l){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",l),this.data.onUploadEndpoint):null};
_.X.dataChanged=function(){var l=this,e;return _.V(function(O){if(O.nextAddress==1){if(!l.data||!l.canvasElement)return O.return();l.data.imageRatio&&l.data.minImageCropWidth||_.YE(new _.Hk("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));e=function(E,J){return l.data.imageType==="IMAGE_TYPE_AVATAR"?new Gs3(E,J,l.data.imageRatio,[l.data.minImageCropWidth,l.data.minImageCropWidth/l.data.imageRatio],l.hostElement):new Wz(E,J,l.data.imageRatio,[l.data.minImageCropWidth,
l.data.minImageCropWidth/l.data.imageRatio],void 0,l.hostElement,8,!1)};
l.imageEditorCanvas=new Cw3(l.canvasElement,e);return l.data.url?_.C(O,dNF(l.imageEditorCanvas,l.data.url),3):(l.hideContainer=!0,l.openFileSelector(),O.jumpTo(0))}l.imageEditor=O.yieldResult;l.showPopup();l.addEventListeners(l.imageEditor);_.Cl(O)})};
_.X.addEventListeners=function(l){this.removeEventListeners();var e=function(J){om4(l,J)};
this.JSC$18620_mouseDownEvent=e;var O=function(J){$NC(l,J)};
this.JSC$18620_mouseMoveEvent=O;var E=function(){WkP(l)};
this.JSC$18620_mouseUpEvent=E;this.topLeftCorner.addEventListener("mousedown",e);this.topLeftCorner.addEventListener("mousemove",O);this.topLeftCorner.addEventListener("mouseup",E);this.topRightCorner.addEventListener("mousedown",e);this.topRightCorner.addEventListener("mousemove",O);this.topRightCorner.addEventListener("mouseup",E);this.bottomLeftCorner.addEventListener("mousedown",e);this.bottomLeftCorner.addEventListener("mousemove",O);this.bottomLeftCorner.addEventListener("mouseup",E);this.bottomRightCorner.addEventListener("mousedown",
e);this.bottomRightCorner.addEventListener("mousemove",O);this.bottomRightCorner.addEventListener("mouseup",E)};
_.X.removeEventListeners=function(){this.JSC$18620_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18620_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18620_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18620_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18620_mouseDownEvent));this.JSC$18620_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18620_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18620_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18620_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18620_mouseMoveEvent));this.JSC$18620_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18620_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18620_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18620_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18620_mouseUpEvent))};
_.X.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var l=document.activeElement;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;switch(l){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};
_.X.updatePositionOfCorner=function(l,e){var O=l.y-e.offsetHeight/2+4;e.style.left=l.x-e.offsetWidth/2+16+"px";e.style.top=O+"px"};
_.X.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var l=_.b([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),e=l.next();!e.done;e=l.next()){e=e.value;var O=AhC(this.imageEditor,e.corner);this.updatePositionOfCorner(O,e.div)}};
_.X.onLeft=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(akf(this.imageEditor,0),this.updatePositionOfAllCorners(),l.preventDefault())};
_.X.onRight=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(akf(this.imageEditor,1),this.updatePositionOfAllCorners(),l.preventDefault())};
_.X.onUp=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(akf(this.imageEditor,2),this.updatePositionOfAllCorners(),l.preventDefault())};
_.X.onDown=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(akf(this.imageEditor,3),this.updatePositionOfAllCorners(),l.preventDefault())};
_.X.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Ji.Object.defineProperties(dR.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Pwz.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var l,e,O;((e=this.data)==null?0:e.imageRatio)&&((O=this.data)==null?0:O.minImageCropWidth)?l={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:l=Bqf;return new ZqH(l)}}});
dR.prototype.updatePositionOfAllCorners=dR.prototype.updatePositionOfAllCorners;dR.prototype.dataChanged=dR.prototype.dataChanged;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.L([_.K(_.po),_.q("design:type",Object)],dR.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.aB("#canvas"),_.q("design:type",HTMLCanvasElement)],dR.prototype,"canvasElement",void 0);_.L([_.aB("#file-selector"),_.q("design:type",HTMLInputElement)],dR.prototype,"fileSelector",void 0);_.L([_.aB("#top-left-corner"),_.q("design:type",HTMLDivElement)],dR.prototype,"topLeftCorner",void 0);_.L([_.aB("#top-right-corner"),_.q("design:type",HTMLDivElement)],dR.prototype,"topRightCorner",void 0);
_.L([_.aB("#bottom-left-corner"),_.q("design:type",HTMLDivElement)],dR.prototype,"bottomLeftCorner",void 0);_.L([_.aB("#bottom-right-corner"),_.q("design:type",HTMLDivElement)],dR.prototype,"bottomRightCorner",void 0);_.L([_.T(),_.q("design:type",Object)],dR.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],dR.prototype,"errorMessage",void 0);_.L([_.T(),_.q("design:type",Object)],dR.prototype,"isLoading",void 0);_.L([_.T(),_.q("design:type",Object)],dR.prototype,"hideContainer",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.q("design:type",Boolean)],dR.prototype,"isPlaylistThumbnail",void 0);_.L([_.y0("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],dR.prototype,"dataChanged",null);_.L([_.wP("image-updated"),_.wP("yt-refit"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],dR.prototype,"updatePositionOfAllCorners",null);
_.L([_.Ps({is:"yt-image-editor-renderer",disableElementRegistration:!0})],dR);
_.Y(dR,"yt-image-editor-renderer",function(){if(Mg4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;bq3===void 0&&(bq3=document.createElement("template"));var E=bq3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Mg4=l}l=Mg4;return l},{mode:2});var UNF;var Y_f;var gR=function(){return _.B.apply(this,arguments)||this};
_.m(gR,_.B);gR.prototype.updateMinutesFromBinding=function(l){this.handleMinutesChanged&&this.handleMinutesChanged(l)};
gR.prototype.updateSecondsFromBinding=function(l){this.handleSecondsChanged&&this.handleSecondsChanged(l)};
gR.prototype.updateDescriptionFromBinding=function(l){this.handleDescriptionChanged&&this.handleDescriptionChanged(l)};
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],gR.prototype,"data",void 0);_.L([_.T(),_.q("design:type",String)],gR.prototype,"minutes",void 0);_.L([_.T(),_.q("design:type",String)],gR.prototype,"seconds",void 0);_.L([_.T(),_.q("design:type",String)],gR.prototype,"description",void 0);_.L([_.T(),_.q("design:type",Function)],gR.prototype,"handleMinutesChanged",void 0);
_.L([_.T(),_.q("design:type",Function)],gR.prototype,"handleSecondsChanged",void 0);_.L([_.T(),_.q("design:type",Function)],gR.prototype,"handleDescriptionChanged",void 0);_.L([_.T(),_.q("design:type",Number)],gR.prototype,"characterLimit",void 0);_.L([_.T(),_.q("design:type",Number)],gR.prototype,"textNumRows",void 0);_.L([_.Ps({is:"yt-report-details-form-content",disableElementRegistration:!0})],gR);
_.Y(gR,"yt-report-details-form-content",function(){if(Y_f===void 0){var l=document.createElement("template");_.p(l,'\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>');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;UNF===void 0&&(UNF=document.createElement("template"));var E=UNF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Y_f=l}l=Y_f;return l},{mode:2});var hNP;var Lki;var iC=function(){var l=_.B.apply(this,arguments)||this;l.updateMinutesFromBinding=function(e){l.minutes=e.detail.value};
l.updateSecondsFromBinding=function(e){l.seconds=e.detail.value};
l.updateDescriptionFromBinding=function(e){l.description=e.detail.value};
return l};
_.m(iC,_.B);_.X=iC.prototype;_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.X.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"}}}};
_.X.ready=function(){_.ud(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.X.onSubmitYtAction=function(l){var e=l.detail;e.actionName==="yt-service-request"&&(e=e.args[1],e.flagEndpoint&&(l.stopPropagation(),this.refireAction(e)))};
_.X.refireAction=function(l){var e={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(e.vss_id=this.vssId);_.ii(this.hostElement,[l,e]);this.submitDisabled=!0};
_.X.dataChanged=function(){var l=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var e=_.bV();e&&e.getPlayerPromise().then(function(O){var E=O.getOption("cc","track")||O.getOption("captions","track");E&&(l.vssId=E.vss_id);O=O.getCurrentTime();l.minutes=Math.floor(O/60).toString();l.seconds=(Math.floor(O)%60).toString()})};
_.X.updateSubmitButtonState=function(){var l;((l=this.data)==null?0:l.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==="")};
_.X.onYtServiceRequestCompleted=function(){_.Wb(this.hostElement,"yt-close-popup-action")};
_.X.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Ji.Object.defineProperties(iC.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.textNumRows)||4}}});
iC.prototype.onYtServiceRequestError=iC.prototype.onYtServiceRequestError;iC.prototype.onYtServiceRequestCompleted=iC.prototype.onYtServiceRequestCompleted;iC.prototype.updateSubmitButtonState=iC.prototype.updateSubmitButtonState;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);
_.L([_.T({observer:"dataChanged"}),_.q("design:type",Object)],iC.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Boolean)],iC.prototype,"submitDisabled",void 0);_.L([_.T(),_.q("design:type",String)],iC.prototype,"minutes",void 0);_.L([_.T(),_.q("design:type",String)],iC.prototype,"seconds",void 0);_.L([_.T(),_.q("design:type",String)],iC.prototype,"description",void 0);_.L([_.T(),_.q("design:type",String)],iC.prototype,"vssId",void 0);
_.L([_.T({value:_.hT("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.q("design:type",Boolean)],iC.prototype,"isMusic",void 0);_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],iC.prototype,"characterLimit",null);_.L([_.R("data"),_.q("design:type",Number),_.q("design:paramtypes",[])],iC.prototype,"textNumRows",null);
_.L([_.y0("minutes","seconds","description","submitDisabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iC.prototype,"updateSubmitButtonState",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iC.prototype,"onYtServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],iC.prototype,"onYtServiceRequestError",null);_.L([_.Ps({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],iC);
_.Y(iC,"yt-report-details-form-renderer",function(){if(Lki===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;hNP===void 0&&(hNP=document.createElement("template"));var E=hNP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Lki=l}l=Lki;return l});var tgF;var q_4;var vmu;var Nqi;var wR=function(){return _.B.apply(this,arguments)||this};
_.m(wR,_.B);
wR.prototype.onCheckedChanged_=function(){if(this.data){var l=_.ud(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Wb(this.hostElement,"yt-additional-detail-checkbox-update",[l]):this.data.identifier==="yt-hide-user-checkbox"?_.Wb(this.hostElement,"yt-hide-user-checkbox-update",[l]):l&&this.data.enableCommand?_.Wb(this.hostElement,"yt-modify-report-form-command",[_.I(this.data.enableCommand,z24)]):!l&&this.data.disableCommand&&_.Wb(this.hostElement,
"yt-modify-report-form-command",[_.I(this.data.enableCommand,z24)])}};
wR.prototype.onLabelTap_=function(l){l.target.tagName!="A"&&(_.ud(this.hostElement).querySelector("#checkbox").checked=!_.ud(this.hostElement).querySelector("#checkbox").checked)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],wR.prototype,"data",void 0);_.L([_.Ps({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],wR);
_.Y(wR,"yt-boolean-form-field-v2-renderer",function(){if(Nqi===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;vmu===void 0&&(vmu=document.createElement("template"));var E=vmu;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Nqi=l}l=Nqi;return l});var A_=function(){var l=_.B.apply(this,arguments)||this;l.canShowAdditionalDetailCheckbox=!1;l.canShowCheckbox=!1;l.keepDropdownFocusedAfterSelection=!0;return l};
_.m(A_,_.B);A_.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}}}}};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],A_.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],A_.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.T(),_.q("design:type",Object)],A_.prototype,"canShowCheckbox",void 0);_.L([_.T(),_.q("design:type",Object)],A_.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.Ps({is:"yt-report-form-modal-content",disableElementRegistration:!0})],A_);
_.Y(A_,"yt-report-form-modal-content",function(){if(q_4===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;tgF===void 0&&(tgF=document.createElement("template"));var E=tgF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);q_4=l}l=q_4;return l},{mode:2});var rh4;var DNO;var n$=function(){var l=_.B.apply(this,arguments)||this;l.submitting=!1;l.submitButtonDisabled=!0;l.command=null;l.canShowCheckbox=!1;l.canShowAdditionalDetailCheckbox=!1;l.canShowNextButton=!1;l.additionalDetailCheckboxChecked=!1;l.refitJob=0;l.keepDropdownFocusedAfterSelection=!0;l.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 l};
_.m(n$,_.B);_.X=n$.prototype;_.X.created=function(){this.refitJob=0};
_.X.attached=function(){this.JSC$18643_scroller&&(this.JSC$18643_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18643_scroller.attached&&typeof this.JSC$18643_scroller.attached==="function"&&this.JSC$18643_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.dataChanged=function(l){l&&(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,l.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),l.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.X.onYtPopupOpened=function(){var l=_.bV();l&&l.getPlayerPromise().then(function(e){e.pauseVideo()})};
_.X.onYtNavigate=function(l){_.I(l.detail.endpoint,_.hhS)&&(l.stopPropagation(),this.hideReportForm=!0)};
_.X.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.X.onYtServiceRequestCompleted=function(l,e){var O=e.actions;if(O){if(O.length===1&&_.I(O[0],_.nz)){var E;O=((E=_.I(O[0],_.nz))==null?void 0:E.commands)||[]}E=0;for(var J=O.length;E<J;E++)_.I(O[E],_.Fn)&&(l.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(O[E]))}if(e.data&&(l=this.get("feedbackResponses",e.data)))for(e=0;e<l.length;e++)if(l[e].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.X.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.X._onDescendantIronResize=function(l){l.stopPropagation();return!1};
_.X.handleReportFormEndpointUpdateAction=function(l){if(l.submitEndpoint){var e=this.command=l.submitEndpoint;e=_.I(e,_.jIH);if(e==null?0:e.additionalDetailCheckboxChecked)e.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else l.submitNavigationEndpoint?(this.command=l.submitNavigationEndpoint,this.toggleSubmitButton(!1)):l.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:l.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;l.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",l));this.refit()};
_.X.handleConfirmDialogCloseAction=function(l){l.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.X.submitButtonDisabledChanged=function(){var l=this.hostElement.parentElement;l&&l.invalidateTabbables&&l.invalidateTabbables()};
_.X.handleModifyReportFormCommand=function(l){l=this.get("action",l);l==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:l==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:l==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:l==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:l==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:l==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.X.updateDialogStyling=function(){var l,e,O,E,J,z=((J=(l=this.data)==null?void 0:(e=l.optionsSupportedRenderers)==null?void 0:(O=e.optionsRenderer)==null?void 0:(E=O.items)==null?void 0:E.length)!=null?J:0)<=2?0:240;_.dP(this.hostElement,{"--yt-report-form-modal-renderer-min-width":z+"px"})};
_.X.toggleSubmitButton=function(l){this.submitButtonDisabled=!l;this.submitButtonDisabled=l};
_.X.computeSubmitButtonData=function(l,e){var O={};_.I(e,_.hhS)?O.navigationEndpoint=e:O.command=e||void 0;l&&l.buttonRenderer&&_.mm.extend(O,l.buttonRenderer);return O};
_.X.computeNextButtonData=function(l,e){var O={};if(!l||!l.buttonRenderer)return O;_.mm.extend(O,l.buttonRenderer);if(!e)return O;if(_.I(e,_.hhS))O.navigationEndpoint=Iui(e);else if(O.command=Iui(e),l=_.I(O.command,_.jIH))l.legalCheckboxChecked=!0;return O};
_.X.computeShowNextButton=function(l,e,O){return!!l&&e&&O};
_.X.refit=function(){var l=this;this.refitJob||(this.refitJob=_.UD.addLowPriorityJob(function(){_.$u(l.hostElement,"yt-refit");l.refitJob=0}))};
_.X.handleAdditionalDetailCheckboxUpdateAction=function(l){this.additionalDetailCheckboxChecked=l;_.I(this.command,_.jIH).additionalDetailCheckboxChecked=l};
_.Ji.Object.defineProperties(n$,{template:{configurable:!0,enumerable:!0,get:function(){if(DNO===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;rh4===void 0&&(rh4=document.createElement("template"));var E=rh4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);DNO=l}l=DNO;return l}}});
n$.prototype.onYtServiceRequestError=n$.prototype.onYtServiceRequestError;n$.prototype.onYtServiceRequestCompleted=n$.prototype.onYtServiceRequestCompleted;n$.prototype.onYtServiceRequestSent=n$.prototype.onYtServiceRequestSent;n$.prototype.onYtNavigate=n$.prototype.onYtNavigate;n$.prototype.onYtPopupOpened=n$.prototype.onYtPopupOpened;_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],n$.prototype,"openPopupBehavior",void 0);
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],n$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],n$.prototype,"eventForwardingBehavior",void 0);_.L([_.K(_.sl),_.q("design:type",Object)],n$.prototype,"ironResizableBehavior",void 0);_.L([_.T({observer:"dataChanged"}),_.q("design:type",Object)],n$.prototype,"data",void 0);
_.L([_.T(),_.q("design:type",Object)],n$.prototype,"submitting",void 0);_.L([_.T({observer:"submitButtonDisabledChanged"}),_.q("design:type",Object)],n$.prototype,"submitButtonDisabled",void 0);_.L([_.T(),_.q("design:type",Object)],n$.prototype,"command",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],n$.prototype,"hideReportForm",void 0);_.L([_.T(),_.q("design:type",Object)],n$.prototype,"canShowCheckbox",void 0);
_.L([_.T(),_.q("design:type",Object)],n$.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.T(),_.q("design:type",Object)],n$.prototype,"canShowNextButton",void 0);_.L([_.T(),_.q("design:type",Object)],n$.prototype,"additionalDetailCheckboxChecked",void 0);_.L([_.T(),_.q("design:type",Object)],n$.prototype,"refitJob",void 0);_.L([_.T(),_.q("design:type",Object)],n$.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.aB("#scroller"),_.q("design:type",Object)],n$.prototype,"JSC$18643_scroller",void 0);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],n$.prototype,"onYtPopupOpened",null);_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],n$.prototype,"onYtNavigate",null);
_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],n$.prototype,"onYtServiceRequestSent",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],n$.prototype,"onYtServiceRequestCompleted",null);
_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],n$.prototype,"onYtServiceRequestError",null);_.L([_.Ps({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],n$);var S_h;var Qo4;var aj=function(){return _.B.apply(this,arguments)||this};
_.m(aj,_.B);_.X=aj.prototype;_.X.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.X.onVisible=function(){if(_.a("web_ephemeral_actions_focus")){var l,e;(e=_.V2().resolve(_.MG(_.$Y)))==null||e.enqueue({label:_.lG((l=this.data)==null?void 0:l.messageTitle),elementToFocus:this.hostElement})}};
_.X.onThumbnailLoaded=function(){_.$u(this.hostElement,"yt-refit")};
_.X.onDismissTap=function(){_.Wb(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.X.computeAlternateIcon=function(l){return l?l==="BACKSTAGE_ARTWORK"?"backstage:artwork":l:null};
_.X.computeFontFamily=function(l){return l==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.X.computeBackgroundStyle=function(l,e){if(l=this.computeBackgroundImage(l,e))if(l=_.Cd(l.thumbnails))return'background-image: url("'+l+'");'};
_.X.computeHasFullHeightImage=function(l){return!(!(l&&l.thumbnails&&l.thumbnails.length>0)||this.modern)};
_.X.isModernStyle=function(l){return l.style==="STYLE_MODERN"};
_.X.computeIcon=function(l,e){if(l&&l.icon)return e?l.iconDark:l.icon};
_.X.computeBackgroundImage=function(l,e){if(l&&l.backgroundImage)return e?l.backgroundImageDark:l.backgroundImage};
_.X.computeLogo=function(l,e){if(l&&l.logo)return e?l.logoDark:l.logo};
_.X.computeShouldShowModernIcon=function(l,e){return l&&!!e};
_.X.getLogoContainerClassName=function(l){return this.logoWithPadding(l)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.X.getLogoImageId=function(l){return this.logoWithPadding(l)?"mealbar-logo-with-padding":"mealbar-logo"};
_.X.logoWithPadding=function(l){var e,O,E;return(l=(e=this.computeLogo(l,this.isDarkTheme))==null?void 0:(O=e.thumbnails)==null?void 0:(E=O[0])==null?void 0:E.height)&&l%31===0?!0:!1};
aj.prototype.onThumbnailLoaded=aj.prototype.onThumbnailLoaded;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.L([_.T({}),_.q("design:type",Object)],aj.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.q("design:type",Boolean)],aj.prototype,"modern",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],aj.prototype,"isDarkTheme",void 0);
_.L([_.T({computed:"computeIcon(data, isDarkTheme)"}),_.q("design:type",Object)],aj.prototype,"icon",void 0);_.L([_.T({computed:"computeLogo(data, isDarkTheme)"}),_.q("design:type",Object)],aj.prototype,"logo",void 0);_.L([_.T({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.q("design:type",Object)],aj.prototype,"backgroundStyle",void 0);_.L([_.T({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.q("design:type",Object)],aj.prototype,"alternateIcon",void 0);
_.L([_.T({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.q("design:type",Boolean)],aj.prototype,"hasFullHeightImage",void 0);_.L([_.T({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.q("design:type",Boolean)],aj.prototype,"useYoutubeSans",void 0);_.L([_.T({computed:"computeShouldShowModernIcon(modern, icon)"}),_.q("design:type",Boolean)],aj.prototype,"shouldShowModernIcon",void 0);
_.L([_.wP("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],aj.prototype,"onThumbnailLoaded",null);_.L([_.Ps({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],aj);
_.Y(aj,"yt-mealbar-promo-renderer",function(){if(Qo4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;S_h===void 0&&(S_h=document.createElement("template"));var E=S_h;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Qo4=l}l=Qo4;return l},{mode:2});var xNP;var lDz;var kQ=function(){return _.B.apply(this,arguments)||this};
_.m(kQ,_.B);_.X=kQ.prototype;_.X.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]]"}}}}}};
_.X.computeHasButtons_=function(l){return!(!l.dismissButton&&!l.acceptButton)};
_.X.computeStyle_=function(l){return l||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.X.observeImpressionEndpoints_=function(){var l=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.ii(l.hostElement,[e])})};
_.X.onTap_=function(){_.Wb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
kQ.prototype.observeImpressionEndpoints_=kQ.prototype.observeImpressionEndpoints_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],kQ.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],kQ.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],kQ.prototype,"positionType",void 0);_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.q("design:type",Boolean)],kQ.prototype,"hasButtons_",void 0);_.L([_.T({value:function(){return this.onTap_.bind(this)}}),
_.q("design:type",Function)],kQ.prototype,"boundOnTap_",void 0);_.L([_.T({value:{style:"mono-inverse"}}),_.q("design:type",Object)],kQ.prototype,"buttonOverride",void 0);_.L([_.AA("data.promoConfig.impressionEndpoints"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],kQ.prototype,"observeImpressionEndpoints_",null);_.L([_.Ps({is:"yt-tooltip-renderer",disableElementRegistration:!0})],kQ);
_.Y(kQ,"yt-tooltip-renderer",function(){if(lDz===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;xNP===void 0&&(xNP=document.createElement("template"));var E=xNP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);lDz=l}l=lDz;return l},{mode:2});var eEo;var OWP;var EWh={},JU4=(EWh.WEB_REMIX="music.youtube.com",EWh),Ij=function(){var l=_.B.apply(this,arguments)||this;l.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return l};
_.m(Ij,_.B);_.X=Ij.prototype;_.X.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.created=function(){this.embedHost_=JU4[_.hT("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.X.ready=function(){_.ud(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.X.computeEmbedCode_=function(l,e,O,E,J){if(!l)return"";var z=l.videoId,M=l.fullListId,Z=[];l.attributionId&&Z.push("si="+l.attributionId);E||Z.push("controls=0");O&&Number(e)>0&&Z.push("start="+e);M&&(z="videoseries",Z.push("list="+M));O="https://"+(J?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+z;l.clipId&&(Z.push("clip="+l.clipId),Z.push("clipt="+l.clipTiming));e=Z.length>0?O+"?"+Z.join("&amp;"):O;l.encryptedEmbedConfig&&Z.push("embed_config="+JSON.stringify({enc:l.encryptedEmbedConfig}));
Z=Z.length>0?O+"?"+Z.join("&amp;"):O;_.a("web_sharing_embed_preview_killswitch")?_.ud(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(Z,l.previewWidth||854,l.previewHeight||480):(_.TP(this.videoPreviewContainer),_.ud(this.videoPreviewContainer).appendChild(this.buildIframeElement(Z)));return this.getEmbedCode_(e,l.width||560,l.height||315)};
_.X.buildIframeElement=function(l){var e=document.createElement("iframe"),O,E;e.width=""+((E=(O=this.data)==null?void 0:O.previewWidth)!=null?E:854);var J,z;e.height=""+((z=(J=this.data)==null?void 0:J.previewHeight)!=null?z:480);_.wvu(e,2,l);e.title="YouTube video player";e.frameBorder="0";e.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";e.referrerPolicy="strict-origin-when-cross-origin";e.allowFullscreen=!0;return e};
_.X.computeIsSquareAspectRatio_=function(l){return l.previewHeight&&l.previewWidth?l.previewHeight==l.previewWidth:!1};
_.X.computeShowEmbedOptions_=function(l){return!!l.enablePrivacyModeOptionLabel||!!l.showPlayerControlsOptionLabel};
_.X.getEmbedCode_=function(l,e,O){return'<iframe width="'+e+'" height="'+O+'" src="'+l+'" 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>'};
_.X.handleSignalActionCopyShareEmbedUrl_=function(){_.ud(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.X.handleSetTimestamp_=function(l){this.startAtTimeStamp_=(this.startAtChecked_=l.isSet)?l.timestamp:0};
_.X.closePanel_=function(){_.Wb(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.X.onEmbedCode_=function(){_.ud(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.X.onYtPopupClosed_=function(){_.TP(_.ud(this.hostElement).querySelector("#video-preview"))};
_.X.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.I(this.data.actionButtons[0],_.YU)&&this.ytRendererBehavior.logExplicitClick(_.I(this.data.actionButtons[0],_.YU))};
Ij.prototype.onYtPopupClosed_=Ij.prototype.onYtPopupClosed_;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ij.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ij.prototype,"data",void 0);
_.L([_.T({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.q("design:type",String)],Ij.prototype,"embedCode_",void 0);_.L([_.T({value:!0}),_.q("design:type",Boolean)],Ij.prototype,"isPlayerControlsOptionChecked_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],Ij.prototype,"isPrivacyModeOptionChecked_",void 0);_.L([_.T({value:!1,notify:!0}),_.q("design:type",Boolean)],Ij.prototype,"startAtChecked_",void 0);
_.L([_.T({value:0}),_.q("design:type",Number)],Ij.prototype,"startAtTimeStamp_",void 0);_.L([_.T({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Ij.prototype,"isSquareAspectRatio_",void 0);_.L([_.aB("#video-preview"),_.q("design:type",HTMLElement)],Ij.prototype,"videoPreviewContainer",void 0);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Ij.prototype,"onYtPopupClosed_",null);
_.L([_.Ps({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Ij);
_.Y(Ij,"yt-sharing-embed-renderer",function(){if(OWP===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;eEo===void 0&&(eEo=document.createElement("template"));var E=eEo;O.call(e,E.content.cloneNode(!0),l.content.firstChild);OWP=l}l=OWP;return l},{mode:2});var XNu={};
XNu.YtUnlimitedFamilyInterstitialBehavior=[_.Ab.YtOpenPopupBehavior,_.ZH.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(l){l=_.M0S(_.OV(l),"yt-button-renderer");return l?l.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(l){this.dialogHistory_.push(l)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var l=this.popFromHistory();if(l){var e={openPopupAction:{popupType:"DIALOG",popup:{}}};e.openPopupAction.popup[l.renderer]=l.data;this.showingPreviousDialog_=!0;this.openPopup(e)}},
handleOpenPopupAction_:function(l){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var e=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(E){return!!l.openPopupAction.popup[E]}),O=this.getElementName_();
e&&this.data&&(this.pushToHistory({renderer:O,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(l){if(l=_.I(l,fYF))this.loading=!0,_.Wb(this.hostElement,"yt-open-create-family-dialog",[l,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var l=this.hostElement.nodeName.split("-").slice(1).map(function(e){return""+e[0].toUpperCase()+e.slice(1).toLowerCase()}).join("");
return l[0].toLowerCase()+l.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var zE0;var bWh;var mU=function(){return _.B.apply(this,arguments)||this};
_.m(mU,_.B);_.X=mU.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Wb(this.hostElement,"yt-register-create-family-dialog");_.ud(this.hostElement).querySelector("#thumbnail").onShow()};
_.X.fireOnCloseCommand_=function(){var l;((l=this.data)==null?0:l.onCloseCommand)&&_.wQ(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.X.onYtServiceRequestSent_=function(l,e){e&&e.endpoint&&_.I(e.endpoint,_.ku)||(this.loading=!0)};
_.X.onYtServiceRequestCompleted_=function(){var l=this.hostElement.parentElement;l.close&&l.close();this.loading=!1};
_.X.openPopupHandler_=function(l){if(l.detail==this){var e;((e=this.data)==null?0:e.onOpenCommands)&&_.wQ(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.X.closePopupHandler_=function(l,e){this.fireOnCloseCommand_();if(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1){var O;((O=this.data)==null?0:O.onDismissCommands)&&_.wQ(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.X.dataChanged_=function(){this.loading=!1};
mU.prototype.dataChanged_=mU.prototype.dataChanged_;mU.prototype.closePopupHandler_=mU.prototype.closePopupHandler_;mU.prototype.openPopupHandler_=mU.prototype.openPopupHandler_;mU.prototype.onYtServiceRequestCompleted_=mU.prototype.onYtServiceRequestCompleted_;mU.prototype.onYtServiceRequestSent_=mU.prototype.onYtServiceRequestSent_;_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],mU.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(XNu.YtUnlimitedFamilyInterstitialBehavior),_.q("design:type",Object)],mU.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],mU.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],mU.prototype,"loading",void 0);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],mU.prototype,"onYtServiceRequestSent_",null);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],mU.prototype,"onYtServiceRequestCompleted_",null);
_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],mU.prototype,"openPopupHandler_",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],mU.prototype,"closePopupHandler_",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],mU.prototype,"dataChanged_",null);
_.L([_.Ps({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],mU);
_.Y(mU,"yt-unlimited-family-message-interstitial-renderer",function(){if(bWh===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;zE0===void 0&&(zE0=document.createElement("template"));var E=zE0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);bWh=l}l=bWh;return l},{mode:2});var MxH;var Vx0;var yj=function(){return _.B.apply(this,arguments)||this};
_.m(yj,_.B);yj.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"}}}};
yj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ud(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(l){l.onShow()});
_.ud(this.hostElement).querySelector("#main-thumbnail").onShow()};
yj.prototype.onButtonTap_=function(l){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(l)};
yj.prototype.computeMainThumbnailWidth_=function(l){return l&&l.length!==0?72:96};
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.L([_.K(XNu.YtUnlimitedFamilyInterstitialBehavior),_.q("design:type",Object)],yj.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],yj.prototype,"data",void 0);
_.L([_.T({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.q("design:type",Number)],yj.prototype,"mainThumbnailWidth_",void 0);_.L([_.T({value:function(){return this.onButtonTap_.bind(this)}}),
_.q("design:type",Function)],yj.prototype,"boundButtonTap_",void 0);_.L([_.Ps({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],yj);
_.Y(yj,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Vx0===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;MxH===void 0&&(MxH=document.createElement("template"));var E=MxH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Vx0=l}l=Vx0;return l},{mode:2});var ZWH;var uzz;var p$=function(){var l=_.B.apply(this,arguments)||this;l.sliderAriaValueText_=null;l.selectedIndex_=0;l.messages={PAUSE_SLIDER:_.ml("PAUSE_SLIDER",void 0,"Pause Duration")};return l};
_.m(p$,_.B);_.X=p$.prototype;_.X.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_]]"}}}}}};
_.X.onPopupOpened_=function(l){l.detail==this&&_.a("enable_premium_voluntary_pause")&&(_.Wb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.X.setDialogData=function(l){this.data=l;this.resetSlider_()};
_.X.dataChanged_=function(){this.data&&this.resetSlider_()};
_.X.onSubmitTap_=function(){if(this.data.confirmCommand){var l=this.data.confirmCommand;_.I(l,_.LVk)&&_.ii(this.hostElement,[l,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.X.onExitButtonTap_=function(){_.Wb(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.X.closePopupHandler_=function(l,e){(e&&e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.handleOnDismissCommands_()};
_.X.onSliderChange_=function(){this.selectedIndex_=_.ud(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.X.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.X.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.X.resetSlider_=function(){if(this.data){var l=this.data.defaultEndOptionIndex||0,e=_.ud(this.hostElement).querySelector("#id-pause-slider");if(e.immediateValue<l)for(;e.immediateValue!=l;)e.increment();else if(l<e.immediateValue)for(;e.immediateValue!=l;)e.decrement();this.selectedIndex_=l;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.X.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.wQ(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.X.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.wQ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestSent=function(){this.loading=!0};
_.X.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
p$.prototype.onYtServiceRequestCompleted=p$.prototype.onYtServiceRequestCompleted;p$.prototype.onYtServiceRequestSent=p$.prototype.onYtServiceRequestSent;p$.prototype.closePopupHandler_=p$.prototype.closePopupHandler_;p$.prototype.dataChanged_=p$.prototype.dataChanged_;p$.prototype.onPopupOpened_=p$.prototype.onPopupOpened_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],p$.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],p$.prototype,"loading",void 0);_.L([_.T(),_.q("design:type",Number)],p$.prototype,"selectIndexMax_",void 0);_.L([_.T(),_.q("design:type",Object)],p$.prototype,"selectedData_",void 0);
_.L([_.T(),_.q("design:type",Object)],p$.prototype,"sliderAriaValueText_",void 0);_.L([_.T({value:function(){return this.onSubmitTap_.bind(this)}}),
_.q("design:type",Function)],p$.prototype,"onButtonTap_",void 0);_.L([_.T({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.q("design:type",Function)],p$.prototype,"onSecondaryTap_",void 0);_.L([_.T(),_.q("design:type",Object)],p$.prototype,"messages",void 0);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],p$.prototype,"onPopupOpened_",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],p$.prototype,"dataChanged_",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],p$.prototype,"closePopupHandler_",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],p$.prototype,"onYtServiceRequestSent",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],p$.prototype,"onYtServiceRequestCompleted",null);_.L([_.Ps({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],p$);
_.Y(p$,"yt-unplugged-pause-membership-dialog-renderer",function(){if(uzz===void 0){var l=document.createElement("template");_.p(l,'\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>');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ZWH===void 0&&(ZWH=document.createElement("template"));var E=ZWH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);uzz=l}l=uzz;return l},{mode:2});var ClO;var oW4;var K$=function(){return _.B.apply(this,arguments)||this};
_.m(K$,_.B);K$.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.hm("vcBalanceRenderer")}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],K$.prototype,"data",void 0);_.L([_.Ps({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],K$);
_.Y(K$,"yt-vc-offer-layout-header-renderer",function(){if(oW4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;ClO===void 0&&(ClO=document.createElement("template"));var E=ClO;O.call(e,E.content.cloneNode(!0),l.content.firstChild);oW4=l}l=oW4;return l},{mode:2});var $$4;var WKu;var d$H;var gWP;var j_=function(){return _.B.apply(this,arguments)||this};
_.m(j_,_.B);j_.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Ji.Object.defineProperties(j_.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)}}});
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.D6q.YtTappableItemBehavior),_.q("design:type",Object)],j_.prototype,"ytTappableItemBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],j_.prototype,"data",void 0);
_.L([_.T({reflectToAttribute:!0}),_.R("data.accessibilityText"),_.q("design:type",String),_.q("design:paramtypes",[])],j_.prototype,"ariaLabel",null);_.L([_.T({reflectToAttribute:!0}),_.R("data.style"),_.q("design:type",String),_.q("design:paramtypes",[])],j_.prototype,"vcOfferStyle",null);_.L([_.R("data.style","data.titleText"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],j_.prototype,"showTitleText",null);_.L([_.Ps({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],j_);
_.Y(j_,"yt-vc-offer-renderer",function(){if(gWP===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;d$H===void 0&&(d$H=document.createElement("template"));var E=d$H;O.call(e,E.content.cloneNode(!0),l.content.firstChild);gWP=l}l=gWP;return l},{mode:2});var Hz=function(){return _.B.apply(this,arguments)||this};
_.m(Hz,_.B);Hz.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Hz.prototype,"data",void 0);_.L([_.Ps({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Hz);
_.Y(Hz,"yt-vc-offer-layout-renderer",function(){if(WKu===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;$$4===void 0&&($$4=document.createElement("template"));var E=$$4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);WKu=l}l=WKu;return l},{mode:2});var iWH;var wN4;var AU4;var nW4;var cz=function(){return _.B.apply(this,arguments)||this};
_.m(cz,_.B);cz.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}}}}}};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],cz.prototype,"data",void 0);_.L([_.Ps({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],cz);
_.Y(cz,"yt-ypc-offers-modal-top-bar-renderer",function(){if(nW4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;AU4===void 0&&(AU4=document.createElement("template"));var E=AU4;O.call(e,E.content.cloneNode(!0),l.content.firstChild);nW4=l}l=nW4;return l},{mode:2});var Fo=function(){return _.B.apply(this,arguments)||this};
_.m(Fo,_.B);Fo.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"}}}}};
Fo.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Fo.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var l=this.scrollable;l.attached&&typeof l.attached==="function"&&l.attached()};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.aB("#scrollable"),_.q("design:type",Object)],Fo.prototype,"scrollable",void 0);_.L([_.T(),_.q("design:type",Object)],Fo.prototype,"data",void 0);_.L([_.Ps({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Fo);
_.Y(Fo,"yt-ypc-offers-modal-renderer",function(){if(wN4===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;iWH===void 0&&(iWH=document.createElement("template"));var E=iWH;O.call(e,E.content.cloneNode(!0),l.content.firstChild);wN4=l}l=wN4;return l},{mode:2});var aD3;var kNC;var f$=function(){return _.B.apply(this,arguments)||this};
_.m(f$,_.B);_.X=f$.prototype;_.X.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}}}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ud(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.X.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Wb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.X.onYtPopupOpened_=function(l,e){(e==null?void 0:e.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.wQ(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.X.onYtPopupClosed_=function(l,e){this.continueButtonTapped||e&&(e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.data.onDismissCommands&&_.wQ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.X.onYtServiceRequestError_=function(l){this.set("showSpinner",!1);_.Zs(this.hostElement,l.detail.error.message)};
_.X.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.a("enable_ypc_spinners")?_.Wb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
f$.prototype.onYtServiceRequestError_=f$.prototype.onYtServiceRequestError_;f$.prototype.onYtPopupClosed_=f$.prototype.onYtPopupClosed_;f$.prototype.onYtPopupOpened_=f$.prototype.onYtPopupOpened_;f$.prototype.onYtServiceRequestCompleted_=f$.prototype.onYtServiceRequestCompleted_;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.T(),_.q("design:type",Object)],f$.prototype,"data",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],f$.prototype,"showSpinner",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],f$.prototype,"continueButtonTapped",void 0);_.L([_.T({value:function(){return this.onContinueTapped_.bind(this)}}),
_.q("design:type",Function)],f$.prototype,"bindOnContinueTapped_",void 0);_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],f$.prototype,"onYtServiceRequestCompleted_",null);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],f$.prototype,"onYtPopupOpened_",null);
_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],f$.prototype,"onYtPopupClosed_",null);_.L([_.wP("yt-service-request-error"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],f$.prototype,"onYtServiceRequestError_",null);_.L([_.Ps({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],f$);
_.Y(f$,"yt-ypc-upgrade-dialog-renderer",function(){if(kNC===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;aD3===void 0&&(aD3=document.createElement("template"));var E=aD3;O.call(e,E.content.cloneNode(!0),l.content.firstChild);kNC=l}l=kNC;return l},{mode:2});var IDF;var m$H;var Rj=function(){return _.B.apply(this,arguments)||this};
_.m(Rj,_.B);Rj.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Rj.prototype.computeHasButtons_=function(l){return!(!l.dismissButton&&!l.confirmButton)};
Rj.prototype.computeStyle_=function(l){return l||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],Rj.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Rj.prototype,"data",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],Rj.prototype,"positionType",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.q("design:type",Boolean)],Rj.prototype,"hasButtons_",void 0);_.L([_.T({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Rj.prototype,"style_",void 0);_.L([_.Ps({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Rj);
_.Y(Rj,"yt-bubble-hint-renderer",function(){if(m$H===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;IDF===void 0&&(IDF=document.createElement("template"));var E=IDF;O.call(e,E.content.cloneNode(!0),l.content.firstChild);m$H=l}l=m$H;return l},{mode:2});var yU0;var pNP;var TU=function(){var l=_.Xc.apply(this,arguments)||this;l.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return l};
_.m(TU,_.Xc);_.X=TU.prototype;_.X.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.X.attached=function(){var l=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){l.$.thumbnail.onShow();l.$["header-image"].onShow()})};
_.X.handleCheckBoxUpdateAction_=function(l){this.canShowCheckboxEnabledConfirmButton=l};
_.X.computeUseOverlayForSpinner_=function(l,e){return!!l&&e};
_.X.computeShowSpinner_=function(l,e){return l||!!e};
_.X.fireOnCloseActions_=function(){var l,e=_.b(((l=this.data)==null?void 0:l.onClosedActions)||[]);for(l=e.next();!l.done;l=e.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.X.fireOnOpenCommands_=function(l){var e,O=(e=this.data)==null?void 0:e.onOpenCommands;if(O)for(l.stopImmediatePropagation(),l=_.b(O),e=l.next();!e.done;e=l.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.X.fireOnDismissCommands_=function(l){var e,O=(e=this.data)==null?void 0:e.onDismissCommands;if(O)for(l.stopImmediatePropagation(),l=_.b(O),e=l.next();!e.done;e=l.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.X.openPopupHandler_=function(l){l.detail==this&&this.fireOnOpenCommands_(l)};
_.X.closePopupHandler_=function(l,e){_.dQ(this,"yt-confirm-dialog-close-action",[e]);this.fireOnCloseActions_();(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.fireOnDismissCommands_(l)};
_.X.onHeaderImageChanged_=function(){var l;((l=this.data)==null?0:l.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.X.computeHasHeaderImageWidth_=function(l){return l!=void 0};
_.X.computeHasLoadingMessage=function(l){return!!l};
_.X.onHeaderImageWidthChanged_=function(){var l,e=(l=this.data)==null?void 0:l.headerImageWidth;if(e){if(l=1.25*e*2+e,this.$.main.style.width=l+"px",e=this.$.scroller.firstElementChild)e.style.minWidth=l+"px"}else this.$.main.style.width="100%"};
_.X.onThumbnailChanged_=function(){var l;((l=this.data)==null?0:l.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")};
_.X.onYtNavigate_=function(l){l=_.OV(l);l instanceof Node&&_.C1(this.$["confirm-button"]).contains(l)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.X.computePrimaryIsCancel_=function(l){return l};
_.X.computeIsCancelButtonHidden_=function(l){return l.skipCancelButton||!l.cancelButton};
_.X.computeIsCheckboxHidden_=function(l){return!l.checkbox};
_.X.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.X.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.X.onYtServiceRequestCompleted_=function(){var l;((l=this.data)==null?0:l.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Ji.Object.defineProperties(TU,{template:{configurable:!0,enumerable:!0,get:function(){if(pNP===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;yU0===void 0&&(yU0=document.createElement("template"));var E=yU0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);pNP=l}l=pNP;return l}}});
TU.prototype.onYtServiceRequestCompleted_=TU.prototype.onYtServiceRequestCompleted_;TU.prototype.onYtServiceRequestSent_=TU.prototype.onYtServiceRequestSent_;TU.prototype.onThumbnailLoaded_=TU.prototype.onThumbnailLoaded_;TU.prototype.onYtNavigate_=TU.prototype.onYtNavigate_;TU.prototype.onThumbnailChanged_=TU.prototype.onThumbnailChanged_;TU.prototype.onHeaderImageWidthChanged_=TU.prototype.onHeaderImageWidthChanged_;TU.prototype.onHeaderImageChanged_=TU.prototype.onHeaderImageChanged_;
TU.prototype.closePopupHandler_=TU.prototype.closePopupHandler_;TU.prototype.openPopupHandler_=TU.prototype.openPopupHandler_;_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],TU.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);
_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],TU.prototype,"ytEventForwardingBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],TU.prototype,"data",void 0);_.L([_.T({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.q("design:type",Boolean)],TU.prototype,"primaryIsCancel",void 0);_.L([_.T({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.q("design:type",Boolean)],TU.prototype,"isCancelButtonHidden",void 0);
_.L([_.T({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.q("design:type",Boolean)],TU.prototype,"isCheckboxHidden",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],TU.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.L([_.T({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.q("design:type",Boolean)],TU.prototype,"useOverlayForSpinner_",void 0);
_.L([_.T({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.q("design:type",Boolean)],TU.prototype,"showSpinner_",void 0);_.L([_.T({value:!1}),_.q("design:type",Boolean)],TU.prototype,"isActionInProgress_",void 0);_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.q("design:type",Boolean)],TU.prototype,"hasHeaderImageWidth_",void 0);
_.L([_.T({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.q("design:type",Boolean)],TU.prototype,"hasLoadingMessage",void 0);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],TU.prototype,"openPopupHandler_",null);_.L([_.wP("yt-popup-closed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],TU.prototype,"closePopupHandler_",null);
_.L([_.AA("data.headerImage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TU.prototype,"onHeaderImageChanged_",null);_.L([_.AA("data.headerImageWidth"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TU.prototype,"onHeaderImageWidthChanged_",null);_.L([_.AA("data.thumbnail"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TU.prototype,"onThumbnailChanged_",null);
_.L([_.wP("yt-navigate"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],TU.prototype,"onYtNavigate_",null);_.L([_.wP("yt-img-shadow-loaded"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],TU.prototype,"onThumbnailLoaded_",null);_.L([_.wP("yt-service-request-sent"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Nj]),_.q("design:returntype")],TU.prototype,"onYtServiceRequestSent_",null);
_.L([_.wP("yt-service-request-completed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,_.Oh]),_.q("design:returntype")],TU.prototype,"onYtServiceRequestCompleted_",null);_.L([_.Ps({is:"yt-confirm-dialog-renderer",noInjection:!0})],TU);var KKP;var jv4;var sb=function(){return _.B.apply(this,arguments)||this};
_.m(sb,_.B);sb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ud(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
sb.prototype.computeConfirmButton_=function(l){var e={text:l.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};l.confirmNavigationEndpoint?e.navigationEndpoint=l.confirmNavigationEndpoint:l.confirmServiceEndpoint&&(e.serviceEndpoint=l.confirmServiceEndpoint);return e};
sb.prototype.computeShowTitle_=function(l){return!(l==null||!l.title)};
_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],sb.prototype,"data",void 0);_.L([_.T({computed:"computeShowTitle_(data)"}),_.q("design:type",Boolean)],sb.prototype,"showTitle",void 0);_.L([_.Ps({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],sb);
_.Y(sb,"yt-fancy-dismissible-dialog-renderer",function(){if(jv4===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;KKP===void 0&&(KKP=document.createElement("template"));var E=KKP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);jv4=l}l=jv4;return l});var HWP;var cU0;var GU=function(){var l=_.B.apply(this,arguments)||this;l.spinnerActive=!1;return l};
_.m(GU,_.B);GU.prototype.created=function(){xv3(2201)};
GU.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
GU.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
GU.prototype.onIronOverlayClosed=GU.prototype.onIronOverlayClosed;GU.prototype.onIronOverlayOpened=GU.prototype.onIronOverlayOpened;_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.SZ),_.q("design:type",Object)],GU.prototype,"tpYtIronOverlayBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],GU.prototype,"data",void 0);_.L([_.T(),_.q("design:type",Object)],GU.prototype,"spinnerActive",void 0);
_.L([_.wP("iron-overlay-opened"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GU.prototype,"onIronOverlayOpened",null);_.L([_.wP("iron-overlay-closed"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],GU.prototype,"onIronOverlayClosed",null);_.L([_.Ps({is:"yt-loading-renderer",disableElementRegistration:!0})],GU);
_.Y(GU,"yt-loading-renderer",function(){if(cU0===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;HWP===void 0&&(HWP=document.createElement("template"));var E=HWP;O.call(e,E.content.cloneNode(!0),l.content.firstChild);cU0=l}l=cU0;return l},{mode:2});var FKi;var fDu;var Bz=function(){var l=_.B.apply(this,arguments)||this;l.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);l.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);l.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.m(Bz,_.B);_.X=Bz.prototype;_.X.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.X.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.X.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.X.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.X.openPopupHandler_=function(l){l.detail===this.hostElement&&this.hostElement.hidden&&_.Wb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.X.onDismissButtonTap_=function(){var l;this.closeOnDismissButton_.has(((l=this.data)==null?void 0:l.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Wb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.X.onAcceptButtonTap_=function(){var l;this.closeOnAcceptButton_.has(((l=this.data)==null?void 0:l.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Wb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.X.computeHasHeader_=function(l){return!!l.headerBackgroundImage};
_.X.computeLayoutStyle_=function(l){return l};
_.X.computePopupSize_=function(l){return l};
_.X.computeIconType_=function(l){return l.dialogIcon&&l.dialogIcon.iconType?l.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":l.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":l.dialogIcon.iconType:""};
_.X.computeIsLogo_=function(l){return!!l.dialogIcon&&!!l.dialogIcon.iconType&&(l.dialogIcon.iconType==="YOUTUBE_LOGO"||l.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||l.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.X.computeHasCustomLogo=function(l){return!(l==null||!l.headerForegroundImage)};
_.X.computeCustomLogo=function(l,e){if(l!=null&&l.headerForegroundImage)return l.headerForegroundImageDark?e?l.headerForegroundImageDark:l.headerForegroundImage:l.headerForegroundImage};
_.X.computeHeaderBackgroundImage=function(l,e){if(l!=null&&l.headerBackgroundImage)return e&&(l==null?0:l.headerBackgroundImageDark)?l.headerBackgroundImageDark:l.headerBackgroundImage};
_.X.shouldShowIconContainer=function(l,e){return l&&!e};
_.X.shouldShowNonYouTubeIcon=function(l,e){return!l&&!e};
_.X.getLogoImageId=function(l){var e,O,E;return(l=(e=this.computeCustomLogo(l,this.isDarkTheme))==null?void 0:(O=e.thumbnails)==null?void 0:(E=O[0])==null?void 0:E.height)&&l%31===0?"custom-logo-with-padding":"custom-logo"};
Bz.prototype.openPopupHandler_=Bz.prototype.openPopupHandler_;Bz.prototype.dataChanged_=Bz.prototype.dataChanged_;_.L([_.K(_.VG.YtRendererstamperBehavior),_.q("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.L([_.T(),_.q("design:type",Boolean)],Bz.prototype,"isDarkTheme",void 0);
_.L([_.T({computed:"computeCustomLogo(data, isDarkTheme)"}),_.q("design:type",Object)],Bz.prototype,"customLogo",void 0);_.L([_.T({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.q("design:type",Object)],Bz.prototype,"headerBackgroundImage",void 0);_.L([_.T(),_.q("design:type",Object)],Bz.prototype,"data",void 0);_.L([_.T({computed:"computeHasHeader_(data)"}),_.q("design:type",Boolean)],Bz.prototype,"hasHeader",void 0);
_.L([_.T({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.q("design:type",Object)],Bz.prototype,"layoutStyle",void 0);_.L([_.T({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.q("design:type",Object)],Bz.prototype,"popupSize",void 0);_.L([_.T({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Bz.prototype,"hasLogo",void 0);
_.L([_.T({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.q("design:type",Boolean)],Bz.prototype,"hasCustomLogo",void 0);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],Bz.prototype,"dataChanged_",null);_.L([_.wP("yt-popup-opened"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],Bz.prototype,"openPopupHandler_",null);
_.L([_.Ps({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Bz);
_.Y(Bz,"yt-upsell-dialog-renderer",function(){if(fDu===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;FKi===void 0&&(FKi=document.createElement("template"));var E=FKi;O.call(e,E.content.cloneNode(!0),l.content.firstChild);fDu=l}l=fDu;return l},{mode:2});var REu=_.XO(function(l){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.W(_.A,{cond:l.title,then:function(e){return _.W("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},e)}}))},"vg"),Tbo=_.XO(function(l){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.W(_.Tn,{data:l.closeButton},{buttonViewModel:function(e){return _.W("div",null,_.W(_.hM,{data:e.data}))}}))},"wg"),sv4=_.XO(function(l){var e=
l.data;
return _.W(_.ZB,null,_.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.W(_.A,{cond:function(){return!!e().image&&!!e().title},
then:function(){return _.W(_.Jm,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.W(_.A,{cond:function(){return e().title},
then:function(O){return _.W("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},O)}}),_.W(_.A,{cond:function(){return e().primaryGenre},
then:function(O){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},O)}}))),_.W(_.A,{cond:function(){var O=e().description;
return O&&O.length<=150},
then:function(){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return e().description}))}}))},"xg"),GNF=_.XO(function(l){l=l.infoRows;
var e=_.V2().resolve(_.T6),O=_.a("enable_displaying_ppn");return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.W(_.KH,{each:l},function(E){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.W(_.A,{cond:function(){return E.label},
then:function(J){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},J)}}),_.W(_.A,{cond:function(){return E.attributedLabel},
then:function(J){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.W(_.zK,{text:J,noPreWrap:!0}))}}),_.W(_.A,{cond:function(){return E.value},
then:function(J){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},J)}}),_.W(_.A,{cond:function(){return E.attributedValue},
then:function(J){return _.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.W(_.zK,{text:J,noPreWrap:!0}))}}))}),_.W(_.A,{cond:function(){return O&&e.clientData.has("post_play_nonce")},
then:function(){return _.W("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.W("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},e.getData("post_play_nonce")))}}))},"yg"),BbF=_.XO(function(l){var e=l.data;
return _.W("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.W(REu,{title:function(){return e().dialogTitle}}),_.W(sv4,{data:e}),_.W(_.A,{cond:function(){return e().infoRow},
then:function(O){return _.W(GNF,{infoRows:O})}}),_.W(Tbo,{closeButton:function(){return e().closeButton}}))},"zg");
BbF.idomCompat=!0;_.Zw(BbF,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;return _.W("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.W(_.Jm,{data:function(){return e().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.W("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.W(_.A,{cond:function(){var O=e().ytLogo;return O?O.iconType:null},
then:function(O){return _.W(_.cF,{icon:O,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.W("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.W(_.zK,{text:function(){return e().title}})),_.W("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.W(_.zK,{text:function(){return e().body}})),_.W("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.W(_.zK,{text:function(){return e().verifyStateText}}))),
_.W("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.W("div",null,_.W(_.Tn,{data:function(){return e().dismissButton}},{buttonViewModel:_.hM})),_.W("div",null,_.W(_.Tn,{data:function(){return e().linkParentButton}},{buttonViewModel:_.hM})))))},"Ag"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.lB}});var Pl0=_.XO(function(l){var e=l.data;l=_.Et(function(){return e().agreements},[]);
return _.W("installment-agreements-view-model",{class:_.ax("ytInstallmentAgreementsViewModelHost")},_.W(_.KH,{each:l},function(O){return _.W("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.W(_.zK,{text:O.label})),_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.W(_.Tn,{data:function(){return O.openButton}},{buttonViewModel:_.hM})))}))},"Bg");
Pl0.idomCompat=!0;var U$3=_.XO(function(l){return _.W("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.W(_.zK,{text:function(){return l.data().inviteMessage}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.W(_.zK,{text:function(){return l.data().attributedAccountSectionHeaderText}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.W(_.Tn,{data:function(){return l.data().accountAvatar}},{avatarViewModel:_.Hp}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.W(_.zK,{text:function(){return l.data().accountName}}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.W(_.zK,{text:function(){return l.data().handle}}))),_.W(_.Tn,{data:function(){return l.data().trailingButton}},{buttonViewModel:_.hM})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.W(_.zK,{text:function(){return l.data().termsOfService}})))},"Cg");var Yeu=_.XO(function(l){var e=_.b(_.jN(function(){var D,b2;return((D=l.data().createPlaylistDialogFormSchema)==null?0:(b2=D.initialValues)==null?0:b2.title)?l.data().createPlaylistDialogFormSchema.initialValues.title:""})),O=e.next().value,E=e.next().value;
e=_.b(_.jN(function(){l.data();return!1}));
var J=e.next().value,z=e.next().value;e=_.b(_.jN(function(){l.data();return!1}));
var M=e.next().value,Z=e.next().value;e=_.b(_.jN(function(){var D,b2;return(D=l.data().createPlaylistDialogFormSchema)==null?void 0:(b2=D.initialValues)==null?void 0:b2.visibility}));
var u=e.next().value,d=e.next().value;e=_.b(_.jN(function(){l.data();return!1}));
var g=e.next().value,w=e.next().value;e=_.b(_.jN(function(){var D,b2;return(D=l.data().createPlaylistDialogFormSchema)==null?void 0:(b2=D.initialValues)==null?void 0:b2.isCollaborative}));
var n=e.next().value,k=e.next().value,y=_.e4("div");_.Gh(function(){var D=y.value.querySelector("textarea");D&&(D.value=O())},"OCauEe");
_.sC(function(){var D;_.VBC((D=l.data().createPlaylistDialogFormSchema)==null?void 0:D.id,{onSubmit:function(){var b2=O();var $V=u(),gT=n(),mx=l.data();b2={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:b2,privacyStatus:$V,videoIds:mx.videoIds,sourcePlaylistId:mx.sourcePlaylistId,params:gT?mx.createPlaylistParamsCollaborationEnabled:mx.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.V2().resolve(_.Zh).resolveCommand(b2)},
isValid:function(){return J()&&!M()&&!g()}})});
var c=function(D){if(D!==void 0&&(E(D),!J()&&D.length>0&&z(!0),J())){var b2=ZOO(l.data());if(b2){var $V=b2.minLength;b2=b2.maxLength;$V&&D.length<$V?Z(!0):b2&&D.length>b2?Z(!0):Z(!1)}}},f=function(){var D=!(!n()||u()!=="PRIVATE");
w(D)},P=function(D){D!==void 0&&(d(D),f())},h=function(){if(g())return CHF(l.data())},N=function(){k(!n());
f()},t=function(){return{validate:function(D){if(J()){var b2=ZOO(l.data());
if(b2){var $V=b2.minLength;b2=b2.translations;if($V&&D.length<$V)return b2==null?void 0:b2.minLengthErrorMessage}}}}},r=function(){var D=ZOO(l.data()),b2=D==null?void 0:D.maxLength,$V;
D=D==null?void 0:($V=D.translations)==null?void 0:$V.maxLengthErrorMessage;if(b2&&D)return{maxChars:b2,errorMessage:D}};
return _.W("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.W("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:y},_.W(_.Tn,{data:function(){return l.data().playlistTitle}},{textFormFieldViewModel:function(D){return _.W(_.QLu,{data:D.data,
text:O,onInput:c,validation:t,characterLimit:r})},
textFieldViewModel:function(D){return _.W(_.SB4,{data:D.data,text:O,onInput:c,validation:t,characterLimit:r})}})),_.W("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.W(_.Tn,{data:function(){return l.data().playlistVisibility}},{dropdownViewModel:function(D){return _.W(_.ZH0,{data:D.data,
onSelected:P,error:h})}})),_.W(_.A,{cond:function(){return!!l.data().playlistCollaborate},
then:function(){return _.W("div",null,_.W(_.Tn,{data:function(){return l.data().playlistCollaborate}},{switchListItemViewModel:function(D){return _.W(_.J_q,{data:D.data,
onTap:N})}}))}}))},"Dg");var hEH=_.XO(function(l){var e=_.Et(l.noPadding,!1),O=function(){var J,z;return(z=(J=l.data().logo.accessibilityData)==null?void 0:J.label)!=null?z:""},E={};
return _.W("upsell-view-model",{class:_.ax("ytUpsellViewModelHost",(E.ytUpsellViewModelHostNoPadding=function(){return e()},E))},_.W("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.W(_.A,{cond:function(){return _.XL(l.data().logo)},
then:function(J){return _.W(_.Jm,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:O})}})),_.W("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.W(_.zK,{text:function(){return l.data().title}})),_.W("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.W(_.KH,{each:function(){var J;
return(J=l.data().subtitles)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.W("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.W(_.zK,{text:J}))})),_.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.W(_.KH,{each:function(){var J;
return(J=l.data().benefitInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.W(_.A,{cond:function(){return J().info},
then:function(z){return _.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.W(_.cF,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.W(_.zK,{text:z}))}})})),_.W("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.W(_.KH,{each:function(){var J;
return(J=l.data().legalInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.W("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.W(_.zK,{text:J}))})))},"Eg");var LK3=_.XO(function(l){var e=l.data;l={};l=(l.ytMiniAppScoreChallengeViewModelScoreRadial=!0,l.ytMiniAppScoreChallengeViewModelDarkScoreRadial=op3(),l);return _.W("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.W("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return e().title}),_.W("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return e().subtitle}),_.W("div",{class:_.Ix(l)},_.W("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return e().score})),_.W("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return e().prompt}))},"Fg");var txC=function(){this.store=_.ls();this.formId=""};var qeo=_.XO(function(l){function e(Z){if(Z&&(Z=_.I(Z,_.yz)))return Object.assign({},Z,{isSelected:z()})}
var O=_.b(_.jN(function(){var Z,u;return(u=(Z=_.I(l.data().option,_.yz))==null?void 0:Z.isSelected)!=null?u:!1})),E=O.next().value,J=O.next().value,z=E;
_.sC(function(){var Z;_.VBC((Z=l.data().formSchema)==null?void 0:Z.id,{onSubmit:function(){var u=_.V2().resolve(_.Zh),d=!!l.data().selectedCommand,g=!!l.data().unselectedCommand;if(z()){if(d)var w=l.data().selectedCommand}else g&&(w=l.data().unselectedCommand);w=_.t3(w);e(l.data().option)&&!w?(u="",!d&&g?u="selected ":d&&!g&&(u="unselected "),d=new _.Hk("No "+u+"command found for SelectionListItemFormViewModel"),_.UW(d)):w&&u.resolveCommand(w)},
isValid:function(){return!0}})});
var M=function(){J(!z())};
_.B3(function(){var Z,u,d=(Z=l.data())==null?void 0:(u=Z.formSchema)==null?void 0:u.id;d&&_.bFC()().delete(d)});
return _.W("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.W("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.W(_.zK,{text:function(){return l.data().paragraph}})),_.W(_.A,{cond:function(){return e(l.data().option)},
then:function(Z){return _.W(_.jG,{data:Z,isCompact:!0,hideSelectionTextChevron:!0,onTap:M,disableHorizontalPadding:!0})}}))},"Gg");var vWO=_.XO(function(l){var e=l.data;var O=l.disablePadding;var E=l.className;var J=_.e4("yt-dialog-header-view-model"),z=function(){var Z=e().imageBanner;a:switch(e().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var u="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:u="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:Z,style:u,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},M=function(){return e().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.sC(function(){var Z=function(){_.Wb(J.value,"yt-refit-popups-action")},u;
(u=J.value)==null||u.addEventListener("image-loaded",Z);_.B3(function(){var d;(d=J.value)==null||d.removeEventListener("image-loaded",Z)})});
l={};return _.W("yt-dialog-header-view-model",{el:J,class:_.ax(E,(l.ytDialogHeaderViewModelHost=!0,l.ytDialogHeaderViewModelHostDisablePadding=O,l))},_.W(_.A,{cond:function(){return e().imageBanner},
then:function(){var Z={};return _.W("div",{class:_.ax(E,(Z.ytDialogHeaderViewModelBanner=!0,Z.ytDialogHeaderViewModelBannerFullBleed=M,Z)),style:_.HF({"max-height":function(){return e().assetContainerMaxHeight!==void 0?e().assetContainerMaxHeight+"px":void 0}})},_.W(_.VD,{data:z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.W(_.A,{cond:function(){return e().headerBlock},
then:function(){return _.W("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.W(_.Tn,{data:function(){return e().headerBlock}},{contentPreviewImageViewModel:function(Z){return _.W(_.VD,{data:Z.data,
notifyOnLoaded:!0})}}))}}),_.W(_.A,{cond:function(){return e().customAssetContainer},
then:function(Z){return _.W("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.W(_.Tn,{data:Z},{avatarStackViewModel:_.Ff}))}}),_.W(_.A,{cond:function(){return e().customBanner},
then:function(Z){return _.W("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.W(_.Tn,{data:Z},{avatarStackViewModel:_.Ff}))}}),_.W(_.A,{cond:function(){return e().headline},
then:function(Z){return _.W("h2",null,_.W(_.zK,{text:Z,className:"ytDialogHeaderViewModelText"}))}}))},"Hg");
vWO.idomCompat=!0;var Nb0=_.XO(function(l){var e=_.ZFP(function(){return l.data().formId}),O=e.onSubmit,E=e.isValid;
return _.W("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.W(_.Tn,{data:function(){return l.data().panelFooter}},{panelFooterViewModel:function(J){return _.W(_.Y9,{data:J.data,
disablePadding:!0,disablePrimaryButton:function(){return!E()},
onClickPrimaryButton:function(){O()}})}}))},"Ig");var rUz=_.XO(function(l){var e=function(){var O,E;return(E=(O=_.I(l.data().rendererContext,_.yu))==null?void 0:O.label)!=null?E:""};
return _.W("yt-dialog-image-content-view-model",{class:_.ax("ytDialogImageContentViewModelHost",l.className)},_.W(_.A,{cond:function(){return _.XL(l.data().image)},
then:function(O){return _.W(_.Jm,{data:O,alt:e,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.W(_.zK,{text:function(){return l.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Jg");var Qvu=_.XO(function(l){var e=_.J3(l,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),O=e.elRefCallback;l=e.iconWiz;var E=e.assetWiz,J=e.assetType,z=e.titleWiz,M=e.leadingActionHeaderWiz,Z=e.trailingActionHeaderWiz,u=e.headerPosition,d=e.contentWiz,g=e.buttonLayout,w=e.buttonStyle,n=e.primaryButtonWiz,k=e.secondaryButtonWiz,y=e.contentAlignment,c=e.isFullscreen,f=e.width,P=e.maxHeight,h=e.isHeaderWizDefined,
N=e.headerWiz,t=e.isFooterWizDefined,r=e.footerWiz;e=_.e4("dialog-layout",function(Px){O==null||O(Px)});
var D=E?function(){return E({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,b2=n?function(){var Px={};
return n({buttonOverrides:function(){return{style:(w==null?void 0:w())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ax((Px["yt-spec-dialog-layout__dialog-layout-button"]=!0,Px["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(g==null?void 0:g())===0||(g==null?void 0:g())===2},Px))})}:void 0,$V=k?function(){var Px={};
return k({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ax((Px["yt-spec-dialog-layout__dialog-layout-button"]=!0,Px["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(g==null?void 0:g())===0||(g==null?void 0:g())===2},Px))})}:void 0,gT=function(){return(!!z||!!M||!!Z)&&u()===0},mx={},jM={},cx={},tq={};
return _.W("dialog-layout",{el:e,class:_.ax((mx["yt-spec-dialog-layout"]=!0,mx["yt-spec-dialog-layout--dialog-layout-fullscreen"]=c,mx["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!c()},mx["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return P()===1},mx["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(J==null?void 0:J())===1},mx)),
style:function(){return(f==null?void 0:f())!==void 0?"width: "+f+"px;":""}},l?_.W("div",{class:_.ax((jM["yt-spec-dialog-layout__dialog-layout-icon"]=!0,jM["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!E&&u()===1},jM["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return y()===1},jM))},_.W(l,null)):null,_.W(_.A,{cond:h,
then:function(){return N?_.W("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.W(N,null)):null},
else:function(){return _.W(_.ZB,null,_.W(_.A,{cond:gT,then:function(){return _.W(D$f,{contentAlignment:y,LeadingActionHeader:M,TrailingActionHeader:Z,Title:z,isAboveAsset:!!D})}}),D?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.W(D,null)):null)}}),_.W("div",{class:_.ax((cx["yt-spec-dialog-layout__dialog-layout-container"]=!0,cx["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(y==null?void 0:y())===1},cx["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!z&&!N||!!D&&(u==null?void 0:u())===0},cx))},_.W(_.A,{cond:function(){return z&&!N&&(u==null?void 0:u())===1},
then:function(){return _.W(D$f,{contentAlignment:y,LeadingActionHeader:M,TrailingActionHeader:Z,Title:z,isAboveAsset:!1})}}),d?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.W(d,null))):null,_.W(_.A,{cond:t,
then:function(){return r?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.W(r,null)):null}}),b2||$V?_.W(SeO,{footerClasses:_.ax((tq["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,tq["yt-spec-dialog-layout__dialog-layout-footer"]=!0,tq["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(g==null?void 0:g())===2},tq["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(g==null?void 0:g())===1},tq)),
PrimaryButton:b2,SecondaryButton:$V}):null))},"Kg"),D$f=_.XO(function(l){var e=_.J3(l,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),O=e.contentAlignment,E=e.LeadingActionHeader;l=e.Title;var J=e.TrailingActionHeader,z=e.isAboveAsset,M=e.enableLeadingActionHeader;e={};return _.W("div",{class:_.ax((e["yt-spec-dialog-layout__dialog-header-container"]=!0,e["yt-spec-dialog-layout__dialog-header"]=!0,e["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=z,e["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(O==null?void 0:O())===1&&M()},e))},_.W(_.A,{cond:function(){return M()},
then:function(){return E?_.W("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.W(E,null)):null}}),l?_.W("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.W(l,null)):null,J?_.W("div",null,_.W(J,null)):null)},"Lg"),SeO=_.XO(function(l){var e=l.footerClasses;
var O=l.PrimaryButton;l=l.SecondaryButton;return _.W("div",{class:e},l?_.W(l,null):null,O?_.W(O,null):null)},"Mg");var x$h=_.XO(function(l){var e=l.data;return _.W("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.W("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.W(_.Tn,{data:function(){return e().avatar}},{avatarViewModel:_.Hp})),_.W("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.W(_.zK,{text:function(){return e().title}})),_.W(_.zK,{text:function(){return e().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ng");var ljF=_.XO(function(l){var e=l.data;return _.W("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.W("div",{class:"ytAccessConfirmationViewModelContent"},_.W(_.Tn,{data:function(){return e().dualAvatar}},{dualAvatarViewModel:function(O){return _.W(_.R3S,{data:O.data,
className:"ytAccessConfirmationViewModelAvatar"})}}),_.W("h2",{class:"ytAccessConfirmationViewModelTitle"},_.W(_.zK,{text:function(){return e().title}})),_.W(_.zK,{text:function(){return e().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Og");var eWu=_.XO(function(l){var e=l.data;var O=void 0;l=_.b(_.AF("",void 0,"bj3Bbf"));var E=l.next().value,J=l.next().value,z,M=function(){J("");var d;(d=O)!=null&&d.store.dispatch(_.oM({type:"RESET_COMMAND_MAP"}))};
_.sC(function(){O=new txC;window.addEventListener("yt-popup-closed",M)});
_.Gh(function(){if(O&&z!==e().formId){var d=O,g=e();g.formId&&(d.formId=g.formId,d.store.dispatch(_.oM({type:"SET_CURRENT_FORM_ID",payload:{formId:d.formId}})));z=e().formId}},"h7G5O");
_.B3(function(){window.removeEventListener("yt-popup-closed",M)});
var Z=function(d,g,w){g.key&&w&&g.key!==E()&&(J(g.key),O&&g.command&&O.store.dispatch(_.oM({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:w,command:g.command}})))},u=function(){if(_.I(e().content,_.ylu))return!(E==null?0:E())};
return _.W("yt-dialog-view-model",{class:_.ax("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.W(Qvu,{headerWiz:function(){return _.W("span",{skip:!0},_.W(_.Tn,{data:function(){return e().header}},{dialogHeaderViewModel:function(d){return _.W(vWO,{data:d.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!e().header},
contentWiz:function(){return _.W("span",{skip:!0},_.W(_.Tn,{data:function(){return e().customContent?e().customContent:e().content}},{basicContentViewModel:_.iLz,
createPlaylistDialogFormViewModel:Yeu,collaborativePlaylistInviteMessageViewModel:U$3,miniAppScoreChallengeViewModel:LK3,radioButtonGroupViewModel:function(d){return _.W(_.bHu,{data:d.data,selectedKey:E,onSelected:Z})},
selectionListItemFormViewModel:qeo,upsellViewModel:function(d){return _.W(hEH,{data:d.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:x$h,installmentAgreementsViewModel:Pl0,accessConfirmationViewModel:ljF,listViewModel:function(d){return _.W(_.CCF,{data:d.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:rUz}))},
footerWiz:function(){return _.W("span",{skip:!0},_.W(_.Tn,{data:function(){return e().footer}},{panelFooterViewModel:function(d){return _.W(_.Y9,{data:d.data,
disablePadding:!0,disablePrimaryButton:u})},
formPanelFooterViewModel:Nb0,formFooterViewModel:function(d){return _.W(_.NXF,{data:d.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!e().footer}}))},"Pg");
eWu.idomCompat=!0;_.Zw(eWu,"yt-dialog-view-model",{props:{data:_.lB},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var OGz=_.XO(function(l){var e=l.data;l={};return _.W("yt-panel-header-view-model",{class:_.ax("yt-panel-header-view-model-wiz",(l["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!e().shouldHideDivider},l["yt-panel-header-view-model-wiz--compact"]=function(){return!!e().subtitle},l))},_.W("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.W(_.A,{cond:function(){return e().title},
then:function(O){return _.W(_.zK,{text:O,className:"yt-panel-header-view-model-wiz__title"})}}),_.W(_.A,{cond:function(){return e().subtitle},
then:function(O){return _.W(_.zK,{text:O,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.W("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.W(_.Tn,{data:function(){return e().trailingButtons}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Qg");
OGz.idomCompat=!0;var Ey4=_.XO(function(l){var e=_.pd(function(z){var M;if((M=l.skipContentClick)==null?0:M.call(l))return!1;l.onContentWrapperClick(z);return!0}),O,E,J;
return _.W("div",{class:_.ax("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return l.isAnimating()?"transform: translateY("+l.currentY()+"px);transition: 0.2s":""}},(O=l.header)==null?void 0:O.call(l),_.W("div",{id:l.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.HF({"max-height":(0,_.pc)(l.maxHeightForContentWrapper)}),"on:scroll":gpu(l.onScroll),"on:touchmove":gpu(function(z){return void z.stopPropagation()})},_.W("div",{el:{onRender:l.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":e},(E=l.body)==null?void 0:E.call(l))),(J=l.footer)==null?void 0:J.call(l))},"Rg");
Ey4.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var JoO=_.XO(function(l){var e=_.Et(l.leadingLabel),O=_.Et(l.trailingLabel),E=_.Et(l.footerButtonType),J=function(){return e()||O()||l.hasPrimaryButton()||l.hasSecondaryButton()},z={},M=_.ax("yt-spec-bottom-sheet-layout__primary-button",(z["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return E()===0&&l.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return E()===1&&l.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return E()===2&&l.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return E()===3&&l.hasPrimaryButton()},z));
z={};var Z=_.ax("yt-spec-bottom-sheet-layout__secondary-button",(z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return E()===1&&l.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return E()===2&&l.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return E()===3&&l.hasPrimaryButton()},z));
return _.W(_.A,{cond:l.hasFooterOverride,then:function(){var u;return _.W(_.ZB,null,(u=l.footerOverride)==null?void 0:u.call(l))},
else:function(){return _.W(_.A,{cond:J,then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.W(_.A,{cond:function(){return e()||O()},
then:function(){var u={};return _.W("div",{class:_.ax("yt-spec-bottom-sheet-layout__footer-label-wrapper",(u["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!l.hasPrimaryButton()},u))},_.W(_.A,{cond:e,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},e)}}),_.W(_.A,{cond:O,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},O)}}))}}),_.W(_.A,{cond:function(){return l.hasPrimaryButton()||l.hasSecondaryButton()},
then:function(){var u={};return _.W("div",{class:_.ax("yt-spec-bottom-sheet-layout__footer-button-wrapper",(u["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.$$q,u))},_.W(_.A,{cond:function(){return l.hasSecondaryButton()&&E()!==0},
then:function(){var d;return _.W("div",{class:Z},(d=l.secondaryButton)==null?void 0:d.call(l))}}),_.W(_.A,{cond:l.hasPrimaryButton,
then:function(){var d;return _.W("div",{class:M},(d=l.primaryButton)==null?void 0:d.call(l))}}))}}))}})}})},"Sg");
JoO.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var XSF=_.XO(function(l){var e=_.Et(l.title),O=_.Et(l.subtitle);return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:l.headerId,"on:touchstart":_.pd(function(E){var J;(J=l.touchstart)==null||J.call(l,E);return!1}),
"on:touchmove":_.pd(function(E){var J;(J=l.touchmove)==null||J.call(l,E);return!1}),
"on:touchend":_.pd(function(E){var J;(J=l.touchend)==null||J.call(l,E);return!1})},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.W(_.A,{cond:l.hasHeaderOverride,
then:function(){var E;return _.W(_.ZB,null,(E=l.headerOverride)==null?void 0:E.call(l))},
else:function(){var E={};return _.W("div",{class:_.ax((E["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,E["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=e,E))},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.W(_.A,{cond:e,then:function(){return _.W(_.ZB,null,_.W("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},e),_.W(_.A,{cond:O,then:function(){return _.W("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
O)}}))}})),_.W(_.A,{cond:function(){return e()&&l.hasActionHeader()},
then:function(){var J;return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(J=l.actionHeader)==null?void 0:J.call(l))}}))}}))},"Tg");
XSF.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.XO(function(l){function e(D){if(!P&&typeof MutationObserver!=="undefined"){var b2={childList:!0};"MutationObserver"in window&&(P=new MutationObserver(O.bind(void 0,D)),P.observe(D,b2))}}
function O(D){typeof P!=="undefined"&&(h["content-wrapper"]===void 0&&(h["content-wrapper"]=D.children[0].clientHeight),k(h["content-wrapper"]),n()>y()||c(n()))}
function E(){w(window.innerHeight);n()>y()||c(n());N.isFullScreen[0]()&&n()>y()?t().dispatch("Snap To Full Screen",{maxHeight:f()}):t().dispatch("Snap To Neutral Position",{maxHeight:y()})}
function J(D){document.body.style.overscrollBehavior="none";D.preventDefault();t().dispatch("Touch Start",{event:D})}
function z(D){D.preventDefault();t().dispatch("Touch Move",{event:D,contentScrollable:n()>y(),fullContentWrapperHeight:f(),contentWrapperHeight:y(),contentHeightMap:h,contentWrapperId:"content-wrapper",header:wt0(l),footer:wt0(l)})}
function M(){document.body.style.overscrollBehavior="";N.isFullScreen[0]()?N.currentY[0]()>=60?t().dispatch("Snap To Neutral Position",{maxHeight:y()}):t().dispatch("Snap To Full Screen",{maxHeight:f()}):N.currentY[0]()>=60?Z():N.currentY[0]()<=-60&&n()>y()?t().dispatch("Snap To Full Screen",{maxHeight:f()}):t().dispatch("Snap To Neutral Position",{maxHeight:y()})}
function Z(){t().dispatch("Close Sheet",{clientHeight:g(),maxHeight:0});setTimeout(function(){iOO()},250)}
var u=_.b(_.AF(window.innerHeight,void 0,"NWeFS")),d=u.next().value;u=u.next().value;var g=d,w=u;u=_.b(_.AF(0,void 0,"oxfm4"));d=u.next().value;u=u.next().value;var n=d,k=u;u=_.b(_.jN(function(){var D=wt0(l);return.6*g()-$uF(D)-Wcf(D)}));
d=u.next().value;u=u.next().value;var y=d,c=u,f=function(){var D=wt0(l);return g()-$uF(D)-Wcf(D)-24-24},P=null,h={},N={initialY:_.AF(0,void 0,"cYBE5c"),
currentY:_.AF(0,void 0,"RndqHc"),isAnimating:_.AF(!1,void 0,"vO9DVd"),isFullScreen:_.AF(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.jN(y)},t=function(){var D=null;return function(){if(!D){var b2={initialY:N.initialY[0](),currentY:N.currentY[0](),isAnimating:N.isAnimating[0](),isFullScreen:N.isFullScreen[0](),maxHeightForContentWrapper:N.maxHeightForContentWrapper[0]()};D=duz(b2)}return D}}();
_.sC(function(){window.addEventListener("resize",E);t().subscribe(function(D){N.initialY[1](D.initialY);N.currentY[1](D.currentY);N.isAnimating[1](D.isAnimating);N.isFullScreen[1](D.isFullScreen);N.maxHeightForContentWrapper[1](D.maxHeightForContentWrapper)})});
_.B3(function(){window.removeEventListener("resize",E);P&&(P.disconnect(),P=null)});
var r=_.ax({"bottom-sheet-content-without-icon":function(){var D;return!((D=l.shouldShowIcons)==null?0:D.call(l))}});
return _.W("bottom-sheet-layout",null,_.W(Ey4,{contentWrapperId:"content-wrapper",isAnimating:function(){return N.isAnimating[0]()},
currentY:function(){return N.currentY[0]()},
maxHeightForContentWrapper:function(){return N.maxHeightForContentWrapper[0]()},
shouldShowIcons:l.shouldShowIcons,skipContentClick:l.skipContentClick,onScroll:function(){var D=document.getElementById("header-wrapper"),b2=document.getElementById("content-wrapper");if(D&&b2){var $V={};$V=($V["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,$V["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,$V);D.className=b2.scrollTop>1?_.Ix($V):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:iOO,contentWrapperEl:function(D){e(D);requestAnimationFrame(function(){O(D)})},
header:function(){return _.W(XSF,{touchstart:J,touchmove:z,touchend:M,title:l.headerTitle,subtitle:l.headerSubtitle,headerId:"header-wrapper",headerOverride:l.headerFn,hasHeaderOverride:l.hasHeaderFn,actionHeader:l.headerActionHeader,hasActionHeader:l.hasHeaderActionHeader})},
footer:function(){return _.W(JoO,{footerButtonType:l.footerButtonType,leadingLabel:l.footerLeadingLabel,trailingLabel:l.footerTrailingLabel,primaryButton:l.footerPrimaryButton,hasPrimaryButton:l.hasFooterPrimaryButton,secondaryButton:l.footerSecondaryButton,hasSecondaryButton:l.hasFooterSecondaryButton,footerOverride:l.footerFn,hasFooterOverride:l.hasFooterFn})},
body:function(){return _.W(_.A,{cond:l.hasContentFn,then:function(){var D;return _.W("div",{class:r},(D=l.contentFn)==null?void 0:D.call(l))}})}}))},"Ug").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var zWO=_.XO(function(l){var e=_.V2().resolve(_.pC);return _.W("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.pd(function(){return void e.closeSheet()})},_.W(_.A,{cond:function(){return!!l.header},
then:function(){return _.W("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},l.header())}}),_.W(_.A,{cond:function(){return!!l.content},
then:function(){return _.W("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},l.content())}}),_.W(_.A,{cond:function(){return!!l.footer},
then:function(){return _.W("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},l.footer())}}))},"Vg");
zWO.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var bGi=_.XO(function(l){l=l.data;var e=_.e4("yt-sheet-view-model",function(E){if(_.a("web_focus_first_element_sheet"))return E.addEventListener("focus",function(){uxi(E)}),function(){E.removeEventListener("focus",function(){uxi(E)})}}),O={};
return _.W("yt-sheet-view-model",{class:_.ax("yt-sheet-view-model-wiz",(O["yt-sheet-view-model-wiz--contextual"]=!0,O["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.a("web_disable_backdrop_filter"),O)),el:e,tabindex:-1},_.W(_.A,{cond:l,then:function(E){return _.W(zWO,{header:function(){return _.W(_.Tn,{data:function(){return E().header}},{panelHeaderViewModel:OGz})},
content:function(){return _.W(_.Tn,{data:function(){return E().content}},{listViewModel:function(J){return _.W(_.CCF,{data:J.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:hEH,miniAppScoreChallengeViewModel:LK3})},
footer:function(){return _.W(_.Tn,{data:function(){return E().footer}},{panelFooterViewModel:_.Y9})}})}}))},"Wg");
bGi.idomCompat=!0;_.Zw(bGi,"yt-sheet-view-model",{props:{data:_.lB}});var Vi0=_.XO(function(l){var e=function(){var O;return(O=l.data().enableDebuggingFeatures)!=null?O:!1};
return _.W("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.W(_.KH,{each:function(){var O;return(O=l.data().stickers)!=null?O:[]}},function(O){return _.W(Mio,{data:function(){return O},
debugMode:e})}))},"Xg"),Mio=_.XO(function(l){var e=_.J3(l,{debugMode:!1}).debugMode,O=_.Et(function(){var u;
return(u=l.data().region)==null?void 0:u.w},0),E=_.Et(function(){var u;
return(u=l.data().region)==null?void 0:u.h},0),J=_.Et(function(){var u;
return(u=l.data().region)==null?void 0:u.x},0),z=_.Et(function(){var u;
return(u=l.data().region)==null?void 0:u.y},0),M=_.pd(function(){var u=l.data().onTap;
u&&_.r6(u)}),Z={};
return _.W("div",{class:_.ax("ytStoriesStickerLayerViewModelSticker",(Z.ytStoriesStickerLayerViewModelDebugMode=e,Z)),style:_.HF({width:function(){return 100*O()+"%"},
height:function(){return 100*E()+"%"},
left:function(){return 100*J()+"%"},
top:function(){return 100*z()+"%"},
"flex-direction":function(){return AYz(l.data().flexDirection)},
"justify-content":function(){return np4(l.data().justifyContent)},
"align-items":function(){return arz(l.data().alignItems)}}),
"on:click":M},_.W(_.Tn,{data:function(){return l.data().button||l.data().toggleButton}},{buttonViewModel:function(u){return _.W(_.hM,{data:u.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(u){return _.W(_.sh,{data:u.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yg");var uMh=_.XO(function(l){var e=function(){return l.data()},O={},E=_.Et(function(){return e().backgroundColor},0),J=_.Et(function(){return e().actionButtons},[]),z=_.Et(function(){return e().stickerLayer},{}),M=function(){var u,d;
return{animationRef:O,animationConfig:{autoplay:!1,loop:!1,path:(d=(u=e().foregroundAnimation)==null?void 0:u.url)!=null?d:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){l.navigateToNextItemOnLottieComplete()}}}},Z=function(){var u,d,g,w,n,k,y,c;
return{animationConfig:{autoplay:(k=(u=e().backgroundAnimation)==null?void 0:(d=u.settings)==null?void 0:d.autoplay)!=null?k:!1,loop:(y=(g=e().backgroundAnimation)==null?void 0:(w=g.settings)==null?void 0:w.loop)!=null?y:!1,path:(c=(n=e().backgroundAnimation)==null?void 0:n.url)!=null?c:"",name:"stories_item_background_animation"}}};
_.Gh(function(){if(l.isVisible()){var u;(u=O.lottieEl)==null||u.play();l.animationRef()&&(l.animationRef().lottieEl=O.lottieEl)}else{var d;(d=O.lottieEl)==null||d.stop()}},"Cbnkwd");
return _.W("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.HF({"background-color":function(){return _.qv(E())+";"}})},_.W("div",{class:"ytStoriesItemViewModelAssetContent"},_.W(_.A,{cond:function(){return!!e().backgroundAnimation},
then:function(){return _.W(_.k7,{data:Z,animationName:function(){return Z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.A,{cond:function(){return!!e().backgroundImage},
then:function(){return _.W(_.Jm,{data:function(){return e().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.W(_.A,{cond:function(){return!!e().foregroundAnimation},
then:function(){return _.W(_.k7,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.A,{cond:function(){return!!e().foregroundImage},
then:function(){return _.W(_.Jm,{data:function(){return e().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.W("div",{class:"ytStoriesItemViewModelTopShadow"}),_.W(_.Tn,{data:function(){return z()}},{storiesStickerLayerViewModel:Vi0})),_.W("div",{class:"ytStoriesItemViewModelBottomShadow"},_.W("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.pd(l.pauseAutoNavigation)},_.W(_.KH,{each:J},function(u){return _.W(ZGh,{data:function(){return u}})}))))},"Zg"),Cx4={style:"overlay",
type:"outline"},ZGh=_.XO(function(l){var e={};return _.W("div",{class:_.ax("ytStoriesItemViewModelActionButton",(e.ytStoriesItemViewModelStretchedActionButton=function(){return l.data().size==="STORIES_BUTTON_SIZE_STRETCH"},e))},_.W(_.Tn,{data:function(){return l.data().button}},{buttonViewModel:function(O){return _.W(_.hM,{data:O.data,
className:"ytStoriesItemViewModelButton",buttonOverrides:Cx4})}}))},"$g");_.Zw(_.XO(function(l){var e=function(){var b2;return(b2=l.data().startIndex)!=null?b2:0},O=_.b(_.jN(e)),E=O.next().value,J=O.next().value;
O=_.b(_.AF(!1,void 0,"O8yPf"));var z=O.next().value,M=O.next().value,Z=function(){var b2;return(b2=l.data().storyItems)!=null?b2:[]},u={},d=function(){return l.data().dismissButton},g=function(){var b2;
return _.I((b2=_.I(d(),_.Hi))==null?void 0:b2.onTap,_.L4)},w=_.e4("div"),n,k,y=!1,c=function(){var b2;
(b2=n)==null||b2.cancel();n=f(E()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});n.onfinish=function(){f(E()).style.width="100%";var $V=_.I(Z()[E()],$Z4),gT,mx;$V!=null&&$V.foregroundAnimation&&(($V==null?0:(gT=$V.foregroundAnimation)==null?0:gT.url)||($V==null?0:(mx=$V.foregroundAnimation)==null?0:mx.payload))||(E()!==Z().length-1?(J(E()+1),c()):g()&&_.qT(g()))}},f=function(b2){return w.value.children[b2].children[0]},P=function(){for(var b2=0;b2<E();b2++)f(b2).style.width=
"100%"};
O=_.pd(function(){y||(z()?M(!1):(E()===Z().length-1&&g()&&_.qT(g()),f(E()).style.width="100%",E()!==Z().length-1&&(J(E()+1),c())))});
var h=_.pd(function(){y||(z()?M(!1):(f(E()).style.width="0%",E()!==0?J(E()-1):J(E()),c()))}),N=function(){M(!0)},t=function(){f(E()).style.width="100%";
E()!==Z().length-1?(J(E()+1),c()):g()&&_.qT(g())},r=_.pd(function(){y=!1;
k=setTimeout(function(){M(!0);y=!0},300)}),D=_.pd(function(){clearTimeout(k);
y&&z()&&M(!1)});
_.Gh(function(){if(z()){var b2;(b2=n)==null||b2.pause();var $V;($V=u.lottieEl)==null||$V.pause()}else{var gT;(gT=n)==null||gT.play();var mx;(mx=u.lottieEl)==null||mx.play()}},"DIHTEd");
_.Gh(function(){P();E()===e()&&c()},"ze5F8b");
_.sC(function(){P();c()});
_.B3(function(){clearTimeout(k)});
return _.W("yt-stories-viewer-view-model",{class:_.ax("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.W("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.W("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":h,"on:mousedown":r,"on:mouseup":D,"on:mouseleave":D}),_.W("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":O,"on:mousedown":r,"on:mouseup":D,"on:mouseleave":D})),_.W(_.Tn,{data:Z},{storiesItemViewModel:function(b2,
$V){var gT=b2.data;return _.W(_.A,{cond:function(){return Math.abs($V()-E())<=1},
then:function(){var mx={};return _.W("div",{class:_.ax("ytStoriesViewerViewModelStoryItem",(mx.ytStoriesViewerViewModelHiddenStoryItem=function(){return $V()!==E()},mx))},_.W(uMh,{data:gT,
pauseAutoNavigation:N,navigateToNextItemOnLottieComplete:t,isVisible:function(){return $V()===E()},
animationRef:u}))}})}}),_.W("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:w},_.W(_.KH,{each:Z},function(){return _.W("div",{class:"ytStoriesViewerViewModelProgressBar"},_.W("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.W("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.W(_.Tn,{data:d},{buttonViewModel:_.hM})))},"ah"),"yt-stories-viewer-view-model",{props:{data:_.lB}});_.Zw(_.XO(function(l){var e=l.data;var O=_.e4("yt-gen-ai-feedback-form-view-model"),E=[];return _.W("yt-gen-ai-feedback-form-view-model",{el:O,class:"ytGenAiFeedbackFormViewModelHost"},_.W(_.zK,{text:function(){return e().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.W(_.Tn,{data:function(){return e().feedbackChips}},{toggleButtonViewModel:function(J){var z=J.data;
return _.W(_.sh,{data:z,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(M){var Z=z();Z=_.I(Z,_.ci);Z=_.I(Z==null?void 0:Z.defaultButtonViewModel,_.Hi).trackingParams;M?E.push(Z):(M=E.indexOf(Z),M>-1&&E.splice(M,1))}})}})),_.W(_.zK,{text:function(){return e().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.W(_.Tn,{data:function(){return e().submitButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){k44(O.value,E,e().uniqueId)}})}}),_.W(_.Tn,{data:function(){return e().moreFeedbackButton}},{buttonViewModel:function(J){return _.W(_.hM,{data:J.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"bh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.lB},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Pz=function(){return _.B.apply(this,arguments)||this};
_.m(Pz,_.B);Pz.prototype.created=function(){xv3(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(flC);var l=_.V2().resolve(_.Qwi);l&&(l.container=this.ytPopupContainerBehavior);if(l=_.V2().resolve(_.pC))l.container=this.ytPopupContainerBehavior;if(l=_.V2().resolve(_.KC)){var e=this.ytPopupContainerBehavior;l.containerWasInjected?_.hG(Error("dj")):l.container=e}};
Pz.prototype.ensurePopupBelowPlayer=function(l,e){var O=_.V2().resolve(_.MG(_.XZ));if(!O||!O.isOnWatch()||!_.bV())return!1;O=O.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.K0().height>O+this.getPopupHeight(l,e)?(l.style.top="auto",l.style.bottom="0px"):(l.style.top=O+"px",l.style.bottom="auto");return!0};
Pz.prototype.getPopupHeight=function(l,e){e&&(l.cachedPopupHeight=0);if(!l.cachedPopupHeight){e=0;var O=l.clientHeight,E=window.getComputedStyle(l);e+=parseInt(E.marginTop,10);e+=parseInt(E.marginBottom,10);l.cachedPopupHeight=O+e}return l.cachedPopupHeight};
Pz.prototype.getElement=function(l){return document.createElement(l)};
_.L([_.K(Emz.YtPopupContainerBehavior),_.q("design:type",Object)],Pz.prototype,"ytPopupContainerBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.L([_.U({disableElementRegistration:!0,is:"ytd-popup-container"})],Pz);
_.Y(Pz,"ytd-popup-container",function(){if(NZu!==void 0)return NZu;var l=document.createElement("template");_.p(l,"\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");l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);return NZu=l},{mode:1});var oyF;var $pz={};$pz.YtLogYpcFlowCommandsBehavior=[_.ZH.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(l){_.I(l,Foz)&&(l=_.I(l,Foz))&&(l.serializedTransactionFlowLoggingParams?_.kEq(l.serializedTransactionFlowLoggingParams):l.serializedYpcCancelFlowLoggingParams?(l=l.serializedYpcCancelFlowLoggingParams)&&_.ff("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",l):l.serializedYpcResumeFlowLoggingParams?(l=l.serializedYpcResumeFlowLoggingParams)&&_.ff("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",l):l.serializedYpcPauseFlowLoggingParams?(l=l.serializedYpcPauseFlowLoggingParams)&&
_.ff("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",l):l.serializedYpcRefundFlowLoggingParams?(l=l.serializedYpcRefundFlowLoggingParams)&&YDh("YPC_EVENT_TYPE_START",l):l.serializedYpcDeactivateFlowLoggingParams?(l=l.serializedYpcDeactivateFlowLoggingParams)&&_.ff("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",l):l.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(l=l.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.ff("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",l))},
handleLogYpcFlowDismiss_:function(l){_.I(l,cJh)&&(l=_.I(l,cJh),l.serializedTransactionFlowLoggingParams?_.ITL(l.serializedTransactionFlowLoggingParams):l.serializedYpcCancelFlowLoggingParams?(l=l.serializedYpcCancelFlowLoggingParams)&&_.ff("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",l):l.serializedYpcResumeFlowLoggingParams?(l=l.serializedYpcResumeFlowLoggingParams)&&_.ff("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",l):l.serializedYpcPauseFlowLoggingParams?(l=
l.serializedYpcPauseFlowLoggingParams)&&_.ff("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",l):l.serializedYpcRefundFlowLoggingParams&&(l=l.serializedYpcRefundFlowLoggingParams)&&YDh("YPC_EVENT_TYPE_CANCEL",l))}}];var WLf={};WLf.YtCancelRecurrenceBehavior=[_.va.YtComponentBehavior,_.JaC,{attached:function(){var l=this;sBz(this,function(e,O){return l.ypcCancelRecurrenceHandler(e,O)})},
ypcCancelRecurrenceHandler:function(l,e){var O=this;if(!e||!e.ypcCancelRecurrenceEndpoint)return!1;if(!e.ypcCancelRecurrenceEndpoint.params)return _.tT(Error("vl")),!0;_.ed(this.hostElement);var E=_.Dw.instance,J=_.V2().resolve(_.MG(_.Pc));E&&_.SN(E,e)?_.Qh(E,e).then(function(z){O.ypcCancelRecurrenceSuccess_(l,e,{data:z})},function(z){O.ypcCancelRecurrenceFailure_(l,e,z)}).thenCatch(function(){_.tT(Error("wl"))}):J?J.requestDataForServiceEndpoint(e).then(function(z){O.ypcCancelRecurrenceSuccess_(l,
e,z)},function(z){O.ypcCancelRecurrenceFailure_(l,e,z)}).thenCatch(function(){_.tT(Error("wl"))}):_.tT(Error("xl"));
return!0},
ypcCancelRecurrenceSuccess_:function(l,e,O){_.OU(this.hostElement);O.data||(O={data:O});O.data&&O.data.actions&&_.wQ(this.hostElement,O.data.actions,this.hostElement);O.data.messageRenderer?Lwh(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(e=e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.ff("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",e);_.$u(l,"yt-service-request-completed",O)},
ypcCancelRecurrenceFailure_:function(l,e,O){_.OU(this.hostElement);Lwh(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.$u(l,"yt-service-request-error",{error:O,params:[l,e]})}}];var dpC=function(l,e){_.l2.call(this,e)};
_.m(dpC,uYz);var gyO={};gyO.YtCompleteTransactionBehavior=[_.va.YtComponentBehavior,_.JaC,{attached:function(){var l=this;sBz(this,function(e,O){return l.ypcCompleteTransactionHandler(e,O)})},
completeTransaction:function(l,e){var O=this;e={payments_payload:window.btoa(e.integratorData),buybucket_params:l.data.buybucketParams,offer_params:l.data.offerParams};var E=_.V2().resolve(_.Pc),J=l.data.completeTransactionEndpoint,z=this.get("ypcCompleteTransactionEndpoint.actions",J);z&&_.wQ(this.hostElement,z,this.hostElement);return(z=_.Dw.instance)&&_.SN(z,J)?_.Qh(z,J,e).then(function(M){return!M||(M==null?0:M.error)?(M=O.get("data.serializedTransactionFlowLoggingParams",l),_.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
M))):{data:M}}).then(function(M){return O.handleCompleteTransactionSuccess_(M,l)},function(){return O.handleCompleteTransactionFailure_(l)}):E.requestDataForServiceEndpoint(J,e).then(function(M){return O.handleCompleteTransactionSuccess_(M,l)},function(){return O.handleCompleteTransactionFailure_(l)})},
handleCompleteTransactionSuccess_:function(l,e){l.data||(l={data:l});if(l.data.messageRenderer)return _.Tr(new dpC(l.data.messageRenderer));if(l.data.trackingParams){var O=_.P9(),E=_.B9();O&&E&&_.DG(O,E,_.cf(l.data.trackingParams))}e=this.get("data.serializedTransactionFlowLoggingParams",e);hpH(e);return _.Ag(l)},
handleCompleteTransactionFailure_:function(l){l=this.get("data.serializedTransactionFlowLoggingParams",l);_.x1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",l);return _.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",l))},
ypcCompleteTransactionHandler:function(l,e){var O=this;if(!e.ypcCompleteTransactionEndpoint)return!1;if(!e.ypcCompleteTransactionEndpoint.transactionParams)return _.tT(Error("yl")),!0;e.ypcCompleteTransactionEndpoint&&e.ypcCompleteTransactionEndpoint.gtmData&&_.R3(e.ypcCompleteTransactionEndpoint.gtmData);var E=_.V2().resolve(_.MG(_.Pc));if(E){_.ed(this.hostElement);var J=_.Dw.instance;J&&_.SN(J,e)?_.Qh(J,e).then(function(z){return!z||(z==null?0:z.error)?(z=O.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
e),_.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z))):{data:z}}).then(function(z){_.$u(l,"yt-service-request-completed");
O.ypcCompleteTransactionSuccess_(e,z)},function(){return O.ypcCompleteTransactionFailure_(e)}):E.requestDataForServiceEndpoint(e).then(function(z){_.$u(l,"yt-service-request-completed");
O.ypcCompleteTransactionSuccess_(e,z)},function(){return O.ypcCompleteTransactionFailure_(e)})}return!0},
ypcCompleteTransactionSuccess_:function(l,e){_.OU(this.hostElement);e.data||(e={data:e});_.Wb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);e.data.messageRenderer||e.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(l):(_.R3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",l));e.data.actions&&(l=SKi(e.data.actions),e=Qc0(e.data.actions),l.length&&_.ii(this.hostElement,
l),e.length&&_.wQ(this.hostElement,e,this.hostElement))},
ypcCompleteTransactionFailure_:function(l){_.OU(this.hostElement);_.Wb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",l,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(l,e,O){if(e=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",e))e={serializedTransactionFlowLoggingParams:e},O&&(e.errorType=O),_.Bm(l,e),_.Pm()}}];var iGC={};iGC.YtEndpointHandlerWithYpcBehavior=[_.JaC,_.ZH.YtActionHandlerBehavior,[{openWalletDialog:function(l,e,O,E,J,z,M){var Z=this,u=_.x7();e=e.replace(/-/g,"+").replace(/_/g,"/");var d=_.Kz().get("hl");_.XPq(_.$x(_.ld),e,u.resolve,J,function(g){z&&z();u.reject(g)},d,function(g){return Z.onServerBackendAnalyticEvent_(l,O,g)},this.onDialogClose_.bind(this),E,M);
return u.promise},
openFixFlowDialog:function(l,e,O,E){l=l.replace(/-/g,"+").replace(/_/g,"/");_.$x(_.ld).openFixFlowDialog(l,e,O,E)},
onDialogClose_:function(){_.Wb(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(l,e,O){_.$u(l,"yt-commerce-action-init-done");e&&_.ii(this.hostElement,[e,{backend_analytics:O}])}}],
_.Ab.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(l,e){l=this.get("data.nativeFlowEndpoint",e);e=this.get("data.fallbackEndpoint",e);l?_.ii(this.hostElement,[l]):e&&_.$u(this.hostElement,"yt-navigate",{endpoint:e})}}],
WLf.YtCancelRecurrenceBehavior,gyO.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 l=this;sBz(this,function(e,O,E){return l.handleYPCEndpoint(e,O,E)});
this.ypcRegisterActionMapJobId_=_.fZ(_.UD,function(){l.registerActionMap(l.buyFlowActionMap_)})},
detached:function(){var l=this;_.UD.cancelJob(this.ypcRegisterActionMapJobId_);_.fZ(_.UD,function(){l.unregisterActionMap(l.buyFlowActionMap_)})},
handleYPCEndpoint:function(l,e,O){var E=e.ypcGetCartEndpoint;if(E){_.UG("commerce_transaction");var J=E.gtmId;J&&_.fQ(J);(E=E.gtmData)&&_.R3(E)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",e)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(l,e),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",e)!=null?(this.handleYPCFixInstrumentEndpoint_(l,e),!0):e.ypcPauseSubscriptionCommand?(Fc0(this.hostElement,l,e,O),
!0):e.ypcResumeSubscriptionCommand?(TVF(this.hostElement,l,e),!0):e.getPaymentInstrumentsParamsCommand?(jMF(this.hostElement,l,e),!0):e.ypcHandleTransactionEndpoint?(pt4(this.hostElement,l,e,O),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(l,e){var O=this;_.Yu("ttcr",void 0,"commerce_transaction");e=e.ypcGetCartEndpoint;var E=e.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,J=E.encryptedPurchaseParams,z=E.serializedTransactionFlowLoggingParams,M=E.serializedPaymentsClientParams,Z=this.createGetCartResponseFromParams_(E,e.offerParams,z);this.changeButtonState(l,!0);_.FV(this.openWalletDialog(l,J,E.ypcLogWalletAnalyticDataEndpoint,z,function(){O.changeButtonState(l,!1)},function(){O.changeButtonState(l,
!1)},M).then(function(u){return O.handleBuyFlowCompleteCallback_(l,Z,u)},function(){return O.handleOnLoadError(Z)}).then(function(u){return void O.handlePostPurchaseSuccess_(l,Z,u)},function(u){return void O.handlePostPurchaseError_(u)}),function(){O.changeButtonState(l,!1);
l instanceof Element&&_.$u(l,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(l,e,O){var E=l.completeTransactionEndpoint,J=l.handleTransactionEndpoint;e={data:{offerParams:window.btoa(e),serializedTransactionFlowLoggingParams:O}};J?e.data.handleTransactionEndpoint=J:e.data.completeTransactionEndpoint=E;l.onCartDismissCommand&&(e.data.onCartDismissCommand=l.onCartDismissCommand);return e},
onGetCartServiceRequestCompleted_:function(l,e){var O=this,E=l.target;if(e&&e.data&&e.data.messageRenderer)_.OU(this.hostElement),this.handleMessageRenderer_(e.data.messageRenderer),this.changeButtonState(E,!1);else{var J=this.get("data.encryptedPurchaseParams",e),z=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",e),M=this.get("data.ypcLogWalletAnalyticDataEndpoint",e),Z=this.get("data.serializedPaymentsClientParams",e),u=this.getLoggingParams_(e);if(u||J||z)l.stopPropagation(),_.Yu("ttcr",
void 0,"commerce_transaction"),J||_.OU(this.hostElement),this.changeButtonState(E,!1),z?_.Wb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.hT("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:z}}},this]):J&&(this.changeButtonState(E,!0),l=null,l=this.openWalletDialog(E,J,M,u,function(){_.OU(O.hostElement);O.changeButtonState(E,!1)},function(){_.OU(O.hostElement);
O.changeButtonState(E,!1)},Z),_.FV(l.then(function(d){return O.handleBuyFlowCompleteCallback_(E,e,d)},function(){return O.handleOnLoadError(e)}).then(function(d){return O.handlePostPurchaseSuccess_(E,e,d)},function(d){return O.handlePostPurchaseError_(d)}),function(){O.changeButtonState(E,!1);
_.$u(E,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(l,e){e&&e.endpoint&&e.endpoint.ypcGetCartEndpoint&&!e.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)&&_.wQ(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)],l.target),_.ed(this.hostElement),this.changeButtonState(l.target,!0))},
onServiceRequestError_:function(l,e){if(e&&e.params&&e.params.length){e=_.b(e.params);for(var O=e.next();!O.done;O=e.next())if((O=O.value)&&O.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",O.ypcGetCartEndpoint)&&_.wQ(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",O.ypcGetCartEndpoint)],l.target);_.OU(this.hostElement);this.changeButtonState(l.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(l,e,O){var E=O.integratorData;return E==null||E===""||O.error!=null?(E=this.getLoggingParams_(e),String(O.error)==="-1"?(e.data.onCartDismissCommand&&_.wQ(this.hostElement,[e.data.onCartDismissCommand],l),_.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",E,!0))):_.Tr(new Oi("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",E))):e.data.handleTransactionEndpoint?KcF(this.hostElement,e.data.handleTransactionEndpoint,{payments_payload:E,funds_guarantee_callback_client_data:O.integratorClientCallbackData}):
this.completeTransaction(e,O)},
handlePostPurchaseSuccess_:function(l,e,O){e=O.data;var E=!1,J,z;if(e&&((J=e.command)==null?0:(z=J.commandExecutorCommand)==null?0:z.commands)){var M,Z;J=(M=e.command)==null?void 0:(Z=M.commandExecutorCommand)==null?void 0:Z.commands;for(M=0;M<J.length;M++)if(_.I(J[M],_.Y10)){E=!0;break}}E||(e&&e.gtmDatas&&e.gtmDatas.length?_.R3(e.gtmDatas[0]):_.R3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));O.data&&O.data.actions&&(e=SKi(O.data.actions),O=Qc0(O.data.actions),e.length&&
_.ii(this.hostElement,e),O.length&&_.wQ(this.hostElement,O,l))},
handlePostPurchaseError_:function(l){l&&l.payload&&l.payload.isUserDismiss||_.UW(Error("Al"))},
handleOnLoadError:function(l){l=this.getLoggingParams_(l);return _.Tr(new Oi("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l))},
getLoggingParams_:function(l){return this.get("data.serializedTransactionFlowLoggingParams",l)},
handleMessageRenderer_:function(l){var e=_.PK(l,"renderer"),O=_.hT("openPopupConfig");e==="confirmDialogRenderer"&&O&&_.Wb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:O.popupTypeMap[e],popup:l}},this])},
handleYPCFixInstrumentEndpoint_:function(l,e){var O=this,E=e.ypcFixInstrumentEndpoint;e=E.encryptedFixInstrumentParameters;this.logFixFopEvent_(E,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(l,!0);this.openFixFlowDialog(e,function(J,z){O.onFixFlowCompleteCallback_(E,J,z)},function(){return O.changeButtonState(l,!1)},function(){O.changeButtonState(l,!1);
O.logFixFopEvent_(E,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(l,e,O){var E=_.vK("payments.business.integration.scenario.FixInstrument");if(e==E.IntegratorCallbackType.ON_COMPLETE){e="FIX_FOP_EVENT_TYPE_CANCEL";var J=null;O.error!=null?O.error!=E.OnCompleteCallbackError.USER_CANCELLED&&(_.wQ(this.hostElement,[l.errorAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_FAILURE",J="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.wQ(this.hostElement,[l.successAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_SUCCESS");_.wQ(this.hostElement,[l.onFinishAction],
this.hostElement);this.logFixFopEvent_(l,e,J)}},
logFixFopEvent_:function(l,e,O){(l=l.serializedFixFopLoggingParams)?(e={eventType:e,serializedFixFopLoggingParams:l},O!=null&&(e.errorType=O),_.Bm("fixFopFlow",e),_.Pm()):_.UW(Error("Bl"))},
changeButtonState:function(l,e){_.a("enable_ypc_spinners")&&l&&(l.is==="yt-button-renderer"||l.is==="ytd-button-renderer")&&(l.disabled=e)}}];var wS3=function(l){this.JSC$28821_clientRoot=l;this.feedbackCollectorActionMap={"yt-help-dialog-requested":G4H,"yt-feedback-dialog-requested":sM4,"yt-signal-action-help":BV3,"yt-signal-action-send-feedback":PHC,"yt-send-feedback-action":Yn4,"yt-user-feedback-endpoint":h74};_.QW(_.SU.getInstance(),this.feedbackCollectorActionMap,this.JSC$28821_clientRoot)},AoP;var nyu=function(l){this.JSC$28826_clientRoot=l;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":LcP.bind(null,this.JSC$28826_clientRoot),"yt-signal-action-delete-all-downloads":qnu,"yt-signal-action-delete-download":vpC,"yt-signal-action-delete-playlist-download":rYf,"yt-signal-action-install-pwa":ebf,"yt-signal-action-refresh-downloads":xuo,"yt-offline-video-endpoint":E1C,"yt-offline-playlist-endpoint":Xc4,"yt-update-local-app-setting-command":b0z,"yt-offline-orchestration-action-command":VTi,
"yt-signal-action-undo-delete-download":SnC,"yt-local-watch-history-command":CG0};_.QW(_.SU.getInstance(),this.downloadManagerActionMap,this.JSC$28826_clientRoot);_.sm.instance=new _.sm},aj4;var Ub=function(){var l=_.B.apply(this,arguments)||this;l.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_"};l.remoteApi_=null;return l};
_.m(Ub,_.B);_.X=Ub.prototype;
_.X.ready=function(){_.a("polymer_enable_mdx")&&(f1H({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.a("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.a("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.a("enable_cast_short_lived_lounge_token")}),_.Wm("yt-remote-connection-change",this.handleConnectionChange_,this),_.Wm("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Ug4())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.X.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.X.handleConnectionChange_=function(l){(this.mdxConnected=l)?(l=sni(),!l&&Tvz()&&scC()&&(l={key:"cast-selector-receiver",name:scC()}),l=l.name):l=null;this.receiverName=l;_.Q9(this.remoteApi_);(this.remoteApi_=Ug4())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.X.handleReceiverAvailabilityChange_=function(){var l=Tno();Tvz()&&_.gS("yt-remote-cast-available")&&l.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=l.length>0};
_.X.handleRemoteQueueChange_=function(){var l=this.currentVideoId_,e=this.currentListId_,O=u6(this.remoteApi_);this.currentVideoId_=O.videoId;this.currentListId_=O.listId;this.currentVideoId_&&_.Wb(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.a("polymer_enable_mdx_queue")?this.currentListId_:null,l,e])};
_.X.handleAddToQueueAction_=function(l){l=_.I(l,WoF);this.remoteApi_&&(l.videoId?this.remoteApi_.addVideo(l.videoId):l.playlistId&&this.remoteApi_.addPlaylist(l.playlistId))};
_.X.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.X.handleInsertInQueueAction_=function(l){l=_.I(l,dZO);this.remoteApi_&&l.videoId&&this.remoteApi_.JSC$17592_insertVideo(l.videoId)};
_.X.handleRemoveFromQueueAction_=function(l){l=_.I(l,gk4);this.remoteApi_&&l.videoId&&this.remoteApi_.JSC$17592_removeVideo(l.videoId)};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],Ub.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T(),_.q("design:type",Object)],Ub.prototype,"appId",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ub.prototype,"mdxConnected",void 0);_.L([_.T(),_.q("design:type",Boolean)],Ub.prototype,"receiverAvailable",void 0);_.L([_.T(),_.q("design:type",Object)],Ub.prototype,"receiverName",void 0);_.L([_.T(),_.q("design:type",Object)],Ub.prototype,"currentVideoId_",void 0);
_.L([_.T(),_.q("design:type",Object)],Ub.prototype,"currentListId_",void 0);_.L([_.Ps({is:"yt-mdx-manager",disableElementRegistration:!0})],Ub);_.Y(Ub,"yt-mdx-manager",void 0,{mode:2});var k$0;var Iju;var YQ=function(){var l=_.B.apply(this,arguments)||this;l.APP_IDS={ytr:3,ytm:5};l.JSC$18833_timeoutId_=0;l.actionMap={"yt-open-create-family-dialog":"open"};return l};
_.m(YQ,_.B);_.X=YQ.prototype;_.X.created=function(){xv3(2200)};
_.X.detached=function(){this.observer_&&this.observer_.disconnect()};
_.X.open=function(l,e){var O=this,E=l.serializedYpcFamilyCreateLoggingParams;this.JSC$18833_timeoutId_=setTimeout(this.abort_.bind(this,l.postFlowErrorEndpoint,E),3E4);e&&(this.onReadyCallback_=e);var J=_.ud(this.hostElement).querySelector("#unicorn-iframe");E&&E&&UxC("ypcFamilyCreateFlowStarted",E);_.oNA("family_creation",function(){var z=_.vK("gapi.family_creation.render");_.vK("gapi.config.update")("iframes/family_creation/url",O.getFamilyCreationUrlWithUnicornParams_());var M=3;l.appId&&l.appId in
O.APP_IDS&&(M=O.APP_IDS[l.appId]);M={authUser:_.hT("SESSION_INDEX")||0,clientId:M,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.hT("HL"),initialflow:[4,5,6,7],m:O.isMobile?1:0,onFlowComplete:O.onUnicornFlowComplete_.bind(O,l.postFlowSuccessEndpoint,E),onError:O.onUnicornFlowError_.bind(O,l.postFlowErrorEndpoint,E),onReady:O.onUnicornFlowReady_.bind(O,l.referencePcidParams)};z(J,M)})};
_.X.close=function(){_.ud(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.X.onUnicornFlowComplete_=function(l,e){this.close();e&&e&&UxC("ypcFamilyCreateFlowSucceeded",e);_.$u(this.hostElement,"yt-navigate",{endpoint:l})};
_.X.onUnicornFlowError_=function(l,e){this.close();e&&UxC("ypcFamilyCreateFlowCancelled",e);_.$u(this.hostElement,"yt-navigate",{endpoint:l})};
_.X.onUnicornFlowReady_=function(l){var e=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();l&&_.vK("gapi.family_creation.setConfig")(0,l);this.observer_=new MutationObserver(function(){_.ud(e.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ud(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ud(this.hostElement).querySelector("#dialog").open()};
_.X.getFamilyCreationUrlWithUnicornParams_=function(){return _.hT("YTR_FAMILY_CREATION_URL")};
_.X.getCurrentUrl_=function(){return document.location.href};
_.X.abort_=function(l,e){this.clearTimeout_();this.onUnicornFlowError_(l,e)};
_.X.clearTimeout_=function(){clearTimeout(this.JSC$18833_timeoutId_)};
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],YQ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],YQ.prototype,"isMobile",void 0);_.L([_.T(),_.q("design:type",Object)],YQ.prototype,"onReadyCallback_",void 0);_.L([_.T(),_.q("design:type",Object)],YQ.prototype,"observer_",void 0);_.L([_.Ps({is:"yt-create-family-dialog",disableElementRegistration:!0})],YQ);
_.Y(YQ,"yt-create-family-dialog",function(){if(Iju===void 0){var l=document.createElement("template");_.p(l,'\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');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);var e=l.content,O=e.insertBefore;k$0===void 0&&(k$0=document.createElement("template"));var E=k$0;O.call(e,E.content.cloneNode(!0),l.content.firstChild);Iju=l}l=Iju;return l},{mode:2});var mpC;var yoP;var h_=function(){var l=_.B.apply(this,arguments)||this;l.STEP=1;l.BLOCK_ON=80;l.MIN_PROGESS=0;l.MAX_PROGESS=100;return l};
_.m(h_,_.B);_.X=h_.prototype;_.X.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.X.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));_.V2().addProvider({provide:d5u,useValue:this})};
_.X.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.X.finish=function(){var l=this;this.progress=this.MAX_PROGESS;o1C(function(){l.progress==l.MAX_PROGESS&&(l.hostElement.hidden=!0)})};
_.X.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Ji.Object.defineProperties(h_.prototype,{progress:{configurable:!0,enumerable:!0,set:function(l){this.progress_=l;var e="scaleX("+l/this.MAX_PROGESS+")",O=_.ud(this.hostElement).querySelector("#progress").style;O.transform=e;O.webkitTransform=e;this.hostElement.setAttribute("aria-valuenow",String(l))},
get:function(){return this.progress_}}});
_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],h_.prototype,"ytComponentBehavior",void 0);_.L([_.Ps({is:"yt-page-navigation-progress",disableElementRegistration:!0})],h_);
_.Y(h_,"yt-page-navigation-progress",function(){if(yoP===void 0){var l=document.createElement("template");_.p(l,'\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');l.content.insertBefore(_.Q().content.cloneNode(!0),
l.content.firstChild);var e=l.content,O=e.insertBefore;mpC===void 0&&(mpC=document.createElement("template"));var E=mpC;O.call(e,E.content.cloneNode(!0),l.content.firstChild);yoP=l}l=yoP;return l},{mode:2});var pSH={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"},KLh={"font-size":"12px","font-style":"italic"},j$z={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.g1O=function(){return _.V(function(l){_.Cl(l)})};var HGP=_.XO(function(l){return _.W("snackbar-view-model",{class:_.ax("snackbarViewModelHost",l.className)},_.W("div",{class:_.ax("snackbarViewModelEngagementBarWrapper",l.className)},_.W(_.A,{cond:function(){return l.data().image},
then:function(e){return _.W(_.Jm,{data:e,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0})}}),_.W(_.A,{cond:function(){return l.data().imageContent},
then:function(){return _.W("div",{class:"snackbarViewModelAvatarContainer"},_.W(_.Tn,{data:function(){return l.data().imageContent}},{decoratedAvatarViewModel:_.cp}))}}),_.W("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.W("div",{class:"snackbarViewModelTitle"},_.W(_.zK,{text:function(){return l.data().text}})),_.W("div",{class:"snackbarViewModelSubtext"},_.W(_.zK,{text:function(){return l.data().subtext}}))),_.W(_.A,{cond:function(){return l.data().buttons},
then:function(){return _.W("div",{class:"snackbarViewModelButtonClassWrapper"},_.W(_.Tn,{data:function(){return l.data().buttons}},{buttonViewModel:function(e){return _.W(_.hM,{data:e.data,
buttonOverrides:function(){return{style:"mono-inverse"}}})}}))}})))},"ch");_.Zw(_.XO(function(){function l(y,c){k(y);w("in");d(!0);z=setTimeout(function(){e()},c)}
function e(y){w("out");y&&clearTimeout(z)}
function O(){e(!0)}
function E(y){if(y){var c=y.snackbarViewModel,f=y.durationMs;f||(f=3E3);c&&(y=_.V2().resolve(_.MG(_.MQ)))&&y.enqueue({isOpened:u,open:function(){l(c,f)},
close:e},0)}}
var J=_.e4("snackbar-container"),z=void 0,M=_.b(_.AF(!1,void 0,"mDc5N")),Z=M.next().value;M=M.next().value;var u=Z,d=M;Z=_.b(_.AF("out",void 0,"FpOs5e"));var g=Z.next().value,w=Z.next().value;Z=_.b(_.AF(void 0,void 0,"jIDRob"));var n=Z.next().value,k=Z.next().value;Z=_.pd(function(){if(g()==="out"){d(!1);k(void 0);var y=_.V2().resolve(_.MG(_.MQ));y&&uO4(y,0)}});
_.sC(function(){var y=_.V2().resolve(_.MG(_.mKF));y&&(y.showSnackbarFn=E,y.closeSnackbarFn=O)});
M={};return _.W("snackbar-container",{class:_.ax("ytSnackbarContainerHost",(M.ytSnackbarContainerOpened=function(){return u()&&g()==="in"},M.ytSnackbarContainerClosed=function(){return u()&&g()==="out"},M)),
el:J,"on:animationend":Z},_.W(_.A,{cond:function(){return u()&&!!n()},
then:function(){return _.W(HGP,{data:function(){return n()}})}}))},"dh"),"snackbar-container");_.Zw(_.XO(function(){var l=_.Ld(_.K9T);return _.W("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var e;return(e=l())==null?void 0:e.announcement})},"eh"),"yt-ephemeral-actions");var T8F=new Map;var A5z=function(l,e){var O=this;this.handleError=l;this.logEventInternal=e;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){O.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
A5z.prototype.logError=function(l){this.handleError(l)};
A5z.prototype.logEvent=function(l,e){switch(l){case "IDB_DATA_CORRUPTED":_.a("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",e);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",e);break;case "IS_SUPPORTED_COMPLETED":_.a("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",e);break;case "QUOTA_EXCEEDED":coh(this,e);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",e);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":l=Object.assign({},e,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",l)}};
var coh=function(l,e){_.dw.getInstance().estimate().then(function(O){O=Object.assign({},e,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:G_f(O==null?void 0:O.usage),deviceStorageQuotaMbytes:G_f(O==null?void 0:O.quota)});l.logEventInternal("idbQuotaExceeded",O)})};var L$=function(){var l=_.B.apply(this,arguments)||this;l.tabGesturesIsActive=!1;l.deprecateFullerscreenUi=_.a("web_watch_fullerscreen_deprecation_ui");l.hasDelegation=!1;l.darkerDarkTheme=_.a("web_darker_dark_theme");l.isFrostedGlassInitialized=!1;l.frostedGlassExp=_.a("web_frosted_glass");l.mastheadHiddenFocusWithinKillswitch=_.a("web_masthead_hidden_focus_within_killswitch");l.ephemeralActionsEnabled=_.a("web_ephemeral_actions");l.scrollAtTop=!0;l.guideScrollTop=0;l.isTheaterModeSession=_.LH("START_IN_THEATER_MODE");
l.iMaxTheaterMode=_.a("web_watch_imax_theater_mode");l.isFullWindowSession=_.LH("START_IN_FULL_WINDOW_MODE");l.hasCreateFamilyDialog=!1;l.mastheadHeight=56;l.networkStatusManager=new _.xP;l.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"};l.dynamicActionMap={"yt-run-attestation-command":function(e){var O=_.HXq.instance,E=_.I(e,_.bN0);return E?_.a("use_rta_manager_for_async")&&
Xk0()?hei(O,E,e.clickTrackingParams):YVH(O,E,e.clickTrackingParams):_.Tr(Error("mi"))}};
l.isFrostedGlassDisabled=!1;l.isChannelOrPlaylistPage=!1;return l};
_.m(L$,_.B);_.X=L$.prototype;_.X.created=function(){var l=_.V2();_.a("kevlar_clear_duplicate_pref_cookie")&&_.fZ(_.UD,function(){var e=_.mW.get("PREF");e&&!/f\d=/.test(e)&&(e=_.oy("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=e?"PREF=null;domain="+e+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.a("gzip_gel_with_worker")&&_.ptV();_.a("jspb_serialize_with_worker")&&HvO();_.a("web_worker_availability_check")&&s4P();_.a("nwl_init_killswitch")||KW3().then(function(){_.UD.addLowPriorityJob(hRC)});
this.pageManagerAttachedPromise=_.x7();this.ytdAppBehavior.loadDepsPromise=_.co([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.b3(this.onThrottledScroll,200,this);_.a("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);n6F();VNh=!!_.vK("ytappsettings.initialized");u7=_.vK("ytappsettings.previousValue");JWo=_.vK("ytappsettings.previousSnapshotTime");VNh||(VNh=!0,Xw3());ri0();DdH();_.Yd("DEFERRED_DETACH",
_.a("kevlar_tuner_should_defer_detach"));_.Yd("REUSE_COMPONENTS",!0);_.Yd("STAMPER_STABLE_LIST",!0);_.Yd("SCHEDULED_LAZY_LIST",!0);_.Yd("openPopupConfig",F6F);_.Yd("useClickHandler",!0);_.a("kevlar_shell_cleanup")&&_.UD.addLowPriorityJob(CLo.bind(this,_.Op.caches));_.LH("IS_SHELL_LOAD")&&_.Pb({shellStartupDurationMs:Math.round((0,_.VZ)()-_.Rp())});n1h(this.networkStatusManager);_.a("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",$vO(pSH)),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!",
$vO(KLh)),console.log("%cVisit http://go/join-youtube-web to apply today.",$vO(j$z)));_.dhh(l.resolve(_.Cf),1E3)};
_.X.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var l=UGi();l&&!_.a("external_fullscreen_killswitch")&&document.addEventListener(l,this.setFullscreen.bind(this));(l=window.matchMedia("(prefers-color-scheme: dark)"))&&l.addEventListener&&l.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.X.attached=function(){var l=this;_.h7().processSignal("ci");_.a("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.G2W?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.a2(_.fgx(),"SUCCESS");this.updateIconSet();_.Cz(this.guideInnerContent,!1);_.jQ().initVisibilityObserver();this.guideService.guideElement=this.guide;var e=document.createElement("ytd-miniplayer"),O=_.ud(this.hostElement).querySelector("#content");
_.ud(this.hostElement).insertBefore(e,O);_.h7().processSignal("ma");_.V2().resolve(_.NJ).init(e);_.LH("IS_SHELL_LOAD")&&(O=document.createElement("ytd-network-status-banner"),_.ud(this.hostElement).insertBefore(O,e));_.a("kevlar_right_click_on_lockups")&&_.r0._onCaptureClick&&document.addEventListener("contextmenu",_.r0._onCaptureClick.bind(_.r0),!0);var E=function(){var J=_.zH("yt-page-navigation-progress");_.ud(l.hostElement).appendChild(J)};
setTimeout(function(){_.h7().parkOrScheduleJob(E,0,"eocs",16)},0);
_.a("service_worker_push_enabled")&&_.fZ(_.UD,PLf);_.QW(_.SU.getInstance(),this.dynamicActionMap,this.hostElement);_.$u(this.hostElement,"ytd-app-attached");_.h7().processSignal("aa");EPi(this.hostElement);_.zJ("gapi.load",_.oNA);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.fZ(_.UD,
function(){var J=document.createElement("ytd-video-preview");_.ud(_.ud(l.hostElement).querySelector("#video-preview")).appendChild(J)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.fZ(_.UD,function(){i00();l.registerViewTransitionTasks()});
if(_.T_()&&this.isAppDarkTheme()!==_.f0())this.onDarkModeToggledAction();else e=_.R4()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==e&&(_.a("enable_dark_theme_only_on_shorts")?_.DC(_.a("enable_dark_theme_only_on_shorts_control")?window.location.href:_.xd(window.location.href,{theme:"dark"})):_.hG(new _.Hk("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(s3P=new TSu(this.hostElement)),aj4=new nyu(this.hostElement),AoP=new wS3(this.hostElement),Og4=new eyC(this.hostElement)};
_.X.getThemeSettingsToLog=function(){var l=_.R4()==="USER_INTERFACE_THEME_DARK";l=_.T_()?_.f0()?"os-dark":"os-light":l?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:l,cookiesEnabled:_.pv()}};
_.X.detached=function(){_.op(this.guideInnerContent);_.UD.cancelJob(MP);MP=0;_.UD.cancelJob(ZQ);ZQ=0;_.UvV(Ouf);Ouf.length=0;xGC=_.E8g=null;_.jQ().dispose();_.a("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.xE(_.SU.getInstance(),s3P.playlistHandlerActionMap,s3P.JSC$28521_clientRoot);_.xE(_.SU.getInstance(),aj4.downloadManagerActionMap,aj4.JSC$28826_clientRoot);_.xE(_.SU.getInstance(),AoP.feedbackCollectorActionMap,AoP.JSC$28821_clientRoot);
for(var l=_.b(Og4.eventListeners),e=l.next();!e.done;e=l.next()){var O=_.b(e.value);e=O.next().value;O=O.next().value;O=_.b(O);for(var E=O.next();!E.done;E=O.next()){var J=_.b(E.value);E=J.next().value;J=J.next().value;e.removeEventListener(E,J)}}_.xE(_.SU.getInstance(),Og4.autonavPauseActionMap,Og4.JSC$17777_clientRoot)};
_.X.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Kz().getFlag(186)};
_.X.computeIsInlinePreviewEnabled=function(l,e,O){return!O&&_.C$u({miniplayerIsActive:l,miniplayerPlaybackState:e})};
_.X.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.oM({type:"SET_FROSTED_GLASS_MODE",payload:!_.a("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"}))};
_.X.computeIsFrostedGlassDisabled=function(l,e,O,E){return l||e||O||E&&_.a("web_frosted_glass_disable_watch")};
_.X.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.a("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.X.computeIsHomePage=function(l,e){if(!l||e==null||!e.endpoint)return!1;var O;return((O=_.I(e.endpoint,_.ms))==null?void 0:O.browseId)==="FEwhat_to_watch"};
_.X.updateIsChannelOrPlaylistPage=function(){if(_.a("web_frosted_glass")){var l,e,O=(e=(l=_.V2().resolve(_.MG(_.XZ)))==null?void 0:l.getCurrentPage())==null?void 0:e.pageSubtype;this.isChannelOrPlaylistPage=O?["channel","channels","playlist"].includes(O):!1}};
_.X.scheduleFrostedGlassInitialization=function(){var l=this;_.a("web_frosted_glass")&&_.h7().parkOrScheduleJob(function(){l.isFrostedGlassInitialized=!0},0,_.Rb(["eocs",
"cr"]),300)};
_.X.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.GEq(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.oM({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.oM({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.X.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(lwh(!0))};
_.X.onYtSignalActionRequestPersistentStorage=function(){if(!_.a("request_persistent_storage_killswitch")){var l=_.V2().resolve(_.C2O);l.cachedPersistStatePromise||(l.cachedPersistStatePromise=A3C())}};
_.X.handleYtChannelCreationFormEndpoints=function(l){l&&this.ytComponentBehavior.resolveCommand(l)};
_.X.handleShowEngagementPanelEndpoint=function(l){l&&this.ytComponentBehavior.resolveCommand(l)};
_.X.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(lwh(!1))};
_.X.initIconDefs=function(l,e,O){var E=document.createElement("iron-iconset-svg");E.name=l;l=document.createElementNS("http://www.w3.org/2000/svg","svg");E.appendChild(l);l.appendChild(e);if(O)for(var J in O)E[J]=O[J];document.body.appendChild(E);return E};
_.X.onWindowResized=function(){_.Wb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var l=_.rLx.getInstance();l.documentWidth_=document.body.clientWidth;W0O(l)};
_.X.onWindowScrolled=function(){var l=_.V2().resolve(_.XZ).getCurrentPage();if(l!=null&&l.getScrollTop){var e=this.ytdReduxBehavior,O=e.dispatch;l=l.getScrollTop()<=0;O.call(e,_.oM({type:"SET_SCROLL_AT_TOP",payload:l}))}};
_.X.guideIsVisibleButNotPersistentSelectorChanged=function(){var l=_.V2().resolve(_.XZ).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=l.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"),
l.setScrollTop(this.guideScrollTop));_.dQ(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.X.getCurrentPageScrollableElementType=function(){var l=_.V2().resolve(_.XZ).getCurrentPage();if(l&&l.getPageScrollingElement())return l.getPageScrollingElement().nodeName};
_.X.observeGuideVisibility=function(){var l=_.rLx.getInstance(),e=this.miniGuideVisible;l.guidePersistentAndVisible_=this.guidePersistentAndVisible;l.miniGuideVisible_=e;W0O(l)};
_.X.handleEduDismissAction=function(l){l&&l.eduDismissAction&&(_.Wb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Lni.getInstance(),_.Og.set(l.eduDismissAction.key+"-dismissed",!0))};
_.X.handleEduImpressionAction=function(l){if(l&&l.eduImpressionAction){var e=_.Lni.getInstance();l=l.eduImpressionAction.key;e.JSC$10945_eduDisplayedThisLoad_[_.hm1[l].setKey||l]=!0;_.Og.set(l+"-impression",parseInt(_.Og.get(l+"-impression")||0,10)+1)}};
_.X.onYtSignalActionConfirmMentionsEdu=function(){_.Wb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.XJ.getInstance();_.Jw.set("edu-dismissed",!0)};
_.X.onYtSignalActionRecordMentionsEduImpression=function(){_.XJ.getInstance();var l=_.Jw.set,e=parseInt(_.Jw.get("edu-impressions"),10);l.call(_.Jw,"edu-impressions",(isFinite(e)?e:0)+1)};
_.X.onYtPageManagerAttached=function(l){var e;((e=_.OV(l))==null?void 0:e.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.X.onInvokeInstrumentManagerAction=function(l,e){Ymi(e,l)};
_.X.updateIconSet=function(){var l=this.hostElement.querySelector("#masthead");if(l){var e=_.C1(l),O=e.querySelector("g#yt-logo-updated");O&&(l=document.createElementNS("http://www.w3.org/2000/svg","defs"),l.appendChild(O.cloneNode(!0)),(e=e.querySelector("g#yt-logo-red-updated"))&&l.appendChild(e.cloneNode(!0)),this.initIconDefs("yt-logos-ext",l))}};
_.X.updateMastheadData=function(){var l=this,e,O,E,J,z;return _.V(function(M){if(M.nextAddress==1){e=l.data;O=l.hostElement.querySelector("#masthead");if(!O)return M.return();_.OK(l,function(){O.data=l.topbarData});
if(!l.get("response.topbar",e)||l.get("response.topbar.responseContext.maxAgeSeconds",e)===0)return M.jumpTo(0);if(E=_.V2().resolve(_.tv))return _.C(M,E(),6);J=_.V2().resolve(_.Z2);return _.C(M,J.put("service:topbar:fallback",new _.uF({innertubeResponse:l.get("response.topbar",e)})),0)}return(z=M.yieldResult)?_.C(M,z.put("service:topbar:fallback",new _.uF({innertubeResponse:l.get("response.topbar",e)})),0):M.jumpTo(0)})};
_.X.computeTopbarData=function(l){if(!l)return null;var e;return this.isShortsPage&&this.topbarData&&!_.I((e=l.response)==null?void 0:e.topbar,Ooi)?this.topbarData:l.response&&"topbar"in l.response?_.I(l.response.topbar,Ooi)||null:null};
_.X.onSetTheaterModeEnabled=function(l,e){this.isTheaterModeSession=e.enabled;this.setTheaterModeStyles(e.enabled)};
_.X.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.X.onDarkModeToggledAction=function(){var l=_.A5(window.location.href);if(!_.$eM(l)){(l=!!_.Qt(window.location.href).themeRefresh)&&_.hG(new _.Hk("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!l){Xw3();l={themeRefresh:1};var e=_.V2().resolve(_.XZ);if(e.isOnWatch()){var O,E;e=((O=e.getPlayerFromWatch())==null?void 0:(E=O.getPlayer())==null?void 0:E.getCurrentTime())||0;e>=1&&(l.time_continue=Math.floor(e))}_.pv()||_.R4()!=="USER_INTERFACE_THEME_DARK"||(l.theme="dark");_.DC(_.xd(window.location.href,
l))}_.a("web_appshell_refresh_trigger")&&_.Op.caches&&this.refreshAppShellResponse();O=_.Dp(window.location.href);_.$G(_.V2().resolve(_.W5),_.M9(O,"theme"))}};
_.X.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.X.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.X.onPlayerFullscreen=function(l){_.ZG();this.playerFullscreen=l};
_.X.setRestrictedMode=function(l){var e=_.Kz();_.jj(0,58,l);e.save();_.V2().resolve(_.KQ).reload()};
_.X.onPageChanged=function(l){l.detail.newPageType==="ytd-watch-flexy"||l.detail.newPageType==="ytd-watch-fixie"||l.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Bn("WEB_PAGE_TYPE_WATCH")):l.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Bn("WEB_PAGE_TYPE_SHORTS")):l.detail.newPageType==="ytd-browse"&&l.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Bn("WEB_PAGE_TYPE_MINI_APP")):_.a("web_frosted_glass")&&l.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Bn("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Bn("WEB_PAGE_TYPE_UNKNOWN"));l.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.X.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.X.onGuideToggleTap=function(){_.$u(this.hostElement,"yt-guide-toggle")};
_.X.onGuideToggleHover=function(){_.$u(this.hostElement,"yt-guide-hover")};
_.X.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.X.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.X.setMastheadTheme=function(){var l=_.C1(this.hostElement).querySelector("#masthead");l&&(l.dark=l.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),l.isDarkThemeForced=!1)};
_.X.onRequestPanelModeChange=function(l,e){this.hideHeaderShadow=e.mode!=="seamed"};
_.X.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.X.onDrawerIronSelect=function(l){_.OV(l).id==="guide"&&this.processDrawerIronSelect()};
_.X.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var l="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(l="opened"));_.$u(this.hostElement,"yt-autonav-pause-guide-"+l)};
_.X.onAddElementToApp=function(l){_.ud(this.hostElement).appendChild(l.detail)};
_.X.onThrottledScroll=function(){var l=_.V2().resolve(_.XZ).getCurrentPage();l&&(this.scrollAtTop=l.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.X.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.X.setFullscreen=function(){if(_.a("external_fullscreen")||!this.isWatchPage){var l=_.a("kevlar_fullerscreen_root_only_killswitch")?!!_.ZG():!!_.ZG()&&_.ZG()===document.documentElement;l=(this.isWatchPage||_.a("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(l||this.isFullWindowSession);this.fullscreen!==l&&((this.fullscreen=l)&&_.dQ(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Om().dispatch(_.edH(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Wb(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.X.setFullscreenLoggingForShorts=function(l){var e,O,E;return _.V(function(J){if(J.nextAddress==1)return _.C(J,(e=_.bV())==null?void 0:e.getPlayerPromise(),2);O=J.yieldResult;(E=O)==null||E.setAppFullscreen(l);_.Cl(J)})};
_.X.updateMastheadCssHeight=function(){var l=this.mastheadHeight;this.fullscreen&&(l=0);_.dP(this.hostElement,{"--ytd-masthead-height":l+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.X.updateNetworkStatusBannerDisplayStatus=function(){var l="unset";this.fullscreen&&(l="none");_.dP(this.hostElement,{"--ytd-network-status-banner-display":l})};
_.X.updateNetworkStatusBannerCssHeight=function(){var l="unset";this.fullscreen&&(l="0px");_.dP(this.hostElement,{"--ytd-network-status-banner-max-height":l})};
_.X.updateScrollAndMasthead=function(l,e,O,E){this.iMaxTheaterMode||(E=!1);var J=_.V2().resolve(_.XZ).getCurrentPage();l||e||E?(document.body.classList.add("no-scroll"),J.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.id(this,this.onScroll)),J.setScrollTop(0),_.dP(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.cr()+"px"})):O?_.$u(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.$u(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
J.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.id(this,this.onScroll)));this.mastheadHidden=l||e||O;this.updateMastheadCssHeight();_.a("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.X.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.X.onYtNavigateAction=function(l){l=this.get("navigateAction.endpoint",l);_.$u(this.hostElement,"yt-navigate",{endpoint:l})};
_.X.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var l=document.createElement("yt-create-family-dialog");_.ud(this.hostElement).appendChild(l);this.hasCreateFamilyDialog=!0}};
_.X.onSetPushNotificationsEnabledCommand=function(l){var e=this,O=_.I(l,e2z);O&&typeof O.enabled==="boolean"&&(Notification.permission!=="granted"?Rp3().then(function(){Notification.permission==="granted"?(wwH(!O.enabled).then(aAu),O.successAction&&_.ii(e.hostElement,[O.successAction])):O.failureAction&&_.ii(e.hostElement,[O.failureAction])}):(wwH(!O.enabled).then(aAu),O.successAction&&_.ii(this.hostElement,[O.successAction])))};
_.X.onYtSignalActionEnableChromeNotifications=function(){T3F(!0)};
_.X.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.I(this.topbarData.hotkeyDialog,Xy3)}}})};
_.X.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Wb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.X.onYtEndpointChangeHandler=function(l,e){var O=_.$x(_.pQ);O.pendingPrefetchJob_&&(e=!(!e||e.autonav!="1"),O.pendingPrefetchJob_.resolve(l&&_.Jb2(l)?_.Xu8(l,e):""),O.pendingPrefetchJob_=null);_.Wb(this.hostElement,"yt-pause-active-page-context");_.Wb(this.hostElement,"ytd-log-youthere-nav");_.Wb(this.hostElement,"yt-prepare-page-dispose")};
_.X.handleCommandWithCommandHandler=function(l,e){_.n4.instance.resolveCommand(l,{form:{element:e}})};
_.X.onYtTimedCommand=function(l){var e=this;l=_.I(l,LR4);var O=l.command;O&&_.RK(_.UD,function(){var E=_.I(O,_.us1);E?(_.n4.instance.resolveCommand(O),e.maybeLogGetAnswerRequestTick(E)):_.wQ(e.hostElement,[O],e.hostElement)},l.timeoutMs||0)};
_.X.maybeLogGetAnswerRequestTick=function(l){l&&l.isFirstRequest&&(_.UG("search_overview_answer"),_.Yu("so_rq",void 0,"search_overview_answer"))};
_.X.onYtSignalActionSkipNavigation=function(){var l=_.V2().resolve(_.XZ).getCurrentPage();_.EW(l)};
_.X.onYtSignalActionCopyDebugData=function(){rWH()};
_.X.handleEntityUpdateCommand=function(l){_.IM(_.I(l,_.W40).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.X.logFlowLoggingEventCommand=function(l){if(l=_.I(l,_.LKM))if(l.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var e=l.flowEventNamespace,O=l.flowEventType,E=l.flowType;E&&e&&O&&_.SgV(_.g8(e,O,l.flowEventMetadata),E)}else{e=_.w8();O=l.flowEventNamespace;E=l.flowEventType;var J=l.flowType;J&&O&&E&&_.iG(e,_.g8(O,E,l.flowEventMetadata),J,l.flowNonce)}};
_.X.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.X.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.X.onTouchStart=function(){var l=_.Ha();_.P9()&&_.rg(l.JSC$11172_screenManager,{visualElement:l.ve})};
_.X.handleSelectLanguageCommand=function(l){if(l=_.I(l,Qt0).hl){var e=_.Kz();e.set("hl",l);e.save();_.V2().resolve(_.KQ).reload()}};
_.X.handleConfirmDialogEndpoint=function(l){(l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(l))&&this.ytOpenPopupBehavior.openPopup(l)};
_.X.handleOpenPopupNavigationEndpoints=function(l,e){_.a("web_button_rework")&&(l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(l))&&this.ytOpenPopupBehavior.openPopup(l,e)};
_.X.handleSaveCommandToSessionStorage=function(l){if(l=_.I(l,_.oxk)){var e=l.key;e&&l.command&&window.sessionStorage.setItem(e,JSON.stringify(l.command))}};
_.X.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(l){l&&l.active&&l.active.postMessage({type:"refresh_shell"})}).catch(function(l){l.name!=="SecurityError"&&_.UW(l)})};
_.X.onDeviceThemeChanged=function(){var l=_.f0();_.jj(_.Kz(),185,l);_.Kz().save()};
_.X.handleYtRegisterPromoCommand=function(l){if(_.I(l,lYF)){var e=_.V2().resolve(_.XZ).getCurrentPage()||this.hostElement;ZQP().registerPromoCommand(_.I(l,lYF),e)}};
_.X.onYtNavigateHomeAction=function(){if(!_.a("kevlar_miniplayer_navigate_home_from_app_killswitch")){var l,e,O,E,J=(E=(l=this.topbarData)==null?void 0:(e=l.logo)==null?void 0:(O=e.topbarLogoRenderer)==null?void 0:O.endpoint)!=null?E:_.an;this.ytComponentBehavior.resolveCommand(J)}};
_.X.onYtLocationCollectionCommand=function(l){dvo(_.I(l,ok4))};
_.X.onYtGetLocationCommand=function(l){Ozu(_.I(l,CIh),this)};
_.X.updateRenderGuideFromBinding=function(l){this.renderGuide=l.detail.value};
_.X.updateGuidePersistentAndVisibleFromBinding=function(l){this.guidePersistentAndVisible=l.detail.value};
_.X.updateMiniGuideVisibleFromBinding=function(l){this.miniGuideVisible=l.detail.value};
_.X.onThemeSelected=function(l,e){var O=_.Kz(),E=l||e?l:_.f0(),J=(E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.$eM(_.A5(window.location.href));_.jj(0,165,l);_.jj(0,174,e);O.save();J&&_.Wb(this.hostElement,"yt-dark-mode-toggled-action",[E]);_.Wb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.X.getCurrentTheme=function(){return _.T_()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.R4()};
_.X.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.X.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.X.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.X.handleShowConsentPrimitive=function(l){var e=this,O,E;return _.V(function(J){if(J.nextAddress==1){try{O=(E=_.bV())==null?void 0:E.getPlayerPromise()}catch(z){}return _.C(J,Rbz(l,O),2)}_.Wb(e.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Cl(J)})};
_.X.handleSelectActiveIdentityEndpointInternal=function(l){_.Nv();l=_.I(l,_.yH1);if(l!=null&&l.supportedTokens){l=_.b(l.supportedTokens);for(var e=l.next();!e.done;e=l.next())e=e.value,e.accountSigninToken&&_.DC(e.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.X.handleUpdatePermissionRoleCommand=function(l){if(l=_.I(l,_.KSS)){var e;this.hasDelegation=!((e=_.I(l.renderer,_.p0S))==null||!e.status)}};
_.X.registerViewTransitionTasks=function(){var l=this,e=_.V2().resolve(_.MG(_.VY));if(e){var O,E=(O=this.guide)==null?void 0:O.querySelector("#scrim"),J,z=(J=this.guide)==null?void 0:J.querySelector("#contentContainer");E&&z&&(O={beforeTransition:function(){var M;(M=l.guide)!=null&&M.persistent||(E.style.viewTransitionName="app-drawer-scrim",z.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var M;(M=l.guide)!=null&&M.persistent||(E.style.viewTransitionName="",z.style.viewTransitionName="")}},QJ(e,"slide",O),QJ(e,"zoom",O))}};
_.Ji.Object.defineProperties(L$.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.a("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Ji.Object.defineProperties(L$,{template:{configurable:!0,enumerable:!0,get:function(){if(oyF===void 0){var l=document.createElement("template");_.p(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
l.content.insertBefore(_.Q().content.cloneNode(!0),l.content.firstChild);oyF=l}l=oyF;return l}}});
L$.prototype.onOpenHotkeyDialog=L$.prototype.onOpenHotkeyDialog;L$.prototype.setFullscreen=L$.prototype.setFullscreen;L$.prototype.onAddElementToApp=L$.prototype.onAddElementToApp;L$.prototype.onDrawerIronSelect=L$.prototype.onDrawerIronSelect;L$.prototype.onGuideOpenButtonHover=L$.prototype.onGuideOpenButtonHover;L$.prototype.onRequestPanelModeChange=L$.prototype.onRequestPanelModeChange;L$.prototype.onPageDataUpdated=L$.prototype.onPageDataUpdated;L$.prototype.onPageChanged=L$.prototype.onPageChanged;
L$.prototype.onSetTheaterModeEnabled=L$.prototype.onSetTheaterModeEnabled;L$.prototype.updateMastheadData=L$.prototype.updateMastheadData;L$.prototype.onYtPageManagerAttached=L$.prototype.onYtPageManagerAttached;L$.prototype.observeGuideVisibility=L$.prototype.observeGuideVisibility;L$.prototype.guideIsVisibleButNotPersistentSelectorChanged=L$.prototype.guideIsVisibleButNotPersistentSelectorChanged;L$.prototype.isInlinePreviewEnabledChanged=L$.prototype.isInlinePreviewEnabledChanged;
L$.prototype.isWatchPageChanged=L$.prototype.isWatchPageChanged;L$.prototype.dispatchFrostedGlassMode=L$.prototype.dispatchFrostedGlassMode;_.L([_.K(_.sY),_.q("design:type",Object)],L$.prototype,"ytdReduxBehavior",void 0);_.L([_.K(_.nY.YtEventForwardingBehavior),_.q("design:type",Object)],L$.prototype,"ytEventForwardingBehavior",void 0);_.L([_.K(_.Ab.YtOpenPopupBehavior),_.q("design:type",Object)],L$.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.K(_.ZH.YtActionHandlerBehavior),_.q("design:type",Object)],L$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.K({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.SU.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.a("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var l;((l=this.actionRouterNode.hostElement)!=null?l:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var l;((l=this.actionRouterNode.hostElement)!=null?l:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(l){this.actionRouter_.handleAction(l.detail)}}),
_.q("design:type",Object)],L$.prototype,"ytActionRouterBehavior",void 0);_.L([_.K(iQ4.YtdAppBehavior),_.q("design:type",Object)],L$.prototype,"ytdAppBehavior",void 0);_.L([_.K(_.af.YtEndpointBehavior),_.q("design:type",Object)],L$.prototype,"ytEndpointBehavior",void 0);_.L([_.K(iGC.YtEndpointHandlerWithYpcBehavior),_.q("design:type",Object)],L$.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.L([_.K($pz.YtLogYpcFlowCommandsBehavior),_.q("design:type",Object)],L$.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.L([_.K(_.x.YtRendererBehavior),_.q("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.L([_.K(_.va.YtComponentBehavior),_.q("design:type",Object)],L$.prototype,"ytComponentBehavior",void 0);_.L([_.T({selector:_.Dmi}),_.q("design:type",Object)],L$.prototype,"tabGesturesIsActive",void 0);_.L([_.T(),_.q("design:type",Boolean)],L$.prototype,"renderGuide",void 0);
_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"guidePersistentAndVisible",void 0);_.L([_.T({selector:_.rzu}),_.q("design:type",Boolean)],L$.prototype,"guideIsVisibleButNotPersistent",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"standalone",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"miniGuideVisible",void 0);
_.L([_.T({selector:_.WVT}),_.q("design:type",Number)],L$.prototype,"miniplayerPlaybackState",void 0);_.L([_.T({selector:_.Pt,reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"miniplayerIsActive",void 0);_.L([_.T({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.q("design:type",Boolean)],L$.prototype,"isInlinePreviewEnabled",void 0);_.L([_.T(),_.q("design:type",Boolean)],L$.prototype,"isInlinePreviewDisabled",void 0);
_.L([_.T({reflectToAttribute:!0,value:function(){return _.LH("START_IN_FULL_WINDOW_MODE")}}),
_.q("design:type",Boolean)],L$.prototype,"mastheadHidden",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"playerFullscreen",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],L$.prototype,"deprecateFullerscreenUi",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"fullscreen",void 0);_.L([_.T({value:!1,reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"hideHeaderShadow",void 0);
_.L([_.T({value:{GUIDE_ALT_LABEL:_.ml("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.q("design:type",Object)],L$.prototype,"menuStrings",void 0);_.L([_.T({computed:"computeTopbarData(data)"}),_.q("design:type",Object)],L$.prototype,"topbarData",void 0);_.L([_.T({selector:_.Un}),_.q("design:type",Boolean)],L$.prototype,"isWatchPage",void 0);_.L([_.T({selector:_.CS8,reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"isShortsPage",void 0);
_.L([_.T({selector:function(l){return l.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.q("design:type",Boolean)],L$.prototype,"isMiniAppPage",void 0);_.L([_.T({selector:function(l){return l.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.q("design:type",Boolean)],L$.prototype,"isBrowsePage",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Boolean)],L$.prototype,"scrolling",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],L$.prototype,"hasDelegation",void 0);_.L([_.T({reflectToAttribute:!0,value:!1}),_.q("design:type",Boolean)],L$.prototype,"guideScrolledByTouch",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],L$.prototype,"darkerDarkTheme",void 0);
_.L([_.T(),_.q("design:type",Object)],L$.prototype,"isFrostedGlassInitialized",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],L$.prototype,"frostedGlassExp",void 0);_.L([_.T({selector:function(l){return l.ui.chipBarIsSticky}}),
_.q("design:type",Boolean)],L$.prototype,"chipBarIsSticky",void 0);_.L([_.T({computed:"computeIsHomePage(isBrowsePage, data)"}),_.q("design:type",Boolean)],L$.prototype,"isHomePage",void 0);_.L([_.T({reflectToAttribute:!0}),_.q("design:type",Object)],L$.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.L([_.T(),_.q("design:type",Object)],L$.prototype,"ephemeralActionsEnabled",void 0);_.L([_.SX("guide"),_.q("design:type",Object)],L$.prototype,"guide",void 0);
_.L([_.SX("guide-service"),_.q("design:type",XuC)],L$.prototype,"guideService",void 0);_.L([_.SX("guide-inner-content"),_.q("design:type",HTMLDivElement)],L$.prototype,"guideInnerContent",void 0);_.L([_.T({selector:_.gUT}),_.q("design:type",String)],L$.prototype,"frostedGlassMode",void 0);
_.L([_.AA("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"dispatchFrostedGlassMode",null);_.L([_.T({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.q("design:type",Object)],L$.prototype,"isFrostedGlassDisabled",void 0);
_.L([_.AA("isWatchPage"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"isWatchPageChanged",null);_.L([_.R("isHomePage","chipBarIsSticky"),_.q("design:type",Boolean),_.q("design:paramtypes",[])],L$.prototype,"applyFrostedGlassToChipBar",null);_.L([_.T(),_.q("design:type",Object)],L$.prototype,"isChannelOrPlaylistPage",void 0);
_.L([_.y0("isInlinePreviewEnabled"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"isInlinePreviewEnabledChanged",null);_.L([_.AA("guideIsVisibleButNotPersistent"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.L([_.AA("guidePersistentAndVisible","miniGuideVisible"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"observeGuideVisibility",null);_.L([_.wP("attached"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],L$.prototype,"onYtPageManagerAttached",null);_.L([_.AA("data"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype",Promise)],L$.prototype,"updateMastheadData",null);
_.L([_.wP("yt-set-theater-mode-enabled"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent,Object]),_.q("design:returntype")],L$.prototype,"onSetTheaterModeEnabled",null);_.L([_.wP("yt-page-type-changed"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],L$.prototype,"onPageChanged",null);_.L([_.wP("yt-page-data-updated"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"onPageDataUpdated",null);
_.L([_.wP("yt-request-panel-mode-change"),_.q("design:type",Function),_.q("design:paramtypes",[Event,Object]),_.q("design:returntype")],L$.prototype,"onRequestPanelModeChange",null);_.L([_.wP("yt-guide-hover"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"onGuideOpenButtonHover",null);_.L([_.wP("app-drawer-transitioned"),_.q("design:type",Function),_.q("design:paramtypes",[Event]),_.q("design:returntype")],L$.prototype,"onDrawerIronSelect",null);
_.L([_.wP("yt-add-element-to-app"),_.q("design:type",Function),_.q("design:paramtypes",[CustomEvent]),_.q("design:returntype")],L$.prototype,"onAddElementToApp",null);_.L([_.wP("yt-set-fullerscreen-styles"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"setFullscreen",null);_.L([_.wP("yt-open-hotkey-dialog"),_.q("design:type",Function),_.q("design:paramtypes",[]),_.q("design:returntype")],L$.prototype,"onOpenHotkeyDialog",null);
_.L([_.U({is:"ytd-app"})],L$);_.h7().processSignal("eor");
_.Tj();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
